Activate the backup database

Hi gurus,

Had a small request for you guys, I have a production and a configuration of standby on Windows 2003 (10.2.0.4) database, my day has been recovered up to archive log 883, because of some problems with my production, I activated my database pending. Because the standby mode is enabled, the database gets open resetlogs. My archives to start generating sequences 1,2,3...

But now when I query v$ archived_log to verify that the sequence max # generated it still shows as 883... as opposed to 6 which is my creation of journal number of archive.

According to my understanding, when activate us a backup database, the wait flag of database in the control file is reset so that the control file behaves like that of the production database (I know that I am using profane taps here)... so, what makes the view v$ archived_log show the old value of sequence # before activation rather than the new value after activation?

Help or direction in this on your side you would know...

Thank you
Aurélie

Interesting...

I think why you faced with this is, the v$ archived_log retrieves the information from the control file and the control file keeps the information up to it's minimum (default 7 days) retention period. Now even if you did resetlog on the database, the old are always stored in the controlfile according to its retention period, controlled by the parameter "control_file_record_keep_time". Please refer to 'archive log list' for the correct sequence number.

C:\Documents and Settings\sakumar>set oracle_sid=santu

C:\Documents and Settings\sakumar>sqlplus /nolog

SQL*Plus: Release 11.1.0.6.0 - Production on Sat Feb 6 07:17:16 2010

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

SQL> conn /as sysdba
Connected.
SQL> shu immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.

Total System Global Area  535662592 bytes
Fixed Size                  1334380 bytes
Variable Size             176161684 bytes
Database Buffers          352321536 bytes
Redo Buffers                5844992 bytes
Database mounted.

SQL> recover database until cancel;
Media recovery complete.
SQL> alter database open resetlogs;

Database altered.

SQL> select max(sequence#) from v$archived_log;

MAX(SEQUENCE#)
--------------
            16

SQL> archive log list
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence     1
Next log sequence to archive   1
Current log sequence           1
SQL>

I hope that's what you wanted to ask. Now once again, it would be interesting to see what the result of the query on v$ archived_log after the retention period.

Kind regards
S.K.

Tags: Database

Similar Questions

  • modify the INSTANCENAME parameter after the backup database

    Hello

    our primary database is configured as follows:

    SQL > show parameter db_name;
    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    db_name string prod01


    SQL > show the INSTANCENAME parameter
    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    instance_name string prod01

    the corresponding backup database is configured as:

    SQL > show parameter db_name;
    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    db_name string prod01


    SQL > show the INSTANCENAME parameter
    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    instance_name string stbyprod01

    Now, the standby database must be enabled. Later, I want to change the stbyprod01 to prod01 INSTANCENAME parameter.

    The question now is: what does take to change the INSTANCENAME parameter? In fact the database pending will be

    already be activated and be considered and treated as a stand-alone database. The former primary database will be used no more.

    I would like to do the following:

    SQL > create pfile = 'initprod01.ora' of spfile;

    SQL > shutdown immediate;

    Oracle # > change the pfile file and change the stbyprod01 to prod01 INSTANCENAME parameter

    SQL > startup;

    SQL > create spfile = 'spfileprod01.ora' of pfile;

    SQL > shutdown immediate;

    SQL > startup;

    That should be all - from my point of view (I know that LISTENER.) ORA and TNSNAMES. ORA should be modified, too).

    If someone has already experiences with the INSTANCENAME parameter change but sees some additional configurations: Please let me know!

    Rgds

    Jan

    1. you can use "alter system set instance_name" to change the value of the instance name.

    2. you must do the following to activate the standby database (NOTE:-this is only for the activation of the backup database and not the passage to digital database)

    1 startup nomount

    2. change the base of Mount Eve.

    3. change the database activate the database pending.

    4. change the database open.

  • Impossible to activate the backup

    I can't activate the backup to iCloud. I even built my iPad and still does not work. How can I fix it?

    iCloud backup seems to be on the fritz - iOS 9.2 iCloud backup still not fixed!

  • Am on wifi and impossible to activate the backup in my new phone 6s.  Applications downloaded from my previous phone 5s which I still use.

    Using wifi, but a problem to activate the backup on my new 6s phone. Applications have been downloaded since my previous phone 5s which I still use. However I mistskenly deleted to the 6s phone backup.

    Hello

    Your iphone 5s uses ios 9.2

    Use the same apple ID on the new iphone email address.

    See you soon

    See you soon

    Brian

  • How to activate the Guard Data after test on the backup database

    Hi all

    I have a plan for the test of standby database and this is my plan

    1. check the gap newspaper archive and transfer the logs to check if necessary

    2. stop the replication Data Guard

    3 stop Standby Database

    4 back-up Standby Database before the test

    5. starting Standby Database to test (and main database fixed by using the user and performs operations during testing)

    After trials and Active Data Guard

    1 restore a database to the standby since before the backup set

    2. start Standby Database in the mode standby

    3. check Data Guard

    I have a question. Can I use log archiving of primary to apply pending before activate Data Guard? or must reconfigure DataGuard to activate Data Guard after having tested?

    Thank you

    Hiko

    Yes you can do it.

    following the procedure below.

    1 apply the logs to archive left on the previous day.

    2. the database pending judgment.

    3. take backup controlfile and data files.

    4. start the database in the editing phase.

    5. turn on the standby database. 'alter database activate standby database'

    6. then do what ever you want to test.

    7. once it is filled the database ensures activated.

    8. restoration of the database from the backup.

    9. then start appplying archive of the last archive applied before the database was arrested.

  • Using RMAN/Flashback to restore or passage / failover to the backup database

    Hello

    I'm new on the protection of the data.  I read the documentation and have implemented the Data Guard for my database of test called PPRD.  So I PPRD for the primary database and PPRD_DR0 for sleep.

    I've implemented the custody of data with the default, maximum Performance. I'm testing. (That's 11 GR 2.  I also use SQL/RMAN to set everything up.  I can implement Grid Control to administer it.

    What I was asking is - as the case may be, are there times where I'm better NOT do a failover to the standby?  Given that the PPRD is in archivelog mode (of course) and we have full and incremental backups archivelogs all being written to the disc, AND my expectation is mode maximum performance... is there times where there was NO data loss by restoring the database and he recovering from RMAN? Indeed, recovery logs are intact, not if the first line of conduct?

    Now, obviously if there is some sort of disaster and the primary is destroyed we would failover to our expectation. But for most typical failures, wouldn't we want to use RMAN and the backups/archivelogs as a first course, because there MAY be loss of data with the maximum performance mode? Also, I know there are views, that we can use to see how in sync is the day before, but I'm a little unclear on this.  At the time of a database problem, if we do not have an automatic failover enabled and configured, exactly how can we check how to synchronize the standby is with the primary?  (I know that this response is common and there, I don't want to ask the obvious question.)

    Since I was in archivelog and flashback as well on mode the primary... If the primary is still intact (but has a problem) I use RMAN, flashback, etc. before making failover/switching in high school?

    Thank you for any response.

    Hello;

    Yes. For me, a failover is a last resort. Ask yourself a few questions:

    My company requires an availability of 100%?

    How long the principal will be not not available?

    How long and how to recover from failover?

    I can make a move to the place?

    Each year we turn off the room of servers for a weekend. What I do, it is a failover, then a switch after the old primary appears as the day before and catch up.

    Here are my notes of failover test:

    http://www.Visi.com/~mseberg/data_guard/Data_Guard_Failover_Test_using_SQL.PDF

    This may help too:

    Roll a standby forward using an RMAN backup to trouble The Nologging changes incremental (Doc ID 958181.1)

    Best regards

    mseberg

  • The total size of the backup database and Total database size.

    Hi Experts,

    How can I find the size of the size of the database and the size of the backup with only the RMAN catalog help.
    I use Oracle 10.2.0.5. and Tivoli TSM

    I have

    Hello

    See this doc...
    http://download.Oracle.com/docs/CD/B28359_01/backup.111/b28270/rcmreprt.htm#CHDBIGHG

    Connect to SQL * for the database you intend to question the backup history.

    Ask the view V$ RMAN_BACKUP_JOB_DETAILS for more information on the backup type, status, and the start and end time.

    The following query shows the history of the backup jobs sorted by the session key, which is the primary key for the RMAN session:

    COL STATUS FORMAT a9
    COL hrs    FORMAT 999.99
    SELECT SESSION_KEY, INPUT_TYPE, STATUS,
           TO_CHAR(START_TIME,'mm/dd/yy hh24:mi') start_time,
           TO_CHAR(END_TIME,'mm/dd/yy hh24:mi')   end_time,
           ELAPSED_SECONDS/3600                   hrs
    FROM V$RMAN_BACKUP_JOB_DETAILS
    ORDER BY SESSION_KEY;
    

    Ask the view RMAN_BACKUP_JOB_DETAILS V$ at the rate of tasks of backup in an RMAN session.

    The following query shows the speed of backup job sorted by the session key, the primary key of the RMAN session. The in_sec and out_sec columns columns display the input data and output per second.

    COL in_sec FORMAT a10
    COL out_sec FORMAT a10
    COL TIME_TAKEN_DISPLAY FORMAT a10
    SELECT SESSION_KEY,
           OPTIMIZED,
           COMPRESSION_RATIO,
           INPUT_BYTES_PER_SEC_DISPLAY in_sec,
           OUTPUT_BYTES_PER_SEC_DISPLAY out_sec,
           TIME_TAKEN_DISPLAY
    FROM   V$RMAN_BACKUP_JOB_DETAILS
    ORDER BY SESSION_KEY;
    

    Ask the view RMAN_BACKUP_JOB_DETAILS V$ for the size of the backups in an RMAN session.

    If you run the DATABASE BACKUP, then V$ RMAN_BACKUP_JOB_DETAILS. OUTPUT_BYTES indicates the total size of backup games written by the backup task for the database that you are backing up. To view the backup set sizes for all registered databases, ask RC_RMAN_BACKUP_JOB_DETAILS.

    The following query shows the speed of backup job sorted by the session key, the primary key of the RMAN session. The in_sec and out_sec columns columns display the input data and output per second.

    COL in_size  FORMAT a10
    COL out_size FORMAT a10
    SELECT SESSION_KEY,
           INPUT_TYPE,
           COMPRESSION_RATIO,
           INPUT_BYTES_DISPLAY in_size,
           OUTPUT_BYTES_DISPLAY out_size
    FROM   V$RMAN_BACKUP_JOB_DETAILS
    ORDER BY SESSION_KEY;
    

    The following sample output shows the speed of the backup jobs:

    I hope this will help...

    Kind regards
    Levi Pereira

  • error in the backup database

    Hello

    I'll put up the previous day datbase (9i release 2), I followed all the steps, the archived logs are transported

    from the primary to the mode standby.

    When I run sql > alter datbase opened read-only. at the rescue site, it gives the following error

    ERROR on line 1:
    ORA-16004: backup database requires recovery
    ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
    ORA-01110: data file 1: ' C:\ORACLE\BKP\PAYROLL\SYSTEM01. DBF'

    data files are located at "C:\ORACLE\BKP\".

    but I'm not able to understand, where he adds directory pays its way

    I checked pfile/spfile and re-created control file

    It doesn't give any error at the point of Mount, but - opening in read only mode datbase error


    his same showing different location of data files


    SQL > select FILE #, CREATION_TIME, TS #, STATUS, ENABLED, NAME from v$ datafile;

    FILE # CREATION_ TS # STATUS ENABLED NAME
    ---------- --------- ---------- ------- ---------- ------------------------------------------------------------
    1 12 MAY 02 0 SYSTEM READ/WRITE C:\ORACLE\BKP\PAYROLL\SYSTEM01. DBF
    2 12 MAY 02 1 READ/WRITE C:\ORACLE\BKP\PAYROLL\UNDOTBS01 ONLINE. DBF
    3 12 MAY 02 3 ONLINE READ/WRITE C:\ORACLE\BKP\PAYROLL\CWMLITE01. DBF
    4 12 MAY 02 4 ONLINE READ/WRITE C:\ORACLE\BKP\PAYROLL\DRSYS01. DBF
    5 12 MAY 02 5 ONLINE READ/WRITE C:\ORACLE\BKP\PAYROLL\EXAMPLE01. DBF
    6 12 MAY 02 6 ONLINE READ/WRITE C:\ORACLE\BKP\PAYROLL\INDX01. DBF
    7-12 MAY 02 7 ONLINE READ/WRITE C:\ORACLE\BKP\PAYROLL\ODM01. DBF
    8-12 MAY 02 8 ONLINE READ/WRITE C:\ORACLE\BKP\PAYROLL\TOOLS01. DBF
    9-12 MAY 02 9 ONLINE READ/WRITE C:\ORACLE\BKP\PAYROLL\USERS01. DBF
    10-12 MAY 02 10 ONLINE READ/WRITE C:\ORACLE\BKP\PAYROLL\XDB01. DBF

    but the real place is C:\ORACLE\BKP\

    Published by: user7864753 on October 19, 2009 17:33

    You use in your standby init.ora file parameter

     DB_FILE_NAME_CONVERT='C:\oracle\oradata\','C:\oracle\bkp\ 
    

    It takes DB_FILE_NAME_CONVERT = 'C:\oracle\oradata\payroll\','C:\oracle\bkp\

    Make that change and try again. Before attempting to open the day before in mode readonly make sure that this expectation is able to run in managed mode.
    As your alert.log file shows that whenever tryes standby to run in managed mode, it is written error. So, logacially, your standby configuration isn't always
    completed. So, you cannot open the database pending.

  • Error recovery in the backup database

    I got the following error to the standby database. No idea what this means and how can I get it without a full clone.


    Kills Aug 14 17:23:32 2012
    Recovery Media Log /spdata07/SPDB/fra/FINSP_GDRSD_LISTENER_NL/archivelog/2012_08_10/o1_mf_1_11131_82bmbgvs_.arc
    Kills Aug 14 17:23:32 2012
    Errors in the /spdata07/ora_11202/product/dbhome/rdbms/log/spdb_pr00_24915.trc file:
    [ORA-00600: internal error code, arguments: [2619], [11131], [], [], [], [], [], [], [], [], []]
    Completed: alter the managed standby database recovery database using the current log file disconnect from the session
    Use ADRCI or Support established for the packaging of the incident.
    See Note 411,1 to My Oracle Support to error and packaging details.
    Errors with /spdata07/SPDB/fra/FINSP_GDRSD_LISTENER_NL/archivelog/2012_08_10/o1_mf_1_11131_82bmbgvs_.arc newspaper
    MRP0: Background Media Recovery terminated with error 600
    Kills Aug 14 17:23:34 2012
    Errors in the /spdata07/ora_11202/product/dbhome/rdbms/log/spdb_pr00_24915.trc file:
    [ORA-00600: internal error code, arguments: [2619], [11131], [], [], [], [], [], [], [], [], []]
    Managed Standby recovery not using real time applies
    Recovery interrupted!


    spdb_pr00_24915.TRC trace file:




    Has started the recovery of parallel media
    krsh.c 17:23:31.503 4265 2012-08-14
    Managed Standby recovery to apply in real time
    Dumping table incarnation of database:
    RESETLOGS 0 Yvert and time: 22/05/2012 0x0000.00000001 20:55:23
    Incarnation of recovery targets = 1, activation ID =-328156793
    The flow buffer limit = 55611 min (50% x 111222, 100000)

    2012-08-14 17:23:32.106
    Start the recovery to the thread 1 ckpt SNA 26430758 logseq 11131 block 2
    Initial size of the buffers: read 1024K, K 820 overflow, change 805K

    2012-08-14 17:23:32.132
    Add a Media Recovery redo thread 1

    2012-08-14 17:23:32.249
    Recovery Media Log /spdata07/SPDB/fra/FINSP_GDRSD_LISTENER_NL/archivelog/2012_08_10/o1_mf_1_11131_82bmbgvs_.arc
    = Critical error (any incident) dump (ORA 600 [2619]) =.

    2012-08-14 17:23:32.315
    dbkedDefDump(): from the default crash dumps (flags = 0 x 0, level = 3, mask = 0 x 0)
    -Error stack dump-
    [ORA-00600: internal error code, arguments: [2619], [11131], [], [], [], [], [], [], [], [], []]
    -SQL statement (none).
    Run SQL information not available - no cursor.
    -Call trace stack memory-

    ORA-00600 = open an SR to MyOracleSupport.

  • the backup database must be restored after failover and flashback 11

    I tried a failover with 11g r2 and RAC. Failover worked. I have flashed then return of the database (old primary) according to this http://docs.oracle.com/cd/E11882_01/server.112/e17022/scenarios.htm#i1049997, and now is the archiveurs application again.

    The problem is in the broker, it says this

    DGMGRL> show configuration;
    
    Configuration - DG_Config
    
      Protection Mode: MaxPerformance
      Databases:
        DB11G_STBY - Primary database
        DB11G      - Physical standby database (disabled)
          ORA-16661: the standby database needs to be reinstated
    
    Fast-Start Failover: DISABLED
    
    Configuration Status:
    SUCCESS
    I tried deactivating and reactivating the configuration, but still the same. Any other ideas?

    Here's a link [url http://nikolayivankin.wordpress.com/2012/02/14/dgmgrl-reinstating-ex-primary-to-standby-by-flashback-database-feature/] a demo, your theme

  • content and the backup database

    How can I backup my database and the Web site content? Can I configure scheduled backups?

    Hello

    BC is not a tool of backup schedule.  How you will back up data is to follow the migration article.

    - http://kb.worldsecuresystems.com/203/bc_2038.html

    Please note BC keep a daily backup of your site, but is only a restoration of disaster recovery (system failure, etc.).

    Kind regards

    -Sidney

  • ORA - 31050:Access refused when trying to activate the native database Web servic

    Hi all

    I try to follow the instructions of OBE on "using Oracle XML DB Web Services for Service-Oriented Architecture" as this url http://st-curriculum.oracle.com/obe/db/11g/r1/prod/datamgmt/xmldb2_b/xmldb2_b.htm#http.

    I would like to enable native database Web service endpoint in Oracle XML DB, and I have already run the script to create Web Service endpoint.

    In any case, I got the following error.

    ORA-31050: access denied
    ORA-06512: at "XDB". DBMS_XDB', line 528
    ORA-06512: at "SYSTEM. ADDSERVLETMAPPING', line 91


    I found that this procedure has been created the diagram of the system, but the problem occurs when I tried to call the ADDSERVLETMAPPING procedure.


    It is a code that I used to activate.

    set pagesize 100
    set linesize 132
    long value 20000
    set echo on
    -conn sys/oracle as a sysdba

    create or replace procedure addServletMapping (model varchar2,
    ServletName varchar2,
    dispname varchar2,
    servletclass varchar2,
    servletschema varchar2,
    language varchar2,
    Description varchar2,
    securityRole xmltype) as
    xmltype xdbconfig.
    Start
    xdbconfig: = dbms_xdb.cfg_get ();
    Select deleteXML
    (
    xdbconfig,
    ' / xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list/servlet [servlet-name = "" | "] servletname | '"]'
    )
    in the xdbconfig
    Double;

    If (language = 'C') then
    Select insertChildXML
    (
    xdbconfig,
    "/ xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list."
    "servlet",.
    xmlElement
    (
    "servlet",.
    xmlAttributes (like "xmlns", ' http://xmlns.oracle.com/xdb/xdbconfig.xsd'),
    xmlForest
    (
    ServletName "servlet- name."
    as "servlet-language."
    dispname as "display name."
    Description like "description".
    ),
    securityRole
    )
    )
    in the xdbconfig
    Double;
    on the other
    Select insertChildXML
    (
    xdbconfig,
    "/ xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list."
    "servlet",.
    xmlElement
    (
    "servlet",.
    xmlAttributes (like "xmlns", ' http://xmlns.oracle.com/xdb/xdbconfig.xsd'),
    xmlForest
    (
    ServletName "servlet- name."
    as "servlet-language."
    dispname as "display name."
    Description as "description."
    servletclass "servlet-Class."
    servletschema as "servlet-pattern".
    )
    )
    )
    in the xdbconfig
    Double;
    end if;

    Select deleteXML
    (
    xdbconfig,
    ' / xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-mappings/servlet-mapping [servlet-name = "" | "] servletname | '"]'
    )
    in the xdbconfig
    Double;

    Select insertChildXML
    (
    xdbconfig,
    "/ xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-mappings.
    servlet "mapping."
    XmlType
    (
    ' < servlet-mapping xmlns = "http://xmlns.oracle.com/xdb/xdbconfig.xsd" >
    < servlet-model > ' | model | "< / servlet-model >
    < name servlet - > ' | ServletName | "< / servlet-name >
    < / servlet-mapping > '
    )
    )
    in the xdbconfig
    Double;

    xdb.DBMS_XDB.cfg_update (xdbconfig);

    end;
    /

    Call addServletMapping)
    ' / orawsv / *'.
    "orawsv,"
    'Oracle Web Service request',
    NULL,
    NULL,
    « C »,
    "Web Servlet Services."
    XmlType)
    ' < security-role-ref >
    < Role name > XDB_WEBSERVICES < / role name >
    < Role link > XDB_WEBSERVICES < / role-link >
    < / security-role-ref > '
    )
    )
    /

    Call addServletMapping)
    ' / orawsdl / *'.
    "orawsdl,"
    "Oracle WSDLs.
    NULL,
    NULL,
    « C »,
    "WSDL Servlet.
    XmlType)
    ' < security-role-ref >
    < Role name > XDB_WEBSERVICES < / role name >
    < Role link > XDB_WEBSERVICES < / role-link >
    < / security-role-ref > '
    )
    )
    /

    -grant XDB_WEBSERVICES oe
    grant XDB_WEBSERVICES to TESTDB
    /

    -For 11 g only
    -grant XDB_WEBSERVICES_OVER_HTTP oe
    grant XDB_WEBSERVICES_OVER_HTTP to TESTDB
    /
    -grant XDB_WEBSERVICES_WITH_PUBLIC oe
    grant XDB_WEBSERVICES_WITH_PUBLIC to TESTDB
    /

    -Clean afterwards
    drop procedure addServletMapping
    /





    Kind regards
    Zenoni

    Published by: zenoni on January 28, 2011 10:18

    Add the possible servlet mapping only by a user with the XDBADMIN or DBA roles

  • Impossible to activate the backup on my iPhone

    I spent 3 hours with Apple staff, and I have not made any progress.  I am trying to back up an iPhone 5 to iCloud.  Under settings > iCloud > Backup, it indicates "Off".  iCloud backup/switch button is grayed out and cannot be turned on.  If I connect the phone to my office and try backup via iTunes, he tells be that the administrator has disabled iCloud backup on the device.

    At the instruction of Apple that I updated the software to 10.0.2 on the phone, I updated iTunes to the latest version.  I signed outgoing/incoming my iCloud account, find my phone, etc. twice already and I backup the phone on my desk twice and I've synced the phone twice.

    Any ideas how to switch backup to the phone or what it prevents active?

    Note all actions already tried.

    Thank you!

    parks34 wrote:

    If I connect the phone to my office and try backup via iTunes, he tells be that the administrator has disabled iCloud backup on the device.

    I don't know if I still have ideas, but I'm curious about this statement.

    1. You are the first owner of this phone?
    2. It's a phone of the company?
    3. Apple has any idea on this at all?
  • How to check if the backup database is in sync with the primary?


    I checked the database alert log and journal of dataguard, but did not see any errors. How can I check if primary db and standby are synchronized?

    Querying v$ archive_log would be sufficient?

    Run query below from sleep mode.

    SELECT A BOW. THREAD # "Thread", ARCH. SEQUENCE # 'last received sequence', Appl. SEQUENCE # "last sequence applied", (the centre ARCH. SEQUENCE #-APPL.) Sequence #) 'the difference '.

    Of

    (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) OF V$ LOG_HISTORY GROUP BY THREAD #)) APPL

    WHERE ARCH. THREAD # = APPL. TRI WIRE # 1.

    Or you can use as below as well

    Primary: select thread #, max(sequence#) of the Group v$ archived_log by thread #;

    Standby: select thread #, max(sequence#) in v$ archived_log in case of application = 'YES' group by thread #;

  • Archives transfer records in the backup database

    Hello

    I'm creating a database of waiting for one scenario to test using oracle 10 g R2 and windows xp

    DB primary = primary
    standby DB = stby

    able to ping each other using tnsping, but unable to transfer the logs to archive primary eve database iam IAM

    pFile to primary education is

    Primary.__db_cache_size = 67108864
    Primary.__java_pool_size = 4194304
    Primary.__large_pool_size = 4194304
    Primary.__shared_pool_size = 88080384
    Primary.__streams_pool_size = 0
    *.audit_file_dest='C:\oracle\product\10.2.0/admin/primary/adump'
    *.background_dump_dest='C:\oracle\product\10.2.0/admin/primary/bdump'
    * full = '10.2.0.1.0'
    *.control_files='C:\oracle\product\10.2.0\oradata\primary\control01.ctl','C:\oracle\product\10.2.0\oradata\primary\control02.ctl','C:\oracle\product\10.2.0\oradata\primary\control03.CTL '
    *.core_dump_dest='C:\oracle\product\10.2.0/admin/primary/cdump'
    * .db_block_size = 8192
    * .db_domain = "
    * .db_file_multiblock_read_count = 16
    * .db_name = "primary".
    *. Dispatchers ='(Protocol=TCP) (SERVICE = primaryXDB)"
    * .job_queue_processes = 10
    * .log_archive_dest_2 = "SERVICE = stby'"
    * .log_archive_dest_state_2 = ENABLE
    * .open_cursors = 300
    * .pga_aggregate_target = 16777216
    * runoff = 150
    * .remote_login_passwordfile = "EXCLUSIVE."
    * .sga_target = 167772160
    * .undo_management = "AUTO".
    * .undo_tablespace = "UNDOTBS1.
    *.user_dump_dest='C:\oracle\product\10.2.0/admin/primary/udump'
    Log_archive_dest_1='LOCATION=C:\oracle\product\10.2.0\db_1\database\archive'
    log_archive_dest_state_1 = ENABLE
    LOG_ARCHIVE_CONFIG = 'DG_CONFIG = (Primary, STBY)'


    pFile mode standby

    Primary.__db_cache_size = 75497472
    Primary.__java_pool_size = 4194304
    Primary.__large_pool_size = 4194304
    Primary.__shared_pool_size = 79691776
    Primary.__streams_pool_size = 0
    *.audit_file_dest='C:\oracle\product\10.2.0\admin\adump'
    *.background_dump_dest='C:\oracle\product\10.2.0\admin\bdump'
    * full = '10.2.0.1.0'
    *.control_files='C:\oracle\product\10.2.0\oradata\stby.ctl'
    *.core_dump_dest='C:\oracle\product\10.2.0\admin\cdump'
    * .db_block_size = 8192
    * .db_domain = "
    * .db_file_multiblock_read_count = 16
    * .db_name = "primary".
    db_unique_name = "stby".
    *. Dispatchers ='(Protocol=TCP) (SERVICE = primaryXDB)"
    * .job_queue_processes = 10
    * .open_cursors = 300
    * .pga_aggregate_target = 16777216
    * runoff = 150
    * .remote_login_passwordfile = "EXCLUSIVE."
    * .sga_target = 167772160
    * .undo_management = "AUTO".
    * .undo_tablespace = "UNDOTBS1.
    *.user_dump_dest='C:\oracle\product\10.2.0\admin\udump'
    standby_archive_dest='c:\oracle\product\10.2.0\stbyarch'
    db_file_name_convert='c:\oracle\product\10.2.0\oradata\primary','c:\oracle\product\10.2.0\oradata'
    log_file_name_convert='c:\oracle\product\10.2.0\oradata\primary','c:\oracle\product\10.2.0\oradata'
    standby_file_management = AUTO

    You can transfer without fal_server, fal_client, but the wait will not fill the gaps, so there is a much higher risk of problems.

    Not sure why you think that you can use a document 9i to 10g and jump the steps, and then it will work.

    Here's a good example:-http://blogs.oracle.com/AlejandroVargas/gems/DataGuardPhysicalStandbystep.pdf

Maybe you are looking for