RMAN backups : versions of database
I have been trying to restore an 11.1.0.7 backup to a 11.2 database. I've been having a few problems with this - it complaians about the contents of the undo tablespace. Am I capable of recovering from this situation ?
what are the general rules about restoring backupsets from one version of oracle into another ? I've not been able to find much documentation.
johnnied
Hi,
I thought that an upgrade might be necessary.Yes you have to do an upgrade if you go from 11.1.0.7 to 11.2.
in short:
restore
recover
Than start the upgrade.
However I thought/was hoping that rman backups might have been backward compatibleYour backups are forward compatible only you have to upgrade the database.
( I think correctly ? that rman backups are platform independent)No this is not true (which makes me think the error you get is caused because you restored to a different OS platform?)
You have to use the convert command in rman if you want to restore to a different OS platform.
Please follow the link.
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta018.htm#i88628
Regards,
Tycho
Similar Messages
-
How can i do a RMAN backup of my database from the network ?
i'm using oracle 8i.1.7.3 with win server 2003
i want to know how can i do a RMAN backup of my database (sever machine A) from the network.
i'd like to save the backup in another machine (the same LAN, the same OS ).
to do that i've mapped a logical device in my comptur (z):
when i run rman command i got this error:
channel ORA_DISK_1: starting piece 1 at .......
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command ON ORA_DISK_1 channel at .......
00
ORA-19504: failed TO CREATE file "\\remote\save\"
ORA-27040: skgfrcre: create error, unable to create file
OSD-04002: unable to open file
O/S-Error: (OS 123) The filename, directory name, or volume label syntax is inco
rrect.Hi,
ORA-19504: failed TO CREATE file "\\remote\save\"make sure you have created this directory and change it's ownership (chown command)to oracle.
also make sure that oracle user has permission to write to this direcotry (chmod command)
hope this helps
cheers, walrus -
Rman backup with standby database
Hi All,
I am looking for some suggestions for rman backup with standby database with datagaurd but no active DG. I wanted to do a rman tablespace backup. but I am stuck at sql 'alter system archive log current' in rman with standby as target. which gives following errors with or without noswitch clause
RMAN> sql 'alter system archive log current noswitch';
sql statement: alter system archive log current noswitch
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of sql command on default channel at 10/05/2013 18:15:12
RMAN-11003: failure during parse/execution of SQL statement: alter system archive log current noswitch
ORA-01109: database not open
Recovery Manager: Release 11.2.0.1.0
Oracle databaes Release 11.2.0.1.0 64 bit
OS:RHEL 6 x86-64 bit
Secondly, do I need to cancel manged recovery while taking rman backups on standby.
I scanned thru MOS but could find solutions for rman with active DG.
Thanks in advance726d07e6-b870-431f-8c22-a499c3ec4e0c wrote:
Hi All,
I am looking for some suggestions for rman backup with standby database with datagaurd but no active DG. I wanted to do a rman tablespace backup. but I am stuck at sql 'alter system archive log current' in rman with standby as target. which gives following errors with or without noswitch clause
RMAN> sql 'alter system archive log current noswitch';
sql statement: alter system archive log current noswitch
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of sql command on default channel at 10/05/2013 18:15:12
RMAN-11003: failure during parse/execution of SQL statement: alter system archive log current noswitch
ORA-01109: database not open
Recovery Manager: Release 11.2.0.1.0
Oracle databaes Release 11.2.0.1.0 64 bit
OS:RHEL 6 x86-64 bit
Secondly, do I need to cancel manged recovery while taking rman backups on standby.
I scanned thru MOS but could find solutions for rman with active DG.
Thanks in advance
"I scanned thru MOS but could find solutions for rman with active DG."
Howto make a consistent RMAN backup in an Standby database in Active DataGuard mode (Doc ID 1419923.1) -
RMAN backup for two databases with similar DBID
We have two databases with SID 'uiivc' and 'uiivc1' running from one of the HP Unix 11.11 PA-RISC server. I did configured RMAN backup for both databases. But it is found that both databases have same DBID [connected to target database: UIIVC (DBID=3005194057) for UIIVC & connected to target database: UIIVC1 (DBID=3005194057) for UIIVC1] and backup configured via crontab seen running fine with full backup at weekend and archivelog backup at daily for both databases. Now my query is that will it create any issues at time of restoration since both databases have similar DBID? Does RMAN uses DBID to distinguish databases?
Kindly help to clarifiy
Regards
Manoj Thakkan
[email protected]Hi Tycho,
I configured RMAN to store controlfile backups in different folders on each database.
UIIVC database:
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/hot_backups/rmanbkp/uiivc/cf%F';
UIIVC1 database:
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/hot_backups/rmanbkp/uiivc1/cf%F';
Server output:
uii-79:uiivc1 > ls -lrt /hot_backups/rmanbkp/uiivc
total 43904816
-rw-r----- 1 oracle dba 21144928256 Jul 15 10:58 8rkk68p5_1_1
-rw-r----- 1 oracle dba 287110144 Jul 15 13:41 8tkk6sfv_1_1
-rw-r----- 1 oracle dba 862700544 Jul 16 08:00 90kk8sel_1_1
-rw-r----- 1 oracle dba 152350720 Jul 16 08:09 92kk8tgg_1_1
-rw-r----- 1 oracle dba 32145408 Jul 16 08:09 cfc-3005194057-20090716-01
uii-79:uiivc1 > ls -lrt /hot_backups/rmanbkp/uiivc1
total 24186112
-rw-r----- 1 oracle dba 6373965824 Jul 13 13:10 83kk1ftf_1_1
-rw-r----- 1 oracle dba 784803840 Jul 13 13:46 85kk1j5e_1_1
-rw-r----- 1 oracle dba 1022674944 Jul 13 23:07 87kk2kjs_1_1
-rw-r----- 1 oracle dba 1814230016 Jul 14 23:46 89kk591i_1_1
-rw-r----- 1 oracle dba 1211042816 Jul 15 23:06 8bkk7tc0_1_1
-rw-r----- 1 oracle dba 1165975552 Jul 15 23:10 8ckk7tnr_1_1
-rw-r----- 1 oracle dba 10534912 Jul 15 23:10 cfc-3005194057-20090715-00
And I saw backups are placing in the respective folders too. So with these settings, can I safely assume there is no issues with RMAN backup and restore having similar DBID for two databases running on same server?
Regards
Manoj Thakkan -
Manually register rman backup with oracle database 10g
Dear All.
I want to restore full backup of database.
I have not configure flash_recovery_area.
how i can manually register full rman backup of database with oracle database 10g.?
Please help me.
Thanks & Regards
Ravi KumarThis is the 10gR2 documentation on the CATALOG command :
http://docs.oracle.com/cd/B19306_01/backup.102/b14194/rcmsynta011.htm#sthref230
You must be specific when stating the version you are running. Commands may be limited or unavailable in older versions versus more recent versions of Oracle.
Hemant K Chitale -
Rman backup for oracle11g database
Hi,
I want to take the rman backup of 11.2.0.1.0 database, but my catalog database is 10.2.0.1. So Is it possible to take it.
Please suggest me.
My target database : 11.2.0.1.0
OS: windows 2003 R2 server
My catalog database: 10.2.0.1
OS: windows 2003 R2 serverhere you go : http://www.comp.dit.ie/btierney/oracle11gdoc/backup.111/b28273/compat.htm
-
Slow rman backup and slow database
Hello all,
Whenever I run rman backup to sbt_tape, the complete database becomes slow. Also RMAN takes more than 12 hours to complete.
RMAN script is:
run {
allocate channel t1 type 'sbt_tape' parms 'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
sql 'alter system switch logfile';
backup incremental level 2 tag 'db_level2_backup'
format'%d/INC2/%t/%s/%p'
database diskratio=0;
backup
format '%d/LOG_INC2/%t/%s/%p'
archivelog all
delete all input;
release channel t1;
}The AWR shows following "Top 5 timed events"
Event Waits Time(s) Avg Wait(ms) % Total Call Time Wait Class
db file sequential read 817,467 17,419 21 28.6 User I/O
CPU time 14,294 23.5
log file sync 141,642 8,570 61 14.1 Commit
enq: TX - row lock contention 3,371 7,171 2,127 11.8 Application
log file parallel write 149,486 5,356 36 8.8 System I/OWhat can be done? Can anyone tell what wrong is happening here?
Database is 10.2.0.4
OS is AIX 5.3
SGA_TARGET is 6G
PGA_AGGREGATE_TARGET is 2G
Total physical RAM is 12G
EBiz application is running in the same server
Regards,
SAOn my server, we needed to adjust the vmm on aix for oracle to run best. Before I did that it was really slow.
http://www.ibm.com/developerworks/aix/library/au-aixoracle/index.html
Specifically these as outlined in the document linked above:
Listing 3. Changing the default setting for the lru_file_repage parameter using vmo
root@lpar21ml16ed_pub[] > vmo -o lru_file_repage=0
Setting lru_file_repage to 0
root@lpar21ml16ed_pub[] >
Setting this to 0 tells the VMM that you want to steal only file pages and not computational pages. As this will change if the numperm < minperm or > maxperm, we will make maxperm high and minperm very low. Years ago, before the lru_file_repage parameter was introduced, we used to make maxperm low. If we did this now, we would stop the application caching programs that are currently running.
Listing 4 shows how we'll set these parameters:
Listing 4. Setting the minperm, maxperm and maxclient parameters
vmo -p -o minperm%=5
vmo -p -o maxperm%=90
vmo -p -o maxclient%=90
We also want to take a look at minfree and maxfree. When the pages on our free list fall below minfree, the VMM will start to steal pages, which we don't want to happen until the free list has beefed up the number in maxfree. The values should be similar to the ones shown in Listing 5.
Listing 5. Setting the minfree and maxfree parameters
vmo -p -o minfree=960
vmo -p -o maxfree=1088
Edited by: user455434 on Oct 12, 2010 1:14 PM -
Restore RMAN Backup in Different Database on Same RAC
We have 11gR2 2 node RAC on Linux. ASM and OMF is used for database. The database on it is backedup using RMAN.
We want to test the RMAN backup by restoring it to a new database on same server.
Can someone guide me to steps on how this can be achieved. I'm afraid this should not affect the actual database.
Thanks a lot.Hi,
Yes, this can be done without disturbing your source db. Need more information on your DB structure (datafile asm diskgroups), all you need to do is restore as single node and convert to rac, since you want to test rman restore, you can restore to single node to prove your RMAN backups are intact.
Changes in init.ora
==============
db_file_name_convert= ("source dir structure","target dir structure")
log_file_name_convert=("source dir structure","target dir structure")
cluster_database=false
event="10298 trace name context forever, level 32"
_no_recovery_through_resetlogs=TRUE
Set new database sid (export ORACLE_SID=NEW_SID)
sql>startup nomount;
rman auxiliary /
rman>duplicate database to "NEW_SID" backup location "Your RMAN Backup location";
The above are very high level general steps, please do take other steps into consideration as per your environment. -
RMAN backup of STANDBY database
I have just created a STANDBY database using Oracle 8.1.7 which I am trying to backup using RMAN. This would then not impact on the PRODUCTION database, yet still give a valid backup. The problem I am having is that contrary to what I have been told and read about the `duplicate for standby` command, it does not reset the DB_ID. This has the effect that you canot register your new STANDBY database in the RMAN catalog as it sees it as the PRODUCTION instance that was used to create it. I have found several `solutions` on Metalink, which all require the use of a `resetlogs` command, so invalidating the STANDBY database. Does anyone know of a way that I can bypass this problem and carry out valid backups of the STANDBY database ?
TIA
Mark Tindall
Email: [email protected]Mark,
The STANDBY database must have the same DBID as the production or you could not use the backups taken at a standby
database to recover the production database.
To backup the standby database with RMAN, you must use a recovery catalog. Take at look at http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a96566/rcmbackp.htm#445993
for information on how to backup the standby with RMAN.
Tammy -
PRODUCTION DATABASE RMAN BACKUPS FAILING CONTINUOSLY DATABASE NOT AVAILABL
Database is up and running but am facing the problem in RMAN below are the details
[oracle@Oracle01 log]$ rman target /
Recovery Manager: Release 11.2.0.2.0 - Production on Fri Mar 30 02:35:31 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: LAGOPROD (DBID=3989619179)
RMAN> show all;
using target database control file instead of recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of show command at 03/30/2012 02:35:39
ORA-03114: not connected to ORACLE
could you please help on it why its throughing on error
FYI
==
STATUS OPEN_MODE LOG_MODE LOGINS
OPEN READ WRITE ARCHIVELOG ALLOWED
Edited by: 924453 on Mar 30, 2012 1:43 AM924453 wrote:
Database is up and running but am facing the problem in RMAN below are the details
[oracle@Oracle01 log]$ rman target /
Recovery Manager: Release 11.2.0.2.0 - Production on Fri Mar 30 02:35:31 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: LAGOPROD (DBID=3989619179)
RMAN> show all;
using target database control file instead of recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of show command at 03/30/2012 02:35:39
ORA-03114: not connected to ORACLE
could you please help on it why its throughing on error
FYI
==
STATUS OPEN_MODE LOG_MODE LOGINS
OPEN READ WRITE ARCHIVELOG ALLOWED
Edited by: 924453 on Mar 30, 2012 1:43 AMYou are not connected to oracle. show us the result of
export ORACLE_SID= sid
export ORACLE_HOME = your oracle home
export PATH=$PATH:$ORACLE_HOME/bin
sqlplus / as sysdba -
Restore single instance rman backup to rac database
Hello all. I have a 10gR2 single instance database that I have been taking backups using the oracle's suggested backup strategy, that is, once full database backup and incremental backups here and there. That's is all fine as I have (many times) being requested to rollback the database resulting in all operations being sucessfull.
However, since this is somehow a pre-certification database, I am now being tasked to restore this database to what is going to be our production database, which is a 10gR2 rac database. I have already set up the RAC database sucessfull.
Now, my question is: How can I take one of the backups that I have on the single-instance database and restore onto my RAC database ?
Some information about the infraestructure:
Both operating systems are HP-UX. Single instance is 11.23, RAC database is 11.31.
Both database are using ASM as datafiles storage and flash recovery area storage.
Any help will be appreciated!
Thanks!In general terms, there are several ways you can convert a single instance into a rac intance, and it involves much more activities than just adding redo threads.
Use of DBCA
Enterprise Manager Grid Control
rconfig utility
Considering your case, if you don't currently have Grid Control, the first option is rconfig.
1. Migrate your database from the current environment to the target environment by a regular cloning procedure, this will create a single instance into your rac environment. Your regular rdbms rac installation allows you to manage both, single instance and rac instances. Use this procedure to clone your database to the target RAC environment using recovery manager --> http://madrid9999.googlepages.com/rmancloneadatabase
2. Once you have started your database in the RAC environment proceed with the rconfig tool, this requires some files to perform the conversion, the ConvertToRAC.xml file which is located at $ORACLE_HOME/assistants/rconfig/sampleXMLs
3. Once you copied/edited the ConvertToRAC.xml file, you have to run the rconfig. Save the ConvertToRAC.xml under a different file name.
rconfig editedConvertToRAC.xml
4. For further reference on the rconfig command, you may refer to this page Oracle® Real Application Clusters Installation Guide
11g Release 1 (11.1) for Linux and UNIX
~ Madrid -
Restore RMAN from different Database Rman backup
Hi Everybody
I am practicing Rman so I have one query that how to restore rman backup from another database.
For Example :
1. I have Rman backup of DB1 with level 0 and level 1 cumulative database plus archievelog
2. I need to import or restore Rman backup of DB1 to another database DB2.
What is the procedure for doing the above queries. Please anyone one help me out.
I have using oracle 10g r2 running in windows server 2003.
Thanks in advance.These are the steps ; you need to write the appropiate commands for each step: Hope it helps!
1) Take appropriate RMAN backup of the database db1. Note that you should turn on the CONTROLFILE AUTOBACKUP configuration so that we have the controlfile backed up after the database backup. When we restore the controlfile on new host from this autobackup piece, it will have the information of the latest backup.
2) Create a PFILE for the destination database db2 using the database db1
3) Move the backup pieces and the modified INIT.ORA file to the new host. Starting from 10g it is NO longer compulsory to copy the RMAN backup pieces to exactly the same location on the new host as the production location.
4) Use the pfile created above to STARTUP NOMOUNT the database on the new host
5) Now invoke RMAN and restore the controlfile specifying the location where the controlfile autobackup piece is restored on this new server. You can mount the database once the controlfile is restored successfully.
6) You can skip this step if you have restored the RMAN backup pieces to exactly the same location they were backed up on database db1. If this is not the case then you need to catalog the RMAN backup pieces to make RMAN aware of thier new location on the new host. Note that CATALOG BACKUPPIECE command is available only starting from 10g.
7) Having determined the point up to which media recovery should run, start the restore/recovery using for example:
RMAN> run {
2> set until sequence 59 thread 1;
3> set newname for datafile 1 to '/new_location/system01.dbf';
4> set newname for datafile 2 to '/new_location/undotbs01.dbf';
5> set newname for datafile 3 to '/new_location/sysaux01.dbf';
6> set newname for datafile 4 to '/new_location/users01.dbf';
7> restore database;
8> switch datafile all;
9> recover database;
10> } -
Best pratices for RMAN backup management for many databases
Dear all,
We have many 10g databases (>40) hosted on multiple Windows servers which are backup up using RMAN.
A year ago, all backup's were implemented through Windows Scheduled Tasks using some batch files.
We have been busy (re)implementing / migrating such backup in Grid Control.
I personally prefer to maintain the backup management in Grid Control, but a colleague wants now to go back to the batch files.
What i am looking for here, are advices in the management of RMAN backup for multiple databases: do you guys use Grid Control or any third-party backup management tool or even got your home-made solution?
One of the discussion topic is the work involved in case that the central backup location changes.
Well... any real-life advices on best practices / strategies for RMAN backup management for many databases will be appreciated!
Thanks,
ThierryHi Thierry,
Thierry H. wrote:
Thanks for your reaction.
So, i understand that Grid Control is for you not used to manage the backups, and as a consequence, you also have no 'direct' overview of the job schedules.
One of my concern is also to avoid that too many backups are started at the same time to avoid network / storage overload. Such overview is availble in Grid Control's Jobs screen.
And, based on your strategy, do you recreate a 'one-time' Oracle scheduled job for every backup, or do your scripts create an Oracle job with multiple schedule?
You're very welcome!
Well, Grid Control is not an option for us, since each customer is in a separate infrastructure, and with their own licensing. I have no real way (in difference to your situation) to have a centralized point of control, but that on the other hand mean that I don't have to consider network/storage congestion, like you have to.
The script is run from a "permanent" job within the dba-scheduler, created like this:
dbms_scheduler.create_job(
job_name => 'BACKUP',
job_type => 'EXECUTABLE',
job_action => '/home/oracle/scripts/rman_backup.sh',
start_date => trunc(sysdate)+1+7/48,
repeat_interval => 'trunc(sysdate)+1+7/48',
enabled => true,
auto_drop => false,
comments => 'execute backup script at 03:30');and then the "master-script", determines which level to use, based on weekday from the OS. The actual job schedule (start date, run interval etc) is set together with the customer IT/IS dept, to avoid congestion on the backup resources.
I have no overview of the backup status, run times etc, but have made monitoring scripts that will alert me if/when a backup either fails, or runs for too long. This, in addition with scheduled disaster/recovery tests makes me sleep rather well at night.. ;-)
I realize that there (might be) better ways of doing backup scheduling in your environment, since my requirements are so completely different than yours, but I guess that we all face the same challenges in unifying the environments as much as possible, to minimize the amount of actual work we have to do. :-)
Good luck!
//Johan -
Restoring 9i Rman backup in 10g
Hi,
Is it possible to clone a 10g database with the Rman backup of 9i database ? if yes what will be the steps for that ?Hi;
Please see:
RMAN Compatibility Matrix [ID 73431.1]
Answers To FAQ For Restoring Or Duplicating Between Different Versions And Platforms [ID 369644.1]
Regard
Helios -
Hi all,
i got a scenerion where i need to check whether rman back is valid or not.
i have y server where production db resides and storage team kept the 7 days old rman backup in the same production server and my resposibility is to reatore the rman backup with new database name in the same server and to query the new db to cross verify that rman backup is valid or not.
oracle version : 9.2.0.4.0
os : windows
appreciated the inputs.
Thanks
PrakashCan you solve your problem?
Now I explain this for you.Consider we have database which name is "w".We want craete new database (w1) using backup of w in same machine.Also backup of database have located in D:\oracle\product\10.2.0\flash_recovery_area\W.
First we have to create service and some directories for new W1,aslo restore spfile and controlfile as
C:\Documents and Settings\chinar>set ORACLE_SID=W1
C:\Documents and Settings\chinar>rman target sys/sm
Recovery Manager: Release 10.2.0.2.0 - Production on Fri May 14 11:00:51 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database:
ORA-12560: TNS:protocol adapter error
C:\Documents and Settings\chinar>oradim -new -sid W1 -intpwd sm
Instance created.
C:\Documents and Settings\chinar>rman target sys/sm
Recovery Manager: Release 10.2.0.2.0 - Production on Fri May 14 11:01:21 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database (not started)
RMAN> startup nomount;
startup failed: ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file 'D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE
\INITW1.ORA'
starting Oracle instance without parameter file for retrival of spfile
Oracle instance started
Total System Global Area 159383552 bytes
Fixed Size 1288292 bytes
Variable Size 58722204 bytes
Database Buffers 92274688 bytes
Redo Buffers 7098368 bytes
RMAN> restore spfile to pfile 'D:\oracle\product\10.2.0\admin\W1\pfile\initw1.or
a' from 'D:\oracle\product\10.2.0\flash_recovery_area\W\AUTOBACKUP\2010_05_14\O1
_MF_S_718973315_5YSS1O7W_.BKP';
Starting restore at 14-MAY-10
using channel ORA_DISK_1
channel ORA_DISK_1: autobackup found: D:\oracle\product\10.2.0\flash_recovery_ar
ea\W\AUTOBACKUP\2010_05_14\O1_MF_S_718973315_5YSS1O7W_.BKP
channel ORA_DISK_1: SPFILE restore from autobackup complete
Finished restore at 14-MAY-10
RMAN>
RMAN> restore controlfile to 'D:\oracle\product\10.2.0\oradata\W1\control01.ctl'
from 'D:\oracle\product\10.2.0\flash_recovery_area\W\AUTOBACKUP\2010_05_14\O1_M
F_S_718973315_5YSS1O7W_.BKP';
Starting restore at 14-MAY-10
using channel ORA_DISK_1
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:02
Finished restore at 14-MAY-10
RMAN>
then change initw1. pfile accourding to W!(all w change to W1) and create additional two copy of controlfile from
D:\oracle\product\10.2.0\oradata\W1\CONTROL01.CTL. then
C:\Documents and Settings\chinar>rman target sys/sm
Recovery Manager: Release 10.2.0.2.0 - Production on Fri May 14 11:14:34 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: DUMMY (not mounted)
RMAN> shutdoen immediate;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "allocate, alter
, backup, beginline, blockrecover, catalog, change, connect, copy, convert, crea
te, crosscheck, configure, duplicate, debug, delete, drop, exit, endinline, flas
hback, host, {, library, list, mount, open, print, quit, recover, register, rele
ase, replace, report, renormalize, reset, restore, resync, rman, run, rpctest, s
et, setlimit, sql, switch, spool, startup, shutdown, send, show, test, transport
, upgrade, unregister, validate"
RMAN-01008: the bad identifier was: shutdoen
RMAN-01007: at line 1 column 1 file: standard input
RMAN> shutdown immediate;
using target database control file instead of recovery catalog
Oracle instance shut down
RMAN> startup mount pfile='D:\oracle\product\10.2.0\admin\W1\pfile\INITW1.ORA';
connected to target database (not started)
Oracle instance started
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of startup command at 05/14/2010 11:15:28
ORA-01103: database name 'W' in control file is not 'W1' -- return still db_name to w and restart
RMAN> shutdown immediate;
Oracle instance shut down
RMAN> startup mount pfile='D:\oracle\product\10.2.0\admin\W1\pfile\INITW1.ORA';
connected to target database (not started)
Oracle instance started
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of startup command at 05/14/2010 11:16:17
ORA-01102: cannot mount database in EXCLUSIVE mode -- add pfile *.db_unique_name=w1
RMAN> shutdown immediate;
Oracle instance shut down
RMAN> startup mount pfile='D:\oracle\product\10.2.0\admin\W1\pfile\INITW1.ORA';
connected to target database (not started)
Oracle instance started
database mounted
Total System Global Area 125829120 bytes
Fixed Size 1288100 bytes
Variable Size 62916700 bytes
Database Buffers 54525952 bytes
Redo Buffers 7098368 bytes
RMAN> catalog start with 'D:\oracle\product\10.2.0\flash_recovery_area\W';
Starting implicit crosscheck backup at 14-MAY-10
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=157 devtype=DISK
Crosschecked 1 objects
Finished implicit crosscheck backup at 14-MAY-10
Starting implicit crosscheck copy at 14-MAY-10
using channel ORA_DISK_1
Crosschecked 2 objects
Finished implicit crosscheck copy at 14-MAY-10
searching for all files in the recovery area
cataloging files...
no files cataloged
searching for all files that match the pattern D:\oracle\product\10.2.0\flash_re
covery_area\W
List of Files Unknown to the Database
=====================================
File Name: D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\W\AUTOBACKUP\2010_05_14\
O1_MF_S_718973315_5YSS1O7W_.BKP
Do you really want to catalog the above files (enter YES or NO)? y
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\W\AUTOBACKUP\2010_05_14\
O1_MF_S_718973315_5YSS1O7W_.BKP
RMAN>
RMAN> run
2> {
3> set newname for datafile 1 to 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSTEM01.D
BF';
4> set newname for datafile 2 to 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\UNDOTBS01.
DBF';
5> set newname for datafile 3 to 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSAUX01.D
BF';
6> set newname for datafile 4 to 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\USERS01.DB
F';
7> set newname for datafile 5 to 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\EXAMPLE01.
DBF';
8> set newname for datafile 6 to 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\USERS02.DB
F';
9> restore database;
10> }
executing command: SET NEWNAME
using target database control file instead of recovery catalog
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 14-MAY-10
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=157 devtype=DISK
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSTEM01.DBF
restoring datafile 00002 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\UNDOTBS01.DBF
restoring datafile 00003 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSAUX01.DBF
restoring datafile 00004 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\USERS01.DBF
restoring datafile 00005 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\EXAMPLE01.DBF
restoring datafile 00006 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\USERS02.DBF
channel ORA_DISK_1: reading from backup piece D:\ORACLE\PRODUCT\10.2.0\FLASH_REC
OVERY_AREA\W\BACKUPSET\2010_05_14\O1_MF_NNNDF_TAG20100514T104649_5YSRYBV3_.BKP
channel ORA_DISK_1: restored backup piece 1
piece handle=D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\W\BACKUPSET\2010_05_14
\O1_MF_NNNDF_TAG20100514T104649_5YSRYBV3_.BKP tag=TAG20100514T104649
channel ORA_DISK_1: restore complete, elapsed time: 00:01:25
Finished restore at 14-MAY-10
RMAN>
then backup controlfile to trace as:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\chinar>set ORACLE_SID=W1
C:\Documents and Settings\chinar>sqlplus "sys/sm as sysdba"
SQL*Plus: Release 10.2.0.2.0 - Production on Fri May 14 11:26:42 2010
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> alter database backup controlfile to trace as 'D:\oracle\product\10.2.0\ora
data\W1\ctrl.sql';
Database altered.
SQL>
SQL> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL>
Now edit ctrl.sql for chhange database name to new W1 also change in pfile db_name from W to W1.And delete
all controlfile from D:\oracle\product\10.2.0\oradata\W1. Then
SQL> startup mount pfile=D:\oracle\product\10.2.0\admin\W1\pfile\INITW1.ORA;
ORACLE instance started.
Total System Global Area 125829120 bytes
Fixed Size 1288100 bytes
Variable Size 62916700 bytes
Database Buffers 54525952 bytes
Redo Buffers 7098368 bytes
Database mounted.
SQL>
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSTEM01.DBF'
SQL> recover database using backup controlfile until cancel;
ORA-00279: change 1419839 generated at 05/13/2010 12:36:09 needed for thread 1
ORA-00289: suggestion :
D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\W1\ARCHIVELOG\2010_05_14\O1_MF_1_25
_%U_.ARC
ORA-00280: change 1419839 for thread 1 is in sequence #25
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
cancel
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSTEM01.DBF'
ORA-01112: media recovery not started
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSTEM01.DBF'
SQL>
add pfile *._allow_resetlogs_corruption=true
again
SQL> startup mount pfile=D:\oracle\product\10.2.0\admin\W1\pfile\INITW1.ORA;
ORACLE instance started.
Total System Global Area 125829120 bytes
Fixed Size 1288100 bytes
Variable Size 62916700 bytes
Database Buffers 54525952 bytes
Redo Buffers 7098368 bytes
Database mounted.
SQL> recover;
Media recovery complete.
SQL> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
then remove _allow_resetlogs_corruption=true parameter from pfile and
SQL> startup mount pfile=D:\oracle\product\10.2.0\admin\W1\pfile\INITW1.ORA;
ORACLE instance started.
Total System Global Area 125829120 bytes
Fixed Size 1288100 bytes
Variable Size 62916700 bytes
Database Buffers 54525952 bytes
Redo Buffers 7098368 bytes
Database mounted.
SQL> alter database open;
Database altered.
SQL>
Maybe you are looking for
-
Dear Team, Would you please provide me a solution To my problem. My Right Speaker on HP PAVILION G4 notebook is not working properly. Its sound is craking. Regards, John
-
PHP_MySQL version of a high security user authentication web app.
Since you folks deal with PHP Application Development, I am posting this here. For a demo of the PHP_MySQL version of the UltraSuite High Security User Authentication Web Application, you can sign up at http://bit.ly/hgNjek. It offers a multi-layere
-
I'm new to Java, what do i need?
Hi, I've been programming C++ for a while, and now I have decided to start programming in Java too. So, what do i need to program in Java? Got any Java compiler to recommend?
-
Getting row information after an ALV sort
I am using cl_gui_alv_grid. My problem occurs after a user sorts the table. All of the index values no longer match to the original table I passed to the class. How do I match the results from CALL METHOD my_catlistgrid->get_selected_rows IMPOR
-
Dreamweaver CS5 Getting Started CSS Div tags
I FOLLOWED THE GETTING STARTED TUTORIAL AND GOT THE TOP BANNER DIV, THE MAIN IMAGE DIV AND THE 3 COLUMN DIVSDIVA BUT THEN I TRIED TO CREATE A FOOTER LIKE DIV FOR COPYRIGHT AND CONTACT INFO BUT IT GETS PLACED AT THE END OF THE RIGHT COLUMN DIV. IN OT