No backup loss of non system datafile how to open database

Hi
i lost my datafile with out backup how to open the database or how to backup database

Hi,
To prevent accidental lost of datafile make sure you backup your database by having suitable backup strategy.
To open the database you can follow the step described by chinar sir. For backup follow one strategy as a good practise.Check my below link for backup strategy:
http://rafioracledba.blogspot.com/2010/12/scheduling-rman-jobs-in-windows-server.html
Best regards,
Rafi.
http://rafioracledba.blogspot.com

Similar Messages

  • Recovery of lost non-system datafile

    Hello All,
    I have simulated a test environment where I have remove one of the non-sys datafile. For this first I have took the full database backup including archivelog and then remove the datafile from OS level. After that I manually created that datafile in mount state. I put the datafile in offline mode.
    When I'm trying to recover the datafile, Oracle shows me error.
    Please figure me out, where I was wrong.
    Below are steps which I had did.
    SQL> create tablespace TTS datafile '/u01/app/oracle/oradata/test/test.dbf' size 10M;
    RMAN> backup database plus archivelog;
    host $ rm /u01/app/oracle/oradata/test/test.dbf
    sql>startup mount
    sqll> alter database create datafile '/u01/app/oracle/oradata/test/test.dbf';
    sql> alter database datafile '/u01/app/oracle/oradata/test/test.dbf' offline;
    sql> recover datafile  '/u01/app/oracle/oradata/test/test.dbf';
    ORA-00279: change 1080487 generated at 11/06/2012 11:51:50 needed for thread 1
    ORA-00289: suggestion :
    /u01/app/oracle/fast_recovery_area/TEST/archivelog/2012_11_06/o1_mf_1_13_%u_.arc
    ORA-00280: change 1080487 for thread 1 is in sequence #13
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    AUTO
    ORA-00308: cannot open archived log
    *'/u01/app/oracle/fast_recovery_area/TEST/archivelog/2012_11_06/o1_mf_1_13_%u_.arc'*
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    Thanks,
    rohit gupta
    http://dbarohit.blogspot.in/

    Hello John/Azar,
    Thanks!
    I can restore/recover the datafile from database full backup.
    But in my test case, I want to recover the datafile by first creating it manually(that what I have showed).. and then trying to recover it.
    I'm doing this because I have read about this steps.
    John,
    I've already tried to recover that datafile with RMAN, but no luck.
    Below are the error message.
    RMAN> recover datafile 6;
    Starting recover at 06-NOV-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=39 device type=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: SID=38 device type=DISK
    allocated channel: ORA_DISK_3
    channel ORA_DISK_3: SID=40 device type=DISK
    starting media recovery
    archived log for thread 1 with sequence 17 is already on disk as file /u01/app/oracle/fast_recovery_area/TEST/archivelog/2012_11_06/o1_mf_1_17_89kdrhjx_.arc
    archived log for thread 1 with sequence 18 is already on disk as file /u01/app/oracle/fast_recovery_area/TEST/archivelog/2012_11_06/o1_mf_1_18_89kphznq_.arc
    unable to find archived log
    archived log thread=1 sequence=13
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 11/06/2012 15:07:53
    RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 13 and starting SCN of 1080487
    regards,
    rohit gupta
    http://dbarohit.blogspot.in/

  • How to open database when datafile of nonsystem tablespace is missing?

    Hi,
    I am runnig 10gR2 on Windows XP SP 2
    Here my situation:
    My db is running in archive mode. I have taken backup of my tablespace 'ocp' by using RMAN with Database Control.
    Now I shutdown the db and removed datafile which belongs to the tablespace.
    My problem is now that I am able to start db in mount only.
    I can not open it and getting folowing error:
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
    ORA-01110: data file 6: 'C:\ORACLE\ORADATA\ORCL\OCP.DBF'
    My question is:
    How to drop the tablespase and run backup?
    Thanks

    Hi, you must mount the database and put the datafiles in offline mode
    ALTER DATABASE DATAFILE '<full_path_file_name>' OFFLINE DROP
    After you must open the database.
    Luck.
    Have a good day.
    Regards.

  • OS 10.4, non-Apple keyboard, How to open the CD tray?

    How do you open the CD tray with OS 10.4 and a non-Apple keyboard?
    F12 used to work but this was changed in 10.4 to trigger the stupid Dashboard.

    F12 does not work for me, but I accept that if other people can make it work, then I need to figure out why it doesn't work for me. Glad to know there is a solution on the horizon.
    Regarding adding the CD eject control to the Finder menu; that's a great idea. I should have remembered that was possible. For reference, the location of that menu add-on and others is:
    System/Library/CoreServices/Menu Extras

  • Non Archivelog Database- Undo Data files Deleted-How to Open Database ??

    I am doing some test in Lab server.
    Unforunately Undo Tablespace datafiles are deleted from the server.
    Database is running in No archivelog Mode and I don't have any any type of Backup.
    Last one week, i was doing only read only work with database. So Not really concern how much i will loose.
    The biggest worry is How can I open the database with existing datafiles ????
    Regards ,
    Sumit
    Edited by: Sumit2 on Aug 27, 2009 12:57 PM

    If any active transaction or data needed by any of the session for rollback then it will be difficult to recover those transaction and your database data will be in inconsistent state. As you were doing only read only activity you can safely recover the database.
    just comment undo tablespace and undomanagement parameters init.ora file and restart the database.
    Once database is up create new undo tablespace and assigning it as default undo tablesapce tablespace.

  • HT202794 I have no credit card and ican,t  take the billing system so how could open my App Store

    How. Could I use my App Store without credit card or monthly billing

    There are instructions on this page for how to create a new account without giving credit card details : http://support.apple.com/kb/HT2534 - if you don't follow those instructions when creating it then credit card details will need to be entered before the account can be used in the store to download any item.
    e.g. https://discussions.apple.com/message/24321860#24321860
    If you want to use the same email address on the new account then try changing the address on that one via the Store > View Account menu option on your computer's iTunes or via http://appleid.apple.com

  • How to Delete Non-System State Backups in Windows 2008R2

    Hello,
    I am running a Windows 2008R2 server which uses Windows Server Backup to do the backups. We are using the backup-tool to create non-system state backups of the data-directories on this machine. The backup is done on a dedicated disk connected through iscsi
    (to a Synology box). This backup disk has become too small and we have now replaced the Synology box with a bigger one. Here i created a new LUN again for the backup purposes.
    Now for my question; The wbadmin.exe tool supplied with W2008R2 does not offer a way to delete the old backups. I know that in Win2012 (which we we also have running) I could add the new iscsi location and then (when enough backups are available on the new
    target) use wbadmin.exe delete backup  to delete the old non-system state backups; e.g.
     wbadmin delete backup -version:08/07/2013-21:00
    This (very undocumented) feature of Windows 2012 and higher works quite nice and is exactly what i am searching for on the W2008R2 machine; a way to delete the old backups (and under the hood delete the corresponding snapshots)
    I've done quite a bit of research and it should be possible to do something similar in 2008 but then manually, The howto is described in the following link: http://blogs.technet.com/b/filecab/archive/2009/06/22/backup-version-and-space-management-in-windows-server-backup.aspx .
    Basically it describes that you should use DiskShadow.exe to remove e.g. the oldest snapshot with a  command like :
    Delete shadows OLDEST \\?\Volume{7fc1871b-2e1f-11dd-a339-001e4fb7af35}
    Windows Server backup (wbadmin) should then on the next run 'see' this deletion and update its list of available backups:
    "You can perform the same steps manually to delete backups on demand. However, the backup catalog update cannot be done manually and it will happen instead during
    the next backup."
    I've done this on our box and it indeed removes the shadows from the list. However, in the Windows Backup 'dashboard' it still lists the backups as available. Also after a new backup has finished (according the the article this is when it should 'update'
    its backup catalog). When I try to restore a backup from a date that i just removed it gives a nice message that this is impossible because the snapshot is not available (duh :)) ;
    Unable to browse Local disk. The shadow copy of the backup stored on the backup destination cannot be found.
    So it seems that the aforementioned method works; it removes the snapshot and frees diskspace, but it doesn't update the Windows Backup catalog. As a result the management tool (GUI) still lists the backups which are no longer available! How can i change
    this? Is there any way to do this? I found one article which mentions that the Dashboard bases its screen on the Windows Logs and not on the actual VSS snapshots available:
    http://forum.wegotserved.com/index.php/topic/23757-start-afresh-with-server-backup/ (WHS) In my situation however this seems unlikely because i don't have any logs that date back as far as my backups go.
    In my opinion this is a real bug and it leaves us with a in-consequent backup schema. Does anyone have similar situations or even a solution to my problem?
    Kind Regard, Martin

    Hi Mandy,
    Yes! I think i got my answer and I now get how windows backup works in Windows 2008 :-) It turns out that I dismissed some suggestions a bit too soon. The answer lies in the command mentioned earlier : 
    Wbadmin delete catalog
    This command does delete all the backups from a perspective of the Windows Backup UI, but leaves the VSS snapshots intact. This means that the backups are still available, but you just can't restore them with the User Interface. In order to 'update' the
    UI with the current available snapshots (which you can list with diskshadows list shadows all), you have to re-add the existing media on which the backups took place using the Wizard of the UI. It will then inform you that existing backups are available and
    if you want to keep these for restore purposes. If you click 'yes', and THEN perform a backup ... All the current available backups will be shown in the User Interface :-) 
    So for my steps taken to change from one iscsi (iscsi1) to another (iscsi2):
    - Add the 2nd iscsi target with the Windows Backup UI
    using Backup schedule , Modify backup -> [desired options] => Add more backup destinations -> iscsi2
    - Remove the 1st iscsi target with the Windows Backup UI
    using Backup schedule , Modify backup -> [desired options] => Remove current backup destinations -> iscsi1
    - Run some backups on the new destination. Old restore points are now still available. When enough restore points are available on the new volume iscsi2 start deleting old data from iscsi1 as follows:
    - Run diskshadow
    diskshadow
    - list all the current snapshots
    list shadows all
    - remove all the snapshots of iscsi1  (repeat until all shadows are gone of iscsi1)
    delete shadows oldest \\?\volume{yourvolumeid}\
    - delete the windows backup catalog
    wbadmin delete catalog
    - Restart the windows backup UI and re-add your schedule on the new volume iscsi2. It will now ask if you want the keep the existing data for restore purposes; click yes. 
    - After the next backup only the backups of volume iscsi2 will be listed and everything is fine ! 
    I Hope my post will help others with similar questions. It was quite a search before I understood the way it works. Basically as long as your VSS snapshots are still available and listed by diskshadow you still have the backups and you will be able to get
    this in sync with the steps above (delete schedule and re-add originating targets containing the snapshots). After the next backup the UI will update itself. 
    (In my case someway along the way I lost my originating snapshots, but because I already had my new backup set it didn't bother me; It kept me from having to delete all 510 old backups :) with diskshadow)
    Regard, Martin

  • 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!

  • How to make entry for transit loss in the system

    Hello to all,
    I am having an issue with one subCon material.
    Suppose,
    Material A is the product required of 3000 MT Qty.
    SubCon vendor have sent that qty, but there is a transit loss of 500 MT.
    How to make entry for this transit loss in the system.
    regards,
    Anisha

    correct me if i am wrong-
    ur scenario is
    for making material A ,
    3000 MT of material B required.
    but for producing A vendor uses 3500MT of B
    solution : if this ia the case then u can overwrite the value of B at GRN from 3000MT to 3500MT.
    OR
    ur scenario is -
    u require material A of 3000MT
    vendor sends u 3000MT
    but actualy u recieve 2500MT
    and u have to pay for 3000MT as per bill
    solution : if this is ur scenario then.
    prerequisite-activate direct posting to G/L and material at MIRO
    Path - SPRO->MM->LIV->activate direct posting to G/L and material at MIRO.
    now procedure is -
    step 1) do GR for 2500MT
    step2) in LIV pay to vendor for 3000MT for that put 500 qty in material tab and the relavent amount.
    in this way loss in transite will be book on inventory.
    regards,
    sujit

  • System datafile block corruption - no backups and database in NOARCHIVELOG mode

    Dear All,
    Database version - oracle 11.1 Enterprise
    OS - RHELinux 5.8
    What are the options of recovering from physical block corruption when there are no backup available to perform block media recovery?
    V$DATABASE_BLOCK_CORRUPTION reports two segments corrupted (please see attached image for details).
    1 table in system datafile - sys_fba_barrierscn
    1 index - (applicaiton index)
    What are my options?
    I know there is a possibility that the database will not restart after a shutdown due to corruption in system tablespace.
    Database is in noarchivelog mode. So online backups are not possible and there aren't any full backups either.
    I am thinking of below,
    1. Run dbms_repair with fix_block_corruption. - Still database startup might fail?
    2. Shutdown the database and take offline full backup with RMAN MAXCorrupt option.
    Appreciate your suggestions and advises.
    Thanks
    Stefan

    Thanks Sybrand,
    Agree with your first two suggestions .
    Also scheduled a expdp job tonight. (Only backup like thing they had was a expdp cron, but until today all the large tables were failing due to small undo_retention).
    Yes. Flashback is not used. So hopefully it will not affect the a database restart i guess?
    Related to dbms_repair, I was referring to - http://askdba.org/weblog/2010/08/physical-corruption-ora-1578-part-3/.
    Where DBMS_REPAIR.FIX_CORRUPT_BLOCKS and DBMS_REPAIR.SKIP_CORRUPT_BLOCKS used.
    Which i think will not use any redo.
    Thanks
    Stefan

  • How can I reduce size of the SYSTEM datafile?

    Hi All,
    I recently installed Oracle 9i Enterprise addition on Windows XP Pro. Everything went smoothly. However, I foolishly created a database with large space requirements in the default tablespace (SYSTEM) and this caused the datafile for the SYSTEM tables space to grow to 8 Gig. I dropped the tables and tried to shrink the datafile with the 'alter database datafile resize' command but the command failed indicating that the tablespace had data byond the reize amount. However, this is claerly not true since the OEM indicates that the tablespace is only 4% utilized.
    How can I reset the high water mark for the SYSTEM tablespace so that I can resize the datafile?

    Hi All,
    I recently installed Oracle 9i Enterprise addition on Windows XP Pro. Everything went smoothly. However, I foolishly created a database with large space requirements in the default tablespace (SYSTEM) and this caused the datafile for the SYSTEM tables space to grow to 8 Gig. I dropped the tables and tried to shrink the datafile with the 'alter database datafile resize' command but the command failed indicating that the tablespace had data byond the reize amount. However, this is claerly not true since the OEM indicates that the tablespace is only 4% utilized.
    How can I reset the high water mark for the SYSTEM tablespace so that I can resize the datafile? at one time (perhaps during the install) the extents may have been used and although you see only 4% used those extents have been allocated nonetheless.
    you'll have to rebuild the db if you can't resize the system ts
    to reset the high water mark you would have to truncate the system tables, don't think you want to do that
    steve

  • 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....

  • System copy : how to backup your rfc connections, partner profiles ...

    system copy : how to backup your rfc connections, partner profiles (we20) amd ports in IDOC processing (we21) ???
    Hi forum,
    if you want to copy your production system to your quality assurance system you can export users and later on reimport
    it to save work. That's good.
    But how about RFC connections, partner profiles and ports in IDOC processing ? Anyway to export and reimport it later on ?
    Thank you for your help.
    Kind regards
    O.Eggert

    Hi forum,
    in the meantime I found out how to handle this matter. May be this solution is not very elegant, but it works.
    As for RFC-Connections there are several tables beginning with rfc. e.g., rfccheck. But 4 of it only differ from one system
    to the next. These are rfcdes, rfcdoc, rfcattrib and rfccheck. What I did is the following : I used
    brspace -u sapsr3/<password> -f tbexport -t "RFC3"
    and quite simply exported these tables. Then I deleted some of the RFC-Connections, both ABAP and TCP/IP. After reimporting
    what I exported before all these destinations were availlable again. As for ABAP the password had to be reentered but this
    can be avoided, too. Have a look at transaction /nsecstore. The tables behind it are RSECTAB and RSECACTB, rspectively.
    Export it after having exported the rfc* tables and reimport it after having reimported the rfc* tables. Very important : enable
    the option "consistent export" !!!
    It worked this way although there might be better and more elegant solutions.
    As for transaction we20 check sap not 182172.
    Hope that I could be of profit to this forum.
    Kind regards
    Olaf Eggert
    p.s.
    import command : brspace -u sapsr3/<password> -f tbimport.
    Them select what you exported before.

  • How to reduce oracle system datafile

    hi
    i m working on data base whose system datafile file is around 5GB in size
    n around 200 user in it.
    i have aleady tarnsfer all user and its segment to another table space.
    but when i pass this command: 'alter database datafile 'c:\oracle\oradata\system01.dbf' resize 4000m;
    then its display error message that;ora03297 .
    plz help me how i will reduce my system datafile size
    Thanx

    hi use this query to check the HWM of a tablespace associated datafile;
    col fname format a75 justify c heading 'FileName'
    col totsiz format 999,999,990 justify c heading 'Total|(KB)'
    col avasiz format 999,999,990 justify c heading 'Available|(KB)'
    col pctusd format 990 justify c heading 'Pct|Used'
    comp sum of totsiz avasiz on report
    break on report
    select
    total.file_name fname,
    total.bytes/1024 totsiz,
    nvl(sum(free.bytes)/1024,0) avasiz,
    (1-nvl(sum(free.bytes),0)/total.bytes)*100 pctusd
    from
    dba_data_files total,
    dba_free_space free
    where
    total.tablespace_name = 'TABLESPACE_NAME'
    and total.tablespace_name = free.tablespace_name(+)
    and total.file_id=free.file_id(+)
    group by
    total.tablespace_name,
    total.file_name,
    total.bytes;
    Kamalesh JK

  • How do I delete non-system ringtones?

    I bought some ringtones from Verizon. 
    The message arrived, I saved as Ringtone per instructions (I've had the phone for 1 day now)
    I saved some more than once - how do I remove the duplicates? 
    For that matter where do non-system ringtones 'live'?

    Hello grok!
    Have you checked in your music files? You should be able to see the ringtone with the rest of your music, and long press to delete.
    Hope this helps!
    Katie H
    VZW Support
    Follow us on Twitter @VZWSupport

Maybe you are looking for

  • Open New Tab Question

    Recently when I click the Open New Tab button the page has some of my Bookmarked sites shown, nothing but a blank rectangle and the name of the link. Not sure why this started happening or how to fix it

  • Out of the box execution plan for Payables EBS 11.5.10

    Has anyone else experienced performance issues with the out of the box execution plan for the Payables subject area for Oracle EBS 11.5.10? Our incremental ETL for this particular subject area is taking 8+ hours. I understand that there are several f

  • RFC - JDBC fault message

    Hello All, Probably this has been discussed before, but i am unable to find a direct solution till now. I have a synchronous RFC to JDBC scenario, where data is inserted from R/3 to JDBC and JDBC returns with the count of records it inserted in oracl

  • Opalis Folder Monitor Stops Working

    We have a Folder Monitor object in a policy that works fine for a while when you starts it and notices changes made to files under the monitored folder, and does what it is supposed to do. However, after an undetermined amount of time (sometimes hour

  • Reinstalled drivers Recording is distorted. Playback of existing files fine. SoundBlaster Live

    I got a new motherboard an ABIT Socket A with an AMD 3000+ processor and gig of memory. After installing drivers 'Li'veDrvUni-Pack(ENG).exe' and also after installing patch 'Li'veDrvPack_Patch.exe' recording is distorted. The input level is not clipp