Current control file
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
Tags: Database
Similar Questions
-
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
-
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
-
DB not starting not due ORA-00205: error in the identification of 11GRAC control file
Hello
I have it configured in the OEL5 11 g RAC (11.2.0.1.0). When I tried to start the database using the command srvctl or by manually I get the below error. \
RPRC-1079: failed to start of ora.rac.db resources
ORA-00205: error in the identification of control files, see log alerts for more information
CRS-2674: beginning of 'ora.rac.db', 'ractwo' failed
CRS-2632: there is no more servers to try to place the "ora.rac.db" resource on which will achieve its investment policy
ORA-00205: error in the identification of control files, see log alerts for more information
CRS-2674: beginning of 'ora.rac.db', 'racone' failed
The content of the alert below log.
ORA-00210: could not open the specified control file
ORA-00202: control file: "+ RACDG/rac/controlfiles/control02.ctl".
ORA-17503: ksfdopn:2 could not open the file +RACDG/rac/controlfiles/control02.ctl
ORA-15001: diskgroup 'RACDG' does not exist or is not mounted
ORA-15055: unable to connect to the ASM instance
ORA-27140: attach to post/wait installation failed
ORA-27300: OS dependent operating system: invalid_egid failed with status: 1
ORA-27301: OS Error Message: operation not permitted
ORA-27302: an error occurred at: skgpwinit6
ORA-27303: additional information: current startup egid = 500 (oinstall), egid = 503 (asmadmin)
ORA-00210: could not open the specified control file
ORA-00202: control file: "+ RACDG/rac/controlfiles/control01.ctl".
ORA-17503: ksfdopn:2 could not open the file +RACDG/rac/controlfiles/control01.ctl
ORA-15001: diskgroup 'RACDG' does not exist or is not mounted
ORA-15055: unable to connect to the ASM instance
ORA-27140: attach to post/wait installation failed
ORA-27300: OS dependent operating system: invalid_egid failed with status: 1
ORA-27301: OS Error Message: operation not permitted
ORA-27302: an error occurred at: skgpwinit6
ORA-27303: additional information: current startup egid = 500 (oinstall), egid = 503 (asmadmin)
But my ASM instance is running and I am able to see the controlfiles.
State Type sector Rebal to Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files name of the block
EXTERN MOUNTED N 512 4096 1048576 20472 13772 0 13772 0 N RACDG.
I don't know is there any problem of perission. Oracle cluster and DB is running as user 'oracle '.
Nobody does face this problem before? Let me know where to check this error.
Kind regards
007
Hello
Check "the correct permission must be" - rwsr - s - x '.»»»
Stop the CRS.
Change the permissions of the file to GI_HOME/bin/oracle for "- rwsr - s - x":$su - grid
$cd GI_HOME/bin
$chmod 6751 oracle
Oracle-l $lsStart the /CRS.
Start your database.
Thank you
Sundar
-
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 -
Restore the control file considerations
Hello expert,
Assumpition condition is:
All the data files and the redologs are not damaged, but the controlfiles are damaged. We must restore the controlfile autobackup with the following command:
RMAN > STARTUP NOMOUNT;
RMAN > backup RESTORE CONTROLFILE AUTOMATIC;
RMAN > ALTER DATABASE MOUNT;
RMAN > RECOVER DATABASE;
RMAN > ALTER DATABASE OPEN RESETLOGS;
Use of rman RECOVER, DATABASE redo logs to roll changes forward to control files. Can you explain what changes can be included? (Currently I only have one example: we add the new data file once the backup control file.) So we need roll forward the changes to control the file on the new added one.) Other examples?
Thank you and best regards,
Tong Ning
Examine the contents of the controlfile. He has the list of data files, the list of the archivelog files and list of rman backups.
Archivelogs would be saved in the controlfile so that they can be applied.
What about backups? Subsequent backups would certainly no longer be in the controlfile.
Hemant K Collette
-
need a script or utility to convert Oracle control files to format bcp files
Hello
I am currently in the process of converting an Oracle data warehouse
on SQL Server. The warehouse is loaded through a bunch of text
files throughout SQL Loader, using various control files. I need to
convert the above to use BCP with files in format, which proved to be
a very tedious task.
Someone has written, or seen, a utility to convert files of control of Oracle
for the format of files?
Thank you
Someone has written, or seen, a utility to convert files of control of Oracle
for the format of files?
You are very lucky, I found a script that I wrote some time ago and which may help you:
-- ----------------------------------------------------
-gen_bcp_fmt.sql - generate a non xml bcp format file
--
-Settings:
Name of the schema - 1.
Table_Name - 2-.
--
Schema DEF = & 1
Tbl_name = & 2
HEADING OFF PAGES 0 LIN 120 TOPPINGS ein OFF OFF OFF EMBED RECSEP WORM FEED
TERM SET OFF
COL NOPRINT sq
COL c1 FOR A15
COL c2 to 99999
COL c3 FOR A06
COL c4 FOR 999
COL c5 FOR A34
COL c6 FOR A34
COL maximum new_value _Maxid NOPRINT
SELECT maximum TRIM (MAX (Column_Id))
FROM Dba_Tab_Columns
WHERE owner = UPPER('&&schema.')
AND Table_Name = UPPER('&&tbl_name.');
SPÖ & schema. ___ & tbl_name... BCP
SELECT "9.0 ' c1 FROM DUAL;"
SELECT ' & _maxid' c1 FROM DUAL;
SELECT TO_CHAR (Column_Id, 'fm000'). LPAD (' SQLCHAR 0', 10) C1
CASE WHEN Data_Type = 'NUMBER' THEN (Data_Precision + Data_Scale + 2)
WHEN Data_Type = 'DATE' THEN (14)
ANOTHER Data_Length end as C2
, DECODE (Column_Id, & _Maxid, "" \r\n"", '',' ') C3
C4 Column_Id
Column_Name C5
, DECODE (Column_Id, 1, ' ""', 'SQL_Latin1_General_CP1_CI_AS') C6
FROM Dba_Tab_Columns
WHERE owner = UPPER('&&schema.')
AND Table_Name = UPPER('&&tbl_name.')
Column_id ORDER;
SPÖ OFF
Enjoy!
-
Hi all
I have a file with data. I want to insert only the exp_data < = current data in the control file. My like this.
DOWNLOAD THE DATA
INFILE ' D:\sample. DAT'
TRUNCATE
IN THE TABLE s_TABLE WHEN (1:6) < = "(to_char(sysdate,'mmddyy')).
TRAILING NULLCOLS
(
eff_data position(1:6).
name position(7:20)
)
During the execution of this I got error like this
SQL * Loader-350: at line 48 syntax error.
Illegal combination of nonalphanumeric characters
IN THE TABLE s_TABLE WHEN (1:6) < = "(to_char (sysdate, eIf I use with less symbol I receives the data. Is another way to achieve this scenario. If you need more data I'll provide you with.
Thank you.
Hello
Some examples of data.
011413DBTEST
011513DBDATAFORTEST
102313DATA
Table as:
Create the table s_TABLE
(
eff_data varchar2 (6).
name varchar2 (20)
)
-
Problem to identify the control file when creating physical standby
Hello
(database version: 10.2.0.4)
linux platform)
I use the command below to create physical database from a backup before:
I already tried to cross but always give same errorrman target / auxiliary sys/tiger@paceview Recovery Manager: Release 10.2.0.4.0 - Production on Tue Sep 4 18:05:53 2012 Copyright (c) 1982, 2007, Oracle. All rights reserved. connected to target database: PACEVIEW (DBID=2092349485) connected to auxiliary database: PACEVIEW (not mounted) run { allocate auxiliary channel c1 device type DISK; set until sequence 38; duplicate target database for standby dorecover nofilenamecheck; } released channel: ORA_DISK_1 allocated channel: c1 channel c1: sid=35 devtype=DISK allocated channel: c2 channel c2: sid=36 devtype=DISK executing command: SET until clause Starting Duplicate Db at 04-SEP-12 contents of Memory Script: { set until scn 138180211934; restore clone standby controlfile; sql clone 'alter database mount standby database'; } executing Memory Script executing command: SET until clause Starting restore at 04-SEP-12 channel c1: restoring control file ORA-19625: error identifying file /backup/rman/paceview/DEL1_standby.ctl ORA-27037: unable to obtain file status Linux-x86_64 Error: 2: No such file or directory Additional information: 3 ORA-19600: input file is control file (/backup/rman/paceview/DEL1_standby.ctl) ORA-19601: output file is control file (/PGHProdDB/oradata/paceview/control1.ctl) failover to previous backup released channel: c1 released channel: c2 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate Db command at 09/04/2012 18:01:44 RMAN-03015: error occurred in stored script Memory Script RMAN-06026: some targets not found - aborting restore RMAN-06024: no backup or copy of the control file found to restore
Thank youHello;
That's what I'd do:
Primary backup (change in your directory as needed)
RMAN RUN { allocate channel d1 type disk; backup format '/u01/backups/PRIMARY/df_t%t_s%s_p%p' database; sql 'alter system archive log current'; backup format '/u01/backups/PRIMARY/al_t%t_s%s_p%p' archivelog all; backup current controlfile for standby format '/u01/backups/PRIMARY/sb_t%t_s%s_p%p'; release channel d1; }
Move the backup and duplicate like this:
rman target sys/password@PRIMARY auxiliary / RMAN> run { allocate channel C1 device type disk; allocate auxiliary channel C2 device type disk; duplicate target database for standby nofilenamecheck; }
For details of this method, see:
http://www.Visi.com/~mseberg/duprman2.html
Best regards
mseberg
-
Hai
How to configure auditing for CREATE a FILE CONTROL?
17:45:07 SQL > AUDIT CREATE CONTROL FILE;
CHECK CREATE CONTROL FILE
*
ERROR on line 1:
ORA-00969: missing ON the keyword
What the above problem?Hello;
It sounds like a question outside the Oracle (OS?). The listener newspapers could help.
On your first question, I check the log of my test database alerts. It shows no creation of control files, but it sort of a chicken and the egg, with the database create.
He shows some intelligence information:
Mon Jan 02 05:38:59 2012 alter database create standby controlfile as 'STANDBY.ctl'
Current audits
audit grant any object privilege; audit create session; audit alter user; audit create user; audit drop user; audit drop tablespace; audit grant any role; audit grant any privilege; audit alter system; audit alter session; audit delete on AUD$ by access; audit insert on AUD$ by access; audit update on AUD$ by access; audit delete table; audit create tablespace; audit alter database; audit create role; audit create table; audit alter any procedure; audit create view; audit drop any procedure; audit drop profile; audit alter profile; audit alter any table; audit create public database link;
Best regards
mseberg
Published by: mseberg on July 7, 2012 07:35
-
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 -
Dear friends,
It's my backup script
RUN {}
cross-checking of backup;
overlap archivelog all;
backup INCREMENTAL level 1 format='PATH\%U_%I_%T.bkp database ' tag = 'everyday_full_bkup. '
more archivelog format='PATH\Arch%U_%I_%T.arc' tag = arcbkp;
backup current controlfile;
Validate restore them database;
}
output
I don't know if my control file is also saved in the same location as the backupfile and archivelog tables.
If this is not the case, how can I save it in the same place?
Thank you very much.user645399 wrote:
I only see itSQL> show parameter control NAME TYPE ------------------------------------ -------- control_file_record_keep_time integer control_files string
control_files will show you files of instance control current runnig, without the aid of the controlfiles.
Use the backup controlfile format.
or check backup controlfile locations with RMANRMAN > list backup of controlfile;
-
How can I validate the data in the control file?
Consider that the SQLLoader reads the data entry of the path file and loads the data in the base tables up on top of the description specified in the control file.
First, the form is created:
create table sql_loader_1 (load_time date, digital Champ_1, Champ_2 varchar2 (10))
Example of control file:
load_1.CTL
load data
INFILE "load_1.dat", "str"\r\n"
insert into table sql_loader_1
(
load_time sysdate,
Champ_2 position (01:10).
Champ_1 position(11:20)
)
Note that positions 11 to 20 are loaded in positions 1 to 10 in Champ_2 and Champ_1. The load_time field is filled with time current (sysdate) load.
Here is the data. The name of the file (load_1.dat) had been specified with the statement for infile in the control file.
load_1.dat
0123456789abcdefghij
**********##########
foo bar
This is a very long line
and the next one is
short
declared the Champ_1 as a numeric data type, but the input data file contains the data "Sue"(position 11:20) so the sql loader adds not the record to the database instead the record is written in the bad file. But I want to validate the data of the "(position 11:20) is digital or not." How can I post this in the control file itself? If it is not possible, how can I validate it in the database? give me a sample code to explain thisHere are two ideas.
Idea 1: This control file will check to see if the data to be loaded in Champ_1 contains a number (including the negative and decimal).
load data infile 'load_1.dat' "str '\r\n'" insert into table sql_loader_1 ( load_time sysdate, field_2 position( 1:10), field_1 position(11:20) "decode(trim(translate(:field_1,'-0123456789.',' ')),null,:field_1,-999)" )
If Champ_1 is a number or null, it is passed through, as is. If there is no numeric characters (in addition to '-'and'.') a distinct value-999 will be inserted for you allow to load the rest of the columns and easy to see the lines had data that cannot be loaded in Champ_1. This idea has its flaws (a string like "... ("will always drain the .bad file)
Idea 2: Load the data into a staging table first (or define an external table) where all columns are VARCHAR2. Then use SQL or PL/SQL to validate data in the staging table in your process to move the data into the table with the actual data types.
-
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
Maybe you are looking for
-
I have the HP touch and pair of mouse and the laptop can not find it... What can I do? I press the bluetooth button. on the mouse and a analysis of the laptop new devices and I get nothing. Help! I can not even find the option bluetooth on your l
-
Question rather says it all.
-
How to find the password for AOL in AOL files?
My AOL software "remembers" sign - on password. How can I change what I don't remember?
-
My d recovery is almost full support id there is my c unless used space I cleaned aand defraged it. It must still much only 4 something space left what to do?
-
RV042G what are the rules have priority or rules before firewall?
I had a firewall rule that accepts the WAN2 FTP outside toward the inside of the LAN with the specified IP address. But it did not work. When I added in the rules before that FTP should be sent to this IP address, it worked. I did a few tests but it