Physical standby without ALTER DATABASE FORCE LOGGING

Hi,
Is it possible to use physical standby database without executing ALTER DATABASE FORCE LOGGING on primary side?
Can I use alter tablespace force logginng instead?
I want to have one tablespace with nologging option turned on to reduce redo traffic for some operations.
I can not check this because I don`t have enough servers to build standby configuration.

YuriAP wrote:
Hi,
Is it possible to use physical standby database without executing ALTER DATABASE FORCE LOGGING on primary side?
YES
Can I use alter tablespace force logginng instead?
YES
ALTER TABLESPACE <tablespace name> FORCE LOGGING;
I want to have one tablespace with nologging option turned on to reduce redo traffic for some operations.
I can not check this because I don`t have enough servers to build standby configuration.http://download.oracle.com/docs/cd/B10500_01/server.920/a96521/create.htm#1022863

Similar Messages

  • ORA-02231 error when issue ALTER DATABASE FORCE LOGGING

    Hi,
    Does everybody know why I faced ORA-02231 when issue below command in oracle,
    SQL> ALTER DATABASE FORCE LOGGING;
    ALTER DATABASE FORCE LOGGING
    ERROR at line 1:
    ORA-02231: missing or invalid option to ALTER DATABASE
    SQL> ALTER DATABASE FORCE LOGGING ;
    ALTER DATABASE FORCE LOGGING
    ERROR at line 1:
    ORA-02231: missing or invalid option to ALTER DATABASE
    SQL> ALTER DATABASE FORCE LOGGING
    2
    SQL> ALTER TABLESPACE BIIS FORCE LOGGING
    2 ;
    ALTER TABLESPACE BIIS FORCE LOGGING
    ERROR at line 1:
    ORA-02142: missing or invalid ALTER TABLESPACE option
    I use this oracle version:
    Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
    PL/SQL Release 9.0.1.1.1 - Production
    CORE 9.0.1.1.1 Production
    TNS for 32-bit Windows: Version 9.0.1.1.0 - Production
    NLSRTL Version 9.0.1.1.1 - Production
    Thanks.

    Hi Jaffar,
    After I checked that you are correct.
    I can issue the command without problem in oracle 9i Rel.2.
    Thanks for your information.
    Tarman.

  • Physical standby without dataguard

    Naive question.
    I am going thru metalink note (374069.1) on how to create a physical standby. In that note, they didn't mention data guard stuff. Am I to assume that physical standby without dataguard can be created?
    Thanks.

    It might appears to be easy to create psuedo standy but you will have hardtime to simulate the automatic archive log apply and gap resolve.
    Plus the level of data availability provided by self-managed standby can't come close to Data Guard can offer.
    With Data Guard you can almost get zero data loss between Primary and Standy, depends on your redo logfile size there could be many data in online redo logs.

  • ALTER DATABSE FORCE LOGGING

    hi,
    while creating standby database why should we start the database in force logging mode? what the use of it? what does it do?
    With Regards
    Boo

    Synchorinization between primary and secondary database is done through archive logs. It would be safe to force primary database to log everything, so that it reflects to secondary database. That is the reason we have to force logging.

  • Steps To Create Physical Standby Database In Windows 7

    Hi All,
    I want to create a physical standby database in my windows 7 system. I have created one service stdby in my machine with all your help and now I need your help to configure standby configuration.
    I am using Oracle 10G version 10.2.0.1.0.
    Please suggest.
    Regards,
    Arijit

    [on primary]
    step-1 check if archiving is enable
    SQL> archive log list;
    Database log mode              Archive Mode
    Automatic archival             Enabled
    Archive destination            /PGHProdDB/archive/paceview/
    Oldest online log sequence     52
    Next log sequence to archive   54
    Current log sequence           54
    step-2
    sqlplus> ALTER DATABASE force logging;step-3
    connect to rman
    take an full backup
    RMAN RUN {
    allocate channel d1 type disk;
    backup format '/u01/backups/PRIMARY/df_t%t_s%s_p%p' database;
    sql 'alter system archive log current';
    backup format '/u01/backups/PRIMARY/al_t%t_s%s_p%p' archivelog all;
    backup current controlfile for standby format '/u01/backups/PRIMARY/sb_t%t_s%s_p%p';
    release channel d1;
    step-4
    now copying initpfile,pwdfile on appropriate destination and rename it.
    step 5
    now create listener on standby db side::
    and restart it by ----
    lsnrctl reload
    and login to primary db and register listener information in tnsfile.ora---
    standby=
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.13)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = standby)Step 6 Startup the standby
    SQL> startup nomount pfile='/u01/app/oracle/admin/PRIMARY/pfile/init.ora';step 7
    though our primary db is ready to connect with standby db
    [oracle@PGH-DB ~]$ rman target / auxiliary sys/tiger@standby
    Recovery Manager: Release 10.2.0.4.0 - Production on Mon Aug 6 12:16:08 2012
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    connected to target database: primary (DBID=2092349485)
    connected to auxiliary database (not started)
    RMAN> run {
    allocate channel C1 device type disk;
    allocate auxiliary channel C2 device type disk;
    duplicate target database for standby nofilenamecheck;
    }When this completes
    Make sure you shutdown the database and then switch the ORACLE_SID=STANDBY
    when you perform that much let me know :)
    Edited by: abdul_ora on Sep 12, 2012 11:37 AM

  • Physical standby database error

    Hi,
    I try to create physical standby in my local machine using oracle 10g
    version :10.2.0.1.0
    Os: windows xp.
    I followed steps and parameter files
    on primary :-
    sql>alter database force logging;
    orcl.__db_cache_size=155189248
    orcl.__java_pool_size=4194304
    orcl.__large_pool_size=4194304
    orcl.__shared_pool_size=75497472
    orcl.__streams_pool_size=0
    *.audit_file_dest='D:\oracle\product\10.2.0/admin/orcl/adump'
    *.background_dump_dest='D:\oracle\product\10.2.0/admin/orcl/bdump'
    *.compatible='10.2.0.1.0'
    *.control_files='D:\oracle\product\10.2.0\oradata\orcl\control01.ctl','D:\oracl
    e\product\10.2.0\oradata\orcl\control02.ctl','D:\oracle\product\10.2.0\orad
    ata\orcl\control03.ctl'
    *.core_dump_dest='D:\oracle\product\10.2.0/admin/orcl/cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='orcl'
    *.db_unique_name='orcl'
    *.log_archive_config='DG_CONFIG=(orcl,stby)'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
    *.job_queue_processes=10
    *.open_cursors=300
    *.pga_aggregate_target=80740352
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=244318208
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='D:\oracle\product\10.2.0/admin/orcl/udump'
    *.log_archive_dest_1='LOCATION=D:\oracle\archive
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=orcl'
    *.log_archive_dest_2='SERVICE=stby LGWR ASYNC
    VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=stby'
    *.log_archive_format=%t_%s_%r.arc
    *.log_archive_dest_state_1=ENABLE
    *.log_archive_dest_state_2=ENABLE
    On standby
    orcl.__db_cache_size=155189248
    orcl.__java_pool_size=4194304
    orcl.__large_pool_size=4194304
    orcl.__shared_pool_size=75497472
    orcl.__streams_pool_size=0
    *.audit_file_dest='D:\stby\adump'
    *.background_dump_dest='D:\stby\bdump'
    *.compatible='10.2.0.1.0'
    *.control_files='D:\stby\ctrl.ctl'
    *.core_dump_dest='D:\stby\cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='orcl'
    *.db_unique_name='stby'
    *.log_archive_config='DG_CONFIG=(orcl,stby)'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
    *.job_queue_processes=10
    *.open_cursors=300
    *.pga_aggregate_target=80740352
    *.processes=150
    *.remote_login_passwordfile='NONE'
    *.sga_target=244318208
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='D:\stby\udump'
    *.db_file_name_convert='D:\oracle\product\10.2.0\oradata\orcl','D:\stby'
    *.log_file_name_convert='D:\oracle\product\10.2.0\oradata\orcl','D:\stby'
    *.log_archive_dest_1='LOCATION=D:\oracle\archive
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=stby'
    *.log_archive_dest_2='SERVICE=orcl LGWR ASYNC
    VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
    DB_UNIQUE_NAME=orcl'
    *.standby_archive_dest='D:\stby\archive'
    *.log_archive_dest_state_1=ENABLE
    *.log_archive_dest_state_2=ENABLE
    *.standby_file_management='AUTO'
    *.fal_server='orcl'
    *.fal_client='stby'
    SQL> conn / as sysdba
    Connected to an idle instance.
    SQL> startup pfile=D:\stby\initstby.ora nomount;
    ORACLE instance started.
    Total System Global Area 247463936 bytes
    Fixed Size 1248332 bytes
    Variable Size 79692724 bytes
    Database Buffers 159383552 bytes
    Redo Buffers 7139328 bytes
    SQL> alter database mount standby database;
    Database altered.
    SQL> alter database recover managed standby database disconnect from session;
    Database altered.
    SQL> alter database open read only;
    alter database open read only
    ERROR at line 1:
    ORA-01154: database busy. Open, close, mount, and dismount not allowed now
    SQL> recover managed standby database cancel;
    Media recovery complete.
    SQL> alter database open read only;
    Database altered.
    SQL> select sequence#,first_time,next_time from v$archived_log order by sequence
    no rows selected
    No archive s generated in standby ..
    what i mistake.
    Reagrds
    S.Azar

    Anand... wrote:
    Firstly you can use "*select sequence#,first_time,next_time from v$archived_log order by sequence#;"* command in mount stage itself.No need to open the standby database in ready only mode.
    No rows selected in mount stage also.
    The V$ARCHIVED_LOG fixed view on the physical standby database shows all the archived redo log files received from the primary database.
    sql> select * from v$archived_log;
    no rows selected.
    and No archived logs received from primary database to physical standby . i think here i wrongly configure parameter file.
    sql> RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION; -- > start Redo Apply
    When you do log switch on the primary are the archive logs getting transferred to the standby database???Is there some error in the alert log file in the primary database.
    No..
    >
    [http://advait.wordpress.com/2007/06/12/setting-up-oracle-dataguard-for-10g/]
    Regards
    S.Azar

  • Problem While Creating Physical Standby Using RMAN

    Hi Guru's
    May be this incidence you all face while creating physical standby DB. I try to create Physical standby database Using RMAN Duplicate Command from one server
    (pri machine) to Standby Machine.
    The steps i followed to create the above are as follows:
    Step 1:- Enable Forced Logging
    SQL> ALTER DATABASE FORCE LOGGING;
    Step 2:- Configure a Standby Redo Log
    SQL> ALTER DATABASE ADD STANDBY LOGFILE GROUP 10
      2> ('/oracle/dbs/log1c.rdo','/oracle/dbs/log2c.rdo') SIZE 500M;
    Step 3:- Set Primary Database Initialization Parameters
    SQL> create pfile='?/dbs/pfileorcl.ora' from spfile;
    Edit the pfile to add the standby parameters, here shown:
    db_unique_name='orcl'
    LOG_ARCHIVE_CONFIG='DG_CONFIG=(orcl,orcldr)'
    LOG_ARCHIVE_DEST_2='SERVICE=orcldr LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=orcldr'
    *.fal_server=orcldr
    *.fal_client=orcl
    *.standby_file_management=auto
    Step 4:- Enable Archiving
    SQL> SHUTDOWN IMMEDIATE;
    SQL> STARTUP MOUNT;
    SQL> ALTER DATABASE ARCHIVELOG;
    SQL> ALTER DATABASE OPEN;
    Step 5:- Setup tnsnames for standby database
    This should be done on primary database by altering tnsnames.ora or using NetCA command, and create it by the name orcldr
    orcldr =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = standby-svr)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcldr)
    Step 6:- Backup database and copy it to standby
    This backup script should be run on primary and copied to standby on the same mount point, running this scripts using RMAN, all files under /rman_backup should be copied to /rman_backup on standby server.
    $rman target /
    RMAN> run
    allocate channel c1 type disk;
    allocate channel c2 type disk;
    backup database format '/rman_backup/%U';
    backup archivelog all format '/rman_backup /%U';
    backup current controlfile for standby format '/rman_backup/%U';
    Step 7:- Standby Database Steps
    Installing Oracle Software
    This should be same release and patchset with exactly same ORACLE_HOME mount point.
    Setting Up listener
    Create and start a listener on standby database using NetCA, or creating listener.ora in $ORACLE_HOME/network/admin
    LISTENER =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = standby-svr)(PORT = 1521))
    Step 8:- Set Standby Database Initialization Parameters
    Copying the pfile created in primary database and renames it to initorcldr.ora, and changes these parameters:
    db_unique_name='orcldr'
    LOG_ARCHIVE_CONFIG='DG_CONFIG=(orcldr,orcl)'
    LOG_ARCHIVE_DEST_2='SERVICE=orcl LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=orcl'
    *.fal_server=orcl
    *.fal_client=orcldr
    *.LOG_ARCHIVE_DEST_STATE_2='ENABLE'
    Step 9:- Setup tnsnames for primary database
    This should be done on standby database by altering tnsnames.ora or using NetCA command, and create it by the name orcl
    orcl =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = primary-svr)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    Step 10:- Copy a Password File
    A password file must be created on the Primary and copied over to the Standby site. The sys password must be identical on both sites. Copy orapworcl to $ORACLE_HOME/dbs and rename file to orapworcldr
    Step 11:- Create mount points for Oracle
    Mount point should be created on standby server with the same convention used in primary, this includes the location for controlfiles, redo logs, datafiles, archive log destination and alert logs.
    $ mkdir -p /u01/app/oracle/oradata/orcl/
    $ mkdir -p /u01/app/oracle/flash_recovery_area/
    $ mkdir -p /u01/app/oracle/admin/orcl/adump
    $ mkdir -p /u01/app/oracle/admin/orcl/bdump
    $ mkdir -p /u01/app/oracle/admin/orcl/cdump
    $ mkdir -p /u01/app/oracle/admin/orcl/udump
    Step 12:- Use RMAN to restore backup and setup standby
    Connect to RMAN and execute the following command to create standby database, this should be performed on standby server after copying backup and setting tnsnames.
    $ export ORACLE_SID=orcldr
    $ rman target sys/tiger@orcl auxiliary sys/tiger@orcldr
    RMAN> duplicate target database for standby dorecover;
    Here i am getting problem as :
    While trying to connect to traget database and auxiliary database i notice that when RMAN is connect to both databases it shows
    orcl ( DBID xyz)
    orcl (not mounted)
    Here in my view the second database must be standby database name or auxiiary db name is standby db name which in my case is orcldr
    after this issue i am facing the second issues as :
    in command
    duplicate target database for standby dorecover;
    After modifying the command to
    RMAN> duplicate target database to "standby";
    rman-05520 database name mismatch
    Can u please let me know where i am mistaking

    ok for pri:
    db_name=orcl
    db_unique_name=orcl
    for standby:
    db_name=orcl 
    db_unique_name=sbyorcl ( i change orcldr to sbyorcl later)for new testing
    but now what i am getting on
      Verify connectivity
    On Primary Server:
    C:\> lsnrctl stop LISTENERI (working fine)
    C:\> lsnrctl start LISTENER (working fine)
    C:\> tnsping orcl (working fine)
    C:\> tnsping sbyorcl (working fine)
    C:\> sqlplus sys/xxxxx@orcl (working fine)
    C:\> sqlplus sys/xxxxx@sbyorcl (not working fine)
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    On Standby Server:
    C:\>lsnrctl stop LISTENER
    C:\> lsnrctl start LISTENER
    C:\> tnsping orcl
    C:\> tnsping sbyorcl
    C:\> sqlplus sys/xxxxx@orcl
    C:\> sqlplus sys/xxxxx@sbyorcl
    My listner file for pri :-
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = orcl)
          (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
          (SID_NAME = ORCL)
    LISTENER =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.202.129)(PORT = 1521))
    tnsnames.ora file on pri is:
    sbyorcl =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.202.128)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = sbyorcl)
    ORCL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.202.129)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = orcl)
    and listener file on standby :
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
          (PROGRAM = extproc)
        (SID_DESC =
          (GLOBAL_DBNAME = orcl)
          (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
          (SID_NAME = orcl)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.202.128)(PORT = 1521))
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    and tnsnames.ora file on standby:
    ORCL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.202.128)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = orcl)
    sbyorcl =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.202.129)(PORT = 1521))
    (CONNECT_DATA =
           SERVICE_NAME = sbyorcl)
    EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
    Kinldy guide me where i am mistaking it's urgent

  • Ora-02331 error - while trying to force logging

    Hi friends,
    i am trying to configure the physical standby database and i am following this documentation http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm.
    when i am trying to do the force logging i am getting the following error.
    SQL> alter database force logging;
    alter database force logging
    ERROR at line 1:
    ORA-02231: missing or invalid option to ALTER DATABASE
    Can anyone please tell me why it's happening?
    Thanks

    Which database are you doing this on? Supposed to run
    it on the primary. I have only one database i.e primary db and trying to set up physical standby db.
    Plus, which version of Oracle? I
    see what the document link uses, but that doesn't
    mean it is the version you are using.
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
    PL/SQL Release 9.0.1.1.1 - Production
    CORE 9.0.1.1.1 Production
    TNS for 32-bit Windows: Version 9.0.1.1.0 - Production
    NLSRTL Version 9.0.1.1.1 - Production
    Can you pls guide me the right way to proceed furthur.

  • Not dose Force logging.

    Hi,
    i am trying to create physical standby database.while giving command 'ALTER DATABASE FORCE LOGGING' it gives error like missing or invalid option to alter database.
    Pls help.

    Hi,
    Pls find the output.
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
    PL/SQL Release 9.0.1.1.1 - Production
    CORE 9.0.1.1.1 Production
    TNS for 32-bit Windows: Version 9.0.1.1.0 - Production
    NLSRTL Version 9.0.1.1.1 - Production
    SQL> alter database force logging;
    alter database force logging
    ERROR at line 1:
    ORA-02231: missing or invalid option to ALTER DATABASE
    SQL>

  • Physical standby database

    My physical standby database is on Win 2003 server, Oracle version is 9.2.0.3.
    Windows team asked me to shutdown the standby database and i did the same. After server reboot i put the standby in managed recovery mode but logs were not shipping even though i gave log switches at the primary side.
    I executed the below command
    startup nomount
    alter database mount standby database;
    alter database recover managed standby database disconnect from session;
    I again bounced the standby database but this time i gave
    recover managed standby database disconnect from session;
    Instead of alter database recover managed...
    Below are the logs from alert log file of the primary database
    ARC1: Beginning to archive log 4 thread 1 sequence 19165
    Creating archive destination LOG_ARCHIVE_DEST_1: 'G:\ORACLE\ORADATA\ALERTSP\ARCHIVE\ALERTSPT001S19165.DBF'
    ARC1: Completed archiving log 4 thread 1 sequence 19165
    Fri Nov 23 13:06:08 2007
    ARC0: Begin FAL archive (thread 1 sequence 19164 destination T_STANDBYALERTSP)
    Creating archive destination LOG_ARCHIVE_DEST_2: 'T_STANDBYALERTSP'
    ARC0: Complete FAL archive (thread 1 sequence 19164 destination T_STANDBYALERTSP)
    Fri Nov 23 13:06:12 2007
    ARC1: Begin FAL archive (thread 1 sequence 19165 destination T_STANDBYALERTSP)
    Creating archive destination LOG_ARCHIVE_DEST_2: 'T_STANDBYALERTSP'
    ARC1: Complete FAL archive (thread 1 sequence 19165 destination T_STANDBYALERTSP)
    could some one let me know the difference between specifying alter database and not specifying alter database???

    There's no difference, two ways to reach the same target. 'Recover' (without alter database) is listed as pure sqlplus statement and 'alter database recover' an option of the 'alter database' statement.
    Werner

  • How to apply Oracle patch when physical standby database in place

    Dear All,
    I want to apply Oracle patchset 8 on 10.2.0.5 when physical standby database in place. What are the steps for Primary site and for standby site.
    Thanks in advance
    Kamran Laeeq

    Hi Kamran,
    You will not upgrade or patch the standby database by importing offline redologs. On the contrary, there is a procedure to do this. Please note that you will not transitiate the role from standby to primary or startup the database. You will just startup the database by executing "startup mount" and "startup upgrade", during the upgrade. It means that you will not change database role standby to primary and you will be able to continue to the log shipment after the respective upgrade.
    But, it is very important that you should stop the log shipment and apply all the offline redologs, before the upgrade. Technically, you can import offline redologs after the upgrade, by changing "compatibility" parameter in oracle, but regarding to my experiences it may cause some problems after you transitiate the role from standby to primary.
    In short;
    In order to stop log shipment, at the primary site;
    alter system set log_archive_dest_state_2=defer;
    In order to import all the offline redologs without a delay, at the standby site;
    alter database recover managed standby database cancel;
    alter database recover managed standby database nodelay disconnect from session;
    I hope that I clarified the issue,
    Best regards,
    Orkun Gedik

  • Physical Standby Online Redo log  files,

    Hi,
    I'm trying to create a physical standby database (10.2.0.3). I'm a little confused about the requirement for online redo logs on the standby.
    in my standby alert log I get the following when I issue:
    SQL> alter database recover managed standby database disconnect from session
    "ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '/appl/oradata/prod/prod_1_redo_01_02.log'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3"
    /appl/oradata/prod/prod_1_redo_01_02.log is the path to the location of the online redo logs on the production system. This file does not exist on the standby filesystem so the error is correct.
    I assume that it gets this information from the standby control file I created on the production system and copied over to the standby.
    Do I need to copy the online redo logs from the primary over to the standby site or do I need to create online redo logs on the standby?
    Does the standby need to have redo log files?
    I'm not talking about 'standby log files' of the type created using 'alter database add standby log file'. I've not got that far yet.
    I just need to establish if a physical standby requires online redo log files?
    Thanks in advance,
    user234564

    I wanted to update this thread since I've been dealing with the exact same errors. The basic question is: "does a physical standby need the online redo logs?"
    Answer: Not really, until one wants to switchover or failover (and become a primary database). Furthermore, whenever the MRP process is started, Oracle prepares for a possible switchover/failover by "clearing" the online redo logs (MetaLink note# 352879.1). It is not a big deal, since Oracle will build the actual redo files when the "alter database open resetlogs" is accomplished during a "role transition."
    In our situation, we have decided to use our standby for nightly exports. We stop MRP, open the database read-only, then restart MRP. We built these standby DBs with RMAN. The RMAN duplicate process will not build the online redo log files until the database is opened for read/write (with resetlogs). However, we haven't had a need for read/write (i.e. a switchover).
    Thus, every morning we have been getting the same errors that "user234564" posted above. At first the errors seemed scary, then we realized they were just a nusiance. In order to clean things up, all I did was just "cp" our stanby redo logs (SRL) into our online redo directories ensuring the names matched what was in v$logfile. When I restarted MRP, the alert log clearly showed Oracle clearing these "newly found" online redo logs.

  • Alter database recover to logical standby is hanging

    Hi,
    when I try to convert my physical standby to logical standby using
    alter database recover to logical standby STANDBYL;
    the command just hangs
    I have seen the usual hit on this which is to create the Redo Dictionary on the Primary using
    execute dbms_logstdby.build;
    which I did but the alter database command still keeps hanging on my Standby
    Any ideas,
    thanks
    Jim

    Hello;
    Does your Standby alert log have any lines like this:
    RECOVER TO LOGICAL ...
    If yes look for the message ( after this )
    Starting datafile conversion
    and post any errors or warnings you have.
    Best Regards
    mseberg

  • "Alter Database" command  in Database Standby

    Hi community.
    I have the following situation:
    I've ASE 15.7 CE SP121 in two enviroments: System Production and System Standby. The Standby is maintained with load of dump transaction generated in production every 10 minutes.
    Now I need increase a database in data portion in 100GB. I know that I must make this in each enviroment (Production and Standby), also I know that I can execute alter database command while the database in the System Standby is offline.
    The process that I make is:
    Stop dump transaction in production.
    Stop Load transaction in Standby.
    Alter database "on" in Production. Result is Sucessfull.
    Alter database "on" in Standby. Result is error:
         In this step, I receipt the following error:
    The database DBUSER is in the middle of a load sequence. Altering it will not let you load other transaction dumps in the dump-set. If you still prefer to do it please use OVERRIDE option.
    In this situation I have that put online database and increase the size. Obiously, I can't load more dump transaction and I should generate a full dump database in production, load this dump in standby and load dump transations after to load of dump database (full).
    I simulate my situation in a enviorement of test with pubs3 and then of load the last dump transaction, I can do alter database  in my DB standby without problems and after of this process I continue load dump transaction.
    I don't understand why receipt this error?
    Any recomendation?
    Thanks!
    Cristian Lopez.

    I can't recall trying to extend an offline database so what I'd probably do (short of waiting for a definitive answer from someone @ SAP/Sybase ... either here in the forum or from tech support) ...
    1 - Assuming you have to perform a full database dump/load after issuing 'alter database', decide on a good time to perform the full database dump/load and then ...
    2 - follow your steps (above) and then try restarting the log dump/load and ...
    3a - if the log dump/load succeeds ... you've got nothing else to do
    3b - if the log dump/load fails, then proceed with the full database dump/load

  • ERROR in creating a Physical Standby Database

    Hello all,
    I am using a Windows Vista O/S and Oracle 10g Enterprise Edition. Both my primary and standby are on the same host. Created standby instance using oradim.
    I have followed instruction in the documentation and created a manual standby database.
    primary database is 'orcl'
    standby database is 'stby'
    My primary archives is not being copied to the the stby location as confirmed by an error shown:
    SQL> select dest_name, status from v$archive_dest_status
    DEST_NAME
    STATUS
    LOG_ARCHIVE_DEST_1
    VALID
    LOG_ARCHIVE_DEST_2
    ERROR
    Also my standby does not open in read only mode, error:
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION
    ERROR at line 1:
    ORA-01153: an incompatible media recovery is active
    SQL> ALTER DATABASE open read only;
    ALTER DATABASE open read only
    ERROR at line 1:
    ORA-01154: database busy. Open, close, mount, and dismount not allowed now
    I have copied both my prim and stby init.ora here for your reference
    PRIMARY INIT
    ============================================
    orcl.__db_cache_size=394264576
    orcl.__java_pool_size=20971520
    orcl.__large_pool_size=4194304
    orcl.__shared_pool_size=184549376
    orcl.__streams_pool_size=0
    *.audit_file_dest='E:\oracle\product\10.2.0\admin\orcl\adump'
    *.background_dump_dest='E:\oracle\product\10.2.0\admin\orcl\bdump'
    *.compatible='10.2.0.3.0'
    *.control_files='E:\oracle\product\10.2.0\oradata\orcl\control01.ctl'
    *.core_dump_dest='E:\oracle\product\10.2.0\admin\orcl\cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='orcl'
    *.db_unique_name=orcl
    *.db_recovery_file_dest_size=2147483648
    *.db_recovery_file_dest='E:\oracle\product\10.2.0\flash_recovery_area'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
    *.job_queue_processes=10
    *.nls_language='ENGLISH'
    *.nls_territory='UNITED KINGDOM'
    *.open_cursors=300
    *.pga_aggregate_target=203423744
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=611319808
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='E:\oracle\product\10.2.0\admin\orcl\udump'
    *.standby_file_management=AUTO
    *.log_archive_dest_1='location=E:\oracle\product\10.2.0\flash_recovery_area\orcl\archivelog valid_for=(all_logfiles,primary_role) db_unique_name=orcl'
    *.log_archive_dest_state_1='ENABLE'
    *.log_archive_dest_2='SERVICE=stby LGWR ASYNC valid_for=(online_logfiles,primary_role) db_unique_name=stby'
    *.log_archive_dest_state_2='ENABLE'
    *.log_archive_config='DG_CONFIG=(orcl,stby)'
    *.db_file_name_convert='orcl','stby'
    *.fal_client='orcl'
    *.fal_server='stby'
    *.db_file_name_convert='E:\oracle\product\10.2.0\oradata\stby', 'E:\oracle\product\10.2.0\oradata\orcl'
    *.log_file_name_convert='E:\oracle\product\10.2.0\oradata\stby', 'E:\oracle\product\10.2.0\oradata\orcl'
    *.standby_file_management=AUTO
    ======================================
    STANDBY INIT.ora
    stby.__db_cache_size=423624704
    stby.__java_pool_size=4194304
    tby.__large_pool_size=4194304
    stby.__large_pool_size=4194304
    stby.__shared_pool_size=171966464
    stby.__streams_pool_size=0
    *.audit_file_dest='E:\oracle\product\10.2.0\admin\stby\adump'
    *.background_dump_dest='E:\oracle\product\10.2.0\admin\stby\bdump'
    *.compatible='10.2.0.3.0'
    *.control_files='E:\oracle\product\10.2.0\oradata\stby\CONTROL_SB01.CTL'
    *.core_dump_dest='E:\oracle\product\10.2.0\admin\stby\cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_file_name_convert='orcl','stby'
    *.db_name='orcl'
    *.db_recovery_file_dest_size=2147483648
    *.db_recovery_file_dest='E:\oracle\product\10.2.0\flash_recovery_area\STBY'
    *.db_unique_name='stby'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
    *.fal_client='stby'
    *.fal_server='orcl'
    *.job_queue_processes=10
    *.log_archive_config='DG_CONFIG=(orcl,stby)'
    *.log_archive_dest_1='location=E:\oracle\product\10.2.0\flash_recovery_area\stby valid_for=(all_logfiles,primary_role) db_unique_name=stby'
    *.log_archive_dest_2='SERVICE=stby LGWR ASYNC valid_for=(online_logfiles,primary_role) db_unique_name=orcl'
    *.log_archive_dest_state_1='ENABLE'
    *.log_archive_dest_state_2='ENABLE'
    *.log_file_name_convert='E:\oracle\product\10.2.0\oradata\orcl','E:\oracle\product\10.2.0\oradata\stby'
    *.nls_language='ENGLISH'
    *.nls_territory='UNITED KINGDOM'
    *.open_cursors=300
    *.pga_aggregate_target=203423744
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=611319808
    *.standby_archive_dest='USE_DB_RECOVERY_FILE_DEST'
    *.standby_file_management='AUTO'
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='E:\oracle\product\10.2.0\admin\stby\udump'
    =================================================
    Any help would be much appreciated. Apologies for my ignorance!
    Thanks!
    null
    null

    OK that solves part of the problem.
    Now this is very strange error I am getting. The path it looks to recover from archive is not right, it should point as per my actual archive log dest. See below.
    Standby:
    =================
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-16004: backup database requires recovery
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\STBY\SYSTEM01.DBF'
    SQL> recover standby database until cancel;
    ORA-00279: change 619067 generated at 06/22/2008 13:20:14 needed for thread 1
    ORA-00289: suggestion :
    E:\ORACLE\PRODUCT\10.2.0\DB_1\RDBMS\ARC00006_0658028298.001
    ORA-00280: change 619067 for thread 1 is in sequence #6
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00308: cannot open archived log
    'E:\ORACLE\PRODUCT\10.2.0\DB_1\RDBMS\ARC00006_0658028298.001'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\STBY\SYSTEM01.DBF'
    ==================================================
    Why is not pointing to the destination below, where the above archives reside??
    =====================================
    SQL> archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination E:\oracle\product\10.2.0\flash_recovery_area\stby
    Oldest online log sequence 12
    Next log sequence to archive 0
    Current log sequence 14
    =================

Maybe you are looking for