How to recover system datafile???

Hello,
Do you guys have any idea how to recover SYSTEM datafile if the datafile is missing and it's not being back up ?
suhaimi
[email protected]

Dear Suhaimi,
The only possible way of recovering the SYSTEM tablespace (and its datafiles) is from the Hot or Cold backups taken earlier. For ensure complete recoverability, I advise you to run your database in ARCHIVELOG mode and take regular online backups.
Ciao!

Similar Messages

  • How to recover offlined datafiles

    Hi,
    While starting up the db im getting the below error
    ORA-01113: file 12 needs media recovery
    ORA-01110: data file 12:
    I checked the status of the datafiles and i found that the two datafiles(12 & 13) where in recovery mode.
    I checked the alertlog and found that
    1) Datafile 12 went offline on 13th Nov 2008
    Thu Nov 13 12:28:24 2008
    Errors in file c:\oradba\admin\bdump\db_ckpt_4528.trc:
    ORA-01171: datafile 12 going offline due to error advancing checkpoint
    ORA-01110: data file 12: '\\network drive\TAB_5.ORA'
    ORA-01115: IO error reading block from file 12 (block # 1)
    ORA-27072: skgfdisp: I/O error
    OSD-04006: ReadFile() failure, unable to read from file
    O/S-Error: (OS 6) The handle is invalid.
    2) Datafile 13 went offline on 27th Jan 2009
    Tue Jan 27 23:31:49 2009
    Errors in file c:\oradba\admin\bdump\db_ckpt_4568.trc:
    ORA-01171: datafile 13 going offline due to error advancing checkpoint
    ORA-01110: data file 13: '\\network drive\TAB_6.ORA'
    ORA-01115: IO error reading block from file 13 (block # 1)
    ORA-27072: skgfdisp: I/O error
    OSD-04006: ReadFile() failure, unable to read from file
    O/S-Error: (OS 6) The handle is invalid.
    I tried recovering datafile 12 and it is archive for archivedlogs from Nov 13, but i have archive logs only from 22nd Jan 2009.
    I can recover the datafile 13 using this archive logs.
    Can anyone tell me how to recover the datafile 12 ????
    Thanks in advance.
    Prem.

    thanks for your reply
    .>>>> I tried recovering datafile 12 and it is asking for archivedlogs from Nov 13, but i have archive logs only from 22nd Jan 2009 <<<<<
    Im having archivelogs only from 22nd jan 2009.
    Since the datafile 12 was offline from Nov 13 2008 therewont be any transactions on the datafile.
    So is there any way to bring it online and to the current SCN.
    Thanks,
    Prem

  • Recovering System datafile with no backup.

    Hello Everyone,
    I am simulating a scenario where in i lost a system datafile and i dint take any back up. The database i sin archive mode.Now i wanted to recover the database.I have googled everywhere and tried different things,but i am not able to recover it. can anybody please provide me a step by step process to recover the system datafile. DO we have to recreate the database?
    Thanks,
    ranz_bad

    ranz_dba wrote:
    Hello Everyone,
    I am simulating a scenario where in i lost a system datafile and i dint take any back up. The database i sin archive mode.Now i wanted to recover the database.I have googled everywhere and tried different things,but i am not able to recover it. can anybody please provide me a step by step process to recover the system datafile. DO we have to recreate the database? ranz_bad,
    :Please make sure that you read the docs before attempting to create issues as most of the issues are very well documented in the docs. For the recovery of the System tablespace, you need to have a backup and if you have only one datafile in the system tablespace or first dataflie of the System tablespace is lost, you can't get it through the create datafile clause.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/statements_1004.htm#i2079942
    HTH
    Aman....

  • How to recreate system datafile

    Hi all,
    I am trying to restore an Oracle v.8.0.4 database. My problem is that i don't have the system datafile. All the other files (control files, log files, datafiles) exist.
    I have a full export dump of the DB which is one month old. Is it possible to recreate the system datafile?
    Thank you in advance
    Yiannis

    Hi,
    I have a full export dump of the DB If you want restore a database with a dump, the only one way is to pre create a database (as Neil suggested).
    Nicolas.
    read this other post about system tablespace missing :
    Re: System datafile is deleted, Urgent help needed!!
    Message was edited by:
    N. Gasparotto

  • How to recover a datafile in recovery mode

    Hi,
    We have a datafile that's 0 bytes in size and is in recovery mode. I see that the datafile is showing as available in dba_data_files but in v$datafile, it's showing the status as recover. This is in Production and the tablespace has been in this mode since last november. We are not able to offline drop the datafile as it is in recovery mode. How can this be corrected without bringing the instance down? Any thoughts?
    Thanks.

    I would definitely contact Oracle support for something like this on my production database.
    Here are some ideas, but some will require some production downtime to complete.
    1) Export everything that is in the tablespace that contains the datafile. Drop the tablespace including contents, create the tablespace and import everything back in......Not a good solution but it is a solution...of course there are a lot of things to consider like triggers, foreign keys and similar. This should be tested a lot.
    2) Create logical standby with corrected structure and switch to logical standby for production when complete. This will take a lot of work and testing on a test system.
    3) Another possibility would be to move tables within this tablespace to a new tablespace and then drop the old tablespace. (Performance hit but safe and no down time).
    4) If indexes then drop and recreate new indexes (Performance hit but safe and no down time.)
    Once you get everything cleared out of the tablespace you should be able to drop it including contents and storage.
    Of course I would try any thing I do out on a test environment before doing anything to my production environment.
    Regards

  • How to recover system from new hdd T410

     Hello,
    please, help me to recover my system.
    I have a new HDD and trying to recover my system from "Lenovo_recovery" partition. Partition has been copped from old HDD.
    1) I have chcked there are all files in "Lenovo_Recovery".
    2) installed trial version windows 7
    3) installed  "Recue and Recovery" but id does not offer anything
    so, I am not able to recover from here.
    4) I have checked also to recover from blue button "ThinkVantage" but the same is there, it open dialog and say somthing like "Revocery functionality have been removed ... "
    So how can I have my system? I still using trial one.
    Node: my old system is windows 7 pro, but current one is windows 7 ultimat.
    Thanks.
    Solved!
    Go to Solution.

    When you open rescue and recovery there should be a window that opens that has menu options at the top of the window.   Backup, restore,  advanced, and help.  Does this window open?  If it does, hold your cursor over restore and there should be 2 options, restore your system and rescue files.  Choose restore your system.  The next window that shows up will show more options.  You want to choose the top one, restore my entire hard drive.  Unless you want to restore from a backup.  Is your backup in E:?  
    I am a little confused.  Are you trying to restore windowsw 7 pro or windows 7 ultimate?  What was on the old hard drive and what version was the trial version.  Is C: drive windows 7 pro.  Where is ultimate?  
    Dave 
    T430u, x301, x200T, x61T, x61, x32, x41T, x40, U160, ThinkPad Tablet 1838-22R, Z500 touch, Yoga Tab 2 Windows 8.1, Yoga Tablet 3 Pro
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    If someone helped you today, pay it forward. Help Someone Else!
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • (URGENT) How to recover tablespace/datafile from an old backup ?

    Hello,
    I'm in charge of installation of IBM Websphere Commerce with an Oracle DB.
    When I installed this software I do a "shutdown immediate" and copy all the files (data, ctl & redo) in an other directory a month ago.
    I have some issues on a specific tablespace and I'd like to recover this tablespace so that my tablespace will be in the same state a month ago.
    When I try "recover automatic tablespace data" Oracle restored and reload all the logs.
    How can I restore with that old tablespace and find the content of september or is it possible to restore a tablespace without reload the redo logs ?
    Thanks for any precious help.
    Guillaume

    If it was a complete set of files after shutdown immediate, you can mount that database on some other server with same structure and check the data in the tablespace. I dont see a need to load the old tablespace in the current database just to see some values.
    By restoring the old tablespaces, you might even run into some referentials (if any) problem.

  • Recover corrupted datafile

    I created database from cold backup and db is up and running. After recovery identified some datafiles has corruption with dbfsize.
    Could anybody please help me how to recover corrupted datafile from cold backup?

    sorry in my first message I mentioned I verified with dbfsize. It is not dbfsize it is dbv than I found some files has corruption. I db verified original backup datafiles those file are fine no corruption. The problem is while copying the files to the new location some corruption happened. Now I will try to copy original file and dbv first. Now I to recover bad datafiles? I need some steps. Thanks in advance.
    Please provide your Oracle version, OS , the actual ORA- errorsOracle version is 9.2.0.7.0
    OS SunOS 9
    when I run dbv I got big list of errors copied portion of it....
    $cat DEEFF.log |more
    DBVERIFY: Release 9.2.0.7.0 - Production on Fri Feb 27 00:20:14 2008
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    DBVERIFY - Verification starting : FILE = /u01/oracle/DEEFF.dbf
    Page 1024 is marked corrupt
    Corrupt block relative dba: 0x1f400400 (file 125, block 1024)
    Bad header found during dbv:
    Data in bad block -
    type: 6 format: 2 rdba: 0x1ac580dd
    last change scn: 0x0004.f72fdb41 seq: 0x1 flg: 0x04
    consistency value in tail: 0xdb410601
    check value in block header: 0xb656, computed block checksum: 0x0
    spare1: 0x0, spare2: 0x0, spare3: 0x0
    Page 1025 is marked corrupt
    Corrupt block relative dba: 0x1f400401 (file 125, block 1025)
    Bad header found during dbv:
    Data in bad block -
    type: 6 format: 2 rdba: 0x1dc6d021
    last change scn: 0x0002.f8bcf84b seq: 0x1 flg: 0x06
    consistency value in tail: 0xf84b0601
    check value in block header: 0x5983, computed block checksum: 0x0
    spare1: 0x0, spare2: 0x0, spare3: 0x0
    Page 1026 is marked corrupt
    Corrupt block relative dba: 0x1f400402 (file 125, block 1026)
    Bad header found during dbv:
    Data in bad block -
    type: 6 format: 2 rdba: 0x1e415f13
    last change scn: 0x0004.3e23e1dd seq: 0x1 flg: 0x04
    consistency value in tail: 0xe1dd0601
    check value in block header: 0x502f, computed block checksum: 0x0
    spare1: 0x0, spare2: 0x0, spare3: 0x0
    Message was edited by:
    Gud

  • How to recover datafile in Oralcle 10g...? No backups and No archive log

    All,
    I need to recover the datafile 2 which is for undo tablespace and it is in recover state and i need to recover the data files now .
    But the bad thing is We dont have backup at all and we dont have archive logs (Archive log disabled in the database)...
    In this situation how can i recover the datafile ...?
    SQL> select a.file#,a.name,a.status from v$datafile a,v$tablespace b where a.ts#=b.ts#;
    FILE# NAME STATUS
    1 /export/home/oracle/flexcube/product/10.2.0/db_1/oradata/bwfcc73/system01.dbf SYSTEM
    *2 /export/home/oracle/logs/bw/undotbs01.dbf RECOVER*
    3 /export/home/oracle/flexcube/product/10.2.0/db_1/oradata/bwfcc73/sysaux01.dbf ONLINE
    4 /export/home/oracle/datafiles/bw/bwfcc73.dbf ONLINE
    5 /export/home/oracle/datafiles/bw/bwfcc73_01.dbf ONLINE
    SQL> archive log list;
    Database log mode No Archive Mode
    Automatic archival Disabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 4940
    Current log sequence 4942

    Hi,
    First of all you must Open a ticket with oracle Support and explore the options
    You can use this note to fix it:
    RECOVERING FROM A LOST DATAFILE IN A UNDO TABLESPACE [ID 1013221.6]
    If you is Unable to Drop Undo tablespace Since Undo Segment is in Needs Recovery
    You can Upload the following trace file while opening the ticket
    SQL>Alter session set tracefile_identifier='corrupt';
    SQL>Alter system dump undo header "<new of undo segment in recover status>";
    Go to udump
    ls -lrt *corrupt*
    Upload this trace file
    Also upload the alert log fileRegards,
    Levi Pereira
    Edited by: Levi Pereira on Nov 29, 2011 1:58 PM

  • How to diagnose and recover corrupted datafile?

    DBMS: Oracle v.9.2.0.1.0
    OS: MS Server 2003 R2 SP2 x86
    Problem: Database begin to stop every few minutes. I start to check and found that one and the largest of two datafiles is probably corrupted. Now I have no idea how to repair that datafile.
    Firstly, I look into the alert.log and see that^
    Mon Jul 29 11:02:03 2013
    SMON: enabling tx recovery
    Mon Jul 29 11:02:03 2013
    Database Characterset is CL8MSWIN1251
    replication_dependency_tracking turned off (no async multimaster replication found)
    Completed: alter database open
    Mon Jul 29 11:02:42 2013
    KCF: write/open error block=0x3c009f online=1
         file=4 F:\ORACLE\ORADATA\ORCL\USERS_1.ORA
         error=27069 txt: 'OSD-04026: Invalid parameter passed. (OS 3932319)'
    Mon Jul 29 11:02:42 2013
    Errors in file c:\oracle\admin\orcl\bdump\orcl_dbw0_3604.trc:
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-01114: IO error writing block to file 4 (block # 3932319)
    ORA-01110: data file 4: 'F:\ORACLE\ORADATA\ORCL\USERS_1.ORA'
    ORA-27069: skgfdisp: attempt to do I/O beyond the range of the file
    OSD-04026: Invalid parameter passed. (OS 3932319)
    DBW0: terminating instance due to error 1242
    Instance terminated by DBW0, pid = 3604
    Dump file c:\oracle\admin\orcl\bdump\alert_orcl.log
    So, I turned archivelog on and open database but it continue to stop when somebody calls to some DB objects.
    Then, I check v$headers:
    SQL> select  file#, status, recover, fuzzy, tablespace_name, to_char(CHECKPOINT_CHANGE#), name from v$datafile_header;
      FILE# STATUS  REC FUZ TABLESPACE_NAME      TO_CHAR(CHECKPOINT_CHANGE#)              NAME
             1 ONLINE  NO  YES SYSTEM               9679059694215                            F:\ORACLE\ORADATA\ORCL\SYSTEM.ORA
             2 ONLINE  NO  YES UNDO                 9679059694215                            F:\ORACLE\ORADATA\ORCL\UNDO.ORA
             3 ONLINE  NO  YES USERS                9679059694215                            F:\ORACLE\ORADATA\ORCL\USERS.ORA
             4 OFFLINE YES YES USERS                9679059697551                            F:\ORACLE\ORADATA\ORCL\USERS_1.ORA
    For some reason, USERS in USERS_1.ORA is offline and marked as requiring recovery.
    I tried to recover datafile, but get some errors:
    SQL> recover datafile 'F:\ORACLE\ORADATA\ORCL\USERS_1.ORA';
    ORA-00283: recovery session canceled due to errors
    ORA-01115: IO error reading block from file 4 (block # 3932319)
    ORA-01110: data file 4: 'F:\ORACLE\ORADATA\ORCL\USERS_1.ORA'
    ORA-27069: skgfdisp: attempt to do I/O beyond the range of the file
    OSD-04026: Invalid parameter passed. (OS 3932319)
    That have looking creepy for me.
    I tries to verify datafile:
    dbv file=F:\oracle\oradata\orcl\users_1.ora blocksize=16384 logfile=F:\oracle\oradata\orcl\dbvlog.txt
    The result of verification was unexpectedly clean:
    DBVERIFY: Release 9.2.0.1.0 - Production on Tue Jul 30 05:03:26 2013
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    DBVERIFY - Verification starting : FILE = F:\oracle\oradata\orcl\users_1.ora
    DBVERIFY - Verification complete
    Total Pages Examined         : 3932320
    Total Pages Processed (Data) : 94051
    Total Pages Failing   (Data) : 0
    Total Pages Processed (Index): 19378
    Total Pages Failing   (Index): 0
    Total Pages Processed (Other): 3753059
    Total Pages Processed (Seg)  : 0
    Total Pages Failing   (Seg)  : 0
    Total Pages Empty            : 65832
    Total Pages Marked Corrupt   : 0
    Total Pages Influx           : 0
    Now I have that offlined tablespace in the probably not corrupted datafile and no idea how to get DB into the normal state.
    Upd: I did database validation by RMAN:
    RMAN> BACKUP VALIDATE DATABASE;
    Starting backup at 30-JUL-13
    using target database controlfile instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=11 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current controlfile in backupset
    input datafile fno=00004 name=F:\ORACLE\ORADATA\ORCL\USERS_1.ORA
    input datafile fno=00002 name=F:\ORACLE\ORADATA\ORCL\UNDO.ORA
    input datafile fno=00003 name=F:\ORACLE\ORADATA\ORCL\USERS.ORA
    input datafile fno=00001 name=F:\ORACLE\ORADATA\ORCL\SYSTEM.ORA
    channel ORA_DISK_1: backup set complete, elapsed time: 00:33:06
    Finished backup at 30-JUL-13
    That would been check my DB and put information of corrupted blocks to a V$DATABASE_BLOCK_CORRUPTION, but no! There's nothing:
    SQL> select * from V$DATABASE_BLOCK_CORRUPTION;
    no rows selected
    Nevertheless, database doesn't open, until I switch bad datafile to offline^
    SQL> alter database datafile 'F:\ORACLE\ORADATA\ORCL\USERS_1.ORA' online;
    Database altered.
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01113: file 4 needs media recovery
    ORA-01110: data file 4: 'F:\ORACLE\ORADATA\ORCL\USERS_1.ORA'
    Message was edited by: Llywelyn.yv

    Does it diferents from below?
    RMAN> BACKUP VALIDATE DATABASE;
    Starting backup at 30-JUL-13
    using target database controlfile instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=11 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current controlfile in backupset
    input datafile fno=00004 name=F:\ORACLE\ORADATA\ORCL\USERS_1.ORA
    input datafile fno=00002 name=F:\ORACLE\ORADATA\ORCL\UNDO.ORA
    input datafile fno=00003 name=F:\ORACLE\ORADATA\ORCL\USERS.ORA
    input datafile fno=00001 name=F:\ORACLE\ORADATA\ORCL\SYSTEM.ORA
    channel ORA_DISK_1: backup set complete, elapsed time: 00:33:06
    Finished backup at 30-JUL-13

  • How to recover my macbook pro system password

    how to recover my macbook pro system password??

    You don't, you set a new one
     Cheat sheet to help diagnose and fix your Mac

  • How to recover datafile.when control file auto backup is off

    hi friend
    i took hot backup of my database using following command
    rman>backup database;
    in my case controlfile auto backup is off.
    and i have lost my all controlfiles as well as datafiles except spfile.
    i have recovered control file using dbms_backup_restore package.
    know i am able to mount database using following command
    rman> startup mount;
    when i wrote following command
    rman> restore database;
    i got following error
    RMAN-06023: no backup or copy of datafile name found to restore
    enven i have backup of datbase.
    can anybody tell me how to recover datafiles in this case.
    thanking you
    sohail

    hi,
    I think you might have a problem here as the error from RMAN is described in the following metalink note
    Doc ID: Note:100565.1
    You should change you backup script to be something like
    rman {
    backup database include current controlfile;
    do you have any earlier backups of your database?
    regards
    Alan

  • How to recover to keep tablespaces working after datafile deleted on OS

    hi,
    given situation like this :
    1. OS HPUX 11i
    2. Oracle 9.2 or 10g
    3. tablespace AAA have a datafile AAA.dbf
    4. AAA.dbf has been deleted by a guy on OS by accident
    5. it's a production database , i have other copy of product running elsewhere
    6. we can forget about the data on this tablespace , just wanna make sure new data will still be inserted
    I know there is a magic way involving file descritpor to recovery the file on OS if it was still opened by the process
    seems it only works on linux or solaris , since HPUX don't have /proc
    here is what i had done ,
    1. offline drop the tablespace
    2. export tablespace AAA from other DB without data but everything else
    3. import them into DB without AAA now
    only problem seems application couldn't insert into the tables ,Object priveledge not granted
    i'd checked the export file , those object grant SQL are right there , i just don't know why import hasn't worked
    so my question is
    if it were you ,
    1.do you have any better idea of how to recover
    2.if you any dirty and fast way of recovery File on HP box , appreciate that too
    3.can you image why import doesn't seems getting priveledge imported ? my DB version 9.2.0.4
    many thanks
    br/ricky

    thanks , aman ,lenord and you all
    looks like i'm the sinful :)
    to clear it up ... it's not me who did it , one of our guys , same thing ,hum ~~
    he deleted the backup , cause it's full and auto backup is not ongoing , and he's trying to make things right
    he deleted the datafile , cause i told him to rename the file to another space , coz vgdb is full , screw up that too ..
    yeah , it'a real production database ~~ , so ,if anybody learn somethings on this , credit on me , :)
    the version is 9.2.0.4 , but gonna move to 10g soonor or later , so put it there , to see if in 10g , we can do better ..
    tablespace created like five years ago , so , apply all archive since would be crazy ~
    this database have 500 Tablespaces , and thoudsands of tables , and the one lost is a important one ,
    but data in it , we can bear loss
    what i do , is offline drop the tablespace , and import the tablespace without data from other production DB ...
    only it didn't work out so well with object grant , and application still not inserting ...
    why i post it here , is i wanna learn better ways in this kind of situations ...
    i thought my way is not good enough
    anway , i'll look at all your suggestions
    thanks
    br/ricky
    Edited by: zs_hzh on Sep 15, 2008 10:12 PM

  • Etc/system file corrupted how to recover it?

    etc/system file corrupted how to recover it?

    with boot -a you can only specify new /etc/system during boot , e.g. /dev/null
    but if you want to recover it , you can do it from live kernel ( if you didn't reboot after /etc/system was corrupted )
    with
    echo ::system|mdb -k
    or from previous crash dump simmilar way
    cd /var/crash/`uname -n`
    cho ::system|mdb unix.[x] vmcore.[y]

  • How to recover/refresh the discovery system if system crashed.

    Hi,
    Can someone tell me how to recover the Discovery Sysm if the system crashed? Any recovery image from HP?  Does regular full system backup is good enough for recovery the whole system (Java + ABAP)? Thanks for your help.
    James

    You should back it up just like any other SAP system.  HP does not provide a new image if something happens.

Maybe you are looking for

  • Itunes 7 and outlook 2002

    I upgraded to itunes 7 and now it says i need outlook 2003 inorder to synch my contacts. does anyone know if there is a fix, I don't want to purchase outlook 2003 and reverting back to older version of itunes seems like the only answer i can find. th

  • Report designer - Saving to portal

    In report designer, how to I save a view to portal? Does the save to ROLE option save to a portal role?

  • How to troubleshoot runtime error (termination with short dump)

    hi all, i'm new comer on crm. and i got a problem when i accessed tx: segment builder (runtime error: termination with short dump). i've tried to troubleshoot this problem by set the java2 SDK GUI path on the client side.but it still didn't work.then

  • How to make it look like the actors are watching TV

    Hi, I am looking to add an effect in Adobe Premiere Pro CC to make it look like the actors are watching TV in the dark. Just a soft pulsating, bluish-white light that may vary throughout. Does anyone know how to do this? I've tried scouring the inter

  • Licencias SAP b1

    Buenas, alguno podria indicarme los diferentes tipos de licencias que hay y su precio aproximado, mi partnet me indica que todas profesional sin preguntarme siquiera para que tipos de usuarios las necesito. Muchas gracias Un saludo