control real time apply log on the database after synchronization

Hi all

I want to check the timestamp of applied newspapers archived on stanby database. How should I check that?

My dataguard link was broken for some time, and during this time, many transactions happened on the primary database. Now, when the link came synchronization has happened in a few hours and ultimatly transport and app gal has become 0. But now I want to check real time taken for tranporting newspapers and apply them on the standby database. Is there a way I could do it easily...

Thank you

This script written by Yousef Rifai, I found here http://www.dba-village.com/village/dvp_forum.OpenThread?ThreadIdA=34772&DestinationA=RSS could be just what you need (executed on the standby database):

worm off Set

ALTER session set nls_date_format = 'dd-MON-yy hh24:mi:ss.

/

Select app_thread, seq_app, tm_applied,

NVL (seq_rcvd, seq_app) seq_rcvd, nvl (tm_rcvd, tm_applied) tm_rcvd

Of

(select the sequence # seq_app, FIRST_TIME tm_applied, thread # app_thread)

v $ archived_log in case of application = 'YES '.

and (first_time, thread #) in)

SELECT max (FIRST_TIME), thread #.

v $ archived_log in case of application = 'YES '.

Thread group #)

),

(select the sequence # seq_rcvd, FIRST_TIME tm_rcvd, thread # rcvd_thread)

v $ archived_log in case of application = 'NO '.

and (first_time, thread #) in)

SELECT max (FIRST_TIME), thread #.

v $ archived_log in case of application = 'NO '.

Thread group #)

)

where rcvd_thread (+) = app_thread

/

Best regards
Robert
http://robertvsoracle.blogspot.com

Tags: Database

Similar Questions

  • Behavior of v$ standby_log; during the real time applies...

    Hello

    I would like to understand this point of view, during the REPEAT APPLY behavior or real-time applies by using configuration of log roll forward pending. as in my db, when there apply to progress, I see the status column having a CURRENT value and the column DBID value of Eve DBID where the application is underway then status column goes to UNASSIGNED value and DBID column has no value inside of it... i mean Virgin... Why is it so? Ask you please help me understand this... Here is the log

    SQL > select * from v$ standby_log;

    GROUP # DBID THREAD # SEQUENCE # BYTE BLOCKSIZE USED ARC STATUS FIRST_CHANGE # FIRST_TIM NEXT_CHANGE # NEXT_TIME LAST_CHANGE # LAST_TIME
    ---------- ---------------------------------------- ---------- ---------- ---------- ---------- ---------- --- ---------- ------------- --------- ------------ --------- ------------ ---------
    7. UNASSIGNED 1 0 104857600 512 0 NOT ASSIGNED NO.
    8 3903727333 1 58534 104857600 512 338944 YES ACTIVE 2.3217E + 10 5 JANUARY 12 2.3217E + 10 5 JANUARY 12 2.3217E + 10 JANUARY 5, 12
    9. UNASSIGNED 1 0 104857600 512 0 NOT ASSIGNED NO.
    10 3903727333 2 38929 104857600 512 235008 YES ACTIVE 2.3217E + 10 5 JANUARY 12 2.3217E + 10 5 JANUARY 12 2.3217E + 10 JANUARY 5, 12
    2. UNASSIGNED 11 0 104857600 512 0 NOT ASSIGNED NO.
    2. UNASSIGNED 12 0 104857600 512 0 NOT ASSIGNED NO.

    6 selected lines.

    SQL > /.

    GROUP # DBID THREAD # SEQUENCE # BYTE BLOCKSIZE USED ARC STATUS FIRST_CHANGE # FIRST_TIM NEXT_CHANGE # NEXT_TIME LAST_CHANGE # LAST_TIME
    ---------- ---------------------------------------- ---------- ---------- ---------- ---------- ---------- --- ---------- ------------- --------- ------------ --------- ------------ ---------
    7. UNASSIGNED 1 0 104857600 512 0 NOT ASSIGNED NO.
    8. UNASSIGNED 1 0 104857600 512 0 NOT ASSIGNED NO.
    9. UNASSIGNED 1 0 104857600 512 0 NOT ASSIGNED NO.
    2. UNASSIGNED 10 0 104857600 512 0 NOT ASSIGNED NO.
    2. UNASSIGNED 11 0 104857600 512 0 NOT ASSIGNED NO.
    12 3903727333 2 38931 104857600 512 5120 YES ACTIVE 2.3217E + 10 5 JANUARY 12 2.3217E + 10 5 JANUARY 12 2.3217E + 10 JANUARY 5, 12

    GROUP # DBID THREAD # SEQUENCE # BYTE BLOCKSIZE USED ARC STATUS FIRST_CHANGE # FIRST_TIM NEXT_CHANGE #.
    ----------
    7. UNASSIGNED 1 0 104857600 512 0 NOT ASSIGNED NO.
    8. UNASSIGNED 1 0 104857600 512 0 NOT ASSIGNED NO.
    9. UNASSIGNED 1 0 104857600 512 0 NOT ASSIGNED NO.
    2. UNASSIGNED 10 0 104857600 512 0 NOT ASSIGNED NO.
    2. UNASSIGNED 11 0 104857600 512 0 NOT ASSIGNED NO.
    12 3903727333 2 38931 104857600 512 5120 YES ACTIVE 2.3217E + 10 5 JANUARY 12 2.3217E + 10 5 JANUARY 12 2.3217E + 10 JANUARY 5, 12

    DBID would be here.
    These groups of waiting for redo log files can contain either the thread 1 or thread2, several threads are used in RAC environment.

    In general architecture, once if any log switch (or) redo log is full then they will be sent in files archive, then it will be assigned to new files redo log. here in the primary redo log file, you can see the current, active, inactive state so now.

    During the real time applies, every time that data written to the primary log files, the log of the time same writer will be active and which will be assigned to the redo log file... not redo log file, you have to say standby redo log waiting for database.

    average not assigned here, this standby redo log file, can be used for the next time, perhaps earlier status as 'active '. Each time standby redo log file is active DBID so only you can see.
    If its in unassigned it will be inactive, once again if any new allocation then it will become active. similar chain / loop. This is perfectly normal behavior.

    UNASSIGNED - online redo log has never been written for. It comes to the State of a newspaper of restoration by progression that has been added, or just after a RESETLOGS when it is not the log during recovery.
    ACTIVE - Log is active but is not the current journal. It is necessary for the recovery of the failure. It can be used to block recovery. It may or may not be archived.

    HTH.

  • Real - Time apply a few times using archived log file

    Hi all

    I have a doubt about the real time apply in Oracle 10g 10.2.0.4 version where the arch process has been configured on the primary and standby has been configured for maximum performance with real time mode applies.

    But in the alert log file shall I use to find the message below rarely
    Media Recovery Log /oraclearch/oraarch/ctdr/5548.dbf
    Media Recovery Log /oraclearch/oraarch/ctdr/5549.dbf
    So my question is why the archived files are applied pending have been configured for real-time if applies where it should apply only from logs in mode standby online.

    Also I can't find any information on the eve of the database in the view v$ standby_log that these pending online log files have been archived in the column archived, then how to find how much data was written by process Srl rfs...

    -Yasser

    Hello

    The server process (RFS) remote file writes data to redo in files newspapers awaiting restoration by increase the standby database, application services log can recover again waiting for redo log files, as they are filled.

    Please visit http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/log_apply.htm

    Thank you
    Baskar.l

  • ORACLE 11G 'real-time applies' does not work?

    We have an original database on ORACLE 10.2.0.4 and update us for 11.1.0.7.
    After that, we create backup of database and tried to use the "real time applies.

    Principal database can transfer standby database log files and ensures database can also apply to newspapers. The problem is that we can NOT work on 'apply in real time '.

    Ideal ant that bad?

    = procedures = (standby database)

    SQL > bootable media.
    ORACLE instance started.

    Total System Global Area 2087780352 bytes
    Bytes of size 2161272 fixed
    1795163528 variable size bytes
    251658240 of database buffers bytes
    Redo buffers 38797312 bytes
    Mounted database.

    SQL > alter database open read-only.

    Database altered.

    SQL > alter recover managed standby database disconnect log file using current;

    Database altered.

    SQL > select PROTECTION_MODE, PROTECTION_LEVEL, DATABASE_ROLE, SWITCHOVER_STATUS, OPEN_MODE, GUARD_STATUS from v$ database;

    PROTECTION_MODE PROTECTION_LEVEL DATABASE_ROLE SWITCHOVER_STATUS
    -------------------- -------------------- ---------------- --------------------
    OPEN_MODE GUARD_S
    ---------- -------
    MAXIMUM PERFORMANCE STANDBY UNAUTHORIZED PHYSICAL PERFORMANCE
    NO CLIMB

    SQL > select process, status from v$ managed_standby;

    STATE OF THE PROCESS
    --------- ------------
    CONNECTED ARCH
    CONNECTED ARCH
    CONNECTED ARCH
    CONNECTED ARCH
    INACTIVE RFS
    MRP0 APPLYING_LOG

    6 selected lines.


    = Configuration of primary database init.ora file =.

    # for DG Employment
    db_unique_name = DBPMY
    log_archive_config = 'dg_config = (DBPMY, DBSBY)'
    Log_archive_dest_1 = ' LOCATION = / Archive/DBPMY/arc/Vault MANDATORY.
    LOG_ARCHIVE_DEST_2 = "service = DBSBY valid_for =(online_logfiles,primary_role) db_unique_name = DBSBY LGWR ASYNC = 20480 REOPEN option = 15 NET_TIMEOUT = 30'
    *.log_archive_format='DBPMY_%r_%t_%s.arc'
    log_archive_dest_state_1 = enable
    LOG_ARCHIVE_DEST_STATE_2 = enable

    Is your compatible parameter to at least 11.1?

    Best regards
    Robert
    http://robertvsoracle.blogspot.com

  • When to use real-time applies to logical expectations... !!

    Hi all

    I tried several ways to speed up archiving on primary and improve sql apply pending logical, but still we get 45-50 minutes late between the primary and the logic of sleep.

    We wanted to have our transactions applied logic waiting in couple minutes. I suppose that the habit is possible in asynchronous mode.

    That is why I intend to implement real-time applies between primary and logical intelligence.

    Now since our two databases are too far from each other (main is in the United States and makes sense in India) it is recommended to implement real-time applies in such situation? And if implemented it would affect primary DB Performance?

    As if there could be some coupling of network or primary packet loss will try again and keep logical DB in sync with primary?

    For any help or suggestions would be great.

    Thank you.

    Yes, apply in real time is recommended in your case.

    However, because of the geographical distance between the primary and standby; I would say to keep your watch in current - max performance mode; ASYNC-himself. It would not affect the performace of the primary.

    As long as you set the parameters of the FAL and configure tnsnames properly and ensure that the policy appropriate for cleaning archivelog primary (so), you should not find any problem with primary & ensures synchronization.

    Good luck.

    See you soon.

  • Error connecting to the database after you run 10 g Forms

    Hello

    I use Oracle forms v10.1.2.0.2 is the operating system Windows 8 32 bit.

    I get the following error (ORA-12154: TNS: could not resolve the connect identifier specified) when I enter the user name, the password, and the database after running the form.

    Although I can connect correctly in sqlplus. using the following command: Connect scott/xxxxxx@orcl

    the service name is ORCL. I can get it through the following query (see the service_name parameter)

    I checked the tnsnames.ora file and it is as follows:

    tnsnames.ora # Network Configuration file: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora

    # Generated by Oracle configuration tools.

    ORCL =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = WIN-G6PM1F1OBA5)(PORT = 1521))

    (CONNECT_DATA =

    (SERVICE_NAME = orcl)

    (SERVER = DEDICATED)

    )

    )

    EXTPROC_CONNECTION_DATA =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1))

    )

    (CONNECT_DATA =

    (SID = PLSExtProc)

    (PRESENTATION = RO)

    )

    )

    I have the settings in the file sqlnet.ora as follows:

    SQLNET. AUTHENTICATION_SERVICES = (NTS)

    NAMES. DIRECTORY_PATH = (TNSNAMES, EZCONNECT, WIN-G6PM1F1OBA5)

    and in file listener.ora as follows:

    listener.ora # Network Configuration file: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora

    # Generated by Oracle configuration tools.

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = PLSExtProc)

    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)

    (= Extproc PROGRAM)

    )

    )

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1))

    (ADDRESS = (PROTOCOL = TCP) (HOST = WIN-G6PM1F1OBA5)(PORT = 1521))

    )

    )

    Looking forward for your help in this matter.

    I use Oracle forms v10.1.2.0.2 is the operating system Windows 8 32 bit.

    I get the following error (ORA-12154: TNS: could not resolve the connect identifier specified) when I enter the user name, the password, and the database after running the form.

    Although I can connect correctly in sqlplus. using the following command: Connect scott/xxxxxx@orcl

    As already said, the combination is not taken in charge, but it's quite strange rhat you can connect to Sql * Plus, and you get the error of forms: the error is local and means that the tnsnames.ora file is not where it should be, or there are errors it contains.

    You have not all errors in the installation? the forms and reports test programs work?

    You have a database on this machine? Looks like that the tnsnames.ora you posted comes from a House of database, you have in Oracle Home Forms? (the absence of the latter that would explain the error you get).

  • How instance recovery and restart the database after SHUTDOWN ABORT?

    How instance recovery and restart the database after the database is closed by using the command "SHUTDOWN ABORT"?

    Recovery if instance Oracle background SMON instance failure process using or stop quitting or database starting strength. After shutdown abort you just restart the startup database, oracle will take care for instance recovery you need'nt to intervene for example recovery.

  • Need help to record execution time of SQL in the database

    Hello
    I have an interesting thing that I am tiring to do. I want to record how much time (wall clock) it took the database to execute a select statement against a particular view lets call it CUST_ORDERS_V.

    I want to check which ran, what the select statement (SQL text) and how long it took and perhaps a few other auxiliary things if possible.

    Research in most of my needs me to right audit Oracle and the SYS. AUD $ table. After you set up auditing with:
    audit_trail=db,extended
    
    and
    
    audit select on ME.CUST_ORDERS_V by access;
    I get every piece of information that I need, except for the time of execution. Wow that would be awesome if Oracle who recorded! So I thought that if I could. I was considering a trigger on SYS. AUD$ (I know bad thoughts) which would look at some reviews of $ V and get the runtime and write this in other tables custom with a link back to SYS. AUD$.

    Maybe this is the complete wrong way to do it. I was wondering if anyone had any ideas on that.

    I'm running on 11.2.0.3 EA. I'm on EA if I use Fine grain audit if necessary. However I DO NOT have the Tuning or Pack diagnosis.

    Sky13 wrote:
    It's a call center and people on phones have learned that they can blame the database for their lack of productivity. Knowing the TSMITH selected in the 210 view times in his shift and the DB responded within the "Acceptable" range 99.5% of the time would be invaluable.

    If you're running at three levels (and this seems very likely) then your intermediate level probably has a record feature which can be enabled via a change of a line in a configuration file so that it will write a log record in a flat file for each call to the database with information such as : (source, time, start sql statement, return time). It is probably a better place to find a solution to your problem.

    Concerning
    Jonathan Lewis

  • sqlplus crashes when connecting to the database after you apply the hotfix 10.2.0.4

    Hi, I applied the Group of hotfixes 10.2.0.4 and CPU January 2010 on my 10g database. my server is a windows 2003 x 64 with user specific (oradb)
    When I tried to connect to the database, it took 15 minutes for a normal user to open a session and each request is almost as long.
    If I connect as SYSDBA, everything seems fine.

    I don't see anything relevant in the alert_log or listener.log

    The only thing I see is the view v$ session_wait unusual. It seems that there are 26 to 28 the processes that are associated with the timeout, the database status I in runs of laboratory with 11-16 processes.

    Can someone tell me what I can look at?

    Thank you

    If your database is 24 * 7 first thing you creates an appropriate with gravity SR.

    In the meantime, you can create a database logon trigger to enable tracing for each session for this user before logging.let the logged-on user and then read the trace file to see what gets you.

  • In real time several parcels using the graphics buffer XY?

    Hi all. My teacher wanted to add a second set of data to the plot in real time, I've created in my vi. I was able to trace the two sets of data, but not as two plots. I managed to add a second point of y to the plot. What is the appropriate method for the use of a buffer of xy-graphic inside a loop to draw two separate parcels?

    The idea is that once I have two plots I can adjust a second axis and adapts the second group of data to this axis.

    Thank you!

    Nukem,

    LabVIEW 2010

    PS. Here is a picture of the small section of my program which is graphically representative data.

  • Windows Essentials program running "Real-time Protection"... the mouse cursor turns into hourglass several times per second...

    I have disable real-time protection it stops on and off an hourglass toggleing... its annoying... How to stop to turn to an hourglass without disabling protection... it doesn't seem to be a problem of performance... but it is visually annoying... Please and thank you for your comments.

    I had just installed Microsoft Essentials... before uninstalling software anti-virus TrenMicro expired... maybe Detailer left some files on my system after uninstall?

    Hello

    This problem normally occurs when there are files that are infected by viruses.

    Method 1:

    Run a scan antivirus on your computer.

    www.Microsoft.com/Security/Scanner

     
    Note: If infections are detected during the scan, there is a risk of data loss because infected files will be deleted.

    Method 2:

    You also try to run the uninstaller to complete tool to remove traces of antivirus Trend.

    http://eSupport.trendmicro.com/solution/en-us/1056551.aspx

    Check the issue.

    Method 3: Clean boot

    If the problem persists, you can place the computer in a clean boot.

    Put the computer in a State of boot is a way to know which application is causing this problem.

    To help resolve the error and other messages, you can start Windows by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    Put your boot system helps determine if third-party applications or startup items are causing the problem. If so, you need to maybe contact the manufacturer of the program for updates or uninstall and reinstall the program.

    Step 1: Follow the steps in the link below to do the same thing:

    How to configure Windows XP to start in a "clean boot" State

    Note: After troubleshooting, be sure to set the computer to start as usual as shown here:

    Step 2: To configure Windows to use a Normal startup state

    After you have used the boot is a way to solve your problem, you can follow these steps to configure Windows XP to start normally.

    a. Click Start and then click Run.

    b. type msconfig and click OK. The System Configuration Utility dialog box appears.

    c. click on the general tab, click Normal Startup - load all services and device drivers and then click OK.

    d. When you are prompted, click on restart to restart the computer.

    Hope this information helps. Response with status so that we can help you.

  • Question about real store type value in the database on Z10

    Hi all

    I'm trying to store a value in the database (datatype is defined as REAL), but the result on Simulator and Z10 is totally different, the two of them, the SDK version is the same (10.0.10.672)

    on the simulation, the value in the database is correct, like this

    Z10, the valve can become bad like this.

    Define a type of incorrect data or someone has an idea?

    Thank you.

    I think I have sloved... the problem before you record a double or real value in the database, convert QString

    fenceValue["latitude1"] = QString::number(m_FenceFromJson->m_PointFs.at(0).x(), 'f', 6);
    
  • BlackBerry Smartphones real time to sync with the calendar?

    I'm relatively new to Blackberry, my Motorola Q would make a synchronization of calendar in real time with my Outlook calendar on my pc at home. When I added an appointment in the Q, the Outlook calendar could be updated shortly, is it possible to do it with the curve 8330? So I don't have to come all day from home and plug it in. Thank you

    Hi and welcome to the forums,

    Wireless calendar synchronization is available only for BES users at this point, so if you or your business to work with a Blackberry Enterprise / Professional Server, then you will have sync wireless real-time.

    However, if you use the BIS service, you can only synchronize with Blackberry Desktop Manager with your PC.

  • How can I get a display of a Gaussian filter in real time by painting with the brush?

    I'm trying to find information on how to get a live view of the Gaussian blur by painting with the brush.

    Google is not useful, nor own Adobe forum searches produce something useful.

    I've seen talk about Smart filters and naming the layer as a smart object in order to activate a dynamic filter, but I can't get the display in real-time of the filter when you paint so I'm not sure if this process is helpful at all for me or not because I can't locate information specific to what I'm trying to do.

    I use by way CS5, so if this option does not exist, it would be useful to know so that I'm not spinning my wheels.

    Thank you

    You seem to talk about to see in the future.  You want to see the effect of a unused Gaussian blur filter while wearing the brushstrokes on that later, you intend to use the Gaussian blur.  How would this work?

    I use constantly a similar workflow for shading in my illustration work.  If the blur spreads too wide effect, I use Free Transform to resize. If it becomes too transparent, duplicate the layer to increase the opacity.  If too thick, I reduce the opacity of the layer.  I wouldn't bother using intelligent layers of the to because it would have no benefit.  Is it that help at all?

  • my clock in real time, not to keep the right time what to do?

    I keep trying to set clock time

    Hi Alice green,.

    Follow the following troubleshooting methods:

    Method 1:

    I suggest you to set the correct time zone where you live.

    Make sure that "automatically adjust for Daylight Saving Time" is checked when you change the time zone.

    Check out the following link to change the time zone.

    To change the time and the time zone of your computer

    Method 2:

    I suggest you to check the time in the BIOS.

    Check your BIOS go to the configuration to start the computer.  Make sure THAT time is also set to what you want to be

    a. press the del key at startup which will open the configuration of the BIOS.

    b. Select the time system, and check the time.

    For more help with the BIOS settings, see the manual of the system.

    Note: Change (CMOS) BIOS/complementary metal oxide semiconductor settings can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/CMOS settings can be solved. Changes to settings are at your own risk.

    Method 3:

    Another cause of this problem could be the BIOS battery.

    I suggest you to replace the BIOS battery and check how it works.

    You can replace the BIOS battery by contacting your manufacturer or shops local tech.

Maybe you are looking for