Can't switch standby logfiles to status=active

Hi DBA's
I'm trying to create logical standby on 10.2 on fedora 6 on manual http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm#g88234
I can't create proper working standby redo logs.
ALTER DATABASE ADD STANDBY LOGFILE GROUP 4
('/u01/app/oracle/oradata/ORCL/onlinelog/log4a.log',
'/u01/app/oracle/flash_recovery_area/ORCL/onlinelog/log4b.log') SIZE 50M;
then create the rest of standby redos and switch logfile:
ALTER SYSTEM SWITCH LOGFILE;
when:
SQL> SELECT GROUP#,THREAD#,SEQUENCE#,ARCHIVED,STATUS FROM V$STANDBY_LOG;
GROUP# THREAD# SEQUENCE# ARC STATUS
4 0 0 YES UNASSIGNED
5 0 0 YES UNASSIGNED
6 0 0 YES UNASSIGNED
What to do?
Edited by: val75 on Jun 21, 2009 11:08 PM

try switch log at primay
please try to run this Command and then open the primary database.
alter database set standby database to maximize performance;
alter database open;

Similar Messages

  • Standby logfile issue

    I created a dataguard, one primary database and one physical standby. The protection mode is maximum protection. My issue is: everytime when I archive a logfile in primary, it will write to standby logfile in standby logfile. Then the standby logfile status will show 'ACTIVE', and can't reuse it. if I need archive standby logfile in standby database, then I can get the standby logfile reuse?
    Now if I add one more standby logfile in standby database, I can archive a logfile in primary. Then I can't archive another more in primary, unless i add one more standby logfile in standby.
    thanks a lot,
    kelvin

    Thank you everyone. Yes mike, I already 'recover managed standby database using current logfile disconnect from session'. And Emre, I have 3 logfile groups in primary, every group has 2 members. I am using ASM for storage. in standby, at beginning, I created 4 standby groups(every one has 2 members and same size with primary logfile). But after a while, the primary database shut down. I checked alert log in primary, mention 'no available standby logfile to use'. So I added another 4 standby logfiles ......
    So anybody know, for the standby logfile, if we need archive those logfiles. So primary can reuse and write log to these standby logfile when primary database do a 'archive log current'. Now I believe my primary database can't reuse those standby logfile in standby database, so I need to add one more, one more standby logfile..
    Thanks a lot,
    kelvin

  • View for active Incidents related to WI (Problem) with status (Active) works but can't be changed.

    Hi,
    I wanted to create a view of Incidents which are linked to a Problem (any problem).
    I did a quick test using the Incident (advanced) class, selected to display Incidents with status Active and [Work Item] Is Related To Work Item and status for Problem with the status Active.
    At this first test I didn't bother to select any specific columns to display but just went with the pre-selected ( Description, Display Name, Display Name) and it worked. 
    I got a list of expected Incidents in the view but having the Description column made it quite useless.
    So, when I try to select the columns I find useful it will not update and it returns a No items found message instead.
    (image removed due to limitations)
    It is of course possible to group by one of the Display Name fields and collapse to get a more workable view but it still lacks a lot of good information. One would like to include ID, title, Created date,
    date modified, Display Name for Affected User and Assigned to user, and a few others.
    I was just a bit stumped as to why this fails when changing the columns on a view that obviously is possible to create.
    Thanks in advance,
    Daniel

    Consider using the Advanced View Editor( or
    the free edition), since it has much more robust criteria and column editing capabilities. 

  • Can I replicate new tables using the ACTIVE STANDBY PAIR replication scheme

    Hi,
    I have created myself a simple setup using an active/standby pair with a single subscriber like so:
    CREATE ACTIVE STANDBY PAIR cie ON "tt-test1", cie ON "tt-test2" RETURN RECEIPT SUBSCRIBER cie on "tt-test3";
    I have then added some tables on the master, they did not replicate automatically. I find this:
    Command> repschemes;
    Replication Scheme Active Standby:
    Master Store: CIE on TT-TEST1
    Master Store: CIE on TT-TEST2
    Master Return Service: Return Receipt
    Subscriber Store: CIE on TT-TEST3
    Excluded Tables:
    ROOT.EXTRACTOR_
    ROOT.PROMPT_
    ROOT.PREFERABLE_
    Included Tables:
    List too long (59 items), use verbosity 4 to display
    <snip>
    My question is ... how do I include these tables in replication?
    Do I need to trash and clone the secondary master store and the subscriber again? Even doing that won't add the tables to the replication scheme so I don't think that is a solution.
    I couldn't find much documentation on the ALTER REPLICATION statement but from what I could find it requires me to know the 'name' of the replication scheme and the examples in the documentation didn't work when I used 'Active Standby' as the scheme name in the statement.
    Am I being retarded here? Is this a limitation of using the ACTIVE STANDBY PAIR replication model?
    Thanks in advance.
    Huw

    When you setup and rollout the ACTIVE/STANDBY pair (or indeed legacy replication) it only includes tables that already exist. The normal deployment process is:
    1. Create the first datastore (the one which will initially be the 'active').
    2. Create (and populate) all necessary tables.
    3. Create the active/standby pair replication scheme.
    4. Start the repagent
    5. Make the datastore active by calling ttRepStateSet('ACTIVE')
    6. Use ttRepAdmin -duplicate to create the standby store from the active
    7. Start repagent at standby
    8. Use ttRepAdmin -duplicate to create the subscriber store from the standby
    7. Start repagent at subscriber
    If you need to add/remove tables later you must do the following:
    At active node:
    1. Create any new tables (and populate them) as needed
    2. Stop repagent
    3. Execute ALTER ACTIVE STANDBY PAIR with INCLUDE and/or EXCLUDE clauses as required
    4. Start repagent
    Then you need to redeploy the other stores:
    At standby:
    5. Stop repagent
    6. Drop datastore (ttDestroy)
    7. Re-create datastore from active using ttRepAdmin -duplicate
    8. Start repagent
    At subscriber:
    9. Stop repagent
    10. Drop datastore (ttDestroy)
    11. Re-create datastore from standby using ttRepAdmin -duplicate
    12. Start repagent
    This is documented in the TimesTen Replication Guide in the section on administering an active/standby pair.
    Chris

  • Standby logfile missing error

    Hello all,
    I am getting this following error in standby alertlog file.
    ORA-00313: open failed for members of log group 8 of thread 2
    ORA-00312: online log 8 thread 2: '+DG_FLASH/hsstl/onlinelog/group_8.273.779638759'
    ORA-17503: ksfdopn:2 Failed to open file +DG_FLASH/hsstl/onlinelog/group_8.273.779638759
    ORA-15012: ASM file '+DG_FLASH/hsipstl/onlinelog/group_8.273.779638759' does not exist
    ORA-00312: online log 8 thread 2: '+DG_DATA/hsstl/onlinelog/group_8.1766.779638759'
    ORA-17503: ksfdopn:2 Failed to open file +DG_DATA/hsstl/onlinelog/group_8.1766.779638759
    ORA-15012: ASM file '+DG_DATA/hsipstl/onlinelog/group_8.1766.779638759' does not exist
    When i manually check the diskgroup '+DG_FLASH, +DG_DATA, i can see the group_8 file with some other numbers.
    Kindly let me know how to proceed for that. oracle 11g database, standalone standby database in aix box
    My guess is control file is still thinking that the group 8 file is present and looks for it when starting the standby, but actually that file is not there in the diskgroup. instead some other filename is there for the same group.
    Either i want to update the control file about the new log group 8, or drop the log 8 group, delete the log 8 group files from the disgroups +DG_FLASH, +DG_DATA and create a new log 8 group
    Kindly suggest
    Regards,

    Test
    SQL> Select GROUP#, THREAD#, SEQUENCE#, BYTES from v$standby_log;
      GROUP# THREAD# SEQUENCE# BYTES
      4 1 0 52428800
      5 1 1327 52428800
      6 1 0 52428800
    SQL> alter database recover managed standby database cancel;
    Database altered.
    SQL> ALTER DATABASE ADD STANDBY LOGFILE GROUP 7 '/u01/app/oracle/oradata//redo07.log' SIZE 50M;
    Database altered.
    SQL> alter database recover managed standby database disconnect from session;
    Database altered.
    SQL> Select GROUP#, THREAD#, SEQUENCE#, BYTES from v$standby_log;
      GROUP# THREAD# SEQUENCE# BYTES
      4 1 0 52428800
      5 1 1327 52428800
      6 1 0 52428800
      7 0 0 52428800 
    ALTER DATABASE CLEAR LOGFILE GROUP 7; 
    SQL> alter database recover managed standby database cancel;
    Database altered.
    SQL> ALTER DATABASE CLEAR LOGFILE GROUP 7;
    Database altered.
    SQL> alter database recover managed standby database disconnect from session;
    Database altered.
    SQL> Select GROUP#, THREAD#, SEQUENCE#, BYTES from v$standby_log;
      GROUP# THREAD# SEQUENCE# BYTES
      4 1 0 52428800
      5 1 1327 52428800
      6 1 0 52428800
      7 0 0 52428800
    SQL> /
      GROUP# THREAD# SEQUENCE# BYTES
      4 1 1330 52428800
      5 1 0 52428800
      6 1 0 52428800
      7 0 0 52428800
    What I noticed is no matter how many switches I do the Standby only uses group 4 and 5. If I recreate with a Thread number it seems to work.
    SQL> alter database recover managed standby database cancel;
    Database altered.
    SQL> ALTER DATABASE DROP STANDBY LOGFILE GROUP 7;
    Database altered.
    SQL> !rm /u01/app/oracle/oradata//redo07.log
    SQL> ALTER DATABASE ADD STANDBY LOGFILE THREAD 1 GROUP 7 '/u01/app/oracle/oradata//redo07.log' SIZE 50M;
    Database altered.
    SQL> alter database recover managed standby database disconnect from session;
    Database altered.
    SQL> Select GROUP#, THREAD#, SEQUENCE#, BYTES from v$standby_log;
      GROUP# THREAD# SEQUENCE# BYTES
      4 1 0 52428800
      5 1 1343 52428800
      6 1 0 52428800
      7 1 0 52428800
    SQL>
    Check
    SQL> select GROUP#,BYTES/1024/1024/1024 , STATUS, FIRST_TIME,NEXT_TIME from v$standby_log;
      GROUP# BYTES/1024/1024/1024 STATUS FIRST_TIM NEXT_TIME
      4 .048828125 UNASSIGNED
      5 .048828125 ACTIVE 29-NOV-13
      6 .048828125 UNASSIGNED
      7 .048828125 UNASSIGNED
    SQL>

  • Standby redo log status

    Can anyone explain what the status of clearing means when viewing standby redo log status?
    SQL> select status from v$log;
    STATUS
    CLEARING
    CLEARING
    CURRENT
    This is a bit different to what we'd see on an open database.

    Hello;
    Log is being re-created as an empty log.
    In a Standby database the regular redo are not used ( when not in PRIMARY MODE) only the standby redo logs are used. Sometimes as buffers for the redo coming from the primary.
    You should be able to change the status by doing a ALTER SYSTEM SWITCH LOGFILE on your primary.
    This note may help:
    Online Redo Logs on Physical Standby [ID 740675.1]
    Also
    Take a look at v$standby_log too.
    http://docs.oracle.com/cd/B28359_01/server.111/b28320/dynviews_3068.htm
    Best Regards
    mseberg

  • Change status(Active/Inactive) of file adapter by the external command

    Hi, all.
      Is it possible to change status(Active/Inactive) of file adapter by the external command?
      Let's say, like
      "$ switch_file_adapter_status.sh <File Adapter name> <active|inactive>"
    or something like that.
      Actually, we have the following requirement for the file adapter.
      For example, we have many "file adapter to R/3" scenarios and we only want to allow data transfer between 9:00 a.m. to 9:00 p.m.(R/3 service time).
      In order to achieve this requirement, one option would be to switch file adapter status between active and inactive by external command line.
    And this command will be controlled by the job scheduler(like Tivoli).
      Does XI(3.0 or above) have this kind of feature?
      Best Regards.

    Hi,
    I don't think that this is possible.
    But one Solution for your problem could be a job on xi who execute the Queue.
    So that Adapter work the hole time and send the Message to XI Queue which process them not automatically.
    And the XI Queue you can trigger with a Job like normal R/3 Jobs.
    Hope that helps,
    Regards,
    Robin

  • Can not remove standby log file, please help

    Hi,
    My v$logfile
    GROUP# STATUS TYPE MEMBER
    IS_RECOVERY_DEST_FILE
    3 ONLINE /u01/app/oracle/oradata/orcl/redo03.log
    NO
    2 ONLINE /u01/app/oracle/oradata/orcl/redo02.log
    NO
    1 ONLINE /u01/app/oracle/oradata/orcl/redo01.log
    NO
    GROUP# STATUS TYPE MEMBER
    IS_RECOVERY_DEST_FILE
    4 STANDBY /u01/app/oracle/oradata/orcl/stdlog01.log
    NO
    5 STANDBY /u01/app/oracle/oradata/orcl/stdlog02.log
    NO
    And when i clear standby log 5
    SQL> alter database clear logfile group 5;
    alter database clear logfile group 5
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [2130], [0], [8], [2], [], [], [],[]
    Please help me :(

    I hoping you can provide more information. v$log should not return information on standby, V$STANDBY_LOG will.
    Are you preforming the query on the primary or standby side?
    What version of Oracle are you using?
    Why do you need to remove the standby log?
    You should only have to clear a logfile if it has become corrupt, what make you think this is the case?
    If you can provide more details if would be very helpful.
    Best Regards
    mseberg
    Since you have posted the exact same question in the GENERAL DATABASE section and refuse to supply version information there you really have provide more details before anybody will help you.
    Remove standby redo log, get ORA-00600
    Edited by: mseberg on Apr 9, 2011 5:35 AM

  • Gig 1/1 interface on a standby Sup 2 card active?

    Hi,
    My 2 6513s each have 2 Sup 2 cards in them. The slot 1 Sup card in both 6513s is the active one and Gi1/1 on each connects the 2 6513s together.
    Tonight I want to pull the active Sup 2 card from the secondary 6513. If I move the cable in the secondary 6513 from Gi1/1 to Gi2/1, will I still have connectivity between the 2 6513s?
    In other words, are the interfaces on the standby Sup 2 card available for use when the card is in standby mode or does it only work when it becomes active?
    The configuration of ports 1/1 and 2/1 of the 2nd 6513 are below.
    Also, is there a document that delineates how these 2 Sup cards on these 2 6513s should be configured for highest availability (ie. Sup card failure on either 6513)? I looked high and low on Cisco's Web site but could not find one.
    Thanks, Ian.
    interface GigabitEthernet1/1
    description Link to COBCore1
    switchport
    switchport trunk encapsulation dot1q
    switchport trunk native vlan 99
    switchport trunk allowed vlan 80,99,100,110,111,113,120-123,130,131,133,140
    switchport trunk allowed vlan add 141,153,155,165,181-186,189,200,210,212,231
    switchport trunk allowed vlan add 500
    switchport mode trunk
    spanning-tree link-type point-to-point
    interface GigabitEthernet1/2
    no ip address
    shutdown
    interface GigabitEthernet2/1
    description Link to COBCore1
    switchport
    switchport trunk encapsulation dot1q
    switchport trunk native vlan 99
    switchport trunk allowed vlan 80,99,100,110,111,113,120-123,130,131,133,140
    switchport trunk allowed vlan add 141,153,155,165,181-186,189,200,210,212,231
    switchport trunk allowed vlan add 500
    switchport mode trunk
    spanning-tree link-type point-to-point

    the GB interfaces on the standby 6500 supervisor are active, even if the sup is in standby mode.
    configure your switch to use the 1/2 GB interface and make the link connection. verify the link is up and you can pass traffic.
    then you can adjust your 1/1 interface without causing downtime.
    (if you create an etherchannel of the two, this will allow you to remove 1/1 and not lose any connectivity)
    for high availability, i use the practice of:
    switch1-sup1 gb 1/1 >> switch2-sup2 gb 1/1
    switch1-sup1 gb 1/2 >> switch2-sup1 gb 1/2
    switch1-sup2 gb 1/1 >> switch2-sup1 gb 1/1
    switch1-sup2 gb 1/2 >> switch2-sup2 gb 1/2
    this allows for a fully meshed configuration for highest available redundancy.

  • Standby logfile

    Since setting up RMAN control file autobckup on a dataguard set up I get the following message in the alertlog:-
    Starting control autobackup
    Sat May 07 01:04:27 2005
    Control autobackup written to DISK device
    handle 'CF_C-00'
    Clearing standby activation ID 2115378951 (0x7e161f07)
    The primary database controlfile was created using the
    'MAXLOGFILES 9' clause.
    There is space for up to 6 standby redo logfiles
    Use the following SQL commands on the standby database to create
    standby redo logfiles that match the primary database:
    ALTER DATABASE ADD STANDBY LOGFILE 'srl1.f' SIZE 104857600;
    ALTER DATABASE ADD STANDBY LOGFILE 'srl2.f' SIZE 104857600;
    ALTER DATABASE ADD STANDBY LOGFILE 'srl3.f' SIZE 104857600;
    ALTER DATABASE ADD STANDBY LOGFILE 'srl4.f' SIZE 104857600;
    Can anyone tell me a bit more a bit what this message is saying and explain the pros/cons of adding these standby log files to the standby database??

    Thanks for reply..I am really confused by this both the primary and standby have the same redologs set up (3 groups of 2 logs) so dont understand why it is asking me to add 4 logs to the standby? are these the same or different from the normal redo log groups? why is this message only appearing when the control file is autbacked up?

  • ALTER DATABASE ADD STANDBY LOGFILE GROUP

    version 10 & 11g
    creating standby logfile groups on primary db is optional or needed? what could be advantages of both?
    I am reading 2 articles one is creating that other not?
    http://www.orafaq.com/node/2030
    & 736863.1 Notes

    DBA2008 wrote:
    version 10 & 11g
    creating standby logfile groups on primary db is optional or needed? what could be advantages of both? at primary database it is optional ,but it would be good candidate for switchover activity , it makes ensure that if you make any planned maintenance activity at primary site and switchover within yours data guard environment from primary database to physcial standby database ,if you create standby redo log at primary database it is not in use right now but it will be used when yours primary database switch to standby database after switching to physical standby databsae as a primary database.
    Khurram

  • How can I switch from auto_login wallet to password-protected encryption wallet in 12c  ?

    How can I switch from auto_login wallet to password-protected encryption wallet in 12c
    --Now the autologin wallet is in effect
    SQL> select * from v$encryption_wallet
      2  ;
    WRL_TYPE
    WRL_PARAMETER
    STATUS       WALLET_TYPE    WALLET_OR FULLY_BAC
        CON_ID
    FILE
    /acfs3/wallet
    OPEN       AUTOLOGIN    SINGLE    NO
      0
    --I need to export the keys and it informs me to use password-based keystore
    SQL> ADMINISTER KEY MANAGEMENT export KEYS with secret tde_1234 to '/home/oracle/dumpdir/orapdba.wallet' IDENTIFIED BY "tde_1234";
    ADMINISTER KEY MANAGEMENT export KEYS with secret tde_1234 to '/home/oracle/dumpdir/orapdba.wallet' IDENTIFIED BY "tde_1234"
    ERROR at line 1:
    ORA-28417: password-based keystore is not open
    --So I try to close the autologin keystore and open the password-based keystore, but the autologin keystore cannot be closed
    SQL>  administer key management set keystore close;
    administer key management set keystore close
    ERROR at line 1:
    ORA-28365: wallet is not open
    SQL> administer key management set keystore open identified by "tde_1234";
    administer key management set keystore open identified by "tde_1234"
    ERROR at line 1:
    ORA-28354: Encryption wallet, auto login wallet, or HSM is already open
    So My question is
    How to switch from auto_login keystore to password-protected keystore ?

    Remove the cwallet.sso file and check the wallet status in v$encryption_wallet.
    If it is not opened, try to open it with administer key statement.
    Check the status again.

  • Auto numbering Column id and filter this lookup id in another list based on status="active"

    Hi,
    I am trying to autonumbeirng the column id with default column ID. But it is not reset if i delete the list item. Also i want this id in another column which have status="Active". How i will do this?
    Thanks in Advance.
    Roopesh

    Hi,
    According to your description, my understanding is that you want to reset the column ID when you delete the list item and then you want to filter the id in another list based on status.
    For resetting column id, there is no direct way to achieve it. I suggest you can save the list as a template and recreate the list. ID columns will always keep incrementing and will never be reused.
    Here is a similar thread about reset column ID for your reference:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/848a3d73-6273-45fa-806f-96312a4d71d1/is-there-anyway-to-reset-the-default-id-number-that-sharepoint-gives-to-an-item-back-to-1?forum=sharepointgeneralprevious
    For filtering look up field, here are some detailed demos for your reference:
    http://filteredlookup.codeplex.com/
    https://social.technet.microsoft.com/Forums/en-US/d23d6e9b-dc7b-4741-8746-dd4bf00b8110/how-to-filter-lookup-column-in-sharepoint-2010
    v
    Thanks
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jerry Guo
    TechNet Community Support

  • I don't understand correlation between ACL and dACL. If dACL is downloaded to the Catalyst switch what is the status of the ACL

    Understanding  ISE and dACL.
     I don't understand correlation between ACL and dACL.
     If dACL is downloaded to the Catalyst switch what is the status of the ACL attached to physical port. Is dACL appended to the existing ACL? When I typed ‘sh ip access-list int fa0/1’ I can see only dACL for access domain and dACL for voice domain appended to the previous dACL and no ACL lines.
     Regards,
    Vice

    Hi,
    Downloadable ACLs (dACL) are applied from your RADIUS server based on authentication and authorization policies.  It overrides any standard interface ACL.
    Standard interface ACLs are in place to limit traffic on the port before 802.1x or MAB authentication.
    When an authenticated session terminates on the interface the standard ACL will be re-applied until the next authentication.

  • Can I switch back and forth the same sim card between an old iPhone 4 and a new one never used in order to activate the latter? Should I use same Apple Account?

    Can I switch back and forth the same sim card between an old iPhone 4 and a new one never used in order to activate the latter? Should I use same Apple Account? Should I activate it via WiFi or iTunes? I am filtering on the MAC no and I cannot read that number from the new iPhone without having it activated??!!
    All I want do is to have the new phone activated and then tested!
    Ciao // Mufftas

    Yes, you can do that.

Maybe you are looking for