HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SAP 4.6C/Oracle DB Online Recovery
Operating System - HP-UX
1838496
Members
2528
Online
110126
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
03-28-2001 01:24 PM
03-28-2001 01:24 PM
SAP 4.6C/Oracle DB Online Recovery
We are doing the Online Database recovery Test for SAP 4.6C Oracle Database. We have taken a offline and online backup(with the archive log) of the source system. We have installed SAP 4.6C in a target system. Both the target and the source systems have the same SID name. We trying to restore the database of the source to the target. The offline database recovery test is successful however we have failed with the online database recovery test.
What are the following things that needs to be done (in sequence) to complete the online database recovery test.
What are the following things that needs to be done (in sequence) to complete the online database recovery test.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2001 12:11 AM
03-29-2001 12:11 AM
Re: SAP 4.6C/Oracle DB Online Recovery
It depends what you are trying to recover really, but as a guide if you wanted to recover a corrupt datafile (eg: /file01.dbf)the procedure would be:
If I assume /file01.dbf is in tablespace ts_my_data
alter tablespace ts_my_data offline;
then restore an old know good copy of the datafile (/file01.dbf). If you are restoring to a different location (file path) then you will need to tell oracle to rename the file.
ALTER DATABASE RENAME FILE 'old' TO 'new';
when the file has been restore you need to tell oracle to do the recovery:
RECOVER TABLESPACE ts_my_data;
You may have to type AUTO at the next prompt to tell oracle to automatically apply the archive logs.
That should recover the tablespace.
When you get the media recovery complete message you need to bring the tablespace back on line:
ALTER TABLESPACE ts_my_data online;
Thats it!
Good Luck
John
If I assume /file01.dbf is in tablespace ts_my_data
alter tablespace ts_my_data offline;
then restore an old know good copy of the datafile (/file01.dbf). If you are restoring to a different location (file path) then you will need to tell oracle to rename the file.
ALTER DATABASE RENAME FILE 'old' TO 'new';
when the file has been restore you need to tell oracle to do the recovery:
RECOVER TABLESPACE ts_my_data;
You may have to type AUTO at the next prompt to tell oracle to automatically apply the archive logs.
That should recover the tablespace.
When you get the media recovery complete message you need to bring the tablespace back on line:
ALTER TABLESPACE ts_my_data online;
Thats it!
Good Luck
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2001 03:46 AM
03-29-2001 03:46 AM
Re: SAP 4.6C/Oracle DB Online Recovery
Hi,
If I understand correctly, you are performing a full database recovery. Obviously, What you can recover depends on what you have backed up. Before explaining the restore, I explain how we backup (sure I know there are more sophisticated tools like Oracle RMAN and so on).
Online Backup
We are using a home made set of scripts which run (within Omniback 2.55 and 3.5) and do the following :
- mark the begining of backup in archive of redo-log directory
- pass tablespace by tablespace to issue a begin backup/ execute the backup on tape/ issue an end-backup. At this step, we force a redo log switch and then a new archive file.
- generate a backup of controlfile
- force again a switch of redolog to get a last archive file (paranoid mode, push me to double the switch)
- backup all archive of redolog generated since the mark we generated at first step.
Restore and recover
- restore what has been backed up
- log-in as your dba account with the correct environment
- use svrmgrl and connect internal
- issue : STARTUP MOUNT (to avoid opening because with online backup, you let your database in an open state)
- issue : RECOVER AUTOMATIC DATABASE UNTIL CANCEL USING BACKUP CONTROLFILE;
- you should have at least one or two archive files applied automatically in sequence up to a point where you get :
ORA-00308: cannot open archived log
ORA-07360 sfifi...
Specify log : ( | filename | AUTO | CANCEL
then, just type CANCEL
and you 'll get :
Media recovery cancelled
Finally, issue ALTER DATABASE OPEN RESETLOGS
At this point your database should be ok. Perhaps there are better ways but it works well since Oracle7 up to 8i.
I Hope this will help
Regards
(I attached a bonus : nice document on this topic)
If I understand correctly, you are performing a full database recovery. Obviously, What you can recover depends on what you have backed up. Before explaining the restore, I explain how we backup (sure I know there are more sophisticated tools like Oracle RMAN and so on).
Online Backup
We are using a home made set of scripts which run (within Omniback 2.55 and 3.5) and do the following :
- mark the begining of backup in archive of redo-log directory
- pass tablespace by tablespace to issue a begin backup/ execute the backup on tape/ issue an end-backup. At this step, we force a redo log switch and then a new archive file.
- generate a backup of controlfile
- force again a switch of redolog to get a last archive file (paranoid mode, push me to double the switch)
- backup all archive of redolog generated since the mark we generated at first step.
Restore and recover
- restore what has been backed up
- log-in as your dba account with the correct environment
- use svrmgrl and connect internal
- issue : STARTUP MOUNT (to avoid opening because with online backup, you let your database in an open state)
- issue : RECOVER AUTOMATIC DATABASE UNTIL CANCEL USING BACKUP CONTROLFILE;
- you should have at least one or two archive files applied automatically in sequence up to a point where you get :
ORA-00308: cannot open archived log
ORA-07360 sfifi...
Specify log : (
then, just type CANCEL
and you 'll get :
Media recovery cancelled
Finally, issue ALTER DATABASE OPEN RESETLOGS
At this point your database should be ok. Perhaps there are better ways but it works well since Oracle7 up to 8i.
I Hope this will help
Regards
(I attached a bonus : nice document on this topic)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP