Creating Logical Standby, DBMS_LOGSTDBY.BUILD; Hangs on Primary..

My two node RAC database Primary hangs upon executing SQL> exec DBMS_LOGSTDBY.BUILD; when creating a Logical Standby. I have stopped all the recovery processes on the Physical Standby. I have also taken down the instances on the RAC apart from the one I'm working on. Additionally not much info in the alert log...
Logminer Bld: Build started
Wed Jan 23 06:01:57 2013
ALTER SYSTEM SWITCH ALL LOGFILE start (UDSRED1)
Wed Jan 23 06:01:57 2013
ALTER SYSTEM SWITCH ALL LOGFILE complete (UDSRED1)
Wed Jan 23 06:01:57 2013
Thread 1 advanced to log sequence 2323 (LGWR switch)
Current log# 2 seq# 2323 mem# 0: /data03/oracle/oradata/UDSRED/redo02.rdo
Wed Jan 23 06:01:57 2013
Wed Jan 23 06:01:57 2013
Logminer Bld: Lockdown Complete. DB_TXN_SCN is 2548 1551493736
Wed Jan 23 06:01:57 2013
LNS: Standby redo logfile selected for thread 1 sequence 2323 for destination LOG_ARCHIVE_DEST_2
Wed Jan 23 06:01:57 2013
LNS: Standby redo logfile selected for thread 1 sequence 2323 for destination LOG_ARCHIVE_DEST_3
Wed Jan 23 06:01:59 2013
ALTER SYSTEM ARCHIVE LOG
Wed Jan 23 06:01:59 2013
Thread 1 advanced to log sequence 2324 (LGWR switch)
Current log# 3 seq# 2324 mem# 0: /data03/oracle/oradata/UDSRED/redo03.rdo
Wed Jan 23 06:01:59 2013
LNS: Standby redo logfile selected for thread 1 sequence 2324 for destination LOG_ARCHIVE_DEST_3
Wed Jan 23 06:01:59 2013
LNS: Standby redo logfile selected for thread 1 sequence 2324 for destination LOG_ARCHIVE_DEST_2
Wed Jan 23 06:02:00 2013
Wed Jan 23 06:02:00 2013
Logminer Bld: Done
Edited by: Imran on Jan 23, 2013 2:10 PM

Imran,
The information from alert log file is not sufficient.
Can you log switch on primary and monitor whether it is archiving in standby or not.
and you can monitor the changes in "v$managed_standby"
Also check for the errors using "v$dataguard_status"
SQL> select error_cdoe, message, timestamp from v$dataguard_status where dest_id=<n>;

Similar Messages

  • How to create logical standby database without using Oracle Grid Control

    Hi All,
    I want to create Logical standby database on 11gr2 on RHEL 5 without using oracle Grid Control.
    I already have a primary database as well as physical standby database.
    What i want to create a logical standby database as well on the same machine where physical standby database is running.
    So anyone of you help me out to do that
    Thanks in advance

    Hi,
    Creating a Logical Standby Database
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ls.htm#SBYDB00300
    Regards,
    Tom

  • Create logical standby.

    Hi.
    I've created physical standby database on the same machine.
    Standby apply archivelogs.
    I strugle with convert physical standby into logical one.
    When I try create controlfile for logical get:
    SYS@stb>ALTER DATABASE CREATE LOGICAL STANDBY CONTROLFILE AS '/tmp/stbl.ctl';
    ALTER DATABASE CREATE LOGICAL STANDBY CONTROLFILE AS '/tmp/stbl.ctl'
    ERROR at line 1:
    ORA-06550: line 1, column 36:
    PLS-00201: identifier 'DBMS_LOGMNR_D.STORE_IN_REDO_LOGS' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    pls

    FEDORA 6 & ORACLE 10.2.0
    alert_stb.log:
    alter database start logical standby apply
    Wed Jun 17 22:46:58 2009
    ALTER DATABASE START LOGICAL STANDBY APPLY (stb)
    Wed Jun 17 22:46:58 2009
    No optional part
    Attempt to start background Logical Standby process
    LSP0 started with pid=22, OS id=4156
    Wed Jun 17 22:46:59 2009
    Completed: alter database start logical standby apply
    Wed Jun 17 22:47:01 2009
    LOGSTDBY status: ORA-16111: log mining and apply setting up
    Wed Jun 17 22:47:01 2009
    LOGMINER: Parameters summary for session# = 1
    LOGMINER: Number of processes = 3, Transaction Chunk Size = 201
    LOGMINER: Memory Size = 30M, Checkpoint interval = 150M
    LOGMINER: session# = 1, reader process P000 started with pid=23 OS id=4158
    LOGMINER: session# = 1, builder process P001 started with pid=24 OS id=4160
    LOGMINER: session# = 1, preparer process P002 started with pid=25 OS id=4162
    Wed Jun 17 22:47:02 2009
    LOGMINER: Begin mining logfile: /u01/app/oracle/flash_recovery_area/STB/archivelog_3/1_3_689731882.arc
    Wed Jun 17 22:47:02 2009
    LOGMINER: Turning ON Log Auto Delete
    Wed Jun 17 22:47:02 2009
    LOGMINER: End mining logfile: /u01/app/oracle/flash_recovery_area/STB/archivelog_3/1_3_689731882.arc
    LOGSTDBY Analyzer process P003 started with pid=26 OS id=4164
    LOGSTDBY Apply process P008 started with pid=31 OS id=4174
    LOGSTDBY Apply process P007 started with pid=30 OS id=4172
    LOGSTDBY Apply process P004 started with pid=27 OS id=4166
    LOGSTDBY Apply process P006 started with pid=29 OS id=4170
    LOGSTDBY Apply process P005 started with pid=28 OS id=4168

  • How to create logical standby database?

    Hi,
    can i created logical standby database without creating physical stanby database? is it possible?
    Thanks,

    Hi,
    Creating a Logical Standby Database
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ls.htm#SBYDB00300
    Regards,
    Tom

  • Add new datafile to logical standby database but not in primary

    Hi,
    Is it ok to add a new datafile to the SYSAUX tablespace on the logical standby database but not on primary? We are running out of disk space on the partition where SYSAUX01.dbf resides so we want to add a new SYSAUX02.dbf in another partition which has space. but this will only be on the logical standby not on primary, there is still lots of space in primary. standby_file_management is MANUAL and this is LOGICAL STANDBY not PHYSICAL.
    Is this possible or where there be any issues?
    Thanks.

    Logical Standby can differ from Primary, it can have extra tablespaces, datafiles, tables, indexes, users ...
    HTH
    Enrique

  • Creating logical standby from non primary backup

    We want to test creation for logical standby in our test enviroment.
    Here is the plan we are
    1. Backup Prod.
    2. Restore Test Primary (T1) and Restore test standby (T2) from Prod backup.
    3. Setup standby between T1 and T2.
    Plan is to save the time for backup and restore process. I have not doe it before. Will this process work or T2 restore needs to be done from backup of T1 as that would be primary.
    Manuj

    969257 wrote:
    Thanks Tobi.
    I will try this. The test system is very large about 16TB and the backup/restore process takes days. I just wanted to be sure if the same backup would work for creating the primary and standby at the same time.
    So in this case, I will just have to restore from backup and move forward with archivelogs. Will I have to use the control-file from Prod or from T1.
    Use the control file from T1(test primary)
    I would like to use the backup COPY.
    General steps to follow:
    1. restore T1 as the (test)primary DB.
    2. recover/apply the T1 using the redo log.
    3. restore T2 but do not apply redo to prevent it from divergence from T1. i mean, let T2 scn be behind T1 scn.
    4. following the general steps as it apply to you in preparing and creating primary and standby DB
    http://docs.oracle.com/cd/B19306_01/server.102/b14239/create_ps.htm
    5. make sure T2 can receive and apply redo data from T1
    6.covert T2 to logical standby DB
    http://docs.oracle.com/cd/B19306_01/server.102/b14239/create_ls.htm
    HTH
    Tobi

  • Creating logical standby database

    Hi all,
    10.2.0.1
    Following this link
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ls.htm
    Where do i need to issue these statements:
    SQL> EXECUTE DBMS_LOGSTDBY.BUILD;
    SQL> ALTER DATABASE RECOVER TO LOGICAL STANDBY db_name;
    on physical standby or primary database.
    I issued the first stament on primary and second on physical standby .
    IN the alert log of standby,i have the following entries.
    Wed Jan 20 15:34:28 2010
    Converting standby mount to primary mount.
    Wed Jan 20 15:34:28 2010
    ACTIVATE STANDBY: Complete - Database mounted as primary (treasury)
    *** DBNEWID utility started ***
    DBID will be changed from 306589979 to new DBID of 330710340 for database
    .........................I am trying to create a logical standby database after creating a physical standby database.
    It seems standby changed to primary which was not desired.
    Thanks

    Not tried myself, but you might want to have a look at this URL.
    It appears to suggest that you need to change names of datafiles as well as value db_name explcitly on standby.

  • Create logical standby from existing physical standby on 9i

    I have physical standby database 9i running.
    I want to try to convert the physical standby to logical standby. i follow the step by step in metalink document no. 748595.1
    But I cannot do the 6th step:
    6. Issue command to switch physical standby to logical standby after changing db_name in pfile to logical standby name. Shutdown the standby database if mounted and mount the database again. In this configuration, logical standby database name is LGSTDBY.
    sql>alter database recover to logical standby LGSTDBY;
    alter database recover to logical standby LGSTDBY;
    Error at line 1:
    ORA-00905: missing keyword
    I have tried to create pfile from spfile on stanby and change the db_name to lgstdby.
    I started nomount using pfile. I still cannot run the command.
    I tried to mount the standby database but error occured:
    ORA-01103: database name 'PRIMARY' in controlfile is not 'LGSTDBY'
    The document in metalink is for 10.2.0.4
    Is it possible to do it at 9i??
    Thx for the help...

    FEDORA 6 & ORACLE 10.2.0
    alert_stb.log:
    alter database start logical standby apply
    Wed Jun 17 22:46:58 2009
    ALTER DATABASE START LOGICAL STANDBY APPLY (stb)
    Wed Jun 17 22:46:58 2009
    No optional part
    Attempt to start background Logical Standby process
    LSP0 started with pid=22, OS id=4156
    Wed Jun 17 22:46:59 2009
    Completed: alter database start logical standby apply
    Wed Jun 17 22:47:01 2009
    LOGSTDBY status: ORA-16111: log mining and apply setting up
    Wed Jun 17 22:47:01 2009
    LOGMINER: Parameters summary for session# = 1
    LOGMINER: Number of processes = 3, Transaction Chunk Size = 201
    LOGMINER: Memory Size = 30M, Checkpoint interval = 150M
    LOGMINER: session# = 1, reader process P000 started with pid=23 OS id=4158
    LOGMINER: session# = 1, builder process P001 started with pid=24 OS id=4160
    LOGMINER: session# = 1, preparer process P002 started with pid=25 OS id=4162
    Wed Jun 17 22:47:02 2009
    LOGMINER: Begin mining logfile: /u01/app/oracle/flash_recovery_area/STB/archivelog_3/1_3_689731882.arc
    Wed Jun 17 22:47:02 2009
    LOGMINER: Turning ON Log Auto Delete
    Wed Jun 17 22:47:02 2009
    LOGMINER: End mining logfile: /u01/app/oracle/flash_recovery_area/STB/archivelog_3/1_3_689731882.arc
    LOGSTDBY Analyzer process P003 started with pid=26 OS id=4164
    LOGSTDBY Apply process P008 started with pid=31 OS id=4174
    LOGSTDBY Apply process P007 started with pid=30 OS id=4172
    LOGSTDBY Apply process P004 started with pid=27 OS id=4166
    LOGSTDBY Apply process P006 started with pid=29 OS id=4170
    LOGSTDBY Apply process P005 started with pid=28 OS id=4168

  • RMAN script problem to create logical standby database !

    Dear Friends ,
    I am using Oracle10g database . I want to create a logical standby database . I create two database :
    Primary : orcl
    standby : orclsby1
    Every steps I followed successfully , but when I am going to create "standby database" from "primary database" using rman then I found the following error :
    The script is below which I have to run in Primary (orcl) database :
    Script :
    run {
    allocate channel prmy1 type disk;
    allocate channel prmy2 type disk;
    allocate channel prmy3 type disk;
    allocate channel prmy4 type disk;
    allocate auxiliary channel stby type disk;
    duplicate target database for standby from active database
    spfile
    parameter_value_convert 'orcl','orclsby1'
    set db_unique_name='orclsby1'
    set db_file_name_convert='/orcl/','/orclsby1/'
    set log_file_name_convert='/orcl/','/orclsby1/'
    set control_files='/u01/app/oracle/oradata/orclsby1.ctl'
    set log_archive_max_processes='5'
    set fal_client='orclsby1'
    set fal_server='orcl'
    set standby_file_management='AUTO'
    set log_archive_config='dg_config=(orcl,orclsby1)'
    set log_archive_dest_1='service=orcl ASYNC
    valid_for=(ONLINE_LOGFILE,PRIMARY_ROLE) db_unique_name=orcl'
    Problem which I got :
    [oracle@localhost DG]$ rman target sys/sys123@orcl auxiliary sys/sys123@orclsby1
    Recovery Manager: Release 10.2.0.1.0 - Production on Mon Oct 19 15:58:17 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: ORCL (DBID=1227832857)
    connected to auxiliary database: ORCLSBY1 (not mounted)
    RMAN> @cr_phys_sby1.txt
    RMAN> run {
    2> allocate channel prmy1 type disk;
    3> allocate channel prmy2 type disk;
    4> allocate channel prmy3 type disk;
    5> allocate channel prmy4 type disk;
    6> allocate auxiliary channel stby type disk;
    7> duplicate target database for standby from
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "from": expecting one of: "dorecover, db_file_name_convert, nofilenamecheck, ;"
    RMAN-01007: at line 7 column 39 file: cr_phys_sby1.txt
    I try to edit the above script using 'nofilenamecheck' 'dorecover' etc. , but cannot resolve the problem . Would u plz help me .... where the problem is .
    Both databases are running on Oracle10g platform .
    Waiting for ur kind reply .. ...

    You need to:
    - create a SPFILE manually for standby database
    - use the RMAN command: DUPLICATE TARGET DATABASE FOR STANDBY
    - remove all SPFILE statements from RMAN script.

  • Creating Logical standby on windows using GRID.

    Can i create a logical db where my primary dbis physicam windows server and my standby will be vmware viirtual server server?
    Thiese are the details
    Primary:
    ProLiant DL385 G1, 4 CPUs, 16216 MB Memory
    Microsoft Windows Server 2003 Server 5.2 Service Pack 2 (32-bit)
    Logical standby:
    VMware Virtual Platform, 2 CPUs, 3072 MB Memory
    Microsoft Windows Server 2003 R2 Server 5.2 Service Pack 2 (32-bit)
    I am using oracle 10.2.0.1 ..dont ask why 10.2.0.1

    mtaji wa maskini wrote:
    Can i create a logical db where my primary dbis physicam windows server and my standby will be vmware viirtual server server?
    Thiese are the details
    Primary:
    ProLiant DL385 G1, 4 CPUs, 16216 MB Memory
    Microsoft Windows Server 2003 Server 5.2 Service Pack 2 (32-bit)
    Logical standby:
    VMware Virtual Platform, 2 CPUs, 3072 MB Memory
    Microsoft Windows Server 2003 R2 Server 5.2 Service Pack 2 (32-bit)
    As long as the OS is the same, it shouldn't matter that one or both are virtualized. I say that with the caveat that (1) MetaLink note 249212.1 states in no uncertain terms that no Oracle product is supported under VMware, and (2) I was told just this afternoon by a member of a development team that it was. I asked if he had documentation to that effect and he said he did and would email it to me when he returned to his office.
    I am using oracle 10.2.0.1 ..dont ask why 10.2.0.1Ok, I won't ask why 10.2.0.1.
    I'll ask why we shouldn't ask.

  • Local logical standby and remote physical standby

    Dear All,
    My database version is 10.2.0.1.0(production) and Operating System Linux x86-64 OS Version Red Hat Enterprise 4
    Below is my configuration details:
    Rprimary Database:Two Nodes RAC
    StandBy Database LOCAL:Standalone database
    Standby Database Remote:Two Node RAC
    So,my question is, i want my local physical DR to convert into logical standby and
    Remote DR will operate as physical standby as it IS.
    sql>EXECUTE DBMS_LOGSTDBY.BUILD
    After executing the above statement in my production primary database will there be any performance HIT.
    And another important is that my above statement shouldn't affect my remote physical DR database.
    Just the local DR should get converted into logical standby database
    Thanks and Regards
    Monoj Das

    monoj wrote:
    Dear All,
    My database version is 10.2.0.1.0(production) and Operating System Linux x86-64 OS Version Red Hat Enterprise 4
    Below is my configuration details:
    Rprimary Database:Two Nodes RAC
    StandBy Database LOCAL:Standalone database
    Standby Database Remote:Two Node RAC
    So,my question is, i want my local physical DR to convert into logical standby and
    Remote DR will operate as physical standby as it IS.
    sql>EXECUTE DBMS_LOGSTDBY.BUILD
    After executing the above statement in my production primary database will there be any performance HIT.
    And another important is that my above statement shouldn't affect my remote physical DR database.
    Just the local DR should get converted into logical standby database
    Thanks and Regards
    Monoj DasIn any Data Guard environment, you can have either physical or logical or even mixed[physical + logical]
    There will be no performance issue if you run the package for logical standby DBMS_LOGSTDBY.BUILD , This package provides you to manage even logical standby database.

  • Refresh Schema in Primary (and Logical Standby)

    Does anyone have a recommendation for the best way to refresh a 16Gb schema in a Primary Database that has a logical standby?
    I attempted to refresh our main schema in our Primary by using IMPDP. I tried to follow the same steps as I would if I had to upgrade a Primary database with a Logical Standby in place. I defered the Log archive log dest state associated with the logical standby, stopped the SQL Apply on the standby and disabled Data Guard, then dropped the schema in the Standby, created and imported the schema. i then performed the drop, recreate and import in the Primary. After that I did a DBMS_LOGSTDBY.BUILD on the Primary. Finally I enabled DG, restarted the apply and enabled the log arch dest on the primary.
    One issue I did have was that i did not defer the archivelogs until after the import had started so it did send some archives over - of course DG was disabled and the apply was off but now the status of DG is normal but i have a big gap in Last Received Log and Last Applied Log and of the missing archives, the oldest have 'Committed Transactions Applied', newer ones have 'Not Applied' and the newest have 'Not Received'.
    I think I'm hosed but I am confused on the best approach. I did try just to perform the import on the Primary previously (last year) but I remember that the volume of data killed the replication.
    This is 10.2.0.4 on Windows 2003 Server (64bit)
    Thanks
    Graeme

    i suppossed that you did : alter database open resetlog; right?
    In first place, try to see any error in redo transport:
    alter system switch logfile;
    select status, error from v$archive_dest where dest_id = 2;
    any error?
    for more information, please check:
    http://www.idevelopment.info/data/Oracle/DBA_tips/Data_Guard/DG_45.shtml

  • Logical standby and Primary keys

    Hi All,
    Why primary keys are essential for creating logical standby database? I have created a logical standby database on testing basis without having primary keys on most of the tables and it's working fine. I have not event put my main DB in force logging mode.

    I have not event put my main DB in force logging mode. This is because, redo log files or standby redo logfiles transforms into set of sql statements to update logical standby.
    Have you done any DML operations with nologging options and do you notice any errors in the alert.log? I just curious to know.
    But I wanted to know that, while system tablespace in hot backup mode,In the absence of both a primary key and a nonnull unique constraint/index, all columns of bounded size are logged as part of the UPDATE statement to identify the modified row. In other words, all columns except those with the following types are logged: LONG, LOB, LONG RAW, object type, and collections.
    Jaffar

  • Create multiple standby databases of primary database

    Hi,
    I have to create 2 standby databases of a single primary database,
    where can i get the stpe for the same?
    Thanks

    user10745179 wrote:
    What about FAL_CLIENT parameters in primary?
    how to set the values of the above parameter in priamry for second standby database.?
    Thanks,In your case do need setting FAL_CLIENT/SERVER in primary database,set these parameter correctly in your standby database.Refer below note
    *FAL_SERVER And FAL_CLIENT Settings For Cascaded Standby [ID 358767.1]*

  • Logical standby stuck at initializing SQL apply only coordinator process up

    Hi
    OS: solaris 5.10
    Hardware: sun sparc
    Oracle database: 11.2.0.1.0
    Primary database name: asadmin
    Standby database name: test
    I had been trying to convert a physical standby to logical standby database. Both the primary and standby reside on the same machine.
    The physical standby was created with a hot backup of primary.
    I had been following document id 278371.1 to convert the physical to logical standby and used the following steps:
    Relevant init parameters on primary:
    *.db_name='asadmin'
    *.db_unique_name='asadmin'
    *.log_archive_config='dg_config=(asadmin,test)'
    *.log_archive_dest_1='location=/u01/asadmin/archive valid_for=(all_logfiles,all_roles) db_unique_name=asadmin'
    *.log_archive_dest_2='SERVICE=test async valid_for=(online_logfiles,primary_role) db_unique_name=test'
    *.log_archive_dest_state_1='enable'
    *.log_archive_dest_state_2='enable'
    *.fal_client='asadmin'
    *.fal_server='test'
    *.remote_login_passwordfile='EXCLUSIVE'
    Relevant init parameters on standby database:
    *.db_name='test' -- Was asadmin before I renamed the DB during conversion to logical standby
    *.db_unique_name='test'
    *.log_archive_dest_1='location=/u01/test/archive valid_for=(all_logfiles,all_roles) db_unique_name=test'
    *.log_archive_dest_2='service=asadmin async valid_for=(online_logfiles,primary_role) db_unique_name=asadmin'
    *.log_archive_dest_state_1=enable
    *.log_archive_dest_state_2=defer
    *.remote_login_passwordfile='EXCLUSIVE'*.fal_server=test
    *.fal_client=asadmin
    Steps on primary:
    1) alter system set log_archive_dest_state_2=defer;
    2) shutdown immediate;
    3) Made sure that the physical standby has applied all of the redo sent to it following the shutdown.
    4) startup mount;
    5) ALTER DATABASE BACKUP CONTROLFILE to '/home/oracle/control01.ctl';
    6) ALTER SYSTEM ENABLE RESTRICTED SESSION;
    7) ALTER DATABASE OPEN;
    8) Verified that the supplemental logging is on.
    9) ALTER SYSTEM ARCHIVE LOG CURRENT;
    10) Checked for the checkpoint change no. at this point which is 72403818 and is present in archive log file 1_62_775102253.dbf
    11) EXECUTE DBMS_LOGSTDBY.BUILD;
    12) ALTER SYSTEM ARCHIVE LOG CURRENT;
    13) Checked for the archive log containing dictionary build which is 1_64_775102253.dbf
    14) ALTER SYSTEM DISABLE RESTRICTED SESSION;
    Details of archive logs and related checkpoint change nos:
    NAME FIRST_CHANGE# NEXT_CHANGE#
    /u01/asadmin/archive/1_61_775102253.dbf 72402901 72403817
    /u01/asadmin/archive/1_62_775102253.dbf 72403817 72404069
    /u01/asadmin/archive/1_63_775102253.dbf 72404069 72404211
    /u01/asadmin/archive/1_64_775102253.dbf 72404211 72405700
    Steps on standby:
    1) shutdown immediate;
    2) Copy the archivelog file 61(was created at primary after apply stopped at standby), 62(contains checkpoint no. 72403818), 63 and 64(contains dictionary build). Copy the backup controlfile from step 5 above to the controlfile location in standby init.
    3) startup mount;
    4) Rename all datafiles and redo log files (including standby redo log files) to the correct path on standby.
    5) alter database recover automatic from '/u01/test/archive' until change 72405700 using backup controlfile; -- This completed error-free
    6) alter database guard all; -- this completed error free
    7) alter database open resetlogs; -- this completed error free.
    8) nid target=sys/oracle12 dbname=test
    9) Changed the db_name in init file to new name test.
    10) Added a tempfile to temp tablespaces.
    11) ALTER DATABASE REGISTER LOGICAL LOGFILE '/u01/test/archive/1_61_775102253.dbf'; -- ORA-16225: Missing LogMiner session name for Streams
    12) ALTER DATABASE START LOGICAL STANDBY APPLY INITIAL 72405700; -- This completed error free.
    Also enabled the log_archive_dest_state_2 on primary.
    After this output from some views:
    SQL> SELECT SESSION_ID, STATE FROM V$LOGSTDBY_STATE;
    SESSION_ID STATE
    1 INITIALIZING
    SQL> SELECT SID, SERIAL#, SPID, TYPE FROM V$LOGSTDBY_PROCESS;
    SID SERIAL# SPID TYPE
    587 22 15476 COORDINATOR
    SELECT PERCENT_DONE, COMMAND
    FROM V$LOGMNR_DICTIONARY_LOAD
    WHERE SESSION_ID = (SELECT SESSION_ID FROM V$LOGSTDBY_STATE);
    PERCENT_DONE
    COMMAND
    0
    SQL> SELECT TYPE, HIGH_SCN, STATUS FROM V$LOGSTDBY;
    TYPE HIGH_SCN STATUS
    COORDINATOR ORA-16111: log mining and apply setting up
    SQL> SELECT APPLIED_SCN, NEWEST_SCN FROM DBA_LOGSTDBY_PROGRESS;
    APPLIED_SCN NEWEST_SCN
    72405700 72411501
    SELECT THREAD#, SEQUENCE#, FILE_NAME FROM DBA_LOGSTDBY_LOG L
    WHERE NEXT_CHANGE# NOT IN
    (SELECT FIRST_CHANGE# FROM DBA_LOGSTDBY_LOG WHERE L.THREAD# = THREAD#)
    ORDER BY THREAD#,SEQUENCE#;
    no rows selected
    SQL> SELECT EVENT_TIME, STATUS, EVENT
    FROM DBA_LOGSTDBY_EVENTS
    ORDER BY EVENT_TIMESTAMP, COMMIT_SCN; 2 3
    EVENT_TIME STATUS EVENT
    14-FEB-12 02:00:50 ORA-16111: log mining and apply setting up
    14-FEB-12 02:00:50 Apply LWM 72405699, HWM 72405699, SCN 72405699
    14-FEB-12 02:20:11 ORA-16128: User initiated stop apply successfully
    completed
    14-FEB-12 02:20:39 ORA-16111: log mining and apply setting up
    14-FEB-12 02:20:39 Apply LWM 72405699, HWM 72405699, SCN 72405699
    14-FEB-12 02:54:15 ORA-16128: User initiated stop apply successfully
    completed
    14-FEB-12 02:57:38 ORA-16111: log mining and apply setting up
    EVENT_TIME STATUS EVENT
    14-FEB-12 02:57:38 Apply LWM 72405699, HWM 72405699, SCN 72405699
    14-FEB-12 03:01:36 ORA-16128: User initiated stop apply successfully
    completed
    14-FEB-12 03:13:44 ORA-16111: log mining and apply setting up
    14-FEB-12 03:13:44 Apply LWM 72405699, HWM 72405699, SCN 72405699
    14-FEB-12 04:32:23 ORA-16128: User initiated stop apply successfully
    completed
    14-FEB-12 04:34:17 ORA-16111: log mining and apply setting up
    14-FEB-12 04:34:17 Apply LWM 72405699, HWM 72405699, SCN 72405699
    EVENT_TIME STATUS EVENT
    14-FEB-12 04:36:16 ORA-16128: User initiated stop apply successfully
    completed
    14-FEB-12 04:36:21 ORA-16111: log mining and apply setting up
    14-FEB-12 04:36:21 Apply LWM 72405699, HWM 72405699, SCN 72405699
    14-FEB-12 05:15:22 ORA-16128: User initiated stop apply successfully
    completed
    14-FEB-12 05:15:29 ORA-16111: log mining and apply setting up
    14-FEB-12 05:15:29 Apply LWM 72405699, HWM 72405699, SCN 72405699
    I also greped for lsp and lcr processes and found that lsp is up but do not see any lcr.
    The logs are getting transported to the archive destination on standby whenever they are archived on primary but are not getting applied to standby.
    Also in case the standby is down while a log is generated on primary it is not automatically transported to standby once the standby is up, means gap resolution is also not working.
    I see the following in alert log every time I try to restart the log apply, everything seems to be stuck at initialization.
    ALTER DATABASE START LOGICAL STANDBY APPLY (test)
    with optional part
    IMMEDIATE
    Attempt to start background Logical Standby process
    Tue Feb 14 05:15:28 2012
    LSP0 started with pid=28, OS id=23391
    Completed: alter database start logical standby apply immediate
    LOGMINER: Parameters summary for session# = 1
    LOGMINER: Number of processes = 3, Transaction Chunk Size = 201
    LOGMINER: Memory Size = 30M, Checkpoint interval = 150M
    LOGMINER: SpillScn 0, ResetLogScn 0
    -- NOTHING AFTER THIS

    Hello;
    I noticed some of your parameters seem to be wrong.
    fal_client - This is Obsolete in 11.2
    You have db_name='test' on the Standby, it should be 'asadmin'
    fal_server=test is set like this on the standby, it should be 'asadmin'
    I might consider changing VALID_FOR to this :
    VALID_FOR=(ONLINE_LOGFILES,ALL_ROLES)Would review 4.2 Step-by-Step Instructions for Creating a Logical Standby Database of Oracle Document E10700-02
    Document 278371.1 is showing its age in my humble opinion.
    -----Wait on this until you fix your parameters----------------------
    Try restarting the SQL Apply
    ALTER DATABASE START LOGICAL STANDBY APPLY IMMEDIATEI don't see the parameter MAX_SERVERS, try setting it to 8 times the number of cores.
    Use these statements to trouble shoot :
    SELECT NAME, VALUE, UNIT FROM V$DATAGUARD_STATS;
    SELECT NAME, VALUE FROM V$LOGSTDBY_STATS WHERE NAME LIKE ;TRANSACTIONS%';
    SELECT COUNT(1) AS IDLE_PREPARERS FROM V$LOGSTDBY_PROCESS WHERE
    TYPE = 'PREPERER' AND STATUS_CODE = 16166;Best Regards
    mseberg
    Edited by: mseberg on Feb 14, 2012 7:37 AM

Maybe you are looking for

  • ZEN firmware 1.20.02 - Was that

    There's tons of features to add and almost as much to fix, so don't stop updating it now!Message Edited by m99__ on 02-24-200807:4 AM

  • Value string for GR for normal PO and other

    Hi,   I want to know whihc value string i sused and which account are updated when we make GR 1 : For normal PO,  without any account assignment for stovk material 2: For Subcontract PO 3: For PO with account assignment 4: In case of ASSETT regards,

  • Cardinality

    Dear all , I have a question here about the joins cardinality in OBIEE. There is join in the fact and dimension table as 1;N .If I have changed this as N;1 will it give nay change in the results . What is the pupose of the cardinality in OBIEE ,how t

  • How to stop the "Tab Key" from acting as a "SEND" button in gmail

    Since installing the Firefox update today, when I hit the keyboard Tab Key in the course of composing an email on gmail, it sends the (!unfinished!) message. I need to disable this "feature". How?

  • How to rename rpool

    Hello all - I have a Solaris 10u8 (sparc) installed on SAN LUN using zfs filesystem. I have to rename the rpool due to our new naming convention. I have found documents on renaming zpools by running: # zpool export zpool # zpool import zpool NEWzpool