![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hey people, I have a database I use as a stock tracker, with no online users so to speak so I do NOT have to worry about recovery or rollbacks etc. Everything is for want of a better word, BATCH run at the end of the day in a sequence of Stored Procedures. Now I these several Stored Procedures that must insert x millions records daily and I am trying to find a way to avoid logging thrashing the discs. I have tried to create these stored procedures with activating NLI in the Procedure itself but for some reason it will fail when creating the procedure itself. I keep getting the following error: DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processing it returned: SQL0104N An unexpected token "ALTER" was found following "PEN RID_CURSOR; ". Expected tokens may include: "TRUNCATE". LINE NUMBER=24. SQLSTATE=42601 The command I am using is : ALTER TABLE DB2ADMIN.TEST_NLI ACTIVATE NOT LOGGED INITIALLY; Can anyone please enlighten me as to how this may be done ? Many thanks, Tim |
#3
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |