Restoring a RMAN backup to a new database instance
Hi Mates,
I have an issue with restoring a RMAN backup that i have with me to a new database instance. What i have with me are:
1. Backup of SPFile. (O1_MF_NCNNF_CTLFILE_BU_92DVGYO2_.BKP)
2. Backup of Control file (O1_MF_NNSNF_SPFILE_BU_92DVGW9H_.BKP)
3. Full database backup (O1_MF_NNSNF_FULLPROD_BU_92DVGW9H_.BKP)
I have received these files from a customer environment and I need to restore these to a new database instance in a local machine. I have given a attempt as follows (in Oracle 10g):
1, Created a new database instance (Test75) using Oracle Database Configuration Assistant
2. SET ORACLE_SID = Test75
3. Connected to this instance using RMAN
4. Tried to restore the SPFILE from the received BKP file.
I am getting errors and cannot proceed. I am not sure whether I am executing the correct steps. Please help me out by telling me how should I achieve this.
Thank you.
1. Backup of SPFile. (O1_MF_NCNNF_CTLFILE_BU_92DVGYO2_.BKP)
2. Backup of Control file (O1_MF_NNSNF_SPFILE_BU_92DVGW9H_.BKP)
The first backuppiece looks like a ControlFile and the second one looks like an SPFILE'
>I am getting errors and cannot proceed
What is the error ? (I assume that you tried to restore the SPFILE from O1_MF_NNSNF_SPFILE_BU_92DVGW9H_.BKP
Note that you also have to SET DBID before you restore the controlfile
Hemant K Chitale
Similar Messages
-
Restore an RMAN backup to a new db instance name.
I have a old copy of an RMAN backup of a production database from 2 months ago. I want to restore it to a new instance name. The backup no longer shows in the RMAN backup listing from the control file of the current production system.
The backup I have does have the control file as well as the other backup pieces, Is there a procedure to restore this to a new instance since the backup is no longer in the current production control file?
I have used the duplicate command of RMAN and have successfully restored databases to a new instance name by using the newname option.
But the backups were always in the control file.
Can this be done? If so, how?You need to restore the controlfile first and copy it into all locations where init.ora specify them. then startup mount, and 'rman / target' will give you access to the old contents of the controlfile at that time.. If the rest of the back is on tape, you need to restore the rman backupset first to disk on same location specified in the backupsets paths. same for the archivelogs.
Then you can decide to go for a duplicate database to target <newname> or a restore DB (must have the same name). but was the DB a cold backup ? then remember than Rman does not takes the redo logs, so that your shutdown before must be clean (shutdown immediate at most). If it is an hot you may need need to dump the arc and possible do a recover manual (case you forgot to put the arcchives or the archives names is not the same in the init.ora than original for you include the db name in it).
In that case the archive logs may be renamed to what ever is in the init.ora. and there are many others possbilities. you did not specified enough data on the backup -
Rman backup on physical standby database without cancelling MRP
Hi all,
Could anyone share, is this possible to take RMAN backup on physical standby database without cancelling MRP process.
regarrds,Hi,
On Standby Side:
SQL> alter database mount;
Database altered.
SQL> alter database recover managed standby database using current logfile disconnect from session;
Database altered.
SQL> select max(Sequence#) from v$archived_log;
MAX(SEQUENCE#)
405
SQL> select max(Sequence#) from v$archived_log where applied='YES';
MAX(SEQUENCE#)
404
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@oel62-x64 Desktop]$ rman target /
Recovery Manager: Release 11.2.0.3.0 - Production on Tue May 21 15:31:43 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: ADMDB (DBID=4063877183, not open)
RMAN> backup database plus archivelog delete all input;
Starting backup at 21-MAY-13
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=32 device type=DISK
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=390 RECID=391 STAMP=815416638
input archived log thread=1 sequence=391 RECID=392 STAMP=815421952
input archived log thread=1 sequence=392 RECID=393 STAMP=815422343
input archived log thread=1 sequence=393 RECID=394 STAMP=815422434
input archived log thread=1 sequence=394 RECID=395 STAMP=815422570
input archived log thread=1 sequence=395 RECID=396 STAMP=815476598
input archived log thread=1 sequence=396 RECID=397 STAMP=815476615
input archived log thread=1 sequence=397 RECID=398 STAMP=815476645
input archived log thread=1 sequence=398 RECID=399 STAMP=815477471
input archived log thread=1 sequence=399 RECID=400 STAMP=815477475
input archived log thread=1 sequence=400 RECID=401 STAMP=815477628
input archived log thread=1 sequence=401 RECID=403 STAMP=815584146
input archived log thread=1 sequence=402 RECID=402 STAMP=815584137
input archived log thread=1 sequence=403 RECID=405 STAMP=816017446
*input archived log thread=1 sequence=404 RECID=404 STAMP=816017444*
*input archived log thread=1 sequence=405 RECID=406 STAMP=816017455*
channel ORA_DISK_1: starting piece 1 at 21-MAY-13
channel ORA_DISK_1: finished piece 1 at 21-MAY-13
piece handle=/u01/app/oracle/fast_recovery_area/stldb/STLDB/backupset/2013_05_21/o1_mf_annnn_TAG20130521T153202_8spm937d_.bkp tag=TAG20130521T153202 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:07
channel ORA_DISK_1: deleting archived log(s)
archived log file name=/u01/app/oracle/fast_recovery_area/stldb/STLDB/archivelog/2013_05_14/o1_mf_1_390_8s48hfrp_.arc RECID=391 STAMP=815416638
archived log file name=/u01/app/oracle/fast_recovery_area/stldb/STLDB/archivelog/2013_05_14/o1_mf_1_391_8s4fohwb_.arc RECID=392 STAMP=815421952
archived log file name=/u01/app/oracle/fast_recovery_area/stldb/STLDB/archivelog/2013_05_14/o1_mf_1_392_8s4g1q0v_.arc RECID=393 STAMP=815422343
archived log file name=/u01/app/oracle/fast_recovery_area/stldb/STLDB/archivelog/2013_05_14/o1_mf_1_393_8s4g4l8z_.arc RECID=394 STAMP=815422434
archived log file name=/u01/app/oracle/fast_recovery_area/stldb/STLDB/archivelog/2013_05_14/o1_mf_1_394_8s4g8t9h_.arc RECID=395 STAMP=815422570
archived log file name=/u01/app/oracle/fast_recovery_area/stldb/STLDB/archivelog/2013_05_15/o1_mf_1_395_8s631622_.arc RECID=396 STAMP=815476598
archived log file name=/u01/app/oracle/fast_recovery_area/stldb/STLDB/archivelog/2013_05_15/o1_mf_1_396_8s631qjj_.arc RECID=397 STAMP=815476615
archived log file name=/u01/app/oracle/fast_recovery_area/stldb/STLDB/archivelog/2013_05_15/o1_mf_1_397_8s632od8_.arc RECID=398 STAMP=815476645
archived log file name=/u01/app/oracle/fast_recovery_area/stldb/STLDB/archivelog/2013_05_15/o1_mf_1_398_8s63whqc_.arc RECID=399 STAMP=815477471
archived log file name=/u01/app/oracle/fast_recovery_area/stldb/STLDB/archivelog/2013_05_15/o1_mf_1_399_8s63wly4_.arc RECID=400 STAMP=815477475
archived log file name=/u01/app/oracle/fast_recovery_area/stldb/STLDB/archivelog/2013_05_15/o1_mf_1_400_8s641d8j_.arc RECID=401 STAMP=815477628
archived log file name=/u01/app/oracle/fast_recovery_area/stldb/STLDB/archivelog/2013_05_16/o1_mf_1_401_8s9d21jk_.arc RECID=403 STAMP=815584146
archived log file name=/u01/app/oracle/fast_recovery_area/stldb/STLDB/archivelog/2013_05_16/o1_mf_1_402_8s9d1skv_.arc RECID=402 STAMP=815584137
archived log file name=/u01/app/oracle/fast_recovery_area/stldb/STLDB/archivelog/2013_05_21/o1_mf_1_403_8spm6p4h_.arc RECID=405 STAMP=816017446
archived log file name=/u01/app/oracle/fast_recovery_area/stldb/STLDB/archivelog/2013_05_21/o1_mf_1_404_8spm6mqj_.arc RECID=404 STAMP=816017444
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/app/oracle/fast_recovery_area/stldb/STLDB/archivelog/2013_05_21/o1_mf_1_405_8spm6yg0_.arc thread=1 sequence=405
Finished backup at 21-MAY-13
Starting backup at 21-MAY-13
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/stldb/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/stldb/sysaux01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/stldb/example01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/stldb/undotbs01.dbf
input datafile file number=00006 name=/u01/app/oracle/oradata/stldb/appdata01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/stldb/users01.dbf
channel ORA_DISK_1: starting piece 1 at 21-MAY-13
channel ORA_DISK_1: finished piece 1 at 21-MAY-13
piece handle=/u01/app/oracle/fast_recovery_area/stldb/STLDB/backupset/2013_05_21/o1_mf_nnndf_TAG20130521T153213_8spm9fnc_.bkp tag=TAG20130521T153213 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:02:15
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 21-MAY-13
channel ORA_DISK_1: finished piece 1 at 21-MAY-13
piece handle=/u01/app/oracle/fast_recovery_area/stldb/STLDB/backupset/2013_05_21/o1_mf_ncsnf_TAG20130521T153213_8spmfqxf_.bkp tag=TAG20130521T153213 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
Finished backup at 21-MAY-13
Starting backup at 21-MAY-13
using channel ORA_DISK_1
specification does not match any archived log in the repository
backup cancelled because there are no files to backup
Finished backup at 21-MAY-13
RMAN> exit
Recovery Manager complete.
[oracle@oel62-x64 Desktop]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Tue May 21 15:34:42 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select max(Sequence#) from v$archived_log;
MAX(SEQUENCE#)
405
SQL> select max(Sequence#) from v$archived_log where applied='YES';
MAX(SEQUENCE#)
404
SQL> There have no problem, backup database when MRP is running. But if you want delete, then you are getting RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process.
And will not delete this archived log, because it is needed for standby or upstream capture process.
Updated
When MRP stoped
SQL> alter database recover managed standby database cancel;
Database altered.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@oel62-x64 Desktop]$ rman target /
Recovery Manager: Release 11.2.0.3.0 - Production on Tue May 21 15:46:07 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: ADMDB (DBID=4063877183, not open)
RMAN> backup database plus archivelog delete all input;
Starting backup at 21-MAY-13
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=24 device type=DISK
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=405 RECID=406 STAMP=816017455
channel ORA_DISK_1: starting piece 1 at 21-MAY-13
channel ORA_DISK_1: finished piece 1 at 21-MAY-13
piece handle=/u01/app/oracle/fast_recovery_area/stldb/STLDB/backupset/2013_05_21/o1_mf_annnn_TAG20130521T154617_8spn3s9w_.bkp tag=TAG20130521T154617 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
channel ORA_DISK_1: deleting archived log(s)
archived log file name=/u01/app/oracle/fast_recovery_area/stldb/STLDB/archivelog/2013_05_21/o1_mf_1_405_8spm6yg0_.arc RECID=406 STAMP=816017455
Finished backup at 21-MAY-13
Starting backup at 21-MAY-13
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/stldb/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/stldb/sysaux01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/stldb/example01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/stldb/undotbs01.dbf
input datafile file number=00006 name=/u01/app/oracle/oradata/stldb/appdata01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/stldb/users01.dbf
channel ORA_DISK_1: starting piece 1 at 21-MAY-13
channel ORA_DISK_1: finished piece 1 at 21-MAY-13
piece handle=/u01/app/oracle/fast_recovery_area/stldb/STLDB/backupset/2013_05_21/o1_mf_nnndf_TAG20130521T154618_8spn3v4f_.bkp tag=TAG20130521T154618 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:01:16
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 21-MAY-13
channel ORA_DISK_1: finished piece 1 at 21-MAY-13
piece handle=/u01/app/oracle/fast_recovery_area/stldb/STLDB/backupset/2013_05_21/o1_mf_ncsnf_TAG20130521T154618_8spn6779_.bkp tag=TAG20130521T154618 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
Finished backup at 21-MAY-13
Starting backup at 21-MAY-13
using channel ORA_DISK_1
specification does not match any archived log in the repository
backup cancelled because there are no files to backup
Finished backup at 21-MAY-13
RMAN> Apply process is stopped and new redo received from primary.
SQL> select max(Sequence#) from v$archived_log;
MAX(SEQUENCE#)
407
SQL> select max(Sequence#) from v$archived_log where applied='YES';
MAX(SEQUENCE#)
405
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@oel62-x64 Desktop]$ rman target /
Recovery Manager: Release 11.2.0.3.0 - Production on Tue May 21 15:49:28 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: ADMDB (DBID=4063877183, not open)
RMAN> backup database plus archivelog delete all input;
Starting backup at 21-MAY-13
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=32 device type=DISK
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=406 RECID=407 STAMP=816018527
input archived log thread=1 sequence=407 RECID=408 STAMP=816018530
channel ORA_DISK_1: starting piece 1 at 21-MAY-13
channel ORA_DISK_1: finished piece 1 at 21-MAY-13
piece handle=/u01/app/oracle/fast_recovery_area/stldb/STLDB/backupset/2013_05_21/o1_mf_annnn_TAG20130521T154937_8spnb1y3_.bkp tag=TAG20130521T154937 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
channel ORA_DISK_1: deleting archived log(s)
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/app/oracle/fast_recovery_area/stldb/STLDB/archivelog/2013_05_21/o1_mf_1_406_8spn8hkn_.arc thread=1 sequence=406
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=/u01/app/oracle/fast_recovery_area/stldb/STLDB/archivelog/2013_05_21/o1_mf_1_407_8spn8l69_.arc thread=1 sequence=407
Finished backup at 21-MAY-13
Starting backup at 21-MAY-13
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/stldb/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/stldb/sysaux01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/stldb/example01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/stldb/undotbs01.dbf
input datafile file number=00006 name=/u01/app/oracle/oradata/stldb/appdata01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/stldb/users01.dbf
channel ORA_DISK_1: starting piece 1 at 21-MAY-13
channel ORA_DISK_1: finished piece 1 at 21-MAY-13
piece handle=/u01/app/oracle/fast_recovery_area/stldb/STLDB/backupset/2013_05_21/o1_mf_nnndf_TAG20130521T154939_8spnb3f5_.bkp tag=TAG20130521T154939 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:01:15
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 21-MAY-13
channel ORA_DISK_1: finished piece 1 at 21-MAY-13
piece handle=/u01/app/oracle/fast_recovery_area/stldb/STLDB/backupset/2013_05_21/o1_mf_ncsnf_TAG20130521T154939_8spndhly_.bkp tag=TAG20130521T154939 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
Finished backup at 21-MAY-13
Starting backup at 21-MAY-13
using channel ORA_DISK_1
specification does not match any archived log in the repository
backup cancelled because there are no files to backup
Finished backup at 21-MAY-13
RMAN> I think, codes is understandable.
Regard
Mahir M. Quluzade
Edited by: Mahir M. Quluzade on May 21, 2013 3:36 PM -
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 -
everytime i want to restore my previews backup to my new iphone, itunes asks for my password, when i enter my password it tells me my password is incorrect, but its not! i have even changed my password. but still nothing! I get the same error from itunes!!!!
Try using your computer password. I tried any password I could think of relating to my phones, but it was none of them; it was, in fact, my computer password.
-
How to create a new database instance from an existing one?
Hi, I basically want to create a snapshot of a production
instance (version 8.1.7) for querying purposes. Would anyone
tell me the steps involved? What I did as follows:
1. Copy all data files to a new location
2. Modify init.ora accordingly. I believe there is no separate
control file for this version.
But when I startup the instance, got this error:
ORA-01103: database name 'TRITON' in controlfile is not 'HERCULE'
What is missing? Do these data files contains links to the
previous instance name?
Thanks for any help.Hi All,
I need some help in recreating new database instance.
Here are the steps I have done so far:
1. Created a database with name 'LASTDB' using DBCA
2. Connected to RMAN.
3. RMAN>SET DBID=******; (of the source database)
4. Connect to target. RMAN>connect target SYS/*****;
5. Executed controlfile restore on RMAN.
RMAN>Run{
Allocate channel D1 Type DISK;
Set controlfile autobackup format for device type DISK to
\\<ip_address>\Backup\Prod\%F;
Restore controlfile from autobackup;
6. RMAN> ALTER DATABASE MOUNT;
Now got an error saying ORA-01103: database name PRODDB' in control file is not LASTDB
I tried using NID to change the database name but it's throwing an error that database is not mounted.
I have browsed a lot and found that I need to recreate a control file of the production database using ALTER DATABASE BACKUP CONTROLFILE TO TRACE and should edit the trace file. But it also says to shutdown the source database which is production database and I cannot try that.
Also I have tried adding a line to init.ora like lock_space_name = LASTDB. Also tried replacing everything from LASTDB to PRODDB but that didn't work either.
I have been trying to find a solution to this. Please bear with me as I'm a beginner and please let me know how I can fix the error.
I am running oracle 10.1.0.2.0 enterprise edition on windows 2000.
Thanks for your patience,
KG -
Which rights are required for a user to create a new database instance
Hi,
Which user can create a database instance? Is it Admin or any user? or Is it must to have admin rights on the <oracle_home> folder in order to create a new database instance?
Please let me know what rights the user should have for creating a new database instance.
Regards,
venkatIf I login to machine as a Guest user or I am not a owner of Oracle software then in the both cases I couldn't able to create a new database instance. Am I right?
Please suggest me.
Regards,
Venkat -
Creating a New database instance
Hello experts,
I need to create a new database instance and later drop my old one.
Can anyone send me detailled guidelines on how i should do this without experiencing any performance degradation and also alert me on anything that can go wrong.
thanks in advance
YogeerajI suspect you'll get more help if you address this question to the Linux forum. This question appears to have nothing whatsoever to do with the Oracle ODBC driver.
Justin -
How to restore a Rman backup from Tape
Hi,
We need to restore the database backup taken through RMAN on 24-JUNE-2013 from tape as this backup is not currently available on disk.
Can you please help me on the following,
1) how i can check if the same backup on 24-JUNE-2013 is available on Tape.
2) If yes how i can restore to Disk.
Because we need to create a new Clone instance from the backup taken on 24-JUNE-2013.
We are having 12.1.3 Application on Exalogic and 11.2.0.3 Database on Exadata machine.
Our support is highly appreciated.
Thanksuser11969666 wrote:
Hi,
We need to restore the database backup taken through RMAN on 24-JUNE-2013 from tape as this backup is not currently available on disk.
Can you please help me on the following,
1) how i can check if the same backup on 24-JUNE-2013 is available on Tape.
2) If yes how i can restore to Disk.
Because we need to create a new Clone instance from the backup taken on 24-JUNE-2013.
We are having 12.1.3 Application on Exalogic and 11.2.0.3 Database on Exadata machine.
Our support is highly appreciated.
Thanks
Your questions are answered in the Backup and Recovery User's Guide -- Contents
Thanks,
Hussein -
Restore old rman backup after changing dbid?
Hi,
I backed up database using rman. then i changed dbid for that databases. can i restore backup what i backed up before changing DBID?No.
When you change the DBID for a database, it becomes a different database. All the datafiles are stamped with the new DBID.
And you cannot select a DBID value either, so you cannot choose to change the DBID back to the previous value.
A RESTORE verifies that it is restoring to the same database -- it uses the DBID to verify. Since the DBIDs for the Backup and the now-present database do not match, a RESTORE cannot be attempted.
You can remove the database with the changed DBID and do a complete RESTORE from the backup.
Hemant K Chitale -
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> -
RMAN backups valid for clone database.
Hi,
If we clone the database using rman that clone database will be having different database id, incurnation number and new resetlogfiles.
so here we can't use source database backup files. if we want to use that source database backup files to clone database what is the procedure to clone the database.
please let me know.
thank you very much...!899329 wrote:
Hi,
If we clone the database using rman that clone database will be having different database id, incurnation number and new resetlogfiles.
so here we can't use source database backup files. if we want to use that source database backup files to clone database what is the procedure to clone the database.
please let me know.
thank you very much...!You can clone/refresh database as
1) RMAN duplicate
2) RMAN restore from backups(restore control + database)
using source backup files:-
3) Hot backup clone ( begin backup, copy files, end backup, create controlfile using trace)
4) cold clone (shutdown database, copy datafiles, create controlfile)
5) whole database export & import -
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 -
RMAN incomplete recovery to new database
Hi there,
we have full backup plus all the archived log backup in hand.
we need to restore previous day backup until 11pm. We have full backup at 10pm and then archived log backup after that.
What would be the easiest way to restore this backup to a development database or new database so that developer can look into table which he drop at 11:05pm.
Thanks for any suggestion.
Data SheetPlease make sure you are in your NON-PRODUCTION database:-
If you have all the archive logs then the fastest and safest would be:-
1. Get the appropriate control file
sql "alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS'";
run
set until time to_date('25-JUN-06 23:00:00');
allocate channel c1 device type 'SBT_TAPE';
restore controlfile ;
Take this control file and mount the database.
2. Restore / Recover
sql "alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS'";
run
set until time to_date('25-JUN-06 23:00:00');
allocate channel c1 device type 'SBT_TAPE';
allocate channel c2 device type 'SBT_TAPE';
allocate channel c3 device type 'SBT_TAPE';
restore database;
recover database;
Try that and let me know how it goes. -
Unable to restore time machine backup onto a new hard drive
I recently bought a new hard drive for my mid-2010 white Macbook. I have kept this computer regularly backed up with time machine, but just to be sure I made sure I hooked up my external hard drive prior to changing the hard drive and made sure it was fully backed up. I checked my exceptions and saw that my system files and applications were listed, so I removed them from the exceptions list and let it back up again (it only backed up a further 60MB though, so that made me a little uneasy).
I successfully switched over the hard drive and then plugged in my external hard drive so I could do a restore from Time Machine. My external hard drive has 3 partitions: 2 time machine backups for each of my computers, and one partition for storing files that also has an old copy of 10.6 on it.
When I booted the computer, I held option, then selected Macbook TM. When it came to the window with 4 options, including disk utility and restore from time machine backup, I selected restore from Time Machine backup. When I did so it said "No OS X Backups Were Found." Why wouldn't it have backups listed if I have been consistently backing it up? How else do I do a full system backup?
Also, how can I be sure that I'm restoring this backup onto the new hard drive? It didn't prompt me to select that drive at any point, and I want to make sure I'm not overwriting the middle partition on the backup drive (or anything else).Please visit Pondini's Time Machine FAQ for help with all things Time Machine.
You will find that Mountain Lion stores an invisible copy of the Recovery HD. You can boot from your Time Machine backup drive by restarting with OPTION boot:
Boot Using OPTION key:
1. Restart the computer.
2. Immediately after the chime press and hold down the "OPTION" key.
3. Release the key when the boot manager appears.
4. Select the disk icon for your Time Machine backup drive.
5. Click on the arrow button below the icon.
Your computer should boot into the Recovery HD. You will be presented with a main window of options. Select the option to restore from a Time Machine backup then click on the Continue button.
Maybe you are looking for
-
How do you set up for another ipod on same computer
I just bought another ipod for my wife and she wants to set up her own itunes account or a completely different library. Can this be done on the same computer or do we have to share the same music?
-
Ipod won't charge. There is wierd green stuff in charging bay.
Well I was charging my Ipod touch and listening to music while I slept last night. Then When I woke up in the morning my Ipod was dead and it wouldn't turn on. I looked in the charging bay and there was this wierd green stuff. I repluged my charger a
-
Invoice Reduction - Incorrect Document Number Transferred
I am attempting Total-Based Invoice Reduction on an IDoc that is held up in Invoice Overview. As far as I can tell, the document types are correct and the number ranges are correct. The RD and RS ranges are pointing to internally assigned numbers beg
-
Fill data in 2 fields on selection screen from a search help
Hi, I have defined a custom search help as given below. Selection Method : ZTSTCT Search Help Parameters : TCODE Importing & Exporting TTEXT Exporting Only I have two parameters in my report as declared below: PARAMETERS : tcode TYPE tstct-tcode MA
-
Parse XML by using NSXMLDocument
I know how to parse external file or an URL XML, but what if I have a string - NSString that contains XML data, how should I do to let NSXMLDocument prase this string? thank you. G5 Mac OS X (10.4)