Is standby up to date

Hi,
on 10g R2,
how to know if standby is up to date ?
I use the following on Primary :
SQL>  select CHECKPOINT_CHANGE# from v$database;
CHECKPOINT_CHANGE#
        9,7194E+12 And on standby :
SQL> select CHECKPOINT_CHANGE# from v$database;
CHECKPOINT_CHANGE#
        7,8768E+12 Is it a right method ? If not how to verify ?
Thank you.
PS :
On standby I have :
SQL> select THREAD#,SEQUENCE#,to_char(completion_time,'DD-MM-YYYY HH24:MI:SS' ),applied from v$archived_log ;
no row selected I'm astonished.

Nicolay :
on primary :
SQL> show parameter DG_
NAME                                 TYPE        VALUE
dg_broker_config_file1               string      ?/dbs/[email protected]
dg_broker_config_file2               string      ?/dbs/[email protected]
dg_broker_start                      boolean     FALSE
SQL> select name, DATABASE_ROLE from v$database;
NAME      DATABASE_ROLE
MYDB      PRIMARY
On standby :
SQL> select name, DATABASE_ROLE from v$database;
NAME      DATABASE_ROLE
MYDB      PHYSICAL STANDBYRegards.

Similar Messages

  • Info on licensing issues of standby databases/Oracle Data Guard

    Hi All,
    Could anyone possibly give me some information on licensing issues of standby databases/Oracle Data Guard? Links to some electronic articles or journals might be useful. I am unable to find the appropriate info and need this quite urgently for my dissertation asap as my deadline is this approaching.
    Thanks in advance

    Paul Drake posted a reply to a similar question on the Oracle-L mailing list that pointed out that the License Agreement
    http://oraclestore.oracle.com/OA_HTML/ibeCCtpSctDspRte.jsp?media=os_local_license_agreement&section=11365&minisite=10021&respid=22372&grp=STORE&language=US
    states, in part,
    "Failover: Your license for the following programs, Oracle Database (Enterprise Edition, Standard Edition or Standard Edition One) and Oracle Internet Application Server (Enterprise Edition, Standard Edition, Standard Edition One or Java Edition) includes the right to run the licensed program(s) on an unlicensed spare computer in a failover environment for up to a total of ten separate days in any given calendar year. Any use beyond the right granted in the previous sentence must be licensed separately and the same license metric must be used when licensing the program(s)."
    which seems to open a bit of wiggle room depending on how the term "run" is defined. This is probably also an area where your Oracle sales rep may have a little more flexibility to negotiate
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Creating standby database using data guard.

    Current Env:
    Oracle 11.2.0.1
    ASM
    Size 1.7T and growing.
    I'm rebuilding a standby database and need to use rman because of a few factors. In the past, I did a file copy create a standby control file config init.ora and it always worked.
    We have a database and had the stanby build; but someone issued a flashback and corrupted the standby database.
    Because of the size 1.7T and growing and we are now using ASM.
    My research is only showing building standby through rman using dupicate database command.
    I would like to copy the cold backup to a external drive and ship it to the standby site where I'll do the restore. This is because of time and bandwith required to rebuild the standby will interfere with operaitions for the period the files are being copied.
    So what would be the high level steps.
    1) get the cold backup
    2) create the standby control file
    3) ship the data via corrier
    4) restore the database
    5) and this is where i'm not sure. recover the standby control file - but during the restore of the database the "normal" control file will open and perhaps do a checkpoint. therefore the standby controlfile will be usless.
    6) recover the standby database.
    Has anyone accomplished this?
    As much specifics will be helpful. This system is operational and needs to be done right the first time.
    thanks,
    -Rob

    Thank you.
    1) I'm going to off load the cold backup to an external drive and have a courier take it to the DR site.
    Why, we are replicating the SAN over to the DR site. When SAN replication backs up Oracle becomes non-responsive. Therefore; sending the data over the pipe is not an option for the standby rebuild. Yea' that's the easy way to do it. But this system is operational and critical to operations; so we will not risk saturating the pipe for any period of time. The pipe got saturated one time and it was not pretty.
    2) I'm running the test in my lab to make sure I can create the standby database using the cold backup and rman.
    3) In the past it was easy; I got a cold backup of the data files using the same ksh scripts that have been working for 20 years. Copy the files over to the standby site, and put it into managed recovery. This technique has been working fine sense Oracle 8i days. ASM through a huge monkey wrench in the ksh script backup and now I'm forced to use rman. Hey, I'm told it's an okay product but when it comes to backups I never get fancy; that just makes things more complicated. Okay I wont complain about asm anymore, i guess there is an advantage in there somewhere.
    -Rob

  • Goldengate from physical standby with Active data guard or from logical standby - which is better?

    Hi,
    We have Oracle 11.2.0.4 and are currently using Active Data Guard on a physical standby. My boss wants me to use Goldengate
    to replicate several schema from Oracle to SqlSserver. She doesn't want to touch the Primary, which is in production. Would it be better
    to setup a Logical standby for Goldendate to use, in addition to the Physical standby? Or will it be sufficient to use the Physical standby?
    The application tables don't all have primary keys. I'm trying to decide if the Logical standby adds another layer of complexity or would
    introduce delays in getting the data from Oracle to Sqlserver.
    Thanks in advance,

    Hi,
    In this case I recommend you to use physical standby + Golden gate with ALO mode. You might have sligthly more trouble in logical standby. it means you might have more trouble at Goldengate's extract side.
    You said
    The application tables don't all have primary keys.
    so you have to add keycols on replicat side.
    I recommend you to add an index which should consist of keycols columns. it will be necessary for replicat performance.
    Best Regards

  • Standby DB vs Data Guard

    Hi all,
    Is STANDBY DB the same as DATAGUARD? or there are big differences and enhancement made.
    Thanks a lot

    Hello;
    To Data Guard is a true Standby database because it is designed for switchover and failover. I like to think of a Primary and Standby database as one database in different modes. There are other methods of Standby available but they don't provide the RMAN, DBMS_SCHEDULER and Active Data Guard ( Reader ) features or don't provide them as cleanly.
    For example a month ago at my shop we had some power work in the main server room. We switched everything to the Standby and disabled the second archive location until the work was complete and then enabled it, let the archive catch up and switched back. We were down a few minutes instead of the whole weekend.
    To me Data Guard has made other Standby methods obsolete, its an outstanding product for high availability.
    http://www.oracle.com/us/products/database/options/active-data-guard/index.html
    There are a few third party products out there, but why would you put your data and recovery in anybody's hands buts Oracle? That sounds like too many cooks to me.
    Best Regards
    mseberg

  • Create test database from standby without some data

    Hi. I want to create test database from my standby database using rman.
    But i have some some tables and where information is too large i dont want backup all data from this tables. because i dont have enough space on my test server.
    Have u any idea for solution this problem.
    Thanks

    But have suggestion.
    You can create duplicate database on based your target database (to new host) and skip undesired tablespaces...
    bash# rman target /
    RMAN> ....
    your code should be like :
    run {
    allocate auxiliary channel 'dev_0' type 'sbt_tape'
    parms 'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=my,OB2BARLIST=MY DAILY)';
    allocate auxiliary channel 'dev_1' type 'sbt_tape'
    parms 'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=my,OB2BARLIST=MY DAILY)';
    allocate auxiliary channel 'dev_2' type 'sbt_tape'
    parms 'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=my,OB2BARLIST=MY DAILY)';
    allocate auxiliary channel 'dev_3' type 'sbt_tape'
    parms 'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=my,OB2BARLIST=MY DAILY)';
    SET UNTIL SCN 7769764681915;
    DUPLICATE TARGET DATABASE TO MYTS SKIP TABLESPACE TOOLS_IDX,TOOLS,ARCHIVE,IDX;
    Edited by: Ulfet Tanriverdiyev on Dec 21, 2010 3:42 AM

  • Unable to ship Redo logs to standby DB (Oracle Data Gaurd)

    Hi all,
    We have configured Oracle Data Gaurd between our Production (NPP) & Standby (NPP_DR).
    The configuration is complete however, the production is unable to ship redo logs to standby DB.
    We keep getting the error "PING[ARC0]: Heartbeat failed to connect to standby 'NPP_DR'. Error is 12154." in Primary DB
    Primary & DR are on different boxes.
    Please see the logs below in the production alert log file & npp_arc0_18944.trc trace files:
    npp_arc0_18944.trc :*
    2011-01-19 09:17:38.007 62692 kcrr.c
    Error 12154 received logging on to the standby
    Error 12154 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'NPP_DR'
    Error 12154 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'NPP_DR'
    2011-01-19 09:17:38.007 62692 kcrr.c
    PING[ARC0]: Heartbeat failed to connect to standby 'NPP_DR'. Error is 12154.
    2011-01-19 09:17:38.007 60970 kcrr.c
    kcrrfail: dest:2 err:12154 force:0 blast:1
    2011-01-19 09:22:38.863
    Redo shipping client performing standby login
    OCIServerAttach failed -1
    .. Detailed OCI error val is 12154 and errmsg is 'ORA-12154: TNS:could not resolve the connect identifier specified
    alert log file on Primary*
    Error 12154 received logging on to the standby
    Wed Jan 19 09:02:35 2011
    Error 12154 received logging on to the standby
    Wed Jan 19 09:07:36 2011
    Error 12154 received logging on to the standby
    Wed Jan 19 09:12:37 2011
    Error 12154 received logging on to the standby
    Wed Jan 19 09:13:10 2011
    Incremental checkpoint up to RBA [0x2cc.2fe0.0], current log tail at RBA [0x2cc.2fe9.0]
    Wed Jan 19 09:17:38 2011
    Error 12154 received logging on to the standby
    Wed Jan 19 09:22:38 2011
    Error 12154 received logging on to the standby
    Wed Jan 19 09:27:39 2011
    Error 12154 received logging on to the standby
    However, we are able to tnsping from primary to DR
    Tnsping Results
    From Primary:
    juemdbp1:oranpp 19> tnsping NPP_DR
    TNS Ping Utility for HPUX: Version 10.2.0.4.0 - Production on 19-JAN-2011 09:32:50
    Copyright (c) 1997,  2007, Oracle.  All rights reserved.
    Used parameter files:
    /oracle/NPP/102_64/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (COMMUNITY = SAP.WORLD) (PROTOCOL = TCP) (HOST = 10.80.51.101) (PORT = 49160))) (CONNECT_DATA = (SID = NPP) (SERVER = DEDICATED)))
    OK (60 msec)
    Tnsnames.ora in Primary:
    Filename......: tnsnames.ora
    Created.......: created by SAP AG, R/3 Rel. >= 6.10
    Name..........:
    Date..........:
    @(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/TNSNAMES.ORA#4 $
    NPP.WORLD=
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = SAP.WORLD)
              (PROTOCOL = TCP)
              (HOST = nppjorp)
              (PORT = 49160)
        (CONNECT_DATA =
           (SID = NPP)
           (GLOBAL_NAME = NPP.WORLD)
    NPP_HQ.WORLD=
    (DESCRIPTION =
       (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = SAP.WORLD)
              (PROTOCOL = TCP)
              (HOST = nppjorp)
              (PORT = 49160)
       (CONNECT_DATA =
            (SID = NPP)
            (SERVER = DEDICATED)
    NPP_DR.WORLD=
    (DESCRIPTION =
      (ADDRESS_LIST =
       (ADDRESS =
            (COMMUNITY = SAP.WORLD)
            (PROTOCOL = TCP)
            (HOST = 10.80.51.101)
            (PORT = 49160)
    (CONNECT_DATA =
            (SID = NPP)
            (SERVER = DEDICATED)
    NPPLISTENER.WORLD=
            (DESCRIPTION =
              (ADDRESS =
                    (PROTOCOL = TCP)
                    (HOST = nppjorp)
                    (PORT = 49160)
    Listener.ora in Primary
    Filename......: listener.ora
    Created.......: created by SAP AG, R/3 Rel. >= 6.10
    Name..........:
    Date..........:
    @(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/LISTENER.ORA#4 $
    ADMIN_RESTRICTIONS_LISTENER = on
    LISTENER =
      (ADDRESS_LIST =
            (ADDRESS =
              (PROTOCOL = IPC)
              (KEY = NPP.WORLD)
            (ADDRESS=
              (PROTOCOL = IPC)
              (KEY = NPP)
            (ADDRESS =
              (COMMUNITY = SAP.WORLD)
              (PROTOCOL = TCP)
              (HOST = nppjorp)
              (PORT = 49160)
    STARTUP_WAIT_TIME_LISTENER = 0
    CONNECT_TIMEOUT_LISTENER = 10
    TRACE_LEVEL_LISTENER = OFF
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = NPP)
          (ORACLE_HOME = /oracle/NPP/102_64)
    Thank You,
    Salman Qayyum
    Edited by: Salman M.A. Qayyum on Jan 19, 2011 8:12 AM

    Hi,
    Please find the remaining post ...
    Tnsnames.ora in DR:
    Filename......: tnsnames.ora
    Created.......: created by SAP AG, R/3 Rel. >= 6.10
    Name..........:
    Date..........:
    @(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/TNSNAMES.ORA#4 $
    NPP.WORLD=
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = SAP.WORLD)
              (PROTOCOL = TCP)
              (HOST = nppjor)
              (PORT = 49160)
        (CONNECT_DATA =
           (SID = NPP)
           (GLOBAL_NAME = NPP.WORLD)
    NPP_HQ.WORLD=
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS =
            (COMMUNITY = SAP.WORLD)
            (PROTOCOL = TCP)
            (HOST = hq_nppjor)
            (PORT = 49160)
        (CONNECT_DATA =
            (SID = NPP)
            (SERVER = DEDICATED)
    NPP_DR.WORLD=
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS =
            (COMMUNITY = SAP.WORLD)
            (PROTOCOL = TCP)
            (HOST = nppjor)
            (PORT = 49160)
        (CONNECT_DATA =
            (SID = NPP)
            (SERVER = DEDICATED)
            (SERVICE_NAME = NPP_DR)
    NPPLISTENER.WORLD=
            (DESCRIPTION =
              (ADDRESS =
                    (PROTOCOL = TCP)
                    (HOST = nppjor)
                    (PORT = 49160)
    Listener.ora in DR
    Filename......: listener.ora
    Created.......: created by SAP AG, R/3 Rel. >= 6.10
    Name..........:
    Date..........:
    @(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/LISTENER.ORA#4 $
    ADMIN_RESTRICTIONS_LISTENER = on
    LISTENER =
      (ADDRESS_LIST =
            (ADDRESS =
              (PROTOCOL = IPC)
              (KEY = NPP.WORLD)
            (ADDRESS=
              (PROTOCOL = IPC)
              (KEY = NPP)
            (ADDRESS =
              (COMMUNITY = SAP.WORLD)
              (PROTOCOL = TCP)
              (HOST = nppjor)
              (PORT = 49160)
           (ADDRESS =
             (COMMUNITY = SAP.WORLD)
             (PROTOCOL = TCP)
             (HOST = 10.80.50.101)
             (PORT = 49160)
    STARTUP_WAIT_TIME_LISTENER = 0
    CONNECT_TIMEOUT_LISTENER = 10
    TRACE_LEVEL_LISTENER = OFF
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = NPP)
          (ORACLE_HOME = /oracle/NPP/102_64)
    /etc/hosts settings in Primary
    host:oranpp 25> grep nppjor /etc/hosts
    10.32.243.54    nppjor.sabic.com        nppjor
    10.32.50.115    nppjorp.sabic.com        nppjorp
    /etc/hosts settings in DR
    host:oranpp 11> grep nppjor /etc/hosts
    10.32.243.54    hq_nppjor.sabic.com     hq_nppjor
    10.80.243.54    nppjor.sabic.com        nppjor
    10.80.50.115    nppjorp.sabic.com        nppjorp
    Thank You,
    Salman Qayyum

  • Difference between physical standby database and Data Guard

    Hi guys,
    Today I attended one interview. They asked me a difference between the Oracle Physical Standby database and Oracle Dataguard?
    Upto my knowledge Oracle Physical Standby Database is one type of Standby Database can be configured using Oracle Databaguard Feature.
    Can you people calrify me on this.
    Regards,
    Vijayaraghavan K

    hello,
    yes you are right upto some extent...here is para form oracle doc
    Oracle Data Guard is the most effective and comprehensive
    data availability, data protection, and disaster recovery solution
    for enterprise databases. It provides the management, monitoring,
    and automation software infrastructure to create and maintain one
    or more synchronized standby databases to protect data from failures,
    disasters, errors, and corruptions.
    Data Guard standby databases can be located at remote disaster
    recovery sites thousands of miles away from the production data center,
    or they may be located in the same city, same campus,
    or even in the same building. If the production database
    becomes unavailable because of a planned or an unplanned outage,
    Data Guard can switch any standby database to the production role,
    thus minimizing downtime and preventing any data loss.oracle data guard is maximum availiblity solution which maintain physical standby databases and in case of failure of production can switch production role to and standby database.
    read it here
    http://www.oracle.com/technology/deploy/availability/htdocs/DataGuardOverview.html
    thanks and regards
    VD
    Edited by: Dixit on Aug 31, 2009 1:35 AM
    Edited by: Dixit on Aug 31, 2009 1:36 AM

  • 9i RAC to single standby DB with Data guard

    hello gurus,
    I have a question, Im trying to set up a standby database.
    The primary DB would be a two node 9i RAC R2, to a one single standby DB.
    I done this already. My question is if I can use data guard with this type of configuration. I have try to configured it with OEM and the GUI does not support this.
    does any one know if this can be achieve using dataguard's CLI??
    thanks

    well that is something out of my reach for the moment.
    I have to do everything on 9i.
    I have the standby environment running already, i just want to make my life easier trying to ad min this environment using data guard

  • Switchover of a manual standby database (no data guard)

    Hi all,
    I have a standby database .
    I am using Oracle Standard Edition 10.2.0.4 / 10.2.0.5 so I have build a manual standby .
    I am able to do a failover in the case something goes wrong; I was thinking if it is possible to do a manual switchover . and failback.
    Do you thick that mounting the primary database and applying ALL archivelogs and online redolog to the standby database is enough ?
    Do you think this is a supported operation?
    How can I check the current scn of a mounted database? (v$database.current_scn shows 0 until the database is opened )
    thnk you for every answer
    Andrea

    helter_skelter wrote:
    hi,
    You can see current_scn of standby database in v$database.current_scn. It is null only on primary database if it's in mount state.that's the problem: I am unable to mount both database and to check they have the same current_scn
    not all changes are written to ARL so you can't recover standby database to exact the same SCN as primaryI thinks this is because the last changes are only recorder in online redolog, so I was thinking that a possible way to simulate a clean switchover could be as follow:
    1 - shutdown immediate the primary database on server prod1
    2 - shutdown abort the (manual) standby database on server dr2
    3 - copy archivelog, controlfiles, tempfiles, onlinelogs from primary to the standby database
    3 - copy controlfiles from standby database to primary database
    4 - open the database on server dr2. It should open "read write" cleanly (mount + recover from archivelog + recover from onlinelog + open noresetlogs )
    5 - mount the database on server prod1. It should mount as a physical standby database.
    What do you think about it?
    thanks,
    andrea

  • SID NAME FOR PRODUCTION & STANDBY DATABASE IN DATA GUARD

    Hi all,
    we are trying to implement Standby database (Physical) between two
    sites. We have a specific question regarding this:
    ==> Can we have SID of both the Database SAME..? If not, why.?
    -- We have two HOST & DB Details like this and would like to implement StandBy
    Database:
    Site-1:
    Host OS: Solaris-10 3/05 SPARC
    Host DB: Oracle10g R-2 10.2.0.2.0
    Host DB1: IGFL
    Site-2:
    Host OS: Solaris-10 3/05 SPARC
    Host DB: Oracle10g R-2 10.2.0.2.0
    Host DB2: IGFL
    Thanks & Regards,
    Rishikesh

    My 2 Cents:-
    SID can be same.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm

  • DG Physical Standby add new data file

    Hi all,
    11.2.0.1
    I am adding new filesystem for my Primary database tablespace TEMP and UNDO in "/u51/oradata/PROD/temp02.dbf"  and "/u51/oradata/PROD/undots02.dbf"
    Do I need to create its counterpart folder at my Standby database?
    Thanks,
    petra k

    f55237a7-2c38-4db3-a7a3-1d77256f0730 wrote:
    Thanks Mahir,
    You  are welcome!
    At Primary DB:
    SQL> show parameter UNDO
    NAME                                 TYPE        VALUE
    undo_management                      string      AUTO
    undo_retention                       integer     900
    undo_tablespace                      string      UNDOTBS1
    At Standby DB:
    SQL> show parameter UNDO
    NAME                                 TYPE        VALUE
    undo_management                      string      AUTO
    undo_retention                       integer     900
    undo_tablespace                      string      UNDOTBS1
    if you want database use new UNDO tablespace, then you must change UNDO_TABLESPACE parameter to <NEW UNDO  TABLESPACE>
    Note, that they have the same config parameter values:
    So when I got space problem when both UNDOTBS1 and TEMP is blowing up making the filesystem /u49  100% full
    I want to create new UNDOTBS2 and TEMP2 on a new filesystem  /u50. I will also just create the folder both at primary and standby.
    Then I do this procedure:
    How to shrink UNDO tablespace?
    ===============================
    The datafile for UNDO tablespace can’t be shrunk as we had issue where the datafile was set to unlimited and it kept on growing to fix the issue one can do the following steps.
    – UNDOTBS2 is new undo tablespace name
    SQL> create undo tablespace UNDOTBS2 datafile ‘/u50/oradata/PROD/undotbs2.dbf’ size 1000m;
    – make the new tablespace to be the undo tablespace
    SQL> alter system set undo_tablespace=undotbs2;
    – get the filename of the old undo tablespace which will be shrink so you can reclaim  the space
    SQL> SELECT file_name FROM dba_data_files WHERE tablespace_name = ‘UNDOTBS1';
    FILE_NAME
    /u49/oradata/PROD/undotbs1.dbf
    SQL> alter database datafile '/u49/oradata/PROD/undotbs1.dbf' resize 500M;
    Yes, it is also resize to 500M undo datafile on standby datbaase. (Must be STANDBY_FILE_MANAGEMENT=AUTO on standby database)
    ==============================
    HOW TO SHRINK TEMP
    SQL> CREATE TEMPORARY TABLESPACE temp2
    2 TEMPFILE '/u50/oradata/PROD/temp2.dbf' SIZE 5M REUSE
    3 AUTOEXTEND ON NEXT 1M MAXSIZE unlimited
    4 EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;
    Tablespace created.
    SQL> ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp2;
    Database altered.
    There will create temporary tablespace TEMP2 and will set default temporary  tablespace TEMP2 on standby database, too.
    SQL> alter database datafile '/u49/oradata/PROD/temp.dbf' resize 500M;
    It is not resize temporary  file on standby database. Becuase it is not created yet.
    Regards
    Mahir M. Quluzade

  • Is my standby up-to-date?

    Hi All,
    I am on Oracle v11.2.0.3 on Linux (no RAC).
    We have a standby database, using log shipping.
    If I have to use the standby database as readonly standby, I have few questions.
    On a very busy system, my assumption is, there will always be some time lag between primary being updated and that change reaching standby. Please correct me if I am wrong here.
    How can I find out, how much behind the standby is than the primary? typically in terms of time
    Is it possible to find out that lag from the standby database? (instead of looking at the disk area for archived logs)
    What is the established/standard method for this?
    Is the SCN same/in-sync between primary and standby?
    Is it worth trying something like comparing scn_to_timestamp on both databases (is that a stupid idea !!)?
    All thoughts welcome.
    Thanks in advance

    On a very busy system, my assumption is, there will always be some time lag between primary being updated and that change reaching standby. Please correct me if I am wrong here.
    Ans: If your network is damm slow there may be a lag but most of the time it will be on sync.
    How can I find out, how much behind the standby is than the primary? typically in terms of time
    Ans:
    SELECT ARCH.THREAD# "Thread", ARCH.SEQUENCE# "Last Sequence Received", APPL.SEQUENCE# "Last Sequence Applied", (ARCH.SEQUENCE# - APPL.SEQUENCE#) "Difference"
    FROM
    (SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,
    (SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL
    WHERE
    ARCH.THREAD# = APPL.THREAD#
    ORDER BY 1;
    or
    for GAP:
    SELECT THREAD#, LOW_SEQUENCE#, HIGH_SEQUENCE# FROM V$ARCHIVE_GAP;
    or
    if you set dataguard brooker
    dgmgrl>show database db_dr

  • How do i figure it out what app use the cellular data in standby mode?

    How do i figure it out what app use the cellular data in standby mode? I disabled the cellular data for 3 days, and my battery last longer. I don't use push notifications, neither location services. I'm not signed in in skype or any IM app.

    Do you use push email?  Do you have accounts that have synchronized calendars associated with them?  Those features will still use cellular data in the background as the receive mail and send or receive calendar updates.
    Some notifications, like push notifications from Facebook and other social networking sites may use cellular data in the background.  Basically, any automated data task like those may use cellular data when the phone is in standby (note that wifi would be used if available when the phone is active, but wifi turns off in standby and all data goes through the cellular data connection).

  • Data guard real time apply vs archived log apply on physical standby

    Dear DBA's,
    last week i configuared DR , now the phyiscal stanby database is archive apply mode,
    i want to confirm is it better to apply the archived log or should i cahnge it to real time apply .
    give me sugesstions.
    Thanks and Regards
    Raja...

    One question are you using ARCH transport to move the redo? or have you configured standby redo logs and logwr transport (either async or syncronous), if you are using the archiver to transport the logs then you can not use real time apply.
    If you are using log writer to transpor the redo the realtime apply reduces the recovery time required if you need to failover as trher should be less redo to apply to bring the standby up to date, which mode you use to transport redo will depend on what is acceptable in terms of data loss and the impact on performance.

Maybe you are looking for