What will happen if I delete ACTIVE logfile member

hi gurus
JUST FOR TESTING.
Consider the situation as follows
I create a table,insert some rows into the table,then do a log switch. And then I remove the logfile which still in the "ACTIVE" states with operating system command.
Finally I shutdown and restart the database, the database complains that the logfile group does not
exist,so I drop the logfile group and open the database. I run a query against the table I created before,data still exists.
The result of the test make me fell strange.
Accornding to my knowledge, logfile in the 'ACTIVE' state means that the data protected by the logfile have not been written to the datafile.So I expect the table will not exists after I drop the logfile and then restart the database.
Why the data are still there?
Thanks a lot.

hi Hashmi
Testcase:
SQL> select group#,status from v$log;
GROUP# STATUS
+1 INACTIVE+
+2 INACTIVE+
+3 CURRENT+
SQL> select member from v$logfile where group#=3;
MEMBER
+/oracle/app/oracle/oradata/TESTDB/onlinelog/o1_mf_3_5tg3h0nz_.log+
+/oracle/app/oracle/flash_recovery_area/TESTDB/onlinelog/o1_mf_3_5tg3h29l_.log+
SQL> drop table yef;
Table dropped.
SQL> create table yef as select * from system.maoxl;
Table created.
SQL> select group#,status from v$log;
GROUP# STATUS
+1 INACTIVE+
+2 INACTIVE+
+3 CURRENT+
SQL>
SQL> alter system switch logfile;
System altered.
SQL> select group#,status from v$log;
GROUP# STATUS
+1 CURRENT+
+2 INACTIVE+
+3 ACTIVE+
SQL> host rm /oracle/app/oracle/oradata/TESTDB/onlinelog/o1_mf_3_5tg3h0nz_.log
SQL> host rm /oracle/app/oracle/flash_recovery_area/TESTDB/onlinelog/o1_mf_3_5tg3h29l_.log
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup;
ORACLE instance started.
Total System Global Area 2097152000 bytes
Fixed Size                  2401464 bytes
Variable Size             480947016 bytes
Database Buffers         1593835520 bytes
Redo Buffers               19968000 bytes
Database mounted.
ORA-00313: open failed for members of log group 3 of thread 1
ORA-00312: online log 3 thread 1: '/oracle/app/oracle/oradata/TESTDB/onlinelog/o1_mf_3_5tg3h0nz_.log'
ORA-00312: online log 3 thread 1: '/oracle/app/oracle/flash_recovery_area/TESTDB/onlinelog/o1_mf_3_5tg3h29l_.log'
SQL> select group#,status from v$log;
GROUP# STATUS
+1 CURRENT+
+3 INACTIVE+
+2 INACTIVE+
SQL> alter database drop logfile group 3;
Database altered.
SQL> alter database open;
Database altered.
SQL> select * from yef;
ID
+1+
+4+
+4+
SQL>

Similar Messages

  • I'm worried about what will happen if I delete my recent backup data from the phone I still own? Will I lose any progress in games that was saved in the backup?

    I'm worried about what will happen if I delete my recent backup data from the phone I still own? Will I lose any progress in games that was saved in the backup?
    I have an iPhone 4S and I keep getting those irritating notifications that tell me I need to upgrade my storage or free up space. I've deleted all I can from my music and photos without losing too many precious memories, but it's come to the point where I think I need to delete backups. However, I'm just worried that I will lose all and any log-in information that I don't remember and app/game progress that was saved to the iCloud. Please Tell me what will happen/what I can do?

    If you are asking what happens when you delete an iCloud backup, it only deletes the backup from your account.  It won't do anything to the data on your phone or in your iCloud account.  If you don't need to backup you can delete it.  (If you no longer want to back up your phone to iCloud, turn iCloud backup off in Settings>iCloud>Backup.  Then your phone will back up to your computer each time you sync it with iTunes.)

  • HT4847 What will happen if I delete apps off iCloud?

    What will happen if I delete apps off iCloud?

    What do you mean "delete apps off iCloud"?
    You can only delete apps from your iPhone or turn off apps data backup from iClloud.

  • What will happen if I delete sleepimage?

    What will happen if I delete sleepimage? I've read through several posts here but I'm not clear exactly what this does and if there are some dire consequences if I delete this from my laptop to make more room on my HD. Any clarifications much appreciated!

    This is a file that the contents of your computer's memory are written to when your computer goes to sleep. It will always be there, or recreated if it's missing, as long as you have a newer Intel based Mac with the new safe sleep mode.
    Here's a [MacWorld article|http://www.macworld.com/article/53471/2006/10/sleepmode.html] explaining the sleepimage file.
    As a general rule though, you really shouldn't be deleting files from the /private directory without knowing exactly what they are for... the directory is labelled /private for a reason

  • What will happen if I delete my husband's iCloud account from my iPad?

    What will happen if I delete my husband's iCloud account from my iPad?

    You can delete the iCloud Account from your device but that doesn’t delete your account on iCloud.com. You can still use the user name and password you selected when signing up for iCloud to log in on the iCloud website.

  • What will happen if I delete a photo from the library that is in a iPhoto Book?

    What will happen if I delete photos from my iPhoto library that are in an iPhoto book? Will the book stay intact?

    no - it will be deleted from the book too - books are like special albums that point to the library photos
    LN

  • What will happen if i delete my icloud account from my macbook?

    I have both an iPhone 4s and and a macbook pro, they are both signed in on the same icloud account, which my dad's phone is also signed in to. if i delete my icloud account from my macbook what will happen? i have already deleted it from my iphone and everything was still there, what with my mac?

    You just need to sign out on the Mac, everything will be on iCloud but no longer on the Mac.
    System Preferences>iCloud>Sign Out

  • What will happen to the deleted entry in xml when publish sandbox?

    Hi,
    In a MDS sandbox, If I delete something from a document, for example, one of xml element. when I publish the sandbox, what will happen? will the deleted entry disappear from the same document in mainline?
    Is there any document explain this in detail?
    Thanks

    Hi,
    wrong forum as this seems to aim for WebCenter uses. When you publish a change and metadata is missing for a document then resulting documents will not contain the components that you have removed. A Sandbox is a protection mechanism to try changes until you are happy with them. Once you switch them to become the actual version then new documents are applied with these changes. What were your expectations ?
    Frank

  • What will happen if I delete an iCloud backup?

    Okay. So I have an iPhone 5 which I've been backing up with iCloud.. I have a total of 5GB but only 638MB available. This isn't enough room to back up my phone. I don't really want to buy more space so I tried to create some by deleting apps etc but it didn't make a difference. Do I need to delete pictures? I don't have any music.. When I tap Manage Storage, there are two options saying both named Tasha's iPhone, one takes up 1GB and the other takes up 3.3GB. Could one of these be from my old iPhone4 ? Also what happens if I delete these? Will all my apps and pictures be wiped from my phone? Or can I just delete them both then back up my phone again?
    I'd really appreciate the help!
    Thanks
    Natasha

    One of those backups are from your old iPhone, and you will note this because on your device's backup you will see "My iPhone" or similar under its backup name. You can delete the old one without any problem, as you are not using it to store files.
    If you delete your device backup, you will lose your backups. If you do this, I recommend you to turn off iCloud backup in Settings > iCloud > Storage and Backup, and back up your phone every time you plug it to your PC or Mac with iTunes

  • What will happen if I delete the local disk's from my iPhone?

    I want to free up storage space on my phone and a lot of the space is being taken up by 'Local Disk''s and I want to know what'll happen to my phone if I delete or remove them

    Don't do that. Are you talking about the photo folders?

  • What will happen when I delete songs

    I have an older gateway computer and with a 20 Gig hard drive. I just got a 60 Gig ipod (3X's the computer). My music library is 7 gigs. I want to sync up with itunes and transfer everything over to the ipod and then delete most the music off the computer to create more room. Will I run into any complications the next time i sync up with itunes and most the songs are gone. I am afraid to try this before I know what is going to happen.

    You have to set up your iPod preferences in iTunes to update songs manually. If you are set to automatically update iPod and you delete songs from your computer then you will lose them on your iPod.
    Now you will also have a problem with manual updates if you lose some or all of your music on your iPod. Unless you have the music backed up somewhere or have all the CDs to import music again this will be a problem. You will not be able to recover purchased music unless on a CD somewhere.
    You might consider buying a bigger harddrive (Seagate has some great deals these days) or an external hard drive.
    Hope this helps. Let us know.

  • HT1349 what will happen if i delete backup on my iphone for my sons ipod? would any data be lost from his ipod or my iphone? my storage is almost full

    I received notification on my iphone thru icloud that my storage is close to being full, it is because my kids ipods use the same email address!  If i delete the backup for their ipods, will it delete any info from their ipods or my iphone??

    I wouldn't delete the actual backup file, due to unforseen risks.
    Try managing the content better, such as removing songs/apps/videos/photos, etc.

  • What will happen if you delete an iCloud account on a device that has the same iCloud account on a different device?

    I want to switch iCloud accounts on my iPod but I don't want it to delete my iCloud on my iPhone. Will it delte it? Both iPhone and iPods have the same iCloud account.

    It will only delete it from the device you press Delete on.

  • What will happen to Windows XP activation after April 2014?

    It's not news that Microsoft will discontinue support for Windows XP in 2014, but I've found no clear answer whether activation of Windows XP will still be possible. Back in old days, I've purchased quite a few boxes of Windows XP, and still a few unboxed
    now.
    I know it's an old OS and Microsoft no longer supports it, but if I choose to use it on my very old computer just to have fun, despite all the security risks, will the product key still work the way it's meant to be? Will I still be possible to activate
    my copy after 2014?

    An existing XP installation WILL become invalid if you have to change the configuration of the hardware it is running on. If you have to change any of these:
    1. Display Adapter
    2. SCSI Adapter
    3. IDE Adapter (effectively the motherboard)
    4. Network Adapter (NIC) and its MAC Address
    5. RAM Amount Range (i.e., 0-64mb, 64-128mb, etc.)
    6. Processor Type
    7. Processor Serial Number
    8. Hard Drive Device
    9. Hard Drive Volume Serial Number (VSN)
    10. CD-ROM / CD-RW / DVD-ROM
    we WILL need to re-activate.  Many of us have users with software that will not run on newer Windows releases and have no desire to upgrade.
    This is a valid concern.

  • What will happen if I delete all files .plist? specially from Web?

    Could the app iWeb or in general the iMac get faster? iWeb is crashing and doing funny things all time today...
    Thnaks,
    Raúl

    The first steps in troubleshooting iWeb are to quit the application, go to Home Folder/Library/Preferences and delete the file com.apple.iWeb.plist and relaunch.
    If that doesn't do it, delete the .plist again, restart your Mac and run Disk Utility to repair permissions.

Maybe you are looking for

  • Office Web Apps Attachment Preview Fails When Capital Letter in File Name Extension

    It appears that when we send any attachments that contain a capital letter in the filename extension, and try previewing the attachment from within Outlook Web Access, the server returns an Internal Server Error 500 with the following response: {"Bod

  • Installing the hyperion planning downloaded from otn

    I have downloaded hyperion from the below link. http://www.oracle.com/technology/software/products/bi/performance-management/hyperion_planning.html I have read in installation guide which says to run setup.exe, but there is no setup.exe file found wh

  • Possibly crashed.... Now flashing folder symbol with question mark.

    Hi I think my iMac crashed tonight. It kept freezing, and i couldnt force quit anything. I restarted, and then none of my programs would open, and i couldnt click on anything. I held in my power button, shut it off and kept it held in. Then a blank w

  • Greying out the particular field of active group

    hi guru's we have requirement of greying out a particular field of active screen group say for eg: LOOP AT SCREEN.     if screen-group1 EQ 'PUR' OR screen-group1 EQ 'SAL' OR screen-group1 EQ 'FIN'.       screen-input = 0.     ENDIF.     MODIFY SCREEN

  • Sorting and disposing of dead mail

    I am currently working for a NPO which has massive mail outs. We need to sort through the mail and remove from our mailing list, mail that bounces or is dead. It would also be great to better manage unsubscriptions as well. Is there a method we can a