If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Health Center recommendations makes bad scripts?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-19-06, 01:09
meehange meehange is offline
Registered User
 
Join Date: Jul 2004
Posts: 256
Question Health Center recommendations makes bad scripts?

If I follow the Health Center's recommendations on Reorgs and allow it to create a scheduled job to perform reorgs it actually seems to write crap scrips for them.

Code:
CONNECT TO <DBname>;
REORG TABLE <Tablename>;
CONNECT RESET;
Which obviously gives a SQL0104N on the connect statement.

Is it me or DB2? I'm on 8.2 for Windows patched to 11.
What gives?
Reply With Quote
  #2 (permalink)  
Old 07-24-06, 21:55
meehange meehange is offline
Registered User
 
Join Date: Jul 2004
Posts: 256
OK I'm feeling a little stupid, I mistyped the code :/

It actually writes:
Code:
CONNECT TO DATABASE <DBname>;
REORG TABLE <Tablename>;
CONNECT RESET;
The addition of the word DATABASE being the problem...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On