473,785 Members | 2,989 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Redirected Restore of DB With Stored Procedures

Ran into a problem doing a redirected restore of a database with SQL
stored procedures.

On our production server database DPXXX001 has a number of SQL stored
procedures defined. After installing a new release into production I
want to create another copy of this onto our test box using name DTXXX001.

I do a redirected restore, which completes successfully. However when I
try to connect to the restored database I get -

SQL2048N An error occurred while accessing object "SQL PROCEDURE FILES"
Reason code "7".

I tried putting back the original database (from a backup which I had just
taken) but was getting similar problems.

Eventually I had to db2look / db2move the database from production into an
empty database on our test server, and then manually recreate the stored
procedures.

We are DB2 V7.2 Fixpack 7 on AIX 4.3.3.

Phil
Nov 12 '05 #1
2 2969
Sounds like this is a known problem. The easiest workaround should be to
shut down/restart the instance before trying to connect. It has to do
with file locking contentions/cached libraries etc.

Philip Nelson wrote:
Ran into a problem doing a redirected restore of a database with SQL
stored procedures.

On our production server database DPXXX001 has a number of SQL stored
procedures defined. After installing a new release into production I
want to create another copy of this onto our test box using name DTXXX001.

I do a redirected restore, which completes successfully. However when I
try to connect to the restored database I get -

SQL2048N An error occurred while accessing object "SQL PROCEDURE FILES"
Reason code "7".

I tried putting back the original database (from a backup which I had just
taken) but was getting similar problems.

Eventually I had to db2look / db2move the database from production into an
empty database on our test server, and then manually recreate the stored
procedures.

We are DB2 V7.2 Fixpack 7 on AIX 4.3.3.

Phil

Nov 12 '05 #2
Philip Nelson <gu*****@yahoo. co.uk> wrote in
news:pa******** *************** *****@yahoo.co. uk:
Ran into a problem doing a redirected restore of a database with SQL
stored procedures.

On our production server database DPXXX001 has a number of SQL stored
procedures defined. After installing a new release into production I
want to create another copy of this onto our test box using name
DTXXX001.

I do a redirected restore, which completes successfully. However when
I try to connect to the restored database I get -

SQL2048N An error occurred while accessing object "SQL PROCEDURE
FILES" Reason code "7".


Try to delete directory

<instpath>/sqllib/function/routine/sqlproc/<dbname>

ex:

/home/db2inst7/sqllib/function/routine/sqlproc/mydb

and then db2stop and db2start
Nov 12 '05 #3

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

Similar topics

2
2937
by: M A Srinivas | last post by:
Hello all, I have the following requirement (SQL 2000, SP2) 1. Need to restore production database(A) to another database (B) on another server (No direct connection) 2. In the restored back-up(B) SP codes should not be visible (even to sa) or all SP's can be deleted . 3. This needs to be carried out daily
2
2852
by: Philip Nelson | last post by:
Ran into a problem doing a redirected restore of a database with SQL stored procedures. On our production server database DPXXX001 has a number of SQL stored procedures defined. After installing a new release into production I want to create another copy of this onto our test box using name DTXXX001. I do a redirected restore, which completes successfully. However when I try to connect to the restored database I get -
3
3510
by: Vikrant | last post by:
Friends, Due an application (old) install program problem, Under AIX I could only create DB2 instance, I could also catalog it. Its complex application and I am not expert in creating full database for this application, but I have desired DB2 backup (by db2 backup db command). Can I do redirected restore (SET TABLESPACE CONTAINERS ....) only when instance is created & cataloged , I am under the impression that redirected restore is...
1
10332
by: Vikrant | last post by:
Hi Kelly This is from old response by you. What is 'callerac' parameter in REDIRECTED restore, how can I provide 'callerac' value ? Thanks, VKG =====
9
14017
by: GL | last post by:
I am running DB2 8.1.1 on AIX 5.1 Having a problem with a redirected restore. Once into the restore continue phase, I immediately get the following “SQL2059W A device full warning was encountered on device "TBS_IDX". Do you want to continue(c), terminate this device only(d), abort the utility(t) ? (c/d/t) t
1
2790
by: Jack | last post by:
Is it possible to find out what the tablespace definitions are of database you are about to build using a redirected restore? What I am wanting to do is build a script that can take only a backup file of a database and do a redirected restore into another database. This means I may not know or have access to the database where the backup originated at. It seems like once you start the redirected restore there is no way to do a list...
7
6273
by: CCC via DBMonster.com | last post by:
We use redirected restore to refresh test from prod on different AIX 5.2 servers. The databases have the same number, size and names of cooked containers. The only difference is the fully qualified path contains a different "SID": eg. "/db2/PRD/data1/..." versus "/db2/TST/data1/...". (Please note as an SAP installation I cannot change this layout). We use "set tablespace container" statements to redefine the fully qualified container...
11
13588
by: Chris | last post by:
I have searched this group for answers and tried the responses. I am trying to Use an full online backup from our production server and apply it to our test server. The Tablespaces in the productions server are on the d drive and my test server has no d drive. The restore command i am using is: RESTORE DATABASE CENTRAL FROM "C:\DB2Backups" TAKEN AT 20050620000000 INTO CENT0620 REDIRECT;
1
2208
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". However user x has access read, insert, delete rights to the advise & explain tables as well the tablespace where tables exist. I am perplexed and for some reason think it has something to do with the redirected restore am I correct. Any replys...
0
10330
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10093
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8976
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7500
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3654
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2880
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.