Wait() Sleep() Thread.Sleep)

Hello

IM building a popup which should be used in output when the mouse is 5 seconds later the screen.
This is why I need a timeout during 5 sec, how to build it?

I couldn't find anything like the sleep of waiting.

Sjoerd-

You can try to use the flash.utils.setTimeOut or flash.utils.Timer for this function.

Tags: Flex

Similar Questions

  • Media, recovery waiting for thread 1 sequence (in transit)

    I have rebuilt our standby database using rman double since it lacked many newspapers of archiving.

    After the double, the eve is now almost in sync with the primary. The Marbles that ship through, but are not implemented in a timely. How long should wait to a journal of the Archives of the primary to be applied to the waiting?

    I need to know this so that a good script can be configured to check the primary and standby. For the moment, that they are never exactly synchronized - sequence always one behind the primary number.

    Why is Eve does not have in a timely fashion?

    From the journal of alerts:

    Media, recovery waiting for thread 1 sequence 11278 (in transit)

    The journal seems to be "in transit" for a long time

    PRIMARY:
    SQL > select max (sequence #) the journal of v current_seq $;

    CURRENT_SEQ
    -----------
    11278


    SB:
    SQL > select MAX (SEQUENCE #), APPLIED from V$ ARCHIVED_LOG in case of APPLICATION = 'YES' GROUP APPLIED;

    MAX(SEQUENCE#) APP
    -------------- ---
    YES 11277


    JOURNAL ALERTS:
    RFS [2]: Archived Log: ' / backup/prod/log_1_11277_704816194.dbf'
    Primary database is in MAXIMUM PERFORMANCE mode
    Mon Nov 1 15:22:01 2010
    Recovery Media Log /backup/prod/log_1_11272_704816194.dbf
    Mon 1 Nov 15:26:49 2010
    Recovery Media Log /backup/prod/log_1_11273_704816194.dbf
    Mon Nov 1 15:29:54 2010
    Recovery Media Log /backup/prod/log_1_11274_704816194.dbf
    Mon Nov 1 15:34:18 2010
    Recovery Media Log /backup/prod/log_1_11275_704816194.dbf
    Mon Nov 1 15:36:42 2010
    Recovery Media Log /backup/prod/log_1_11276_704816194.dbf
    Mon Nov 1 15:39:43 2010
    Recovery Media Log /backup/prod/log_1_11277_704816194.dbf
    Mon Nov 1 15:42:34 2010
    Media, recovery waiting for thread 1 sequence 11278 (in transit)

    I should add that I understand that for the primary and standby to be interrupted by a newspaper is not a concern (they ask). It's just that I wanted a check that compare the two script and at the time where they are never equal - when I understand them to be, and that newspapers should apply almost immediately.

    Published by: Dan on November 1, 2010 16:36

    How long should wait to a journal of the Archives of the primary to be applied to the waiting?

    also depends on the speed of the network.
    Make sure that the archives are shipped instead of sleep.

    PRIMARY:
    SQL > select max (sequence #) the journal of v current_seq $;
    CURRENT_SEQ

    11278 (it's not connect archivelog)... :)

    SB:
    SQL > select MAX (SEQUENCE #), APPLIED from V$ ARCHIVED_LOG in case of APPLICATION = 'YES' GROUP APPLIED;
    MAX(SEQUENCE#) APP

    YES 11277

    Hi check MRP starts or not?
    database principal that you must not check the current sequence, generated check last sequence... not common sequence.

    current sequence is redo log, which has not yet been archived

    I think that everything is perfect here... no problems.

    Hope you understand, I would like to know if it is not explicit, thank you.

  • Editing screen, but still wait for thread to return

    I have an app that makes updates to the user interface through a reference to a bitmapfield a new thread, and that thread is updating the user interface.

    The problem I have is that I want the main thread "wait" wire under update charts, before continuing with the "game".

    so... for example...

    // update the main bitmapfield  pt = new PlayerThread(bfField,square);
    pt.start(); 
    
    // wait for the thread to finish updating the ui while (pt.isAlive()){}
    

    Now, I * KNOW * it is not the right way to do this, because the UI is not updated, because the user interface is in a loop waiting for the thread ends, which defeats the purpose of having the thread in the background in the first place.

    What is the 'proper' waiting to do this? I completely missed the point to put on?

    It works fine if I do not "wait" for the thread, but this means that the user can press the buttons, or interact with the game when they aren't supposed to.

    I thought that there must be a way to define a 'isthreading = true' var and disable keys by adding an if statement to my keydown, but how can I make my app "waiting" for the thread, I created to be finished, but not really break the UI itself?

    I hope that was clear...

    You need a reporting mechanism indicating the UI thread "I'm done" or "the data is ready. Never loop in a UI thread - this will cause finally the event queue to overflow, which ask you dumped as "refractory".

    A typical mechanism is to implement a listener and a data event. The "interested" party registers a listener with the background thread, the background thread fires the event data when appropriate.

    If there is only a single listener, then it can be implemented with fewer resources by using a callback mechanism.

    Search for references to the model of the observer:

    http://en.Wikipedia.org/wiki/Observer_pattern

  • Sleep in PL/SQL function

    Hi guys,.

    I create a procedure that will search the fileld in the database and if it returns NULL should go to sleep for 15 minutes and then will again check for the field. I intend to use DBMS_LOCK. SLEEP function. Please can you suggest the same is very well or it if in case there are any other specific functions I need to use that I read that the specified function is not specified in the calculation of the time of SLEEP.

    [http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:6019886867656]



    Best regards
    Shaz

    Fabien says:

    I wasn't able to find a clear explanation anywhere. So for my requirement mentioned in the first thread, please can you advise what function I should use so that the procedure expects the flag and must move forward once it is set.

    It can be as simple as the following:

    loop
      --// exit when the flag is set
      exit when GetFlag = 9;
    
      --// if the flag is not set, sleep a while (basically doing
      --// "cooperative multitasking" by not hogging the CPU for
      --// the next 60 seconds and allowing others to get a fair
      --// slice of CPU utilisation)
      DBMS_LOCK.Sleep( 60 );
    end loop;
    

    How long should you sleep/idle process in the loop?

    It depends on how long you expect to wait for another process to set the flag and allow your process to continue.

    If that other process takes 20 minutes to do it - check the indicator once a minute or even once every 2 minutes should do the trick.

    If that process takes 120 seconds before the definition of the indicator, then one can check the flag every 5 to 10 seconds.

    If the indicator is a very costly process (should not be), then we can decide who hold and idle more in order to check the status of the indicator times less.

    You can also set the idle time to the loop. For example, the loop can accommodate 60 seconds and check the indicator. After 20 loop iterations (for 20 minutes), the process can increase the time to wait/sleep to 300 seconds.

    This approach can be used when the other process has variable processing times. It should normally take 30 minutes maybe, but sometimes can take several hours. In this case you can adjust your sleep time and increase when it seems that he another process will take a long time to set the flag.

    You should also consider showing the status of your process while its rotation and waiting for another process. You can do this via the DBMS_APPLICATION_INFO package by setting the module and action fields (visible by administrators and monitoring s/w by the view v$ session).

  • Archiving logs not applied to sleep!

    Hi guys,.

    I'm implementing physical standby on windows 2003 server. I use oracle 10.2.0.4.0. I get the following error in my alert pending file
    You cannot request the gap sequence

    Here are the results of some queries:


    SQL > SELECT PROCESS, STATUS, THREAD #, SEQUENCE #, BLOCK #, BLOCKS FROM V$ MANAGED_STANDBY;

    STATUS OF PROCESS THREAD # SEQUENCE # BLOCK # BLOCKS
    --------- ------------ ---------- ---------- ---------- ----------
    ARCH CONNECTED 0 0 0 0
    ARCH CONNECTED 0 0 0 0
    ARCH CONNECTED 0 0 0 0
    ARCH CONNECTED 0 0 0 0
    ARCH CONNECTED 0 0 0 0
    ARCH CONNECTED 0 0 0 0
    ARCH CONNECTED 0 0 0 0
    ARCH CONNECTED 0 0 0 0
    ARCH CONNECTED 0 0 0 0
    ARCH CONNECTED 0 0 0 0
    Mr (FG) 1 10004 WAIT_FOR_GAP 0 0

    SQL > select * from v$ archive_gap;
    no selected line



    SQL > select message from v$ dataguard_status;

    Message
    -------------------------------------------------------------
    Arc0: Started archiving
    Arc1: Started archiving
    ARC2: Started archiving
    ARC3: Started archiving
    Arc4: Started archiving
    ARC5: Started archiving
    ARC6: Started archiving
    ARC7: Started archiving
    ARC8: Started archiving
    ARC9: Started archiving
    Arc0: become the "no FAL' ARCH

    Message
    -------------------------------------------------------------
    Arc0: become the "no SRL" ARCH
    Arc1: Become the heartbeat ARCH
    Try to start inside the managed standby recovery process
    MRP0: Background Managed Standby recovery started
    Managed Standby recovery not using real time applies
    Media, recovery waiting for thread 1 sequence 10004
    Pick up the empty sequence in thread 1, sequence gap 10004-10017
    FAL [client]: you cannot request the gap sequence
    GAP - thread 1 sequence 10004-10017
    2422302575 670594799 DBID branch
    FAL [client]: all defined FAL servers have been tried.

    Message
    -------------------------------------------------------------
    MRP0: Background Media Recovery cancelled with status 16037
    MRP0: Stopping the process background Media Recovery
    Managed recovery cancelled pending
    Start of recovery media: managed standby recovery
    Managed Standby recovery not using real time applies
    Media, recovery waiting for thread 1 sequence 10004
    Pick up the empty sequence in thread 1, sequence gap 10004-10017
    FAL [client]: you cannot request the gap sequence
    GAP - thread 1 sequence 10004-10017
    2422302575 670594799 DBID branch
    FAL [client]: all defined FAL servers have been tried.


    SQL > SELECT THREAD #, SEQUENCE #, APPLIED TO V$ ARCHIVED_LOG
    in case of application = 'YES '.

    no selected line


    ##Modification in primary #.
    * .log_archive_dest_2 = "SERVICE = STANDBY"
    * .fal_client = "STUTEST".
    * .fal_server = "STUSTANDBY".
    * .log_archive_config = 'DG_CONFIG = (STUTEST, STUSTANDBY)'

    ##Modification on Eve #.
    * .db_unique_name = "STANDBY".
    * .log_archive_dest_2 = "SERVICE = STANDBY"
    * .log_archive_dest_state_2 = 'ENABLE '.
    *. Fal_server = STUTEST
    *. Fal_client = STUSTANDBY
    * .db_file_name_convert = "H:\ORACLE\ORADATA\STUTEST\",' I: \ORACLE\ORADATA\STUTEST\s_'
    * .log_file_name_convert = a: \oracle\oradata\STUTEST\',: \oracle\oradata\STUTEST\s_'

    Nore: I used RMAN to create the database on hold. Here's the brief steps

    Here are the steps to accomplish the task:

    Step 1: Back up the database that includes the backup of the data files, archivelogs and controlfile to standby
    backup current controlfile to sleep;
    Step 2: Move the backups to the server backup and restore of backup control file
    Step 3: Change the database parameter files primary and standby
    Step 4: Do the restore and recover on the backup database
    Step 5: Put the database sleep in managed recovery mode


    Thanks for the help guys!

    jazz81,

    If I were you I copy the archivelog 10119 Eve primary number and run the following command.

    ALTER DATABASE REGISTER LOGFILE '/PATH_HERE/ARCH_10119.arch';
    
    +This clause allows the registration of manually archived redo logs. The SQL statement syntax is:+
    
    +ALTER DATABASE REGISTER [OR REPLACE] [PHYSICAL | LOGICAL] LOGFILE filespec;+
    

    The database that you need to cancel the process MRP0, then re-run the MRP0 with the disconnection of the clause of session of the altar.

    Ogan

  • Problem with sleep, cannot identify the customer in ALF

    Hello!
    I have primary and standby DB (10.2.0.1, OEL5.3 x 64 primer, sleep on OEL5.3 itanium)
    Almost everything is fine, but sometimes I have this problem:

    FAL [Server]: cannot identify the customer in ALF, null string provided

    [ORA-07445: exception encountered: core dump [< 0x3f4b370560 >] [SIGSEGV] [address not mapped to object] [0x403FE6D3A60] []]


    Piece of newspaper of primary alerts:

    Wed Mar 25 15:00:30 2010
    Thread 1 cannot allot of new newspapers, sequence 30980
    Private stream flush is not complete
    Currently Journal # 4, seq # 30979 mem # 0: /sdd/oradata/a10/redo04a.log
    Currently Journal # 4, seq # 30979 mem # 1: /sdc/oradata/a10/redo04b.log
    Thread 1 Advanced to record the sequence 30980
    Currently journal # 5 seq # 30980 mem # 0: /sdd/oradata/a10/redo05a.log
    Currently journal # 5 seq # 30980 mem # 1: /sdc/oradata/a10/redo05b.log
    Wed Mar 25 15:00:37 2010
    FAL [Server]: cannot identify the customer in ALF, null string provided
    Wed Mar 25 15:00:37 2010
    Errors in the /app/oracle/admin/a10/udump/a10_fal_957.trc file:
    [ORA-07445: exception encountered: core dump [< 0x3f4b370560 >] [SIGSEGV] [address not mapped to object] [0x403FE6D3A60] []]
    Wed Mar 25 15:00:47 2010
    ARC3: Standby redo log file selected for thread 1 sequence 30979 for destination LOG_ARCHIVE_DEST_3


    Piece of a10_fal_957.trc:

    ALF Redo shipping Client does not have a network connection
    Exception signal: 11 (SIGSEGV), code: 1 (address not mapped to the object), ADR: 0x403fe6d3a60 PC: [0x3f4b370560, cannot find s$]
    < 0x3f4b370560 >]


    The primary settings:

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    fal_client string a10sb
    fal_server
    log_archive_config string
    string log_archive_dest_3 = a10sb service
    log_archive_dest_state_3 string ENABLE
    log_archive_format string %t_%s_%r.dbf


    Piece of standby alert log:

    Media, recovery waiting for thread 1 sequence 30979
    Wed Mar 25 15:03:03 2010
    Pick up the empty sequence in thread 1, sequence gap 30979-30979
    FAL [client, MRP0]: error recovery 3113 archived redo log of the a10
    Wed Mar 25 15:03:04 2010
    Errors in the /app/oracle/admin/a10sb/bdump/a10sb_mrp0_15411.trc file:
    ORA-03113: end of file on communication channel
    Wed Mar 25 15:03:13 2010
    RFS [6]: Eve successfully opened journal 1: ' / sdd/oradata/a10sb/redo01a.log'
    Wed Mar 25 15:03:34 2010
    Online Redo Log recovery: thread 1 mem Group 1 Seq 30979 reading 0
    Mem # 0 0 error: /sdd/oradata/a10sb/redo01a.log
    # 1 MEM Err 0: /sda/a10sb/redologs/redo01b.log
    Wed Mar 25 15:05:03 2010
    Media, recovery waiting for thread 1 sequence 30980

    Sleep settings:
    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    fal_client
    fal_server string a10

    What is going on?
    Why "ALF redo shipping Client not establish Network Login" does it happen?
    And how I can fix without path?

    A big thank you!

    Dmitry

    FAL_CLIENT is an entry of tns for the current instance
    FAL_SERVER is an entry of tns for example where RSF fetch missing archive logs.

    Please provide both side sleep. Make sure you have them in file tnsnames.ora pending

  • How to force back them to sleep?

    Hi all

    I have a database of Eve to the location of the log archive = / home/ARCH_PROD

    I list the contents of that folder, and I see that the required archiving logs exist.

    [oraprod@uatdb ~] $ cd/home/ARCH_PROD

    [oraprod@uatdb ARCH_PROD] $ ls-l

    Total 13866072

    -rw - r-. 1 oraprod s/n 939280896 12 January 00:47 1_301_898613761.dbf

    -rw - r-. 1 oraprod s/n 943042048 12 January 00:48 1_302_898613761.dbf

    -rw - r-. 1 oraprod s/n 962301952 12 January 00:47 1_303_898613761.dbf

    -rw - r-. 1 oraprod s/n 965938176 12 January 00:48 1_304_898613761.dbf

    -rw - r-. 1 oraprod s/n 965082624 12 January 00:48 1_305_898613761.dbf

    -rw - r-. 1 oraprod s/n 953583104 12 January 00:49 1_306_898613761.dbf

    -rw - r-. 1 oraprod s/n 950122496 12 January 00:49 1_307_898613761.dbf

    -rw - r-. 1 oraprod s/n 968144384 12 January 00:49 1_308_898613761.dbf

    -rw - r-. 1 oraprod s/n 954226176 12 January 00:50 1_309_898613761.dbf

    -rw - r-. 1 oraprod s/n 953012736 12 January 00:51 1_310_898613761.dbf

    -rw - r-. 1 oraprod s/n 955270656 12 January 00:52 1_311_898613761.dbf

    -rw - r-. 1 oraprod s/n 947273216 12 January 00:50 1_312_898613761.dbf

    -rw - r-. 1 oraprod s/n 766828544 12 January 00:52 1_313_898613761.dbf

    -rw - r-. 1 oraprod s/n 940087296 12 January 00:53 1_314_898613761.dbf

    -rw - r-. 1 oraprod s/n 947610112 12 January 00:55 1_315_898613761.dbf

    -rw - r-. 1 oraprod s/n 86966272 12 January 00:55 1_316_898613761.dbf

    Then I started the recovery:

    SQL > startup nomount;

    ORACLE instance started.

    Total System Global Area 2137886720 bytes

    Bytes of size 2254952 fixed

    486541208 variable size bytes

    1627389952 of database buffers bytes

    Redo buffers 21700608 bytes

    SQL > ALTER DATABASE MOUNT STANDBY DATABASE;

    Database altered.

    SQL > RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM the SESSION.

    Complete media recovery.

    SQL > archive logs list;

    Database log mode Archive Mode

    Active AutoArchive

    Archive destination/home/ARCH_PROD

    More old sequence of journal on line 300

    Log sequence to archive 0

    Current log sequence 301

    SQL >

    I repeated announces the newspaper, but it is always out of 301

    I check the LOG of ALERTS:

    ==================

    Arc0: Started archiving

    ARCH: FROM PROCESS ARCH COMPLETE

    ARC0: FROM PROCESS ARCH

    Thu Jan 12 01:18:55 2016

    Mount of redo thread 1, with mount id 312712314

    Physical Standby Database mounted.

    Disabled lost write protect

    Thu Jan 12 01:18:55 2016

    Arc1 started with pid = 19, OS id = 18651

    Thu Jan 12 01:18:55 2016

    ARC2 started with pid = 20, OS id = 18653

    Thu Jan 12 01:18:55 2016

    ARC3 started with pid = 21, OS id = 18655

    Arc1: Started archiving

    ARC2: Started archiving

    Arc1: become the "no FAL' ARCH

    ARC2: Become the heartbeat ARCH

    ARC2: Become the active heartbeat ARCH

    Completed: ALTER DATABASE MOUNT STANDBY BASE

    ARC3: Started archiving

    ARC0: FROM PROCESS ARCH COMPLETE

    Thu Jan 12 01:19:03 2016

    ALTER DATABASE RECOVER MANAGED STANDBY BASE DISCONNECT FROM THE SESSION

    Try to start inside the managed Standby recovery process (PROD)

    Thu Jan 12 01:19:03 2016

    MRP0 started with pid = 22, OS id = 18663

    MRP0: Background process Managed Standby recovery began (PROD)

    has started the process of logmerger

    Thu Jan 12 01:19:08 2016

    Managed Standby recovery not using real time applies

    Parallel Media Recovery started with 12 slaves

    Waiting for all non-current archive ORLs...

    All non-current ORLs have been archived.

    Media, recovery waiting for thread 1 sequence 301

    Completed: ALTER DATABASE RECOVER MANAGED STANDBY BASE DISCONNECT the SESSION

    Help, please...

    Thank you very much

    JC

    Ask yourself why logs archived is not applied to the managed node recovery ensures database? If so, please see (Doc ID 166689.1).

    Thank you

    Hussein

  • Turn off the power and wait for closing a connection

    Hello

    in a previous post, I ask for help with powerOff.

    I see my app to enter in this method, but I have a problem:

    I send a file to an FTP server using a class that I posted a few days ago.

    The problem is when the user stop device when the ftp stor command is not finished.

    I want to intercept and send abor command because without it, I find a file on the FTP server.

    PowerOff() I change a Boolean value to tell the ftp process I ask for demolition, when see ftp, it stop the command stor and sends an abor command

    The end of stor() method with a fake and I know the process to complete.

    The problem is how can I wait for this false in the main screen.

    I do something like

    while (isFtpSending())
        try { wait() } catch (InterruptedException e){}
    
    //isFtpSending is a synchronized method to change the value of boolean
    

    I set up a model of the observer, when the FTP class to end the process it send an update of class from the main screen and I do

    setFtpSending(false)
    notify()
    

    The problem is that when I do a wait(), it seems that off wire continues and stop the radio and all other process and stop device.

    Any idea?

    I think that what I need is a method to force the device to wait my thread.

    I hope someone understands something, sorry for the bad English.

    Thank you!

    p.d. I change the class FTP, because all the stor method has been synchronized, so I can't change the Boolean askForAbort until there finishes. Now sending bytes code is out of sync.

    Hello

    I find a work around the use of powerOffRequestd (int reason) of SystemListener2

    My end of thread before beginning the shutdown process.

    I see that the problem is that some link narrow wire of bb without asking or wait...

    I mark it as resolved

  • I would like to know the role of each thread on the coherence

    Help me.
    I would like to know the role of each thread on coherence.
    There are too many kinds of discussions.

    Example ~.
    --------------------------------------------------------------------------------------------------------------------------------------------------
    GC GC RUNNABLE slave slave
    RMI TCP TCP RMI-1972 accept accept 1972 RUNNABLE
    Track subscriber Health Center track subscriber RUNNABLE Health Center
    LT = 0:P = 342534:O = 0:port = LT 55170 = 0:P = 342534:O = 0:port = RUNNABLE 55170
    Attach the loop to wait API API wait loop tie RUNNABLE
    PacketListener1 PacketListener1 EXECUTABLE
    PacketListener1P PacketListener1P EXECUTABLE
    PacketListenerN PacketListenerN EXECUTABLE
    Cluster | Member(ID=1, timestamp=2013-04-05 10:45:44.655, Address=192.168.240.157:8088, MachineId=50044, location=site:,machine:TMTEST-PC,process:5316, Role=CoherenceServer) Cluster. Member(ID=1, timestamp=2013-04-05 10:45:44.655, Address=192.168.240.157:8088, MachineId=50044, location=site:,machine:TMTEST-PC,process:5316, Role=CoherenceServer) EXECUTABLE
    RT = 0:P = 342534:O = 0:TCPTransportConnection [addr = 192.168.240.157, = 55178, local port = 55170] RT = 0:P = 342534:O = 0:TCPTransportConnection [addr = 192.168.240.157, = 55178, local port = 55170] RUNNABLE
    Thread finalizer finalizer thread RUNNABLE
    WT = 10 WT = 10 RUNNABLE
    Main TIMED_WAITING main
    IpMonitor IpMonitor TIMED_WAITING
    Invocation: management: EventDispatcher Invocation: management: EventDispatcher TIMED_WAITING
    Invocation: Invocation: management of the TIMED_WAITING
    DistributedCache DistributedCache TIMED_WAITING
    JMX server connection timeout JMX server connection timeout 52 TIMED_WAITING 52
    RMI Scheduler (0) RMI Scheduler (0) pending
    WAITING for Thread-6 wire-6
    stop the server to JMX on stop stop JMX server during the stop pending
    Logger@9228429 3.7.1.7 Logger@9228429 3.7.1.7 pending
    PacketReceiver PacketReceiver pending
    PacketPublisher PacketPublisher pending
    PacketSpeaker PacketSpeaker pending
    WT = 7 WT = WAITING 7
    WT = 9 = WAIT 9 WT
    -----------------------------------------------------------------------------------------------------------------------------------------------

    Briefly

    PacketListener1 PacketListener1P PacketListenerN - listen to threads of e/s for TCMP transport protocol
    Cluster. Member (Id = 1, Timestamp is 10:45:44.655 2013-04-05, address = 192.168.240.157:8088, MachineId = 50044, location = site:, machine: TMTEST-PC, process: 5316, role = CoherenceServer) -main thread for the cluster service (discovery, node joing / exit, etc)
    IpMonitor - monitor IP, is involved in the detection of death system
    Invocation: management: EventDispatcher -thread expedition event for JMX service distributed in coherence
    Invocation: management -main thread for JMX services distributed in coherence
    DistributedCache - main thread for the cache service DistributedCache
    Logger@9228429 3.7.1.7 - wire consistency async logging
    PacketReceiver - wire incoming network packets
    PacketPublisher - wire, sending packages via TCMP
    PacketSpeaker - wire, sending packages via TCMP (discharges of some PacketPublisher work for the better use of Basic)

  • The application to display very slowly, please give me advice, thanks.

    Dear all,

    Could someone give me some advice? Thanks, I'm new developer in the development of a program administered for BB bold 9000, but when I run the application, it was display very slowly. Thank you.

    My code is displayed as follows:

    Main:

    import net.rim.blackberry.api.browser.Browser;
    import net.rim.blackberry.api.browser.BrowserSession;
    import net.rim.device.api.servicebook.ServiceBook;
    import net.rim.device.api.servicebook.ServiceRecord;
    import net.rim.device.api.system.Characters;
    import net.rim.device.api.system.EncodedImage;
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.BitmapField;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.decor.Background;
    import net.rim.device.api.ui.decor.BackgroundFactory;
    
    public class SmartoneVodafoneServices extends UiApplication {
    
        public static void main(String arg[]) throws Throwable {
            SmartoneVodafoneServices application = null;
            application = new SmartoneVodafoneServices();
            application.enterEventDispatcher();
        }
    
        public SmartoneVodafoneServices() throws Throwable {
                pushScreen(new SmartoneVodafoneServicesScreen());
        }
    }
    
    class SmartoneVodafoneServicesScreen extends MainScreen {
    
        //private TableLayoutManager table = TableDefine();
        private String url = "http://202.140.96.134:8080/Hero/shortcuts_demo.xml";
        private static ServiceBook sb = ServiceBook.getSB();
        private static ServiceRecord[] records = sb.findRecordsByCid("BrowserConfig");
    
        public SmartoneVodafoneServicesScreen() throws Throwable {
            super();
            LabelField title = new LabelField("Smartone Vodafone Services",
                    DrawStyle.ELLIPSIS | Field.USE_ALL_WIDTH | DrawStyle.HCENTER);
            setTitle(title);
    
            Background bg = BackgroundFactory.createSolidBackground(Color.BLACK);
            getMainManager().setBackground(bg);
            String[][] arr = null;EncodedImage pic = null;int p = 0;
            UiApplication.getUiApplication().getScreenCount();
            arr = Conn.WorkForXML(url);
            HorizontalFieldManager mainHManager = new HorizontalFieldManager(Field.FIELD_VCENTER);
            VerticalFieldManager col1 = new VerticalFieldManager(Field.FIELD_HCENTER);
            VerticalFieldManager col2 = new VerticalFieldManager(Field.FIELD_HCENTER);
            VerticalFieldManager col3 = new VerticalFieldManager(Field.FIELD_HCENTER);
            VerticalFieldManager col4 = new VerticalFieldManager(Field.FIELD_HCENTER);
            VerticalFieldManager col5 = new VerticalFieldManager(Field.FIELD_HCENTER);
    
            for (int i = 0; i < arr.length; i++) {
                if (arr[i][0] != null || arr[i][1] != null || arr[i][2] != null) {      
    
                    LabelField name = showName(arr[i][0]);
                    pic = Conn.GetPngField(arr[i][1]);
                    final String link = arr[i][2];
                    //final String link = "http://202.140.96.134:8080/blackberry/index.html";
                    BitmapField myBitmapField = new BitmapField(pic.getBitmap(),Field.FOCUSABLE|FIELD_VCENTER){
                        protected boolean invokeAction(int status){
                            //BrowserSession site = Browser.getDefaultSession();
                            BrowserSession site = createWAPBrowserSession();
                            site.displayPage(link);
                            return true;
                        }
    
                        protected void paint(Graphics g) {
                            g.setBackgroundColor(Color.BLACK);
                            g.drawRoundRect(0, 0, getWidth(), getHeight(), 10, 10);
                            g.setColor(Color.WHITE);
                            super.paint(g);
    
                        }
                    };
    
                    switch (p) {
                        case 0:
                            col1.add(new LabelField(" ",LabelField.NON_FOCUSABLE));
                            col1.add(myBitmapField);
                            col1.add(name);
                            break;
                        case 1:
                            col2.add(new LabelField(" ",LabelField.NON_FOCUSABLE));
                            col2.add(myBitmapField);
                            col2.add(name);
                            break;
                        case 2:
                            col3.add(new LabelField(" ",LabelField.NON_FOCUSABLE));
                            col3.add(myBitmapField);
                            col3.add(name);
                            break;
                        case 3:
                            col4.add(new LabelField(" ",LabelField.NON_FOCUSABLE));
                            col4.add(myBitmapField);
                            col4.add(name);
                            break;
                        case 4:
                            col5.add(new LabelField(" ",LabelField.NON_FOCUSABLE));
                            col5.add(myBitmapField);
                            col5.add(name);
                            break;
                    }
                    p ++;
                    if ( p == 5 ){
                        p = 0;
                    }
                }
            }
            mainHManager.add(col1);
            mainHManager.add(col2);
            mainHManager.add(col3);
            mainHManager.add(col4);
            mainHManager.add(col5);
            add(mainHManager);
        } 
    
        public LabelField showName(String name) {
            return new LabelField(name,LabelField.NON_FOCUSABLE|LabelField.FIELD_VCENTER){
                protected void paint(Graphics g) {
                    Font myFont = Font.getDefault().derive(Font.PLAIN, 7);
                    g.setColor(Color.WHITE);
                    g.setFont(myFont);
                    super.paint(g);
                }
            };
        }
    
        public static BrowserSession createWAPBrowserSession()
        {
            // If there are browser services found - search for the WAP2
            // Service Record
            String uid = null;
            int numRecords = records.length;
            for( int i = 0; i < numRecords; i++ )
            {
                ServiceRecord myRecord = records[i];
                //if (myRecord.getName()){
                if (myRecord.getUid().equals("WAP Browser Smartone")==true){
                    uid = myRecord.getUid();
                }
            }
            return Browser.getSession(uid);
        }
    
        public boolean keyChar(char key, int status, int time)
           {
               switch (key) {
                   case Characters.ESCAPE:
                        System.exit(0);
                        break;
               }
               return true;
               //return true to indicate that a key was pressed
           }
    }
    

    Conn.Java

    import java.io.*;
    
    import javax.microedition.io.*;
    
    import net.rim.blackberry.api.browser.Browser;
    import net.rim.blackberry.api.browser.BrowserSession;
    import net.rim.device.api.math.*;
    import net.rim.device.api.servicebook.ServiceRecord;
    import net.rim.device.api.system.*;
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.BitmapField;
    import net.rim.device.api.ui.decor.Border;
    import net.rim.device.api.ui.decor.BorderFactory;
    import net.rim.device.api.xml.parsers.*;
    
    import org.w3c.dom.*;
    
    public class Conn {
    
        /**
         * @return
         * @throws IOException
         * @throws Throwable
         * @throws Throwable
         */
    
        public static String[][] WorkForXML(String url) throws IOException, Throwable {
            // TODO Auto-generated method stub
            String[][] arr = null;
            HttpConnection conn = null;
            Document doc;
    
                conn = (HttpConnection) Connector.open(url);
                conn.setRequestMethod(HttpConnection.GET);
    
            try {
                if (conn.getResponseCode() == HttpConnection.HTTP_OK) {
    
                    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
                    DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
    
                    docBuilder.isValidating();
                    doc = docBuilder.parse(conn.openInputStream());
                    conn.close();
                    doc.getDocumentElement().normalize();
    
                    NodeList list = doc.getElementsByTagName("item");
                    arr = new String[list.getLength()][3];
    
                    for (int i = 0; i < list.getLength(); i++) {
                        Node nNode = list.item(i);
                        NodeList sList = nNode.getChildNodes();
    
                        if (sList.item(1).getFirstChild().getNodeValue().equals("0")) {
    
                            arr[i][0] = sList.item(3).getFirstChild().getNodeValue();
                            arr[i][1] = sList.item(7).getFirstChild().getNodeValue();
                            arr[i][2] = sList.item(11).getFirstChild().getNodeValue();
    
                        }
                    }
                    conn=null;
                    docBuilderFactory = null;
                    docBuilder = null;
                }
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            } catch (ParserConfigurationException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
    
            return arr;
        }
    
        public static EncodedImage GetPngField(String pic) throws IOException {
    
            EncodedImage imageField = null;
            HttpConnection picon = null;
    
                picon = (HttpConnection) Connector.open(pic);
                picon.setRequestMethod(HttpConnection.GET);
    
            try {
                if (picon.getResponseCode() == HttpConnection.HTTP_OK) {
    
                    DataInputStream inputStream = picon.openDataInputStream();
                    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
    
                    byte[] buffer = new byte[5120];
                    int len = 0, imageSize = 0;
    
                    while (-1 != (len = inputStream.read(buffer))) {
                        byteArrayOutputStream.write(buffer);
                        imageSize += len;
                    }
    
                    byteArrayOutputStream.flush();
                    picon.close();
                    picon=null;
                    byte[] imageData = byteArrayOutputStream.toByteArray();
                    byteArrayOutputStream.close();
                    byteArrayOutputStream = null;
                    inputStream = null;
                    //imageField = PNGEncodedImage.createEncodedImage(imageData, 0, imageSize);
                    EncodedImage pngImage = PNGEncodedImage.createEncodedImage(imageData, 0, imageSize);
                    imageField = resizeImage(pngImage,55,55);
    
                }
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
    
            return imageField;
        }
    
        public static EncodedImage resizeImage (EncodedImage png,int Height, int Width) {
    
            int currHeight,currWidth,multH = 0,multW = 0;
    
            try {
    
                currHeight = png.getHeight();
                currWidth = png.getWidth();
                multH = Fixed32.div(Fixed32.toFP(currHeight),Fixed32.toFP(Height));
                multW = Fixed32.div(Fixed32.toFP(currWidth),Fixed32.toFP(Width));
    
            } catch (Exception e) {}
    
            return png.scaleImage32(multH,multW);
        }
    }
    

    I have

    hyoryeo wrote:

    Thanks ydarishy & peter_strange, I just point the programmer SR. is not recommended to use the wire in my workplace. But I think that the wire is the good way to make my faster program because I found that the wire would be used in many places in the Blackberry. Then I would practice the Thread in the test project.

    have been changes to the program and use the wire, saw the fastest forward speed. I would add the bar of charge process if necessary of the head. Thanks ydarishy & peter_strange,.

    SmartoneVodafoneServices.java

    import java.util.Vector;
    
    import net.rim.blackberry.api.browser.Browser;import net.rim.blackberry.api.browser.BrowserSession;import net.rim.device.api.servicebook.ServiceBook;import net.rim.device.api.servicebook.ServiceRecord;import net.rim.device.api.system.Characters;import net.rim.device.api.ui.Color;import net.rim.device.api.ui.DrawStyle;import net.rim.device.api.ui.Field;import net.rim.device.api.ui.UiApplication;import net.rim.device.api.ui.component.LabelField;import net.rim.device.api.ui.container.HorizontalFieldManager;import net.rim.device.api.ui.container.MainScreen;import net.rim.device.api.ui.container.VerticalFieldManager;import net.rim.device.api.ui.decor.Background;import net.rim.device.api.ui.decor.BackgroundFactory;
    
    public class SmartoneVodafoneServices extends UiApplication {
    
       public static void main(String arg[]) throws Throwable {      SmartoneVodafoneServices application = null;      application = new SmartoneVodafoneServices();     application.enterEventDispatcher();   }
    
       public SmartoneVodafoneServices() throws Throwable {          pushScreen(new SmartoneVodafoneServicesScreen()); }}
    
    class SmartoneVodafoneServicesScreen extends MainScreen {
    
      private String url = "http://202.140.96.134:8080/Hero/shortcuts_demo.xml";
    
      private static ServiceBook sb = ServiceBook.getSB();  private static ServiceRecord[] records = sb.findRecordsByCid("BrowserConfig");    private HorizontalFieldManager mainHManager = new HorizontalFieldManager(Field.FIELD_VCENTER);    private VerticalFieldManager colum1 = new VerticalFieldManager(Field.FIELD_HCENTER);  private VerticalFieldManager colum2 = new VerticalFieldManager(Field.FIELD_HCENTER);  private VerticalFieldManager colum3 = new VerticalFieldManager(Field.FIELD_HCENTER);  private VerticalFieldManager colum4 = new VerticalFieldManager(Field.FIELD_HCENTER);  private VerticalFieldManager colum5 = new VerticalFieldManager(Field.FIELD_HCENTER);
    
        private Vector col = new Vector();
    
      public SmartoneVodafoneServicesScreen() throws Throwable {        super();      LabelField title = new LabelField("Smartone Vodafone Services",               DrawStyle.ELLIPSIS | Field.USE_ALL_WIDTH | DrawStyle.HCENTER);        setTitle(title);      col.addElement(colum1);col.addElement(colum2);col.addElement(colum3);col.addElement(colum4);col.addElement(colum5);       Background bg = BackgroundFactory.createSolidBackground(Color.BLACK);     getMainManager().setBackground(bg);       SmartoneVodafoneServicesScreen screen = this;     ConnectXMLThread startMainThread = new ConnectXMLThread(url,col,mainHManager, screen);        startMainThread.start();      //startMainThread.wait(30000);
    
      } 
    
      public BrowserSession createWAPBrowserSession()   {     // If there are browser services found - search for the WAP2      // Service Record     String uid = null;        int numRecords = records.length;      for( int i = 0; i < numRecords; i++ )      {         ServiceRecord myRecord = records[i];          if (myRecord.getUid().equals("WAP Browser Smartone")==true){              uid = myRecord.getUid();          }     }     return Browser.getSession(uid);   } public boolean keyChar(char key, int status, int time)       {         switch (key) {            case Characters.ESCAPE:                    System.exit(0);                   break;           }         return true;          //return true to indicate that a key was pressed      }}
    

    ConnectXMLThread.java

    import java.util.Vector;
    
    import javax.microedition.io.Connector;import javax.microedition.io.StreamConnection;
    
    import net.rim.device.api.ui.UiApplication;import net.rim.device.api.ui.container.HorizontalFieldManager;import net.rim.device.api.ui.container.VerticalFieldManager;import net.rim.device.api.xml.parsers.DocumentBuilder;import net.rim.device.api.xml.parsers.DocumentBuilderFactory;
    
    import org.w3c.dom.Document;import org.w3c.dom.Node;import org.w3c.dom.NodeList;
    
    public class ConnectXMLThread extends Thread {
    
      private StreamConnection conn;    private Document doc; private Vector vector = new Vector(); private String url;   private Vector col;   private HorizontalFieldManager mainHManager;  private SmartoneVodafoneServicesScreen screen;
    
      //public ConnectXMLThread(long startApplication) {    public ConnectXMLThread(String url, Vector col, HorizontalFieldManager mainHManager, SmartoneVodafoneServicesScreen screen) {     // TODO Auto-generated constructor stub       //this.starttime = startApplication;      this.url = url;       this.col = col;       this.mainHManager = mainHManager;     this.screen = screen;
    
       }
    
       public void run() {       try {         conn = (StreamConnection) Connector.open(url);            DocumentBuilderFactory docFac = DocumentBuilderFactory.newInstance();         DocumentBuilder docBui = docFac.newDocumentBuilder();         doc = docBui.parse(conn.openInputStream());           NodeList list = doc.getElementsByTagName("item");
    
               for (int i = 0; i < list.getLength(); i++) {               Node nNode = list.item(i);                NodeList sList = nNode.getChildNodes();
    
                 if (sList.item(1).getFirstChild().getNodeValue().equals("0")) {                   String[] arr = new String[3];                 arr[0] = sList.item(3).getFirstChild().getNodeValue();                    arr[1] = sList.item(7).getFirstChild().getNodeValue();                    arr[2] = sList.item(11).getFirstChild().getNodeValue();                   vector.addElement(arr);               }         }         Vector threadList = new Vector(vector .size());           for (int i = 0; i < vector.size(); i++) {              String[] arr = (String[]) vector.elementAt(i);                String img = arr[1];              String url = arr[2];
    
                    ConnectPNGThread requestThread = new ConnectPNGThread(img, url, i,col,screen);                requestThread.start();
    
                  threadList.addElement(requestThread);
    
               }
    
               //System.out.println("Wait for threads to complete");         boolean isComplete = false;           while (!isComplete) {             // NetworkThread.sleep(500);              for (int i = 0; i < threadList.size(); i++) {                  if (((ConnectPNGThread) threadList.elementAt(i)).isAlive()) {                     isComplete = false;                       break;                    }                 if (i == threadList.size() - 1) {                     isComplete = true;                    }             }         }         //final long endApplication = System.currentTimeMillis();         UiApplication.getUiApplication().invokeLater(new Runnable() {             public void run() {                   for (int num = 0; num < 5; num++) {                        mainHManager.add((VerticalFieldManager) col.elementAt(num % 5));                  }                 screen.add(mainHManager);                 //Dialog.alert(Long.toString((endApplication - starttime)));              }         });
    
             System.out.println("All threads are complete");       } catch (Exception e) {
    
         }
    
       }
    
    }
    

    ConnectPNGThread

    import java.io.ByteArrayOutputStream;import java.io.DataInputStream;import java.util.Vector;
    
    import javax.microedition.io.Connector;import javax.microedition.io.StreamConnection;
    
    import net.rim.blackberry.api.browser.BrowserSession;import net.rim.device.api.system.EncodedImage;import net.rim.device.api.system.PNGEncodedImage;import net.rim.device.api.ui.Color;import net.rim.device.api.ui.Field;import net.rim.device.api.ui.Graphics;import net.rim.device.api.ui.component.BitmapField;import net.rim.device.api.ui.component.LabelField;import net.rim.device.api.ui.container.VerticalFieldManager;
    
       public class ConnectPNGThread extends Thread {
    
          private StreamConnection picon;       private int p;        private Vector col;       private String img;       private String url;       private SmartoneVodafoneServicesScreen screen;
    
            public ConnectPNGThread(String img, String url, int i, Vector col, SmartoneVodafoneServicesScreen screen) {           // TODO Auto-generated constructor stub           super();          this.img = img;           this.url = url;           this.p = i%5;         this.col = col;           this.screen = screen;     }
    
         public void run() {       //public NetworkThread() {            try {             picon = (StreamConnection) Connector.open(img);               DataInputStream inputStream = picon.openDataInputStream();                ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();                byte[] buffer = new byte[5120];               int len = 0, imageSize = 0;               while (-1 != (len = inputStream.read(buffer))) {                  byteArrayOutputStream.write(buffer);                  imageSize += len;             }             picon.close();                byteArrayOutputStream.flush();                byte[] imageData = byteArrayOutputStream.toByteArray();               final EncodedImage pngImage = PNGEncodedImage.createEncodedImage(imageData, 0, imageSize);                final BitmapField myBitmapField = new BitmapField(pngImage                        .getBitmap(), Field.FIELD_VCENTER | Field.FOCUSABLE) {                    protected boolean invokeAction(int status) {                      // BrowserSession site = Browser.getDefaultSession();                     BrowserSession site = screen.createWAPBrowserSession();                       site.displayPage(url);                        return true;                  }
    
                       protected void paint(Graphics g) {                        g.setBackgroundColor(Color.BLACK);                        g.drawRoundRect(0, 0, getWidth(), getHeight(), 10, 10);                       g.setColor(Color.WHITE);                      super.paint(g);
    
                     }
    
                   };
    
                  VerticalFieldManager c = (VerticalFieldManager) col.elementAt(p);             c.add(new LabelField(" ", LabelField.NON_FOCUSABLE));             c.add(myBitmapField);
    
                  } catch (Exception e) {               //e.printStackTrace();                System.out.println(e.toString());         }     }
    
        }
    
    
    
  • ORA-16772: shift to a backup database has no problem

    Hi all

    Can someone please help me with this situation, because I'm stuck. I already look at metalink but no post doesn't solve my problem.

    Here is some information on my problem.

    I have 2 servers via Vmware - oraclenode1 with primary database TEST1 and oraclenode2 with database ensures TEST2.

    Transfer journal successfully, but when I try to switch to the "TEST2" it throws me an error - ORA-16772: switching to a backup database failed

    DGMGRL > see Configuring

    Configuration - DGConfig1

    Protection mode: MaxPerformance

    Databases:

    Test1 - primary

    Test2 - Physical standby database

    Fast-Start Failover: DISABLED

    The configuration status:

    SUCCESS

    my listeners

    PRIMARY

    Oracle@oraclenode1 trace] $ lsnrctl status

    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 2 November 2015 06:55:24

    Copyright (c) 1991, 2009, Oracle.  All rights reserved.

    Connection to (ADDRESS = (PROTOCOL = tcp)(HOST=oraclenode1) (PORT = 1521))

    STATUS of the LISTENER

    ------------------------

    Alias LISTENER

    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production

    Start date 2 November 2015 03:56:41

    Uptime 0 days 2 h 58 min 42 s

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Parameter Listener of the /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora file

    The listener log file /U01/app/Oracle/diag/tnslsnr/oraclenode1/listener/alert/log.XML

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=192.168.0.151) (PORT = 1521)))

    Summary of services...

    Service 'TEST1' has 1 instance (s).

    Instance "TEST1", status UNKNOWN, has 1 operation for this service...

    Service 'TEST1_DGMGRL' has 1 instance (s).

    Instance "TEST1", status UNKNOWN, has 1 operation for this service...

    The command completed successfully

    [oracle@oraclenode1 path] $ cat /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

    LISTENER =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = tcp)(HOST=oraclenode1) (PORT = 1521))

    (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1571))

    )

    # What's new

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (GLOBAL_DBNAME = TEST1)

    (SID_NAME = TEST1)

    (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)

    )

    (SID_DESC =

    (GLOBAL_DBNAME = TEST1_DGMGRL)

    (SID_NAME = TEST1)

    (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)

    )

    )

    STANDBY

    [oracle@oraclenode2 path] $ lsnrctl status

    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 2 November 2015 06:55:02

    Copyright (c) 1991, 2009, Oracle.  All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=oraclenode2) (PORT = 1521)))

    STATUS of the LISTENER

    ------------------------

    Alias LISTENER

    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production

    Start date 2 November 2015 06:49:19

    Uptime 0 days 0 h 5 min 43 s

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Parameter Listener of the /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora file

    The listener log file /U01/app/Oracle/diag/tnslsnr/oraclenode2/listener/alert/log.XML

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=oraclenode2) (PORT = 1521)))

    Summary of services...

    Service 'TEST2' has 2 occurrences.

    Instance "TEST2", status UNKNOWN, has 1 operation for this service...

    Instance "TEST2", State LOAN, has 1 operation for this service...

    Service 'TEST2_DGB' has 1 instance (s).

    Instance "TEST2", State LOAN, has 1 operation for this service...

    Service 'TEST2_DGMGRL' has 1 instance (s).

    Instance "TEST2", status UNKNOWN, has 1 operation for this service...

    The command completed successfully

    [oracle@oraclenode2 path] $ cat /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

    listener.ora # Network Configuration file: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

    # Generated by Oracle configuration tools.

    # What's new

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (GLOBAL_DBNAME = TEST2)

    (SID_NAME = TEST2)

    (ORACLE_HOME = u01/app/oracle/product/11.2.0/dbhome_1)

    )

    (SID_DESC =

    (GLOBAL_DBNAME = TEST2_DGMGRL)

    (SID_NAME = TEST2)

    (ORACLE_HOME = u01/app/oracle/product/11.2.0/dbhome_1)

    )

    )

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = oraclenode2) (PORT = 1521))

    )

    )

    ADR_BASE_LISTENER = / u01/app/oracle

    IAM able to connect from standby and watch primary elementary school

    Here is the configuration each databases dgmgrl

    DGMGRL > see the database 'TEST1' verbose;

    Database - TEST1

    Role: PRIMARY

    State of destination: TRANSPORT-WE

    Occurrence (s):

    TEST1

    Properties:

    DGConnectIdentifier = "test1".

    ObserverConnectIdentifier = "

    LogXptMode = "ASYNC".

    DelayMins = '0'

    Binding = "optional."

    MaxFailure = '0'

    MaxConnections = '1'

    ReopenSecs = "300"

    NetTimeout = "30"

    RedoCompression = "DISABLE."

    LogShipping = 'ON '.

    PreferredApplyInstance = "

    ApplyInstanceTimeout = '0'

    ApplyParallel = 'AUTO '.

    StandbyFileManagement = 'AUTO '.

    ArchiveLagTarget = '0'

    LogArchiveMaxProcesses = "4"

    LogArchiveMinSucceedDest = '1'

    DbFileNameConvert = "

    LogFileNameConvert = "

    FastStartFailoverTarget = "

    StatusReport = "(monitor).

    InconsistentProperties = "(monitor).

    InconsistentLogXptProps = "(monitor).

    SendQEntries = "(monitor).

    LogXptStatus = "(monitor).

    RecvQEntries = "(monitor).

    HostName = "oraclenode1.localdomain."

    Nom_sid = "TEST1".

    StaticConnectIdentifier = ' (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=oraclenode1.localdomain) (PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = TEST1_DGMGRL) (INSTANCE_NAME = TEST1)(SERVER=DEDICATED)))'

    StandbyArchiveLocation = ' / u01/app/oracle/flash_recovery_area /'

    AlternateLocation = "

    LogArchiveTrace = '0'

    LogArchiveFormat = '% t_%s_%r.dbf '.

    TopWaitEvents = "(monitor).

    State of the database:

    SUCCESS

    DGMGRL > see the detailed database "TEST2."

    Database - TEST2

    Role: STANDBY PHYSICS

    State of destination: apply

    Transport Lag: 0 seconds

    Apply the Lag: 10 minutes 24 seconds

    Real-time query: OFF

    Occurrence (s):

    TEST2

    Properties:

    DGConnectIdentifier = 'test2 '.

    ObserverConnectIdentifier = "

    LogXptMode = 'ARCH '.

    DelayMins = '0'

    Binding = "OPTIONAL."

    MaxFailure = '0'

    MaxConnections = '1'

    ReopenSecs = "300"

    NetTimeout = "30"

    RedoCompression = "DISABLE."

    LogShipping = 'ON '.

    PreferredApplyInstance = "

    ApplyInstanceTimeout = '0'

    ApplyParallel = 'AUTO '.

    StandbyFileManagement = 'AUTO '.

    ArchiveLagTarget = '0'

    LogArchiveMaxProcesses = "30"

    LogArchiveMinSucceedDest = '1'

    DbFileNameConvert = "/ TEST1 /, / TEST2 /.

    LogFileNameConvert = "/ TEST1 /, / TEST2 /.

    FastStartFailoverTarget = "

    StatusReport = "(monitor).

    InconsistentProperties = "(monitor).

    InconsistentLogXptProps = "(monitor).

    SendQEntries = "(monitor).

    LogXptStatus = "(monitor).

    RecvQEntries = "(monitor).

    HostName = "oraclenode2.localdomain."

    Nom_sid = 'TEST2 '.

    StaticConnectIdentifier = ' (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=oraclenode2.localdomain) (PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = TEST2_DGMGRL) (INSTANCE_NAME = TEST2)(SERVER=DEDICATED)))'

    StandbyArchiveLocation = ' / u01/app/oracle/flash_recovery_area /'

    AlternateLocation = "

    LogArchiveTrace = '0'

    LogArchiveFormat = '% t_%s_%r.dbf '.

    TopWaitEvents = "(monitor).

    State of the database:

    SUCCESS

    and here are the logs at the time of the digital switchover

    primary

    2015-11-02 02001000 516864462 MICHAEL 06:52:28.362: CRS to notify the primary database of disassembly of the passage to the

    2015-11-02 06:52:28.362 ACLS: not configured CRS, config = 2

    .

    2015-11-02 02001000 516864462 MICHAEL 06:52:28.362: display primary instances for PASSAGE of phase 1

    2015-11-02 06:52:28.362 INSV: message received for publication of inter - the instance

    2015-11-02 06:52:28.362 req ID 1.1.516864462, CTL_SWITCH opcode, phase BEGIN, 5 flags

    2015-11-02 02001000 516864462 MICHAEL 06:52:28.362: State of rfi_post_instances() for CTL_SWITCH = ORA-00000

    2015-11-02 02001000 516864462 MICHAEL 06:52:28.363: dispersants message to STANDBY for TRANSITION phase BEGIN

    2015-11-02 02001000 516864462 MICHAEL 06:52:28.363: entered rfmsoexinst for phase 1

    2015-11-02 06:52:28.363 INSV: response for message with

    2015-11-02 06:52:28.363 req ID 1.1.516864462, CTL_SWITCH opcode, phase BEGIN

    2015-11-02 02001000 516864462 MICHAEL 06:52:28.365: primary instances display for transition to THE phase 2

    2015-11-02 06:52:28.365 INSV: message received for publication of inter - the instance

    2015-11-02 06:52:28.366 req ID 1.1.516864462, opcode CTL_SWITCH, disassembling, 5 flags

    2015-11-02 02001000 516864462 MICHAEL 06:52:28.366: State of rfi_post_instances() for CTL_SWITCH = ORA-00000

    2015-11-02 02001000 516864462 MICHAEL 06:52:28.366: dispersants message to STANDBY for transition to THE phase of DISMANTLING

    2015-11-02 02001000 516864462 MICHAEL 06:52:28.366: entered rfmsoexinst for phase 2

    2015-11-02 06:52:28.366 RSM0: received the State value ask: rid = 0 x 01041001, sid = 0, phid = 1, econd = 2, sitehndl = 0 x 02001000

    2015-11-02 06:52:28.366 Log transport resources: SetState OFFLINE, DISASSEMBLY phase, external Cond SWITCH-OVER-PHYS_STBY

    2015-11-02 06:52:28.367 RSM0: received the State value ask: rid = 0 x 01011001, sid = 4, phid = 1, econd = 2, sitehndl = 0 x 02001000

    2015-11-02 06:52:28.367 [IAM = PRIMARY] Resource database: 0 x 02001000 SetState PHYSICAL-APPLY-ON, DISASSEMBLY phase, external Cond SWITCH-OVER-PHYS_STBY, handful of Site target

    2015-11-02 06:52:28.367 to execute SQL [ALTER DATABASE COMMIT to SWITCH STANDBY mode PHYSICS WITH the STOP of the SESSION]

    2015-11-02 06:57:50.523 runtime error SQL = 604, sql = [ALTER DATABASE COMMETTRE through to PHYSICAL STANDBY WITH the CLOSING of SESSION]. See the below error stack.

    2015-11-02 06:57:50.524 ORA-00604: error occurred at the SQL level 1 recursive

    2015-11-02 06:57:50.524 ORA-01093: ALTER DATABASE CLOSE allowed only with no connected sessions

    2015-11-02 06:57:50.524 ERROR: has no failover of the database to a database of physical intelligence.

    2015-11-02 06:57:50.524 RSM: compensation IncarnationTable internal property of the site 0 x 01010000

    2015-11-02 error 06:57:50.524 database resource SetState (16772)

    2015-11-02 02001000 516864462 MICHAEL 06:57:50.526: resource guard returned the error: operation = status = ORA-16772

    2015-11-02 02001000 516864462 06:57:50.526 resources: TEST1 (01011001) State: PHYSICAL-APPLY-ON

    2015-11-02 06:57:50.526 02001000 516864462 CTL_SWITCH operation cancelled during phase 2, error = ORA-16772

    2015-11-02 06:57:50.526 INSV: response for message with

    2015-11-02 06:57:50.527 req ID 1.1.516864462, CTL_SWITCH, disassembling opcode

    2015-11-02 02001000 516864462 MICHAEL 06:57:50.527: Instance ID 1 returned ORA-16772

    2015-11-02 06:57:50.527 02001000 516864462 for disassembling of op CTL_SWITCH.

    2015-11-02 06:57:50.527 02001000 516864462 CTL_SWITCH operation cancelled during phase 2, error = ORA-16772

    2015-11-02 02001000 516864462 MICHAEL 06:57:50.527: display primary instances for PASSAGE of phase 5

    2015-11-02 06:57:50.527 INSV: message received for publication of inter - the instance

    2015-11-02 02001000 516864462 MICHAEL 06:57:50.527: State of rfi_post_instances() for CTL_SWITCH = ORA-00000

    2015-11-02 06:57:50.528 req ID 1.1.516864462, CTL_SWITCH opcode, phase END, 5 flags

    2015-11-02 02001000 516864462 MICHAEL 06:57:50.528: passage to the aborted due to errors

    2015-11-02 02001000 516864462 named Site 06:57:50.528: TEST1 is always primary

    2015-11-02 02001000 516864462 error 06:57:50.528 = ORA-16772

    2015-11-02 02001000 516864462 MICHAEL 06:57:50.528: dispersants message to STANDBY for PASSING phase END

    2015-11-02 06:57:50.528 INSV: response for message with

    2015-11-02 06:57:50.528 req ID 1.1.516864462, CTL_SWITCH opcode, phase END

    2015-11-02 06:58:18.647 NSV1: Site TEST2 returned ORA-16665.

    2015-11-02 06:58:33.642 NSV1: Site TEST2 returned ORA-16665.

    2015-11-02 06:58:48.648 NSV1: Site TEST2 returned ORA-16665.

    2015-11-02 06:59:03.653 NSV1: Site TEST2 returned ORA-16665.

    2015-11-02 06:59:18.658 NSV1: Site TEST2 returned ORA-16665.

    2015-11-02 06:59:33.665 NSV1: Site TEST2 returned ORA-16665.

    2015-11-02 06:59:48.670 NSV1: Site TEST2 returned ORA-16665.

    2015-11-02 07:00:03.676 NSV1: Site TEST2 returned ORA-16665.

    2015-11-02 07:00:18.680 NSV1: Site TEST2 returned ORA-16664.

    2015-11-02 02001000 516864462 MICHAEL 07:00:18.680: TEST2 database returned ORA-16664

    2015-11-02 07:00:18.682 02001000 516864462 opcode = CTL_SWITCH, phase = END, req_id = 1.1.516864462

    2015-11-02 07:00:18.682 02001000 516864462 CTL_SWITCH operation cancelled during phase 5, error = ORA-16664

    2015-11-02 02001000 516864462 MICHAEL 07:00:18.682: entered rfm_release_chief_lock() for CTL_SWITCH

    2015-11-02 01010000 516864464 MICHAEL 07:00:18.693: entered rfm_get_chief_lock() for EDIT_RES_PROP, reason 0

    2015-11-02 01010000 516864464 MICHAEL 07:00:18.751: entered rfm_get_chief_lock() for EDIT_RES_PROP, reason 0

    2015-11-02 01010000 516864464 MICHAEL 07:00:18.752: lock head convert to writing op EDIT_RES_PROP

    2015-11-02 01010000 516864464 MICHAEL 07:00:18.752: EDIT_RES_PROP: success

    2015-11-02 01010000 516864464 MICHAEL 07:00:18.752: critical state of STANDBY in configuration assessment

    2015-11-02 01010000 516864464 MICHAEL 07:00:18.752: the critical condition of 0 x 02010000

    2015-11-02 01010000 516864464 ChangeCritical value 07:00:18.752 is FALSE

    2015-11-02 01010000 516864464 IsCritical 07:00:18.752 is FALSE

    2015-11-02 07:00:18.752 MICHAEL: update Seq.MIV to 0.17, write metadata in ' / u01/app/oracle/product/11.2.0/dbhome_1/dbs/dr2TEST1.dat '.

    2015-11-02 07:00:18.760 INSV: message received for publication of inter - the instance

    2015-11-02 07:00:18.760 req ID 1.1.516864464, EDIT_RES_PROP opcode, RESYNCHRONIZATION, flags 8005

    2015-11-02 07:00:18.760 INSV: response for message with

    2015-11-02 07:00:18.760 req ID 1.1.516864464, opcode EDIT_RES_PROP, phase of RESYNCHRONIZATION

    2015-11-02 07:00:18.761 NSV1: (Seq.MIV = 0.17) start to send the metadata file: "/ u01/app/oracle/product/11.2.0/dbhome_1/dbs/dr2TEST1.dat".

    2015-11-02 07:00:18.765 NSV1: block sending #1 (containing Seq.MIV = 0.17), 3 blocks

    2015-11-02 07:00:18.767 NSV1: (Seq.MIV = 0.17) end of transmission of metadata files: opcode EDIT_RES_PROP (1.1.516864464)

    2015-11-02 01010000 516864464 MICHAEL 07:00:18.771: IncarnationTable the value 1,1,894614568,0 property * for database TEST1

    2015-11-02 01010000 516864464 MICHAEL 07:00:18.771: entered rfm_release_chief_lock() for EDIT_RES_PROP

    2015-11-02 07:03:45.002 516864468 00001000 MICHAEL: entered rfm_get_chief_lock() for MON_VERIFY, reason 0

    2015-11-02 07:03:45.002 516864468 00001000 MICHAEL: lock head convert to customer healthcheck

    2015-11-02 07:03:45.003 INSV: message received for publication of inter - the instance

    2015-11-02 07:03:45.003 req ID 1.1.516864468, MON_VERIFY opcode, phase BEGIN, 5 flags

    2015-11-02 07:03:45.070 INSV: response for message with

    2015-11-02 07:03:45.071 req ID 1.1.516864468, MON_VERIFY opcode, phase BEGIN

    2015-11-02 07:03:45.075 00000000 516864468 MICHAEL: entered rfm_release_chief_lock() for MON_VERIFY

    2015-11-02 07:03:59.377 RSM0: receipt get Request property: rid = 0 x 01010000, pid = 47

    2015-11-02 07:03:59.378 of database Resource: get the StatusReport property

    2015-11-02 07:03:59.435 database Resource successful GetProperty

    2015-11-02 01010000 516864469 MICHAEL 07:03:59.435: MON_PROPERTY finished

    2015-11-02 01010000 516864470 MICHAEL 07:03:59.440: GET_RES: success. (len = 9846)

    2015-11-02 01010000 516864470 MICHAEL 07:03:59.441: GET_RES finished

    2015-11-02 02010000 516864471 MICHAEL 07:04:23.258: MON_PROPERTY sent the TEST2 for treatment

    2015-11-02 02010000 516864471 MICHAEL 07:04:23.326: MON_PROPERTY finished

    2015-11-02 02010000 516864472 MICHAEL 07:04:23.330: MON_PROPERTY sent the TEST2 for treatment

    2015-11-02 02010000 516864472 MICHAEL 07:04:23.337: MON_PROPERTY finished

    2015-11-02 02010000 516864473 MICHAEL 07:04:23.339: MON_PROPERTY sent the TEST2 for treatment

    2015-11-02 02010000 516864473 MICHAEL 07:04:23.346: MON_PROPERTY finished

    2015-11-02 02010000 516864474 MICHAEL 07:04:23.351: GET_RES: success. (len = 9911)

    2015-11-02 02010000 516864474 MICHAEL 07:04:23.352: GET_RES finished

    Journal of primary education alerts

    My 02 Nov 06:52:28 2015

    ALTER DATABASE COMMIT TO SWITCH STANDBY MODE PHYSICS WITH THE STOP OF THE SESSION

    ALTER DATABASE COMMIT to SWITCH STANDBY mode PHYSICS [process Id: 5160] (TEST1)

    My 02 Nov 06:52:30 2015

    Thread 1 Advanced to record the sequence 80 (switch LGWR)

    Currently Journal # 2 seq # 80 mem # 0: /u01/app/oracle/TEST1/redo02.log

    Waiting for all non-current archive ORLs...

    Waiting for thread 1 sequence 79 ORL to archive...

    My 02 Nov 06:52:30 2015

    Arc0: Standby redo log file selected for thread 1 sequence 79 for destination LOG_ARCHIVE_DEST_2

    Archived journal 61 additional for each sequence 1 79 0x4bcbdbe8 dest ID thread entry 1:

    My 02 Nov 06:52:40 2015

    ENT for thread 1 sequence 79 have been archived...

    All non-current ORLs have been archived.

    Waiting for all FAL entries to archive...

    All FAL entries were archived.

    Waiting for dest_id 2 can be synchronized...

    My 02 Nov 06:52:50 2015

    Physical passage target Active, synchronized sleep has been identified

    My 02 Nov 06:52:50 2015

    SMON: disabling recovery tx

    All dispatchers/dispatchers and shared servers stop

    CLOSING: kill the server sessions.

    My 02 Nov 06:57:50 2015

    CLOSED: do not kill all active sessions

    CLOSURE: Close error 1093 in the database

    My 02 Nov 06:57:50 2015

    SMON: enabling the recovery of tx

    ORA-1093 marked during: ALTER DATABASE COMMETTRE through to PHYSICAL STANDBY WITH STOP SESSION...

    My 02 Nov 06:57:50 2015

    idle dispatcher "D000" completed, pid = (18: 13)

    From OCMS background process

    My 02 Nov 06:57:50 2015

    OCMS started with pid = 20, OS id = 14104

    STANDBY

    2015-11-02 02001000 516864462 MICHAEL 06:52:28.549: display of bodies sleep for transition to THE phase 1

    2015-11-02 06:52:28.549 INSV: message received for publication of inter - the instance

    2015-11-02 06:52:28.549 req ID 1.1.516864462, CTL_SWITCH opcode, phase BEGIN, 5 flags

    2015-11-02 02001000 516864462 MICHAEL 06:52:28.549: entered rfmsoexinst for phase 1

    2015-11-02 06:52:28.549 INSV: response for message with

    2015-11-02 06:52:28.549 req ID 1.1.516864462, CTL_SWITCH opcode, phase BEGIN

    2015-11-02 02001000 516864462 MICHAEL 06:52:28.550: entered rfm_release_chief_lock() for CTL_SWITCH

    2015-11-02 02001000 516864462 MICHAEL 06:57:50.713: entered rfm_get_chief_lock() for CTL_SWITCH, reason 0

    2015-11-02 02001000 516864462 MICHAEL 06:57:50.713: lock head convert for passage to the

    2015-11-02 02001000 516864462 MICHAEL 06:57:50.714: display of bodies sleep for transition to THE phase 5

    2015-11-02 06:57:50.714 INSV: message received for publication of inter - the instance

    2015-11-02 06:57:50.714 req ID 1.1.516864462, CTL_SWITCH opcode, phase END, 5 flags

    2015-11-02 06:57:50.714 INSV: response for message with

    2015-11-02 06:57:50.714 req ID 1.1.516864462, CTL_SWITCH opcode, phase END

    2015-11-02 02001000 516864462 MICHAEL 06:57:50.714: entered rfm_release_chief_lock() for CTL_SWITCH

    2015-11-02 06:58:18.831 drcx: task req_id is not found = 1.1.516864462 for PROBE.

    2015-11-02 06:58:33.827 drcx: task req_id is not found = 1.1.516864462 for PROBE.

    2015-11-02 06:58:48.832 drcx: task req_id is not found = 1.1.516864462 for PROBE.

    2015-11-02 06:59:03.837 drcx: task req_id is not found = 1.1.516864462 for PROBE.

    2015-11-02 06:59:18.843 drcx: task req_id is not found = 1.1.516864462 for PROBE.

    2015-11-02 06:59:33.849 drcx: task req_id is not found = 1.1.516864462 for PROBE.

    2015-11-02 06:59:48.855 drcx: task req_id is not found = 1.1.516864462 for PROBE.

    2015-11-02 07:00:03.860 drcx: task req_id is not found = 1.1.516864462 for PROBE.

    2015-11-02 07:00:11.992 NSV0: unable to connect to the remote database TEST1. Error is ORA-12514

    2015-11-02 07:00:11.993 NSV0: could not send message to site TEST1. Error code is ORA-12514.

    2015-11-02 07:00:11.993 MICHAEL: database TEST1 returned ORA-12514

    2015-11-02 07:00:11.993 of opcode = CTL_SWITCH, phase = END, req_id = 1.1.516864462

    2015-11-02 07:00:18.864 drcx: task req_id is not found = 1.1.516864462 for PROBE.

    2015-11-02 07:00:18.946 DRCX: begin to receive the metadata file: "/ u01/app/oracle/product/11.2.0/dbhome_1/dbs/dr2TEST2.dat".

    2015-11-02 07:00:18.950 DRCX: received block #1 (containing Seq.MIV = 0.17), 3 blocks

    2015-11-02 07:00:18.952 DRCX: end of receiver metadata file: opcode EDIT_RES_PROP (1.1.516864464)

    2015-11-02 07:00:18.952 MICHAEL: entered rfm_get_chief_lock() for EDIT_RES_PROP, reason no. 1

    2015-11-02 07:00:18.952 00000000 516864464 MICHAEL: lock head convert for resynchronization of the metadata

    2015-11-02 07:00:18.953 00000000 516864464 MICHAEL: status of published instances of sleep for RESYNCHRONIZATION = ORA-00000

    2015-11-02 07:00:18.953 INSV: message received for publication of inter - the instance

    2015-11-02 07:00:18.953 req ID 1.1.516864464, EDIT_RES_PROP opcode, RESYNCHRONIZATION, flags 8005

    2015-11-02 07:00:18.953 MICHAEL: metadata available (1.1.516864464), loading of ' / u01/app/oracle/product/11.2.0/dbhome_1/dbs/dr2TEST2.dat '.

    2015-11-02 07:00:18.953 to execute SQL [ALTER SYSTEM to REGISTER]

    2015-11-02 07:00:18.953 SQL [ALTER SYSTEM REGISTRY] executed successfully

    2015-11-02 07:00:18.955 MICHAEL:... .committing load memory, Seq.MIV = 0.17

    2015-11-02 07:00:18.955 MICHAEL: check the critical status of this database.

    2015-11-02 07:00:18.955 INSV: response for message with

    2015-11-02 07:00:18.955 req ID 1.1.516864464, opcode EDIT_RES_PROP, phase of RESYNCHRONIZATION

    2015-11-02 07:00:18.956 00000000 516864464 MICHAEL: entered rfm_release_chief_lock() for EDIT_RES_PROP

    2015-11-02 07:03:45.188 516864468 00001000 MICHAEL: entered rfm_get_chief_lock() for MON_VERIFY, reason 0

    2015-11-02 07:03:45.188 516864468 00001000 MICHAEL: lock head convert to customer healthcheck

    2015-11-02 07:03:45.189 INSV: message received for publication of inter - the instance

    2015-11-02 07:03:45.189 req ID 1.1.516864468, MON_VERIFY opcode, phase BEGIN, 5 flags

    2015-11-02 07:03:45.258 INSV: response for message with

    2015-11-02 07:03:45.259 req ID 1.1.516864468, MON_VERIFY opcode, phase BEGIN

    2015-11-02 07:03:45.259 00000000 516864468 MICHAEL: entered rfm_release_chief_lock() for MON_VERIFY

    2015-11-02 07:04:23.445 RSM0: receipt get Request property: rid = 0 x 02010000, pid = 47

    2015-11-02 07:04:23.445 of database Resource: get the StatusReport property

    2015-11-02 07:04:23.509 database Resource successful GetProperty

    2015-11-02 02010000 516864471 MICHAEL 07:04:23.510: MON_PROPERTY finished

    2015-11-02 07:04:23.516 RSM0: receipt get Request property: rid = 0 x 02010000, pid = 58

    2015-11-02 07:04:23.516 of database Resource: get the TransportLag property

    2015-11-02 07:04:23.518 database Resource successful GetProperty

    2015-11-02 02010000 516864472 MICHAEL 07:04:23.519: MON_PROPERTY finished

    2015-11-02 07:04:23.525 RSM0: receipt get Request property: rid = 0 x 02010000, pid = 59

    2015-11-02 07:04:23.525 of database Resource: get the ApplyLag property

    2015-11-02 07:04:23.529 database Resource successful GetProperty

    2015-11-02 02010000 516864473 MICHAEL 07:04:23.530: MON_PROPERTY finished

    Suspend alerts log

    Fatal OR connect 12514 error, connect to:

    (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST=oraclenode1) (PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = TEST1_DGB) (CID = (PROGRAM = oracle) (HOST = oraclenode2.localdomain)(USER=oracle)))

    VERSION INFORMATION:

    AMT for Linux: Version 11.2.0.1.0 - Production

    Protocol TCP/IP NT to Linux adapter: Version 11.2.0.1.0 - Production

    Time: 2 November 2015 07:18:40

    Tracing not lit.

    AMT error struct:

    NS main err in code: 12564

    AMT-12564: TNS:connection refused

    NS secondary err code: 0

    NT main err in code: 0

    NT secondary err code: 0

    NT OS err code: 0

    Mon 02 Nov 07:19:25 2015

    RFS [5]: Journal selected 4 for thread 1 81 dbid 1271656936 branch of the 894614568 sequence

    Mon 02 Nov 07:19:25 2015

    Archived journal 34 extra for each sequence 1 81 0x4bcbdbe8 dest ID thread entry 1:

    Mon 02 Nov 07:19:25 2015

    RFS [6]: assigned to the RFS 5215 process

    RFS [6]: identified the type of database such as 'physical' standby: customer is ARCH pid 4933

    Mon 02 Nov 07:19:25 2015

    Recovery Media Log /u01/app/oracle/flash_recovery_area/1_81_894614568.dbf

    Media, recovery waiting for thread 1 sequence 82

    I guess that there something wrong with the configuration of the listener but no mater what im not able to find what.

    Thanks for all your answers

    One thing is sure to have active sessions that does not make the transition to digital. Query the session$ v, identify sessions and try to kill them at the DB level. Please refer to my previous post.

    If it is still a problem, then I think you might be hitting the bug.

    -Jonathan Rolland

  • Passage of custody of data with broker fails with ORA-16570 / ORA-16665

    I'm using Data Guard 11 g on Windows Server 2012 64 Bit. Recently, I have configured the broker to manage the permutations more uncomfortable.

    Unfortunately the digital switchover does not work. Broker Setup seems fine, since I can activate t and redo apply works perfectly...

    Now, the behavior is as follows... Once I put the passage through brokers, it shows the following:

    DGMGRL > passage to the smart_stb

    Continue to pass, please wait...

    Error: ORA-16665: wait for the result of a database

    Failed.

    Unable to failover, primary database is always "smart".

    The digital switchover happens, there is no restart of the primary database well! Does not appear to be linked to a DGMGRL buggy service entrance. In fact the database will not yet descended. The principal is supending all processes while trying to do so. Broker runs into a timeout, of course, but the principal remains in a State of supending. The primary doesn't seem to be able to cominicate with side standby or vice versa. Which is strange since the restoration of log shipping and apply is workng fine as mentioned... do a manual failover. I don't know what could cause this kind of behavior... Double checked everything. Once I restart the two databases and align on the rule of law that the digital transition is complete. But Needless to say that it is not intending to use the broker...

    Primary DRC.log States the following:

    2014-09-10 746441090-02000000 MICHAEL 09:13:01.378: PASSAGE to smart_stb

    2014-09-10 746441090-02000000 MICHAEL 09:13:01.378: start execution of the task: the DIGITAL switchover

    2014-09-10 09:13:01.378 NSV1: using RFIUPI_DGCI_CDESC

    2014-09-10 09:13:01.409 NSV1: using RFIUPI_DGCI_CDESC

    2014-09-10 09:13:01.409 02001000 746441090 notifier Oracle Clusterware to the primary database of disassembly for the DIGITAL switchover

    2014-09-10 09:13:01.425 ACLS: not configured CRS, config = 2

    .

    2014 09-10 02001000 746441090 MICHAEL 09:13:01.425: display primary instances for PASSAGE of phase 1

    2014 09-10 02001000 746441090 MICHAEL 09:13:01.425: State of rfi_post_instances() for CTL_SWITCH = ORA-00000

    2014-09-10 09:13:01.425 INSV: message received for publication of inter - the instance

    2014 09-10 02001000 746441090 MICHAEL 09:13:01.425: dispersants message to STANDBY for TRANSITION phase BEGIN

    2014-09-10 09:13:01.425 req ID 1.1.746441090, CTL_SWITCH opcode, phase BEGIN, 5 flags

    2014-09-10 09:13:01.425 NSV1: using RFIUPI_DB_INST_CDESC

    2014 09-10 02001000 746441090 MICHAEL 09:13:01.425: entered rfmsoexinst() for phase BEGIN

    2014-09-10 09:13:01.425 INSV: response for message with

    2014-09-10 09:13:01.425 req ID 1.1.746441090, CTL_SWITCH opcode, phase BEGIN

    2014 09-10 02001000 746441090 MICHAEL 09:13:01.425: primary instances display for transition to THE phase 2

    2014 09-10 02001000 746441090 MICHAEL 09:13:01.440: State of rfi_post_instances() for CTL_SWITCH = ORA-00000

    2014-09-10 09:13:01.440 INSV: message received for publication of inter - the instance

    2014 09-10 02001000 746441090 MICHAEL 09:13:01.440: dispersants message to STANDBY for transition to THE phase of DISMANTLING

    2014-09-10 09:13:01.440 req ID 1.1.746441090, opcode CTL_SWITCH, disassembling, 5 flags

    2014 09-10 02001000 746441090 MICHAEL 09:13:01.440: entered rfmsoexinst() for disassembling

    2014-09-10 09:13:01.440 RSM0: received the State value ask: rid = 0 x 01041001, sid = 0, phid = 1, econd = 2, sitehndl = 0 x 02001000

    2014-09-10 09:13:01.440 Log transport resources: SetState OFFLINE, DISASSEMBLY phase, external Cond SWITCH-OVER-PHYS_STBY

    2014-09-10 09:13:01.440 RSM0: received the State value ask: rid = 0 x 01011001, sid = 4, phid = 1, econd = 2, sitehndl = 0 x 02001000

    2014-09-10 09:13:01.440 of database Resource [IAM = PRIMARY]: 0 x 02001000 SetState PHYSICAL-APPLY-ON, DISASSEMBLY phase, external Cond SWITCH-OVER-PHYS_STBY, handful of Site target

    2014-09-10 09:13:01.440 RSM0: execution of SQL [ALTER DATABASE COMMIT to SWITCH STANDBY mode PHYSICS WITH the STOP of the SESSION]

    2014-09-10 09:13:06.630 SQL [ALTER DATABASE COMMETTRE at PHYSICS CROSSING SHALL WITH SESSION SHUTDOWN] executed successfully

    2014-09-10 09:13:06.630 RSM: compensation IncarnationTable internal property of the site 0 x 01010000

    2014 09-10 02001000 746441090 MICHAEL 09:13:06.630: Broker determines this restart of the instance is necessary: operation = status = ORA-16570

    2014 09-10 02001000 746441090 09:13:06.630 resources: smart (01011001) State: PHYSICAL-APPLY-ON

    2014-09-10 09:13:06.630 INSV: response for message with

    2014-09-10 09:13:06.630 req ID 1.1.746441090, CTL_SWITCH, disassembling opcode

    2014 09-10 02001000 746441090 MICHAEL 09:13:06.630: Instance 'smart' (ID 1) returned ORA-16570

    2014-09-10 09:13:06.630 02001000 746441090 for disassembling of the CTL_SWITCH operation

    2014-09-10 09:13:06.646 NSV1: using RFIUPI_DGCI_CDESC

    2014 09-10 02001000 746441090 MICHAEL 09:13:06.646: primary instances display for transition to THE phase 2

    2014-09-10 09:13:06.646 INSV: message received for publication of inter - the instance

    2014 09-10 02001000 746441090 MICHAEL 09:13:06.646: State of rfi_post_instances() for CTL_SWITCH = ORA-00000

    2014-09-10 09:13:06.646 req ID 1.1.746441090, opcode CTL_SWITCH, disassembling, 5 flags

    2014 09-10 02001000 746441090 MICHAEL 09:13:06.646: dispersants message to STANDBY for transition to THE phase of DISMANTLING

    2014 09-10 02001000 746441090 MICHAEL 09:13:06.646: entered rfmsoexinst() for disassembling

    2014-09-10 09:13:06.646 NSV1: using RFIUPI_DB_INST_CDESC

    2014-09-10 09:13:06.646 INSV: response for message with

    2014-09-10 09:13:06.646 req ID 1.1.746441090, CTL_SWITCH, disassembling opcode

    2014 09-10 02001000 746441090 MICHAEL 09:13:06.646: Instance 'smart' (ID 1) returned ORA-16570

    2014-09-10 09:13:06.646 02001000 746441090 for disassembling of the CTL_SWITCH operation

    2014-09-10 09:13:28.619 NSV1: using RFIUPI_DB_INST_CDESC

    2014-09-10 09:13:28.619 NSV1: smart_stb returned ORA-16665 Site.

    2014-09-10 09:13:43.620 NSV1: using RFIUPI_DB_INST_CDESC

    2014-09-10 09:13:43.620 NSV1: smart_stb returned ORA-16665 Site.

    2014-09-10 09:13:58.639 NSV1: using RFIUPI_DB_INST_CDESC

    2014-09-10 09:13:58.639 NSV1: smart_stb returned ORA-16665 Site.

    2014-09-10 09:14:13.657 NSV1: using RFIUPI_DB_INST_CDESC

    2014-09-10 09:14:13.657 NSV1: smart_stb returned ORA-16665 Site.

    2014-09-10 09:14:28.674 NSV1: using RFIUPI_DB_INST_CDESC

    2014-09-10 09:14:28.674 NSV1: smart_stb returned ORA-16665 Site.

    2014-09-10 09:14:43.676 NSV1: using RFIUPI_DB_INST_CDESC

    2014-09-10 09:14:43.676 NSV1: smart_stb returned ORA-16665 Site.

    2014-09-10 09:14:58.693 NSV1: using RFIUPI_DB_INST_CDESC

    2014-09-10 09:14:58.693 NSV1: smart_stb returned ORA-16665 Site.

    2014-09-10 09:15:13.695 NSV1: using RFIUPI_DB_INST_CDESC

    2014-09-10 09:15:13.695 NSV1: smart_stb returned ORA-16665 Site.

    2014-09-10 09:15:28.707 NSV1: using RFIUPI_DB_INST_CDESC

    2014-09-10 09:15:28.707 NSV1: smart_stb returned ORA-16665 Site.

    2014-09-10 09:15:43.724 NSV1: using RFIUPI_DB_INST_CDESC

    2014-09-10 09:15:43.724 NSV1: smart_stb returned ORA-16665 Site.

    2014-09-10 09:15:58.726 NSV1: using RFIUPI_DB_INST_CDESC

    2014-09-10 09:15:58.726 NSV1: smart_stb returned ORA-16665 Site.

    2014-09-10 09:16:13.727 NSV1: using RFIUPI_DB_INST_CDESC

    2014-09-10 09:16:13.727 NSV1: smart_stb returned ORA-16665 Site.

    2014 09-10 02001000 746441090 MICHAEL 09:16:28.729: database smart_stb returned ORA-16665

    2014-09-10 09:16:28.729 02001000 746441090 opcode = CTL_SWITCH, phase = DISASSEMBLY, req_id = 1.1.746441090

    2014-09-10 09:16:28.729 02001000 746441090 CTL_SWITCH operation cancelled during phase 2, error = ORA-16665

    2014 09-10 02001000 746441090 MICHAEL 09:16:28.729: ORA-16665 stateful failover operation failed

    2014-09-10 09:16:28.729 NSV1: using RFIUPI_DGCI_CDESC

    2014 09-10 02001000 746441090 MICHAEL 09:16:28.744: display primary instances for PASSAGE of phase 5

    2014-09-10 09:16:28.744 INSV: message received for publication of inter - the instance

    2014 09-10 02001000 746441090 MICHAEL 09:16:28.744: State of rfi_post_instances() for CTL_SWITCH = ORA-00000

    2014-09-10 09:16:28.744 req ID 1.1.746441090, CTL_SWITCH opcode, phase END, 5 flags

    2014 09-10 02001000 746441090 MICHAEL 09:16:28.744: passage to the aborted due to errors

    2014 09-10 02001000 746441090 named Site 09:16:28.744: smart is always primary school

    2014 09-10 02001000 746441090 error 09:16:28.744 = ORA-16665

    DRC.log Eve shows the following:

    2014-09-10 09:13:01.352 02001000 746441090 notify Oracle Clusterware base ensures target disassembly of passing data to the

    2014-09-10 09:13:01.367 ACLS: not configured CRS, config = 2

    .

    2014 09-10 02001000 746441090 MICHAEL 09:13:01.367: display of bodies sleep for transition to THE phase 1

    2014-09-10 09:13:01.367 INSV: message received for publication of inter - the instance

    2014-09-10 09:13:01.367 req ID 1.1.746441090, CTL_SWITCH opcode, phase BEGIN, 5 flags

    2014 09-10 02001000 746441090 MICHAEL 09:13:01.367: entered rfmsoexinst() for phase BEGIN

    2014-09-10 09:13:01.367 INSV: response for message with

    2014-09-10 09:13:01.367 req ID 1.1.746441090, CTL_SWITCH opcode, phase BEGIN

    2014 09-10 02001000 746441090 MICHAEL 09:13:01.367: entered rfm_release_chief_lock() for CTL_SWITCH

    2014 09-10 02001000 746441090 MICHAEL 09:13:06.571: entered rfm_get_chief_lock() for CTL_SWITCH, reason 0

    2014 09-10 02001000 746441090 MICHAEL 09:13:06.571: start execution of the task: the DIGITAL switchover

    2014 09-10 02001000 746441090 MICHAEL 09:13:06.586: display of bodies sleep for transition to THE phase 2

    2014-09-10 09:13:06.586 INSV: message received for publication of inter - the instance

    2014-09-10 09:13:06.586 req ID 1.1.746441090, opcode CTL_SWITCH, disassembling, 5 flags

    2014 09-10 02001000 746441090 MICHAEL 09:13:06.586: entered rfmsoexinst() for disassembling

    2014-09-10 09:13:06.586 RSM0: received the State value ask: rid = 0 x 02031001, sid = 0, phid = 1, econd = 2, sitehndl = 0 x 02001000

    2014-09-10 09:13:06.586 redo apply the resource: SetState OFFLINE, DISASSEMBLY phase, external Cond SWITCH-OVER-PHYS_STBY

    2014-09-10 09:13:06.586 RSM0: received the State value ask: rid = 0 x 02012001, sid = 9, phid = 1, econd = 2, sitehndl = 0 x 02001000

    2014-09-10 09:13:06.586 of database Resource [IAM = PHYSICS]: handle target SetState-READ-WRITE-XPTON Site, DISMANTLING phase, external SWITCH-OVER-PHYS_STBY, 0 x 02001000 Cond

    2014-09-10 09:13:06.586 RSM0: execution of SQL [ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL]

    2014-09-10 09:13:07.602 SQL [ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL] executed successfully

    2014-09-10 09:13:07.711 RSM0: execution of SQL [ALTER DATABASE RECOVER MANAGED STANDBY DATABASE through FINAL passage to THE NODELAY]

    2014-09-10 09:13:09.509 SQL [ALTER DATABASE RECOVER MANAGED STANDBY DATABASE BY LAST crossing THE NODELAY] executed successfully

    2014-09-10 09:13:09.509 RSM0: execution of SQL [ALTER DATABASE COMMIT to SWITCHING to the MAIN WAITING WITH the STOP of the SESSION]

    2014-09-10 09:13:11.345 SQL [ALTER DATABASE COMMETTRE to TRANSITION to PRIMARY WAIT WITH SESSION SHUTDOWN] executed successfully

    2014-09-10 09:13:11.345 of database Resource successful SetState

    2014-09-10 09:13:11.345 INSV: response for message with

    2014-09-10 09:13:11.345 req ID 1.1.746441090, CTL_SWITCH, disassembling opcode

    2014 09-10 02001000 746441090 MICHAEL 09:13:11.345: entered rfm_release_chief_lock() for CTL_SWITCH

    2014-09-10 09:13:28.555 drcx: found the task req_id = 1.1.746441090, PROBE, but the phase is carried out

    2014-09-10 09:13:43.555 drcx: found the task req_id = 1.1.746441090, PROBE, but the phase is carried out

    2014-09-10 09:13:58.571 drcx: found the task req_id = 1.1.746441090, PROBE, but the phase is carried out

    2014-09-10 09:14:13.590 drcx: found the task req_id = 1.1.746441090, PROBE, but the phase is carried out

    2014-09-10 09:14:28.605 drcx: found the task req_id = 1.1.746441090, PROBE, but the phase is carried out

    2014-09-10 09:14:43.606 drcx: found the task req_id = 1.1.746441090, PROBE, but the phase is carried out

    2014-09-10 09:14:58.622 drcx: found the task req_id = 1.1.746441090, PROBE, but the phase is carried out

    2014-09-10 09:15:13.625 drcx: found the task req_id = 1.1.746441090, PROBE, but the phase is carried out

    2014-09-10 09:15:28.641 drcx: found the task req_id = 1.1.746441090, PROBE, but the phase is carried out

    2014-09-10 09:15:43.646 drcx: found the task req_id = 1.1.746441090, PROBE, but the phase is carried out

    2014-09-10 09:15:58.652 drcx: found the task req_id = 1.1.746441090, PROBE, but the phase is carried out

    2014-09-10 09:16:13.653 drcx: found the task req_id = 1.1.746441090, PROBE, but the phase is carried out

    2014 09-10 02001000 746441090 MICHAEL 09:16:27.606: Data Guard Broker ending NSV0, timed out waiting for a response from the smart database

    2014 09-10 02001000 746441090 MICHAEL 09:16:27.825: smart database returned ORA-16662

    2014-09-10 09:16:27.825 02001000 746441090 opcode = CTL_SWITCH, phase = RESYNCHRONIZATION, req_id = 1.1.746441090

    2014 09-10 02001000 746441090 MICHAEL 09:16:42.840: Data Guard Broker ending NSV0, timed out waiting for a response from the smart database

    2014 09-10 02001000 746441090 MICHAEL 09:16:42.840: smart database returned ORA-16662

    2014-09-10 09:16:42.840 02001000 746441090 opcode = CTL_SWITCH, phase = RESYNCHRONIZATION, req_id = 1.1.746441090

    2014 09-10 02001000 746441090 MICHAEL 09:16:57.861: Data Guard Broker ending NSV0, timed out waiting for a response from the smart database

    2014 09-10 02001000 746441090 MICHAEL 09:16:57.861: smart database returned ORA-16662

    2014-09-10 09:16:57.861 02001000 746441090 opcode = CTL_SWITCH, phase = RESYNCHRONIZATION, req_id = 1.1.746441090

    2014-09-10 09:16:58.705 746441091 00001000 MICHAEL: entered rfm_get_chief_lock() for HEALTH_CHECK, reason 0

    2014-09-10 09:16:58.705 746441091 00001000 MICHAEL: task to free the 1.1.746441090 orphans, opcode = CTL_SWITCH.

    2014-09-10 09:16:58.705 746441091 00001000 MICHAEL: start the task execution: automated healthcheck

    2014-09-10 09:16:58.720 746441091 00001000 MICHAEL: start-up of the health check

    2014-09-10 09:16:58.720 INSV: message received for publication of inter - the instance

    2014-09-10 09:16:58.720 746441091 00001000 MICHAEL: rfi_post_instances() status = ORA-00000

    2014-09-10 09:16:58.720 req ID 1.1.746441091, HEALTH_CHECK opcode, phase BEGIN, 5 flags

    2014 09-10 00000000 746441091 MICHAEL 09:16:58.720: entered rfmhcexinst

    2014 09-10 00000000 746441091 MICHAEL 09:16:58.720: rfmhcexinst call transfer

    2014-09-10 09:16:58.720 RSM0: receipt get status request: rid = 0 x 02012001, sid = 4

    2014-09-10 09:16:58.720 RSM0: HEALTH CHECK ERROR: ORA-16816: incorrect database role

    2014-09-10 09:16:58.720 WARNING: given RCS 281474976710655 with resetlogs_id = 851952614 is less than resetlogs_change # 744657 of the incarnation.

    2014-09-10 09:16:58.736 current IncarnationTable value is:

    2014-09-10 09:16:58.736 2,744657,851952614,1, * 851351631, 1, 1, 0, #.

    2014-09-10 09:16:58.736 RSM0: HEALTH CHECK ERROR: ORA-16700: the standby database has diverged from the primary database

    2014-09-10 09:16:58.970 00000000 746441091 HEALTH_CHECK operation cancelled during phase 1, error = ORA-16810

    2014-09-10 09:16:58.970 RSM0: receipt get status request: rid = 0 x 02031001, sid = 1

    2014-09-10 09:16:58.970 00000000 746441091 MICHAEL: standby Instance completed the health check

    2014-09-10 09:16:58.970 INSV: response for message with

    2014-09-10 09:16:58.970 req ID 1.1.746441091, HEALTH_CHECK opcode, phase BEGIN

    2014-09-10 09:16:58.970 MICHAEL: HEALTH CHECK ERROR: ORA-16766: redo apply is stopped

    2014-09-10 09:16:58.970 MICHAEL: aggregation based on H/C, db 0 x 02001000 has gravity = 16501, status = 16810

    2014-09-10 09:16:58.970 00000000 746441091 HEALTH_CHECK operation cancelled during phase 1, error = ORA-16810

    2014-09-10 09:16:58.970 INSV: message received for publication of inter - the instance

    2014-09-10 09:16:58.970 req ID 1.1.746441091, HEALTH_CHECK opcode, phase BEGIN, flags 20005

    2014-09-10 09:16:58.970 MICHAEL: aggregation based on H/C, db 0 x 02001000 has gravity = 16501, status = 16810

    2014-09-10 09:16:58.970 INSV: response for message with

    2014-09-10 09:16:58.970 req ID 1.1.746441091, HEALTH_CHECK opcode, phase BEGIN

    2014 09-10 00000000 746441091 MICHAEL 09:17:02.017: entered rfm_release_chief_lock() for HEALTH_CHECK

    2014-09-10 09:17:13.724 drcx: task req_id is not found = 1.1.746441091 for PROBE.

    2014-09-10 09:17:28.730 drcx: task req_id is not found = 1.1.746441091 for PROBE.

    Primary alert.log indicates the following:

    LNS: Standby redo log file selected for thread 1 sequence 12046 for destination LOG_ARCHIVE_DEST_2

    My Nov 10 09:13:01, 2014

    ALTER DATABASE COMMIT TO SWITCH STANDBY MODE PHYSICS WITH THE STOP OF THE SESSION

    My Nov 10 09:13:01, 2014

    Thread 1 Advanced to record the sequence 12047 (switch LGWR)

    Currently Journal # 2 seq # 12047 mem # 0: X:\SMART\LOG1\SMART_21.LOG

    Currently Journal # 2 seq # 12047 mem # 1: Y:\SMART\LOG2\SMART_22.LOG

    Stop background QMNC process

    My Nov 10 09:13:01, 2014

    Arc1: Evaluating archive log 1 thread 1 sequence 12046

    CLOSING: kill the server sessions.

    Program 'SYSTEM' of active processes 15708 user ' ORACLE. EXE (W000)"

    Program 'SYSTEM' of active processes 15708 user ' ORACLE. EXE (W000)"

    Program 'SYSTEM' of active processes 13372 user ' ORACLE. EXE (W001)"

    Program 'SYSTEM' of active processes 13372 user ' ORACLE. EXE (W001)"

    Program 'SYSTEM' of active processes 15708 user ' ORACLE. EXE (W000)"

    Program 'SYSTEM' of active processes 15708 user ' ORACLE. EXE (W000)"

    Program 'SYSTEM' of active processes 13372 user ' ORACLE. EXE (W001)"

    Program 'SYSTEM' of active processes 13372 user ' ORACLE. EXE (W001)"

    Program 'SYSTEM' of active processes 15708 user ' ORACLE. EXE (W000)"

    Program 'SYSTEM' of active processes 15708 user ' ORACLE. EXE (W000)"

    Program 'SYSTEM' of active processes 13372 user ' ORACLE. EXE (W001)"

    Program 'SYSTEM' of active processes 13372 user ' ORACLE. EXE (W001)"

    Program 'SYSTEM' of active processes 15708 user ' ORACLE. EXE (W000)"

    Program 'SYSTEM' of active processes 15708 user ' ORACLE. EXE (W000)"

    Program 'SYSTEM' of active processes 13372 user ' ORACLE. EXE (W001)"

    Program 'SYSTEM' of active processes 13372 user ' ORACLE. EXE (W001)"

    Program 'SYSTEM' of active processes 15708 user ' ORACLE. EXE (W000)"

    Program 'SYSTEM' of active processes 15708 user ' ORACLE. EXE (W000)"

    Program 'SYSTEM' of active processes 13372 user ' ORACLE. EXE (W001)"

    Program 'SYSTEM' of active processes 13372 user ' ORACLE. EXE (W001)"

    Program 'SYSTEM' of active processes 15708 user ' ORACLE. EXE (W000)"

    Program 'SYSTEM' of active processes 15708 user ' ORACLE. EXE (W000)"

    Program 'SYSTEM' of active processes 13372 user ' ORACLE. EXE (W001)"

    Program 'SYSTEM' of active processes 13372 user ' ORACLE. EXE (W001)"

    CLOSED: all the closing of sessions successfully.

    krss_find_arc: selection ARC2 to receive the message as a last resort

    Waiting for all non-current archive ORLs...

    Waiting for thread 1 sequence 12046 ORL to archive...

    My Nov 10 09:13:02 2014

    Arc0: Assessment of 1 thread 1 sequence 12046 log archives

    My Nov 10 09:13:02 2014

    ARC2: Evaluating archive log 1 thread 1 sequence 12046

    Arc0: Unable to archive the thread 1 sequence 12046

    Newspapers archived by another process

    ARC2: Impossible to archive the thread 1 sequence 12046

    Newspapers archived by another process

    Involved the creation of the archivelog 'W:\SMART\ARC\SMART_12046_1_851952614.ARC '.

    Archived journal 19372 extra for each sequence 1 12046 0xab72f94c dest ID thread entry 1:

    ENT for thread 1 12046 sequence have been archived...

    All non-current ORLs have been archived.

    Waiting for all FAL entries to archive...

    All FAL entries were archived.

    Waiting for dest_id 2 can be synchronized...

    OCISessionBegin with PasswordVerifier succeeded

    Client pid [12320] annexed to the RFS pid [3648] number of the remote instance [1] to dest "smart_dg_stb."

    Physical passage target Active, synchronized sleep has been identified

    Transition to the end-of-Redo Log thread 1 sequence 12047 has been fixed

    The digital switchover: primary YVERT seen above the value 0x0.0x22345d2

    ARCH: Noswitch of archiving the thread 1, sequence 12047

    ARCH: End-of-Redo archive thread 1 sequence 12047 branch

    ARCH: Evaluating archive log 2 thread 1 sequence 12047

    ARCH: LGWR is actively archiving destination LOG_ARCHIVE_DEST_2

    ARCH: Transmitting the activation 0xab72f94c ID

    OCISessionBegin with PasswordVerifier succeeded

    Client pid [12244] annexed to the RFS pid [9972] number of the remote instance [1] to dest "smart_dg_stb."

    ARCH: Standby redo log file selected for thread 1 sequence 12047 for destination LOG_ARCHIVE_DEST_2

    Involved the creation of the archivelog 'W:\SMART\ARC\SMART_12047_1_851952614.ARC '.

    Archived journal 19373 extra for each sequence 1 12047 0xab72f94c dest ID thread entry 1:

    Archived journal 19374 extra for each sequence 1 12047 0xab72f94c dest ID thread entry 2:

    ARCH: Archiving is disabled due to the current archive log file

    Primary will check some generator of target of receiving of alls again

    Final inspection for a target standby synchronized. Verification will be made once.

    ARCH: Transmitting the activation 0xab72f94c ID

    LOG_ARCHIVE_DEST_2 is a potential target of the transition to physical standby

    Active, synchronized target has been identified

    Target has received also redo all the

    -----------------------------------------------------------

    |          Target the waking state.

    | LOG_ARCHIVE_DEST_1: NO ACTIVE |

    | LOG_ARCHIVE_DEST_2: RECEIVED ALL DATA.

    | LOG_ARCHIVE_DEST_3: NO ACTIVE |

    | LOG_ARCHIVE_DEST_4: NO ACTIVE |

    | LOG_ARCHIVE_DEST_5: NO ACTIVE |

    | LOG_ARCHIVE_DEST_6: NO ACTIVE |

    | LOG_ARCHIVE_DEST_7: NO ACTIVE |

    | LOG_ARCHIVE_DEST_8: NO ACTIVE |

    | LOG_ARCHIVE_DEST_9: NO ACTIVE |

    | LOG_ARCHIVE_DEST_10: NO ACTIVE |

    | LOG_ARCHIVE_DEST_11: NO ACTIVE |

    | LOG_ARCHIVE_DEST_12: NO ACTIVE |

    | LOG_ARCHIVE_DEST_13: NO ACTIVE |

    | LOG_ARCHIVE_DEST_14: NO ACTIVE |

    | LOG_ARCHIVE_DEST_15: NO ACTIVE |

    | LOG_ARCHIVE_DEST_16: NO ACTIVE |

    | LOG_ARCHIVE_DEST_17: NO ACTIVE |

    | LOG_ARCHIVE_DEST_18: NO ACTIVE |

    | LOG_ARCHIVE_DEST_19: NO ACTIVE |

    | LOG_ARCHIVE_DEST_20: NO ACTIVE |

    | LOG_ARCHIVE_DEST_21: NO ACTIVE |

    | LOG_ARCHIVE_DEST_22: NO ACTIVE |

    | LOG_ARCHIVE_DEST_23: NO ACTIVE |

    | LOG_ARCHIVE_DEST_24: NO ACTIVE |

    | LOG_ARCHIVE_DEST_25: NO ACTIVE |

    | LOG_ARCHIVE_DEST_26: NO ACTIVE |

    | LOG_ARCHIVE_DEST_27: NO ACTIVE |

    | LOG_ARCHIVE_DEST_28: NO ACTIVE |

    | LOG_ARCHIVE_DEST_29: NO ACTIVE |

    | LOG_ARCHIVE_DEST_30: NO ACTIVE |

    | LOG_ARCHIVE_DEST_31: NO ACTIVE |

    ------------------------------------------------------------

    Backup controlfile written to find the D:\ORACLE\ORA_DBA\SMART\TRACE\diag\rdbms\smart\smart\trace\smart_rsm0_12244.trc file

    Compensation pending activation ID 2876438860 (0xab72f94c)

    The primary database controlfile is created using the

    Clause 'MAXLOGFILES 255'.

    There is space for the log files waiting for redo up to 251

    Use the following SQL commands on the standby database to create

    waiting for redo logfiles that correspond to 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.

    ALTER DATABASE add STANDBY LOGFILE 'srl5.f' SIZE 52428800.

    ARCHIVELOG for thread 1 sequence 12047 required for recovery of the eve

    The digital switchover: converted primary Controlfile controlfile standby successfully.

    The digital switchover: Complete - closing of the database required

    Completed: ALTER DATABASE COMMIT to SWITCH STANDBY mode PHYSICS WITH the STOP of the SESSION

    My Nov 10 09:13:20 2014

    (Ospid 12320) process is suspended due to the transition to a physical relief operation.

    My Nov 10 09:16:58 2014

    (Ospid 12244) process is suspended due to the transition to a physical relief operation.

    My Nov 10 09:17:08 2014

    Process (ospid 3080) is suspended due to the transition to a physical relief operation.

    My Nov 10 09:17:09 2014

    Process (ospid 12636) is suspended due to the transition to a physical relief operation.

    My Nov 10 09:17:10 2014

    Process (ospid 5292) is suspended due to the transition to a physical relief operation.

    My Nov 10 09:17:43 2014

    RSM0, PID = 12244 process, will be killed

    My Nov 10 09:17:44 2014

    RSM0 started with pid = 27, OS id = 16280

    My Nov 10 09:20:56 2014

    minact-RCS: received the error during the scan e:12751 usn:6 useg

    minact-SNA: useg scan slip on with error e:12751

    My Oct 10 09:21:19 2014

    Process (ospid 16280) is suspended due to the transition to a physical relief operation.

    My Nov 10 09:22:04 2014

    RSM0, PID = 16280 process, will be killed

    My Nov 10 09:22:05 2014

    RSM0 started with pid = 27, OS id = 10528

    My Nov 10 09:25:39 2014

    (Ospid 10528) process is suspended due to the transition to a physical relief operation.

    My Nov 10 09:26:03 2014

    minact-RCS: received the error during the scan e:12751 usn:6 useg

    minact-SNA: useg scan slip on with error e:12751

    My Nov 10 09:26:24 2014

    RSM0, PID = 10528 process, will be killed

    My Nov 10 09:26:25 2014

    RSM0 started with pid = 27, OS id = 15752

    My Nov 10 09:29:59 2014

    Process (ospid 15752) is suspended due to the transition to a physical relief operation.

    My Nov 10 09:30:44 2014

    RSM0, PID = 15752 process, will be killed

    My Nov 10 09:30:45 2014

    RSM0 started with pid = 27, OS id = 1972

    My Nov 10 09:31:09 2014

    minact-RCS: received the error during the scan e:12751 usn:6 useg

    minact-SNA: useg scan slip on with error e:12751

    Suspend action 'Block Cleanout Optim, Undo Segment Scan' MMON 82800 seconds

    My Nov 10 09:34:19 2014

    Process (ospid, 1972) is suspended due to the transition to a physical relief operation.

    alert-journal sleep shows the following:

    My Nov 10 09:13:01, 2014

    ARC3: Evaluating archive log 5 thread 1 sequence 12046

    Involved the creation of the archivelog 'W:\SMART\ARC\SMART_12046_1_851952614.ARC '.

    Archived journal 5932 extra for each sequence 1 12046 0xab72f94c dest ID thread entry 1:

    My Nov 10 09:13:01, 2014

    Media, recovery waiting for thread 1 sequence 12047

    My Nov 10 09:13:04 2014

    Again shipping customer logged in as PUBLIC

    -User is valid

    RFS [6]: assigned to the process 3648 RFS

    RFS [6]: identified the type of database such as 'physical' standby: customer is ARCH pid 12320

    My Nov 10 09:13:06 2014

    Again shipping customer logged in as PUBLIC

    -User is valid

    RFS [7]: assigned to the process 9972 RFS

    RFS [7]: identified the type of database such as 'physical' standby: Client is in the foreground pid 12244

    RFS [7]: end-of-Redo for thread archiving 1 sequence 12047

    RFS [7]: Eve successfully opened journal 5: "Y:\SMART\LOG2\SMART_S_5.LOG."

    RFS [7]: Journal selected 5 for thread 1 sequence 12047 dbid-1425016497 branch of the 851952614

    My Nov 10 09:13:06 2014

    Arc1: Evaluating archive log 5 thread 1 sequence 12047

    Involved the creation of the archivelog 'W:\SMART\ARC\SMART_12047_1_851952614.ARC '.

    Archived journal 5933 extra for each sequence 1 12047 0xab72f94c dest ID thread entry 1:

    My Nov 10 09:13:06 2014

    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL

    MRP0: Background Media Recovery cancelled with status 16037

    Errors in the D:\ORACLE\ORA_DBA\SMART\TRACE\diag\rdbms\smart_stb\smart\trace\smart_pr00_13804.trc file:

    ORA-16037: user has requested the cancellation of the managed recovery

    Managed Standby recovery not using real time applies

    Recovery interrupted!

    Errors in the D:\ORACLE\ORA_DBA\SMART\TRACE\diag\rdbms\smart_stb\smart\trace\smart_pr00_13804.trc file:

    ORA-16037: user has requested the cancellation of the managed recovery

    My Nov 10 09:13:07 2014

    Errors in the D:\ORACLE\ORA_DBA\SMART\TRACE\diag\rdbms\smart_stb\smart\trace\smart_mrp0_11168.trc file:

    ORA-10877: error reported in parallel recovery slave

    Completed: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL

    Data not available for the digital switchover

    End-of-REDO the archived log file was not found

    Incomplete recovery SCN:0:35846057 archive SCN:0:35866066

    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE THROUGH FINAL PASSAGE TO THE NODELAY

    has started the process of logmerger

    My Nov 10 09:13:07 2014

    Managed Standby recovery not using real time applies

    Parallel Media Recovery started with 8 slaves

    Media W:\SMART\ARC\SMART_12047_1_851952614.ARC recovery log

    Identified the SNA 0x0.22345d2 end-of-Redo (failover) for thread 1 sequence 12047

    Activation reset sleep ID 2876438860 (0xab72f94c)

    Met Media Recovery end Redo indicator

    Media recovery applied through change 35866066

    Attempt to limbo arscn 0:35866066 irscn 0:35866066

    Completed: ALTER DATABASE RECOVER MANAGED STANDBY database through FINAL passage to THE NODELAY

    ALTER DATABASE COMMIT TO SWITCHING TO THE MAIN WAITING WITH THE STOP OF THE SESSION

    Waiting for the transition from role maximum is 15 minutes.

    krsv_proc_kill: kill 2 process (all the RFS)

    Backup controlfile written to find the D:\ORACLE\ORA_DBA\SMART\TRACE\diag\rdbms\smart_stb\smart\trace\smart_rsm0_14652.trc file

    Passage to the after complete recovery through change 35866066

    X:\SMART\LOG1\SMART_11.LOG online journal: thread 1 Group 1 had been previously authorized

    Y:\SMART\LOG2\SMART_12.LOG online journal: thread 1 Group 1 had been previously authorized

    X:\SMART\LOG1\SMART_21.LOG online journal: thread 1 group 2 was previously disabled

    Y:\SMART\LOG2\SMART_22.LOG online journal: thread 1 group 2 was previously disabled

    X:\SMART\LOG1\SMART_31.LOG online journal: thread 1 Group 3 has been previously authorized

    Y:\SMART\LOG2\SMART_32.LOG online journal: thread 1 Group 3 has been previously authorized

    X:\SMART\LOG1\SMART_41.LOG online journal: thread 1 Group 4 has been previously authorized

    Y:\SMART\LOG2\SMART_42.LOG online journal: thread 1 Group 4 has been previously authorized

    Standby became primary YVERT: 35866064

    The digital switchover: completed - mounted as primary database

    Completed: ALTER DATABASE COMMIT to SWITCHING to the MAIN WAITING WITH the STOP of the SESSION

    My Nov 10 09:13:45 2014

    Arc0: become the "no SRL" ARCH

    My Nov 10 09:13:46 2014

    ARC3: become the "no SRL" ARCH

    My Nov 10 09:13:46 2014

    Arc1: become the "no SRL" ARCH

    My Nov 10 09:16:58 2014

    NSV0 started with pid = 26, OS id = 15900

    My Oct 10 09:21:20 2014

    MICHAEL: NSV0 network call timeout. Kill it now.

    The Setup is as follows:

    DGMGRL > see the configuration;

    Configuration - dg_smart

    Protection mode: MaxPerformance

    Databases:

    Smart - primary database

    smart_stb - physical of the standby database

    Fast-Start Failover: DISABLED

    The configuration status:

    SUCCESS

    DGMGRL > see the detailed chip database

    -Smart database

    Role: PRIMARY

    State of destination: TRANSPORT-WE

    Occurrence (s):

    Smart

    Properties:

    DGConnectIdentifier = "smart_dg_prim".

    ObserverConnectIdentifier = "

    LogXptMode = "ASYNC".

    DelayMins = '0'

    Binding = "optional."

    MaxFailure = '0'

    MaxConnections = '1'

    ReopenSecs = "300"

    NetTimeout = "30"

    RedoCompression = "DISABLE."

    LogShipping = 'ON '.

    PreferredApplyInstance = "

    ApplyInstanceTimeout = '0'

    ApplyParallel = 'AUTO '.

    StandbyFileManagement = 'AUTO '.

    ArchiveLagTarget = "300"

    LogArchiveMaxProcesses = "4"

    LogArchiveMinSucceedDest = '1'

    DbFileNameConvert = "

    LogFileNameConvert = "X:\SMART\LOG1, X:\SMART\LOG1, Y:\SMART\LOG2, Y:\SMART\LOG2.

    FastStartFailoverTarget = "

    InconsistentProperties = "(monitor).

    InconsistentLogXptProps = "(monitor).

    SendQEntries = "(monitor).

    LogXptStatus = "(monitor).

    RecvQEntries = "(monitor).

    Nom_sid = "smart."

    StaticConnectIdentifier = ' (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=host02) (PORT = 1599)) (CONNECT_DATA = (SERVICE_NAME = smart_DGMGRL)(INSTANCE_NAME=smart) (SERVER = DEDICATED)))'

    StandbyArchiveLocation = "W:\SMART\arc\".

    AlternateLocation = "

    LogArchiveTrace = '8191'

    LogArchiveFormat = "smart_%s_%t_%r.arc".

    TopWaitEvents = "(monitor).

    State of the database:

    SUCCESS

    DGMGRL > see the detailed database smart_stb

    Database - smart_stb

    Role: STANDBY PHYSICS

    State of destination: apply

    Transport Lag: 0 seconds

    Apply the Lag: 0 seconds

    Real-time query: OFF

    Occurrence (s):

    Smart

    Properties:

    DGConnectIdentifier = "smart_dg_stb".

    ObserverConnectIdentifier = "

    LogXptMode = "ASYNC".

    DelayMins = '0'

    Binding = "optional."

    MaxFailure = '0'

    MaxConnections = '1'

    ReopenSecs = "300"

    NetTimeout = "30"

    RedoCompression = "DISABLE."

    LogShipping = 'ON '.

    PreferredApplyInstance = "

    ApplyInstanceTimeout = '0'

    ApplyParallel = 'AUTO '.

    StandbyFileManagement = 'AUTO '.

    ArchiveLagTarget = "300"

    LogArchiveMaxProcesses = "4"

    LogArchiveMinSucceedDest = '1'

    DbFileNameConvert = "

    LogFileNameConvert = "X:\SMART\LOG1, X:\SMART\LOG1, Y:\SMART\LOG2, Y:\SMART\LOG2.

    FastStartFailoverTarget = "

    InconsistentProperties = "(monitor).

    InconsistentLogXptProps = "(monitor).

    SendQEntries = "(monitor).

    LogXptStatus = "(monitor).

    RecvQEntries = "(monitor).

    Nom_sid = "smart."

    StaticConnectIdentifier = ' (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=host01) (PORT = 1599)) (CONNECT_DATA = (SERVICE_NAME = smart_stb_DGMGRL)(INSTANCE_NAME=smart) (SERVER = DEDICATED)))'

    StandbyArchiveLocation = "W:\SMART\arc\".

    AlternateLocation = "

    LogArchiveTrace = '8191'

    LogArchiveFormat = "smart_%s_%t_%r.arc".

    TopWaitEvents = "(monitor).

    State of the database:

    SUCCESS

    tnsnames.ora:

    smart_dg_stb = (Description = (Address = (Protocol = TCP)(Host=host01) (port = 1599)) (CONNECT_DATA = (Server = Dedicated) (SID = Smart)))

    smart_dg_prim = (Description = (Address = (Protocol = TCP)(Host=host02) (port = 1599)) (CONNECT_DATA = (Server = Dedicated) (SID = Smart)))

    Primary listner.ora:

    LISTENER_REDO_SMART =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP (PORT = 1599))(HOST = host02))

    )

    )

    SID_LIST_LISTENER_REDO_SMART =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = CLRExtProc)

    (ORACLE_HOME = D:\oracle\11.2.0)

    (= Extproc PROGRAM)

    (ENVS = "EXTPROC_DLLS=ONLY:D:\oracle\11.2.0\bin\oraclr11.dll")

    )

    (SID_DESC =

    (SID_NAME = smart)

    (ORACLE_HOME = D:\oracle\11.2.0)

    )

    (SID_DESC =

    (SID_NAME = smart)

    (GLOBAL_DBNAME = smart_DGMGRL)

    (ORACLE_HOME = D:\oracle\11.2.0)

    )

    )

    Listener.ora ensures

    LISTENER_REDO_SMART =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP (PORT = 1599))(HOST = host01))

    )

    )

    SID_LIST_LISTENER_REDO_SMART =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = CLRExtProc)

    (ORACLE_HOME = D:\oracle\11.2.0)

    (= Extproc PROGRAM)

    (ENVS = "EXTPROC_DLLS=ONLY:D:\oracle\11.2.0\bin\oraclr11.dll")

    )

    (SID_DESC =

    (SID_NAME = smart)

    (ORACLE_HOME = D:\oracle\11.2.0)

    )

    (SID_DESC =

    (SID_NAME = smart)

    (GLOBAL_DBNAME = smart_stb_DGMGRL)

    (ORACLE_HOME = D:\oracle\11.2.0)

    )

    )

    LSNRCTL > status listener_redo_smart

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP (PORT = 1599))(HOST=host02)))

    STATUS of the LISTENER

    ------------------------

    Alias LISTENER_REDO_SMART

    TNSLSNR for Windows 64-bit version: Version 11.2.0.3.0 - Production

    Start date August 30, 2014 20:46:12

    Uptime 10 days 13 h 11 min 15 sec

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Listener parameter File D:\oracle\11.2.0\network\admin\listener.ora

    Listener log file D:\oracle\diag\tnslsnr\host02\listener_redo_smart\alert\log.xml

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp (PORT = 1599))(HOST=host02)))

    Summary of services...

    Service 'CLRExtProc' has 1 instance (s).

    Instance of 'CLRExtProc', status UNKNOWN, has 1 operation for this service...

    Service 'HA_SMART' has 1 instance (s).

    'Smart' instance, State LOAN, has 1 operation for this service...

    'Smart' service has 2 occurrences.

    'Smart' instance, status UNKNOWN, has 1 operation for this service...

    'Smart' instance, State LOAN, has 1 operation for this service...

    Service 'smart_DGB' has 1 instance (s).

    'Smart' instance, State LOAN, has 1 operation for this service...

    Service 'smart_DGMGRL' has 1 instance (s).

    'Smart' instance, status UNKNOWN, has 1 operation for this service...

    The command completed successfully

    I would be most grateful if someone would have an idea of how solve it!

    Thanks in advance and best regards...

    Solved!

    A logon trigger that makes an insert in a table for each log in the appearance of this behavior. Since dataguard brings the standby database open mode ReadOnly cannot insert the trigger and the strange behavior as described happens!

    Hope that could help someone in the future...

    Kind regards

  • Why primary must goes down / unavailable when switching to 'ALTER' help... FINISHING?

    Hi all

    I have a question on "ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH."

    My dataguard Configuration

    Version of the Oracle :-11.1.0.6.0

    Type of Eve:-physical

    Connect the Transport service:-LGWR

    Have the standby log file:-Yes

    Synchronization:-Yes

    Scenario:

    Main and emergency ARE in sync.

    Now I play a recovery to help 'ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH' [database DATA IS PRIMARY]

    The MRP will stop with an error ORA 261 [Standby for primary or secondary Flash requires no RFS partial Srl.]

    Please find below the alerts log

    Media, recovery waiting for thread 1 sequence 45 (in transit)

    Sat Jan 07 18:26:27 2014

    ALTER database recover managed standby database finish

    Terminal recovery: request posted (STAND)

    Sat Jan 07 18:26:58 2014

    Eve at the primary or secondary of the snapshot requires no partial RFS Srl. Journal thread 5 1 seq 45.

    MRP0: Background Media Recovery terminated with error 261

    Errors in the /apps/oracle/diag/rdbms/stand/STAND/trace/STAND_mrp0_10714.trc file:

    ORA-00261: Journal 5 thread 1 is to be archived or modified

    Closure of the slaves of recovery because of the 261 error

    Recovery interrupted!

    Errors in the /apps/oracle/diag/rdbms/stand/STAND/trace/STAND_mrp0_10714.trc file:

    ORA-00261: Journal 5 thread 1 is to be archived or modified

    MRP0: Stopping the process background Media Recovery (STAND)

    Sat Jan 07 18:26:59 2014

    Waiting for pid MRP0 10714 to terminate

    Terminal recovery: completion detected (STAND)

    Completed: alter database recover managed standby database finish

    After that I tried to activate the standby as main using the command

    ALTER DATABASE COMMIT AT THE GRADE CROSSING;

    This command was finished with error because the end of redo log allocation has not been captured recently archived log [END_OF_REDO column in v$ ARCHIVED_LOG is no.], so the transition from role may not be possible with this command.

    So I have to use "ALTER DATABASE ACTIVATE STANDBY DATABASE" for the transition of role.

    But when I tried the thing above [activation sleep by using 'ALTER DATABASE COMMIT to SWITCH to PRIMARY' after 'ALTER...] RECOVER... [COMPLETE '] with closure

    Primary database, 'ALTER DATABASE COMMETTRE at PRIMARY CROSSING"executed successfully.

    I came to know of http://docs.Oracle.com/CD/B28359_01/server.111/b28294/sql_stmts.htm#i1027843 as ALTER... FINISHING should be used in case of failure of the primary database.

    My question is

    Why primary shut down or unavailable when we do not report to the use of "ALTER DATABASE... COMPLETE"AND"ALTER DATABASE COMMIT... ". Primary school"to help

    LGWR as service of transport of logs with standby redo log?

    I also tried to switch after 'LOG_ARCHIVE_DEST_STATE_2 = DEFER' primary, but it landed me on the same.

    Help, please...

    Thank you...

    Hello;

    Take a look at this note:

    Data Guard and network disconnects (Doc ID 255959.1)

    The Finish command does that complete recovery on the day before so that you can switch to it.

    If your primary is available then maybe you should do a permutation and not tipping.

    Best regards

    mseberg

  • YVERT Max number in redolog files

    Hello

    I set up an environment of custody of data below the configuration using

    TYPE OF EVE:-PHYSICAL STANDBY

    NEWSPAPER OF TRANSPORT SERVICE:-ARCH [PROCESS ARCHIVE]

    NEWSPAPER FROM THE DAY BEFORE:-NO NEWSPAPER ENSURES PRIMARY AND STANDBY

    STATUS OF THE SYNCHRONIZATION OF THE PRIMARY AND STANDBY:-SYNCHRONIZE

    OPERATION:-FAILOVER WITH THE HELP OF "ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;

    ACTIVATE THE DAY BEFORE WITH THE HELP OF "ALTER DATABASE ACTIVATE DATABASE SLEEP;.

    MAIN AND BACKUP ARE FULLY SYNCHRONIZED

    WE PRIMARY SCHOOL

    LAST ARCHIVED SEQUENCE NUMBER IS 12 AND FIRST AND LAST YVERT ASSOCIATED SEQUENCE 12 AS BELOW

    SELECT SEQUENCE #, FIRST_CHANGE #, NEXT_CHANGE # FROM V$ ARCHIVED_LOG WHERE SEQUENCE #= 12;

    SEQUENCE # FIRST_CHANGE # NEXT_CHANGE #

    12 669447 670246

    ON STANDBY

    THE JOURNAL OF ARCHIVED AND APPLIED ON THE BASIS OF DATA ARCHIVING WITH THE 12A SEQUENCE NUMBER ENSURES SUCCESSFULLY.

    NOW, I'M A FAIL BY USING THE COMMANDS BELOW

    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;

    ALTER DATABASE ACTIVATE STANDBY DATABASE;

    JOURNAL OF ALERTS ON THE BACKUP DATABASE

    Recovery Media Log /data/PRD_DR/arch/arch_1_11_834360625.arch

    Recovery Media Log /data/PRD_DR/arch/arch_1_12_834360625.arch

    Media, recovery waiting for thread 1 sequence 13

    Logging of 12154 errors received on the eve

    FAL [client, MRP0]: error 12154 connection to the PRD to get the gap sequence

    Errors in the /apps/oracle/diag/rdbms/stand/PRD/trace/PRD_mrp0_7865.trc file:

    ORA-12154: TNS: could not resolve the connect identifier specified

    Thu Dec 26 18:00:36 2013

    ALTER database recover managed standby database cancel

    Thu Dec 26 18:00:36 2013

    MRP0: Background Media Recovery cancelled with status 16037

    Errors in the /apps/oracle/diag/rdbms/stand/PRD/trace/PRD_mrp0_7865.trc file:

    ORA-16037: user has requested the cancellation of the managed recovery

    Closure of the slaves of recovery due to the error 16037

    Recovery interrupted!

    Errors in the /apps/oracle/diag/rdbms/stand/PRD/trace/PRD_mrp0_7865.trc file:

    ORA-16037: user has requested the cancellation of the managed recovery

    MRP0: Background Media Recovery (PRD) process stop

    Waiting for pid MRP0 7865 to terminate

    Managed recovery pending canceled (PRD)

    Completed: alter database recover managed standby database cancel

    Thu Dec 26 18:00:59 2013

    ALTER database activate the backup database

    ALTER DATABASE ACTIVATE STANDBY DATABASE [PHYSICS] (PRD)

    tkcrrxms: kill 2 process (all the RFS)

    RESETLOGS after incomplete recovery until this THAT the CHANGE 670246

    Resetting resetlogs activation ID 1898010833 (0x712158d1)

    Log in/data/PRD_DR/REDOLOG11 line. JOURNAL: Thread 1 Group 1 had been previously authorized

    Log in/data/PRD_DR/REDOLOG21 line. JOURNAL: Thread 1 group 2 was previously disabled

    Log in/data/PRD_DR/REDOLOG33 line. JOURNAL: Thread 1 Group 3 has been previously authorized

    Standby became primary YVERT: 670244

    Thu Dec 26 18:01:01, 2013

    Assessment target incarnation to 3

    Convert mount ensures mount primary.

    ACTIVATE SLEEP mode: completed - mounted as primary (PRD) database

    Completed: alter database activate the backup database

    IN THE STANDBY ALERT LOG, I CAN SEE THINGS BELOW

    RESETLOGS after incomplete recovery until this THAT the CHANGE 670246

    Standby became primary YVERT: 670244

    MY QUESTION IS ON ' SNA NUMBER OF ' Standby became main SNA: 670244'.

    I CHECKED THE NUMBERS YVERT NEWSPAPER ARCHIVE SEQUENCE 12 [HELP LOGMINER] MAX PARTNER RCS TO ARCHIVE LOG ARE 670242

    SELECT MAX (SNA) IN V$ LOGMNR_CONTENTS; ["FOR LOGMINER, I USED"]

    RUN DBMS_LOGMNR. Start_logmnr (OPTIONS = > DBMS_LOGMNR.) DDL_DICT_TRACKING + DBMS_LOGMNR. DICT_FROM_REDO_LOGS); ]

    MAX (SNA)

    -----------------

    670242

    -WHY IN MAX (SNA) LOGMINER IS NOT SHOWING AS 670246?

    -HOW CAN I SEE THE RCS 670244 FOR NEWSPAPER ARCHIVING FOR THE NUMBER SEQUENCE 12?

    Thank you

    IN THE STANDBY ALERT LOG, I CAN SEE THINGS BELOW

    RESETLOGS after incomplete recovery until this THAT the CHANGE 670246

    Standby became primary YVERT: 670244

    MY QUESTION IS ON ' SNA NUMBER OF ' Standby became main SNA: 670244'.

    I CHECKED THE NUMBERS YVERT NEWSPAPER ARCHIVE SEQUENCE 12 [HELP LOGMINER] MAX PARTNER RCS TO ARCHIVE LOG ARE 670242

    in fact, it's really smart.

    First of all he must know the sequence 12, next_change # is not belongs to 12, but it is up to the 13th first_change of sequence...

    So in the real world, the number of sequence 12 change is only up to 670245 and 670246 variation represents the variation of departure of the numebr 13 sequence.

    It does not use any real time applies, as now by the my conclusion that precedes the sequence number last change is only 670245, according to the concepts of recovery... If you want to perform a recovery of change up to 100, you must speak as 'up to 100 + 1', i.e. of 101... So if you mention 101 then it performs recovery up to 100.

    (1) the 12 sequences change max is 670245

    (2) when it performs recovery until this sequence, then then it usually performs recovery to the 6740244 according to the rules of recovery.

    Of http://docs.oracle.com/cd/B19306_01/server.102/b14357/ch12033.htm

    Until THE CHANGE integer

    The process managed recovery up to but not including the system change number (SCN).

    Still at this stage do not give 100% conclusion, even test you use log miner and will let you know of course...

    -WHY IN MAX (SNA) LOGMINER IS NOT SHOWING AS 670246?

    When you analyze the file of archive redo log, did you use the hours start and end times? Note that if you give little time to end there's less chance to truncated to collect information to undermine journal and important thing is written Oracle of information amount of control and change in terms of metadata information in headers. Also note that oracle uses some CHANGE of SYSTEM files, so some of them may not visible.

    HTH.

  • Failover to physical standby

    Hi all

    I have a custodian of data configured in my local system. Please find the slot configuration of the data protection

    Data type of guard:-physical Standby (version Oracle 11 g)

    Service responsible for log transport:-ARCH

    No newspaper to redo the previous day:- neither primary Nor in standby mode

    I'm failing by using the command 'alter database recover managed standby database finish. "

    Please find the below info alert log after this command.

    Killed Dec 03 01:42:14 2013

    ALTER database recover managed standby database finish

    Try to perform a recovery of Terminal (PRD)

    Beginning media recovery: recovery ensures managed (PRD)

    Parallel media enabled rapid recovery

    Managed Standby recovery not using real time applies

    Media, recovery waiting for thread 1 sequence 145

    "Terminal recovery Timestamp is December 3, 2013 01:42:15.

    Terminal recovery: application standby redo logs.

    Terminal recovery: thread 1 seq # 145 again required

    Media, recovery waiting for thread 1 sequence 145

    Terminal recovery: allowance end Redo log

    Recovery Terminal: waiting for redo logfile created 3 ' / data/PRD_DR/arch/arch_1_0_831359165.arch'

    This waiting for redo log file is created as part of the recovery

    operation.  This waiting for redo log file should be deleted after the

    transition to a primary operation complete.

    Recovery Media Log /data/PRD_DR/arch/arch_1_0_831359165.arch

    Terminal retrieval: newspaper 3 reserved for thread 1 sequence 145

    Online Redo Log recovery: thread 1 mem Group 3 Seq 145 reading 0

    Mem # 0: /data/PRD_DR/arch/arch_1_0_831359165.arch

    Identified end-of-Redo for thread 1 sequence 145

    Incomplete recovery applied all redo them ever generated.

    Change recovery completed by 559773 23/11/2013 time 13:38:13

    Recovery media Complete (PRD)

    Terminal recovery: success of

    Activation reset sleep ID 1895332757 (0x70f87b95)

    Completed: alter database recover managed standby database finish

    Killed Dec 03 01:42:50 2013

    change the database for validation at the crossing elementary school

    ALTER DATABASE TRANSITION TO PRIMARY SCHOOL (PRD)

    Waiting for the transition from role maximum is 15 minutes.

    Backup controlfile written to trace the file /apps/oracle/diag/rdbms/stand/PRD/trace/PRD_ora_9466.trc

    tkcrrxms: kill 3 process (all the RFS)

    Terminal standby recovery start SCN: 559772

    RESETLOGS after complete through change 559773

    Log in/data/PRD_DR/REDOLOG11 line. JOURNAL: Thread 1 Group 1 had been previously authorized

    Log in/data/PRD_DR/REDOLOG21 line. JOURNAL: Thread 1 group 2 was previously disabled

    Standby became primary YVERT: 559771

    Killed Dec 03 01:42:53 2013

    Here, my question is, why oracle implicitly creates a newspaper waiting redo pending data base for the realization of "alter database recover managed standby database finish".

    Thank you

    Like to, its due to the following bug.

    Bug 5889025 : FINISHING SWITCH GENERATES INCORRECT STANDBY REDO LOG.

    This bug refers to version 9i and standby redo logs/realtime concept is not available.

    OP using the 11g version...  Although if you see in the State of the article, the State is "92 - closed, not a Bug", according to me this is the default behavior and is not bug.

Maybe you are looking for