Lost Current Logfile

Hi Friends. I cannot start my Instance because the Redo logfile current was deleted. I can startup mount but not open the database.
I try:
1. Alter system switch logfile, but database is not open
2. alter tablespace drop logfile group 3 , but can not drop because is the current logfile.
3. alter database clear logfile group 3, but said that is needed for crash recovery.
4. alter database open resetlogs, but this option is valid after incomplete database recovery.
5. alter database add logfile group 3 'c:\oracle\oradata\orcl\redo01.log', but said that group 3 already exists.
6. I not have a backup for use RMAN.
What I can do for open my database?
Thaks a lot for any idea.

Mr.Alfonso,
If you have lost you current online redolog file then you need to mount the database and simulate a test recovery using the command
RECOVER DATABASE UNTIL CANCEL;
You might get some error since the log file is required for recovery.
You need to issue the RECOVER CANCEL command and then open the database with the command
ALTER DATABASE OPEN RESETLOGS;
This would recreate the file for you.
regards
Yash Kapani

Similar Messages

  • Lost current ical events

    Today, I lost a number of events from approximately Dec 1st forward. All prior events are still there but some are repeated multiple times. Some of the current and future events however are not missing.
    After some head scratching, it appears that ical has possibly reverted to the state at the time the last sync was performed to my iphones since the ical data remaining matches my phone. The odd thing is that neither phone has been synced for a couple weeks.
    My last ical backup is older than the current state of ical so that won't help.
    Does ical keep any recent file that would have the lost data? Where are ical data files located? All the files in the ApplicationSupport folder date to Aug '09.
    We have not lost much but our entire family schedule is/was on this imac. it will be hard to recreate especially without any idea of just what was lost.
    Any ideas?

    By the way I neglected to mention that I checked my password, deleted my ical caches and restarted my computer

  • Lost current library

    I had backed up my old IPhoto '06 lib. on an external HD, 3+years ago
    I then upgraded to a pwrbk g4. I recently up graded to IPhoto '08, (I liked it very well)
    I then went to import the IPhoto '06 library into IPhoto '08, Well the result is I lost my newer photos. The IPhoto '06 is now the current libary while newer photos are gone.
    where can I find them? and merge the old with the new?
    thank you for any help
    art

    Art:
    Welcome to the Apple Discussions. Give SubrosaSoft FileSalvage a try. You can run it in the Demo mode to see what files it can recover before you have to purchase it.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Spry menu bar lost current page code

    I sure can use your help.
    On this site http://www.evtn.com/ I created a drop down menu that originally had the
    current-linked page in a blue background like the one that is now permanently
    sitting on the HOME page link. But it stopped working.
    I want this to work:
    ul.MenuBarHorizontal a.current {
        color: #F4F4F4;
        background-color: #8FC8D1;
    Do you know how I can straighten this out without starting all over again?
    I would also like to have a visited-link-page coded in a separate color if possible as well and don't know how to code it with the java script and spry.css (horizontalmenubar.css)
    I'll send more code of html and spry - whatever you need.
    I've read older posts on this and tried different things but nothing has changed.
    ul.MenuBarHorizontal a:hover  works so I don't know why the content won't
    Thank you!

    Add the following to each page, or to your template
    <script src="SpryAssets/SpryDOMUtils.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
    function InitPage(){
    Spry.$$('#MenuBar1 li').forEach(function(node){
        var a=node.getElementsByTagName("a")[0]; // finds all a elements inside the li, but we only want the first so [0]
        if(a.href == window.location){
            Spry.Utils.addClassName(node,"current");
    Spry.Utils.addLoadListener(InitPage);
    </script>
    making sure that you do have SpryDOMUtils.js in the SpryAssets folder.
    Because the above place a class of current in the list item, you will need to change the selctor to and add
    ul.MenuBarHorizontal li.current a {
        color: #F4F4F4;
        background-color: #8FC8D1;
    Gramps

  • Lost current ipod library

    For some reason my computer asked me to identify my itunes library.  I picked one, but it turned out to be a previous library.  Now I can't access the podcasts and music that I have previously downloaded.  Does my most recent library still exist and if so, how can I access it?

    Yes, there is a good chance it's still there somewhere.  Try the instructions in this Apple support document to help you open an alternate iTunes library. Choose the *.itl file with the most recent (or 2nd most recent) modication date in your Music -> iTunes folder inside of My Documents.
    How to open an alternate iTunes Library file or create a new one
    B-rock

  • Inactive redologs lost

    If I lost the inactive redolog file. Then i can use the below mentioned commands to clear and recreate the log files,.
    alter database clear logfile group 2; ( inactive and archived)
    alter database clear unarchived logfile group 2; ( inactive and not archived )
    Inactive logs files are not required for crash recovery and hence there is no need for incomplete recovery as we do when we lost current re-do log files.
    What is that inactive and archvied means... is that mean redo log file does not contain any redo log entries.. if so why it is archived.
    Can you please someone clear.

    Amazingly, Oracle actually publishes documentation, where you can look this stuff up... :-)
    Archived means your database is running in archivelog mode, and this particular log has been copied to the archive log area by ARC0.
    Inactive means that is no longer needed for instance recovery.
    See:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17110/dynviews_2031.htm#REFRN30127
    -Mark

  • Administrator shut out! password lost.

    Situation and problem description:
    administrator forgot password. shut out of system. lost admin password is same as login password.
    Logged on using another account which has no system privileges nor most applications nor utilities (a child's account).
    Time Machine Back ups on separate hard drive are obviously not accessible.
    Can not use installation CD as this account has no privileges - so can not use the option to reset password holding down C key.
    There is a key logger installed but again it is tied to the administrator and so hot key cannot be used (the key logger will have recorded the new password which has caused this problem - together with lack of foresight, obviously.
    Any solution considered including ways to initialize disk even if content is lost -  currently the computer is only good enough for my 5 year old.
    I need a hacker!
    Hypnosis an option? (joking...then again, maybe not!)

    Hi, it really depends if this is a Firmware Password, a Filevault PW, or what, if a simple login PW...
    Reset OS X Password Without an OS X CD...
    http://theappleblog.com/2008/06/22/reset-os-x-password-without-an-os-x-cd/
    Admin Hack...
    http://www.hackmac.org/?q=node/4
    Starts up like the first time you buy a new Mac, but after filling in all that info again, you should have access to the computer and the other Users & files will still be there... give the new User a different name than an existing one.

  • Remove the current control file when the database is running on linux or un

    Question From Oracler:
    下面这个例子中,假如controlfile被删除掉了,instance还没有关闭,可以通过lsof找出controlfile的file descriptors,再通过dd把文件恢复过来...
    我觉得这样dd出来的控制文件是没有办法直接启动这个数据库的,因为CKPT每3S一次,你dd恢复出来的控制文件SCN肯定和datafile不一样,比datafile小,... 要是recover会提示控制文件太久,不知道我理解正不正确啊?
    http://www.oracledatabase12g.com/archives/unix-linux%e4%b8%8b%e5%88%a0%e9%99%a4oracle%e6%8e%a7%e5%88%b6%e6%96%87%e4%bb%b6controlfile%e4%b8%ba%e4%bb%80%e4%b9%88%e5%ae%9e%e4%be%8binstance%e6%b2%a1%e6%9c%89%e7%ab%8b%e5%8d%b3%e5%a5%94%e6%ba%83.html
    dd恢复的控制文件 怎么会比打他file、
    怎么会比datafile的scn 小呢
    一旦关库,那么fd是不是就消失了,没有办法dd了, 那么造成scn不相同的原因是dd过程中scn的变化么?
    还请大致谈一下造成scn更新的必要条件。

    有网友提问,若控制文件是 create controlfile 重建得来的 又会如何? 这里我们可以看一下:
    我们来看一下:
    SQL> alter system switch logfile;
    System altered.
    SQL> select distinct checkpoint_change# from v$datafile_header;
    CHECKPOINT_CHANGE#
    15169797
    SQL> alter system checkpoint;
    System altered.
    SQL> select distinct checkpoint_change# from v$datafile_header;
    CHECKPOINT_CHANGE#
    15169802 =>E7783A
    15169802 =>E7783A 最近的一次FULL CHECKPOINT的SCN
    SQL> select name from v$tablespace;
    NAME
    SYSTEM
    UNDOTBS1
    SYSAUX
    USERS
    EXAMPLE
    TEMP
    SQL> alter tablespace SYSTEM begin backup;
    Tablespace altered.
    SQL> alter tablespace UNDOTBS1 begin backup;
    Tablespace altered.
    SQL> alter tablespace SYSAUX begin backup;
    Tablespace altered.
    SQL> alter tablespace USERS begin backup;
    Tablespace altered.
    SQL> alter tablespace EXAMPLE begin backup;
    Tablespace altered.
    SQL> alter tablespace SYSTEM end backup;
    Tablespace altered.
    SQL> alter tablespace UNDOTBS1 end backup;
    Tablespace altered.
    SQL> alter tablespace SYSAUX end backup;
    Tablespace altered.
    SQL> alter tablespace USERS end backup;
    Tablespace altered.
    SQL> alter tablespace EXAMPLE end backup;
    Tablespace altered.
    begin /end backup 会引发FILE CHECKPOINT ,造成datafile_header的 checkpoint_change# 更新
    SQL> select distinct checkpoint_change# from v$datafile_header;
    CHECKPOINT_CHANGE#
    15169814
    15169827
    15169842
    15169821
    15169835
    15169814 =>E77916 是最小的一个 datafile header checkpoint_change#
    SQL> oradebug setmypid;
    Statement processed.
    SQL> oradebug dump controlf 3;
    Statement processed.
    SQL> oradebug tracefile_name;
    但是此时去dump controlf 可以发现 控制文件中的database checkpint 仍是 E7783A 15169802 即上一次FULL CHECKPOINT的 SCN
    DATABASE ENTRY
    (size = 316, compat size = 316, section max = 1, section in-use = 1,
    last-recid= 0, old-recno = 0, last-recno = 0)
    (extent = 1, blkno = 1, numrecs = 1)
    03/09/2012 23:04:33
    DB Name "G10R21"
    Database flags = 0x00404001 0x00001000
    Controlfile Creation Timestamp 03/09/2012 23:04:33
    Incmplt recovery scn: 0x0000.00000000
    Resetlogs scn: 0x0000.00e7784f Resetlogs Timestamp 03/09/2012 23:11:46
    Prior resetlogs scn: 0x0000.00e77780 Prior resetlogs Timestamp 03/09/2012 22:57:44
    Redo Version: compatible=0xa200100
    #Data files = 16, #Online files = 16
    Database checkpoint: Thread=1 scn: 0x0000.00e7790a ==>15169802
    Threads: #Enabled=1, #Open=1, Head=1, Tail=1
    REDO THREAD RECORDS
    (size = 256, compat size = 256, section max = 8, section in-use = 1,
    last-recid= 0, old-recno = 0, last-recno = 0)
    (extent = 1, blkno = 9, numrecs = 8)
    THREAD #1 - status:0xf thread links forward:0 back:0
    #logs:3 first:1 last:3 current:2 last used seq#:0x2
    enabled at scn: 0x0000.00e7784f 03/09/2012 23:11:46
    disabled at scn: 0x0000.00000000 01/01/1988 00:00:00
    opened at 03/09/2012 23:11:46 by instance G10R21
    Checkpointed at scn: 0x0000.00e7790a 03/09/2012 23:12:12
    thread:1 rba:(0x2.3.10)
    SQL> alter database backup controlfile to trace;
    Database altered.
    SQL> oradebug setmypid;
    Statement processed.
    SQL> oradebug tracefile_name;
    SQL> shutdown abort;
    ORACLE instance shut down.
    [oracle@vrh8 ~]$ rm /s01/recreate.ctl
    我们以NORESETLOGS重建控制文件:
    SQL> startup nomount;
    ORACLE instance started.
    Total System Global Area 620756992 bytes
    Fixed Size 2022760 bytes
    Variable Size 234881688 bytes
    Database Buffers 377487360 bytes
    Redo Buffers 6365184 bytes
    SQL> show parameter control
    NAME TYPE VALUE
    control_file_record_keep_time integer 7
    control_files string /s01/recreate.ctl
    SQL> CREATE CONTROLFILE REUSE DATABASE "G10R21" NORESETLOGS ARCHIVELOG
    2 MAXLOGFILES 16
    3 MAXLOGMEMBERS 3
    4 MAXDATAFILES 100
    5 MAXINSTANCES 8
    6 MAXLOGHISTORY 2921
    7 LOGFILE
    8 GROUP 1 (
    9 '/s01/oradata/G10R21/onlinelog/o1_mf_1_7ch812dg_.log',
    10 '/s01/flash_recovery_area/G10R21/onlinelog/o1_mf_1_7ch813h5_.log'
    11 ) SIZE 50M,
    12 GROUP 2 (
    13 '/s01/oradata/G10R21/onlinelog/o1_mf_2_7ch8144q_.log',
    14 '/s01/flash_recovery_area/G10R21/onlinelog/o1_mf_2_7ch815cj_.log'
    15 ) SIZE 50M,
    16 GROUP 3 (
    17 '/s01/oradata/G10R21/onlinelog/o1_mf_3_7ch816g2_.log',
    18 '/s01/flash_recovery_area/G10R21/onlinelog/o1_mf_3_7ch817gp_.log'
    19 ) SIZE 50M
    20 -- STANDBY LOGFILE
    DATAFILE
    21 22 '/s01/oradata/G10R21/datafile/o1_mf_system_7ch8004t_.dbf',
    23 '/s01/oradata/G10R21/datafile/o1_mf_undotbs1_7ch80081_.dbf',
    24 '/s01/oradata/G10R21/datafile/o1_mf_sysaux_7ch8004x_.dbf',
    25 '/s01/oradata/G10R21/datafile/o1_mf_users_7ch80085_.dbf',
    26 '/s01/oradata/G10R21/datafile/o1_mf_example_7ch81ch3_.dbf',
    27 '/s01/oradata/G10R21/datafile/o1_mf_users_7gvd5pwh_.dbf',
    28 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6fdt_.dbf',
    29 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6nxy_.dbf',
    30 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6qc2_.dbf',
    31 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6stt_.dbf',
    32 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6w5w_.dbf',
    33 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6yo0_.dbf',
    34 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t717x_.dbf',
    35 '/s01/oradata/G10R21/datafile/o1_mf_undotbs1_7h6ttkkx_.dbf',
    36 '/s01/oradata/G10R21/datafile/o1_mf_undotbs1_7h6ttpn1_.dbf',
    37 '/s01/oradata/G10R21/datafile/o1_mf_undotbs1_7h6ttsbd_.dbf'
    38 CHARACTER SET AL32UTF8;
    Control file created.
    SQL> oradebug setmypid;
    Statement processed.
    SQL> oradebug dump controlf 3;
    Statement processed.
    DATABASE ENTRY
    (size = 316, compat size = 316, section max = 1, section in-use = 1,
    last-recid= 0, old-recno = 0, last-recno = 0)
    (extent = 1, blkno = 1, numrecs = 1)
    03/09/2012 23:16:57
    DB Name "G10R21"
    Database flags = 0x00400103 0x00001000
    Controlfile Creation Timestamp 03/09/2012 23:16:58
    Incmplt recovery scn: 0x0000.00000000
    Resetlogs scn: 0x0000.00e7784f Resetlogs Timestamp 03/09/2012 23:11:46
    Prior resetlogs scn: 0x0000.00e77780 Prior resetlogs Timestamp 03/09/2012 22:57:44
    Redo Version: compatible=0xa200100
    #Data files = 16, #Online files = 16
    Database checkpoint: Thread=1 scn: 0x0000.00e77902 15169794
    Threads: #Enabled=1, #Open=1, Head=1, Tail=1
    Database checkpoint: 变成了 00e77902 =》 15169794,比上次FULL CHECKPOINT的15169802 还要小
    这个
    00e77902 =》 15169794从哪里来?
    REDO THREAD RECORDS
    (size = 256, compat size = 256, section max = 8, section in-use = 1,
    last-recid= 0, old-recno = 0, last-recno = 0)
    (extent = 1, blkno = 9, numrecs = 8)
    THREAD #1 - status:0x7 thread links forward:0 back:0
    #logs:3 first:1 last:3 current:2 last used seq#:0x2
    enabled at scn: 0x0000.00e7784f 03/09/2012 23:11:46
    disabled at scn: 0x0000.00000000 01/01/1988 00:00:00
    opened at 01/01/1988 00:00:00 by instance
    Checkpointed at scn: 0x0000.00e77902 03/09/2012 23:11:54
    thread:1 rba:(0x2.2.0)
    LOG FILE RECORDS
    (size = 72, compat size = 72, section max = 16, section in-use = 3,
    last-recid= 0, old-recno = 0, last-recno = 0)
    (extent = 1, blkno = 10, numrecs = 16)
    LOG FILE #1:
    (name #3) /s01/oradata/G10R21/onlinelog/o1_mf_1_7ch812dg_.log
    (name #4) /s01/flash_recovery_area/G10R21/onlinelog/o1_mf_1_7ch813h5_.log
    Thread 1 redo log links: forward: 2 backward: 0
    siz: 0x19000 seq: 0x00000001 hws: 0x4 bsz: 512 nab: 0xb6 flg: 0x0 dup: 2
    Archive links: fwrd: 2 back: 0 Prev scn: 0x0000.00000000
    Low scn: 0x0000.00e7784f 03/09/2012 23:11:46
    Next scn: 0x0000.00e77902 03/09/2012 23:11:54
    LOG FILE #2:
    (name #1) /s01/oradata/G10R21/onlinelog/o1_mf_2_7ch8144q_.log
    (name #2) /s01/flash_recovery_area/G10R21/onlinelog/o1_mf_2_7ch815cj_.log
    Thread 1 redo log links: forward: 3 backward: 1
    siz: 0x19000 seq: 0x00000002 hws: 0x1 bsz: 512 nab: 0xffffffff flg: 0xa dup: 2
    Archive links: fwrd: 0 back: 1 Prev scn: 0x0000.00e7784f
    Low scn: 0x0000.00e77902 03/09/2012 23:11:54
    Next scn: 0xffff.ffffffff 01/01/1988 00:00:00
    LOG FILE #3:
    (name #5) /s01/oradata/G10R21/onlinelog/o1_mf_3_7ch816g2_.log
    (name #6) /s01/flash_recovery_area/G10R21/onlinelog/o1_mf_3_7ch817gp_.log
    Thread 1 redo log links: forward: 0 backward: 2
    siz: 0x19000 seq: 0x00000000 hws: 0x2 bsz: 512 nab: 0x2 flg: 0x1 dup: 2
    Archive links: fwrd: 0 back: 0 Prev scn: 0x0000.00000000
    Low scn: 0x0000.00000000 01/01/1988 00:00:00
    Next scn: 0x0000.00000000 01/01/1988 00:00:00
    原来这个
    00e77902 =》 15169794 来源于 current online redo logfile中最小的LOW SCN
    DATA FILE RECORDS
    (size = 428, compat size = 428, section max = 100, section in-use = 19,
    last-recid= 0, old-recno = 0, last-recno = 0)
    (extent = 1, blkno = 11, numrecs = 100)
    DATA FILE #1:
    (name #22) /s01/oradata/G10R21/datafile/o1_mf_system_7ch8004t_.dbf
    creation size=0 block size=8192 status=0x12 head=22 tail=22 dup=1
    tablespace 0, index=1 krfil=1 prev_file=0
    unrecoverable scn: 0x0000.00000000 01/01/1988 00:00:00
    Checkpoint cnt:2314 scn: 0x0000.00e77916 03/09/2012 23:12:46
    Stop scn: 0xffff.ffffffff 03/09/2012 23:16:58
    Creation Checkpointed at scn: 0x0000.00000008 10/22/2005 21:44:31
    thread:0 rba:(0x0.0.0)
    DATAFILE 1 的checkpoint scn最小为 00e77916 =》15169814
    SQL> recover database using backup controlfile;
    ORA-00279: change 15169814 generated at 03/09/2012 23:12:46 needed for thread 1
    ORA-00289: suggestion :
    /s01/flash_recovery_area/G10R21/archivelog/2012_03_09/o1_mf_1_2_%u_.arc
    ORA-00280: change 15169814 for thread 1 is in sequence #2
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00279: change 15169814 generated at 03/09/2012 23:12:46 needed for thread 1
    可以看到 recover database using backup controlfile 的起点是 15169814 即 最小的一个 datafile header 的CHECKPOINT CHANGE#,
    也就是说 丢失控制文件 并(create controlfile)重建后的recover 从 最小的datafile header CHECKPOINT_CHANGE#开始 ,直到NEXT SCN 无穷大的 current logfile的 end 为止!
    我们在看一下 RESETLOGS的情况:
    SQL>
    SQL> CREATE CONTROLFILE REUSE DATABASE "G10R21" RESETLOGS ARCHIVELOG
    MAXLOGFILES 16
    2 3 MAXLOGMEMBERS 3
    4 MAXDATAFILES 100
    5 MAXINSTANCES 8
    6 MAXLOGHISTORY 2921
    7 LOGFILE
    8 GROUP 1 (
    9 '/s01/oradata/G10R21/onlinelog/o1_mf_1_7ch812dg_.log',
    10 '/s01/flash_recovery_area/G10R21/onlinelog/o1_mf_1_7ch813h5_.log'
    11 ) SIZE 50M,
    12 GROUP 2 (
    13 '/s01/oradata/G10R21/onlinelog/o1_mf_2_7ch8144q_.log',
    14 '/s01/flash_recovery_area/G10R21/onlinelog/o1_mf_2_7ch815cj_.log'
    15 ) SIZE 50M,
    16 GROUP 3 (
    17 '/s01/oradata/G10R21/onlinelog/o1_mf_3_7ch816g2_.log',
    18 '/s01/flash_recovery_area/G10R21/onlinelog/o1_mf_3_7ch817gp_.log'
    19 ) SIZE 50M
    20 -- STANDBY LOGFILE
    21 DATAFILE
    22 '/s01/oradata/G10R21/datafile/o1_mf_system_7ch8004t_.dbf',
    23 '/s01/oradata/G10R21/datafile/o1_mf_undotbs1_7ch80081_.dbf',
    '/s01/oradata/G10R21/datafile/o1_mf_sysaux_7ch8004x_.dbf',
    24 25 '/s01/oradata/G10R21/datafile/o1_mf_users_7ch80085_.dbf',
    26 '/s01/oradata/G10R21/datafile/o1_mf_example_7ch81ch3_.dbf',
    27 '/s01/oradata/G10R21/datafile/o1_mf_users_7gvd5pwh_.dbf',
    28 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6fdt_.dbf',
    29 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6nxy_.dbf',
    30 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6qc2_.dbf',
    31 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6stt_.dbf',
    32 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6w5w_.dbf',
    33 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t6yo0_.dbf',
    34 '/s01/oradata/G10R21/datafile/o1_mf_users_7h6t717x_.dbf',
    35 '/s01/oradata/G10R21/datafile/o1_mf_undotbs1_7h6ttkkx_.dbf',
    36 '/s01/oradata/G10R21/datafile/o1_mf_undotbs1_7h6ttpn1_.dbf',
    37 '/s01/oradata/G10R21/datafile/o1_mf_undotbs1_7h6ttsbd_.dbf'
    CHARACTER SET AL32UTF8; 38
    Control file created.
    SQL> oradebug setmypid;
    Statement processed.
    SQL> oradebug dump controlf 3;
    Statement processed.
    SQL> oradebug tracefile_name;
    DATABASE ENTRY
    (size = 316, compat size = 316, section max = 1, section in-use = 1,
    last-recid= 0, old-recno = 0, last-recno = 0)
    (extent = 1, blkno = 1, numrecs = 1)
    03/09/2012 23:20:03
    DB Name "G10R21"
    Database flags = 0x00400147 0x00001000
    Controlfile Creation Timestamp 03/09/2012 23:20:03
    Incmplt recovery scn: 0x0000.00e77932
    Resetlogs scn: 0x0000.00e7784f Resetlogs Timestamp 03/09/2012 23:11:46
    Prior resetlogs scn: 0x0000.00e77780 Prior resetlogs Timestamp 03/09/2012 22:57:44
    Redo Version: compatible=0xa200100
    #Data files = 16, #Online files = 16
    Database checkpoint: Thread=0 scn: 0x0000.00000000
    Threads: #Enabled=1, #Open=0, Head=0, Tail=0
    REDO THREAD RECORDS
    (size = 256, compat size = 256, section max = 8, section in-use = 1,
    last-recid= 0, old-recno = 0, last-recno = 0)
    (extent = 1, blkno = 9, numrecs = 8)
    THREAD #1 - status:0x6 thread links forward:0 back:0
    #logs:3 first:1 last:3 current:3 last used seq#:0x0
    enabled at scn: 0x0000.00000000 01/01/1988 00:00:00
    disabled at scn: 0x0000.00000000 01/01/1988 00:00:00
    opened at 01/01/1988 00:00:00 by instance
    Checkpointed at scn: 0x0000.00000000
    thread:0 rba:(0x0.0.0)
    LOG FILE RECORDS
    (size = 72, compat size = 72, section max = 16, section in-use = 3,
    last-recid= 0, old-recno = 0, last-recno = 0)
    (extent = 1, blkno = 10, numrecs = 16)
    LOG FILE #1:
    (name #5) /s01/oradata/G10R21/onlinelog/o1_mf_1_7ch812dg_.log
    (name #6) /s01/flash_recovery_area/G10R21/onlinelog/o1_mf_1_7ch813h5_.log
    Thread 1 redo log links: forward: 2 backward: 0
    siz: 0x19000 seq: 0x00000000 hws: 0x0 bsz: 512 nab: 0x0 flg: 0x1 dup: 2
    Archive links: fwrd: 0 back: 0 Prev scn: 0x0000.00000000
    Low scn: 0x0000.00000000 01/01/1988 00:00:00
    Next scn: 0x0000.00000000 01/01/1988 00:00:00
    LOG FILE #2:
    (name #3) /s01/oradata/G10R21/onlinelog/o1_mf_2_7ch8144q_.log
    (name #4) /s01/flash_recovery_area/G10R21/onlinelog/o1_mf_2_7ch815cj_.log
    Thread 1 redo log links: forward: 3 backward: 1
    siz: 0x19000 seq: 0x00000000 hws: 0x0 bsz: 512 nab: 0x0 flg: 0x1 dup: 2
    Archive links: fwrd: 0 back: 0 Prev scn: 0x0000.00000000
    Low scn: 0x0000.00000000 01/01/1988 00:00:00
    Next scn: 0x0000.00000000 01/01/1988 00:00:00
    LOG FILE #3:
    (name #1) /s01/oradata/G10R21/onlinelog/o1_mf_3_7ch816g2_.log
    (name #2) /s01/flash_recovery_area/G10R21/onlinelog/o1_mf_3_7ch817gp_.log
    Thread 1 redo log links: forward: 0 backward: 2
    siz: 0x19000 seq: 0x00000000 hws: 0x0 bsz: 512 nab: 0x2 flg: 0xb dup: 2
    Archive links: fwrd: 0 back: 0 Prev scn: 0x0000.00000000
    Low scn: 0x0000.00000000 01/01/1988 00:00:00
    Next scn: 0x0000.00000000 01/01/1988 00:00:00
    虽然database checkpoint scn 等都是0 ,但是不影响 从 最小的datafile header checkpoint change 开始recover的 结论。
    SQL> recover database using backup controlfile;
    ORA-00279: change 15169814 generated at 03/09/2012 23:12:46 needed for thread 1
    ORA-00289: suggestion :
    /s01/flash_recovery_area/G10R21/archivelog/2012_03_09/o1_mf_1_2_%u_.arc
    ORA-00280: change 15169814 for thread 1 is in sequence #2
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}

  • 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

  • I missed to add Standby Logfile groups? What now?

    Hi there
    I have created a Standby database in a test environment using RMAN   (followed the procedure given here -> URL:  Creating a Standby Database with Recovery Manager).
    When I tried to start the recovery on Standby, I got the following error:
    [code]
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT
    ERROR at line 1:
    ORA-38500: USING CURRENT LOGFILE option not available without stand
    SQL> select NAME, OPEN_MODE, GUARD_STATUS, DATABASE_ROLE from v$database;
    NAME      OPEN_MODE  GUARD_S DATABASE_ROLE
    PRIM      MOUNTED    NONE    PHYSICAL STANDBY
    SQL>
    [/code]
    I missed the step to add standby logfile groups. Do I need to recreate the Standby database now? I mean, add standby logfile groups to Primary, then take full RMAN backup and recreate the standby database (following the procedure described in the URL above)?
    I am using Oracle 10gR2 on OEL 5.8.
    Please advise!
    Best regards

    OK thank you both - I have added the standby logfile groups both on Primary and Standby (mounted) database and I was able to successfully issue the following command:
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;
    I hope this was the right thing to do under the circumstances, right?
    And now there seems to be a gap:
    PRIM_SQL> SELECT MAX(SEQUENCE#) FROM V$ARCHIVED_LOG;
    MAX(SEQUENCE#)
                11
    STDBY_SQL> SELECT MAX(SEQUENCE#) FROM V$LOG_HISTORY;
    MAX(SEQUENCE#)
                 9
    I issued "alter system switch logfile" few times on the Primary but logs don't seem to be shipping? How to check this and fix?
    EDIT: OK I checked the Primary alert log file and see following messages:
    Error 1031 received logging on to the standby
    Tue Jun 25 15:22:43 2013
    Errors in file /u01/app/oracle/admin/prim/bdump/prim_arc0_6880.trc:
    ORA-01031: insufficient privileges
    PING[ARC0]: Heartbeat failed to connect to standby 'stan'. Error is 1031.
    Tue Jun 25 15:27:43 2013
    Error 1031 received logging on to the standby
    Tue Jun 25 15:27:43 2013
    Errors in file /u01/app/oracle/admin/prim/bdump/prim_arc0_6880.trc:
    ORA-01031: insufficient privileges
    PING[ARC0]: Heartbeat failed to connect to standby 'stan'. Error is 1031.
    Tue Jun 25 15:32:43 2013
    I do have password file both on Primary and Standby servers. What is this "ORA-01031: insufficient privileges" referring to?
    EDIT#2:
    I copied the password file from Primary DB server to Standby server (with same name "orapwprim" - previously I used "orapwstan" name for standby password file) and the "login issue" is resolved. But now I see following error in the alert log file on Primary:
    PING[ARC0]: Heartbeat failed to connect to standby 'stan'. Error is 1031.
    Tue Jun 25 15:48:08 2013
    ARCH: Possible network disconnect with primary database
    Any clues here?
    EDIT#3:
    Sorry I was a bit impatient I guess.The logs a re being shipped and applied now.
    Thank you both!
    Best regards
    Message was edited by: user130038 (added alert log file info)
    Message was edited by: user130038 (Added EDIT#2)
    Message was edited by: user130038 (added EDIT#3)

  • Current redo at the standby server

    Hi,
    Oracle 10.2.0/Windows 2003 Server
    At my standby system in v$managed_standby view Process MRP0 is showing WAIT_FOR_LOG instead APPLYING_LOG. I have given statement:
    Alter database recover managed standby database using current logfile disconnect from session
    All the archive logs are being shipped, but I am worried of current redo?
    what should I do to solve this problem.
    SQL> select process,status,sequence#,block#,blocks from v$managed_standby;
    PROCESS STATUS SEQUENCE# BLOCK# BLOCKS
    ARCH CLOSING 1917 4097 168
    ARCH CONNECTED 0 0 0
    MRP0 WAIT_FOR_LOG 1918 0 0
    RFS IDLE 0 0 0
    thanks
    satyanag

    Hi Satyanag,
    It isn't necessarily a problem...
    The status of waiting is normal if the database has applied the latest log. It just means that it is waiting for the next log.
    The only thing you need to watch out for is that the standby hasn't fallen behind for some reason (network outage for example). To check, run the following queries:
    On the primary:
    set numwidth 15
    select     max(sequence#) current_seq
    from     v$log
    On the standby:
    set numwidth 15
    select     max(applied_seq#) last_seq
    from     v$archive_dest_status
    Make sure that the numbers are roughly the same. It's also worth checking the alert log of the standby for errors.
    Cheers,
    Andy Barry
    http://www.shutdownabort.com

  • Cant drop a current redo log

    ORACLE 11.2.0.2
    I have a corrupted redo log on a Physical Standby db. The corrupted file is the current log. I cant do an "alter system switch logfile" because the database is not writeable.
    SQL> alter database open;
    Database altered.
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;
    Database altered.
    SQL> SELECT GROUP#, ARCHIVED, STATUS FROM V$LOG;
    GROUP# ARC STATUS
    1 YES UNUSED
    2 YES UNUSED
    3 NO CURRENT
    SQL>
    SQL> alter system switch logfile;
    alter system switch logfile
    ERROR at line 1:
    ORA-16000: database open for read-only access
    How can I drop log file #3? The database is currently a physical, if I convert ti to a logical, then the dp would be writeable. Would this work? Any other ideas??

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/manage_ps.htm
    8.3.5 Adding or Dropping Online Redo Log Files
    Changing the size and number of the online redo log files is sometimes done to tune the database. You can add or drop online redo log file groups or members to the primary database without affecting the standby database. Similarly, you can drop log file groups or members from the primary database without affecting your standby database. However, these changes do affect the performance of the standby database after switchover.
    Caution:
    Whenever you add an online redo log file to the primary database, you should add corresponding online and standby redo log files to the standby database.
    For example, if the primary database has 10 online redo log files and the standby database has 2, and then you switch over to the standby database so that it functions as the new primary database, the new primary database is forced to archive more frequently than the original primary database.
    Consequently, when you add or drop an online redo log file at the primary site, it is important that you synchronize the changes in the standby database by following these steps:
    If Redo Apply is running, you must cancel Redo Apply before you can change the log files.
    If the STANDBY_FILE_MANAGEMENT initialization parameter is set to AUTO, change the value to MANUAL.
    Add or drop an online redo log file:
    To add an online redo log file, use a SQL statement such as this:
    SQL> ALTER DATABASE ADD LOGFILE '/disk1/oracle/oradata/payroll/prmy3.log' SIZE 100M;
    To drop an online redo log file, use a SQL statement such as this:
    SQL> ALTER DATABASE DROP LOGFILE '/disk1/oracle/oradata/payroll/prmy3.log';
    Repeat the statement you used in Step 3 on each standby database.
    Restore the STANDBY_FILE_MANAGEMENT initialization parameter and the Redo Apply options to their original states.

  • Current log group is corrupt

    Hello freinds,
    What will we do if current log group is corrupt ( archivelog and noarchivelog)?
    Regards

    No, there are cases when archiver couldn't archive the redo log. Then you have to use UNARCHIVED. But then you should perform a backup asap because you cannot fully recover your database.
    This command isnt for the current group because you cannot clear it. These logfile group information are needed for instance recovery. If you could clear the current logfile group, after a crash your instance would be in a inconsistence state and oracle does't have enough information to make it consistence. I posted this command because I overread the word "current" in your post.
    >
    Total Questions:      139 (98 unresolved)
    >
    and please mark your posts as answered and helpful/correct...
    HTH..
    - wiZ

  • Ocr & voting disk lost

    Hi,
    Learning about RAC..........please anyone reply it
    If ocr & voting is lost means, is the database lost some datas? Is it correct?
    For Ex: I had backup of OCR ,VOTING DISK which is taken at 3 Am.
    Now 3.45 Am I lost current(running) ocr file ( mirror also) & voting disk.
    I lost 45 minutes data?

    Hi,
    OCR Maintains cluster configuration information as well as configuration information about any cluster database within the cluster. OCR is the repository of configuration information for the cluster that manages information about like the cluster node list and instance-to-node mapping information.
    VD primary function of the voting disk is to manage node membership and prevent what is known as Split Brain Syndrome in which two or more instances attempt to control the RAC database.
    So looking into above functionality we can understand that the above are conf files and not actual data files. So you database does not lost.
    Secondly, try to hold a replica copy of OCR/VD and make backups in time.
    - Pavan Kumar N

  • Why suddenly lost currenly contact

    why suddenly i lost currently contact

    Is this a riddle?  I LOVE riddles!
    Um, is it larger than a bread box?
    /sarcasm
    Your question makes no sense.  Try to rephrase it, please.

Maybe you are looking for