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 > db2advis

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-01-10, 00:52
Sedative11 Sedative11 is offline
Registered User
 
Join Date: May 2010
Posts: 2
db2advis

Hi,

I am new to db2. I am trying to run db2advis on a sql statement in my lab and facing the following error:
db2advis -d sodev -f test -o sample

Error Invalid Command-Line option [-e]

0 solutions were evaluated by the advisor

exiting with error code [-804]

I also tried the following:

db2advis -d sodev -i test.in -t 5

Using user id as default schema name. Use -n option to specify schema
Explain tables not set up properly for schema so1872
The insert into the ADVISE_INSTANCE table has failed.

0 solutions were evaluated by the advisor

exiting with error code [-219]

It would be great if some one can help me out..

Thanks a lot.
Reply With Quote
  #2 (permalink)  
Old 06-01-10, 02:14
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Looks like you need to create the explain tables. You can run the DDL (db2 -tvf EXPLAIN.DDL) located in the following locations:
  • UNIX/LINUX- $HOME/sqllib/misc/EXPLAIN.DDL
  • Windows - \Program Files\IBM\SQLLIB\MISC\EXPLAIN.DDL

Or you can use the the Visual Explain in the Control Center, and it will create the tables for you the first time you use it.

Be sure to use the same userid to create the explain tables as you will use to execute db2advis (each user must have their own explain tables).
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 06-14-10, 16:07
Sedative11 Sedative11 is offline
Registered User
 
Join Date: May 2010
Posts: 2
Sorry Marcus, i couldn't log in to the forums from long time. Thanks a lot for the reply, will try that.
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