Datagaurd Log Query

Hi ,
we are on oracle 11.1.0.6 , implemented Datagaurd , OS is SPARC - 64 bit.
We are transfering Log from Primary to Secondary using datagaurd and we have found a gap in the secondary Db.
On furthur analysis we came to know that one of the log files is not generated in the primary database.
To over come to this issue,apart from recreating standby database , do we have any other solution /option.
Thanks
Kkukreja

Hi CKPT,
please find the response below :
from primary
SQL> select thread#,max(sequence#) from v$archived_log group by thread#;
   THREAD# MAX(SEQUENCE#)
         1          39136from secondary :
SQL> select * from v$archive_gap;
   THREAD# LOW_SEQUENCE# HIGH_SEQUENCE#
         1         37007          37007
SQL> select thread#,max(sequence#) from v$archived_log where applied='YES' group by thread#;
   THREAD# MAX(SEQUENCE#)
         1          37006
I rechecked , the archive logs were generated in primary... but it seems someone has removed them.
We have not configured the RMAN.As the archieve log is not present in primary how would we restore ?
Regards
Kkukreja

Similar Messages

  • CMD=Ping&log query is taking long time-taken when checked in IIS logs.... Exchange 2010 SP3..

    Query regarding the ActiveSync and parameter time-taken from ActiveSync IIS logs.
    Here what I see for from the logs.
    [email protected] 45.101.90.185 Apple-iPad2C3/1202.410 200 0 0 1501129
    443 [email protected] 45.101.90.185 Apple-iPad2C3/1202.410 200
    0 0 22105
    443 [email protected] 45.101.90.185 Apple-iPad2C3/1202.410 200
    0 0 452
    443 [email protected] 45.101.90.185 Apple-iPad2C3/1202.410 200
    0 0 936
    443 [email protected] 45.101.90.185 Apple-iPad2C3/1202.410 200
    0 0 656238 
    In the above log, highlighted are the time-taken and I just want to check what is the ideal time-taken value, some value above should be causing some problem, like the one of the top 1501129 ?
    ?AND I see its for POST event and CMD=Ping&log query.......
    We have Mobile Iron in the environment and we are seeing few timeout errors on MobileIron server and for users intermittently. They usually see below error... However we don't see any end users issues, but just want to get rid of below error. MobileIron guys
    are pointing it to time-taken value which is high intermittently.
    IOException connection to server [email protected] -- java.io.IOException:
    awaitUninterruptibly was stopped by timeout
    @BALA

    Hi,
    To understand more about the issue, I’d like to confirm the following information:
    1. What’s your Exchange 2010 version? 
    http://support.microsoft.com/kb/2536517/en-us
    2. Do you install other software, like SQL, on the same Exchange Server?
    3. Change another admin account to access EMS.
    Thanks,
    Angela Shi
    TechNet Community Support

  • System log query is flooded with the message.. WindowServer[]: WSSetTrackingAreaEnabled : Invalid tracking area

    Hello apple community (: quick question
    my system log query is flooded with the message..
    "8/29/14 12:10:12.258 PM WindowServer[176]: WSSetTrackingAreaEnabled : Invalid tracking area 0x61000089f220"
    it has shown me after i run Mavericks Cache Cleaner to clean my computer. in my Activity Log, WindowServer[176] is taking up anywhere from 5 - 20 cpu at a time. (maybe more haven't watched it for too long)
    what do i do fix this? i recently updated to OS X and i haven't payed attention to the errors until now (i'm an idiot i know..) so i don't exactly know when it all started happening. sorry all just hoping someone will have an idea.
    -Ali

    What functional problem do you have, if any? Log messages are not a problem in themselves.

  • Audit Log query

    I am trying to figure out why a query of the OID audit logs is taking so long....
    the search filter is:
    (&(orcleventtime>=20070426)(orcleventtime<=20070427)(orcleventtype=User login))
    it takes 97 seconds to return 1622 entries.
    when i run a query with this filter....
    (&(orcleventtime>=20070426)(orcleventtype=User login))
    it takes 0.2 seconds
    any ideas?

    Purging an AUD$ table is good idea after taking the export....
    Yeah...that could be better idea to audit those things that application skips...
    I was just getting calls from finance and operations departments... complaining that their ERP applications were haning taking long time to execute day end procedures and in reports...around 20 to 30 minutes.... as I recalled that my last deployment on live was enabling of auditing as I executed noaudit all and noaudit select, update, delete, insert on erp, The user got their day end procedures executed and report in less than 1 minute...
    Can anybody explain me....Does auditing degrades performance..?
    Regards?

  • Materialized View Logs Query

    Hi All,
    I had some problem with my Materialized views, that's why Dropped all of the Logs + Materialized Views from my Production Database. Kindly tell me that, Is there any Query, which I can run and make Materialized View Logs from my Existing Tables . Thanks
    Regards,
    Imran

    Incremental Materialized View creation steps
    Hi,
    Find the below steps to create MV's with logs.
    1.     Materialized view log creation at master.
    2.     DB link creation at MV site to master site.
    3.     Materialized view creation at MV site.
    4.     Refresh the MV.
    Materialized view log creation at master.
    SQLPLUS <USER_MASTER_SITE>/<PASSWORD>@<MASTER_SITE>
    CREATE MATERIALIZED VIEW LOG ON <TABLE_NAME>;
    DB link creation at MV site.
    SQLPLUS <USER_MV_SITE>/<PASSWORD>@<MV_SITE>
    CREATE Database Link <MASTER_SITE> Connect To <USER_MASTER_SITE> Identified By <PASSWORD> Using ‘<tnsnames>’
    Materialized view creation at MV site.
    SQLPLUS <USER_MV_SITE>/<PASSWORD>@<MV_SITE>
    CREATE MATERIALIZED VIEW <TABLE_NAME> BUILD
    IMMEDIATE REFRESH FAST ON DEMAND
    ENABLE QUERY REWRITE
    AS SELECT * FROM <TABLE_NAME>@<MASTER_SITE> REFRESH ;
    Refresh the MV.
    SQLPLUS <USER_MV_SITE>/<PASSWORD>@<MV_SITE>
    Execute DBMS_SNAPSHOT.REFRESH( '<TABLE_NAME>','f');
    Regards,
    Prasanna

  • Logging Query.

    Hi ,
    I want to activate the logging option in query (sq01,sq02,sq03).
    I already define the infoset which i want to log in SPRO and create the BAdi.
    Between the commands method IF_EX_AQ_QUERY_PROT~QUERY_PROT and endmethod
    i insert breakpoint and when i execute a query it's not stop and the log table is empty.
    Is there someting i'm doing wrong?
    Thanks.

    Hi,
    After few test i realized that data into the log table is saved only when i execute the query with the Infoset query option with the functions :
    ·         Refresh Data (in the output preview)
    ·         Output Area
    ·         Select (only with HR queries)
    still the BAdi  didn't stop on the breakpoint i don't know why.
    is anybody familiar with sap query logging??
    I want to collect data on the queries and i want it to display the name of the query too in the log table.
    Hope you can help.
    Thanks in advance.

  • Logging query with information about ip client machine address

    Halo,
    One of our most important requirements is logging user query (physical to database and logical) with following informations:
    - USER
    - SQL QUERY TEXT (logical/physical)
    - DATE and TIME executing query
    - IP ADDRESS client machine (or name of client machine) (this is very important information)
    We have following configuration:
    - BI Server with Presentation Servicess on one machine (AIX)
    - Web server on second machine (BEA Weblogic 9)
    I've tested [USAGE_TRACKING] mechanism but thera are three problems with it:
    1. in S_NQ_ACCT in field NODE_ID is always written the same information: name of Web Server - WebLogic
    2. in S_NQ_ACCT are storages only logical queries.
    3. Length of field QUERY_TEXT is 1024. I'm sure that in many cases it'll be to short.
    I've tested USER_LOG too (that logs to NQQuery.log file) but there are also some problems:
    1. there is no information about ip client machine but is information about physical and logical queries and other necessary informations
    2. oracle recommends turn off this mechanism on production system.
    I've tested PRESENTATION SERVICESS log (it is configured at logconfig.xml file)
    1. In file is information about ip client machine
    2. In file are written only logical queries (this is big problem we also need physical queries)
    Do you have some idea how to resolve my problem?
    Regards

    hi, you can use the sys_context function, like this:
    select sys_context('userenv','current_user'),
         sys_context('userenv','os_user'),
         sys_context('userenv','host'),
         sys_context('userenv','ip_address'),
         sys_context('userenv','instance'),
         sys_context('userenv','sessionid'),
         sys_context('userenv','terminal')
    from dual;
    Is this what you 're looking for?

  • Archive log query

    Hi,
    i want to extract the last archived log and the time of archiving. I know that maybe it's a stupid question but how i can get the last line from v$loghist if i have to use the group by clause because of the max function?
    This is my query:
    select max(sequence#),to_char(first_time,'DD-MM-YYYY, HH24:MI:SS') from v$loghist group by first_time;
    Thank you.
    Tarek

    This should do it:
    SELECT
      sequence#,
      to_char(first_time,'DD-MM-YYYY, HH24:MI:SS')
    FROM
      v$loghist
    WHERE
      sequence# IN
      (SELECT
        max(sequence#)
      FROM
        v$loghist
    SEQUENCE# TO_CHAR(FIRST_TIME,'
           229 14-01-2003, 09:19:43Hope this helps,
    L.

  • Log query execution

    Hi all,
    I have designed a query with variables from query designer and I've executed that query from an external tool (Xcelsius).
    If I execute the query from BEx Web Analyzer or BEx Analyzer the query works well, but if I execute the query from Xcelsius I got an error.
    Is there any log to see how the query and values of the variables arrive to BI server?
    I need to know if I'm sending the information in a good way.
    Best regards,
    Noèlia Soleres

    Hi all,
    to answer Jai questions, I got the following errors:
    1) SOAP Event: General exception unknown 
    2) Unknown pattern (Using Query As a Web Service)
    The connectivity between BW and  Xcelsius is OK, but no query I use works.
    I hope this helps.
    And Ralf, thank you very much. I will try rstt transaction. As you have said that will help me to know if the query arrives to BI.
    Best regards,
    Noèlia

  • Time Machine log query plus advice on SystemUIServer logs

    Recently I repartitioned my USB 500 GB drive used with Time Machine after unsatisfactory performance post installation of Yosemite 10.10. Disk Utility verifies the drive as OK.
    I noticed the first entry in the Time Machine widget after every start up is:
    Property list invalid for format: 200 (property lists cannot contain NULL)
    Property list invalid for format: 200 (property lists cannot contain NULL)
    usually as above but at times just the one line.
    A successful backup has followed anywhere between 7 and 33 mins later.
    On checking the Console after entering “backupd” in the Filter field and selecting “system.log” from the log list I can see the earliest entry is:
    Oct 24 00:53:27 com.apple.backupd-helper[44]: Attempt to use XPC with a MachService that has HideUntilCheckIn set. This will result in unpredictable behavior: com.apple.backupd.status.xpc
    Followed by:
    Oct 24 00:53:57 com.apple.backupd [2925]: Starting automatic backup
    Oct 24 00:53:58  com.apple.backupd [2925]: Backing up to /dev/disk1s2: /Volumes/My Passport/Backups.backupdb
    Oct 24 00:54:03  com.apple.backupd [2925]: Will copy (15.1 MB) from Macintosh HD
    Oct 24 00:54:03  com.apple.backupd [2925]: Found 208 files (15.1 MB) needing backup
    Oct 24 00:54:03  com.apple.backupd [2925]: 934 MB required (including padding), 309.74 GB available
    Oct 24 00:54:13  com.apple.backupd [2925]: Copied 446 items (15.1 MB) from volume Macintosh HD. Linked 2268.
    Oct 24 00:54:17  com.apple.backupd [2925]: Created new backup: 2014-10-24-005417
    Oct 24 00:54:18  com.apple.backupd [2925]: Starting post-backup thinning
    Oct 24 00:54:18  com.apple.backupd [2925]: No post-backup thinning needed: no expired backups exist
    Oct 24 00:54:18  com.apple.backupd [2925]: Backup completed successfully.
    Oct 24 00:56:20  SystemUIServer [863]: Attempt to use XPC with a MachService that has HideUntilCheckIn set. This will result in unpredictable behavior: com.apple.backupd.status.xpc
    Logs confirm I performed a successful manual backup - Oct 24 01:29:37
    Since then manual and automatic backups have been running seemingly successfully, removing expired backups or not, I presume accurately as required.
    Time Machine is certainly backing up although the interface is not always as smooth as prior Yosemite.
    On searching for the message indicating unpredictable behaviour I discovered this thread:
    https://discussions.apple.com/thread/6620539?start=0&tstart=0
    The unpredictable behaviour with “backup.status.xpc” has continued. As of today recent logs read as follows:
    Oct 27 14:38:16  com.apple.backupd[2535]: Backup completed successfully.
    Oct 27 14:40:17  SystemUIServer[735]: Attempt to use XPC with a MachService that has HideUntilCheckIn set. This will result in unpredictable behavior: com.apple.backupd.status.xpc
    Oct 27 15:38:17  com.apple.backupd-helper[44]: Attempt to use XPC with a MachService that has HideUntilCheckIn set. This will result in unpredictable behavior: com.apple.backupd.status.xpc
    Oct 27 15:38:47  com.apple.backupd[3982]: Starting automatic backup
    Oct 27 15:38:47  com.apple.backupd[3982]: Backing up to /dev/disk1s2: /Volumes/My Passport/Backups.backupdb
    Oct 27 15:38:53  com.apple.backupd[3982]: Will copy (8.8 MB) from Macintosh HD
    Oct 27 15:38:53  com.apple.backupd[3982]: Found 164 files (9.1 MB) needing backup
    Oct 27 15:38:53  com.apple.backupd[3982]: 928.1 MB required (including padding), 307.93 GB available
    Oct 27 15:38:57  com.apple.backupd[3982]: Copied 243 items (8.9 MB) from volume Macintosh HD. Linked 1768.
    Oct 27 15:39:01  com.apple.backupd[3982]: Created new backup: 2014-10-27-153901
    Oct 27 15:39:02  com.apple.backupd[3982]: Starting post-backup thinning
    Oct 27 15:39:05  com.apple.backupd[3982]: Deleted /Volumes/My Passport/Backups.backupdb/***REDACTED*** iMac/2014-10-26-151157 (8.8 MB)
    Oct 27 15:39:05  com.apple.backupd[3982]: Post-backup thinning complete: 1 expired backups removed
    Oct 27 15:39:05  com.apple.backupd[3982]: Backup completed successfully.
    Oct 27 15:41:06  SystemUIServer[735]: Attempt to use XPC with a MachService that has HideUntilCheckIn set. This will result in unpredictable behavior: com.apple.backupd.status.xpc
    NB: ***REDACTED*** is owners name.
    Added to this I've filtered system.log using "SystemUIServer" and recently found these logs corresponding to startup.
    Oct 27 09:01:30  com.apple.xpc.launchd[1] (com.apple.systemuiserver.ServiceProvider): The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.
    Oct 27 09:01:30  com.apple.xpc.launchd[1] (com.apple.systemuiserver.screencapture): The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.
    Oct 27 09:01:43  SystemUIServer[735]: Cannot find executable for CFBundle 0x7f87aa429a00 </System/Library/CoreServices/Menu Extras/Clock.menu> (not loaded)
    Oct 27 09:01:43  WindowServer[185]: disable_update_timeout: UI updates were forcibly disabled by application "SystemUIServer" for over 1.00 seconds. Server has re-enabled them.
    Oct 27 09:01:44 WindowServer[185]: common_reenable_update: UI updates were finally reenabled by application "SystemUIServer" after 1.29 seconds (server forcibly re-enabled them after 1.00 seconds)
    Oct 27 09:01:45  SystemUIServer[735]: Could not find image named 'greenmarker'.
    Any insight or advice would be greatly appreciated. System running well.
    Thanks in advance
    iMac Late 2009, OS X Yosemite (10.10), 3.06 GHz Intel Core 2 Duo, 12 GB 1067 MHz,
    2nd display connected via mini display port as extended desktop used to varying degree.

    That's very welcome feedback Linc.
    Thanks for reading through the post.

  • Event Log Query

    A while ago I noticed these entries in the Hub Event Log.
    At the time there were no active PC's powered on. What does the entry "[CWMP] Connection Request NOT ALLOWED." indicate? It appears that a warm reset was trigered.
    Who was Lua user in "SYSTEM reboot by Lua user"?
    00:00:29   1 Jan WIRELESS interface turned on.
    00:00:27   1 Jan usbmgr: start 0.4.8
    00:00:19   1 Jan KERNEL Warm restart
    04:16:34   7 Dec KERNEL Controlled restart
    04:16:34   7 Dec SYSTEM timed reboot triggered by timeout
    04:16:24   7 Dec FIREWALL event (1 of 37): created rules
    04:16:24   7 Dec PPP link down (Internet) [86.130.16.75]
    04:16:18   7 Dec FIREWALL replay check (1 of 1): Protocol: ICMP Src ip: 86.130.16.75 Dst ip: 62.239.169.176 Type: Destination Unreachable Code: Port Unreacheable
    04:16:18   7 Dec VOIP: [2.0A] [***********] [FXS DECT1 DECT2 DECT3 DECT4 DECT5] REGISTER - SIP message sent
    04:16:17   7 Dec DHCS server went down
    04:16:17   7 Dec FIREWALL event (1 of 7): deleted rules
    04:16:15   7 Dec SYSTEM reboot by Lua user
    04:16:15   7 Dec CONFIGURATION saved by TR69
    04:15:44   7 Dec [CWMP] Connection Request NOT ALLOWED.
    Peter

    CWMP is BTs remote configuration system which is used to change certain settings within the home hub, for some reason it forced a restart.
    It may be worth resetting the home hub to factory default, as the configuration may be corrupted.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Router Logs - Query

    I have just set up my router and all is connecting very well, except I keep seeing this message in my router logs:
    TCP Packet - Source:192.168.0.3,49678 Destination:server213-171-218-171.livedns.org.uk,80 - BLOCK
    Can anyone help me to understand what this message actually means and more importantly, do I need to worry about it ?
    Any light that can be shed is as always appreciated.

    In my routers setup pages I have an attached devices page. On that page it says that the .3 address is unknown.
    Another thing is I have set my router to send me hourly logs which it was doing ok up until two days ago but now I am not receiving these logs anymore via email.
    I have also now noticed in my router logs another message since midnight last night:
    Wed, 2007-11-21 20:00:00 - unexpected reply: 535 Incorrect authentication data
    Wed, 2007-11-21 21:00:00 - unexpected reply: 535 Incorrect authentication data
    Wed, 2007-11-21 22:00:01 - unexpected reply: 535 Incorrect authentication data
    Wed, 2007-11-21 23:00:04 - unexpected reply: 535 Incorrect authentication data
    Thu, 2007-11-22 00:00:01 - unexpected reply: 535 Incorrect authentication data
    Thu, 2007-11-22 01:00:00 - unexpected reply: 535 Incorrect authentication data
    Thu, 2007-11-22 02:00:00 - unexpected reply: 535 Incorrect authentication data
    Thu, 2007-11-22 03:00:00 - unexpected reply: 535 Incorrect authentication data
    Thu, 2007-11-22 04:00:00 - unexpected reply: 535 Incorrect authentication data
    Thu, 2007-11-22 05:00:01 - unexpected reply: 535 Incorrect authentication data
    Thu, 2007-11-22 06:00:03 - unexpected reply: 535 Incorrect authentication data
    Should I be worried ?

  • Photostream system log query

    I have just noticed the following which repeats ad infinitum:
    Mar  8 15:35:21 JamesMacBookPro com.apple.xpc.launchd[1] (com.apple.photostream-agent): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
    Mar  8 15:35:31 JamesMacBookPro com.apple.xpc.launchd[1] (com.apple.photostream-agent[6843]): LaunchServices returned a bundle URL that does not match with the LoginItem's known association.
    Mar  8 15:35:31 JamesMacBookPro com.apple.xpc.launchd[1] (com.apple.photostream-agent): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
    Mar  8 15:35:41 JamesMacBookPro com.apple.xpc.launchd[1] (com.apple.photostream-agent[6844]): LaunchServices returned a bundle URL that does not match with the LoginItem's known association.
    Mar  8 15:35:41 JamesMacBookPro com.apple.xpc.launchd[1] (com.apple.photostream-agent): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
    How can I rectify this? What does it mean by bundle URL?

    What functional problem do you have, if any? Log messages are not a problem in themselves.

  • HH5 log query

    My granddaughter visited & used the wifi.
    Not here now so how do I remove the reference from the DHCP log.
    It just keeps telling me that it is disconnected.
    Obviously it does not show under 'Home Network'
    I used to be able to get rid of that sort of thing I know, but not any more.

    Think it will go away from the actual DHCP logs after lease time expired. Standard lease time is 24 hours.
    Remember similar issue with a visitor. It does not show under advanced menu listing.
    My iPod does the same, I.e. Not listed but shows disconnected in logs on session start up.

  • DataGaurd - Failback query

    Dear Guru's
    I am requesting you all. can any one please explain the fail back procudere after a fail over in dataguard. I go through the oracle DG concepts giude but it s not explained any where.
    Thanks,
    Prasanna.

    First iam not guru
    1. At the time of failover the PDB is down abnormally due to some reason and the SDB becomes primary.
    2. Till the time we rectify the issue in PDB the transactions will takes place against the SDB.
    3. Now I identifie the problem and resolved it in PDB and I can bring up my PDB.Please once again make sure it is performed switch over or fail over?
    If switch over, you can turn standby --> primary & primary --> standby..
    if in fail over, once standby database commited to fail over this acts as primary database, i think again you need to rebuild the standy database.
    check http://vnull.pcnet.com.pl/dl/oracle/937wp.pdf
    Thanks
    Edited by: CKPT on Nov 15, 2010 4:18 PM

Maybe you are looking for