- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Restore Backup From Tape
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2004 06:21 AM
тАО12-17-2004 06:21 AM
To recover what is the procedure I have to follow? I'm assuming I have to:
#restore the archive from tape
tar -xvf /dev/rmt/0m
Thing is do I have to shutdown the database and mount it (but not fully open it)? This is the first time I'm doing this and I would like to have some guidance. Thanks in advance.
Miscellaneous Info.
Oracle 8.0.5.2 running on HP-UX 11.00 64-bit
287MB RAM on D-CLASS 9000 server
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2004 06:32 AM
тАО12-17-2004 06:32 AM
SolutionAssumptions from your question:
-Your database is in cooked filesystems rather than raw devices.
-Your database was completely down at the time of the backup (cold backup means this)
-You used tar to do the backup.
-The "mount" you mention is the SQL mount database command rather than the OS mount filesystem command.
Assuming all those are correct the answer is to completely shutdown and do NOT mount the database (but DO mount the filesystem). Then do the restore as you've indicated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2004 06:49 AM
тАО12-17-2004 06:49 AM
Re: Restore Backup From Tape
When you say do not mount the database but mount the filesystem. Do I just shutdown the database and with filesystems mounted (as they would be during normal daily operation), and just run the tar command?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2004 07:27 AM
тАО12-17-2004 07:27 AM
Re: Restore Backup From Tape
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2004 07:39 AM
тАО12-17-2004 07:39 AM
Re: Restore Backup From Tape
You can start Oracle db with "NOMOUNT", "MOUNT" and "OPEN" optional state. A db in any of the states is considered still running. To be double sure, just grep oracle processes after you shut it down to see if anything still running.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2004 03:35 PM
тАО12-17-2004 03:35 PM
Re: Restore Backup From Tape
if you are testing backup and recovery for oracle database, it would be preferable that you use RMAN.
RMAN decreases the chance of you making a mistake.
I prefer to use RMAN because of the other advantages:
1. It is much (MUCH) faster than OS file copies by a long shot. I can fully backup small databases even on Windows in a few minutes.
2. It deals with the backup process at the block level so it waits for each block to become consistent to back it up, therefore no "cracked blocks" like file copying.
3. You can "easily" parallelize backup and much more importantly it can parallelize recovery.
4. Backup retension scheduling is built-in, no more do I delete this backup or not, it's part of your design and deployment process.
5. It can manage the archived redo log automatically for you (getting them off the system to somewhere safe is important) including deleting the old logs.
6. It deals with cold backups (if anybody actually wants to do one anymore).
7. One RMAN catalog database can manage a complete enterprise, Unix, Windows who cares and it can do it concurrently because the Oracle database Server is doing the real work.
8. Testing backups without restoring is built-in and that's nice as well.
9. No more putting tablespaces in backup mode and hammering the daylights out of the redo log system.
10. Making standby databases and cloning is way simpler under RMAN becuse it is designed to do that for you.
These are only a few of my favorite things.
hope this helps
regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2004 01:16 AM
тАО12-20-2004 01:16 AM
Re: Restore Backup From Tape
tar -xvf /dev/rmt/0m
it seems to be recovering, but one question....
in the output to screen I see the following....
x opt/oracle1/IRDS/archives/arch.log1_2939.dbf, 10486784 bytes, 20482 tape blocks
What is that "x" at the beginning of the line? What does it indicate?
This is the first time I'm attempting to recover information from a tape on UNIX.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2004 01:18 AM
тАО12-20-2004 01:18 AM
Re: Restore Backup From Tape
It just saying Its eXtracted the file to disk...
Nothing to worry about
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2004 04:47 AM
тАО12-20-2004 04:47 AM
Re: Restore Backup From Tape
My situation looking bleak here...
=============================================
SVRMGR> ALTER DATABASE RECOVER AUTOMATIC DATAFILE '/opt/oracle3/oradata/IRDS/assessdata01.dbf';
ALTER DATABASE RECOVER AUTOMATIC DATAFILE '/opt/oracle3/oradata/IRDS/assessdata01.dbf'
*
ORA-00283: recovery session canceled due to errors
ORA-01114: IO error writing block to file 16 (block # 1)
ORA-01110: data file 16: '/opt/oracle3/oradata/IRDS/assessdata01.dbf'
ORA-27072: skgfdisp: I/O error
HP-UX Error: 9: Bad file number
Additional information: 1
SVRMGR>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2004 05:55 AM
тАО12-20-2004 05:55 AM
Re: Restore Backup From Tape
I would see if a DBA would help you by verfying all the datafiles (same timestamp?...) and try creating the controlfile again, no space trouble (bdf...)?
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2004 05:59 AM
тАО12-20-2004 05:59 AM
Re: Restore Backup From Tape
I am now copying the file in question from the tape to disk now. I got the DB started without the error and will see what happens once the file is completely copied to disk...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2004 05:59 AM
тАО12-20-2004 05:59 AM
Re: Restore Backup From Tape
Check all the restored files to see if owner/group ADN permissions are correct!
Good luck
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2004 06:14 AM
тАО12-20-2004 06:14 AM
Re: Restore Backup From Tape
Victor is correct about the file permissions being the cause of the HP-UX error 9.
But you should not have gotten the message that the db needs recovery if you did a complete restore from a cold backup.
When you did the db backup did you backup the control files? And restore them to the location in the init.ora?
When you shutdown for a cold backup you should copy all the data files, control files, online redo logs (they will be empty, but it makes recovery easier).
The controlfile contains the last system change# (SCN) for each datafile. If your controlfile does not match your datafile you will get the message that recover is needed and you will be prompted for all the redo logs ( archive log files ) generated since the backup - up to the timestamp on the controlfile. A cold backup should contain the controlfile as well as the .bdf files.
Patti