473,320 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

db2advis from Client

Hi All,
Server = DB2 ESE 8.2 on Linux, Client = DB2 Admin Client 8.2 on Windows

Question = Can I execute "db2advis" from this Windows Client?
Kindly see the error I receive and the setup below.

Setup = As below:
(1) EXPLAIN / ADVISE tables on database SRV are created in instance
owner schema "db2inst1".
(2) From windows I am connected to db SRV as user "db2inst1".
(3) On the Windows desktop, I am logged on as admin user "1255368"
(4) I execute these 2 commands (as an example):
db2 set current schema db2inst1;
db2advis -d SRV -s "SELECT CUST_ID FROM anurag.CUSTOMER"
-a db2inst1/db2inst1 -n db2inst1 -q anurag.

After a while, I receive the error as below:
_________________________ ERROR TEXT _________________________
Explain tables not set up properly for schema 1255368
The insert into the ADVISE_INSTANCE table has failed.

0 solutions were evaluated by the advisor

exiting with error code [-219]
__________________________________________________ _____________

So, my question refined after this error is ==> When EXPLAIN / ADVISE
tables have been setup for the user with which I am connected to the
database (instance owner), why does my db2advis statement fails;
AND WHY IN THIS WORLD IS DB2 CONCERNED WITH MY WINDOWS USER ID 1255368
(VALUES CURRENT USER ===> db2inst1)?

Do I need to set some parameter for "CURRENT USER" at the Windows level
also?

Regards,
Anurag

Nov 17 '05 #1
1 4376
Hi,
why don't you give the userid and passwd as well?
db2advis is using it's own connection, not from the session, so hand it
over as well.
-a userid/passwd or
-a userid -x
will prompt for the password.

Juliane

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: norab | last post by:
Hi, In the help here (http://publib.boulder.ibm.com/infocenter/db2help/topic/com.ibm.db2.udb.doc/admin/t0011424.htm?resultof=%22%77%6f%72%6b%6c%6f%61%64%22%20) is described that you can run the...
5
by: dotyet | last post by:
I have been given the daunting task of sql query tuning. I am looking for ways to get started with that. I am on DB2 UDB 8.2 (8.1 with Fixpak 8) on Windows. One point which I could think about...
1
by: mandible | last post by:
Hello I was wondering if I"m doing something wrong with using db2advis I have 2 stored procedures are are massive, I created an input file to call both of these stored procedures and I dont' seem...
5
by: lennart | last post by:
Here's the scenario. Take backup on production machine Restore backup on development machine OS and fixpak identical, but - and I suspect this has something to do with it - the dbadm user...
2
by: hello_db2 | last post by:
hello, db2advis gave me error like execution started at timestamp 2006-11-15-09.51.37.046473 Using the default table space name USERSPACE1 Recommending indexes... Recommending MQTs......
0
by: sancho | last post by:
Hi folks: My environment: db2level: "DB2 v8.1.0.48", "s040212", "MI00069", FixPak "5". db2licm -l: DB2 Enterprise Server Edition uname -a: Linux 2.6.17-1.2187_FC5smp My question:
0
by: db2dbdba | last post by:
Hi all, I am getting the following problem when i run the db2advis. ]$ db2advis -d sample -i name3.sql -n db2inst1 -o db2advise.out 0 solutions were evaluated by the advisor exiting with...
0
by: suniltcs | last post by:
When I run DB2advis , i get below error message. ). db2advis -d aqwrwist -l -1 -s "select * from wis.cond with ur;" Using user id as default schema name. Use -n option to specify schema ...
3
by: sandeep.iitk | last post by:
I am using a query into db2advis for index recommendation. this query is having a CTE (with clause). when I run db2advis it returned some error like Database is reporting the following error:...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.