472,805 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

need to restore old database (database server 4.01 AIX)

HSP
hi.

i need to restore an old database. The db was backed up using a DLT drive,
using 2 volumes. The content for the tapes was copied to file onto Solaris
machine using rsh and dd (for backup purposes). Now, the drive is defective
and can't read the tapes anymore.

Server is AIX 4.3.2 and database is IBM DB2 Server (DB2 for AIX Version
2.1.2)

I tried doing an NFS export from solaris machine. and doing restore database
..... from /mnt but i got the following message:

SQL2542N No match for a database image file was found based on the source
database alias and timestamp provided.

Any attempt to restore history or database was unsucessful with the same
message

The files seems to follow name conventions for that db2 version (verified
doing a backup for small db)

/mnt/vol1:
total 104357184
-rw-rw-r-- 1 db2admin db2admin 53404766208 Dec 23 13:32
CARTOLAS.0.db2admin.0.
20040131220558.001

/mnt/vol2:
total 23030816
-rw-rw-r-- 1 db2admin db2admin 11786010624 Dec 24 07:33
CARTOLAS.0.db2admin.0.
20040131220558.002

Also attempted to use fifo without luck (i understand that is supported from
v7.1)

Questions:

1. can convert tapes backups to disk, shared with NFS ?
2. i tested reading large files (with dd) without problems. Is the same
valid for db2 ?
3. i can't find any trailer at end of the volume 1 and volume 2, is this
normal ?
4. i'm searching some driver for simulate a tape drive but can't find such
program

i need ideas please!!

thanks.

Dec 24 '05 #1
5 3158
Can you post the backup command that was used and the restore command
that failed?

Phil Sherman
HSP wrote:
hi.

i need to restore an old database. The db was backed up using a DLT drive,
using 2 volumes. The content for the tapes was copied to file onto Solaris
machine using rsh and dd (for backup purposes). Now, the drive is defective
and can't read the tapes anymore.

Server is AIX 4.3.2 and database is IBM DB2 Server (DB2 for AIX Version
2.1.2)

I tried doing an NFS export from solaris machine. and doing restore database
.... from /mnt but i got the following message:

SQL2542N No match for a database image file was found based on the source
database alias and timestamp provided.

Any attempt to restore history or database was unsucessful with the same
message

The files seems to follow name conventions for that db2 version (verified
doing a backup for small db)

/mnt/vol1:
total 104357184
-rw-rw-r-- 1 db2admin db2admin 53404766208 Dec 23 13:32
CARTOLAS.0.db2admin.0.
20040131220558.001

/mnt/vol2:
total 23030816
-rw-rw-r-- 1 db2admin db2admin 11786010624 Dec 24 07:33
CARTOLAS.0.db2admin.0.
20040131220558.002

Also attempted to use fifo without luck (i understand that is supported from
v7.1)

Questions:

1. can convert tapes backups to disk, shared with NFS ?
2. i tested reading large files (with dd) without problems. Is the same
valid for db2 ?
3. i can't find any trailer at end of the volume 1 and volume 2, is this
normal ?
4. i'm searching some driver for simulate a tape drive but can't find such
program

i need ideas please!!

thanks.

Dec 25 '05 #2
Also, What version of DB2 are you attempting to restore to?

Phil Sherman

Phil Sherman wrote:
Can you post the backup command that was used and the restore command
that failed?

Phil Sherman
HSP wrote:
hi.

i need to restore an old database. The db was backed up using a DLT
drive, using 2 volumes. The content for the tapes was copied to file
onto Solaris machine using rsh and dd (for backup purposes). Now, the
drive is defective and can't read the tapes anymore.

Server is AIX 4.3.2 and database is IBM DB2 Server (DB2 for AIX
Version 2.1.2)

I tried doing an NFS export from solaris machine. and doing restore
database .... from /mnt but i got the following message:

SQL2542N No match for a database image file was found based on the
source
database alias and timestamp provided.

Any attempt to restore history or database was unsucessful with the
same message

The files seems to follow name conventions for that db2 version
(verified doing a backup for small db)

/mnt/vol1:
total 104357184
-rw-rw-r-- 1 db2admin db2admin 53404766208 Dec 23 13:32
CARTOLAS.0.db2admin.0.
20040131220558.001

/mnt/vol2:
total 23030816
-rw-rw-r-- 1 db2admin db2admin 11786010624 Dec 24 07:33
CARTOLAS.0.db2admin.0.
20040131220558.002

Also attempted to use fifo without luck (i understand that is
supported from v7.1)

Questions:

1. can convert tapes backups to disk, shared with NFS ?
2. i tested reading large files (with dd) without problems. Is the
same valid for db2 ?
3. i can't find any trailer at end of the volume 1 and volume 2, is
this normal ?
4. i'm searching some driver for simulate a tape drive but can't find
such program

i need ideas please!!

thanks.

Dec 25 '05 #3
HSP
Thanks Phil !!

The command is

chdev -l 'rmt0' -a block_size=4096 (as root)

db2 backup database cartolas to /dev/rmt0 (as db2admin)

from /usr/lpp/db2_02_01/lpp.README:

IBM Database Server for AIX Version 4.01
AIX-Specific IBM DB2 Server (DB2 for AIX Version 2.1.2)

sorry, there is not db2level command in this version.

from db2diag.log
Sat Dec 24 17:35:01 2005
db2admin pid(36020) process (db2agent (CARTOLAS))
buffer_pool_services sqlbStopPools Probe:0 Database (CARTOLAS)

Stopping the database.

Sat Dec 24 17:35:24 2005
db2admin pid(28880) process (db2med.36020.0)
oper_system_services sqlofindn Probe:37

0000 007f ....
Sat Dec 24 17:35:25 2005
db2admin pid(28880) process (db2med.36020.0)
database_utilities sqluMCInitRestoreMC Probe:360

Media Controller -- sqluInitFileDevice() ! device initialization warning

Sat Dec 24 17:35:25 2005
db2admin pid(36020) process (db2agent (CARTOLAS))
database_utilities sqludrsa Probe:125 Database (CARTOLAS)

DiagData
ffff f612 ....
Sat Dec 24 17:35:25 2005
db2admin pid(36020) process (db2agent (CARTOLAS))
database_utilities sqludrsa Probe:0 Database (CARTOLAS)

Restore terminated.

Sat Dec 24 17:35:25 2005
db2admin pid(36020) process (db2agent (CARTOLAS))
buffer_pool_services sqlbStopPools Probe:0 Database (CARTOLAS)

Stopping the database.

"Phil Sherman" <ps******@ameritech.net> escribió en el mensaje
news:x0****************@newssvr22.news.prodigy.net ...
Also, What version of DB2 are you attempting to restore to?

Phil Sherman

Phil Sherman wrote:
Can you post the backup command that was used and the restore command
that failed?

Phil Sherman
HSP wrote:
hi.

i need to restore an old database. The db was backed up using a DLT
drive, using 2 volumes. The content for the tapes was copied to file
onto Solaris machine using rsh and dd (for backup purposes). Now, the
drive is defective and can't read the tapes anymore.

Server is AIX 4.3.2 and database is IBM DB2 Server (DB2 for AIX Version
2.1.2)

I tried doing an NFS export from solaris machine. and doing restore
database .... from /mnt but i got the following message:

SQL2542N No match for a database image file was found based on the
source
database alias and timestamp provided.

Any attempt to restore history or database was unsucessful with the same
message

The files seems to follow name conventions for that db2 version
(verified doing a backup for small db)

/mnt/vol1:
total 104357184
-rw-rw-r-- 1 db2admin db2admin 53404766208 Dec 23 13:32
CARTOLAS.0.db2admin.0.
20040131220558.001

/mnt/vol2:
total 23030816
-rw-rw-r-- 1 db2admin db2admin 11786010624 Dec 24 07:33
CARTOLAS.0.db2admin.0.
20040131220558.002

Also attempted to use fifo without luck (i understand that is supported
from v7.1)

Questions:

1. can convert tapes backups to disk, shared with NFS ?
2. i tested reading large files (with dd) without problems. Is the same
valid for db2 ?
3. i can't find any trailer at end of the volume 1 and volume 2, is this
normal ?
4. i'm searching some driver for simulate a tape drive but can't find
such program

i need ideas please!!

thanks.

Dec 25 '05 #4
You didn't include the restore command you used but the following may help:

Your original backup was to a single location - /dev/rmt0. The backup
was larger than the maximum file size allowed (the capacity of the tape)
so the backup went into a second file to complete the backup. This is
similar to what happens on a disk backup when the backup hits "ulimit"
and is forced to go to a second file.

Your original post indicates that you mounted the two files in separate
directories for the restore. This is a "change" from the backup
configuration.

Try placing the two files in the same directory and using a single mount
point to access them. Your restore database command should look
something like:
restore database CARTOLAS from /mnt/oldbkup
I'm not sure if you will need the "taken at" clause with your back level
DB2. Reverify the file name structure and the pathing to the files from
the small database backup you took. If the pathing includes additional
directories after the "TO directory" in the backup command, then you
will have to architect the same pathing for your mount point.

It's also possible that the "dd" command copied system generated
labelling information from the tape drive when copying to disk. I'd dump
the first few blocks of a backup to disk and the tape files on disk to
see if there's some additional "header" stuff that "dd" included with
the data. If there is, then there may also be trailer stuff after the
data. Excess stuff can be easily stripped off by copying the files. I'd
also try making a backup of a small database to the remote (mounted)
solaris box. If the backup fails because the device isn't accessible
then a restore won't work and you'll probably have to copy the files to
the local machine.

Phil Sherman
HSP wrote:
Thanks Phil !!

The command is

chdev -l 'rmt0' -a block_size=4096 (as root)

db2 backup database cartolas to /dev/rmt0 (as db2admin)

from /usr/lpp/db2_02_01/lpp.README:

IBM Database Server for AIX Version 4.01
AIX-Specific IBM DB2 Server (DB2 for AIX Version 2.1.2)

sorry, there is not db2level command in this version.

from db2diag.log
Sat Dec 24 17:35:01 2005
db2admin pid(36020) process (db2agent (CARTOLAS))
buffer_pool_services sqlbStopPools Probe:0 Database (CARTOLAS)

Stopping the database.

Sat Dec 24 17:35:24 2005
db2admin pid(28880) process (db2med.36020.0)
oper_system_services sqlofindn Probe:37

0000 007f ....
Sat Dec 24 17:35:25 2005
db2admin pid(28880) process (db2med.36020.0)
database_utilities sqluMCInitRestoreMC Probe:360

Media Controller -- sqluInitFileDevice() ! device initialization warning

Sat Dec 24 17:35:25 2005
db2admin pid(36020) process (db2agent (CARTOLAS))
database_utilities sqludrsa Probe:125 Database (CARTOLAS)

DiagData
ffff f612 ....
Sat Dec 24 17:35:25 2005
db2admin pid(36020) process (db2agent (CARTOLAS))
database_utilities sqludrsa Probe:0 Database (CARTOLAS)

Restore terminated.

Sat Dec 24 17:35:25 2005
db2admin pid(36020) process (db2agent (CARTOLAS))
buffer_pool_services sqlbStopPools Probe:0 Database (CARTOLAS)

Stopping the database.

"Phil Sherman" <ps******@ameritech.net> escribió en el mensaje
news:x0****************@newssvr22.news.prodigy.net ...
Also, What version of DB2 are you attempting to restore to?

Phil Sherman

Phil Sherman wrote:
Can you post the backup command that was used and the restore command
that failed?

Phil Sherman
HSP wrote:
hi.

i need to restore an old database. The db was backed up using a DLT
drive, using 2 volumes. The content for the tapes was copied to file
onto Solaris machine using rsh and dd (for backup purposes). Now, the
drive is defective and can't read the tapes anymore.

Server is AIX 4.3.2 and database is IBM DB2 Server (DB2 for AIX Version
2.1.2)

I tried doing an NFS export from solaris machine. and doing restore
database .... from /mnt but i got the following message:

SQL2542N No match for a database image file was found based on the
source
database alias and timestamp provided.

Any attempt to restore history or database was unsucessful with the same
message

The files seems to follow name conventions for that db2 version
(verified doing a backup for small db)

/mnt/vol1:
total 104357184
-rw-rw-r-- 1 db2admin db2admin 53404766208 Dec 23 13:32
CARTOLAS.0.db2admin.0.
20040131220558.001

/mnt/vol2:
total 23030816
-rw-rw-r-- 1 db2admin db2admin 11786010624 Dec 24 07:33
CARTOLAS.0.db2admin.0.
20040131220558.002

Also attempted to use fifo without luck (i understand that is supported
from v7.1)

Questions:

1. can convert tapes backups to disk, shared with NFS ?
2. i tested reading large files (with dd) without problems. Is the same
valid for db2 ?
3. i can't find any trailer at end of the volume 1 and volume 2, is this
normal ?
4. i'm searching some driver for simulate a tape drive but can't find
such program

i need ideas please!!

thanks.


Dec 26 '05 #5
HSP
Thanks Phil, i tried with both files on same directory, /mnt in this case
with identical results.
with dd, the copy from tape to disk does not alter the content (at least
with the parameters supplied).
Finally i've got a new tape drive and now the database is restoring. i'm
crossing my fingers and hoping a succesfull restore.
regards, Haroldo

"Phil Sherman" <ps******@ameritech.net> escribió en el mensaje
news:gE**************@newssvr17.news.prodigy.com.. .
You didn't include the restore command you used but the following may
help:

Your original backup was to a single location - /dev/rmt0. The backup was
larger than the maximum file size allowed (the capacity of the tape) so
the backup went into a second file to complete the backup. This is similar
to what happens on a disk backup when the backup hits "ulimit" and is
forced to go to a second file.

Your original post indicates that you mounted the two files in separate
directories for the restore. This is a "change" from the backup
configuration.

Try placing the two files in the same directory and using a single mount
point to access them. Your restore database command should look something
like:
restore database CARTOLAS from /mnt/oldbkup
I'm not sure if you will need the "taken at" clause with your back level
DB2. Reverify the file name structure and the pathing to the files from
the small database backup you took. If the pathing includes additional
directories after the "TO directory" in the backup command, then you will
have to architect the same pathing for your mount point.

It's also possible that the "dd" command copied system generated labelling
information from the tape drive when copying to disk. I'd dump the first
few blocks of a backup to disk and the tape files on disk to see if
there's some additional "header" stuff that "dd" included with the data.
If there is, then there may also be trailer stuff after the data. Excess
stuff can be easily stripped off by copying the files. I'd also try making
a backup of a small database to the remote (mounted) solaris box. If the
backup fails because the device isn't accessible then a restore won't work
and you'll probably have to copy the files to the local machine.

Phil Sherman
HSP wrote:
Thanks Phil !!

The command is

chdev -l 'rmt0' -a block_size=4096 (as root)

db2 backup database cartolas to /dev/rmt0 (as db2admin)

from /usr/lpp/db2_02_01/lpp.README:

IBM Database Server for AIX Version 4.01
AIX-Specific IBM DB2 Server (DB2 for AIX Version 2.1.2)

sorry, there is not db2level command in this version.

from db2diag.log
Sat Dec 24 17:35:01 2005
db2admin pid(36020) process (db2agent (CARTOLAS))
buffer_pool_services sqlbStopPools Probe:0 Database (CARTOLAS)

Stopping the database.

Sat Dec 24 17:35:24 2005
db2admin pid(28880) process (db2med.36020.0)
oper_system_services sqlofindn Probe:37

0000 007f ....
Sat Dec 24 17:35:25 2005
db2admin pid(28880) process (db2med.36020.0)
database_utilities sqluMCInitRestoreMC Probe:360

Media Controller -- sqluInitFileDevice() ! device initialization warning

Sat Dec 24 17:35:25 2005
db2admin pid(36020) process (db2agent (CARTOLAS))
database_utilities sqludrsa Probe:125 Database (CARTOLAS)

DiagData
ffff f612 ....
Sat Dec 24 17:35:25 2005
db2admin pid(36020) process (db2agent (CARTOLAS))
database_utilities sqludrsa Probe:0 Database (CARTOLAS)

Restore terminated.

Sat Dec 24 17:35:25 2005
db2admin pid(36020) process (db2agent (CARTOLAS))
buffer_pool_services sqlbStopPools Probe:0 Database (CARTOLAS)

Stopping the database.

"Phil Sherman" <ps******@ameritech.net> escribió en el mensaje
news:x0****************@newssvr22.news.prodigy.net ...
Also, What version of DB2 are you attempting to restore to?

Phil Sherman

Phil Sherman wrote:

Can you post the backup command that was used and the restore command
that failed?

Phil Sherman
HSP wrote:
>hi.
>
>i need to restore an old database. The db was backed up using a DLT
>drive, using 2 volumes. The content for the tapes was copied to file
>onto Solaris machine using rsh and dd (for backup purposes). Now, the
>drive is defective and can't read the tapes anymore.
>
>Server is AIX 4.3.2 and database is IBM DB2 Server (DB2 for AIX Version
>2.1.2)
>
>I tried doing an NFS export from solaris machine. and doing restore
>database .... from /mnt but i got the following message:
>
>SQL2542N No match for a database image file was found based on the
>source
>database alias and timestamp provided.
>
>Any attempt to restore history or database was unsucessful with the
>same message
>
>The files seems to follow name conventions for that db2 version
>(verified doing a backup for small db)
>
>/mnt/vol1:
>total 104357184
>-rw-rw-r-- 1 db2admin db2admin 53404766208 Dec 23 13:32
>CARTOLAS.0.db2admin.0.
>20040131220558.001
>
>/mnt/vol2:
>total 23030816
>-rw-rw-r-- 1 db2admin db2admin 11786010624 Dec 24 07:33
>CARTOLAS.0.db2admin.0.
>20040131220558.002
>
>Also attempted to use fifo without luck (i understand that is supported
>from v7.1)
>
>Questions:
>
>1. can convert tapes backups to disk, shared with NFS ?
>2. i tested reading large files (with dd) without problems. Is the same
>valid for db2 ?
>3. i can't find any trailer at end of the volume 1 and volume 2, is
>this normal ?
>4. i'm searching some driver for simulate a tape drive but can't find
>such program
>
>i need ideas please!!
>
>thanks.
>
>



Dec 28 '05 #6

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

Similar topics

3
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...
2
by: Vikrant | last post by:
Friends, I have read DB2/UDB 8.x 'RESTORE DATABASE Command', with my 'limited' knowledge & skill. I think it should address my concern, but I want advice/ opinion / experience and any care I...
4
by: Scott Holland | last post by:
HELP - Need to connect to DB2 database on AIX from NT server. Also AS/400 from NT Server -- I am experienced in ORACLE and a novice at DB2. What tools would be the equivalent of Net*8 or...
4
by: ibm_97 | last post by:
Hi all, Environment: DB2 v8.1with fixpack 9 on AIX, SQL bi-directional replication. Server A: capture process Server B: capture and apply process 1. Shut down all capture and apply...
3
by: cerbdog | last post by:
Hello, all. Was hoping someone might be able to help us out with an issue: We're trying to perform a restore from a backup of one AIX 5.1 server, we'll call it "AIX", to another AIX 5.1 server;...
4
by: Christian Maslen | last post by:
Hi All, I understand in older versions of DB2/UDB this was not possible. The following article explains how I might do this ...
1
by: pinoy2ser | last post by:
Hello All, im trying to restore a 500GB database to a target AIX server.. its actually my first time doing this..it takes me 2hours to perform a full backup..however when i try the restore, it...
3
by: aka | last post by:
Hi, I'm actually working on the migration of a DB2 unicode db (V8.2 FP 15) from a Sunfire machine with SunOS (64 bit, Big-endian) to an AIX 5.3 (64-bit, Big-endian) server located in US. The...
4
by: satish mullapudi | last post by:
Hi Everyone, Am facing an issue. Am using DB2 UDB EE v8.2 on AIX platform. I have taken the offline backup of a db( say SAMPLE ) on AIX platform. Now I want to restore the same on Linux platform....
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.