RMAN on ASM RAC doubts

Hi!
I have some general questions for RAC 10gR2 (10.2.0.4 PS4) on Linux Ithanium with ASM (with OMF and default template) on raw blocks (not raw devices!).
1) Is it important that backup/restore of DB is done from master node of the RAC or any node can be involved in this operation?
2) When you perform "alter system archive log current" in RMAN script, does it switch log file for all instances (in sqlplus it is not like that)? Until now, on one instance (no RAC) I was using "alter system switch logfile" in RMAN with great success... Now I'd like to verify this doubt...
3) I have read Oracle docs about Flash Recovery Area placed on ASM for backups, archived logs etc. . I?m fully aware of it's setup but I'd like to read something like "best practice" on that subject with some thresholds and examples... Regardless official Oracle is saying that it is more then recommended to use that technology in all incoming releases for this purpose, I'd like to make some experiment before start to use that in PROD environment.
4) If we use ASM on raw blocks (this is new feature for Red Hat 5.x Linux) how to backup ASM instance itself. Is RMAN capable for that?
5) How to ensure that in OMF with ASM log files and archived log files as well have SCN number in name?
6) If anyone has some links, notes (out of official Oracle docs) about this subject...thx in front.
Regards,
Damir

Hi Hermant!
2) "Since the command specifies the INSTANCE "
I do not think so.
In RMAN you connect to database not any particular instance.... So this command should(!?) archive all CURRENT archive logs in all instance. This was my doubt .. still waiting for proof.
And example of one adhoc full backup script to disk (AFR):
run{
# switch archive logs for all threads
sql "alter system archive log current";
backup database;
# switch archive logs for all threads
sql "alter system archive log current";
BACKUP ARCHIVELOG FROM TIME "(trunc(sysdate)+(18.3/24))" filesperset 50;
allocate channel t1 type disk;
restore database preview;
RESTORE DATABASE PREVIEW SUMMARY;
release channel t1;
}To be more specific: In RMAN if you do not specify exactly instance name, does all commands are meant as global (to all instances)?
Hope now is clear.

Similar Messages

  • Asm rac doubt

    Hi,
    i was asked to convert the non asm instance to asm instance.
    iam doing the below steps and i have few doubts in that.please clear all my doubts
    i have a server where there is already one rdbms database instance running with name orcl
    so i did the following
    1) first create a asm instance and assign it oracle_sid as +ASM
    here in place of ASM shall i have any other name like CNH or something like that?
    2)secondly i have to migrate the non asm instance orcl to asm enabled ''
    instance
    my doubt here is after migrating the non asm rdbms instance database files to all diskgroups and converting it to asm enabled instance how can i start the asm enabled converted instance
    i)export ORACLE_SID=+ASM and start the instance
    2)secondly export ORACLE_SID=orcl and start the db
    3)lastly start the listener
    is my unserstanding correct?

    aram wrote:
    Hi,
    i was asked to convert the non asm instance to asm instance.
    iam doing the below steps and i have few doubts in that.please clear all my doubts
    i have a server where there is already one rdbms database instance running with name orcl
    so i did the following
    1) first create a asm instance and assign it oracle_sid as +ASM
    here in place of ASM shall i have any other name like CNH or something like that?
    ASM instance name must be +ASM, you will have issue later if you use non-standard name
    >
    2)secondly i have to migrate the non asm instance orcl to asm enabled ''
    instance
    my doubt here is after migrating the non asm rdbms instance database files to all diskgroups and converting it to asm enabled instance how can i start the asm enabled converted instance
    i)export ORACLE_SID=+ASM and start the instance
    2)secondly export ORACLE_SID=orcl and start the db
    3)lastly start the listener
    is my unserstanding correct?
    Once you've migrated the database to asm you have to start the asm first before start the database otherwise the database can't see the datafile because the ASM is not contactable
    Cheers

  • How to clone a 2-node ASM RAC db to a 3-node ASM RAC db by RMAN?

    We need to clone a 2-node ASM RAC db to a 3-node ASM RAC db by RMAN. I would think this will be about the same as a regular single db procedure by RMAN mostly. However, in 3 node RAC, there will be additional instance thread in redo (thread 1,2, and 3). Questions will be
    1. Should I use CRSCTL to add new instance (3rd)? -- I guess yes
    2. Should I create additional online redo group for thread 3? -- I guess yes
    3. Should I create addition undo tablespace? -- I guess yes
    Can any body provide a procedure of cloning the DB?
    Thanks!

    Not just easy as next, next, next
    version depenedencies and etc.
    [from Oracle DOC|http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/adddelunix.htm#BEICADHD]
    AND
    [Doc ID:      270512.1: Adding a Node to a 10g RAC Cluster|https://metalink.oracle.com/CSP/ui/flash.html#tab=KBHome%28page=KBHome&id=%28%29%29,%28page=KBNavigator&id=%28bmDocID=270512.1&from=BOOKMARK&bmDocType=BULLETIN&bmDocDsrc=KB&bmDocTitle=%3Cb%3EAdding%3C/b%3E%20a%20%3Cb%3ENode%3C/b%3E%20to%20a%2010g%20%3Cb%3ERAC%3C/b%3E%20Cluster&viewingMode=1143%29%29]

  • Restoring RMAN Backup from ASM RAC env to Non ASM standalone environment

    Hi,
    Can anyone please tell me how to restore database using RMAN in a Non ASM environment as my backup file with ASM RAC environment.
    i was also looking for some documentation which provides clear explanation about RMAN backup and Restore in ASM and Non ASM environment.
    Thanks

    You can set the parameter db_file_name_convert in init.ora in you new database with [ID 47325.1]
    or
    you can set parameter "set newname" in your script rman. [ID 549972.1]
    if you have one or two destinations of dbfiles in ASM I seggest to you set parameter db_file_name_convert in init.
    example:
    db_file_name_convert=('+DGDATA','/u01/oradata/');
    remenber you need set log_file_name_convert to.
    log_file_name_convert=('+DGREDO','/u01/redo/');
    if you use "set newname" commands you need set this lines in your script rman.
    set newname for datafile 1 to '/u01/oradata/system01.dbf';
    set newname for datafile 2 to '/u01/oradata/undotbs01.dbf';
    set newname for datafile 3 to '/u01/oradata/sysaux01.dbf';
    set newname for datafile 4 to '/u01/oradata/users01.dbf';
    and every datafiles you need set!
    Edited by: user1107977 on 21/07/2011 13:47

  • Please help with RMAN dup for RAC db

    Happy Holidays!! All,
    I need help with the following issue:
    Both target and auxiliary databases are:
    Database version is 10.2.0.3 with 2-node RAC db
    Servers are MS 2003
    Oracle Clusterware 10.2.0.3
    Oracle ASM for storage
    I have run the rman dup from RAC to a single instance db for a while. This is the first time I ran from RAC to RAC. This auxiliary db was refreshed before and was up for a while and was managed by server control tool. Now I am trying to refresh it with new backup files from production. I did the following as people suggested:
    1)     shutdown instance in the second node.
    2)     Startup nomount mode in the first node
    3)     Run RMAN dup
    It failed in the same place with slightly different errors. I pasted error messages at the bottom. I already created a TAR with Oracle but would like to know if anybody has any info related to this. Also I have several questions to ask:
    1)     Should I stop all services related to Oracle in node-2
    2)     Should I stop all clustware related services in node-1 except oracleCSServie since ASM uses it?
    3)     Is there any way I can finish the dup manually from the place I failed? What going to happen if I don’t finish the rest of the dup and go ahead with “alter database open resetlogs”?
    4)     How do I remove the database from under Server control – I already run “srvctl remove database -d atlrac” successfully. Is this all?
    Thanks a lot for your help and have a great holiday season!!!
    First time run:
    contents of Memory Script:
    shutdown clone;
    startup clone nomount ;
    executing Memory Script
    database dismounted
    Oracle instance shut down
    connected to auxiliary database (not started)
    RMAN-00571: ====================================================
    RMAN-00569: ======= ERROR MESSAGE STACK FOLLOWS ==============
    RMAN-00571: =============================================
    RMAN-03002: failure of Duplicate Db command at 12/21/2009 20:24:47
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-04014: startup failed: ORA-00610: Internal error code
    Second time run:
    contents of Memory Script:
    shutdown clone;
    startup clone nomount ;
    executing Memory Script
    database dismounted
    Oracle instance shut down
    connected to auxiliary database (not started)
    RMAN-00571: ===================================================
    RMAN-00569: ========== ERROR MESSAGE STACK FOLLOWS ==========
    RMAN-00571: ===================================================
    RMAN-03002: failure of Duplicate Db command at 12/22/2009 15:53:27
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-04014: startup failed: ORA-03113: end-of-file on communication channel
    Shirley

    1) Should I stop all services related to Oracle in node-2
    No, you just need to stop the second instance.
    2) Should I stop all clustware related services in node-1 except oracleCSServie since ASM uses it?
    No, you don't need to stop anything. Just have the instance startup nomount.
    3) Is there any way I can finish the dup manually from the place I failed? What going to happen if I don’t finish the rest of the dup and go ahead with “alter database open resetlogs”?
    You have not shown enough information. Did the restore succeed ? Did the recover succeed ? What was it doing when it failed ?
    4) How do I remove the database from under Server control – I already run “srvctl remove database -d atlrac” successfully. Is this all?
    Yes, srvctl remove database is all you need. (unless you also want to remove from listener.ora, tnsnames.ora, oratab etc)

  • RMAN backup on RAC

    Hi,
    DB=10.2.0.4 OS=RHL (RAC with 2 nodes db01,db02). Following are the types of automated RMAN backups taken on db01.
    - OCR
    - Voting Disk
    - Talespaces Snapshot
    - Archivelog (every hour)
    - Backup Incremental level 0 (SUNDAY)
    -- backup incrementa level 1 (Mon-SAT)
    - Autobackup of Control file and SPFILE (CONTROLFILE AUTOBACKUP ON)
    Two main questions please. First, are these backups/backup types are enough FOR FULL RESTORE when talking about RMAN backup on RAC environment with 2 nodes? If not please suggest what else I need to backup?
    Secondly, backup home location is /rman which I can see on db01 ONLY. This /rman directory I cannot see on db02. My question is that In case of db02 failure can I restore from this /rman directory? or do I need to automate backup schedules also on db02 separately?
    [root@db01~]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/mapper/VolGroup00-LogVol00
                          3.9G  2.9G  814M  79% /
    /dev/sda3             190M   34M  147M  19% /boot
    tmpfs                  16G     0   16G   0% /dev/shm
    /dev/mapper/VolGroup00-LogVol05
                          3.9G  137M  3.6G   4% /home
    /dev/mapper/VolGroup00-LogVol03
                          3.9G  225M  3.5G   6% /tmp
    /dev/mapper/VolGroup00-LogVol02
                          7.8G  3.7G  3.8G  50% /usr
    /dev/mapper/VolGroup00-LogVol04
                          3.9G  379M  3.4G  11% /var
    /dev/mapper/VolGroup00-ORACLE_BASE
                           12G  8.7G  2.6G  78% /oracle
    10.10.28.140:/vol/px4cinconso
                           40G  1.4G   39G   4% /inconso_px
    /dev/mapper/36001ec9000d5ea810000061349015d98
                          1.3T  551G  665G  46% /rman
    [root@db02~]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/mapper/VolGroup00-LogVol00
                          3.9G  887M  2.9G  24% /
    /dev/sda3             190M   34M  147M  19% /boot
    tmpfs                  16G     0   16G   0% /dev/shm
    /dev/mapper/VolGroup00-LogVol05
                          3.9G  137M  3.6G   4% /home
    /dev/mapper/VolGroup00-LogVol03
                          3.9G  261M  3.5G   7% /tmp
    /dev/mapper/VolGroup00-LogVol02
                          7.8G  3.7G  3.8G  50% /usr
    /dev/mapper/VolGroup00-LogVol04
                          3.9G  355M  3.4G  10% /var
    /dev/mapper/VolGroup00-ORACLE_BASE
                           12G  6.5G  4.8G  58% /oracle
    10.10.28.140:/vol/px4cinconso
                           40G  1.4G   39G   4% /inconso_px
    [oracle@db01~]$ rman target /
    Recovery Manager: Release 10.2.0.5.0 - Production on Fri Feb 24 11:49:59 2012
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    connected to target database: F1 (DBID=1245145263)
    RMAN> show all;
    using target database control file instead of recovery catalog
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 28 DAYS;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/rman/f1/fullbackup/%F';
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 1;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/oracle/product/10.2.0/db/dbs/snapcf_f11.f'; # default
    # Script for backup
    level0 ()
    run {
      allocate channel c1 type disk  maxpiecesize 2000M format '/rman/$ORACLE_SID/fullbackup/$ORACLE_SID-data-%U-%t';
      allocate channel c2 type disk  maxpiecesize 2000M format '/rman/$ORACLE_SID/archive/$ORACLE_SID-arch-%U-%t';
      backup incremental level 0 tag = weeklyfull database channel c1
      plus archivelog tag = ARCH_$TODAY delete all input channel c2;
      release channel c1;
      release channel c2;
    run {
      allocate channel c1 type disk;
      delete noprompt obsolete;
      release channel c1;
    }Bundle of thanks.
    Regards,
    Edited by: 910385 on Feb 24, 2012 3:00 AM

    Hi,
    THanks alot for your feedback. Makes my life easier :) . But actually I started studying this all subject because of the following error message in the log file. I found out about this error that doesn't seem to harm. Just wait for the job to finish or it will sort out automatically. Here are the lines from the log file.
    Fehler in Backuplogs gefunden:/oracle/log/fcp11-backup-2300.log: RMAN-00571:
    ===========================================================brRMAN-00569: ===============
    ERROR MESSAGE STACK FOLLOWS ===============brRMAN-00571:
    ===========================================================brRMAN-03009: failure of
    Control File and SPFILE Autobackup command on c1 channel at 02/08/2012
    06:10:41brORA-00230: operation disallowed: snapshot control file enqueue unavailableI studied few important lines from one of my book, Oracle 11g RMAN backup and recovery (Roberg G Freeman) that I am going to write after the following MAIN ISSUE:
    Node 1
    RMAN> show all;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/oracle/product/10.2.0/db/dbs/snapcf_fp11.f'; # default
    Node 2
    RMAN> show all;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/oracle/product/10.2.0/db/dbs/snapcf_fp12.f'; # default
    Thing which I just noticed regarding the above RMAN error is that snapcf_fp11.f can be seen on the Node 1 on todays date but snapcf_fp12.f was only on 10th jan.
    [oracle@db01dbs]$ ls -lrth
    -rw-r----- 1 oracle oinstall  20M Feb 27 15:10 snapcf_fcp11.f
    [oracle@db02dbs]$ ls -lrth
    -rw-r----- 1 oracle oinstall  20M Jan 10 13:28 snapcf_fcp12.fTHe few lines from the book which I mentioned above are: (Though you might not need to read those lines):
    "You need to move the snapshot control file to a shared location if you plan to run backups from more than one node. If you do not move the snapshot control file to a shared file system such as OCFS or an ASM disk group, then you must make sure that the local destination is identical on all nodes."
    My question is of course, how to sort out the above log file error. Becuse in our case, backups are run only from one node, and snaphost control file is not being moved to ASM disk groups. Local destination is also same on both the Nodes, isn't it (with different names). Why on Node 2 last snapshot was taken on 10th jan while on Node 1 it is todays date which seems fine.
    Control file and SPFILE which I noticed are stored on ASM disk groups also, so being shared between the two Nodes.
    (Sanme names/same location for control file and SPFILE on Node 1 and Node 2)
    Control file:
    +REDO1/fp1/controlfile/current.256.652803827
    +DATA1/fp1/controlfile/current.441.652869697
    SPFILE:
    +DATA1/fp1/spfilefcp1.oraPlease suggest.
    Thank you.
    Regards,
    Edited by: 910385 on Feb 27, 2012 7:43 AM

  • Oracle 10g R2 installation with ASM+RAC

    Gurus,
    Need some suggestuon on Oracle 10g R2 installation with ASM and RAC option.
    We have found many documents on the Oracle, HP, HP-Oracle CTC and third party web sites, but nothing that is specific to this particular combination of separate
    ORACLE_HOMEs, ASM and 10g RAC CRS. It is unclear for me from the documentation how this combination of ASM and 10.2g RAC may best be installed.
    The high level steps i got after reading lot of docs as follows - but i am not sure whether these are correct or not. if they are correct, can any one share their experience/notes please?
    1) Install CRS
    2) Install RDBMS for ASM HOME - create separater oracle home for ASM instance using OUI
    3) Install RDBMS for RAC Database Home - create separater oracle home for RAC database using OUI
    4) Create ASM database using DBCA -
    5) Use dbca to create database.

    Oracle provides 'paint by numbers' tutorials called 'Oracle By Example'. (Go to OTN, check under the Training tab)
    They have one for a Windows based ASM/RAC that you might want to review. Not your specific environment, but the steps will be dag-nabbed close.
    I recommend walking the path (http://otn.oracle.com >> training:OBE >> Database 10g Release 1:VMWare:Installation
    http://www.oracle.com/technology/obe/obe10gdb_vmware/install/racinstallwin2k/racinstallwin2k.htm

  • Problem with host credentials / ASM & RAC

    hi
    I am working on windows 2003 server, and trying to ASM / RAC, but every time need host credentials. when i setting up host credentials its giving error normal user password wrong , as per instruction i supply user name and password but every time message appearing wrong wrong.
    kindly any body give solution asap.
    B.S.fartiyal

    See my first response to this posting to see if it helps you:
    Problem with Credentials.

  • ASM, RAC instance cloning

    Hi,
    Can you advice for cloning ASM, RAC EBS R12 instance , For lesser cloning time, is Snapshot mirroring or BCV copy of ASM, RAC instance of 20 TB in size is recommended?
    Can we have BCV copy of it's replication used for faster RAPID cloning..Is there any white paper available for same.
    Regards,

    Pl continue the discussion in your original post - EBS Cloning methods

  • RMAN for 10g RAC in windows2003

    Hello experts,
    could any one help to configure RMAN for 10g RAC in windows2003?
    thanks,

    Hi;
    Please check:
    RMAN: RAC Backup and Recovery using RMAN [ID 243760.1]
    RMAN configuration in ORACLE RAC database
    RMAN configuration in ORACLE RAC database
    RMAN and RAC
    RMAN and RAC
    Also check this search:
    http://forums.oracle.com/forums/search.jspa?threadID=&q=RMAN+RAC&objID=f384&dateRange=all&userID=&numResults=15
    I belive those are will answer your question
    Regard
    Helios

  • How to RMAN backup in RAC with OCFS

    hi,
    Iam using RAC 10.2.0 in windows 2003 server with OCFS .. i want to take backup using RMAN utility. can any sugest me how take RMAN backup..
    Thanks
    harish

    The only real consideration in RMAN on RAC is a one-off configuration issue as to whether the snapshot controlfile is written to the shared disk or not (it needs to be on the shared disk, or on a location that is common to all nodes, otherwise a backup that includes the control file will fail at the point a node tries to write it to a destination directory that only made sense to another node).
    Otherwise, there's not a lot that's different about an RMAN backup in RAC versus non-RAC.
    Simple answer, as a result: open a DOS window, type rman target /, then type backup database;

  • RMAN duplicate from RAC with ASM to RAC with ASM

    I'm still reading and trying to figure out how to duplicate...and I'm finding that there are some extra considerations you have to work with with doing a RAC system.
    Does anyone have any good links to articles/docs that spell out what to do in this scenario?
    I'm wanting to duplicate from tape backups, using NO connectivity to the source/target....
    My tape backups do include the spfile and control files (autobackup) from the source.
    Thank you in advance,
    cayenne

    damorgan wrote:
    Possibly you are confusing a database with a database.
    A RAC database is a just a database. What is different is the instances, the clusterware, and the storage: For example ASM.
    A backup is a backup is a backup.
    Can you be more specific about what you are trying to do, on what hardware, operating system, version, and edition.
    RMAN can not create an instance either RAC or stand-alone.Thank you for the reply.
    I have my source system, OS = RHEL5, running Oracle 11Gr2...5 node RAC cluster.
    I'm doing RMAN backups to tape...hourly arch. logs, Daily incremental lvl=1 backups and weekly incremental lvl=0
    None of the tape backups have ever been tested for restoring...and I've never restored a database myself before, total noob here.
    I have a test area I've set up. I have a 2 node RAC cluster, running 11Gr2 and OS=RHEL5.
    The tape is accessible from both systems.
    I am wanting to test the tape backups...and thought the RMAN DUPLICATE process would be the way to go.
    I am wanting to NOT connect to the source database...trying to simulate somewhat of a disaster recovery scenario. I'm only wanting to use tape backup, and the test area for the auxiliary instance.
    So far what I've seen I need to learn to do is something like:
    1. Create a password file for new aux database to be duplicated to
    2. Establish Net connectivity...
    3. Create initial parameter file for aux instance
         Due to a bug in note:334899.1, add this (because of RAC system)
         norecovery_through_resetlogs=TRUE
    4. Start aux instance NOMOUNT
    Everything I'm reading though...is basically doing this from single instance to single instance...and what little info I've seen on doing it from RAC, indicates there are some differences. The "_no_recovery_through_resetlogs=TRUE" is one thing I found...but wondering what else.
    Also, so many of the examples I'm finding...are doing the duplication connecting to the target/source...and also doing backups to disk rather than tape...
    Right now, I'm at #1...trying to figure what to put into an init pfile...I'm seeing DB_name, which will be the same as the one I'm cloning from.
    I'm not sure what else....
    I'm wondering if this is necessary..since on the tape backups from the source...I backup the SPFILE...can that not be used somehow in this?
    I'm seeing for the init file, examples show that I need to put in entries for control files and redo logs....if the source system was down and gone...how would I know where these were on the old system? This isn't documented anywhere....is there a way to do this if you didn't know.
    If not..guess I need to go through all systems and document the layouts of where everything is located.
    Also...most examples I'm finding, in addition to being single instance backup and restore/duplication...they are all using regular file systems....not much to go on with using ASM.
    Anyway, I'm trying to learn here...and am having trouble finding examples to go from that match my setup.
    Thank you in advance,
    cayenne

  • RMAN/Dataguard 32bit RAC on OCFS2 primary to 64bit standby on ASM

    Hi,
    I would like to know if RMAN backup and dataguard standby can be created/configured for primary RAC db on OCFS2 32bit to standby RAC db on ASM 64bit?
    This is for migration purposes as opposed on ongoing to minimize downtime.
    Thanks,
    Gareth

    You have neither an OS nor database version? This is answer for 10g:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/standby.htm#i72053
    Werner

  • Refresh prod to testusing RMAN+ASM+RAC

    Hi,
    Is there any user guide or someone can guide me with basic steps which I need to to do in order to refrsh my Prod DB into my Test DB.
    I need to do that every night while prod and test have different names and different servers.
    My environments are with RAC, Oracle 11, ASM and by backup is RMAN.
    I used to do that before using RAC and ASM with RMAN backup and restore.
    I started doing it by Bakcup, Restore with rman and set datafile new name and after it nid to change dbname.
    I guess that I don't know the steps correctly.
    Thanks for any help.
    Ran.

    The steps are :
    Restore the Database (using RMAN).  Optionally use SET NEWNAME to rename/relocate datafiles.
    Recover the Database (using RMAN).
    Rename the Database (using NID).  If you are changing the SID again, ensure that you have the pfile/spfile for the new SID.
    Hemant K Chitale

  • Test RMAN consistent "as copy" backup outside of ASM (RAC)

    Hi!
    We have create RMAN consistent backup in our RAC (ASM with FRA) environement.
    Backup steps looks like:
    alter system set cluster_database=false scope=spfile sid='HAC4';
    srvctl stop database -d HACThen we start RMAN backup script like (database is shut downed before):
    run {
    startup mount;
    allocate channel t1 type disk format '/u01/rman_backup/HAC/cold_backup/HAC_%U';
    allocate channel t2 type disk format '/u01/rman_backup/HAC/cold_backup/HAC_%U';
    SET CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u01/rman_backup/HAC/cold_backup/HAC_%F_ctl';
    backup as copy database include current controlfile;
    }After backup we perform:
    alter system set cluster_database=true scope=spfile sid='HAC4';
    shutdown immediate;and later
    srvctl start database -d HACBackup files from this backup are placed on local disk area accessed by node4, where HAC4 SID is on.
    We transfer those backup files to tape on some schedule basis...
    Now we want to test this backup.
    Scenario:
    Because we have consistent backup we think that we can perform restore from it (from that disk files) and from it ONLY!
    Our problem is that all the time restore is using ASM files, so we are not sure is our backup valid.
    So, how to prevent RMAN restore/recover process from using any ASM file - just to use our consistent backup data?
    Please some script example for that....
    Our config:
    Oracle 10gR2.0.4 PS3 (CRS, ASM, database)
    Linux Rhel 5.3 IA64 on "raw devices" (not raw disks)
    THX
    Damir

    We'll...look this restore for our "as copy" consitent backup. Assume that ${BKUP_DEST} is env variable in bash script which points to same place where backup was done. Here is restore part:
    run {
    startup force nomount;
    RESTORE CONTROLFILE from '${BKUP_DEST}/HAC_20090916T152408_u5kpd8le_1_1_post_ctl';
    alter database mount;
    sql "alter session set NLS_DATE_LANGUAGE=American";
    allocate channel t1 type disk format  '${BKUP_DEST}/HAC_%U';
    allocate channel t2 type disk format  '${BKUP_DEST}/HAC_%U';
    restore database FROM TAG='TAG20090916T152532' ;
    release channel t1;
    release channel t2;
    }where
    TAG='TAG20090916T152532'is tag that was done in backup. This is done from "ac copy" backup. But when we run:
    run {
    allocate channel t1 type disk format  '${BKUP_DEST}/HAC_%U';
    allocate channel t2 type disk format  '${BKUP_DEST}/HAC_%U';
    recover database FROM TAG='TAG20090916T152532' ;
    release channel t1;
    release channel t2;
    }RMAN is using archive logs from ASM....and we want to use only files from "as copy" backup-remember we test "as copy" consistent backup.
    If we do not run "recover" part then we cannot open database!?
    (i.e. alter database open resetlogs).
    Hope now is all more clear..
    Regards,
    Damir
    P.S.
    Either our backup script is not OK or restore/recover script is bad....
    Unfortunatelly we do not know what?

Maybe you are looking for