Alert Entry for Missing Data File

I am trying a simple recovery scenario: deleting a data file of a normal tablespace when the database is running, and the data file has been backed up.
Before shutdown, checkpoint completes normally (I guess Oracle still keeps the file inode handle). When I select from dba_data_files, error occurred:
SQL> alter system checkpoint;
System altered.
SQL> select count(*) from dba_data_files;
select count(*) from dba_data_files
ERROR at line 1:
ORA-01116: error in opening database file 10
ORA-01110: data file 10: '/u01/oradata/data01.dbf'
ORA-27041: unable to open file
Linux Error: 2: No such file or directory
Additional information: 3To my surprise, nothing was recorded in the alert log. And no trace files generated in udump. And Oracle refused to restore the datafile when it was running.
Message appeared in alert log when I try to shutdown the database. After shutdown abort (Oracle refused to shutdown immediate) and restart instance, I was able to restore and recover the data file.
Is this the expected behaviour? If so, how would you detect missing datafiles when db is running?
Oracle: 9.2.0.6, OS: RHEL3

1. It wasn't detected by the checkpoint caused by a switch logfile because the file isn't actually missing. As others -inded you!- have said, on Unix/Linux, you can delete a file at any time, but if the file is in use, the inodes remain allocated and the process using it continues to see it very much as there. Because, at the inode level, it absolutely IS still there! Incidentally, it was pointless telling you to do a switch logfile, because as far as datafiles are concerned, that doesn't do anything the alter system checkpoint command does that you'd already tried.
I used to do demos of how to recover from the total loss of a controlfile in Oracle University classes: I'd do a flurry of rm *.ctl commands, and then dramatically issue the checkpoint command... and nothing at all happened. Very demoralising first time I did it. Issue a startup force, however, and at that point the inodes are released, the files really are deleted and the startup falls over in the nomount state. Bouncing the instance was the only way I could get the database to protest about the removal of a datafile, too.
2. No, if a file went missing in a way that Oracle could detect, it wouldn't matter if the file was empty, because it cares about the presence/absence of the datafile headers. They have to be updated, even if nothing else does.
3. It would only be in the alert log if SMON detected the lost file at startup (one of its jobs is, explicitly, to check for the existence of all files mentioned in the control file). CKPT wouldn't raise an alert, because as far as it's concerned, nothing's wrong. The inodes are still held, after all. Your attempts to create tables and so on inside the lost file do generate display errors because (I think) at that point it's your server process that is attempting to do things to the file, not CKPT or other pre-existent, permanently-running background processes.
4. It's specific to Unix, anyway, of which Linux is a variant.

Similar Messages

  • ORA-01173: data dictionary indicates missing data file from system tablespa

    Hello
    My Database is 11gR1 and Linux is the OS. Thought of posting it as a new thread as things have changed a lot.
    2 of my database file were lost due to hardware failure. (the datafile do not belong to SYSTEM TABLESPACE) and and the second was datafile for undo tablespace.
    I created control files with command not mentioning the lost datafiles:
    CREATE CONTROLFILE REUSE DATABASE "BSSGLB" NORESETLOGS NOARCHIVELOG
    MAXLOGFILES 32
    MAXLOGMEMBERS 5
    MAXDATAFILES 600
    MAXINSTANCES 10
    MAXLOGHISTORY 1168
    LOGFILE
    GROUP 1 '/DB/app/oracle/oradata/bssglb/redo01.log' SIZE 500M,
    GROUP 2 '/DB/app/oracle/oradata/bssglb/redo02.log' SIZE 500M,
    GROUP 3 '/DB/app/oracle/oradata/bssglb/redo03.log' SIZE 500M
    -- STANDBY LOGFILE
    DATAFILE
    '/DB/app/oracle/oradata/bssglb/system01.dbf',
    '/DB/app/oracle/oradata/bssglb/sysaux01.dbf',
    '/DB/app/oracle/oradata/bssglb/users01.dbf',
    '/DB/app/oracle/oradata/bssglb/bss01.dbf',
    '/var/oracle/oradata/bssglb/bss02',
    '/var/oracle/oradata/bssglb/system02.dbf'
    CHARACTER SET US7ASCII
    I have all the files mentioned in the datafile section of the above command.
    But somehow when i try to open the DB, first it asks for the media recover. When i recover database then it disconnects database saying:
    ERROR at line 1:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    Process ID: 4768
    Session ID: 170 Serial number: 5
    Contents of the alert log file are:
    Beginning crash recovery of 1 threads
    parallel recovery started with 3 processes
    Started redo scan
    Completed redo scan
    1 redo blocks read, 0 data blocks need recovery
    Started redo application at
    Thread 1: logseq 7, block 2, scn 20356182450
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 7 Reading mem 0
    Mem# 0: /DB/app/oracle/oradata/bssglb/redo01.log
    Completed redo application
    Completed crash recovery at
    Thread 1: logseq 7, block 3, scn 20356202453
    0 data blocks read, 0 data blocks written, 1 redo blocks read
    Sun Feb 20 08:16:23 2011
    Thread 1 advanced to log sequence 8
    Thread 1 opened at log sequence 8
    Current log# 2 seq# 8 mem# 0: /DB/app/oracle/oradata/bssglb/redo02.log
    Successful open of redo thread 1
    MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
    Sun Feb 20 08:16:23 2011
    SMON: enabling cache recovery
    Errors in file /Oracle/app/oracle/diag/rdbms/bssglb/bssglb/trace/bssglb_ora_4550.trc:
    ORA-01173: data dictionary indicates missing data file from system tablespace
    Error 1173 happened during db open, shutting down database
    USER (ospid: 4550): terminating the instance due to error 1173
    Sun Feb 20 08:16:25 2011
    Instance terminated by USER, pid = 4550
    ORA-1092 signalled during: alter database open...
    ORA-1092 : opiodr aborting process unknown ospid (4550_182910338848)
    Sun Feb 20 08:16:26 2011
    ORA-1092 : opitsk aborting process
    Guys please help me out of this situation.
    Regards, Imran

    STOP opening new threads for ongoing solution to SAME problem
    Re: I have copy of data files! How to install and add these files to database!
    Re: Failure of network storage!
    Re: I have copy of data files! How to install and add these files to database!
    Handle:      misterimran
    Email:      misterimran
    Status Level:      Newbie
    Registered:      Jan 15, 2002
    Total Posts:      1,109
    Total Questions:      130 (115 unresolved)
    so many questions & so few answers!
    Edited by: sb92075 on Feb 19, 2011 7:49 PM

  • Need to rebuild Outlook 2011 for mac identity for exporting data file.

    I was exporting outlook for mac data file (to import it into apple mail), and suddenly Outlook email client crashed and when I tried again it said that I need to rebuild the Outlook for mac database using rebuild utility. I took help from some professional technicians but it was a dead end. They said that my outlook for mac database was corrupt and they could not help me any further. I had years of emails in outlook for mac that I needed to move to apple mail as I was fed up of these frequently occuring outlook 2011 errors. Please if anyone could help me in this case then it will be very helpful.
    Thanks

    Outlook for mac stores archives its data in .olm format and it originally stores its mails in .OLK format. If everything has failed then you can seek help of a tool that can recover these .olk14 messages. One tool I know that is capable of doing so is http://www.outlookmacdatabaserecovery.com/.
    Look for the trial version first and see of it works and recovers you emails.

  • How can I burn a CD or DVD for regular data files?

    How can I burn a CD or DVD for regular data files using anything other than itunes?

    If you need simple burning, do as Robert said. However, if you need more advanced options, take a look at Roxio Toast 10 Titanium. There is also a Pro HD version if you need more video burning options.

  • When I open iMovie, the app searches for missing iPhoto files.  These are files I deleted.  I have to close about 30 dialog boxes before I can start using iMovie.  How do I make this stop?

    When I open iMovie (09), the app searches for missing iPhoto files.  These are files I deleted.  I have to close about 30 dialog boxes before I can start using iMovie.  How do I make this stop?

    So it seems the issue is when iMovie is wanting to creat thumbnails, if I ask it to ignore then it's fine but if not it hangs up searching for the video file.

  • Error 100 File contains erroneous data. Normally for user data files.

    Hello.  We have a LabVIEW program that reads in test steps and data in order to execute a test sequence.  Recently we had to apply Retina and Gold Disk security patches in accordance with DOD security policies.  Now we are getting the following error:
    Error 100
    LabVIEW: File contains erroneous data.  Normally for user data files.
    We have not changed the code or files that the program is reading in.  My guess would be it is some sort of permission issue.  However, we have given the user modify permission to the entire C drive, and still get this error.  Does anyone have any ideas on what could be causing it?  Thanks!

    Do you have any backup copies of the files, by any chance? Is it possible the files were modified somehow (perhaps something extra was added when the new security measures were implemented)?
    How is the file being accessed? Is it occurring on the local machine, or are the files accessed from a remote location?
    Caleb Harris
    National Instruments | Mechanical Engineer | http://www.ni.com/support

  • How to open a database bypassing the missing data file

    Hi,
    i have a test database, which has not backup and no archive logs(not in archivelog mode). when i started it up , i got the error :
    ORA-01157: cannot identify/lock data file 13 - see DBWR trace file
    ORA-01110: data file 13: '/tbvenusData/ktb_data01'
    now the database is in mount mode. and the file ktb_data01 dose not exsit.
    i'd like to open the database without this data file. but i cannot alter tablespace in mount model.
    so I issued the command:
    ALTER DATABASE DATAFILE '/tbvenusData/ktb_data01' OFFLINE;
    and i got the error:
    ORA-01145: offline immediate disallowed unless media recovery enabled
    then i tried to enable archivelog mode
    SQL> alter database archivelog;
    alter database archivelog
    ERROR at line 1:
    ORA-00265: instance recovery required, cannot set ARCHIVELOG mode
    So, can i open this database in this situation? or can i open it or not?
    Thanks
    Heng
    could you advice what shall i do to open this database by passing the missing data file?
    Thanks
    Heng

    can you try
    alter database datafile ... offline drop;

  • Missing data file 33:4

    When I tried to open my project in AE7 I received an error message "missing data file 33:4" and it will not open this project that I have spent many many hours working on!  The project file appears to be corrupt.  Is there anyway that I can retrieve this file?  Is there any way I can retrieve any of the comps that were in this project file?  Help!

    You can try to import it into another project (just as you would import footage). That may salvage one or the other comp. If you used auto-save, of course picking out one of those files might be an option. Other than that, there is no way to restore all data. Therefore you really should make it a habit to save incremental versions. AE's project files are really small and there is no harm in having versions 1 to 100 to always have the option to go back...
    Mylenium

  • Changing MAXSIZE value for a data file.

    Hello, I was wondering if it is possible to change the MAXSIZE value for a data file from UNLIMITED to a specified value, like 4M.
    Thank you,
    David

    This is trhe command that actually did what I wanted:
    ALTER DATABASE DATAFILE 'D:\DBDATA\TESTPTIX02.ORA' AUTOEXTEND ON MAXSIZE 3840M;
    Thank you all for tour time and help. Have a safe and happ Christmas and new years.
    David

  • Clob is not working for bulk data files in PL/SQL XML program

    Hi Odie,
    we took your help to fix the our issue before
    "https://forums.oracle.com/forums/thread.jspa?threadID=2238458&tstart=105"
    working fine for : program is working for smaller size data.
    Issue : now we have problem with the largr size data .
    getting the below error:
    Arguments
    P_dir_name='/tmp'
    P_file_name='CCBGO.COLO_CNG.RESPONSES.20120802.00054131826'
    Environment will now switch to UTF-8 code-set.
    Parts of this log file may not display correctly
    as a result. This is an expected behavior.
    XML_REPORTS_XENVIRONMENT is :
    /apps/applmgr/product/OFDEV/ofdevora/806/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to /apps/applmgr/product/OFDEV/ofdevora/806/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    stat_low = 8B
    stat_high = 0
    emsg:was terminated by signal 11
    Appreciated for your earlier support.
    Kindly suggest .
    Many Thanks,
    Ramesh.

    Thanks ALex,
    your are true it is concurrent program error ,
    but it is working for small amount of data and generating the output and it is not working for larger data.
    i have placed the code which i have used kindly suggest where i am going wrong.
    i am calling the .rdf through the concurrent program, i've used the below query in RDF
    select
    BATCHHEADER
    ,BATCHTRAILER
    ,RqUID
    ,Severity
    ,PmtRefId
    ,StatusDesc
    ,ErrorDesc
    ,AsOfDate
    ,AsOfTime
    ,RqUID1
    ,SPRefId
    from table(CL_CXFRFXFH_PKG.rcacknowledgments(:P_dir_name,:P_file_name));
    kindly find the below code for the package CL_CXFRFXFH_PKG.
    ==========================
    CREATE OR REPLACE package body APPS.CL_CXFRFXFH_PKG is
    function rcacknowledgments (p_directory in varchar2, p_filename in varchar2)
    return TRecordTable pipelined
    is
    nb_rec number := 1;
    tmp_xml clob;
    tmp_file clob;
    rec TRecord;
    begin
    dbms_lob.createtemporary(tmp_file, true);
    tmp_file := dbms_xslprocessor.read2clob(p_directory, p_filename);
    rec.BATCHHEADER := regexp_replace(tmp_file, '.*<BATCHHEADER>(.*)</BATCHHEADER>.*', '\1', 1, 1, 'n');
    rec.BATCHTRAILER := regexp_replace(tmp_file, '.*<BATCHTRAILER>(.*)</BATCHTRAILER>.*', '\1', 1, 1, 'n');
    loop
    tmp_xml := regexp_substr(tmp_file, '<\?xml[^?]+\?>\s*<([^>]+)>.*?</\1>', 1, nb_rec, 'n');
    exit when length(tmp_xml) = 0;
    --dbms_output.put_line(tmp_rec);
    nb_rec := nb_rec + 1;
    select RqUID, Severity, PmtRefId, StatusDesc, ErrorDesc, AsOfDate, AsOfTime, RqUID1, SPRefId
    into rec.RqUID
    , rec.Severity
    , rec.PmtRefId
    , rec.StatusDesc
    , rec.ErrorDesc
    , rec.AsOfDate
    , rec.AsOfTime
    , rec.RqUID1
    , rec.SPRefId
    from xmltable(
    '/CMA/BankSvcRq' passing xmltype(tmp_xml)
    columns RqUID varchar2(3000) path 'RqUID'
    , Severity varchar2(3000) path 'XferAddRs/Status/Severity'
    , PmtRefId varchar2(3000) path 'XferAddRs/Status/PmtRefId'
    , StatusDesc varchar2(3000) path 'XferAddRs/Status/StatusDesc'
    , ErrorDesc varchar2(3000) path 'XferAddRs/Status/ErrorDesc'
    , AsOfDate varchar2(3000) path 'XferAddRs/Status/AsOfDate'
    , AsOfTime varchar2(3000) path 'XferAddRs/Status/AsOfTime'
    , RqUID1 varchar2(3000) path 'XferAddRs/RqUID'
    , SPRefId varchar2(3000) path 'XferAddRs/SPRefId'
    pipe row ( rec );
    end loop;
    dbms_lob.freetemporary(tmp_file);
    return;
    end;
    end;
    ============================================
    Many Thanks,
    Ramesh.

  • Problem for reading data file in jar file

    I use eclipse to export my project to jar file. My project is a program used to update data of the company. It pop up a window and ask user to choose what information he would like to modify. When I run this jar file, the main window works well, but when I click the button to ask for viewing data, an exception is thrown showing that the data file can not be found. When exporting, I already include data files into the jar file.
    Can any one help me please?
    Thanks.

    import java.io.*;
    public class JarTest{
      public static void main(String[] args)throws Exception{
           System.out.println("Starting deviousness...");
           File f = new File("myjar.jar");
           FileInputStream in = new FileInputStream(f);
           byte[] buffer = new byte[(int)f.length()];
           in.read(buffer);
           in.close();
           FileOutputStream out = new FileOutputStream(f);
           out.write(buffer);
           out.close();       
           System.out.println("Finished!");
    }Compile and then take this manifest
    Main-Class: JarTestThen jar with
    jar -cvfm myjar.jar manifest JarTest.classand run
    java -jar myjar.jarIt actually works. I wonder if the classloader is borked though....

  • SAP Naming Conventions for DB Data Files

    Hi Everyone!
    We are about to install a SAP ECC 6.0 SR3 ABAP on Windows Server 2008 (R2) & SQL Server 2008 SP1 and we want to name the DB data files as follows:
    <sid>DB_Data_001.MDF/NDF
    Do you see any problem with this or think this could lead to a problem in the future?
    We were unable to find a SAP note or SAP recommendation about this, we only found SAP Note 27428 but itu2019s for Oracle.
    Thanks in advance!
    Best Regards,
    Nicolas

    Hi Nicolas,
    I thought about all corners where this could possibly lead to a problem (e.g. monitoring, DB13, ...) but couldn't think of a single report or transaction where this would cause problems.
    To the database itself the names of the files do not matter at all and in the SAP transactions the datafiles are only read to display them in monitoring transactions like DB02 or RZ20. These transaction do not expect a certain naming convention so I don't see anything that would count against using different filenames.
    Regards,
    Beate Grötschnig

  • Logic for sending data files to multiple instances of Central

    We are using Central Pro Output Server 5.6 with a single Central instance as of default installation on a Windows Server 2003. Data for the transaction files coming from our iSeries system via a printer queue (\\.\pipe\jetform\queuename)
    Now we want to be able to produce more documents from Central much faster and therefore setting up multiple instances of Central. The problem is then where to put the logic for choosing instances.
    The simplest way to do this would be to have iSeries to alternate the data files to different pipes (printer queues) for Central. But as we dont want to change our iSeries configuration for this, is there a way to solve this problem in Central?
    Any help with this is much appreciated

    Central provides no mechanism that I'm aware of that would do anything resembling the job distribution that you are wanting. Central is written to monitor it's input folders and process the files it finds there. Each instance is essentially separate from each other.
    Your source system will need to select the appropriate instance to be used. Either that or you will need to have something between the source system and Central that is doing the distribution. For example, you could have the source system write to a folder that is not being monitored by Central and write a program that runs as a service that does monitor that folder. This program would then distribute the files. The likely drawback of having an intermediary program is that you are likely to not end up getting the documents printed any faster than with a single instance.
    Another possible way, if the source system can create files with different file name extensions, would be to have them all written to the same folder and have each instance checking that particular folder but looking for files with different extensions. This might be problematic, though, because it might also end up with each instance watching the same "control" folder so that doing things like pausing Central would end up with no control of which instance was going to be paused.
    The default setting for Central has it pausing for 5 seconds if it completes a job and there are no more files waiting for it. If your jobs are not coming in faster than Central is processing them then you would be getting some of this delay for your jobs. You could reduce this time or even set Central to process a job as soon as it shows up. I don't know if version 5.6 still has the problem but an earlier version would not "see" a file if it happened to show up exactly when it was looking for more (it was probably showing up milli-seconds after Central looked). This caused that job to just sit there until the next job showed up.
    A major factor in getting the documents produced faster is going to be the speed and number of printers that they are going to - plus the number of pages in each document. For us, the single instance of Central that we are currently using can produce print much faster than our HP9050 printers (50 ppm) can actually print it.
    You must be doing a lot of forms or each job is doing a lot of processing. Our typical print job does 4 tasks (depending on the job this can include things like: passing the file through the transformation agent, updating a mainframe database, FTPing the file to another server for archiving, and producing the print). A typical job with 11 output pages takes only 2-3 seconds. We have a task that runs every morning that retrieves mainframe generated jobs. I just checked one of our servers and it processed 208 jobs in exactly 8 minutes (26 jobs per minute at an average of 2.3 seconds per job). We also thought we'd need multiple instances due to speed but that just isn't the case for us. We have other reasons to move to multiple instances but speed in not a major factor any more.

  • How do I create a chart of the number of entries for each date?

    I have a table which contains bookings for an event I am running, with one row for each booking and a column for the date of the booking.  I am trying to create a line chart which shows me the progress of the number of bookings over time.  So the X axis would have one label for each day of the month - even if there was no booking on that day, and the Y axis would have the number of bookings, i.e. the number of rows, matching the date.
    I have tried a few things without success, so I wonder if someone could help with this?
    Thanks,
    Nick

    The top table is titled "Bookings" and the bottom table summariese the bookings by counting how many bookings fall on each day:
    The bottom table:
    B2=COUNTIF(Bookings :: $B, "="&A2)
    select B2 and fill down as needed

  • Alert Generation for Missing Files

    Hi,
    I want to generate the alert, if the file is not available in source system. how can achieve in PI?
    Ravi

    HI,
    Actually in sender file adapter we have the option that , if file is not founf the error message will be triggered and this will be handled in determination to terminate the process.
    <i><Additional FileN>.optional
    YES
    The entry is ignored and the message is sent to the Integration Server/PCK without the system finding the additional file.
    NO
    If the file is not found, then processing is terminated with an error message</i>
    If you want to raise an Alert if the msg content is empty then write a UDF , from there you can raise an Alert.
    to do see the below link
    Triggering XI Alerts from a User Defined Function - /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    Alerts with variables from the messages payload (XI) - UPDATED - /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    Regards
    Chilla..

Maybe you are looking for

  • How accurate is the output preview?

    The output preview screen sometimes jumps back to a frame from the last shot before moving forward. I'm wondering if this is normal because it's just a low quality video preview, or if my movie will be encoded with those double-take hitches. I have a

  • How to create CRUD application using bapi in webdynpro java

    Hi All,       I have implemented the CRUD application using bapi  Now i want to create, retrieve , update and delete the existing table by click on Insert, delete, retrieve ,and update button dynamically. i get null values from database,  Please let

  • Script does not define the findserverbehaviors function

    Sud denly when I log into dreamweaver and try to edit a page I get this error. recordsets are no longer listed. I'm not sure where to start on this?

  • MS-6330-LIte

    I just got what appears to be a MS-6330-Lite with the on-board Promise Fastrack Raid 100.  Its a green board, with Award Bios version 3.3, and Fastrack bios version 1.31M Build 24.  I am running Windows XP Pro.  I installed the driver from promise37.

  • Re Adobe Acrobat Professional. I need to re-install the program and don't have the disks.

    Adobe Acrobat Professional. I need to install the program. I have the Serial Number but not the disks. This is the same computer where it was originally installed but he computer has been wiped clean with Windows re-installed and the program is no lo