Can I mount another instance of standby database

1. If I have a RAC physical standby database and instance 1 is mounted and is applying redo, can i mount second instance if I wish for example to perform a backup using rman?
2. If instance 1 is mounted and applying redo can I stop it and start instance 2 and continue to apply redo??
Thank you.
Regards.
Cristina.

1. If I have a RAC physical standby database and instance 1 is mounted and is applying redo, can i mount second instance if I wish for example to perform a backup using rman?Yes as Emre mentioned, you can mount all of the instances in cluster.
2. If instance 1 is mounted and applying redo can I stop it and start instance 2 and continue to apply redo??Redo apply will active only on one node, remaining standby instances will be idle
So you can start recovery any instance where you wish.

Similar Messages

  • Can Grid Control 10gR2 create a standby database when primary db uses ASM?

    Does anyone know if Grid Control 10gR2 will be able to create a standby database when the primary database uses ASM for data files, redo log files, and archive log files but the standby database will use mounted disks? If it can, would it matter that the primary db will be a RAC cluster and the standby will be a single instance db?

    I appreciate your reply and hope you are correct. Have you had a look at the 10gR2 Grid Control to confirm this or are you only going on published statements? The reason I ask is because previous versions of Grid Control claimed to support ASM but they would only allow you to work with them AFTER you had created a standby database manually but you couldn't actually use Grid Control to create a standby database from a primary database that had its log files on ASM disks.

  • Add another instance to RAC database...

    Dear all,
    If u want to add another instance to database... using dbca ... database should be shutdown or running....?
    Please help.
    Regards,
    Imran

    Perhaps asking the question in the RAC forum might be more useful.
    http://forums.oracle.com/forums/category.jspa?categoryID=140
    But - if you think about it ... the idea of RAC is to maintain ultra high availability. It would sort of defeat the purpose to shut down all RAC nodes to add or remove one node from the database.
    (In other words the other nodes can, and probably be should be, up.)
    The proper steps to add a node, in general, are
    - Install and configure OS and hardware for new node.
    - Add Oracle Clusterware to the new node.
    - Configure ONS for the new node.
    - Add ASM home to the new node.
    - Add RAC home to the new node.
    - Add a listener to the new node.
    - Add a database instance to the new node.
    The details are in the Oracle® Database Oracle Clusterware and Oracle Real Application Clusters Administration and Deployment Guide
    The real kicker is that the clusterware is installed correctly and it recognizes the other nodes. Also means that the shared store is properly configured, and that is a step people often mess up.
    Message was edited by:
    Hans Forbrich

  • How to start another instance in oracle database 10g

    Hi,
    i have created another database on linux Enterprise Server 5 with SID name "rmann". after database is created the address is "http://linux:5500/em"
    Now after that i run the address link it works fine. but when i restarted the computer run the address link http://linux:5500/em doen't run.
    So how i can run the new address link
    Thanks
    Sohail

    Sohail wrote:
    Hi,
    i have created another database on linux Enterprise Server 5 with SID name "rmann". after database is created the address is "http://linux:5500/em"
    Now after that i run the address link it works fine. but when i restarted the computer run the address link http://linux:5500/em doen't run.
    So how i can run the new address link You mean that after the restart of teh machine, EM doesn't work? Did you check that whether the service of the EM is running or not?
    emctl status dbconsoleIf it shows that the EM is not running then you must start teh service using,
    emctl start dbconsoleAnd also check that you are not using DHCP, in case of which EM would keep on crashing since the IP would be changed all the time. For this, you must ensure that you configured EM using a static IP only.
    HTH
    Aman....

  • Can't mount another computer on the network, or print, but can see all

    When I attempt to connect to another computer on the ethernet network in the office, I can see lots of other computers on the network but I can't quite get there. This is only a recent problem that began a week or so ago and there were no problems earlier.
    I can make it through Network >> Local >> Select the computer I wish to connect to >> Enter the password >> Select the volumes I wish to mount >> but then that's it, I get the spinning beach ball and nothing more happens. I don't understand how I can be seeing the volume and yet unable to mount it.
    However, at the same time I can also see the printers on the network and am unable to print to them which indicates that there may be a related problem. No-one else on the network is having any issues connecting to other computers or printers.

    I have the same problem - printers, volumes, computers - I have to relaunch the finder as soon as try to connect as a guest or registered user

  • I want to use the aerender engine on another computer but I can't download another instance

    i want to download the aerender engine

    AErender is part of the normal AE installer. There is no specific extra installer.
    Mylenium

  • Relocating datafiles on standby database after mount point on stanby is ful

    Hi,
    We have a physical standby database.
    The location of datafiles on primary database are at /oracle/oradata/ and the location of datafiles on standby database are at /oracle/oradata/
    Now we are facing a situation of mount mount getting full on standby database so we need to move some tablespaces to another location on standby.
    Say old location is /oracle/oradata/ and new location is /oradata_new/ and the tablespaces to be relocated are say tab1 and tab2.
    Can anybody tell me whether following steps are correct.
    1. Stop managed recovery on standby database
    alter database recover managed standby database cancel;
    2. Shutdown standby database
    shutdown immediate;
    3. Open standby database in mount stage
    startup mount;
    4. Copy the datafiles to new location say /oradata_new/ using os level command
    4. Rename the datafile
    alter database rename file
    '/oracle/oradata/tab1.123451.dbf', '/oracle/oradata/tab1.123452.dbf','/oracle/oradata/tab2.123451.dbf',''/oracle/oradata/tab2.123452.dbf'
    to '/oradata_new/tab1.123451.dbf', '/oradata_new/tab1.123452.dbf','/oradata_new/tab2.123451.dbf',''/oradata_new/tab2.123452.dbf';
    5. Edit the parameter db_file_name_convert
    alter system set db_file_name_convert='/oracle/oradata/tab1','/oradata_new/tab1','/oracle/oradata/tab2','/oradata_new/tab2'
    6. Start a managed recovery on standby database
    alter database recover managed standby database disconnect from session;
    I am littelbit confused in step 5 as we want to relocate only two tablespaces and not all tablespaces so we have used.
    Can we use db_file_name_convert like this i.e. does this work for only two tablespaces tab1 and tab2.
    Thanks & Regards
    GirishA

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/manage_ps.htm#i1010428
    8.3.4 Renaming a Datafile in the Primary Database
    When you rename one or more datafiles in the primary database, the change is not propagated to the standby database. Therefore, if you want to rename the same datafiles on the standby database, you must manually make the equivalent modifications on the standby database because the modifications are not performed automatically, even if the STANDBY_FILE_MANAGEMENT initialization parameter is set to AUTO.
    The following steps describe how to rename a datafile in the primary database and manually propagate the changes to the standby database.
    To rename the datafile in the primary database, take the tablespace offline:
    SQL> ALTER TABLESPACE tbs_4 OFFLINE;
    Exit from the SQL prompt and issue an operating system command, such as the following UNIX mv command, to rename the datafile on the primary system:
    % mv /disk1/oracle/oradata/payroll/tbs_4.dbf
    /disk1/oracle/oradata/payroll/tbs_x.dbf
    Rename the datafile in the primary database and bring the tablespace back online:
    SQL> ALTER TABLESPACE tbs_4 RENAME DATAFILE 2> '/disk1/oracle/oradata/payroll/tbs_4.dbf'
    3> TO '/disk1/oracle/oradata/payroll/tbs_x.dbf';
    SQL> ALTER TABLESPACE tbs_4 ONLINE;
    Connect to the standby database, query the V$ARCHIVED_LOG view to verify all of the archived redo log files are applied, and then stop Redo Apply:
    SQL> SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
    SEQUENCE# APP
    8 YES
    9 YES
    10 YES
    11 YES
    4 rows selected.
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    Shut down the standby database:
    SQL> SHUTDOWN;
    Rename the datafile at the standby site using an operating system command, such as the UNIX mv command:
    % mv /disk1/oracle/oradata/payroll/tbs_4.dbf /disk1/oracle/oradata/payroll/tbs_x.dbf
    Start and mount the standby database:
    SQL> STARTUP MOUNT;
    Rename the datafile in the standby control file. Note that the STANDBY_FILE_MANAGEMENT initialization parameter must be set to MANUAL.
    SQL> ALTER DATABASE RENAME FILE '/disk1/oracle/oradata/payroll/tbs_4.dbf'
    2> TO '/disk1/oracle/oradata/payroll/tbs_x.dbf';
    On the standby database, restart Redo Apply:
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE
    2> DISCONNECT FROM SESSION;
    If you do not rename the corresponding datafile at the standby system, and then try to refresh the standby database control file, the standby database will attempt to use the renamed datafile, but it will not find it. Consequently, you will see error messages similar to the following in the alert log:
    ORA-00283: recovery session canceled due to errors
    ORA-01157: cannot identify/lock datafile 4 - see DBWR trace file
    ORA-01110: datafile 4: '/Disk1/oracle/oradata/payroll/tbs_x.dbf'

  • Regrading standby database in standard edition

    hi gurus
    i m facing problem in configuring standby database in standard edition windows 2008 .
    os-windows 2008 standard
    oracle 11gr2
    i have copied files from primary n copied it to same location on standby...at that time database was in noarchivelog mode
    then i made it archive n create standby controlfile...also i have created same service name thru oradim with mentioning pfile and same password as on primary
    so it created pfile and password file...
    i opened the database in nomount with pfile
    then mount with standby controlfile it got mounted n the mode is automatically archivelog mode but as i didn't taken the same pfile of primary it didnt take the destinations as such n made archive in flash recovery area
    now i m a bit confused how to apply archive..i copied some archive and placed it in flash rec area
    i tried all options managed recovery.recover standby database,recover database until cancel
    but all give error
    please tell how i proceed..what shud b the right process in standby standard edition
    if possible send me a good link for standby database creation in windows 2008 standard with how to ftp files with mget mput..
    anyone if kindly provide a good link...wud b of great help
    thanks all

    on your standby database you can use:
    set logsource path_to_archives
    This will let Oracle know where the archive files are on the standby database.
    Then you can apply the archives with:
    recover standby database
    Another option is to use Dbvisit Standby to automate the whole standby database (including creation) for you when you have Oracle Standard One or Oracle Standard Edition One.

  • Standby Database fails to read dictionary from redo log

    hi,
    I am attempting to create a Logical standby database on same machine as the primary database. I have executed the steps outlined in Oracle Documentation several times, but end up with the same error. Detailes of setup and error are provided below. Please help. Thanks.
    ==========
    OS: REdhat 8 (2.4.18-14)
    RDBMS: Oracle EE Server 9.2.0.3.0
    primary db init details:
    *.log_archive_dest_1='LOCATION=/usr3/oracle/admin/lbsp/archive/ MANDATORY'
    *.log_archive_dest_2='SERVICE=STDBY'
    standby db init details:
    log_archive_dest_1='LOCATION=/usr3/oracle/admin/stdby/archive/'
    standby_archive_dest='/usr3/oracle/admin/lbsp/archive_pdb/'
    Standby alert log file (tail)
    LOGSTDBY event: ORA-01332: internal Logminer Dictionary error
    Sun Jul 13 11:37:20 2003
    Errors in file /usr3/oracle/admin/stdby/bdump/stdby_lsp0_13691.trc:
    ORA-01332: internal Logminer Dictionary error
    LSP process trace file:
    Instance name: stdby
    Redo thread mounted by this instance: 1
    Oracle process number: 18
    Unix process pid: 13691, image: oracle@prabhu (LSP0)
    *** 2003-07-13 11:37:19.972
    *** SESSION ID:(12.165) 2003-07-13 11:37:19.970
    <krvrd.c:krvrdfdm>: DDL or Dict mine error exit. 384<krvrd.c:krvrdids>: Failed to mine dictionary. flgs 180
    knahcapplymain: encountered error=1332
    *** 2003-07-13 11:37:20.217
    ksedmp: internal or fatal error
    . (memory dump)
    KNACDMP: Unassigned txns = { }
    KNACDMP: *******************************************************
    error 1332 detected in background process
    OPIRIP: Uncaught error 447. Error stack:
    ORA-00447: fatal error in background process
    ORA-01332: internal Logminer Dictionary error
    another trace file created by error is: stdby_p001_13695.trc
    Instance name: stdby
    Redo thread mounted by this instance: 1
    Oracle process number: 20
    Unix process pid: 13695, image: oracle@prabhu (P001)
    *** 2003-07-13 11:37:19.961
    *** SESSION ID:(22.8) 2003-07-13 11:37:19.908
    krvxmrs: Leaving by exception: 604
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS.LOGMNR_KRVRDREPDICT3", line 68
    ORA-06512: at line 1
    there are no errors anywhere during the creation, mounting or opening of standby database. After the initial log register, any log switch on primary is communicated to standby and visible in DBA_LOGSTDBY_LOG. Also, archived logs from primary are successfuly copied by system to directory pointed by standby db's standby_archive_dest parameter.
    I noticed, somehow everytime I issue "ALTER DATABASE START LOGICAL STANDBY APPLY" command the procedures and packages related to logmnr get invalid. I compile them and again after "APPLY" they become invalid.
    Invalid object list:
    OBJECT_TYPE OBJECT_NAME
    VIEW DBA_LOGSTDBY_PROGRESS
    PACKAGE BODY DBMS_INTERNAL_LOGSTDBY
    PACKAGE BODY DBMS_STREAMS_ADM_UTL
    VIEW LOGMNR_DICT
    PACKAGE BODY LOGMNR_DICT_CACHE
    PROCEDURE LOGMNR_GTLO3
    PROCEDURE LOGMNR_KRVRDA_TEST_APPLY
    Anybody point out what I am doing wrong. Thanks for the help

    ORA-15001: diskgroup "ORAREDO3" does not exist or is not mounted
    ORA-15001: diskgroup "ORAREDO3" does not exist or is not mountedhave you mentioned parameter LOG_FILE_NAME_CONVERT in standby when online redo log locations are different?
    post from standby:-
    SQL> select name, state From v$asm_diskgroup;
    FAL[client, MRP0]: Error 1031 connecting to MKS01P_PRD for fetching gap sequence
    ORA-01031: insufficient privilegesPost from primary & standby
    SQL> select * from v$pwfile_users;
    User Profile for 919131
    919131     
    Handle:     919131  
    Status Level:     Newbie
    Registered:     Mar 6, 2012
    Total Posts:     16
    Total Questions:     8 (8 unresolved)
    OTN failed 100% to help you, then why you posted another question?
    First close all your old answered threads and then better continue your updates in your thread.
    Edited by: CKPT on Jul 9, 2012 11:45 AM

  • Restoring and recovering datafiles in standby database

    Hi,
    oracle version : 8i(8.1.7.0.0)
    os : sun solaris
    I have scenerio where i lost some of the datafiles in standby database(physical standby) and i do have standby cold backup 3 months older since database size is 1TB is can i restore the the only lost files from cold backup and recover using archivelog files. since i only lost 4 data files of size 4gb each it will be faster compare to restoring the whole TB size database.
    appreciated for valuable inputs.
    Thanks
    Prakash GR

    Normal copy command can do your work:
    sys@SANTU> startup
    ORACLE instance started.
    Total System Global Area  535662592 bytes
    Fixed Size                  1334380 bytes
    Variable Size             180355988 bytes
    Database Buffers          348127232 bytes
    Redo Buffers                5844992 bytes
    Database mounted.
    Database opened.
    sys@SANTU> archive log list
    Database log mode              Archive Mode
    Automatic archival             Enabled
    Archive destination            USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence     4
    Next log sequence to archive   6
    Current log sequence           6
    sys@SANTU> host copy D:\APP\SANTOSKU\ORADATA\SANTU\USERS01.DBF d:\
            1 file(s) copied.
    sys@SANTU> shu immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    *Renamed the datafile 'D:\APP\SANTOSKU\ORADATA\SANTU\USERS01.DBF' to 'D:\APP\SANTOSKU\ORADATA\SANTU\USERS011.DBF'*
    sys@SANTU> startup
    ORACLE instance started.
    Total System Global Area  535662592 bytes
    Fixed Size                  1334380 bytes
    Variable Size             180355988 bytes
    Database Buffers          348127232 bytes
    Redo Buffers                5844992 bytes
    Database mounted.
    ORA-01157: cannot identify/lock data file 4 - see DBWR trace file
    ORA-01110: data file 4: 'D:\APP\SANTOSKU\ORADATA\SANTU\USERS01.DBF'
    sys@SANTU> host move  d:\USERS01.DBF D:\APP\SANTOSKU\ORADATA\SANTU\
    sys@SANTU> shu immediate
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    sys@SANTU> startup
    ORACLE instance started.
    Total System Global Area  535662592 bytes
    Fixed Size                  1334380 bytes
    Variable Size             180355988 bytes
    Database Buffers          348127232 bytes
    Redo Buffers                5844992 bytes
    Database mounted.
    ORA-01113: file 4 needs media recovery
    ORA-01110: data file 4: 'D:\APP\SANTOSKU\ORADATA\SANTU\USERS01.DBF'
    sys@SANTU> recover datafile 'D:\APP\SANTOSKU\ORADATA\SANTU\USERS01.DBF';
    Media recovery complete.
    sys@SANTU> alter database open;
    Database altered.
    sys@SANTU>N.B. I have not done the demo on standby database.
    but just i want to know is this procedure is valid that is instead of taking the lost datafiles from production can i use lost datafiles from standby database to recover other standby database.That would be fine.
    Regards,
    S.K.
    Edited by: Santosh Kumar on Oct 8, 2009 11:09 AM

  • Backup standby database

    We have 11grac implemented on windows with a physical standby on DR site, please advise how I can take backup of the phyiscal standby database?

    I have done cold backups of the RAC standby databases in ASM from another database on the same box that is open using the DBMS_FILE_TRANSFER.COPY_FILE unility. I do the following steps 1) Use the following script to create a cold backups script when the standby is in mount mode. 2) Shutdown the standby. 3) Run the result script in another database that is in open mode (the DBMS_FILE_TRANSFER.COPY_FILE will only run in an open database). 4) restart the standby application of archive logs after the cold backup is done.
    -- script to create cold backup of RAC ASM Standby
    set pages 0
    set feedback off
    set lines 300
    col dummy noprint
    set wrap off
    -- for gzip's to work
    col name for a50
    select name from v$datafile;
    select 'cd /stg/oracle/backups/cold_backup' from dual
    select 'CREATE OR REPLACE DIRECTORY asm_files AS '''||'&substr_ASM_PREFIX_OF_FILENAME'||''' ;' from dual
    -- grants not needed if running from sys
    select 'GRANT WRITE ON DIRECTORY asm_files TO "ENWEBP1";' from dual
    select 'CREATE OR REPLACE DIRECTORY DSK_FILES AS ''/stg/oracle/backups/cold_backup'';' from dual
    select 'GRANT WRITE ON DIRECTORY dsk_files TO "ENWEBP1";' from dual
    select substr(name,length(name)-instr(reverse(name),'/',1)+2,100)||'.A' dummy,'exec DBMS_FILE_TRANSFER.COPY_FILE ( ''asm_files'' , '''
    ||substr(name,length(name)-instr(reverse(name),'/',1)+2,100)
    ||''' , ''dsk_files'' , '''||substr(name,length(name)-instr(reverse(name),'/',1)+2,100)||''' );' cmd
    from v$datafile
    where upper(substr(name,1,length('&substr_ASM_PREFIX_OF_FILENAME')))=upper('&substr_ASM_PREFIX_OF_FILENAME')
    union
    select substr(name,length(name)-instr(reverse(name),'/',1)+2,100)||'.B' dummy,'host gzip '
    ||substr(name,length(name)-instr(reverse(name),'/',1)+2,100) cmd from v$datafile
    where upper(substr(name,1,length('&substr_ASM_PREFIX_OF_FILENAME')))=upper('&substr_ASM_PREFIX_OF_FILENAME')
    order by dummy
    select name||'.A' dummy,'CREATE OR REPLACE DIRECTORY asm_files AS '''||substr(name,1,length(name)-instr(reverse(name),'/',1))||''' ;'
    from v$controlfile
    union
    select name||'.b' dummy,'exec DBMS_FILE_TRANSFER.COPY_FILE ( ''asm_files'' , '''||substr(name,length(name)-instr(reverse(name),'/',1)+2,100)
    ||''' , ''dsk_files'' , '''||substr(name,length(name)-instr(reverse(name),'/',1)+2,100)||''' );'
    from v$controlfile order by dummy
    set pages 100
    set feedback on
    If I do happen to restore, I 1) Shutdown the standby 2) Erase datafiles and controlfiles (I keep the redo logs but that last script later (see below) will drop and recreate them with the clear command so you can also remove the redo logs if you wish). 3) Use the following script to create a restore script.
    -- Script to create cold restore of RAC standby database in ASM
    set pages 0
    set feedback off
    set lines 300
    col dummy noprint
    set wrap off
    -- for gzip's to work
    col name for a50
    select name from v$datafile;
    select 'cd /stg/oracle/backups/cold_backup' from dual
    select 'rm '||name from v$datafile order by name
    select 'CREATE OR REPLACE DIRECTORY asm_files AS '''||'&substr_ASM_PREFIX_OF_FILENAME'||''' ;' from dual
    -- grants not needed if running from sys
    select 'GRANT WRITE ON DIRECTORY asm_files TO "ENWEBP1";' from dual
    select 'CREATE OR REPLACE DIRECTORY DSK_FILES AS ''/stg/oracle/backups/cold_backup'';' from dual
    select 'GRANT WRITE ON DIRECTORY dsk_files TO "ENWEBP1";' from dual
    select substr(name,length(name)-instr(reverse(name),'/',1)+2,100)||'.A' dummy,'host gunzip '
    ||substr(name,length(name)-instr(reverse(name),'/',1)+2,100)||'.gz' cmd from v$datafile
    where upper(substr(name,1,length('&substr_ASM_PREFIX_OF_FILENAME')))=upper('&substr_ASM_PREFIX_OF_FILENAME')
    union
    select substr(name,length(name)-instr(reverse(name),'/',1)+2,100)||'.B' dummy,'exec DBMS_FILE_TRANSFER.COPY_FILE ( ''dsk_files'' , '''
    ||substr(name,length(name)-instr(reverse(name),'/',1)+2,100)
    ||''' , ''asm_files'' , '''||substr(name,length(name)-instr(reverse(name),'/',1)+2,100)||''' );' cmd
    from v$datafile
    where upper(substr(name,1,length('&substr_ASM_PREFIX_OF_FILENAME')))=upper('&substr_ASM_PREFIX_OF_FILENAME')
    union
    select substr(name,length(name)-instr(reverse(name),'/',1)+2,100)||'.C' dummy,'host gzip '
    ||substr(name,length(name)-instr(reverse(name),'/',1)+2,100) cmd from v$datafile
    where upper(substr(name,1,length('&substr_ASM_PREFIX_OF_FILENAME')))=upper('&substr_ASM_PREFIX_OF_FILENAME')
    order by dummy
    select name||'.A' dummy,'CREATE OR REPLACE DIRECTORY asm_files AS '''||substr(name,1,length(name)-instr(reverse(name),'/',1))||''' ;'
    from v$controlfile
    union
    select name||'.b' dummy,'exec DBMS_FILE_TRANSFER.COPY_FILE ( ''dsk_files'' , '''||substr(name,length(name)-instr(reverse(name),'/',1)+2,100)
    ||''' , ''asm_files'' , '''||substr(name,length(name)-instr(reverse(name),'/',1)+2,100)||''' );'
    from v$controlfile order by dummy
    set pages 100
    set feedback on
    and finally I run 4) clear redo logs with the following script:
    set pages 0
    set feedback off
    select 'alter database recover managed standby database cancel;' from dual;
    select 'alter database clear logfile group '||group#||';' from v$log order by group#;
    set feedback on
    set pages 100
    and 5) Open database and restart replication
    For Example:
    ENWEBP1 > @cr8_COLD_BACKUP_dbms_FILE_TRANSFER_COPY_FILE_from_ASM_to_FS.sql
    Enter value for substr_asm_prefix_of_filename: +DATA1/nwebp/datafile
    Enter value for substr_asm_prefix_of_filename: +DATA1/nwebp/datafile
    Enter value for substr_asm_prefix_of_filename: +DATA1/nwebp/datafile
    Enter value for substr_asm_prefix_of_filename: +DATA1/nwebp/datafile
    Enter value for substr_asm_prefix_of_filename: +DATA1/nwebp/datafile
    cd /stg/oracle/backups/cold_backup
    CREATE OR REPLACE DIRECTORY asm_files AS '+DATA1/nwebp/datafile' ;
    GRANT WRITE ON DIRECTORY asm_files TO "ENWEBP1";
    CREATE OR REPLACE DIRECTORY DSK_FILES AS '/stg/oracle/backups/cold_backup';
    GRANT WRITE ON DIRECTORY dsk_files TO "ENWEBP1";
    Enter value for substr_asm_prefix_of_filename: +DATA1/nwebp/datafile
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'asm_files' , 'content_data.290.623955671' , 'dsk_files' , 'content_data.290.623955671' );
    host gzip content_data.290.623955671
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'asm_files' , 'gsis_data.284.623955547' , 'dsk_files' , 'gsis_data.284.623955547' );
    host gzip gsis_data.284.623955547
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'asm_files' , 'site_data.288.623955617' , 'dsk_files' , 'site_data.288.623955617' );
    host gzip site_data.288.623955617
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'asm_files' , 'sysaux.264.621275031' , 'dsk_files' , 'sysaux.264.621275031' );
    host gzip sysaux.264.621275031
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'asm_files' , 'system.262.621275025' , 'dsk_files' , 'system.262.621275025' );
    host gzip system.262.621275025
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'asm_files' , 'undotbs1.263.621275031' , 'dsk_files' , 'undotbs1.263.621275031' );
    host gzip undotbs1.263.621275031
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'asm_files' , 'undotbs2.266.621275035' , 'dsk_files' , 'undotbs2.266.621275035' );
    host gzip undotbs2.266.621275035
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'asm_files' , 'undotbs3.267.621275037' , 'dsk_files' , 'undotbs3.267.621275037' );
    host gzip undotbs3.267.621275037
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'asm_files' , 'users.268.621275039' , 'dsk_files' , 'users.268.621275039' );
    host gzip users.268.621275039
    CREATE OR REPLACE DIRECTORY asm_files AS '+DATA1/nwebp' ;
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'asm_files' , 'control01.ctl' , 'dsk_files' , 'control01.ctl' );
    CREATE OR REPLACE DIRECTORY asm_files AS '+DATA1/nwebp' ;
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'asm_files' , 'control02.ctl' , 'dsk_files' , 'control02.ctl' );
    CREATE OR REPLACE DIRECTORY asm_files AS '+DATA1/nwebp' ;
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'asm_files' , 'control03.ctl' , 'dsk_files' , 'control03.ctl' );
    ENWEBP1 > @cr8_COLD_RESTORE_dbms_FILE_TRANSFER_COPY_FILE_from_FS_to_ASM.sql
    Enter value for substr_asm_prefix_of_filename: +DATA1/nwebp/datafile
    CREATE OR REPLACE DIRECTORY asm_files AS '+DATA1/nwebp/datafile' ;
    GRANT WRITE ON DIRECTORY asm_files TO "ENWEBP1";
    CREATE OR REPLACE DIRECTORY DSK_FILES AS '/stg/oracle/backups/cold_backup';
    GRANT WRITE ON DIRECTORY dsk_files TO "ENWEBP1";
    Enter value for substr_asm_prefix_of_filename: +DATA1/nwebp/datafile
    Enter value for substr_asm_prefix_of_filename: +DATA1/nwebp/datafile
    Enter value for substr_asm_prefix_of_filename: +DATA1/nwebp/datafile
    Enter value for substr_asm_prefix_of_filename: +DATA1/nwebp/datafile
    Enter value for substr_asm_prefix_of_filename: +DATA1/nwebp/datafile
    Enter value for substr_asm_prefix_of_filename: +DATA1/nwebp/datafile
    cd /stg/oracle/backups/cold_backup
    rm +DATA1/nwebp/datafile/content_data.290.623955671
    rm +DATA1/nwebp/datafile/gsis_data.284.623955547
    rm +DATA1/nwebp/datafile/site_data.288.623955617
    rm +DATA1/nwebp/datafile/sysaux.264.621275031
    rm +DATA1/nwebp/datafile/system.262.621275025
    rm +DATA1/nwebp/datafile/undotbs1.263.621275031
    rm +DATA1/nwebp/datafile/undotbs2.266.621275035
    rm +DATA1/nwebp/datafile/undotbs3.267.621275037
    rm +DATA1/nwebp/datafile/users.268.621275039
    rm +DATA3/nwebp/datafile/content_index01.dbf
    rm +DATA3/nwebp/datafile/gsis_index01.dbf
    rm +DATA3/nwebp/datafile/polls_data01.dbf
    rm +DATA3/nwebp/datafile/polls_index01.dbf
    rm +DATA3/nwebp/datafile/profile_data01.dbf
    rm +DATA3/nwebp/datafile/profile_index01.dbf
    rm +DATA3/nwebp/datafile/site_index01.dbf
    CREATE OR REPLACE DIRECTORY asm_files AS '+DATA1/nwebp/datafile' ;
    GRANT WRITE ON DIRECTORY asm_files TO "ENWEBP1";
    CREATE OR REPLACE DIRECTORY DSK_FILES AS '/stg/oracle/backups/cold_backup';
    GRANT WRITE ON DIRECTORY dsk_files TO "ENWEBP1";
    host gunzip content_data.290.623955671.gz
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'dsk_files' , 'content_data.290.623955671' , 'asm_files' , 'content_data.290.623955671' );
    host gzip content_data.290.623955671
    host gunzip gsis_data.284.623955547.gz
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'dsk_files' , 'gsis_data.284.623955547' , 'asm_files' , 'gsis_data.284.623955547' );
    host gzip gsis_data.284.623955547
    host gunzip site_data.288.623955617.gz
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'dsk_files' , 'site_data.288.623955617' , 'asm_files' , 'site_data.288.623955617' );
    host gzip site_data.288.623955617
    host gunzip sysaux.264.621275031.gz
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'dsk_files' , 'sysaux.264.621275031' , 'asm_files' , 'sysaux.264.621275031' );
    host gzip sysaux.264.621275031
    host gunzip system.262.621275025.gz
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'dsk_files' , 'system.262.621275025' , 'asm_files' , 'system.262.621275025' );
    host gzip system.262.621275025
    host gunzip undotbs1.263.621275031.gz
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'dsk_files' , 'undotbs1.263.621275031' , 'asm_files' , 'undotbs1.263.621275031' );
    host gzip undotbs1.263.621275031
    host gunzip undotbs2.266.621275035.gz
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'dsk_files' , 'undotbs2.266.621275035' , 'asm_files' , 'undotbs2.266.621275035' );
    host gzip undotbs2.266.621275035
    host gunzip undotbs3.267.621275037.gz
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'dsk_files' , 'undotbs3.267.621275037' , 'asm_files' , 'undotbs3.267.621275037' );
    host gzip undotbs3.267.621275037
    host gunzip users.268.621275039.gz
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'dsk_files' , 'users.268.621275039' , 'asm_files' , 'users.268.621275039' );
    host gzip users.268.621275039
    CREATE OR REPLACE DIRECTORY asm_files AS '+DATA1/nwebp' ;
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'dsk_files' , 'control01.ctl' , 'asm_files' , 'control01.ctl' );
    CREATE OR REPLACE DIRECTORY asm_files AS '+DATA1/nwebp' ;
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'dsk_files' , 'control02.ctl' , 'asm_files' , 'control02.ctl' );
    CREATE OR REPLACE DIRECTORY asm_files AS '+DATA1/nwebp' ;
    exec DBMS_FILE_TRANSFER.COPY_FILE ( 'dsk_files' , 'control03.ctl' , 'asm_files' , 'control03.ctl' );
    ENWEBP1 > @RMAN_Cr8_Clear_Standby_logs.sql
    alter database recover managed standby database cancel;
    alter database clear logfile group 1;
    alter database clear logfile group 2;
    alter database clear logfile group 3;
    alter database clear logfile group 4;
    alter database clear logfile group 5;
    alter database clear logfile group 6;
    alter database clear logfile group 7;
    alter database clear logfile group 8;
    alter database clear logfile group 9;
    alter database clear logfile group 10;
    alter database clear logfile group 11;
    alter database clear logfile group 12;
    alter database clear logfile group 13;
    alter database clear logfile group 14;
    alter database clear logfile group 15;
    Alan

  • CREATING A SINGLE INSTANCE PHYSICAL STANDBY FOR A RAC PRIMARY

    Hi
    Creating a single instance physical standby database for a RAC Primary.
    Getting this error.
    sql statement: alter database mount standby database
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 01/17/2008 23:05:38
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-03009: failure of sql command on clone_default channel at 01/17/2008 23:05:38
    RMAN-11003: failure during parse/execution of SQL statement: alter database mount standby database
    ORA-01103: database name 'PROD' in control file is not 'DPROD'
    Any help on this.
    Regards
    Satish

    The problem here is probably with your standby init.ora file.
    When you create a standby database, the db_name parameter must NOT change. It has to match the primary database. So in your case, db_name ='PROD' and your db_unique_name='DPROD'...
    -peter

  • Standby database max availability..delay of committed changes at primary

    Hi,
    I have setup a single instance physical standby database for a 3 node RAC primary database (10.2.0.3 on Solaris 10).
    The log_archive_dest_2 is set as "SERVICE=SDSMK LGWR SYNC AFFIRM NET_TIMEOUT=30 VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=SDSMK"
    at the primary db.
    The primary database is running in Maximum availability mode.
    The query "select protection_mode from v$database" gives "MAXIMUM AVAILABILITY" on both primary and standby databases.
    Now I performed an insert into a table at primary db, COMMITTed the update and issued "ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL" at standby. I could not see the above added row in the table at standby. If I understand correctly, since the standby db is up, the network link is up and all the managed standby processes are up, the change should have been propogated at the standby aswell. Did I miss anything? Also how can I find how long the standby database is lagging interms of committed transactions at primary db?
    Thanks,
    Sreekanth

    on primary:
    SQL> insert into sds.test1 values(17);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> SELECT THREAD#, MAX(SEQUENCE#) FROM V$LOG_HISTORY GROUP BY THREAD# order by thread#;
    THREAD# MAX(SEQUENCE#)
    1 660
    2 849
    3 619
    SQL> select current_Scn from v$database;
    CURRENT_SCN
    719552723
    SQL>
    on standby:
    SQL> SELECT THREAD#, MAX(SEQUENCE#) FROM V$LOG_HISTORY GROUP BY THREAD# order by thread#;
    THREAD# MAX(SEQUENCE#)
    1 660
    2 849
    3 619
    SQL> alter database recover managed standby database cancel;
    Database altered.
    SQL> SELECT THREAD#, MAX(SEQUENCE#) FROM V$LOG_HISTORY GROUP BY THREAD# order by thread#;
    THREAD# MAX(SEQUENCE#)
    1 660
    2 849
    3 619
    SQL> alter database open;
    Database altered.
    SQL> the change in test1 table is not seen here.

  • Switchover of a manual standby database (no data guard)

    Hi all,
    I have a standby database .
    I am using Oracle Standard Edition 10.2.0.4 / 10.2.0.5 so I have build a manual standby .
    I am able to do a failover in the case something goes wrong; I was thinking if it is possible to do a manual switchover . and failback.
    Do you thick that mounting the primary database and applying ALL archivelogs and online redolog to the standby database is enough ?
    Do you think this is a supported operation?
    How can I check the current scn of a mounted database? (v$database.current_scn shows 0 until the database is opened )
    thnk you for every answer
    Andrea

    helter_skelter wrote:
    hi,
    You can see current_scn of standby database in v$database.current_scn. It is null only on primary database if it's in mount state.that's the problem: I am unable to mount both database and to check they have the same current_scn
    not all changes are written to ARL so you can't recover standby database to exact the same SCN as primaryI thinks this is because the last changes are only recorder in online redolog, so I was thinking that a possible way to simulate a clean switchover could be as follow:
    1 - shutdown immediate the primary database on server prod1
    2 - shutdown abort the (manual) standby database on server dr2
    3 - copy archivelog, controlfiles, tempfiles, onlinelogs from primary to the standby database
    3 - copy controlfiles from standby database to primary database
    4 - open the database on server dr2. It should open "read write" cleanly (mount + recover from archivelog + recover from onlinelog + open noresetlogs )
    5 - mount the database on server prod1. It should mount as a physical standby database.
    What do you think about it?
    thanks,
    andrea

  • Standby Database problem (10g)

    Dear Oracle Experts,
    I have primary and physical standby instance running. Due to whatever reason, the server running the standby instance is restarted.
    After the standby instance restart, I have observed that 2 archivelogs that appear in primary instance was not in standby instance.
    I have queries the v$archive_gap but it does not report anything gap.
    What does that imply? Does that means there is no gap? But clearly 2 archivelogs are missing. Its too confusing.
    If it means the standby instance is no longer sync with primary instance, is it possible to apply manually the 2 missing archivelogs as I have them.
    Thanks in advance.

    Yes you can apply the logs manually but before that please let me know whether you got the logs in the standby database.
    Use the following command to see the log file no and whether its applied or not
    select sequence#, applied from v$archived_log where applied='YES';
    If you can see those logs in the standby database dont do any thing it will auto matically apply those logs, but for long time if it does not apply then remove that log and do the following steps
    1) If the archive logs is in ASM then use RMAN command.
    Take the backup and restore it in the standby server using the following command
    RUN
    SET ARCHIVELOG DESTINATION TO '/data/RMANBKP/restore';
    RESTORE ARCHIVELOG from sequence 123 until sequence 125;
    then
    2) Register those archivelogs using the following command
    Alter database register logfile '/data/RMANBKP/restore/123.dbf';
    or
    Alter database register or replace logfile '/data/RMANBKP/restore/123.dbf';
    Regards,
    Siraj

Maybe you are looking for