473,394 Members | 1,735 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,394 software developers and data experts.

unable to run db2advis on restored backup from another machine


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 differs between prod and dev.

drop explain tables and recreate them for dbadm on dev.

Now:

[db2inst1@faramir ~]$ db2advis -d NYA -m I -s "select 1 from
sysibm.sysdummy1"

Using user id as default schema name. Use -n option to specify schema
CALL SYSPROC.GET_DBSIZE_INFO failed (workaround - use -l)

SQL0444N Routine "*IZE_INFO" (specific name "GET_DBSIZE_INFO") is
implemented
with code in library or path "...sqllib/function/db2stmg", function
"get_dbsize_info" which cannot be accessed. Reason
*************************************
* CONTENTS OF SQLCA *
*************************************

SQLCABC = 136
SQLCODE = -444
SQLERRMC =
*IZE_INFOÿGET_DBSIZE_INFOÿ...sqllib/function/db2stmgÿget_dbsize_infoÿ4
SQLERRP = SQLERLIB
sqlerrd[0] = 0
sqlerrd[1] = 0
sqlerrd[2] = 0
sqlerrd[3] = 0
sqlerrd[4] = 0
sqlerrd[5] = 0
SQLWARN =
SQLSTATE = 42724
Critical SQLCODE. Exiting db2advis ...
The insert into the ADVISE_INSTANCE table has failed.

0 solutions were evaluated by the advisor

exiting with error code [-444]
I have tried binding as:
db2 bind @db2ubind.lst grant public
db2 bind @db2cli.lst grant public
But that doesnt seem to help. If I create a new db on dev machine,
explain works against that one, and explain works in prod machine. Any
ideas on what needs to be done on restored db to be able to run
db2advis, anyone?

Thanx in advance
/Lennart

Aug 3 '06 #1
5 4966
Try running

db2updv8 on the database.

cheers...
Shashi Mannepalli
le*****@kommunicera.umea.se wrote:
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 differs between prod and dev.

drop explain tables and recreate them for dbadm on dev.

Now:

[db2inst1@faramir ~]$ db2advis -d NYA -m I -s "select 1 from
sysibm.sysdummy1"

Using user id as default schema name. Use -n option to specify schema
CALL SYSPROC.GET_DBSIZE_INFO failed (workaround - use -l)

SQL0444N Routine "*IZE_INFO" (specific name "GET_DBSIZE_INFO") is
implemented
with code in library or path "...sqllib/function/db2stmg", function
"get_dbsize_info" which cannot be accessed. Reason
*************************************
* CONTENTS OF SQLCA *
*************************************

SQLCABC = 136
SQLCODE = -444
SQLERRMC =
*IZE_INFOÿGET_DBSIZE_INFOÿ...sqllib/function/db2stmgÿget_dbsize_infoÿ4
SQLERRP = SQLERLIB
sqlerrd[0] = 0
sqlerrd[1] = 0
sqlerrd[2] = 0
sqlerrd[3] = 0
sqlerrd[4] = 0
sqlerrd[5] = 0
SQLWARN =
SQLSTATE = 42724
Critical SQLCODE. Exiting db2advis ...
The insert into the ADVISE_INSTANCE table has failed.

0 solutions were evaluated by the advisor

exiting with error code [-444]
I have tried binding as:
db2 bind @db2ubind.lst grant public
db2 bind @db2cli.lst grant public
But that doesnt seem to help. If I create a new db on dev machine,
explain works against that one, and explain works in prod machine. Any
ideas on what needs to be done on restored db to be able to run
db2advis, anyone?

Thanx in advance
/Lennart
Aug 3 '06 #2

Shashi Mannepalli wrote:
Try running

db2updv8 on the database.
Thank you for the answer. Unfortenate the db has never been V7, anyhow
I tried your sugggestion:

[db2inst1@faramir ~]$ db2updv8 -d NYA -u db2inst1 -p XXXXXX -c 1

Alter procedures that use obsolete schema "db2schem":

Routineschema Routinename Implementation
--------------- ------------------ ------------------------------

0 procedure(s) modified.
DB2UPDV8 complete successfully for database 'NYA'.
but the problem remains

[db2inst1@faramir ~]$ db2advis -d NYA -m I -s "select * from
sysibm.sysdummy1"

Using user id as default schema name. Use -n option to specify schema
CALL SYSPROC.GET_DBSIZE_INFO failed (workaround - use -l)

SQL0444N Routine "*IZE_INFO" (specific name "GET_DBSIZE_INFO") is
implemented
with code in library or path "...sqllib/function/db2stmg", function
"get_dbsize_info" which cannot be accessed. Reason
*************************************
* CONTENTS OF SQLCA *
*************************************

SQLCABC = 136
SQLCODE = -444
SQLERRMC =
*IZE_INFOGET_DBSIZE_INFO...sqllib/function/db2stmgget_dbsize_info4
SQLERRP = SQLERLIB
sqlerrd[0] = 0
sqlerrd[1] = 0
sqlerrd[2] = 0
sqlerrd[3] = 0
sqlerrd[4] = 0
sqlerrd[5] = 0
SQLWARN =
SQLSTATE = 42724
Critical SQLCODE. Exiting db2advis ...
The insert into the ADVISE_INSTANCE table has failed.

0 solutions were evaluated by the advisor

exiting with error code [-444]

Aug 4 '06 #3
Looks like all the Tables are not there...for this ADVISOR.

Run this again...

$insthome/sqllib/misc

db2 connect to <database>
db2 -tvf EXPLAIN.DDL

Then run this again....

cheers...
Shashi Mannepalli
le*****@kommunicera.umea.se wrote:
Shashi Mannepalli wrote:
Try running

db2updv8 on the database.

Thank you for the answer. Unfortenate the db has never been V7, anyhow
I tried your sugggestion:

[db2inst1@faramir ~]$ db2updv8 -d NYA -u db2inst1 -p XXXXXX -c 1

Alter procedures that use obsolete schema "db2schem":

Routineschema Routinename Implementation
--------------- ------------------ ------------------------------

0 procedure(s) modified.
DB2UPDV8 complete successfully for database 'NYA'.
but the problem remains

[db2inst1@faramir ~]$ db2advis -d NYA -m I -s "select * from
sysibm.sysdummy1"

Using user id as default schema name. Use -n option to specify schema
CALL SYSPROC.GET_DBSIZE_INFO failed (workaround - use -l)

SQL0444N Routine "*IZE_INFO" (specific name "GET_DBSIZE_INFO") is
implemented
with code in library or path "...sqllib/function/db2stmg", function
"get_dbsize_info" which cannot be accessed. Reason
*************************************
* CONTENTS OF SQLCA *
*************************************

SQLCABC = 136
SQLCODE = -444
SQLERRMC =
*IZE_INFOGET_DBSIZE_INFO...sqllib/function/db2stmgget_dbsize_info4
SQLERRP = SQLERLIB
sqlerrd[0] = 0
sqlerrd[1] = 0
sqlerrd[2] = 0
sqlerrd[3] = 0
sqlerrd[4] = 0
sqlerrd[5] = 0
SQLWARN =
SQLSTATE = 42724
Critical SQLCODE. Exiting db2advis ...
The insert into the ADVISE_INSTANCE table has failed.

0 solutions were evaluated by the advisor

exiting with error code [-444]
Aug 4 '06 #4

Shashi Mannepalli wrote:
Looks like all the Tables are not there...for this ADVISOR.

Run this again...

$insthome/sqllib/misc

db2 connect to <database>
db2 -tvf EXPLAIN.DDL

Then run this again....
All the tables are there, but I ran the EXPLAIN.ddl anyhow. Problem
still remains. I also tested to restore another backup to another
machine and the error is there as well
/Lennart

Aug 4 '06 #5

In case anyone else encounters this, the solution is to add the dbadm
user from produktionserver, add user to dbadm group, grant dbadm on db
to user. The run db2advis as that user.
/Lennart

Aug 30 '06 #6

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

Similar topics

1
by: Jol | last post by:
This is more of a fyi than a question. After restoring a live db backup to our development server there was an identically named login Melb02 on both the db server and in the restored db backup....
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: Kent.Brooke | last post by:
When a backup is taken from server a and then redirected restore is done on server b, the tables and data is fine however db2advis says "explain & advise tables not created for user x properly"....
1
by: Shane | last post by:
This may not be the right forum, but I need to start somewhere. I am getting a message box "Unable to Open Project 'My Project'." when I open my project. My project opens and compiles correctly,...
16
by: gumby | last post by:
I'm having trouble getting HADR to work with the sample databases on two HS20 xSeries blades, Red Hat ES4 up3, DB2 8.2.4, getting the following error. SQL1768N Unable to start HADR. Reason code...
3
by: Microsoft.com | last post by:
Just recovered from a crash. After restoring from backup any asp.net application fails with the message below. machine.comfit has no changes from the default except a user/password. I've tried...
1
by: Query Builder | last post by:
Hi All, I have to a few backups restored from a set of backup files. The backup files have been removed from the drive because of some storage constrains... For some data comparison reasons,...
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:
1
by: mlaris | last post by:
Howdy, We are experiencing a bizarre problem under Linux attempting to restore a DB2 database. The backup was created on this machine, and is being restored to the same machine, but changing the...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.