RMAN control file loss
HelloI am a beginner...
Please I want 2 practice rman
Please guide me for the loss of controlfile scenario
That is what could be the pre-configuration of rman, how to backup/restore controlfile?
sachinpawan wrote:
HelloI am a beginner...
Please I want 2 practice rman
Please guide me for the loss of controlfile scenario
That is what could be the pre-configuration of rman, how to backup/restore controlfile?
Check out my video tutorials:
http://kamranagayev.com/Oracle-video-tutorials/
Here are the steps to follow for you, try running it by yourself (in the test database):
-Take full backup of the database and configure RMAN to do an automatic backup of controlfile "CONFIGURE CONTROLFILE AUTOBACKUP ON".
-Remove all the controlfiles
-Use the command 'Restore automatic backup controlfile' to restore the controlfile autobackup
-Use the command 'recover data' to recover the database
-Open the database
Tags: Database
Similar Questions
-
Problem restoring RMAN control file.
Hello
We have Oracle 11 g on Windows and daily Netbackup full on tape @ 3:00 Am and drive @ 3:00 Pm.
When we are trying to restore a DB with the following command it restore disk control file and no Ribbon.
RMAN > RUN {
2 > allocate channel t1 type ' sbt_tape 'parms='SBT_LIBRARY=C:\WINDOWS\system32\orasbt.dll ';SEND 'NB_ORA_POLICY = ORACLE_DBMS_KTPH12_PROD_BTS_Daily, NB_ORA_SERV = b-nimhp1sys101, b-btshp1dbs213 = NB_ORA_CLIENT';
4 > restoration until time ' TO_DATE (February 17, 2013 03:00 ',' dd-mm-yyyy hh24:mi:ss') ' controlfile on "G:\oradata\TLPRDd\control01.ctl" of automatic backup;
{5 >}
Why he isn't restring Ribbon and restore DISK?
Thanks in advance.
Vaishali.Look at the bottom of thread for sure it will help you...
Complete restoration of the backup DB on Test using RMAN Server
-
RMAN control file backup and restore: help needed
Hello guys,.
I am new to RMAN and run RMAN for BACKUP scripts.
Run {}
CONFIGURE REDUNDANCY 1 RETENTION STRATEGY;
SET UP THE DEVICE TYPE DISK PARALLELISM 2 TYPE OF BACKUP BACKUPSET.
backup in compressed format additional effective backupset 0 database tag 'TEST_FULL_BACKUP' '$RMAN_BACKUP/datafiles_backup/bkp_${DD}/%d_%s_%p ';
Backup to compressed backupset archivelog all not saved both 1 FORMAT "$RMAN_BACKUP/arch_backup/bkp_${DD}/ARCH_%d_%s_%p".
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK to '$RMAN_BACKUP/controlfile_backup/bkp_${DD}/%F ';
delete noprompt obsolete;
delete noprompt archivelog all completed before ' sysdate-2';
}
I can see the data file and archieve files backup
$RMAN_BACKUP/datafiles_backup/bkp_${DD}/%d_%s_%p';
'$RMAN_BACKUP/arch_backup/bkp_${DD}/ARCH_%d_%s_%p ';
But control missing in "$RMAN_BACKUP/controlfile_backup/bkp_${DD}/%F";
What is the problem with my order... Help, please
S
RMAN > list backup of controlfile;
-
Hello
How knowledge/check if the RMAN backup was performed using a current control file or database catalog? I mean RMAN prompt or sqlplus is it possible to know.
Thank you
You're welcome my friend
You can see them using two methods.
as I mentioned above, you can see them connect to the catalog database and you can query using the view that I sent
http://docs.Oracle.com/CD/E11882_01/backup.112/e10642/rcmreprt.htm#BRADV89601
the other method is the list command, you must use the list command after connecting using rman "rman target / catalog cat_user/cat_pass@catdbtns" command
http://docs.Oracle.com/CD/E11882_01/backup.112/e10642/rcmreprt.htm#BRADV8136
Check the value of the control_file_record_keep_time parameter. The default value is 7 days. in the output of the list command, if you can see the old backups to the value, you must be sure that the backup information comes from the catalogue database
SELECT * FROM parameter $ v where name = 'control_file_record_keep_time '.
an example of command list
the list of completed database before backup ' sysdate-10'.
Concerning
-
lost control file and datafile addeed restore/recovery without loss of data
Here, I tried the following
created a new table called t2 and made sure the data went to a specific tablespace...
has taken a level 0 backup
remove the control file
couple of datafile to above tablespace was added and then insert more data
then went out to restore the database... but datafile and control file always could not be open? What is wrong here...
-wnet to session 2 and renamed datafile for file unammedSQL> @datafile -- list of datafile Tablespace File Typ Tablespac File Stat Used MB Free MB FILE_MB MAXMB Datafile_name FILE_ID AUT ---------- -------- --------- --------- ---------- ---------- ---------- -------- ------------------------------ ---------- --- UNDOTBS1 Datafile ONLINE AVAILABLE 16 84 100 1,024 /data/trgt/undotbs01.dbf 3 YES USERS Datafile ONLINE AVAILABLE 1153 895 2048 3,072 /data3/trgt/user02.dbf 5 YES CNT_TST Datafile ONLINE AVAILABLE 1 9 10 0 /data3/trgt/cnt_tst01.dbf 7 NO SYSAUX Datafile ONLINE AVAILABLE 626 35 660 32,768 /data/trgt/sysaux01.dbf 2 YES USERS Datafile ONLINE AVAILABLE 2031 17 2048 2,048 /data3/trgt/move/users01.dbf 4 YES SYSTEM Datafile ONLINE AVAILABLE 712 58 770 32,768 /data/trgt/system01.dbf 1 YES USERS Datafile ONLINE AVAILABLE 65 35 100 32,768 /data3/trgt/users03.dbf 6 YES 7 rows selected. -- new table is created called t2 and its going into TS called cnt_tst SQL> CREATE TABLE TEST.T2 ( C1 DATE, C2 NUMBER, C3 NUMBER, C4 VARCHAR2(300 BYTE) ) TABLESPACE cnt_tst; 2 3 4 5 6 7 8 Table created. -- data inserted SQL> INSERT INTO test.T2 SELECT * FROM (SELECT SYSDATE, ROWNUM C2, DECODE(MOD(ROWNUM,100),99,99,1) C3, RPAD('A',300,'A') C4 FROM DUAL CONNECT BY LEVEL <= 10000) ; 2 3 4 5 6 7 8 9 10 11 12 13 14 15 10000 rows created. SQL> commit; Commit complete. -- to check of cnt_tst has any free space or not, as we can see its full SQL> @datafile Tablespace File Typ Tablespac File Stat Used MB Free MB FILE_MB MAXMB Datafile_name FILE_ID AUT ---------- -------- --------- --------- ---------- ---------- ---------- -------- ------------------------------ ---------- --- UNDOTBS1 Datafile ONLINE AVAILABLE 16 84 100 1,024 /data/trgt/undotbs01.dbf 3 YES USERS Datafile ONLINE AVAILABLE 1153 895 2048 3,072 /data3/trgt/user02.dbf 5 YES SYSAUX Datafile ONLINE AVAILABLE 626 35 660 32,768 /data/trgt/sysaux01.dbf 2 YES USERS Datafile ONLINE AVAILABLE 2031 17 2048 2,048 /data3/trgt/move/users01.dbf 4 YES SYSTEM Datafile ONLINE AVAILABLE 712 58 770 32,768 /data/trgt/system01.dbf 1 YES USERS Datafile ONLINE AVAILABLE 65 35 100 32,768 /data3/trgt/users03.dbf 6 YES CNT_TST Datafile ONLINE AVAILABLE 10 0 10 0 /data3/trgt/cnt_tst01.dbf 7 NO 7 rows selected. SQL> select count(*) from test.t2; COUNT(*) ---------- 10000 1 row selected. -- to get a count and max on date SQL> select max(c1) from test.t2; MAX(C1) ------------------ 29-feb-12 13:47:52 1 row selected. SQL> -- AT THIS POINT A LEVEL 0 BACKUP IS TAKEN (using backup database plus archivelog) SQL> -- now control files are removed SQL> select name from v$controlfile; NAME -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- /ctrl/trgt/control01.ctl /ctrl/trgt/control02.ctl 2 rows selected. SQL> SQL> ! rm /ctrl/trgt/control01.ctl SQL> ! rm /ctrl/trgt/control02.ctl SQL> ! ls -ltr /ctrl/trgt/ ls: /ctrl/trgt/: No such file or directory SQL> -- new datafile is added to CNT_TST TABLESPACE and new data is added as well SQL> ALTER TABLESPACE CNT_TST ADD DATAFILE '/data3/trgt/CNT_TST02.dbf' SIZE 100M AUTOEXTEND OFF; Tablespace altered. SQL> ALTER SYSTEM CHECKPOINT; System altered. SQL> alter system switch logfile; System altered. SQL> / System altered. SQL> / System altered. SQL> ALTER TABLESPACE CNT_TST ADD DATAFILE '/data3/trgt/CNT_TST03.dbf' SIZE 100M AUTOEXTEND OFF; Tablespace altered. SQL> INSERT INTO test.T2 SELECT * FROM (SELECT SYSDATE, ROWNUM C2, DECODE(MOD(ROWNUM,100),99,99,1) C3, RPAD('A',300,'A') C4 FROM DUAL CONNECT BY LEVEL <= 10000) ; 2 3 4 5 6 7 8 9 10 11 12 13 14 15 10000 rows created. SQL> / 10000 rows created. SQL> commit; Commit complete. SQL> INSERT INTO test.T2 SELECT * FROM (SELECT SYSDATE, ROWNUM C2, DECODE(MOD(ROWNUM,100),99,99,1) C3, RPAD('A',300,'A') C4 FROM DUAL CONNECT BY LEVEL <= 40000) ; 2 3 4 5 6 7 8 9 10 11 12 13 14 15 40000 rows created. SQL> commit; Commit complete. SQL> @datafile -- to make sure new datafile has been registered with the DB Tablespace File Typ Tablespac File Stat Used MB Free MB FILE_MB MAXMB Datafile_name FILE_ID AUT ---------- -------- --------- --------- ---------- ---------- ---------- -------- ------------------------------ ---------- --- CNT_TST Datafile ONLINE AVAILABLE 9 91 100 0 /data3/trgt/CNT_TST03.dbf 9 NO UNDOTBS1 Datafile ONLINE AVAILABLE 16 84 100 1,024 /data/trgt/undotbs01.dbf 3 YES USERS Datafile ONLINE AVAILABLE 1153 895 2048 3,072 /data3/trgt/user02.dbf 5 YES CNT_TST Datafile ONLINE AVAILABLE 9 91 100 0 /data3/trgt/CNT_TST02.dbf 8 NO SYSAUX Datafile ONLINE AVAILABLE 626 35 660 32,768 /data/trgt/sysaux01.dbf 2 YES USERS Datafile ONLINE AVAILABLE 2031 17 2048 2,048 /data3/trgt/move/users01.dbf 4 YES SYSTEM Datafile ONLINE AVAILABLE 712 58 770 32,768 /data/trgt/system01.dbf 1 YES USERS Datafile ONLINE AVAILABLE 65 35 100 32,768 /data3/trgt/users03.dbf 6 YES CNT_TST Datafile ONLINE AVAILABLE 10 0 10 0 /data3/trgt/cnt_tst01.dbf 7 NO 9 rows selected. -- now the count and max ... note count before backup was 10000 and max(c1) was diff SQL> select count(*) from test.t2; COUNT(*) ---------- 70000 1 row selected. SQL> select max(c1) from test.t2; MAX(C1) ------------------ 29-feb-12 13:58:25 1 row selected. SQL> -- now restore starts SQL> shutdown abort; ORACLE instance shut down. SQL> exit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options [oracle@berry trgt]$ rman Recovery Manager: Release 11.2.0.1.0 - Production on Wed Feb 29 14:01:48 2012 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. RMAN> connect catalog rman/pass@rcat connected to recovery catalog database RMAN> connect target / connected to target database (not started) RMAN> startup nomount; Oracle instance started Total System Global Area 188313600 bytes Fixed Size 1335388 bytes Variable Size 125833124 bytes Database Buffers 58720256 bytes Redo Buffers 2424832 bytes RMAN> restore controlfile from autobackup; Starting restore at 29-FEB-12 14:02:37 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=20 device type=DISK recovery area destination: /backup/trgt/flash_recovery_area database name (or database unique name) used for search: TRGT channel ORA_DISK_1: no AUTOBACKUPS found in the recovery area channel ORA_DISK_1: looking for AUTOBACKUP on day: 20120229 channel ORA_DISK_1: AUTOBACKUP found: /backup/trgt/backup/cont_c-3405317011-20120229-09 channel ORA_DISK_1: restoring control file from AUTOBACKUP /backup/trgt/backup/cont_c-3405317011-20120229-09 channel ORA_DISK_1: control file restore from AUTOBACKUP complete output file name=/ctrl/trgt/control01.ctl output file name=/ctrl/trgt/control02.ctl Finished restore at 29-FEB-12 14:02:39 RMAN> alter database mount; database mounted released channel: ORA_DISK_1 RMAN> recover database; Starting recover at 29-FEB-12 14:02:55 Starting implicit crosscheck backup at 29-FEB-12 14:02:55 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=20 device type=DISK Crosschecked 96 objects Finished implicit crosscheck backup at 29-FEB-12 14:02:57 Starting implicit crosscheck copy at 29-FEB-12 14:02:57 using channel ORA_DISK_1 Finished implicit crosscheck copy at 29-FEB-12 14:02:57 searching for all files in the recovery area cataloging files... no files cataloged using channel ORA_DISK_1 starting media recovery archived log for thread 1 with sequence 13 is already on disk as file /redo_archive/trgt/online/redo01.log archived log for thread 1 with sequence 14 is already on disk as file /redo_archive/trgt/online/redo02.log archived log for thread 1 with sequence 15 is already on disk as file /redo_archive/trgt/online/redo03.log archived log file name=/redo_archive/trgt/archive/1_10_776523284.dbf thread=1 sequence=10 archived log file name=/redo_archive/trgt/archive/1_10_776523284.dbf thread=1 sequence=10 archived log file name=/redo_archive/trgt/archive/1_11_776523284.dbf thread=1 sequence=11 archived log file name=/redo_archive/trgt/archive/1_12_776523284.dbf thread=1 sequence=12 archived log file name=/redo_archive/trgt/online/redo01.log thread=1 sequence=13 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of recover command at 02/29/2012 14:02:59 ORA-01422: exact fetch returns more than requested number of rows RMAN-20505: create datafile during recovery RMAN-11003: failure during parse/execution of SQL statement: alter database recover logfile '/redo_archive/trgt/online/redo01.log' ORA-00283: recovery session canceled due to errors ORA-01244: unnamed datafile(s) added to control file by media recovery ORA-01110: data file 9: '/data3/trgt/CNT_TST03.dbf' RMAN> -- wnet to session 2 and renamed datafile from unammed
After before was done, went back to session 1 and I tried recovered the DBSQL> select name from v$datafile; NAME -------------------------------------------------------------------------------- /data/trgt/system01.dbf /data/trgt/sysaux01.dbf /data/trgt/undotbs01.dbf /data3/trgt/move/users01.dbf /data3/trgt/user02.dbf /data3/trgt/users03.dbf /data3/trgt/cnt_tst01.dbf /oracle/app/product/11.2.0/dbhome_1/dbs/UNNAMED00008 /oracle/app/product/11.2.0/dbhome_1/dbs/UNNAMED00009 9 rows selected. SQL> alter database create datafile '/oracle/app/product/11.2.0/dbhome_1/dbs/UNNAMED00008' as '/data3/trgt/CNT_TST02.dbf'; Database altered. SQL> alter database create datafile '/oracle/app/product/11.2.0/dbhome_1/dbs/UNNAMED00009' as '/data3/trgt/CNT_TST03.dbf'; Database altered. SQL> select name from v$datafile; NAME -------------------------------------------------------------------------------- /data/trgt/system01.dbf /data/trgt/sysaux01.dbf /data/trgt/undotbs01.dbf /data3/trgt/move/users01.dbf /data3/trgt/user02.dbf /data3/trgt/users03.dbf /data3/trgt/cnt_tst01.dbf /data3/trgt/CNT_TST02.dbf /data3/trgt/CNT_TST03.dbf 9 rows selected.
RMAN> recover database; Starting recover at 29-FEB-12 14:06:16 using channel ORA_DISK_1 starting media recovery archived log for thread 1 with sequence 13 is already on disk as file /redo_archive/trgt/online/redo01.log archived log for thread 1 with sequence 14 is already on disk as file /redo_archive/trgt/online/redo02.log archived log for thread 1 with sequence 15 is already on disk as file /redo_archive/trgt/online/redo03.log archived log file name=/redo_archive/trgt/online/redo01.log thread=1 sequence=13 archived log file name=/redo_archive/trgt/online/redo02.log thread=1 sequence=14 archived log file name=/redo_archive/trgt/online/redo03.log thread=1 sequence=15 media recovery complete, elapsed time: 00:00:00 Finished recover at 29-FEB-12 14:06:17 RMAN> alter database open resetlogs; database opened new incarnation of database registered in recovery catalog starting full resync of recovery catalog full resync complete starting full resync of recovery catalog full resync complete RMAN> exit Recovery Manager complete. [oracle@berry trgt]$ [oracle@berry trgt]$ [oracle@berry trgt]$ sq SQL*Plus: Release 11.2.0.1.0 Production on Wed Feb 29 14:07:18 2012 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> alter session set NLS_DATE_FORMAT="dd-mon-yy hh24:mi:ss: 2 SQL> SQL> alter session set NLS_DATE_FORMAT="dd-mon-yy hh24:mi:ss"; Session altered. SQL> select count(*) from test.t2; select count(*) from test.t2 * ERROR at line 1: ORA-00376: file 8 cannot be read at this time ORA-01110: data file 8: '/data3/trgt/CNT_TST02.dbf' SQL> select max(c1) from test.t2; select max(c1) from test.t2 * ERROR at line 1: ORA-00376: file 8 cannot be read at this time ORA-01110: data file 8: '/data3/trgt/CNT_TST02.dbf' SQL> alter database datafile 8 online; alter database datafile 8 online * ERROR at line 1: ORA-01190: control file or data file 8 is from before the last RESETLOGS ORA-01110: data file 8: '/data3/trgt/CNT_TST02.dbf' {code} so what did i do wrong in my recovery that i could not get my data?? how can i avoid this?? and restore my DB? Edited by: user8363520 on Feb 29, 2012 12:24 PM
user8363520 wrote:
so can get us this or can't do?You seem to have:
(a) old version of data through rman backup files
(b) old version of the control file
(c) Backed archived redo logs
(d) recovery archived logs that have been recently generated
(e) current online redo logsTherefore, you should be able to bring back the database in the State wherever it was when you made the abandonment.
I don't do enough laps to be able to cite details on the commands to use (and I often find myself using the command line recovery after that file of rman restore, but the steps you need must be)Take a copy of security of the data current, archived and online redo log files.
Restore the backup control file, data files, and archived recovery logs
Recover the database by using up to cancel backup control file
You have to do 'create datafile' bit as the collection hits the 'missing file' bit
You will need to provide the names of the archived and log files online redo recovery reached their
(although, presumably, you could leave copies of the logs stored in the default location)Concerning
Jonathan Lewis
http://jonathanlewis.WordPress.com
Author: core Oracle -
Control to the RMAN catalog file
Dear friends,
Now my RMAN backup is running using the control file. How can I change the catalog?
Please guide me.
Thanks in advance.If there is no drawback application RMAN catalog, then I guess I do it with her.
Like when I want to recover the database in a new server with the backup and so on... >
The downside is the maintenance you need to do for the catalog. He had some performance issues with the catalog in previous versions, but I think he's fine now.
Do I need to back up the RMAN catalog or back up separately in addition to the backup of the database?
Could I lose the catalog if I lose my database
Just save as regularly as you can afford. RMAN or export. Losing the catalog is a hassle but not the end of the world.
-
HII I am working on oracle 10g 10.2.0.4.0 on solaris 10 have an asm and rac configuration (2 node rac).
I only have a single control file--+DATA_DG1/ftssdb/controlfile/current.270.664476369
I'm back up these files to control with rman
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT for DEVICE TYPE DISK TO ' / backup/rman_node1/%F';
c 31850833-20100909-00 is one supported by piece of control file.
now, suddenly, a system of administration deleted this file control... How can I recover my database using rman backup?RMAN > SET 3386862614 DBID
RMAN > RUN {
RESTORE AUTOMATIC BACKUP CONTROLFILE;
}
or
RMAN > SET 3386862614 DBID
RMAN > RUN {
CONTROLFILE AUTOBACKUP FORMAT SET
FOR DEVICE TYPE DISK TO ' / backup/rman_node1/%F';
RESTORE AUTOMATIC BACKUP CONTROLFILE;
}check out the link:
http://arjudba.blogspot.com/2008/05/How-to-restore-controlfile-from-backup.htmlPublished by: rajeysh on Sep 9, 2010 16:37
-
RMAN-20033 control file sequence # too low &; ORA-00230
The two RMAN below errors occasionally I think that the cause is if an archive backup is running during a database backup, the controlfile is supported by both and can (but not always) cause these errors. The backup of the database is generally successful and that's just the backup controlfile who complains. I looked at how to avoid this, but it is not easy. Some backups of large database, especially for a full backup, run it for hours so archives have yet to be backed up and deleted.
It might have started when ON CONFIGURE CONTROLFILE AUTOBACKUP has been set up. I don't know if this can be changed for backups of archive without affecting full/comú backups. Any ideas are appreciated.
From control file and SPFILE Autobackup July 23, 10
handful of piece = c-3756288473-20100723-2nd comment = 2.0, MMS Version 5.4.1.0 API Version
File control finished and Autobackup SPFILE to July 23, 10
output channel: T1
output channel: T2
output channel: T3
output channel: T4
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03008: error when executing automatic resynchronization of the recovery catalog
RMAN-20033: control file sequence # too low
From backup 6 August 10
channel T1: starting full datafile backupset
channel T1: specifying datafile (s) in backupset
output channel: T1
output channel: T2
output channel: T3
output channel: T4
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03009: failure of the backup command on channel T1 at 2010-08-06 11:43:52
ORA-00230: forbidden operation: snapshot controls unavailable file enqueueDear DBA2008,
Please find the explanation of the error first;
ORA-00230: operation disallowed: snapshot control file enqueue unavailable Cause: The attempted operation cannot be executed at this time because another process currently holds the snapshot control file enqueue. Action: Retry the operation after the concurrent operation that is holding the snapshot control file enqueue terminates.
There could be an enqueu for the snapshot controlfile and he should be released in order to continue operating.
The other mistake is;
Oracle Error :: RMAN-20033 control file SEQUENCE# too low Cause the control file sequence is less than the one of the previous resync Action make sure that the right control file is used
Thus, there could be another session which was try to resynchronize the catalog or simply access the snapshot controlfile.
Can you connect please for the usual recovery with the connection string manager and type;
RESYNC CATALOG;
Do you still take the enqueue snapshot controlfile error?
Hope that helps.
Ogan
-
Create the new database of complete hot RMAN, atrchivelog and backup control files
Hi all
I'm trying to create the new database U1234 of P1234 of full hot RMAN, atrchivelog and control P1234 file backup.
Here are my steps
(1) to restore the control file
#! / bin/sh
ORACLE_SID = P1234
export ORACLE_SID
RMAN nocatalog target / < < EOF | Tee restorecontrol.out
startup nomount pfile=/u01/oradba/admin/U1234/scripts/restore/restore071009U1234/initP1234.ora;
the value of DBID 6767676;
run
{
allocate channel d1 type disk;
controfile catering to ' / u02/oradba/U1234/control/P1234_control01.ctl';
Restore controlfile to ' / orarman/restore/P1234/cf_P1234_c-00';
change the editing of the database;
}
EXPRESSIONS OF FOLKLORE
(2) database stop then restart the database with the new contraol file using pfile.
(3) restore data files
#! / bin/sh
ORACLE_SID = P1234
export ORACLE_SID
RMAN nocatalog target / < < EOF | Tee restore_dbfiles.out
Run {}
the value of newname for datafile 1 to ' / u05/oradba/U1234/dbfile/U1234_system01.dbf';
the value of newname for datafile 2 to ' / u05/oradba/U1234/dbfile/U1234_undotbs01.dbf';
the value of newname for datafile 3 to ' / u05/oradba/U1234/dbfile/U1234_sysaux01.dbf';
the value of newname for datafile 4 to ' / u06/oradba/U1234/dbfile/U1234_users_d01.dbf';
the value of newname for datafile 5 to ' / u06/oradba/U1234/dbfile/U1234_tools_d01.dbf';
the value of newname for datafile 6 to ' / u08/oradba/U1234/dbfile/U1234_audt_x01.dbf';
the value of newname for datafile 7 to ' / u07/oradba/U1234/dbfile/U1234_audt_d01.dbf';
the value of newname for datafile 8 to ' / u07/oradba/U1234/dbfile/U1234_audt_d02.dbf';
the value of newname for datafile 9 to ' / u08/oradba/U1234/dbfile/U1234_lh_x01.dbf';
restore the database;
switch datafile;
}
EXPRESSIONS OF FOLKLORE
ORA-27063: number of bytes read or written is incorrect
SVR4 error: 28: no space is available on the device
Now, I missed the space during the restoration of data files and want to restore remaining who is 3 and 4 of datafile datafile.
Can you please let me know how I can restore it.
I need to change the names of database after the successful restoration.
DBVERSION 10.2.0.1
operating system: solaris 10
Thanks in advance.Hello..
Do you have free space? If Yes, then you can try: -.
RUN {}
SET NEWNAME for DATAFILE 3 to ' / u05/oradba/U1234/dbfile/U1234_sysaux01.dbf';
RESTORE THE 3 DATA FILE;
DATAFILE 3 SWITCH;
}[http://www.oracle-base.com/articles/9i/DBNEWID.php]
Anand
-
Hi all.
I really need your help on this:
(1) version: 11.2.0.1 EE / Windows.
(2) database does not start, don't get database.
Alert.log info:
Instance of stopped by USER, pid = 3652
2015-11-22 15:57:19.763000 - 04:30
I found this after using adrci:
2015-11-22 15:49:15.727
SESSION ID: (191.1) 2015-11-22 15:49:15.727
CUSTOMER ID :() 2015-11-22 15:49:15.727
NAME OF THE SERVICE :() 2015-11-22 15:49:15.727
MODULE NAME: (sqlplus.exe) 2015-11-22 15:49:15.727
ACTION NAME :() 2015-11-22 15:49:15.727
Informational message:
Control file 1 has seq 2713995, low 2713994 file # 0
Error: kccpb_sanity_check_2
Control file sequence number mismatch!
fhcsq: bhcsq 2713995: 2714016 cfn 0
2015-11-22 15:49:15.758
USER (ospid: 2504): put an end to the instance
Verification of MOS Note: 435436.1 I must:
(1) to restore a backup of a controlfile and recover
OR
(2) to recreate the controlfile
OR
(3) restore the backup data and recovery
It is a database, that I was not, up to now administer. But:
(1) I tried from the database with addressed controlfile (the one located in FRA). No luck. (Create pfile from spfile / startup pfile)
(2) the database is not mount / open. It hangs on the editing process. So I can not issue an alter database controlfile to trace.
It seems that my options are:
(1) manual creation of controlfile with open resetlogs option. This option is viable, but risky if we miss a datafile or something GOLD
(2) restoration of RMAN backup. The thing is that the most recent copy of automatic backup of controlfile is since a few days early (4 / 5 days).
I found this link: http://gavinsoorma.com/2009/07/rman-recovery-from-loss-of-all-control-files/
The procedure seems easy, but since this controlfile is not in the current SNA of database (data files, etc.). I'm not sure it if it would work.
So in short, I think I have an automatic backup controlfile and it's OK. but a little old. I can restore from this copy of CF?
Please I'm pressed real here, so help will be greatly appreciated!....
Thanks in advance!
Best regards, Luis...!
Hello
It seems that my options are:
(1) manual creation of controlfile with open resetlogs option. This option is viable, but risky if we miss a datafile or something GOLD
(2) restoration of RMAN backup. The thing is that the most recent copy of automatic backup of controlfile is since a few days early (4 / 5 days).
It seems that you have few options,
In my opinion, you should start with option 2), but you have logs archived redo and all and all the backups of catalog and perform a restore.
After, if not works, you must manually create the control files, but you are right, you must carefully on all the data files. Here a log generated in the last level 0 RMAN backup could help you, don't forget the newspaper are all entries of data for backup files.
I wish to have more ideas to help you, but I have no other.
I hope this helps.
Kind regards
Juan M
-
Recovery of control files. I need to restore database?
I am using below command procedure files recovery: restore the backup controlfile. I'm not restore database in this procedure with RESTORE DATABASE
==================================================================================
QUESTION: Do I need to restore a full database to be consistent?
=====================================================
SQL > select name from v$ controlfile;
NAME
--------------------------------------------------------------------------------
/ QA/Data/OBT/QA112QA/Data/control01. CTL
/ QA/Data/OBT/QA112QA/Data/control02. CTL
/ QA/Data/OBT/QA112QA/Data/control03. CTL
[oracle@rh56b64-1 rmanbackup] $ rm /qa/data/obt/QA112QA/data/control01.ctl /qa/data/obt/QA112QA/data/control02.ctl /qa/data/obt/QA112QA/data/control03.ctl
SQL > stop the demolition
ORACLE instance stops.
SQL > startup
ORACLE instance started.
Total System Global Area 275615744 bytes
Bytes of size 2212496 fixed
184552816 variable size bytes
Buffers data 83886080 bytes
Redo buffers 4964352 bytes
ORA-00205: error in the identification of control files, see log alerts for more information
[oracle@rh56b64-1 rmanbackup] $ pwd
/ QA/Data/OBT/rmanbackup
[oracle@rh56b64-1 rmanbackup] $ ls - ltr
Total 591368
-rw - r - 1 oracle oinstall 586711040 24 Dec 19:25 1antmgo6_1_1
-rw - r - 1 oracle oinstall 1435648 24 Dec 19:25 1dntmgov_1_1
-rw - r - 1 oracle oinstall 16809984 24 Dec 19:25 d to cfc-1266678734-20121224-0
-set DBID - get the name of the controlfile autobackup.
-For example, if the name of auto backup is
-CTL_SP_BAK_C-1507972899-20050124-00 the the DBID is
-1266678734. This step is not necessary if the instance is
-Start RMAN
RMAN > set dbid 1266678734
executing command: SET DBID
RMAN > restore controlfile to ' / qa/data/obt/rmanbackup/EFA-1266678734-20121224-0;
From restoration to December 24, 12
using the control file of the target instead of recovery catalog database
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 135 type device = DISK
channel ORA_DISK_1: restore the control file
channel ORA_DISK_1: restore complete, duration: 00:00:03
output file name=/qa/data/obt/QA112QA/data/control01.ctl
output file name=/qa/data/obt/QA112QA/data/control02.ctl
output file name=/qa/data/obt/QA112QA/data/control03.ctl
Finished restore at December 24, 12
RMAN > change the editing of the database;
mounted database
output channel: ORA_DISK_1
RMAN > restore database;
From back to December 24, 12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 135 type device = DISK
starting media recovery
Journal archived for thread 1 sequence 2 is already on the disc in the file /qa/data/obt/QA112QA/data/redo02.log
Journal archived for thread 1 with sequence 3 is already on the disc in the file /qa/data/obt/QA112QA/data/redo03.log
Journal archived for thread 1 with sequence 4 is already on the disc in the file /qa/data/obt/QA112QA/data/redo01.log
Archive log file name=/qa/data/obt/QA112QA/data/redo02.log thread = 1 sequence = 2
Archive log file name=/qa/data/obt/QA112QA/data/redo03.log thread = 1 = 3 sequence
Archive log file name=/qa/data/obt/QA112QA/data/redo01.log thread = 1 sequence = 4
media recovery complete, duration: 00:00:01
Finished recover at December 24, 12
RMAN > alter database open resetlogs;
open databaseHello
==================================================================================
QUESTION: Do I need to restore a full database to be consistent?
=====================================================You don't have to restore the full database. You just need to restore the backup controlfile and restore the database.
The steps you mentioned are good restore the controlfile. After recovery, you must open the database in resetlogs.Also, you can take a look at this http://neeraj-dba.blogspot.com/2011/04/loss-of-control-file-in-various.html
Kind regards
Shivananda -
Hi all
9i
RHEL5
I have configured for the main database and emergency dataguard.
I want to create 3 database on another server in restore RMAN backup taken of database primary 2 weeks ago.
I then want to apply any archivelogs succeeding to make it current.
My question is, can I get the file of current mode control ensures to restore my db from backup primary RMAN?
Current control for the primary and standby files the same? Just in case, I'm switching to the db backup?
Thank you very much
JC
Yes, because the control files are interchangeable between the databases and relief.
http://docs.Oracle.com/CD/B28359_01/server.111/b28294/RMAN.htm#BAJDCCGD
-
ORA-19838: cannot use this control file to open the database
Dear all,
While making RMAN cloning, we are facing problem,
SQL > alter database open resetlogs;
ALTER database open resetlogs
*
ERROR on line 1:
ORA-19838: cannot use this control file to open the database
Concerning
Villi Kumar
Dear all,
While checking the database,
Control the name of the database file is PROD
In the instance, database name is TEST.
So we took the PROD and edited control file trace file based on the TEST environment.
Then run the script published in the TEST database trace file.
Now we can open the database by using below command
ALTER database open resetlogs;
Concerning
Villi Kumar
-
Retrieve by using the backup control file
Hello
I was reading a book called Pro Oracle Database Administration by Darl Kuhn. There, under the theme of "The valuation of the loss of all control files", noted that all data files and control files are restored from a backup, because if we do not restore the data files the RCS in control files would be lower than the data in these scenarios files. Since online redo logs and archived newspapers is applied to the data files to roll forward in a current consistent state and does not roll forward to a control file.
It is then mentioned to use 'recover the database by using the backup control file' then apply the logs (archive and redo if necessary).
However I personally tested this script in a test environment and to bring all the backup control file could issue the same command as above and recover the database.
My question is I know again and archives are applied only to the data files. So how does the control file are synchronized back when we do not restore the backup data files.
Thank you
If we do not restore the data files, the RCS in control files would be lower than the data files. Since online redo logs and archived newspapers is applied to the data files to roll forward in a current consistent state and does not roll forward to a control file.
It would be incorrect you have determined. You can only restore the control files. You can manually create a control file and always do the restore.
My question is I know again and archives are applied only to the data files. So how does the control file are synchronized back when we do not restore the backup data files.
The control file is updated as well.
See you soon,.
Brian -
Understanding of RMAN command file
Hi, please can someone put me right as I am confused with RMAN concept. (using 11.2, AIX, no catalogue)
Backup database more newspapers to archive and my DB is saved. I also have autobackup controlfile on. Ive done many restorations of test in this way when the data files are missing or needs to get back to a point in time.
As a test, I renamed all my files from control and then did a restore. I then restore the control file which I am starting from the automatic backup location. However if there is no autobackup then what? Where can I get my control record of?
Of the "backup database" command not actually backup control files? I always thought that a backup has been incomplete if the control files were not backup up.
Please can someone clarify this?
Thank you very much
Adam
However if there is no autobackup then what? Where can I get my control record of?
That's what I do all my backups: don't configure CONTROLFILE AUTOBACKUP ON, and I always explicitly backup backups of database/archivelogs after controlfile (BACKUP CURRENT CONTROLFILE): in this way, I always know what controlfile to restore.
DATABASE BACKUP command includes the backup controlfile anyway, but I prefer my name so that I can immediately identify the backup controlfile.
Maybe you are looking for
-
Organize referenced Structure file
I have a very large 350 GB + Aperture library and I've been avoiding switching, but I think it might be time. Last year, I went to a library that is managed in a reference library. However, when I made the passage the folder structure I used in Ape
-
About Firefox shows "day" this Version is old!
Hi supporter, I often watch news of the Version of my firefox on my macMy security bulletin told me that there is a new version and so I tried to start the hollow of the update of the window "On Firefox" and download the new update. There is a little
-
HP envy 4500: Eprint app
I help you can help!I installed the eprint app and I am able to print (from my ipad) pictures. However, I'm unable to set up the characters of the E-mail option: I have AOL. When I click on 'other', all fields are gray, I'm not able to enter my e-mai
-
Hi allI use Dell D 620 with vista ultimate inside.I installed it yesterdayThe problem is that every time I stopped it with the proper waylike the start menu > stop.the pc turns off, but the LCD stays on and my laptop still shows power light on. and I
-
Two weeks ago, but not all my folders containing images suddenly appear empty and all of them have migrated to the "My pictures" folder I have now largely replace them in subfolders holding in their records, but wonder how that happened?