deleted of control file how will u recover control file?

Answer Posted / kittu_chintu2005

Method 1:
SQL>STARTUP NOMOUNT;
SQL>CREATE CONTROLFILE REUSE DATABASE "DB_NAME" ARCHIVELOG RESETLOGS
LOGFILE
GROUP 1 ( 'location of redo1a.log','location of redo1b.log') size XXmb,
GROUP 2 ( 'location of redo2a.log','location of redo2b.log') size xxmb
DATAFILE
'location of system.dbf',
'location of users.dbf',
'location of temp.dbf',
'location of ts1.dbf';
SQL>RECOVER DATABASE;
SQL>ALTER DATABASE OPEN RESETLOGS;

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the performance views in an oracle rac environment?

666


I got an error SQL1042C. An unexpected system error occurred. Explanation: A system error occurred. One possible reason for this error is that the database manager is not installed correctly or the environment is not set up correctly. On OS/2, while trying to start the database manager, a very common reason for this error is a corrupted NET.ACC file. The command cannot be processed. The tables and views would not be opened. What is the way to open the dataase? pls help me

3901


List out some of the requirements to setup a sql server failover cluster.? : sql server DBA

785


What are the different types of indexes available in sql server? : sql server DBA

666


What are the different sql server versions you have worked on? : sql server DBA

627






Can you tell me about your experience with the administration of COTS system..? Also, how do you set up seed data..?

2275


What happens on checkpoint? : sql server DBA

654


Claims and Drains are the locks used to control the concurrency between SQL processes and utilities. Referring to the above statement, what is the maximum number of concurrent Claimers for a Subsystem? Choice 1 32 Choice 2 64 Choice 3 128 Choice 4 256 Choice 5 No limit

1923


What would you do with an "in-doubt" distributed transaction?

1495


when does an alert gets signaled?

672


What is a system database and what is a user database? : sql server DBA

684


how can you communicate with operating system files from oracle?

663


How do you trace the traffic hitting a sql server? : sql server DBA

939


If you are given access to a sql server, how do you find if the sql instance is a named instance or a default instance? : sql server DBA

652


Provide an example of a shell script which logs into SQLPLUS as SYS, determines the current date, changes the date format to include minutes & seconds, issues a drop table command, displays the date again, and finally exits.

1602