DB always upward after losing a data file

DB version: 10 gr 2
OPERATING SYSTEM: AIX 6.0

To test a scenario of recovery, I backed up the entire database and deleted the users01.dbf data file. I thought that the PB will crash. There can be no.
select file_name, tablespace_name from dba_data_files where tablespace_name='USERS'; 
which showed that exitsts file! I tried a few insertions, updates and REMOVE with commit. They all work! You can even create table instructions worked.

Then from
But deleted data file accessible data
and
Removed datafile always online?
I got to know that he is the expected behavior in UNIX environments.

My questions:

Question1.
After a fall users01.dbf file, I had done several LMD with COMMITs and CFDS. where the process of Dbwriter wrote these changes when there was a control point?


Question 2.
Database became aware of the missing data file only when I put the datfile offline and then tried to put online.
SQL> alter database datafile 'u07/data/oraqa215/users01.dbf' offline;

Database altered.        


SQL> alter database datafile 'u07/data/oraqa215/users01.dbf' online;
alter database datafile 'u07/data/oraqa215/users01.dbf' online
*
ERROR at line 1:
ORA-01157: cannot identify/lock data file 4 - see DBWR trace file
ORA-01110: data file 4:'u07/data/oraqa215/users01.dbf' 
Why is the DB still even after DB learned that users01.dbf was absent?

Some important points in my opinion:

Terminology: Apparently, you do not "drop" the file with a SQL command. Instead, you removed it with an OS command, which is a major difference. Select on v$ datafile and DBA_DATA_FILES will always show the file still being included in the database -has nothing to do with handles still open etc but is normal behavior.

Availability: The instance not crushed after your deletion - what is very good and no reason to complain. Your users will appreciate that, especially those who do not need the tablespace, associated with this file. If DML is going through, it will record the vectors of change in online newspapers, used later in the recovery process to find all the transactions are committed. In other words: you will lose any committed transactions ins spite of your deletion of the file. Again, it is very good and no reason to complain.

Kind regards
Uwe

http://uhesse.WordPress.com

Tags: Database

Similar Questions

  • need to restore my database after losing a data file on my hard drive

    Hi all
    I installed oracle in my E: drive and create a tablespace (INDEX02) where it is placed the file data on the D: drive, I then installed linux on the c of the storage data file D: drive is lost, how can I recover the data? my database is in an archivemod

    Thanks for help

    the only solution you have:

    shutdown immediate ;
    startup mount ;
    ALTER DATABASE DATAFILE 'FD:\INDEX01.DBF' OFFLINE;
    alter database open ;
    
  • I'm losing my data files to all readers of my system, including the system drivers on a regular basis. How can I fix it?

    NTLDR and missing hall.dll

    I'm losing my data files to all readers of my system, including the system regularly drivers please give me a solution, we have tried to many third-party tools to recover the data, but lost in vain.we have tried with the coordination team of endpoint symentec but unable to fnd the solution. They mentioned contact us the technical team at microsoft for the solution.

    kindly reply me as soon as possible

    MD Sumairullah Sharief
    Mobile no.: 8790999880

    Hello

    I suggest you run the Design Checker (Sfc.exe) system files on the computer and check if it helps.

    Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe)
    http://support.Microsoft.com/kb/310747

     

    You can send us the log file in Windows Live SkyDrive:

    http://explore.live.com/Windows-Live-SkyDrive

  • You can download the final version of windows 8 (when it comes out) without losing the data files or programs on your computer?

    I think the update to windows 8, but I have no way to save my program files. I am running windows 7 Home premium.

    You can choose to store the data, but the applications will need to re-installed.

    We recommend that you back up all data on external hard drive too.

    You can give a try to preserve your programs installed (works for some programs only):
    -Copy all the data related to an application program.
    -Take note of the directory structure as seen currently
    -In addition, if possible, check the registry entries for this application, using a registry editing tool
    -After installation of Windows 8, try to paste application data into the same kind of directory structure.
    -Still, if possible, add registry entries for this application program.
    His laborious route that may work for some simple programs.

    Better is to have all the files Setup for the available applications.
  • Rename a data file after restoring

    Hello
    I entered incorrect name for a data file by mistake.

    the value of newname for datafile 145 to ' / PATH/datafile1.dbf ';
    the value of newname for datafile 146 to ' / PATH/datafile2.dbf ';

    But that's the real name of the two

    DataFile 145 /PATH/datafile2.dbf
    DataFile 146 /PATH/datafile1.dbf


    Trying hard I did:

    change the database file rename ' / PATH/datafile1.dbf ' to ' / PATH/datafile2.dbf ';
    change the database file rename ' / PATH/datafile2.dbf ' to ' / PATH/datafile1.dbf ';

    But I got this error after alter renaming:
    ERROR on line 1:
    ORA-01511: Error renaming data/log files
    ORA-01523: cannot rename the data file ' / PATH/datafile2.dbf '-record already in the database


    How can I return the names after the two data files are restored and renamed.

    Published by: Paul Vidal on May 29, 2012 15:14

    the value of newname for datafile 145 to ' / PATH/datafile1.dbf ';
    the value of newname for datafile 146 to ' / PATH/datafile2.dbf ';

    But that's the real name of the two

    DataFile 145 /PATH/datafile2.dbf
    DataFile 146 /PATH/datafile1.dbf

    Trying hard I did:

    change the database file rename ' / PATH/datafile1.dbf ' to ' / PATH/datafile2.dbf ';
    change the database file rename ' / PATH/datafile2.dbf ' to ' / PATH/datafile1.dbf ';

    But I got this error after alter renaming:
    ERROR on line 1:
    ORA-01511: Error renaming data/log files
    ORA-01523: cannot rename the data file ' / PATH/datafile2.dbf '-record already in the database

    How can I return the names after the two data files are restored and renamed.

    His as an example, you have two glasses of water, you want to exchange the water in each glass, then you need extra glass here.
    Thus, rename one of the files with a different name.

    change the database file rename ' / PATH/datafile1.dbf ' to ' / PATH/datafile1_dummy.dbf ';
    change the database file rename ' / PATH/datafile2.dbf ' to ' / PATH/datafile1.dbf ';
    change the database file rename ' / PATH/datafile1_dummy.dbf ' to ' / PATH/datafile2.dbf ';

    But make sure that you have files at the level of the BONE also...

  • Anyone have a suggestion on how to back up the data files of a FORMER BACK 5 machine with 3.5 1.44 FDD and restore these files system H/D in XP or Vista

    I tried copies of files, but there are too many files to fit on a single disc. and go file-by-file will always there are probably 1000 data files. All are DOS program generated with 8 letter names.

    Take the hard drive BACK machine, connect it to an adapter of drive external hard USB and which connect to the XP or Vista system.

  • How to move data files from drive C to drive E in MS SQL Server 2005 used for hyperion

    Hi all

    We have installed Hyperion with MS SQL Server 2005. Hyperion 11.1.1.3 works well.

    But in the SQL server data files will register in C drive only. But we have to back up the files in drive E.

    I used the Attach and Detach method to move files from C drive to E drive.

    After that, I am reconfiguring the EPM system. but I get errors in the configuration.

    Now I get the planning of database failed when Confiuring planning.

    Configuration of data source interface has failed in the Configuration of EPMA.

    Please suggest the best way to make this scenario.


    Thank you

    Mady

    Why do you need to reconfigure after that move data files, if it is done properly it should be without data loss.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • How can I recover my database after losing the file system data.

    Hello world

    How can I recover my database in the following scenario.

    1 offline full backup made 2 days ago. database was offline archive.
    2. today, I lost my file system data and also lost my all archived files.
    3. I started the database, but the following error is generated.

    SQL > startup
    ORACLE instance started.

    Total System Global Area 135338868 bytes
    Bytes of size 453492 fixed
    109051904 variable size bytes
    Buffers 25165824 database bytes
    Redo buffers 667648 bytes
    Mounted database.
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: ' D:\ORACLE\ORADATA\ORCL\SYSTEM01. DBF'

    4. I copied the data backup system file and wrote the following statement, to recover the database.

    SQL > recover datafile 1;
    ORA-00279: change 2234434 September at 2009-07-15 10:52:10 needed to screw 1
    ORA-00289: suggestion: C:\B\ARC00051.001
    ORA-00280: change 2234434 thread 1 is in sequence #51


    Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}


    now, I have no file to archive. are there opportunities to recover the database?


    R e g a r d s,

    Asif Iqbal
    Software engineer,
    Lucky Tex, Karachi,
    In Pakistan.

    are there opportunities to recover the database?

    Yes

    Restore a full backup taken 2 days ago offline.

  • My reminderfox module missing after firefox update. How can I reinstall without losing any data?

    my module of Fox reminder disappeared after updating firefox. I can install this add-on again, but then I lose all the data that existed before the update. How can I reinstall without losing any data?

    Back up your ReminderFox data before reinstalling. This is stored in a separate file in the folder of the parameters active Firefox (also known as your Firefox profile folder). You can find this file by using a button on the page of troubleshooting information. Either:

    • Help > troubleshooting information
    • type or paste everything: in the address bar and press Enter

    In the first table, click on "view file". Look for a folder named reminderfox and copy it somewhere safe.

    More information: http://www.reminderfox.org/documentation-faq-troubleshooting/#r5

  • Files corrupted win 7; can I fix it without losing any data?

    I have a HPp7 - 1137c.  6gig ram.  Win7.  I corrupted files win 7; can I fix it without losing any data?

    Hello:

    I don't know why some programs that you have installed have disappeared after the repair process.

    Yes, the method of reinstalling windows without losing files is correct as long as you don't let windows not delete or format the partition.

    What happens is that it creates a Windows.old folder and you can copy all your files from windows.old to the new facility.

    However, you will need to reinstall all your programs, because there will be only a simplified version of Windows 7 installed with no program.

    This is the method I use (I still have my files backed up just in case), but it's so easy to go in the windows.old folder and transfer my files and internet favorite folders from the windows.old folder to the new installation of windows.

  • After TDE (Transparent Data Encryption) data are always considered as is

    Hello

    I encrypted column in the table by using TDE (Transparent Data Encryption), but the data in the column is always displayed as it is. How can I verify that the data has been encrypted. What is the use if tha data are visible even after encryption.

    SELECT * from user_encrypted_columns where table_name = 'OA_TRAN_STOCK ';

    TABLE_NAME COLUMN_NAME ENCRYPTION_ALG SALT INTEGRITY_ALG

    OA_TRAN_STOCK RDPK_KEY AES 128-bit key no. SHA-1
    OA_TRAN_STOCK RDPK_BIN_FILE AES 128-bit key no. SHA-1

    Select rdpk_key, RDPK_BIN_FILE from OA_TRAN_STOCK;

    RDPK_KEY RDPK_BIN_FILE(Hexadecimal value as inserted in table)

    11111 22222-33333-44444-55555 1000011ABCDAAACCC0011110CCBADEF
    11111 21222-33333-44444-55556 1000011ABCDAAACCC0011110CCBADEE

    Help, please.

    583003 wrote:
    Tubby thanks for the info.

    But the data is stored as it is in the table. How can I check/confirm that the data is encrypted with proof. Shoding only the metadata that the column was perhaps not enough for the customer.

    Where exactly in the database, I can get this info or how to prove to the client that the data is encrypted, because he sees data as it is in the database.

    http://docs.Oracle.com/CD/E11882_01/network.112/e10746/asotrans.htm#BABEBFBA

    Obviously not something you want to run on a production system, but something that you can easily run in a test/development to demonstrate to your customers environment.

    If they worry about someone in your database hacking and questioning, steal data in this way, then this isn't the solution that you want to implement (or he is not the only solution you would need to implement). As noted in the links I posted before, TDE is designed to protect you against someone steal your support (data files).

    See you soon,.

  • I forgot my password and got my iphone disabled after several attempts. its display to connect to itunes, but I am unable to connect to itunes too. How can I unlock my phone without losing any data? Help, please

    I forgot my password and got my iphone disabled after several attempts. its display to connect to itunes, but I am unable to connect to itunes too. How can I unlock my phone without losing any data? Help, please

    In short - you can't

    IF you have a computer with iTunes on which you did a prior backup - the phone will be recognized and iTunes offer todo backup before it clears your device - that - except if you know the access code the content cannot be saved

  • Copy the files to a flash to another drive "after a certain date only.

    It is possible to copy all the files to a flash drive to another flash drive "after a certain date only' uses the function of 'Windows Explorer '?  In this way I would like to avoid having to delete all target flash player before updating for the latest directories and files.

    Hello

    This can be done using Windows Explorer, you will need to create a program that runs the task. I suggest you to ask your question in the MSDN forums for assistance on this issue.

    http://social.msdn.Microsoft.com/forums/en-us/categories

  • Copy the files created after a certain date

    How can I copy files that were created after a certain date?

    Thank you

    Hello

    Start - computer or Windows Explorer, you can navigate to a specific folder, then right-click on
    name (or) control position - MORE - Date created column - OK - the box, and then click the Date
    Created column that will align the content of the folder by date ascending or descending as you wish
    (click again to change the order). Then you can click on the 1st file in a sequence and hold SHIFT key and
    Click on the last file in the sequence you want - this will highlight the sequence - then right-click -.
    where in the region of high-lighted and the COPY - navigate to where you want to copy and then right-click
    on paste. To copy a group of files not in a sequence, hold down the CTRL key and click on the ones you want
    COPY that will highlight the files - right-click anywhere in the region high-lit - and then COPY
    Navigate to where you want to copy and click straight on and PASTE.

    --------------------------------

    You can search for files created after a certain date.

    Tips for finding files
    http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-finding-files

    How to use advanced search in Vista Options
    http://www.Vistax64.com/tutorials/75451-advanced-search.html

    ----------------------------------------------------------

    Win Key F opens advanced search

    Searching in Windows Vista, part 1
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-1-secrets-of-the-search-box

    Part 2
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-2-Start-menu-and-control-panel-search-tips

    Part 3
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-3-using-advanced-search-for-those-hard-to-find-files

    I hope this helps.

    Rob Brown - MS MVP: Bike - Mark Twain said it right.

  • Automatically deleted from the storage of the DSO after data files using the command cp ASMCMD... why?

    I installed Oracle database on Linux 6.6, Virtualbox 11.2.0.1.0.

    I used ASM for database storage.

    When I want to perform a backup in offline mode. I stop the database data files and copy to the filesystem as follows (for example).

    ASMCMD [+] > cp +DATA/ora11g/datafile/system.270.883592533/u01/app/oracle

    The files copied with success and also any other data files, logs and controlfiles files. Then, I also rename all the files in editing mode.

    After that, I used the backup files to start the oracle of backup (storage non - ASM with new pfile edited)

    Open successfully from a backup database.

    But when I want to use old spfile to open the database for the storage of the DSO again, a few errors have occurred as no data files in ASM storage.

    I check the contents of the ASM storage with ASMCMD commands. And realize that there only spfile and controlfile located ASM storage and other files: data files and online redo logfiles automatically deleted.

    Why the data files and log files deleted ASM storage? Is this normal? I have no delete all files of the DSO.

    It is actually deleted from the use of the cp command?

    Exactly what we say.  Data in ASM files are OMF (Oracle managed files).  The RENAME translates the DSO by deleting the original file.

    Hemant K Collette

Maybe you are looking for

  • Lost recovery key and need to retrieve the current data

    Yes. It's a really bad situation.In order to regain sync I have to generate a new recovery keyBut the recovery key generator will mangle the data synchronized. Is it possible to recover the data? I was not able to sync with Firefox on Android and a f

  • Updating an iPod touch 3.1.3

    How do I update ipod touch 3.1.3 when it was new in 2010? Did not open my purchase til this spring.

  • PEAP EAP/TLS, PORTEGE with WinXP sp2 Tablet Edition problem

    We have: Rev AiroNet350 Cisco with WPA - EAP: Freeradius with EAP/TLS and PEAP, tablet PC PORTEGE with WinXP sp2 configuration. This problem discribed in http://wiki.freeradius.org/index.php/FAQ#PEAP_Doesn.27t_WorkPerhaps to solve this problem we nee

  • lenovovhid root for Lenovo z500

    Hi all I bought Lenovo z500. After teacher win 7 x 64 installation I couldn't install a driver. 'unknown currency' ID: root lenovovhid. Please can sombody help? Thank you Lekso

  • Wireless HP Pavilion g6 problem

    Hello I have HP Pavilion g6-1002sx Notebook PC model: LP295EA and the serial number: [personal information] and broudcom bcm94313hmgb map at first I couldn't run using windows 7 so I instaled new copy of windows 7, but not good its f12 led to stay or