Standby db in R/W mode with RMAN

Hello,
I have a test environment that I have a physical non-managed standby database created in a virtual machine. I would like to use a physical standby database for read/write testing and reporting. I've been implementing the Data Guard Scenarios and tried to see if I can revert the activated database back to a physical standby database. However, I keep receiving the following error when I try to open the standby in read only mode:
ORA-16004: backup database requires recovery
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF'
Note: The standby db starts up as follows:
startup nomount pfile=C:\oracle\product\10.2.0\db_2\database\initORCLstdby.ora;
alter database mount standby database;
Once every x minutes, a batch job ships the logs from the primary to the secondary and runs the following:
connect / as sysdba
spool c:\scripts\logapply.log
alter database recover automatic standby database until cancel;
alter database recover cancel;
Here's the steps I've done:
1. On the standby database, query the V$DATABASE view and record the current SCN of the standby database:
SQL> SELECT CURRENT_SCN FROM V$DATABASE;
CURRENT_SCN
1804721
2. This step didn't work/isn't necessary:
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL
ERROR at line 1:
ORA-16136: Managed Standby Recovery not active
3. Connect to the standby database as the RMAN target and create an incremental backup from the current SCN of the standby database that was recorded in step 1:
RMAN> connect target "system/password"
connected to target database: ORCL (DBID=xxxxx, not open)
RMAN> BACKUP INCREMENTAL FROM SCN 1804721 DATABASE FORMAT 'C:\tmp\ForStandby_%U' tag 'FOR STANDBY';
4. Connect to the standby database as the RMAN target, and catalog all incremental backup pieces:
RMAN> CATALOG START WITH 'c:\tmp\ForStandby_';
5. On the primary database, switch logs so the SCN of the restore point (created in step 1) will be archived on the physical standby database and ship it to the standby database:
SQL> ALTER SYSTEM ARCHIVE LOG CURRENT;
6. Activate the physical standby database:
SQL> ALTER DATABASE ACTIVATE STANDBY DATABASE;
SQL> STARTUP MOUNT FORCE;
SQL> ALTER DATABASE OPEN;
Make any write changes on the activated standby database.
7. Revert the activated database back to a physical standby database.
SQL> STARTUP MOUNT FORCE;
Connect to the standby database as the RMAN target and apply incremental backups
Open another session for RMAN:
RMAN> RECOVER DATABASE NOREDO;
Back to SQL session
SQL> ALTER DATABASE CONVERT TO PHYSICAL STANDBY;
SQL> SHUTDOWN IMMEDIATE;
I then run a batch file that automatically start the standby database and recover from the shipped archive logs:
startup nomount pfile=C:\oracle\product\10.2.0\db_2\database\initORCLstdby.ora;
alter database mount standby database;
SQL> alter database recover automatic standby database until cancel;
alter database recover automatic standby database until cancel
ERROR at line 1:
ORA-00279: change 1804724 generated at 04/25/2008 18:14:16 needed for thread 1
ORA-00289: suggestion : C:\ARCHIVELOGS\NODE2\ARCH_1_1_652990391.ARC
ORA-00280: change 1804724 for thread 1 is in sequence #1
ORA-00278: log file 'C:\ARCHIVELOGS\NODE2\ARCH_1_1_652990391.ARC' no longer
needed for this recovery
ORA-00308: cannot open archived log
'C:\ARCHIVELOGS\NODE2\ARCH_1_1_652990391.ARC'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
SQL> alter database recover cancel;
alter database recover cancel
ERROR at line 1:
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF'
I've tried another approach to step 7:
SQL> STARTUP MOUNT FORCE;
SQL> ALTER DATABASE CONVERT TO PHYSICAL STANDBY;
SQL> STARTUP MOUNT FORCE;
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT;
I get an error if I try this:
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCO
NNECT;
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT
ERROR at line 1:
ORA-38500: USING CURRENT LOGFILE option not available without stand
When I try to open the standby database in read only mode, I get this error:
SQL> alter database open read only;
alter database open read only
ERROR at line 1:
ORA-16004: backup database requires recovery
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF'
I ran SELECT SEQUENCE#, FIRST_TIME FROM V$LOG_HISTORY; and found that the standby sequence# is only one sequence behind the test primary database.
I'm stuck and would appreciate any help. Thank you.

And how do you think you will conserve disk space with RMAN ?
Stop and think about it : How can you revert a database AFTER you have Opened
it Read/Write ? You need to flashback it OR restore it from a backup taken before
the OPEN.
So, you could have taken a backup to Tape or to alternate disk before OPENing the
database. The backup to alternate disk can be via Flashback Recovery area or
a regular RMAN (compressed, you want ?) backup. In the second case, you wouldn't
be using a Flashback mechanism but a simple backup and restore method.

Similar Messages

  • Hot back up and archive mode with RMAN

    Just diving back into back up world...
    I know I can do a hot back up of the Database with no archivelog option not using RMAN.
    Just wonder if I can do it with RMAN with no Archivelog option?
    TIA

    Thanks. Without rman, you can do tablespace online
    backup, using start and finish as far as I remember.This is true only if ur database is in ARCHIVELOG MODE. If its not then the only way to back it up is cold backup by either RMAN or without. In short you can do HOT/online backup ONLY if your database is in ARCHIVELOG MODE.
    Now what u actually want tell us..
    Daljit Singh

  • Problem creating physical Standby database with RMAN

    Hi All
    I am trying to learn oracle dataguard and as part of the process learning creating standby database.
    Platform : Sun-Fire-V250 Sparc, Solaris 10
    Database Version - Oracle 11R2
    I am creating standby database on same server, so directory structure is different.
    Following the instructions on Oracle site I managed to create a functional physical standby database. But I am not able to create standby database using RMAN. These are the steps that I followed-
    1.Set up all necessary parameters on primary database as done while creating physical standby database manually, eg setting force logging, creating standby logs etc.
    2.Edited parameter file on primary database as done while creating manual pysical standby database creation. Some of the changes done are-
    On Primary Database:
    *.FAL_CLIENT='orcl11020' #Primary database unique name
    *.FAL_SERVER='stdby_11' #Standby database unique name
    db_file_name_convert='/<dir>/oradata/stdby_11','/<dir>/oradata/orcl11020'
    log_file_name_convert='/<dir>/oradata/stdby_11','/<dir>/oradata/orcl11020','/<dir>/oradata/stdby_11/redo_mem','/<dir>/oradata/orcl11020/redo_mem'
    standby_file_management=auto
    *.log_archive_config='DG_CONFIG=(orcl11020,stdby_11)'
    *.log_archive_dest_1='LOCATION=/<dir>/flash_recovery_area/ORCL11020/archivelog
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES) db_unique_name=orcl11020'
    *.log_archive_dest_2='SERVICE=stdby_11 LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=stdby_11'
    *.LOG_ARCHIVE_DEST_STATE_1='ENABLE'
    *.LOG_ARCHIVE_DEST_STATE_2='ENABLE'
    *.LOG_ARCHIVE_FORMAT='%t_%s_%r.arc'
    *.LOG_ARCHIVE_MAX_PROCESSES=30
    Copied same pfile for standby database and modified following-
    *.control_files='/<dir>/oradata/stdby_11/stdby_11.ctl','/<dir>/fra_stdby/stdby_11/stdby_11.ctl'
    *.db_name='orcl1102'
    *.db_unique_name='stdby_11'
    *.FAL_CLIENT='stdby_11'
    *.FAL_SERVER='orcl11020'
    db_file_name_convert='/<dir>/oradata/orcl11020','/<dir>/oradata/stdby_11'
    log_file_name_convert='/<dir>/oradata/orcl11020','/<dir>/oradata/stdby_11','/<dir>/oradata/orcl11020/redo_mem','/<dir>/oradata/stdby_11/redo_mem'
    standby_file_management=auto
    *.log_archive_dest_1='LOCATION=/<dir>/fra_stdby/STDBY_11/archivelog
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES) db_unique_name=stdby_11'
    *.log_archive_dest_2='SERVICE=orcl11020 LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
    db_unique_name=orcl11020'
    3. Add relevant information in tnsnames.ora and listener.ora files and then restart listener.
    3. Created password file with same credential as primary database.
    4.Up-to-date RMAN backup of primary database available.
    5.Create standby controlfile with rman
    While primary database s open (I tried with primary database in mount mode as well)-
    $>rman catalog rman/paswd@rman target /
    RMAN> BACKUP CURRENT CONTROLFILE FOR STANDBY;
    6. Open a new terminal and startup standby database in nomount mode using parameter file created -
    $>ORACLE_SID=stdby_11
    $>export ORACLE_SID
    $>sqlplus / as sysdba
    SQL>STARTUP NOMOUNT pfile='<location/initfilename.ora'
    SQL>quit
    $> rman AUXILIARY / target sys/passwd@orcl11020 catalog rman/passwd@rman
    RMAN>DUPLICATE TARGET DATABASE FOR STANDBY DORECOVER;
    RMAN finishes without error but archive logs are not being tranported. Looking at the log, following caught my eye-
    Error 1017 received logging on to the standby
    Check that the primary and standby are using a password file
    and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
    and that the SYS password is same in the password files.
    returning error ORA-16191
    FAL[client, ARC2]: Error 16191 connecting to orcl11020 for fetching gap sequence
    Errors in file /<>dir>/diag/rdbms/stdby_11/stdby_11/trace/stdby_11_arc2_24321.trc:
    ORA-16191: Primary log shipping client not logged on standby
    Errors in file /<dir>/diag/rdbms/stdby_11/stdby_11/trace/stdby_11_arc2_24321.trc:
    ORA-16191: Primary log shipping client not logged on standby
    So on both primary and standby I confirmed
    SQL> show parameter remote_login_passwordfile
    NAME TYPE VALUE
    remote_login_passwordfile string EXCLUSIVE
    To make double sure that password files are same, I shutdown both databases, delete password files and recreated with same credentials.
    Password files are called - orapworcl11020 and orapwstdby_11
    Can someone guide me where thisngs are going wrong here please.

    Not sure if I understood it clearly.
    SELECT * FROM V$ARCHIVE_GAP;
    returns no rows so there is no gap.
    But could you please explain me the result of the previous query. To catch up again, on standby when I check
    SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG
    SEQUENCE# APPLIED
    75 NO
    74 NO
    76 NO
    77 NO
    I understand that though archive files have been copied across but they are not applied yet.
    On primary when I give your query -
    SELECT name as STANDBY,SEQUENCE#,applied, completion_time
    2 FROM v$archived_log
    3 where dest_id=2
    4 and sequence# BETWEEN 74 and 80;
    I get -
    STANDBY SEQUENCE# APPLIED COMPLETIO
    stdby_11 74 YES 28-JUN-11
    stdby_11 75 YES 28-JUN-11
    stdby_11 76 YES 29-JUN-11
    stdby_11 77 YES 29-JUN-11
    stdby_11 78 YES 29-JUN-11
    stdby_11 79 YES 29-JUN-11
    stdby_11 80 YES 29-JUN-11
    stdby_11 75 NO 07-JUL-11
    stdby_11 74 NO 07-JUL-11
    stdby_11 76 NO 07-JUL-11
    stdby_11 77 NO 07-JUL-11
    stdby_11 78 NO 07-JUL-11
    I have intentionally given
    sequence# BETWEEN 74 and 80
    because I know in the current incarnaion of the database, max sequence is 78.
    So my understanding is, the rows between 28-29 June are from previous incarnation, correct me if I am wrong
    Archive files of the current incarnation, since I successfully created standby database are shipped but yet to be applied - am I right?
    Then my final question is, when will these archives be applied to standby database?
    I am sorry to ask too many questions but I am just trying to understand how it all works.
    Thanks for your help again

  • Logical Standby recover with RMAN

    Hi All,
    I have a test environment with Primary DB Server, Physical Standby and Logical Standby.
    The Logical Standby DB (cur_log_stdb) is backed up every evening by RMAN and I have a question:
    If I recover my Logical Standby DB from backup and switch replication to new Logical Standby DB (new_log_stdb) it will work or not?
    My steps e.g.:
    1. Make a new server for my new_log_stdb and repair structure of catalogs;
    2. Repair listener.ora and tnsnames.ora files from cur_log_stdb to new_log_stdb;
    3. Restore DB with RMAN from backup to new_log_stdb;
    4. On cur_log_stdb execute "alter database stop logical standby apply";
    5. Change a DNS name from cur_log_stdb to new_log_stdb;
    6. On new_log_stdb execute "alter database start logical standby apply immediate";
    I'm not sure that archivelogs will apply to the new_log_stdb for period since rman backup was created.
    But if this plan won't work how can I restore Logical Standby DB from RMAN backup and resume replication from Primary?
    Configuration:
    Oracle Linux 6.4
    Oracle Database 11.2.0.3
    Primary and Physical with Data Guard

    Hello;
    The only way to know for sure is to test it. You are asking somebody you don't know to confirm a recovery test for you. You have to perform the test yourself to be certain.
    If your plan does not work you can always rebuild the Standby.
    Best Regards
    mseberg

  • Oracle 3113 creating a standby with rman

    Hello,
    environment is 11gR2 on Linux.
    Tested on CentOS 5.5 as OS and local LAN as interconnect and the duplicate command terminates successfully in some minutes.
    Same script but using oel 5.5 and a wan (3Mbit/s) and I keep getting 3113 errors after about 2h or 3h.
    I suspect some timeout on wan (that is over vpn) but I would also like to trace something at my side.
    I run a shell script with nohup and send it to background and this is the log, from which you can see the rman script:
    Recovery Manager: Release 11.2.0.1.0 - Production on Tue Sep 7 14:50:11 2010
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    RMAN>
    connected to target database: TESDB1 (DBID=11492743)
    RMAN>
    connected to auxiliary database: DUMMY (not mounted)
    RMAN>
    RMAN> run{
    2> allocate channel prmy1 type disk;
    3> allocate auxiliary channel stby1 type disk;
    4> duplicate target database for standby from active database
    5> spfile
    6> parameter_value_convert 'TESDB1','TESDB1DR'
    7> set db_file_name_convert='/TESDB1/','/TESDB1DR/'
    8> set log_file_name_convert='/TESDB1/','/TESDB1DR/'
    9> set 'db_unique_name'='TESDB1DR'
    10> set control_files='/app/oradata/TESDB1DR/control01.ctl','/app/oradata/flash_recovery_area/TESDB1DR/control02.ctl'
    11> set db_recovery_file_dest='/app/oradata/flash_recovery_area'
    12> set DB_RECOVERY_FILE_DEST_SIZE='4977M'
    13> nofilenamecheck;
    14> }
    using target database control file instead of recovery catalog
    allocated channel: prmy1
    channel prmy1: SID=12 device type=DISK
    allocated channel: stby1
    channel stby1: SID=135 device type=DISK
    Starting Duplicate Db at 07-SEP-10
    executing Memory Script
    executing command: SET NEWNAME
    renamed tempfile 1 to /app/oradata/TESDB1DR/temp01.dbf in control file
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting backup at 07-SEP-10
    channel prmy1: starting datafile copy
    input datafile file number=00003 name=/app/oradata/TESDB1/undotbs01.dbf
    .. after about three hours (and 3.2Gb transferred) it continues with:
    RMAN-03009: failure of backup command on prmy1 channel at 09/07/2010 17:53:49
    RMAN-06136: ORACLE error from auxiliary database: ORA-03113: end-of-file on communication channel
    Process ID: 3187
    Session ID: 192 Serial number: 3
    continuing other job steps, job failed will not be re-run
    .. after 15 minutes:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/07/2010 18:09:35
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-03009: failure of backup command on clone_default channel at 09/07/2010 18:09:34
    RMAN-10038: database session for channel clone_default terminated unexpectedly
    RMAN> **end-of-file**
    RMAN>
    Recovery Manager complete.
    the undo tbs is 3.2 Gb so I'm not sure if the 3113 happens at the end of copy... but the tablespace doesn't succeed
    and the other jobs don't start even if it says "continuing other job steps"..
    rman started at 14:50 and in listener at dr site I have:
    Tue Sep 07 14:50:55 2010
    07-SEP-2010 14:50:55 * service_update * TESDB1DR * 0
    07-SEP-2010 14:50:55 * (CONNECT_DATA=(SERVICE_NAME=TESDB1DR)(CID=(PROGRAM=oracle)(HOST=lb-orajde.boiron.ntm)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.49.1.93)(PORT=35240)) * establish * TESDB1DR * 0
    Tue Sep 07 15:00:58 2010
    07-SEP-2010 15:00:58 * service_update * TESDB1DR * 0
    Tue Sep 07 16:35:04 2010
    07-SEP-2010 16:35:04 * service_update * TESDB1DR * 0
    Tue Sep 07 17:02:04 2010
    07-SEP-2010 17:02:04 * service_update * TESDB1DR * 0
    07-SEP-2010 17:02:10 * service_update * TESDB1DR * 0
    Tue Sep 07 17:53:17 2010
    07-SEP-2010 17:53:17 * service_update * TESDB1DR * 0
    Tue Sep 07 18:09:00 2010
    07-SEP-2010 18:09:00 * (CONNECT_DATA=(SERVICE_NAME=TESDB1DR)(CID=(PROGRAM=rman)(HOST=lb-orajde.boiron.ntm)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.49.1.93)(PORT=32610)) * establish * TESDB1DR * 0
    In alert.log at dr site I have at 17:02 (about 50 minutes before error):
    Tue Sep 07 15:05:01 2010
    db_recovery_file_dest_size of 4977 MB is 0.00% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    Tue Sep 07 17:02:03 2010
    Fatal NI connect error 12170.
    VERSION INFORMATION:
    TNS for Linux: Version 11.2.0.1.0 - Production
    Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
    TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
    Time: 07-SEP-2010 17:02:03
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12535
    TNS-12535: TNS:operation timed out
    ns secondary err code: 12560
    nt main err code: 505
    TNS-00505: Operation timed out
    nt secondary err code: 110
    nt OS err code: 0
    Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=10.49.1.93)(PORT=35226))
    some times (always at 17:02) and nothing more
    In alert.log at primary site:
    Tue Sep 07 14:50:36 2010
    Clearing standby activation ID 11529351 (0xafec87)
    The primary database controlfile was created using the
    'MAXLOGFILES 16' clause.
    There is space for up to 13 standby redo logfiles
    Use the following SQL commands on the standby database to create
    standby redo logfiles that match the primary database:
    ALTER DATABASE ADD STANDBY LOGFILE 'srl1.f' SIZE 52428800;
    ALTER DATABASE ADD STANDBY LOGFILE 'srl2.f' SIZE 52428800;
    ALTER DATABASE ADD STANDBY LOGFILE 'srl3.f' SIZE 52428800;
    ALTER DATABASE ADD STANDBY LOGFILE 'srl4.f' SIZE 52428800;
    Tue Sep 07 16:00:40 2010
    Thread 1 advanced to log sequence 759 (LGWR switch)
    Current log# 3 seq# 759 mem# 0: /app/oradata/TESDB1/redo03.log
    Tue Sep 07 16:00:41 2010
    Archived Log entry 528 added for thread 1 sequence 758 ID 0xafec87 dest 1:
    In sqlnet.log of primary site:
    Tue Sep 07 17:53:49 2010
    Fatal NI connect error 12170.
    VERSION INFORMATION:
    TNS for Linux: Version 11.2.0.1.0 - Production
    TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
    Time: 07-SEP-2010 17:53:49
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12535
    TNS-12535: TNS:operation timed out
    ns secondary err code: 12560
    nt main err code: 505
    TNS-00505: Operation timed out
    nt secondary err code: 110
    nt OS err code: 0
    Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.12.41)(PORT=1521))
    and the same at 18:09
    No other errors.
    Any hints?
    BTW: what is the minimum size of undo tbs? Can I have compression enabled also during duplication if transport service is configured with COMPRESSION=ENABLED, or does it count only when copying redo files?
    Thanks in advance,
    Gianluca

    Thanks for your reply.
    I will try your suggestion as it could come useful some time.
    So with this alternate method at the end I would have standby aligned as of backup time, correct?
    And after running something like this on standby:
    SQL> alter database recover managed standby database disconnect from session;
    It will begin to receive, archive and apply redo logs, correct?
    Some answers regarding the original question. It was confirmed that there was a 2hours cut-off time at firewall level.
    The first datafile that the rman session began to copy was 3.2Gb in size, taking more than 2 hours completing.
    Monitoring with netstat on source and target I saw this at source during the duplicate process:
    tcp 0 0 10.49.1.93:46626 192.168.12.41:1521 ESTABLISHED
    tcp 0 0 10.49.1.93:46627 192.168.12.41:1521 ESTABLISHED
    tcp 0 0 10.49.1.93:46629 192.168.12.41:1521 ESTABLISHED
    tcp 0 369240 10.49.1.93:50371 192.168.12.41:1521 ESTABLISHED
    and the session bound to port 50371 was the only one pushing data (send queue not empty).
    The other 3 ones I presume are for control of rman session. I get 3 sessions even if I open only one channel on primary side.
    After the first datafile completes copy, a new session (with port 14871) is established substituting the other one.
    The three initial ones instead remain for all the duplicate process.
    tcp 0 487872 10.49.1.93:14871 192.168.12.41:1521 ESTABLISHED
    tcp 0 0 10.49.1.93:46626 192.168.12.41:1521 ESTABLISHED
    tcp 0 0 10.49.1.93:46627 192.168.12.41:1521 ESTABLISHED
    tcp 0 0 10.49.1.93:46629 192.168.12.41:1521 ESTABLISHED
    So after the copy of the first file, the session come back to one or more of the initial 3 ones, and they probably make a push-ack, got a 3113 as the firewall has silently cut them after 2 hours.... and the datafile, even if completed, is not marked as completed. A new run would copy again it...
    Now the time has been put to 8hours, with 24hours being the maximum value set (no disable possible as far as the network guy said...).
    And the duplicate completed correctly.
    Would I have to fear any problems with this cut-off due to "normal" dataguard operations or not, in your opinion?
    Thanks
    Gianluca

  • Physical Standby Database Creation with RMAN

    Hi,
    I'm in 10g on Linux. I want to create a standby database on another Linux server. I did not find a clear procedure to create it in Oracle® Database Backup and Recovery Advanced User's Guide 10g Release 2 (10.2) Part Number B14191-02
    and niether in Oracle® Data Guard Concepts and Administration 10g Release 2 (10.2) B14239-04
    In the last one chapter 3 sends you to F appendix and F appendix says do nothing before having than all in chapter 3 :
    In F.1.1 page F-2 it is said :
    See Chapter 3 for a complete discussion of physical standby database preparation,including initialization parameter settings. You must perform all necessary preparation tasks described in these chapters before RMAN can successfully create the standby database files and mount the standby database.
    Any way I'm looking for a procedure or clear article to create it.
    Many thanks before.

    Physical Standby Database Creation with RMAN
    Use the DUPLICATE command.
    Check out this metalink doc: Note:374069.1 and Note:118409.1
    Message was edited by:
    STW
    Message was edited by:
    STW

  • Duplicating DB with RMAN,DB mode:NOARCHIVE LOG?

    Hello,
    I want to get a duplicate database on a remote server machine with same file structure by using internet of VPN(virtual private network). My question is ...
    can we duplicate the database to remote server if the Database is in NOARCHIVELOG MODE ??
    I have surffed on net for the same i got the method to duplicated the database but not sure weather i can do that in noarchivelog mode !
    Regarding the steps if anyone has some better ideas to perform duplication of Database with RMAN or any other tool let me know or any more optimized steps ....will be appreciated. But please keep this point that the database is in norachivelog mode.
    ORACLE 10g R2
    Windows server 2003 32bit
    Thanks in advance....
    Regards,
    DBA4

    If the database is in noarchivelog mode, then you can only take offline backup of database through RMAN in the mount state. Previously database shouldn't be shutdown
    abnormally.
    SQL> select LOG_MODE from v$database;
    LOG_MODE
    NOARCHIVELOG
    1 row selected.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area  209715200 bytes
    Fixed Size                  1289748 bytes
    Variable Size             138412524 bytes
    Database Buffers           67108864 bytes
    Redo Buffers                2904064 bytes
    Database mounted.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Data Mining options
    D:\Test>rman target /
    Recovery Manager: Release 10.2.0.3.0 - Production on Mer. Mai 30 19:46:13 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database: MIKA (DBID=1492747861, not open)
    RMAN> backup database;Now move that backup to another machine, and restore this backup.
    On the target machine, do the following steps:
    D:\Test>rman target /
    rman>RUN
    STARTUP NOMOUNT FORCE;
    allocate channel d1 type disk;
    RESTORE SPFILE;
    SHUTDOWN IMMEDIATE;
    STARTUP NOMOUNT;
    RESTORE CONTROLFILE;
    ALTER DATABASE MOUNT;
    RESTORE DATABASE;
    ALTER DATABASE OPEN RESETLOGS;
    regardsregards

  • Recovery Logical Standby with RMAN

    Hi All,
    I have a test environment with Primary DB Server, Physical Standby and Logical Standby.
    The Logical Standby DB (cur_log_stdb) is backed up every evening by RMAN and I have a question:
    If I recover my Logical Standby DB from backup and switch replication to new Logical Standby DB (new_log_stdb) it will work or not?
    My steps e.g.:
    1. Make a new server for my new_log_stdb and repair structure of catalogs;
    2. Repair listener.ora and tnsnames.ora files from cur_log_stdb to new_log_stdb;
    3. Restore DB with RMAN from backup to new_log_stdb;
    4. On cur_log_stdb execute "alter database stop logical standby apply";
    5. Change a DNS name from cur_log_stdb to new_log_stdb;
    6. On new_log_stdb execute "alter database start logical standby apply immediate";
    I'm not sure that archivelogs will apply to the new_log_stdb for period since rman backup was created.
    Configuration:
    Oracle Linux 6.4
    Oracle Database 11.2.0.3
    Primary and Physical with Data Guard

    You might get better responses in the DataGuard forum ("space").
    I am sceptical if this plan would work.
    Hemant K Chitale

  • 10g Physical Standby to be used for Backup through RMAN

    Dear All,
    I have 10g Database Primary and Standby Server which is operating in Maximum Performance Mode. I want to use Standby Database for performing Weekly Full and Daily Incremental Backups through RMAN. Kindly inform me is it possible, if yes how should I configure it. I will also be using Compression and Encryption while performing backups.
    Best Regards,
    Asif

    Yes, that is possible.
    Because the standby databases are in mount mode, they can be accessed through the SYS account .
    I use the following RMAN script for the same purpose. Please note that we have configure the flashback area, so we are not letting RMAN delete the archive files:
    run {
    sql 'alter system archive log current';
    sql 'alter system archive log current';
    allocate channel ch1 type 'sbt_tape' parms 'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
    backup
    incremental level 0
    tag full_bk_db_webshop
    format 'df_%d_t%t_s%s_p%p'
    (database include current controlfile);
    backup archivelog all;
    This script is for a FULL backup ( level 0 ). You could also use the "backup full" command
    You can easily change the level of the Backup for incremental purposes.
    Starting RMAN - if configured correctly - is the same as with an open database
    export ORACLE_SID=<STDBYSID>
    rman target / rcvcat <rman/rman>@<catalogsid>
    the user for, and the catalogsid are merely examples
    Edited by: fjfranken on Mar 24, 2009 4:07 AM

  • How to open a "manual" Physical standby database in read/write mode

    Hi,
    I am running Oracle Database 10g Release 10.2.0.3.0 - 64bit Production Standard Edition on Linux version 2.6.9-42.0.8.ELsmp ([email protected]) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-3))
    I've created a physical standby database, but since I am running Standard Edition, I am not using the DataGuard features. I use the rsync utility to copy over the archivelogs to the standby database, and I apply them periodically to the standby database.
    The standby database is started this way :
    startup nomount pfile='/u01/oradata/orcl/initorcl.stdby';
    alter database mount standby database;
    Everything runs perfectly fine, I can do "alter database open read only" and then I can do selects into tables to confirm that everything is up to date.
    The thing is, if I shutdown immediate the database, then do just startup :
    shutdown immediate;
    startup;
    The database opens with no error messages, but is still in read-only mode...
    I read that the default behavior for a standby database is to open read-only, like I am experiencing, but I would like to know what is the right way to open it correctly in read-write mode (I understand that after that, my standby will not be standby anymore and that I will have to recreate my standby database).
    Thanks,
    Mat

    Hello,
    There're features which allows you to open a Standby database in Read/Write mode but for all I know
    it needs Entreprise Edition.
    In Enterprise Edition you can use Logical Standby database. More over, for Physical standby there's
    a way by using flashback database so as to rolling backward the database and avoiding to recreate
    the Standby.
    In Standard Edition I'm afraid that you'll have to recreate your Standby database.
    Best regards,
    Jean-Valentin

  • Recovery with RMAN in case of complete lost of all files

    Hi,
    I am using RMAN in nocatalog mode to backup my databases to tape using the RMAN-Module for Legato.
    I4ve read that in case of loosing all my controlfiles i cannot easily restore the controlfiles.
    Lets assume the following scenario:
    I am performing a daily full backup with RMAN in nocatalog mode. Approx. 2 hours after the completed backup my machine crashes and all files (i.e. OS-Files, Database, Controlfiles) are lost.
    Now I have to reinstall the OS, reinstall Oracle and restore the backup.
    Due to backups made with RMAN in nocatalog mode i have the restore the controlfies prior to restore the database. Metalink says restoring the controlfile from RMAN in nocatalog mode is not that easy.
    Is there any way to restore the controlfile from RMAN in nocatalog mode in case of complete crash ??
    Thanks.
    Ronny.

    RESTORE CONTROLFILE FROM 'filename...' doesn't appear to be supported in 8i.
    What are the options for 8i?.
    I have the backup sets with me from my previous installation before crash which also contains Control files.
    However I am unclear as to how to proceed wit RMAN recovery with those files. There seems to be no way to point RMAN to those backupsets since RMAN apparently reads its information from catalog or the control file in case of nocatalog.
    I think if there is a way to atleast restore the control file from the backup set, RMAN can proceed since it will find all the other backup details there.
    Any help is greatly appreciated.
    thanks
    RP

  • Should the STANDBY database be in NOMOUNT Mode?

    Hi There,
    Just setup DataGuard and want to monitor the primary and standby databases via the grid. However, I can not configure the standby database because the standby database is in NOMOUNT mode. Was I suppose to mount it? If not, how do I configure the standby database with the enterprise manager in NOMOUNT.
    Thanks.
    J

    Jennifer;
    Yes the standby should be in MOUNT mode before apply starts. Or No, to NOMOUNT if you prefer.
    Oracle 11g Data Guard: Grid Control Management
    http://www.databasejournal.com/features/oracle/article.php/3826706/Oracle-11g-Data-Guard-Grid-Control-Management.htm
    Install DataGuard using Oracle Enterprise Manager 10g grid control
    http://dbatips.wordpress.com/2007/02/17/install-dataguard-using-oracle-enterprise-manager-10g-grid-control/
    Manage Your Existing Data Guards with Enterprise Manager Cloud Control
    http://www.gokhanatil.com/2012/04/manage-your-existing-data-guards-with.html
    oracle dataguard setup using enterprise manager grid control 11g
    http://oracleinstall.wordpress.com/2011/08/21/1250/
    Super Good
    http://gavinsoorma.com/2011/03/creating-a-11g-data-guard-physical-standby-database-using-enterprise-manager-grid-control-10-2-0-5-2/
    The oracle document Data Guard Broker 10g Release 1 (10.1) Part Number B10822-01 cover this in detail
    http://docs.oracle.com/cd/B14117_01/server.101/b10822/gui.htm
    OR for 11
    http://docs.oracle.com/cd/B28359_01/server.111/b28295/title.htm
    http://docs.oracle.com/cd/B28359_01/server.111/b28295/toc.htm
    See Starting Up and Shutting Down a Physical Standby Database in the Data Guard Concepts and Administration
    Data Guard Concepts and Administration 11g Release 2 (11.2) E10700-02
    Best Regards
    mseberg
    Edited by: mseberg on Apr 27, 2012 3:22 PM

  • Problem with RMAN incomplete recovery

    Oracle Version: 9i
    Operating System: Windows 2000
    I have a problem with RMAN incomplete recovery until sequence.
    According to my database structure ............
    SQL> SELECT GROUP#,SEQUENCE#,THREAD# FROM V$LOG;
    GROUP# SEQUENCE# THREAD#
    1 14 1
    2 13 1
    3 12 1
    I took the backup of backup of full database using RMAN and i am trying to recover like this:
    RUN
    ALLOCATE CHANNEL C1 TYPE DISK;
    SET UNTIL SEQUENCE 7 THREAD 1;
    RESTORE DATABASE;
    RECOVER DATABASE;
    ALTER DATABASE OPEN RESETLOGS;
    BUT i am getting a message saying there is no backup of DATAFILE 1,2,......10 to restore although my database is in archivelog mode and i took a backup.
    Yachendra

    Please consult v$backup_datafile.
    It will tell you when the file was backed up.
    RMAN will always search for a datafile backup prior to the logsequence or whatever is limiting the incomplete recovery.
    Likely when you made your backup Oracle was already past sequence 7.
    Sybrand Bakker
    Senior Oracle DBA

  • ASA 5510 context base configuration in HA Mode with two different subnet

    Hi
    Please someone help me to configure the Firewall ASA 5510 in context based configuration in HA Mode with two different subnet....
    IP Details are below.....:
    interface Ethernet0/0
    nameif outside
    security-level 0
    ip address 10.10.10.2 255.255.255.0 standby 10.10.10.3
    interface Ethernet0/1
    no nameif
    security-level 0
    no ip address
    interface Ethernet0/1.101
    description INSIDE1
    vlan 101
    nameif INSIDE1
    security-level 90
    ip address 172.22.0.2 255.255.255.0 standby 172.22.0.3
    interface Ethernet0/1.102
    description INSIDE2
    vlan 102
    nameif INSIDE2
    security-level 80
    ip address 172.22.1.2 255.255.255.0 standby 172.22.1.3
    interface Ethernet0/3
    description LAN Failover Interface
    failover
    failover lan unit primary
    failover lan interface FAILOVER Ethernet0/3
    failover replication http
    failover interface ip FAILOVER 192.168.3.1 255.255.255.0 standby 192.168.3.2
    route outside 0.0.0.0 0.0.0.0 10.10.10.1 1

    Hi Sanjeev,
    If it is a context based configuration  that you are doing then, you would need to configure context on the ASA first, you can refer to this document for it:
    http://www.cisco.com/en/US/products/hw/vpndevc/ps2030/products_configuration_example09186a00808d2b63.shtml
    Thanks,
    Varun Rao
    Security Team,
    Cisco TAC

  • Hot Backup with RMAN question.

    Hi all.
    We want to make a full backup with RMAN every night with the db up. Version 9i in archive log mode.
    My question is if with the command:
    backup database plus archivelog delete input format 'MY_FORMAT_STRING';
    will store all the files needed for the recovery in one file or I need to backup some other file or do more actions. The backup will be consistent?
    Regards.

    By using this command you are only taking the backup
    all the database files plus all the archived logs
    needed for point on recovery.
    But still you will have to take the backup of Control
    file and parameter files. Which you do by configuringi think its not
    RMAN> configure controlfile autobackup off
    2> ;
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP OFF;
    new RMAN configuration parameters are successfully stored
    RMAN> backup database
    2> ;
    Starting backup at 28-NOV-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL\ORCL\SYSTEM01.DBF
    input datafile fno=00003 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL\ORCL\SYSAUX01.DBF
    input datafile fno=00002 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL\ORCL\UNDOTBS01.DB
    F
    input datafile fno=00004 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL\ORCL\USERS01.DBF
    input datafile fno=00005 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL\ORCL\DATA.DBF
    channel ORA_DISK_1: starting piece 1 at 28-NOV-07
    channel ORA_DISK_1: finished piece 1 at 28-NOV-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ORCL\BACKUPSET\2007_11_28\O1_MF_
    NNNDF_TAG20071128T151313_3NTHSTK9_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current controlfile in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 28-NOV-07
    channel ORA_DISK_1: finished piece 1 at 28-NOV-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ORCL\BACKUPSET\2007_11_28\O1_MF_
    NCSNF_TAG20071128T151313_3NTHV8S5_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
    Finished backup at 28-NOV-07
    RMAN>backup database backup controlfile as well spfile but its better backup control file separately after backing up the database plus archivelog cause a backup set info within control file which will not be in control file which is just backed up by backup database .
    Khurram
    null

Maybe you are looking for

  • How to manage resource inside JVM8i

    I am writing a Java Stoted Procedures. I encouter an error: The following JDBC error occurred: IoException: End of TNS data channel The source code is : import java.io.*; public class DisBytes { public static void enter1() throws IOException { File i

  • Transferring purchased content from old Iphone 4 to new Iphone 4

    Dear, How to transfer all content from my old Iphone 4 to my new Iphone 4 Thank you Moheesen

  • Can the desktop menu bar be hidden?

    I would like for the menu bar to be hidden until I want to use it, i.e. mouse over it to make it appear.  Can this be done?

  • Process input xml

    Hi, I'm trying to do a simple (BPEL) program that receives a xml message and extracts the data from it. Like: <name> <first>Lara</first> <last>Larissa</last> </name> and I want to extract "Lara" and "Larissa". Help me :)

  • Add New Row to bc4j:table

    Hi, I use BC4J with UIX to render database table into <bc4j:table> , and i prefer to edit and add record from UIX table without going to any other page. So please can any budy help me. Thanks.