- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Control Files not available after restoring th...
Operating System - HP-UX
1752660
Members
5622
Online
108788
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
Discussions
Discussions
Forums
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
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
тАО12-14-2006 04:39 PM
тАО12-14-2006 04:39 PM
Control Files not available after restoring the data from backup
The Autoraid attached to one of our K460 Servers has a multiple disk failures and the data was lost. Ultimately we had to format the array, Recreate the Filesystems and restored data from the backup. The Database related filesystems were restored, but looks like the control files at all the three locations were missing. Somehow, the control files are missing from the cold backup. Is there any way to bring up the Database?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2006 06:56 PM
тАО12-14-2006 06:56 PM
Re: Control Files not available after restoring the data from backup
Hi,
and welcome to the forums !
If you have lost all controlfiles you are best off going to another machine with same dblevel and copying :
alter database backup controlfile to trace;
then take the file from the trace directory, ship it to the failed machine and change the controlfile to reflect your machine locations.
And get your backup changed ;-)
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
and welcome to the forums !
If you have lost all controlfiles you are best off going to another machine with same dblevel and copying :
alter database backup controlfile to trace;
then take the file from the trace directory, ship it to the failed machine and change the controlfile to reflect your machine locations.
And get your backup changed ;-)
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2006 08:03 PM
тАО12-14-2006 08:03 PM
Re: Control Files not available after restoring the data from backup
Hello,
if the backup was a cold one, you should be able to recreate the controlfiles.
But first of all check if it is not only a permission problem.
What about the online logs?
Are they in place ?
You can create a template for a
CREATE CONTROLFILE statement
as already said, or you can google for a syntax graph and fill in all by yourself.
Be sure about the correct CHARSET !
Be sure not to miss a datafile in your statement.
Do consistency checks after you are ready.
DB-verify and "analyze table .... validate structure cascade" are tools to do this.
If you do not have corresponding onlinelogs, it might be neccessary to "open resetlogs" the DB to recreate them (?) Currently i am not sure if you can recreate onlinelogs in MOUNT state (?) Better you have them.
It might be neccessary to recreate tempfiles as well after you opened the DB.
Volker
if the backup was a cold one, you should be able to recreate the controlfiles.
But first of all check if it is not only a permission problem.
What about the online logs?
Are they in place ?
You can create a template for a
CREATE CONTROLFILE statement
as already said, or you can google for a syntax graph and fill in all by yourself.
Be sure about the correct CHARSET !
Be sure not to miss a datafile in your statement.
Do consistency checks after you are ready.
DB-verify and "analyze table .... validate structure cascade" are tools to do this.
If you do not have corresponding onlinelogs, it might be neccessary to "open resetlogs" the DB to recreate them (?) Currently i am not sure if you can recreate onlinelogs in MOUNT state (?) Better you have them.
It might be neccessary to recreate tempfiles as well after you opened the DB.
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2006 08:11 PM
тАО12-14-2006 08:11 PM
Re: Control Files not available after restoring the data from backup
hi,
if you know the location of your data files and redolog files, you can use the "create control file" command to create a new control file.
e.g.
CREATE CONTROLFILE REUSE DATABASE "MYDB" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 50
MAXLOGMEMBERS 3
MAXDATAFILES 300
MAXINSTANCES 8
MAXLOGHISTORY 500
LOGFILE
GROUP 1 '/u01/oracle/mydb/dbs/log1p716.dbf' SIZE 1M,
GROUP 2 '/u01/oracle/mydb/dbs/log2p716.dbf' SIZE 1M,
GROUP 3 '/u01/oracle/mydb/dbs/log3p716.dbf' SIZE 1M
DATAFILE
'/u01/oracle/mydb/dbs/systp716.dbf' SIZE 40M,
'/u01/oracle/mydb/dbs/tempp716.dbf' SIZE 1M,
'/u01/oracle/mydb/dbs/toolp716.dbf' SIZE 15M ;
Basically, your step would be:
The complete procedure follows:
1. Take a full backup of the database, including all datafiles and redo log files.
2. Go into SQLPLUS and do a STARTUP NOMOUNT.
3. Issue the CREATE CONTROLFILE statement.
4. Perform media recovery on the database.
sqlplus> recover database;
5. Open the database.
sqlplus> alter database open;
6. At the first opportunity, shut the database down and take a full cold backup.
hope this helps!
kind regards
yogeeraj
if you know the location of your data files and redolog files, you can use the "create control file" command to create a new control file.
e.g.
CREATE CONTROLFILE REUSE DATABASE "MYDB" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 50
MAXLOGMEMBERS 3
MAXDATAFILES 300
MAXINSTANCES 8
MAXLOGHISTORY 500
LOGFILE
GROUP 1 '/u01/oracle/mydb/dbs/log1p716.dbf' SIZE 1M,
GROUP 2 '/u01/oracle/mydb/dbs/log2p716.dbf' SIZE 1M,
GROUP 3 '/u01/oracle/mydb/dbs/log3p716.dbf' SIZE 1M
DATAFILE
'/u01/oracle/mydb/dbs/systp716.dbf' SIZE 40M,
'/u01/oracle/mydb/dbs/tempp716.dbf' SIZE 1M,
'/u01/oracle/mydb/dbs/toolp716.dbf' SIZE 15M ;
Basically, your step would be:
The complete procedure follows:
1. Take a full backup of the database, including all datafiles and redo log files.
2. Go into SQLPLUS and do a STARTUP NOMOUNT.
3. Issue the CREATE CONTROLFILE statement.
4. Perform media recovery on the database.
sqlplus> recover database;
5. Open the database.
sqlplus> alter database open;
6. At the first opportunity, shut the database down and take a full cold backup.
hope this helps!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP