Active Dataguard

If I check allows you to select on the active dataguard, which is currently used, real time reporting - this possible with audit_trail = XML?

Thank you

Create the user on the primary:

CREATE USER TIGER
  IDENTIFIED BY SCOTT
  DEFAULT TABLESPACE USERS
  TEMPORARY TABLESPACE TEMP
  PROFILE DEFAULT
  ACCOUNT UNLOCK;

  GRANT CREATE SESSION TO TIGER;

Make sure that session of checking is enabled and pass the journal:

audit create session;

alter system switch logfile;

On the primary and Standby audit_trail set of databases:

alter system set audit_trail='XML' scope=spfile;

Primary Stutdown:

shutdown immediate;

On sleep cancel the recovery and stop:

SQL> alter database recover managed standby database cancel;

Database altered.

SQL> shutdown

Starting primary school:

startup;

On the start Active Data Guard

startup

recover managed standby database using current logfile disconnect;
Media recovery complete.

In a separate terminal connect you under the Tiger user.

As SYS to audit the session on implementing checking to standby

SELECT A.USERNAME,
    OS_USERNAME,
    A.TIMESTAMP,
    A.RETURNCODE,
    TERMINAL,
    USERHOST
    FROM DBA_AUDIT_SESSION A
WHERE USERNAME = 'TIGER' ;

no rows selected

SQL> 

Planned, data is always READ_ONLY

Check the XML file in the standby mode:

File : standby_ora_12472_1.xml

Shows

DB_User TIGER DB_User

Format changed to OTN.

So there is hope!

The file showed too much my office name and IP address.

Additional items in the audit XML file

DB_User ( TIGER )
OS_User
Userhost
DBID
Audit_Type ( SESSION ID)

Best regards

mseberg

Published by: mseberg on 27 Sep, 2011 14:22

Tags: Database

Similar Questions

  • Active Dataguard passage puts new Eve in time real query

    Hi gurus,

    If you use Active Dataguard, after swicthover/failover using observer and dg broker no sthe new Eve will be time real query mode (ADG) or manually having to open the db in read-only mode.

    Please let me know.

    Thank you

    Yes, it is:

    [uhesse]$ dgmgrl sys/oracle@prima
    DGMGRL for Linux: Version 11.2.0.1.0 - Production
    
    Copyright (c) 2000, 2009, Oracle. All rights reserved.
    
    Welcome to DGMGRL, type "help" for information.
    Connected.
    DGMGRL> show configuration
    
    Configuration - myconf
    
      Protection Mode: MaxAvailability
      Databases:
        prima - Primary database
        logst - Logical standby database
        physt - Physical standby database
    
    Fast-Start Failover: DISABLED
    
    Configuration Status:
    SUCCESS
    
    DGMGRL> show database physt
    
    Database - physt
    
      Role:            PHYSICAL STANDBY
      Intended State:  APPLY-ON
      Transport Lag:   0 seconds
      Apply Lag:       0 seconds
      Real Time Query: ON
      Instance(s):
        physt
    
    Database Status:
    SUCCESS
    
    DGMGRL> switchover to physt;
    Performing switchover NOW, please wait...
    New primary database "physt" is opening...
    Operation requires shutdown of instance "prima" on database "prima"
    Shutting down instance "prima"...
    ORA-01109: database not open
    
    Database dismounted.
    ORACLE instance shut down.
    Operation requires startup of instance "prima" on database "prima"
    Starting instance "prima"...
    ORACLE instance started.
    Database mounted.
    Database opened.
    Switchover succeeded, new primary is "physt"
    DGMGRL> show configuration
    
    Configuration - myconf
    
      Protection Mode: MaxAvailability
      Databases:
        physt - Primary database
        prima - Physical standby database
        logst - Logical standby database
    
    Fast-Start Failover: DISABLED
    
    Configuration Status:
    SUCCESS
    
    DGMGRL> show database prima
    
    Database - prima
    
      Role:            PHYSICAL STANDBY
      Intended State:  APPLY-ON
      Transport Lag:   0 seconds
      Apply Lag:       0 seconds
      Real Time Query: ON
      Instance(s):
        prima
    
    Database Status:
    SUCCESS
    

    Kind regards
    Uwe Hesse

    http://uhesse.WordPress.com

  • Choose the mode of protection of active dataguard

    Hi gurus,

    I'm confused with dataguard Active Setup mode - what do I have to configure physical shall make use of an actress dataguard. I know that I can even use ensures maximum performance with redolog for real-time query. But what is the minimum protection mode to run active dataguard.

    How can I configure a delay of 1 hour for active dataguard in GR 11, 2?

    Thank you

    You said:
    >
    By default, Dataguard is in maximum performance mode... We can define the time of one hour by setting the
    LOG_ARCHIVE_DEST_2 = 'service = to_standby lgwr async affirm reopen = 60'
    or
    LOG_ARCHIVE_DEST_2 = 'service = to_standby lgwr async delay = 60'
    >

    I'm sorry, but your first log_archive_dest_2 value is not correct:
    The combination of ASYNC & AFFIRM is not taken in charge and not sensitive; REOPEN = 60 will not delay applying it again

    See here for a good explanation of log_archive_dest_n:
    http://download.Oracle.com/docs/CD/E11882_01/server.112/e17110/initparams121.htm

    Kind regards
    Uwe Hesse

    http://uhesse.WordPress.com

  • Question about Active Dataguard

    Version: 11.2
    Operating system platform: Solaris 10

    I've only worked with 10 gr 2 physical standby databases. Now we will install 11.2 on solaris.
    Read about 11 g Dataguard active characteristic of what applications can connect to the DB in waiting for read only operations.
    Once Dataguard Active is enabled (to learn), if the main BP is heavily loaded and a session triggered an intensive resource SELECT query, process that will redirect the SELECTED for the less loaded standby DB? Is the listener as it does in the CARS?

    Hello;

    Active Data Guard is a database of "Reader". I don't think there is a process that turns automatically off of load to it.

    If its great for reporting etc.

    Another option Active Data Guard, is that it allows fast incremental backups RMAN on the Active Data Guard physical standby.
    It is another potential way of unloading of a treatment of the database of the database pending production.

    Active Data Guard is an option to license additional and another that some alter database controls its pretty simple.

    alter database recover managed standby database cancel;
    alter database open; 
    

    http://Oracle.techdata.ch/src/data/PDF/Active_Data_Guard.PDF

    Also worth a visit:

    Bug 7633734 : DG ADMIN PAGE TIME REAL QUERY DISPLAYS OFF WHEN ACTIVE FOR 11.2 DATABASES

    Best regards

    mseberg

  • Active DataGuard question

    I have the following question on the transfer of data from active recovery to host standby:

    Is it possible to transfer redo data to a standby host on multiple TCP connections. Our EXTENSIVE network is configured with 4 links of T3 and we want to spread the traffic on the 4 links. This could be achieved if the Oracle Net Services allows a kind of multiplexing on several parallel connections. Is this possible? In this case how can I configure Net Service.

    Thanks for your reply.

    Maybe you think due to the RAC network configuration.

    It is not possible. In the case of CARS, if you have multiple instances, then you must use each of them. But here talk you single instance.

    (1) others that you focus on the speed of the network between two sites
    (2) make some adjustments on the eve as to increase processes to speed up the process similar log_archive_max_processes

  • Growing Db_block_size on Active dataguard

    Hello

    I'm using oracle 11 g 2. I made a Active Data Guard (physical standby) to this database and use it also as readonly database for reports questioning (OLAP object). I want to know is - it possible to increase db_block_size only on the custody of the data to improve OLAP queries? for example, 8 k in primary db and 16 k or 32 k standby db.

    THX in adv

    Means physical standby redo log is delivered.
    Redo log contains the Relative block address to change.
    So if database block sizes are not same RBAS will be different and physical intelligence will no longer work.

    Apart from that many people have made research more blocksizes aren't necessarily better.

    --------
    Sybrand Bakker
    Senior Oracle DBA

  • Active DataGuard: ora-16000 database opened for read-only access

    Hi all

    Application, I get the error message "ora-16000 database opened for read-only access, while my primary database is up/open for read/write." When I stopped the standby database, the application works very well.

    Please suggest what could be the reason and the solution for the same.

    OS: RHEL - 5.3

    Oracle: 11.2.0.1.

    Kind regards

    Ronak Masudi

    Patch 9322138 ORA-16000 on recursive SQL on standby database Query rewrite

    I wouldn't be sure if tha applies to your scenario. What you might want to check is this host = xxxx in your tnsnames file points to the right machine or resolve the correct IP addresses. Perahps you have confused primary and standby.

  • Impossible to activate Active Dataguard Standby

    Oracle 11.2 version >
    Platform OS > AIX 6.1

    We have created our new physical Standby database and it's in recovery mode run for a week.

    Today, for having reported the end, we decided to open the DB in read-only mode. But I am getting the error
    SQL > alter database recover managed standby database cancel;
    Database altered.
    
    SQL> ALTER DATABASE OPEN read only;
    ALTER DATABASE OPEN read only
    *
    ERROR at line 1:
    ORA-10458: standby database requires recovery
    ORA-01196: file 1 is inconsistent due to a failed media recovery session
    ORA-01110: data file 1: '/u04/oradata/spike/system_01.dbf'
    When we have investigated further, we found that the standby DB is not synchronized with the primary DB (there are a few gaps journal archives). Where should I start to diagnose this problem? Any potential cause, you might think?

    Hello;

    The two newspapers to alert is your friends please check them and post errors to come back here.

    Run the latter on primary-SYSDATE set as needed so that we can have an idea about when the gap started.

    clear screen
    set linesize 100
    
    column STANDBY format a20
    column applied format a10
    
     SELECT
       NAME AS STANDBY,
       SEQUENCE#,
       APPLIED,
       COMPLETION_TIME
     FROM
       V$ARCHIVED_LOG
     WHERE
       DEST_ID = 2
     AND
       NEXT_TIME > SYSDATE -1;
    
    SELECT
      MAX(SEQUENCE#)
    FROM
      V$ARCHIVED_LOG
    WHERE
      NEXT_TIME > SYSDATE -1;
    

    Best regards

    mseberg

  • Active low Dataguard performance, compared to Production

    We have 11g R2 RAC as production and Active data guard is autonomous. the structure is almost the same

    a single query takes 15 seconds in the production, where the same query is 54 seconds in Dataguard Active.

    How can I set Active Dataguard.

    Thanks in advance.

    REDA

    Hello

    You can use this tool (Standby Statspack) to optimize the running queries on the database pending. It allows you to generate an AWR and SQL report on the primary database for a query running in standby mode.

    Provides report function SQL with STATSPACK STANDBY and Active Data Guard (Doc ID 1081044.1)

    HTH,

    Pradeep

  • How to open a dataguard active?

    Hello

    I have an Active DataGuard and Solaris 10, Oracle version 11.2.0.3.
    I have to do a test on the environment active DataGuard, I want to open this database to perform multiple DML scripts. In the end I come to the active DataGuard as it was before the opening to continue with normal operation.

    I appreciate the document indicate commands or procedure I have to run to do this activity.

    Kind regards
    Milton

    If I understand correctly you want to open the database in read/write mode standby, test it, and once again return to mode stand by database. If this is the case then the following link can help you.

    http://oracleinstance.blogspot.in/2011/09/physical-standby-database-for-ReadWrite.html

  • How do I know the delay in the redo log apply on Active 11g Dataguard

    Hi all

    How do I know the delay in the redo log apply on Active Dataguard 11 g...

    Do we need to wait until the log switch occurs?

    Or is it recommended to provide a switch to log every 15 min, regardless of data is updated / inserted in primary school or not?

    Please suggest...

    Oracle: oracle 11g Release 2
    OS: RHEL 5.4

    Thank you

    Published by: user1687821 on February 23, 2012 12:02

    apply for time of arrival + 00 00:00:00.0 day (2) to second (1) interval February 23, 2012 03:02:16

    Here apply finish time is 'Zéro' if there are gaps in log files, this parameter shows the time it will take to resolve the discrepancy.

    apply the offset + 00 01:50:49 day (2) second (0) interval February 23, 2012 03:02:16
    transportation of shift + 00 01:50:49 day (2) second (0) interval February 23, 2012 03:02:16

    the time that redo data is not available (or) on the basis of data behind pending with the primary database.

    SQL >! date
    Thu Feb 23 03:03:34 CST 2012

    If you see your date system current and last does the end is not even a second. So probably there is no delay I would say.
    You can test by setting the timeout setting in log_archive_dest_2 (or) disable log_archive_Dest_2 for a while do two or three switches of newspaper and made attention to discrepancies between primary & eve and how does it point of view.

  • Active backup with dataguard

    Hi all

    We run on 'Oracle Database 11g Enterprise Edition Release 11.2.0.1.0'. We have 2 servers. A back-end database and an active dataguard. I have the new control Grid Enterprise Manager 11 g running on a separate server from Linux to control and manage my databases.

    Policy is to have 4 hours dataloss. In the past (I managed everything with control grid 10, but things did not work, as well as with the new... problems with recovery catalog database and other..) I backed up my database primary with normal backup at 04:00 and a differential every 3 hours... The retention policy, it's that we should be able to return 3 days.

    Now, I have installed the new grid control. I created a catalog of recovery on that server. The goal is to use the standby database (active) mark my backups using the recovery catalog. Is this possible?... If I want to set up the catalog of recovery on the day before databast it does not work... (oem said: "you can not configure the setting of recovery for a database catalog physics standbyu...") I can't also put in place a retention policy using my database pending... Databases should be in place 24/7... can't take them down!

    Anyone suggestions how to proceed. Or should I keep my first backupping? It should be easy to possibly retrieve problems. Don't know if it's easier if I backup Primay...

    Thanks in advance,

    Kind regards

    Mark

    Dear user11140727,

    If they both registered OK that you can back up the database now and I see the output as perfectly OK for me IF you have defined locations correctly.

    If I were you I would like to backup the primary database rather than on the standby database, but I think that there is no limitation for the backup of the database on hold. You can also take a backup of the database on hold, but for me it's not logical.

    You can take a full backup of the primary database and write metadata in the catalog of recovery that you can activate the option to block change tracking and start using the incremental strategy. This way you reduce the load on the database during maintenance hours.

    Hope that helps.

    Ogan

  • Dataguard active (download where?)

    Hello

    Please advise about where to download Oracle Dataguard Active of the RTO. Thank you

    Active Dataguard is not a product. This is a feature of Oracle 11 g. You can download 11g from: -.

    http://www.Oracle.com/technology/software/products/database/index.html

  • Weird behavior of our standby database active Data Guard

    Hi all

    11 GR 2

    Rhel6.5

    I'm testing an active dataguard for our database awaiting.

    I've activated active dataguard, using the following command:

    Pending:

    ==========

    1. start-up open read-only.

    2 Alter database recover standby database managed disconnect from the session;

    SQL > select status instance_name, database_role, open_mode from v$ database, v $instance;

    STATUS INSTANCE_NAME OPEN_MODE DATABASE_ROLE

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

    OPEN PHYSICS READ UAT SHALL ONLY APPLY

    Primary:

    ==========

    1. go to user APPS/APPS and create the TEST table.

    2. then connect / as sysdba and alter system switch logfile;

    3. check that log is transported.

    Pending:

    ==========

    1. open a session is verified and applied.

    2. connect apps/apps and desc the TEST table.

    ERROR: can't do everything and everything is FROZEN?

    I can't select the test as well as all the other tables table.

    Please help what's happening...

    Thank you very much

    JC

    You may need the parameter sql_trace set to true for the level of database tracking.

    But I suspect you may be hitting a bug, suggest you to trigger a SR with Oracle support for more information on the crash of Eve.

    -Shivananada Rao

  • Active data guard for EBS

    Hi all

    EBS r12.2.4

    rhel6.5

    Active Dataguard applies in ebs?

    It is available in 11.1 or 11.2 only and up to?

    Thank you very much.

    JC

    Hello JC,.

    See the following blog: https://blogs.oracle.com/stevenChan/entry/oracle_active_data_guard_111

    See also ""E-Business Suite Oracle Active Data Guard Certifications ". "

    Coco - M

Maybe you are looking for