Identifying dbid from an rman autobackup piece
Hello,
I understand that to identify the dbid from a an autobackup piece :'\WINDOWS\SYSTEM32\C-2156049726-20070107-00' ...Its simply the format C-dbid-timestamp-seq#
Can anyone identify the dbid from my own autobackup piece '/oradata02/FMPR/autobackup/2007_01_11/o1_mf_s_611605156_2tdz'
Why is it not in the format : C-dbid-timestamp-seq#
Meanwhile my rman configuration is as follow, Where could the format issue come from?
RMAN> show all;
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 3;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/oradata02/FMPR/rman%U';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/10.1.0/db_1/dbs/snapcf_FMPR.f'; # default
Thanks .
Kenny
Message was edited by:
470068
I think it's because your autobacks are placed in Flash Recovery Area. When you backup your autotrace in FRA, Oracle uses OMF (Oracle Managed File).
The beauty of FRA is that it is able to identify the appropriate autobackup for you when you need to restore the controlfile from autobackup.
Similar Messages
-
DBID in Control File AutoBackup
Documentation states that the format for the controlfile autobackup contains the DBID of the database. See: http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/setup004.htm#i1017907
<quote>
3.4.7.1 Configuring the Control File Autobackup Format
By default, the format of the autobackup file for all configured devices is the substitution variable %F. This variable format translates into c-IIIIIIIIII-YYYYMMDD-QQ, where:
--- IIIIIIIIII stands for the DBID.
--- YYYYMMDD is a time stamp of the day the backup is generated
--- QQ is the hex sequence that starts with 00 and has a maximum
</quote>
When I look at this on my machine I don't see that relation:
SYS@bluebase>select dbid from v$database;
DBID
2842031076
and:
[oracle@blue ~]$ rman target / catalog rman/****@catbase
Recovery Manager: Release 10.2.0.1.0 - Production on Sat Feb 9 13:00:34 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: BLUEBASE (DBID=2842031076)
connected to recovery catalog database
RMAN> show controlfile autobackup;
RMAN configuration parameters are:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
<cut>
Starting Control File and SPFILE Autobackup at 09-02-08 13:03:11
piece handle=/flash/BLUEBASE/autobackup/2008_02_09/o1_mf_s_646232592_3tv5n0hm_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 09-02-08 13:03:13
</cut>
I can not relate the piece name to the DBID?
Thanks.Thank you!
Below a snippet that shows the behaviour you described.
(IMO this is a limitation in the CTRL/SPFILE Autobackup feature)
RMAN> show CONTROLFILE AUTOBACKUP;
RMAN configuration parameters are:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
RMAN> show CONTROLFILE AUTOBACKUP format;
RMAN configuration parameters are:
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/dbatemp/autobackup/%F';
RMAN> backup datafile 3;
Starting backup at 09-02-08 14:20:58
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00003 name=/oradata/db/bluebase/sysaux01.dbf
channel ORA_DISK_1: starting piece 1 at 09-02-08 14:20:59
channel ORA_DISK_1: finished piece 1 at 09-02-08 14:21:14
piece handle=/flash/BLUEBASE/bluebase_ora_df646237258_s244_s1.bkp tag=TAG20080209T142058 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:16
Finished backup at 09-02-08 14:21:14
Starting Control File and SPFILE Autobackup at 09-02-08 14:21:14
piece handle=/dbatemp/autobackup/c-2842031076-20080209-02 comment=NONE
Finished Control File and SPFILE Autobackup at 09-02-08 14:21:17
-------------------//------------------ -
Create a database from 8i RMAN backup
Hi,
I am in need to recover some historic data from a historic database's RMAN backup.
The situation is ... I have one old RMAN backup of a 8i database which includes datafiles, archivellog files and control files. Init.ora file is also available.
I have installed the 8i software in a host and created the oracle service through ORADIM and pwd file through ORAPWD utility. Then copied the init.ora file under 'C:\Oracle\ADMIN\ORCL\PFILE' and the RMAN backup files under 'C:\Oracle\Ora81\DATABASE' folder.
Now I can start the instance with the init.ora file but can not mount as control files are not there. when I try to restore the control files through RMAN as...
RMAN> run
2> {
3> restore controlfile;
4> }
RMAN-03022: compiling command: restore
RMAN-03022: compiling command: IRESTORE
RMAN-03026: error recovery releasing channel resources
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure during compilation of command
RMAN-03013: command type: restore
RMAN-03002: failure during compilation of command
RMAN-03013: command type: IRESTORE
RMAN-06172: not connected to recovery catalog database
RMAN>
Now without the catalog database how can I restore the control files and the database from the RMAN backup?
I think the old RMAN metadata was stored in catalog database.
Any suggestion please?
regardsSorry I wrongly said that I do not have the DBID, I have DBID but I have controlfile backup as RMAN backupset, not in Binary. So even if I set DBID, RMAN asks for the catalog database, which is not available.
As I worked...
C:\>rman
Recovery Manager: Release 8.1.5.0.0 - Production
RMAN> SET DBID=1208994555
RMAN-03022: compiling command: CSET
RMAN> connect target sys/*****
RMAN-06193: connected to target database (not started)
RMAN> startup nomount
RMAN-06196: Oracle instance started
Total System Global Area 552011724 bytes
Fixed Size 65484 bytes
Variable Size 69357568 bytes
Database Buffers 482514944 bytes
Redo Buffers 73728 bytes
RMAN> run
2> {
3> allocate channel ch1 type disk;
4> restore controlfile;
5> alter database mount;
6> }
RMAN-03022: compiling command: allocate
RMAN-03026: error recovery releasing channel resources
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure during compilation of command
RMAN-03013: command type: allocate
RMAN-06172: not connected to recovery catalog database
RMAN> shutdown
RMAN-06402: Oracle instance shut down
RMAN> set dbid 1208994555
RMAN-03022: compiling command: CSET
RMAN> connect target sys/*** nocatalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01005: syntax error: found "nocatalog": expecting one of: "newline, ;"
RMAN-01007: at line 1 column 27 file: standard input
RMAN> connect target sys/**** nocatalog;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01005: syntax error: found "nocatalog": expecting one of: "newline, ;"
RMAN-01007: at line 1 column 27 file: standard input
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01005: syntax error: found ";": expecting one of: "allocate, alter, beginli
ne, catalog, change, connect, create, crosscheck, debug, delete, drop, exit, end
inline, host, {, library, list, mount, open, print, register, release, replace,
report, reset, resync, rman, rpctest, run, set, sql, "
RMAN-01007: at line 1 column 36 file: standard input
RMAN> exit
Recovery Manager complete.
C:\>rman target sys/**** nocatalog
Recovery Manager: Release 8.1.5.0.0 - Production
RMAN-06193: connected to target database (not started)
RMAN> run{
2> allocate channel ch1 type disk;
3> restore controlfile;
4> alter database mount;
5> }
RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: ch1
RMAN-08500: channel ch1: sid=12 devtype=DISK
RMAN-03022: compiling command: restore
RMAN-03022: compiling command: IRESTORE
RMAN-03026: error recovery releasing channel resources
RMAN-08031: released channel: ch1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure during compilation of command
RMAN-03013: command type: restore
RMAN-03002: failure during compilation of command
RMAN-03013: command type: IRESTORE
RMAN-06003: ORACLE error from target database: ORA-01507: database not mounted
ORA-06512: at "SYS.X$DBMS_RCVMAN", line 923
ORA-06512: at line 1
RMAN-06097: text of failing SQL statement: begin dbms_rcvman . setDatabase ( upp
er ( :dbname:dbname_i ) , :rlscn , :rltime , :fhdbi:fhdbi_i ) ; end ;
RMAN> -
Is it possible to restore TSM/ADSM RMAN backup pieces to disk manually?
Is it possible to restore TSM/ADSM RMAN backup pieces to disk manually, and re-catlog as disk backups?
Oracle 10.2.0.3
TSM client 5.5.1.1
SUN Solaris 10 64-bit
We are gearing up to switch from IBM's Tivoli (TSM/adsm) to EMC's Networker (Legatto), and the old TSM software drivers are going to be uninstalled.
In a worse case scenario, we would therefore not be able to easily restore using RMAN and TSM just after the switch, and before new backups are made on Networker.
To be comfortable with the backup methodology change, we need to explore restoring the RMAN backup pieces of a given tag using TSM commands (dsmc ?) to a filesystem, re-catalog the backup pieces now on disk, and then perform test restore/recoveries using RMAN with disk channels.
Does anyone know of the TSM command (dsmc ?) to perform the restores of RMAN backup pieces?
Thanks!This is a set of guesses and thoughts.
1: When you say you are removing the Tivoli software drive, is this just the driver from the oracle home, or is it more substantive. In fact could you have a different oracle home to access tivoli, possible with a rman catalog copy.
2: I dont believe the backup tag is part of the filename, however is it possilbe to query the rman catalog to get the filenames mapped to a tag?
3: Providing you know the filenames you wish to restore then it is possible to browse the tivoli catalog. Its ages since I've done this but doesn't samc have at interactive mode
Apologies if these suggestions are rubbish and hopefully someone gives a better answer. -
How to Reset dbid from a Shell Script
I would like to use a shell script to:
1) Automate the restore of our Produciton backups to a different server
2) Reset the dbid prior to exiting the script
Is there a way to reset the dbid from a shell script?
When I use the following, it has an interactive prompt in the middle of it, and I don't see anything in the syntax diagram found in the "Oracle Database Utilities" manual that will let me get around this.
nid target =/
DBNEWID: Release 10.2.0.3.0 - Production on Fri Aug 8 09:37:04 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to database DRTEST (DBID=3725550444)
Connected to server version 10.2.0
Control Files in database:
/s01/oradata/drtest/control01.ctl
/s01/oradata/drtest/control02.ctl
/u01/oradata/drtest/control03.ctl
Change database ID of database DRTEST? (Y/[N]) => y
Proceeding with operation
Changing database ID from 3725550444 to 3752603328
Control File /s01/oradata/drtest/control01.ctl - modified
Control File /s01/oradata/drtest/control02.ctl - modified
Control File /u01/oradata/drtest/control03.ctl - modified
Datafile /s01/oradata/drtest/system01.dbf - dbid changed
Datafile /s01/oradata/drtest/undotbs01.dbf - dbid changed
Datafile /s01/oradata/drtest/sysaux01.dbf - dbid changed
Datafile /s01/oradata/drtest/users01.dbf - dbid changed
Datafile /s01/oradata/drtest/rman.dbf - dbid changed
Datafile /s01/oradata/drtest/temp01.dbf - dbid changed
Control File /s01/oradata/drtest/control01.ctl - dbid changed
Control File /s01/oradata/drtest/control02.ctl - dbid changed
Control File /u01/oradata/drtest/control03.ctl - dbid changed
Instance shut down
Database ID for database DRTEST changed to 3752603328.
All previous backups and archived redo logs for this database are unusable.
Database has been shutdown, open database with RESETLOGS option.
Succesfully changed database ID.
DBNEWID - Completed succesfully.... When I use the following, it has an interactive
prompt in the middle of it, ...You may want to try out "Expect" for automating any interactive script.
isotope -
Creating a standbay database from an rman backup
hi,
I have a situation that a standby database has a large gap in archive log files, the primary server does not now have those files. I understand that you can create a standby from an rman backup of the primary but all reading I have done shows thatn you have to have a recovery catalog to carry this out. The system I am on does not have such a catalog so is there any other way to do this?
regards
AlanRequirement 'You must have a recovery catalog in a standby requirement' is a little bit misleading. In fact you can do what you want : creating a standby from RMAN backups without having a recovery catalog. 'Duplicate target database for standby' does not require a connection to a recovery catalog.
You need mandatorily a recovery catalog, when you plan to take backups from the standby later on in order to free the primary from this task. The reason for that is it's not possible to transfer backup records from the standby controlfiles to the primary ones directly. After a backup on the standby you resync the catalog with the standby controlfile. Then you connect to the catalog and the primary,resync again and have actual backup informations in the primary controlfiles. When there's a media recovery problem, you easily can restore/recover the primary.
Werner -
What is RMAN backup piece ?
Hi,
Kindly explain me in simple terms what is rman "backup piece". Document is saying "The physical file format used to store RMAN backup sets.". What do you mean physical file format ? Little confused with this terminology.
thanks & regards
pjpYou can make an analogy with tablespaces, where one tablespace must have at least one datafile, but can have one more than.
As:
Tablespace = backup set
Datafile = backup piece -
Identify character from a jpeg file Using OCR
Hai all...
is there any way to identify characters from a jpg file using OCR related technologies..
i want to identify if thr any data in a page .the page is a jpg image contain lines.
is there any way plz help me..
very urgent..Hai all...
is there any way to identify characters from a jpg
file using OCR related technologies..Yes
i want to identify if thr any data in a page .the
page is a jpg image contain lines.
is there any way plz help me..Get an Image Processing / OCR book for Java -
Hi
How to identify OS from Oracle ? I need to know from PLSQL what is the path format.
Regards
DenHi,
Like this ?
Oracle 10G
RPS@ORACLE10> select platform_name from v$database;
PLATFORM_NAME
Linux IA (32-bit)
Oracle 8i/9i
RPS@ORACLE10> select dbms_utility.port_string from dual;
PORT_STRING
Linuxi386/Linux-2.0.34-8.1.0Cheers
Message was edited by:
Legatti -
Handling "combined" identifying relationships from same root entity
I'm using ODM to do some documentation of our application, and running into difficulties handling this scenario:
E3 has relationship from E2 which has identifying relationship from E1, and which also has another attribute include in its key.
E3 also has an identifying relationship from E1.
See attached.
As I'm not really doing anything with this other than documentation, I'm OK with just hiding the "SCHEDULER_ID1" attribute that comes from the JOB --> EXECUTED_JOB relationship. I can do this in the UI, and it looks fine. However, as soon as I re-open the model, its hidden state does not stick.
Is there a configuration, or any workaround that anyone knows of?Hi,
thanks for reporting the problem and for provided example. I logged bugs for reappearing hidden FK attribute and for generated wrong name for PK identifier (in provided design).
Philip -
Database restore from old rman backup
Hi Friends,
My database version is oracle 10.2.0 O/s : Windows
I have a production database of an outlet. Yesterday night 11pm they have done some wrong transactions and whole stock is showing wrong.
They have taken a export backup at 9.30 pm and latest archives are there.
We have a rman backup on April-30,2008. when I am trying to restore from the old rman backup the controlfile I am unable to do it.
Can any one of you help me out.
thankyou
satyaHi,
I have tried installing in a seperate system and restore the rman backup, as I do not have the controlfile I have taken a standby controlfile and started restoring the rman backup as the old rman backup dbid is different with the current dbid and giving me following error:
ORA-19870: error reading backup piece D:\MPOUTLET\0AJF4BM3_1_1
ORA-19691: D:\MPOUTLET\0AJF4BM3_1_1 is from different database: id=1976833331, name=JEEVAMP
ORA-19870: error reading backup piece D:\MPOUTLET\0BJF4BOE_1_1
ORA-19691: D:\MPOUTLET\0BJF4BOE_1_1 is from different database: id=1976833331, name=JEEVAMP
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of catalog command at 07/13/2008 12:23:23
RMAN-06209: List of failed objects
RMAN-06211: ==========================
RMAN-06212: Object Type Filename/Handle
RMAN-06213: --------------- ---------------------------------------------------
RMAN-06214: Backup Piece D:\MPOUTLET\0AJF4BM3_1_1
RMAN-06214: Backup Piece D:\MPOUTLET\0BJF4BOE_1_1 -
RMAN backup piece corruption.
Hi,
I m having multiple databases where RMAN backup configured and scheduled. I want to know from backup piece how I can know the block corruption?What is the version of your RMAN utility.
Try this:
Start RMAN and connect to a target database and recovery catalog (if used).
Run the BACKUP VALIDATE command.
For example, you can validate that all database files and archived logs can be backed up by running a command as shown in the following example. This command checks for physical corruptions only.
BACKUP VALIDATE
DATABASE
ARCHIVELOG ALL;
To check for logical corruptions in addition to physical corruptions, run the following variation of the preceding command:
BACKUP VALIDATE
CHECK LOGICAL
DATABASE
ARCHIVELOG ALL;
In the preceding examples, the RMAN client displays the same output that it would if it were really backing up the files. If RMAN cannot back up one or more of the files, then it issues an error message. For example, RMAN may show output similar to the following:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 08/29/2007 14:33:47
ORA-19625: error identifying file /oracle/oradata/trgt/arch/archive1_6.dbf
ORA-27037: unable to obtain file status
SVR4 Error: 2: No such file or directory
Additional information: 3
Source: http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmvalid.htm (To validate files with the BACKUP VALIDATE command) -
Can I call an external program from my rman script
Hi
Is it possible to do an external call to a bat-file in a rman script?
My script looks like this (it's pretty much generated from EM):
$rman_script="backup device type disk tag '%TAG' database;
sql 'alter system archive log current';
backup device type disk tag '%TAG' archivelog all not backed up delete all input;
allocate channel for maintenance type disk;
delete noprompt obsolete device type disk;
release channel;
Can i somehow make an external call before at the end?
Regards
Klaus MogensenYou can use the HOST command.
-
Invalid identifier results from an sql statement in php
hello there, i'm trying to access data from an oracle 11g database via oci and php 5.3.8.
i'm getting the ORA-00904 (invalid identifier) error when executing the following statement:
$stid = oci_parse($conn, 'select * from table1 where column1 = "XYZ"');
when i do this:
$searchstring = "XYZ";
$stid = oci_parse($conn, 'select * from table1 where column1 = '.$searchstring.'');
i'm getting this error:
ORA-00933: SQL command not properly ended
column1 is varchar2, the entries are either letters and numbers (never only numbers) or empty.
when i do this:
$stid = oci_parse($conn, 'select * from table1');
i'm getting the data and there are entries in column1 with XYZ.
has anyone an idea, what i do wrong?
regards jThe PHP forum for questions like this is at http://www.oracle.com/technetwork/forums/php/index.html
You really need to be using a bind variable here. Otherwise you will likely suffer from poor DB performance, and also open yourself to SQL Injection security attacks. Try:
$stid = oci_parse($conn, 'select * from table1 where column1 = :bv');
oci_bind_by_name($stid, ":bv", $searchstring);Regarding quoting of your example try:
$searchstring = "XYZ";
echo 'select * from table1 where column1 = '.$searchstring.'';Then run that SQL in SQL*Plus and watch it fail. What you need is given with:
echo 'select * from table1 where column1 = \''.$searchstring.'\'';See the bottom of p 126 of The Underground PHP and Oracle Manual
Note that with the bind variable example you didn't need quotes around :bv. -
B2B identifying TP from file name and not Interchange
We want B2B to identify trading partner from ISA/GS segment, but B2B is taking it from file name. We have property oracle.tip.adapter.b2b.edi.identifyFromTP set to "Interchange". As I understand based on the tip.property it should always take from the ISA/GS segment in dat file.
We also have Trading Partner Identification Type set to EDI Interchange ID while setting up trading partner and it is set to the same value as Interchange Receiver Id in the Document Protocol.
Anyone has any ideas?
ThanksHello Venkat,
ideally this should work. Guess you have not restarted b2b after changing the tip.properties. If you still have issues, please raise an SR and also send the b2b.log in DEBUG mode.
Rgds,Ramesh
Maybe you are looking for
-
Can't get rid of "Inconsistencies in your sync information ...."
This pop-up message keeps appearing every few minutes on my MBP ... no matter how often I Sync. I use to get it a few times a day with my 3G, but now that I have a 3GS, I'm getting it every few minutes ... since also buying and setting up MobileMe. T
-
I formatted a USB thumbrdive as Extended + Journaled, GUID partition. Actually I did it on 2 different thumbdrives to see if the problem would repeat and it's the same on both. I use Carbon Copy Cloner to copy the small Boot partition off my machine
-
How Do I Remove the Passcode Security Setting
How can I edit and remove the security passcode from popping up everytime I want to utilize my I phone
-
Hi All When running SAP BW reports in BEx, through excel 2007 version, it says it can only show 65,536 rows while actually 2007 has row limitations has 1,048,576. My query output has more than 65536 rows occupied but still in excel 2007,I am not see
-
Can someone please point me to some reading material or config material on Matrix Organization in OM. I have read documentation available on help.sap.com but am looking for more information. Points will be rewarded. Learner