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

Unable to restore DB2 Database on Linux

1
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 name of the database, and redirecting the tablespaces. The system is running DB2 Express C V9.5 and RHEL5 with latest updates

The restore commands we are trying to run are as follows:

Expand|Select|Wrap|Line Numbers
  1. RESTORE DATABASE CARDS FROM "/opt/rccs/data/backups" TAKEN AT 20081105140449 TO "/opt/rccs/data" INTO bkl2 NEWLOGPATH "/opt/rccs/data/bkl2/dblogs" WITH 2 BUFFERS BUFFER 1024 REDIRECT PARALLELISM 1 WITHOUT PROMPTING;
  2. SET TABLESPACE CONTAINERS FOR  7 REPLAY ROLLFORWARD CONTAINER OPERATIONS USING (PATH "/opt/rccs/data/bkl2/ts/cards");
  3. SET TABLESPACE CONTAINERS FOR 12 REPLAY ROLLFORWARD CONTAINER OPERATIONS USING (PATH "/opt/rccs/data/bkl2/ts/changedata");
  4. SET TABLESPACE CONTAINERS FOR  5 REPLAY ROLLFORWARD CONTAINER OPERATIONS USING (PATH "/opt/rccs/data/bkl2/ts/config");
  5. SET TABLESPACE CONTAINERS FOR  8 REPLAY ROLLFORWARD CONTAINER OPERATIONS USING (PATH "/opt/rccs/data/bkl2/ts/transactions");
  6. SET TABLESPACE CONTAINERS FOR  4 REPLAY ROLLFORWARD CONTAINER OPERATIONS USING (PATH "/opt/rccs/data/bkl2/ts/user");
  7. SET TABLESPACE CONTAINERS FOR  9 REPLAY ROLLFORWARD CONTAINER OPERATIONS USING (PATH "/opt/rccs/data/bkl2/ts/tranmessage");
  8. SET TABLESPACE CONTAINERS FOR 11 REPLAY ROLLFORWARD CONTAINER OPERATIONS USING (FILE "/opt/rccs/data/bkl2/ts/TSASNAA" 124160);
  9. SET TABLESPACE CONTAINERS FOR 10 REPLAY ROLLFORWARD CONTAINER OPERATIONS USING (FILE "/opt/rccs/data/bkl2/ts/TSASNUOW" 57344);
  10. RESTORE DATABASE CARDS CONTINUE;
  11. ROLLFORWARD DATABASE bkl2 TO END OF LOGS AND COMPLETE;
  12.  
This script, executed from a shell via a "db2 -tf" command, works perfectly on another, similarly configured machine when it was used to restore an existing database to a new name. When the same script was executed on the problem machine the first command in the script, the RESTORE command, fails with an SQL1032N error. This error is "No start database manager command was issued", yet if we execute a db2start command, we get the message "The database manager is already active".

We are able to create (and drop) databases from the same shell.

The output from the db2level command is:

DB21085I Instance "dbadmin" uses "32" bits and DB2 code release SQL09050" with level identifier "03010107".
Informational tokens are "DB2 v9.5.0.0", "s071001", "LINUXIA3295", and Fix Pack "0".
Product is installed at "/opt/IBM/db2/V9.5".

and is identical on both machines.

I'm out of ideas as to a solution. Any help will be appreciated.

Mike Laris
mlaris@sumx.com
Nov 7 '08 #1
1 5198
Please set your instace and then attach to the instance using your db2admin userid and retry.
Dec 2 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: FoxRunner | last post by:
Hi folks, I got a script which restores a database. It works fine if it is running in my Query Analyzer. It fails when I put this script in an automated schedule using the SQL agent. This...
2
by: DMAC | last post by:
The following failed in EM (or whatever it is called now management studio I think) and I scripted it out and ran it in a query window to get more info. This works fine in SQL 2000 but not in 2005....
4
by: Andy J | last post by:
Hi Everyone NEW USER Q. I am trying to restore a database backup image to another machine. Both machines are installed with same DB2 7.2 installation package. Version: 7, Release: 2,...
1
by: ad | last post by:
I want to backup and restore a database in asp.net. The backup process is successful and fail when restore with message: User does not have permission to RESTORE database 'Health'. RESTORE...
2
by: san | last post by:
Hello, i am in great trouble. I want to revert back to original state of database before i performed restore database on my sql server 2K Database. Accidently i didn't take backup of my Database...
1
by: Utahduck | last post by:
I've been having some issues so forgive me if this double-posts. Because I have some large but static Filegroups within a database I prefer to backup my filegroups instead of everything at once. ...
1
by: GitarJake | last post by:
Hello, I am getting the rather odd error below; hope you can help. RESTORE DATABASE is terminating abnormally. File 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\trial_44testingc'...
5
by: Neil | last post by:
I'm trying to use ADO to restore a SQL 7 database using a backup file. The database already exists on the target computer, and is named the same as on the source computer, and the MDF and LDF files...
3
by: Bill E. | last post by:
I'm trying to restore a database backed up a production machine onto my development machine. I don't want to restore the transaction logs (there are two) because they are far too large and are...
0
by: arulananthi | last post by:
hi, I am getting the rather odd error below; hope you can help. RESTORE DATABASE is terminating abnormally. File 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\trial_44testingc' is...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
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...

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.