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 > Problem in creating DB from backup

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-13-09, 09:28
kaushal kaushal is offline
Registered User
 
Join Date: Aug 2009
Posts: 2
Problem in creating DB from backup

Hi,
I am trying to create DB from a backUp, but I am getting the following error.

SQL0902C A system error (reason code = "") occurred. Subsequent
SQL statements cannot be processed.

Explanation:
A system error occurred.
User response:

Record the message number (SQLCODE) and reason code in the message.
If trace was active, invoke the Independent Trace Facility at the
operating system command prompt. Then contact your technical service
representative with the following information:

Problem description
SQLCODE and embedded reason code
SQLCA contents if possible
Trace file if possible.
Federated system users: isolate the problem to the data source failing
the request (refer to the Troubleshooting Guide to determine which data
source is failing to process the SQL statement) and take the necessary
diagnostic steps for that data source. The problem determination
procedures for data sources vary, so refer to the applicable data source
manuals.

sqlcode: -902
sqlstate: 58005

I am not able to track the reason for this. Please help me in resolving this.
I am using DB2 9.5 . Note: even reinstallation of DB2 didnt worked

Thanks in advance
Kaushal
Reply With Quote
  #2 (permalink)  
Old 08-13-09, 09:49
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
I'm afraid you'll need to provide a bit more information, e.g.
- what platform are you running on;
- where was the backup taken;
- the exact RESTORE command you're using;
- what is written to db2diag.log when this error happens...
Reply With Quote
  #3 (permalink)  
Old 08-17-09, 09:30
kaushal kaushal is offline
Registered User
 
Join Date: Aug 2009
Posts: 2
Hi,
Thanks for the reply.
I have attached the log file here.
I am using windows XP, the database back up was taken in a remote system and was later copied to my local machine.
The command used to restore is given below:

RESTORE DATABASE APM9 FROM "C:\Originations\DB2BackUp" TAKEN AT 20090813052414 TO "C:" INTO APM9 WITH 2 BUFFERS BUFFER 1024 PARALLELISM 1 WITHOUT PROMPTING;

Kaushal
Attached Files
File Type: txt db2diag.txt (12.7 KB, 286 views)
Reply With Quote
  #4 (permalink)  
Old 08-17-09, 09:48
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
The most likely reason for the problem is that DB2 attempts to re-created the original tablespace containers but the disk or directory is missing. Check "redirected restore" in the manual.
Reply With Quote
  #5 (permalink)  
Old 08-18-09, 00:01
pavand pavand is offline
Registered User
 
Join Date: Aug 2009
Posts: 4
Hi Kaushal,

you are using restoration command..

RESTORE DATABASE APM9 FROM "C:\Originations\DB2BackUp" TAKEN AT 20090813052414 TO "C:" INTO APM9 WITH 2 BUFFERS BUFFER 1024 PARALLELISM 1 WITHOUT PROMPTING;

may I know why you are using TO "C:" after timestamp in restoration command..!

may be command should be..

RESTORE DATABASE APM9 FROM "C:\Originations\DB2BackUp" TAKEN AT 20090813052414 INTO APM9 WITH 2 BUFFERS BUFFER 1024 PARALLELISM 1 WITHOUT PROMPTING;

Pavan
Reply With Quote
  #6 (permalink)  
Old 08-18-09, 02:40
divakargoel divakargoel is offline
Registered User
 
Join Date: May 2005
Location: Bangalore, India
Posts: 27
"TO C:" is needed when the database whose image is being used was using Automatic Storage Tablespaces.

Try Redirected restore. You cannot restore an image taken on a remote machine to the target machine without redirected restore unless the same container paths are available on target machine.
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