Restore & Recover SYSAUX datafile while DB up

Hi,
Due to data block corruption of SYSAUX, need to keep it offline then recover and make it online.
sql 'alter database datafile 2 offline';
restore datafile 2;
recover datafile 2;
sql 'alter database datafile 2 online';
Is it possible to do this operation while Database is up? or we need to keep it down?
BANNER
Oracle Database 11g Release 11.1.0.6.0 - 64bit Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for Linux: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
Thanks
Edited by: Nadvi on Jun 10, 2010 10:02 PM
Edited by: Nadvi on Jun 10, 2010 10:28 PM

Nadvi wrote:
Hi,
Due to data block corruption of SYSAUX, need to keep it offline then recover and make it online.
sql 'alter database datafile 2 offline';
restore datafile 2;
recover datafile 2;
sql 'alter database datafile 2 online';
Is it possible to do this operation while Database is up? or we need to keep it down?
BANNER
Oracle Database 11g Release 11.1.0.6.0 - 64bit Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for Linux: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
ThanksDear Nadvi
Why you don't perform Block Media Recovery on the corrupted data blocks using RMAN?
In the following example I show how you can recover corrupted data block in the SYSAUX tablespace. However, as you use Oracle 11g, you will use the following syntax:
RECOVER DATAFILE datafile_no BLOCK block)no Here's the example:
SQL> create user test identified by test;
User created.
SQL> grant dba to test;
Grant succeeded.
SQL> conn test/test
Connected.
SQL> create table tbl_test (name varchar2(10)) tablespace sysaux;
Table created.
SQL> insert into tbl_test values('test');
1 row created.
SQL> commit;
Commit complete.
SQL> SELECT header_block FROM dba_segments WHERE segment_name='TBL_TEST';
HEADER_BLOCK
        2939
SQL> select tablespace_name from dba_segments where segment_name='TBL_TEST';
TABLESPACE_NAME
SYSAUX
RMAN> backup database plus archivelog delete input;
[oracle@localhost ~]$ dd of=/u01/oracle/product/10.2.0/db_1/oradata/db1/sysaux01.dbf bs=8192 conv=notrunc seek=2939 <<EOF
corruption
EOF0+1 records in
0+1 records out
11 bytes (11 B) copied, 0.0182719 seconds, 0.6 kB/s
SQL> alter system flush buffer_cache;
System altered.
SQL> conn test/test
Connected.
SQL> select * from tbl_test;
select * from tbl_test
ERROR at line 1:
ORA-01578: ORACLE data block corrupted (file # 3, block # 2939)
ORA-01110: data file 3:
'/u01/oracle/product/10.2.0/db_1/oradata/db1/sysaux01.dbf'
RMAN> blockrecover datafile 3 block 2939;
starting media recovery
media recovery complete, elapsed time: 00:00:07
Finished blockrecover at 10-JUN-10
RMAN> exit
SQL> conn test/test
Connected.
SQL> select * from tbl_test;
NAME
testFor more information on Block Media Recovery, you can watch my Video Tutorial
http://kamranagayev.wordpress.com/2010/03/18/rman-video-tutorial-series-performing-block-media-recovery-with-rman/

Similar Messages

  • Expdp or exp fails since sysaux datafile is corrupted.

    Hi,
    I need to migrate data from 10g solaris to 11g Linux. Expdp would work for my case, however sysaux tablespace is corrupted, expdp fails with all options. This is test database and we don't have archivelog files, I cannot recover sysaux datafile. Any idea is appreciated.
    oracle@xnq1db01:~$ expdp system dumpfile=xnq1db01_full_%U.dmp directory=dumpdir full=y logfile=xnq1db01_full.log version=10.2 parallel=8 compression=NONE
    Export: Release 10.2.0.3.0 - Production on Sunday, 06 March, 2011 18:59:12
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Password:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    ORA-31626: job does not exist
    ORA-31638: cannot attach to job SYS_EXPORT_FULL_01 for user SYSTEM
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPV$FT_INT", line 389
    ORA-39077: unable to subscribe agent KUPC$A_1_20110306185925 to queue "KUPC$C_1_20110306185924"
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPC$QUE_INT", line 248
    ORA-25448: rule SYS.KUPC$C_1_20110306185924$81 has errors
    ORA-00376: file 3 cannot be read at this time
    ORA-01110: data file 3: '+XN_DATA/xnq1db01/datafile/sysaux.266.672960607'

    I had the same type of occurence. The following worked for me:
    1. Shutdown immediate
    2. Startup mount
    3. RECOVER DATAFILE 'sysaux tablespace file location/name'
    after recovery,
    4. Alter database open
    5. Alter tablespace sysaux online
    (I'd noted when I tried the old exp that one of the first messages displayed was that sysaux was offline)
    Disconnected and ran the expdp successfully.
    If you're not able to recover the datafile, exp/imp is probably your only other option.

  • How to recover SYSAUX

    How can I recover SYSAUX datafile?
    EM console is not working anymore since the SYSAUX is offline.
    Archiving is active
    Version 10g

    Hi,
    You say offline, maybe you only need to put it online.
    If not, try the following:
    1) connect / as sysdba
    2) select * from v$recover_file, did you see your SYSAUX's datafiles?
    Are you in archivelog mode? Check with the following:
    3) select log_mode from v$database, you have to see ARCHIVELOG

  • Recover from dropped SYSAUX datafile

    Trying to recover a DEV database without rebuilding it, but not hopeful at this point. Basically, someone dropped the SYSAUX (and a few other) datafiles, so now they are showing up in the database as MISSING0003 instead of the actual filename. There are no backups, but I want to drop the tablespaces (not SYSAUX) and in trying to do so, I'm getting an error about the SYSAUX tablespace for some reason. How can I rebuild or recover from the SYSAUX issue, since I cannot drop the SYSAUX tablespace, as it seems to be preventing me from dropping any of the other tablespaces that have missing datafiles as well. I really just need to recreate the tablespaces, but get the below error when I try to drop the schemas (with cascade) or the tablespaces (including contents).
    SQL> drop tablespace DATA001 including contents;
    drop tablespace DATA001 including contents
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 2
    ORA-00376: file 3 cannot be read at this time
    ORA-01111: name for data file 3 is unknown - rename to correct file
    ORA-01110: data file 3: 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\MISSING00003'
    ORA-06512: at line 19
    Any help to get past the first issue of dropping the non-SYSTEM tablespaces would be great, and any follow-up on how to rebuild/recreate/recover from the dropped SYSAUX datafiles would be appreciated as well.
    DB is 10gR2 on Windows.

    user4257171 wrote:
    Trying to recover a DEV database without rebuilding it, but not hopeful at this point. Basically, someone dropped the SYSAUX (and a few other) datafiles, so now they are showing up in the database as MISSING0003 instead of the actual filename. There are no backups,
    > DB is 10gR2 on Windows.
    Without backups you are not going to be able recover the dropped data files. Given that one of the tablespaces was the required SYSAUX tablespace you are most likely looking at a rebuild instead of a restore.

  • RAC instance, trying to recover UNDO datafile, RMAN gives RMAN-06054

    Hello all,
    This has been a troublesome instance..a quick bit of background. This was created awhile back by someone else, I inherited this 3 mode RAC clusterof instance1.
    I'm exporting out of one database (10G) into this instance1 (11G). When I was about to start the import..I found this instance wouldn't start. Turned out no backup had been going on of this empty instance. I backed up the archive logs to tape to free up the FRA..and things fired up.
    I began the import, and found a bunch of errors...basically tellling me that I couldn't access one of the undo tablespaces...datafile problems.
    I went to look and saw:
    SQL> select a.file_name, a.file_id, b.status, a.tablespace_name
         2 from dba_data_files a, v$datafile b
         3 where a.file_id = b.file#
         4 order by a.file_name;
         FILE_NAME FILE_ID STATUS TABLESPACE_NAME
         +DATADG/instance1/datafile/sysaux.270.696702269              2 ONLINE                SYSAUX
         +DATADG/instance1/datafile/system.263.696702253              1 SYSTEM                SYSTEM
         +DATADG/instance1/datafile/undotbs1.257.696702279            3 ONLINE                UNDOTBS1
         +DATADG/instance1/datafile/undotbs2.266.696702305            4 ONLINE                UNDOTBS2
         +DATADG/instance1/datafile/undotbs3.269.696702313            5 RECOVER               UNDOTBS3
         +DATADG/instance1/datafile/users.268.696702321               6 ONLINE                USERS
         +DATADG/instance1/l_data_01_01                              11 ONLINE                L_DATA_01
         +DATADG/instance1/s_data_01_01                               7 ONLINE                S_DATA_01
         +DATADG/instance1/s_data_01_02                               8 ONLINE                S_DATA_01
         +INDEXDG/instance1/l_index_01_01                            12 ONLINE                L_INDEX_01
         +INDEXDG/instance1/s_index_01_01                             9 ONLINE                S_INDEX_01
         FILE_NAME FILE_ID STATUS TABLESPACE_NAME
         +INDEXDG/instance1/s_index_01_02                            10 ONLINE                S_INDEX_01
    There is is, file #5.
    So, I went into RMAN to try to restore/recover:
    RMAN> restore datafile 5;
    Starting restore at 06-APR-10
    allocated channel: ORA_SBT_TAPE_1
    channel ORA_SBT_TAPE_1: SID=222 instance=instance1 device type=SBT_TAPE
    channel ORA_SBT_TAPE_1: NMO v4.5.0.0
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=222 instance=instance1 device type=DISK
    creating datafile file number=5 name=+DATADG/instance1/datafile/undotbs3.269.696702313
    restore not done; all files read only, offline, or already restored
    Finished restore at 06-APR-10
    RMAN> recover datafile 5;
    Starting recover at 06-APR-10
    using channel ORA_SBT_TAPE_1
    using channel ORA_DISK_1
    starting media recovery
    RMAN-06560: WARNING: backup set with key 343546 will be read 2 times
    available space of 8315779 kb needed to avoid reading the backup set multiple times
    unable to find archived log
    archived log thread=1 sequence=1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 04/06/2010 14:33:07
    RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 1 and starting SCN of 16016
    This is all on ASM, and am a bit of a newb with that. I bascially have no data I'm worried about losing, I just need to get everything 'on the air' so I can import successfully, and let users on this instance. I've set up the backups in GRID now....so, it will be backed up on the future, but what is the quickest, most efficient way to get this UNDO tablespace datafile recovered?
    Thank you,
    cayenne

    Hemant K Chitale wrote:
    SET UNTIL SEQUENCE 27wouldn't work if the Recovery requires Sequence 1 and it is missing.
    Hemant K ChitaleOops...meant to have start and set until both to "1"
    However, I see what you mean. It seems I cannot find the file on tape.
    Since the RAC instance hasn't yet had any data put into it, I'm thinking it might be best to just blow it away, and recreate everything.
    Trouble is, I'm a bit new at RAC and ASM. I was thinking the best route might be to use DBCA to remove the database...? Would this not take care of removing all the datafiles from all the ASM instances on the RAC..as well as all the other directories, etc on all 3x nodes?
    I've already used the dbca to create templates of this instance, so recreation shouldn't be too difficult (although it will be my first RAC creation)...
    Thank you in advance for the advice so far,
    cayenne

  • Sysaux  Datafile was Corrupted

    hi , i m new to this forums...
    one of my Learning Instance sysaux Datafile was corrupted...
    how to recover it?
    is Point in time Recovery is Possible??

    Hi all,
    If are there no backup for sysaux?
    there is a corrupted block on datafile of sysaux.
    Because this, I cannot export, drop, anything.
    so, I´ve tried to use:
    run
       set newname for datafile 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\DEVDB\SYSAUX01.DBF'
       to 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\DEVDB\DATA\SYSAUX01.DBF';
       restore (tablespace sysaux);
       switch datafile 3;
       recover tablespace sysaux;
    }But with this I got the error:
    RMAN-06054: media recovery requesting unknown log: thread 1 seq 2874 lowscn 47185106
    So I´ve tried:
    BLOCKRECOVER DATAFILE 3 BLOCK 50139;But with this I got the error:
    RMAN-03002: failure of blockrecover command at 04/29/2008 16:04:30
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    Is there any other way to restore and recover this?
    I would like at least to export, but I got error too. :-(
    thanks!!!!
    Obs: I have backup for all database files, but when I did the backups,
    because this datafile is corrupted, I take the tablespace offline.

  • Recover sysaux file

    Hi all,
    I am just trying some recovery scenarios. I have RMAN online backup from this morning and I dropped SYSAUX datafile. I realized that I do not use RC. I tried to search but could not get much help for recovering (if I can recover) the db in this case. Could you please advise. Your help is much appreciated. Thanks

    Hi,
    Use following command to know the backups needed to recover the datafile
    RMAN>restore preview datafile <file_id>;
    - recover datafile
    RMAN> restore datafile <file_id>;
    RMAN> recover datafile <file_id>;
    Regards,
    Vaibhav

  • Recovering a datafile when archivelogs are not available

    is this possible? is there some 'force recovery of a datafile' ? i have one big table in this datafile which i would like to restore actually..but it needs recovery:
    SQL> connect / as sysdba
    Connected.
    SQL> recover datafile '/dwh_data/DWH/fct_usage_3G_01.dbf';
    ORA-00279: change 5223043040 generated at 07/16/2006 21:35:34 needed for thread
    1
    ORA-00289: suggestion : /dwh_dblogs/DWH/DWH_1_49961_574531123.arc
    ORA-00280: change 5223043040 for thread 1 is in sequence #49961
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    Media recovery cancelled.
    SQL> alter tablespace FCT_USAGE_3G online;
    alter tablespace FCT_USAGE_3G online
    ERROR at line 1:
    ORA-01113: file 36 needs media recovery
    ORA-01110: data file 36: '/dwh_data/DWH/fct_usage_3G_01.dbf'

    basically i use RMAN and at the end of each RMAN backup i remove the old archive logs...will serve me a lesson to always backup archive redo logs :)
    PS: Is there a way to restore a single datafile upto a particular RMAN inc1 backup (so i still won't make use of the archive logs)? I know i have to include the SCN and everything but I'm confused. Take a look at this:
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    336 Incr 1 7G SBT_TAPE 00:06:58 05-SEP-06
    BP Key: 336 Status: AVAILABLE Compressed: NO Tag: TAG20060905T213648
    Handle: MT-HPDWH1_DWH_INC_LV1<DWH_342:600385010:1>.dbf Media:
    Controlfile Included: Ckp SCN: 5742694575 Ckp time: 05-SEP-06
    SPFILE Included: Modification time: 15-JUN-06
    List of Datafiles in backup set 336
    File LV Type Ckp SCN Ckp Time Name
    1 1 Incr 5742694586 05-SEP-06 /dwh_data/DWH/system01.dbf
    2 1 Incr 5742694586 05-SEP-06 /dwh_data/DWH/undotbs01.dbf
    3 1 Incr 5742694586 05-SEP-06 /dwh_data/DWH/sysaux01.dbf
    4 1 Incr 5742694586 05-SEP-06 /dwh_data/DWH/users01.dbf
    5 1 Incr 5742694586 05-SEP-06 /dwh_data/DWH/dim_small_01.dbf
    6 1 Incr 5742694586 05-SEP-06 /dwh_data/DWH/dim_main_01.dbf
    That's the RMAN backup list as of the 5th September. Suppose that a week passes and I decide to restore file 6 (dim_main_01.dbf) as of the 5th September, while keeping the other datafiles as of today. Can this be done? Assuming I have no archive logs for point in time but just RMAN inc0/inc1 backups pieces, how can i achieve this?

  • Backing up and Restoring/Recovering an Oracle 9i Database

    I am fairly new at this and have been tasked with managing off site backups for customer data on a 9i database.
    I am carrying out a user managed backup of the following data files to the offsite data centre.
    User File
    USERS01.DBF
    Control File
    CONTROL01.CTL
    Redo Log Files
    REDO01.LOG
    REDO02.LOG
    REDO03.LOG
    Index File
    INDX01.DBF
    SPFile
    SPFILEBCS.ORA
    To test the success of the back up I have created a fresh install of 9i on a new machine with the file structure replicating that of the original.
    My questions are;
    1) Are these all the files required to be backed up in order to carry out a restore?
    2) What are the steps that I need to carry out to restore/recover the database using the above files?
    Any help or ‘user friendly’ resources for beginners would be greatly appreciated
    Regards
    Toby

    1. If you are performing a cold backup you must backup all files listed by this query:
    SELECT NAME FROM V$CONTROLFILE
    UNION
    SELECT NAME FROM V$DATAFILE
    UNION
    SELECT MEMBER FROM V$LOGFILE2. In order for you to restore, you perform a software-only install on the backup host.
    3. Configure connectivity (listener.ora, sqlnet.ora, tnsnames.ora)
    4. Create the service at the remote host using the oradim command.
    5. Restore the above mentioned database file set to the same path they have in the source host.
    6. Copy spfileINSTANCE_NAME.ora file to the backup host.
    7. Start services
    8. Start your database instance
    9. Add temporary datafiles to your restored database:
    ALTER TABLESPACE tempTS ADD TEMPFILE 'path/name';
    10. Test it.

  • HELP! How can i restore/recover files from Bootcamp with Boot Failure - Missing operating system error?

    Hi,
    I am having a few problems with bootcamp on my imac. When i tried to move the bootcamp partition on windows 7 into free space, it crashed and turned off. Ever since i have had the error 'Missing operating system' and it fails to boot. I have some very important files on the bootcamp partition. Is it possible to recover these files or even to restore the bootcamp partition to it's original state? I do not have a backup of my bootcamp partition. Another problem i have is that ever since i tried to expand my macintosh HD partition into free space, when i hold alt while booting up (to choose which partition to boot like i normally do), the bootcamp partition has stopped appearing. This means that i cannot even boot the windows 7 bootcamp partition anymore!
    So basically here are my 2 questions:
    How can i restore/recover files from Bootcamp with Boot Failure - Missing operating system error?
    How can i make the Bootcamp partition appear in Startup Disk and when i hold the option key while starting up my computer to allow me to boot windows 7?
    Any solutions are very much apreciated!
    Thanks!
    I know that bootcamp (disk0s4) hasn't been fully deleted since it appears in disk utility (i cant do anything to it though)
    And here is the error i see when i try to launch bootcamp (back when i was actually able to boot up bootcamp to the error screen)

    WinClone 3 is OS X and saves Windows image it makes for restore - that should work but you will have to try and you would need to make a new image unless it also works with a native Windows system restore image. It is now supported and has come a long way.
    http://www.twocanoes.com/
    Paragon Clone OS works and does disk-to-disk clone just like CCC you end up with two bootable drives. But does not work with your setup. It would let you clone and move your Windows install to an SSD or another disk drive though and be bootable.
    During its clone process it checks for errors which is very helpful and lets you know - something CCC and others should adopt more of.
    http://www.paragon-software.com/downloads/demo.html
    I wish for our/my sake you had re-read and rewritten the long 'story' and broken it into a brief list of facts we needed.
    OS X
    Windows
    Backup (though external is much safer) and you want bootable OS X clones as well as TimeMachine
    https://support.apple.com/kb/HT1427
    https://support.apple.com/kb/HT1553
    There are a number of things to do like chkdsk and others as well as Windows DVD to do automatic system repairs and find out why.
    AppleHFS - the abilty to mount and read HFS volumes can be notorious.
    I would rearrange and redo your storage setup and how you use the 4-5 internal hard drive bays.

  • Restore / Recover / Overall nice treatment of UNDO

    Hi,
    I'm updating our 'Backup and Recovery Bible' which was written when UNDO was but a twinkle in the eye of Oracle Developers. I'm a bit unsure of how recovery should be done in the event that the UNDO tablespace or any of its datafiles dies.
    I do know that I can create another UNDO tablespace if for example we lose one of the datafiles that isn't being used at the time of the failure. But could someone point me to a good link or comment on what should be done if we have a problem with UNDO in terms of restore / recover / RMAN usage etc.
    We're using both 9i and 10g on Solaris. For the moment no interface to a media manager.
    Cheers.

    Confusion sets in.
    I don't understand why (after renaming an undo datafile to OFF_undo) I'm not getting anything in the v$recover_file view.
    undo datafile name changed
    SQL> create table lambda (col1 varchar2(10)) tablespace users;
    create table lambda (col1 varchar2(10)) tablespace users
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01116: error in opening database file 2
    ORA-01110: data file 2: '/database/data01/z111ot11/undo_01.dbf'
    ORA-27041: unable to open file
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    SQL> SELECT FILE#, ERROR, ONLINE_STATUS, CHANGE#, TIME
    FROM V$RECOVER_FILE; 2
    no rows selected
    SQL> COL DF# FORMAT 999
    SQL> COL DF_NAME FORMAT A35
    SQL> COL TBSP_NAME FORMAT A7
    SQL> COL STATUS FORMAT A7
    SQL> COL ERROR FORMAT A10
    SQL> COL CHANGE# FORMAT 99999999
    SQL> SELECT r.FILE# AS df#, d.NAME AS df_name, t.NAME AS tbsp_name,
    2 d.STATUS, r.ERROR, r.CHANGE#, r.TIME
    3 FROM V$RECOVER_FILE r, V$DATAFILE d, V$TABLESPACE t
    4 WHERE t.TS# = d.TS#
    5 AND d.FILE# = r.FILE#
    6 ;
    no rows selected
    Nothing in the alert.log either. If the UNDO is that important - why isn't the database screaming at me?

  • 8i: is it possible to restore a SYSTEM-datafile?

    Just curious: is it possible to restore a SYSTEM-datafile using rman 8i ?
    I was playing with a 8i-database, after a hard reboot the SYSTEM-datafile got corrupted. I want to restore it, but before trying I want to be sure it is possible to restore a SYSTEM-datafile. Any thoughts on this?

    first check how many datafiles contains SYSTEM tablespace.
    SQL> select ts.name,fl.file#,fl.name
      2    from v$tablespace ts,v$datafile fl
      3   where ts.ts#=fl.ts#
      4     and ts.name='SYSTEM'
      5  /
    NAME                                FILE# NAME
    SYSTEM                                  1 F:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\SYSTEM01.DBFthen mount yours database..
    RMAN>restore datafile 1
    RMAN>recover datafile 1if you have other files exist within SYSTEM tablspace (i.e 1,2,3) then
    RMAN>restore datafile 1,2,3
    RMAN>recover datafile 1,2,3Khurram

  • Sysaux datafile recovery

    Dear all,
    10gr2 on windows 2003.
    SYSAUX datafile is corrupted in our environment and I don't have the necessary archive logs to recover the datafile. Am planning to create a new database and migrate the data there . I tried
    a) full db export and schema level export fails with the below error :
    EXP-00056: ORACLE error 376 encountered
    ORA-00376: file 3 cannot be read at this time
    ORA-01110: data file 3: 'S:\ORACLE\PRODUCT\10.2.0\ORADATA\BICCO\SYSAUX01.DBF'
    EXP-00000: Export terminated unsuccessfullyall the data in a single tablespace called users . when am trying to export that tablespace (transportable tablespace) am getting the below error :
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    server uses AL32UTF8 character set (possible charset conversion)
    Note: table data (rows) will not be exported
    About to export transportable tablespace metadata...
    EXP-00008: ORACLE error 1001 encountered
    ORA-01001: invalid cursor
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 899
    ORA-06512: at "SYS.DBMS_SQL", line 19
    ORA-06512: at "SYS.DBMS_TTS", line 838
    ORA-00376: file 3 cannot be read at this time
    ORA-01110: data file 3: 'S:\ORACLE\PRODUCT\10.2.0\ORADATA\BICCO\SYSAUX01.DBF'
    ORA-06512: at "SYS.DBMS_PLUGTS", line 1387
    ORA-06512: at line 1
    EXP-00000: Export terminated unsuccessfullyC:\Documents and Settings\ducadmin>exp transport_tablespace=y tablespaces=USERS file=USERS2_Feb11_4
    .27.dmp log=USERS2_Feb11_4.27.log statistics=none
    Export: Release 10.1.0.4.2 - Production on Thu Feb 11 16:28:06 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Username: sys as sysdba
    Password:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    server uses AL32UTF8 character set (possible charset conversion)
    Note: table data (rows) will not be exported
    About to export transportable tablespace metadata...
    EXP-00008: ORACLE error 1001 encountered
    ORA-01001: invalid cursor
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 899
    ORA-06512: at "SYS.DBMS_SQL", line 19
    ORA-06512: at "SYS.DBMS_TTS", line 838
    ORA-00376: file 3 cannot be read at this time
    ORA-01110: data file 3: 'S:\ORACLE\PRODUCT\10.2.0\ORADATA\BICCO\SYSAUX01.DBF'
    ORA-06512: at "SYS.DBMS_PLUGTS", line 1387
    ORA-06512: at line 1
    EXP-00000: Export terminated unsuccessfully
    How do I proceed in this situation ?.. copying the data manually to other database is hectic as the data is huge.
    Please advise ?
    Kai                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Dear Mark,
    I cannot able to export schema level as it is failing with the below error :
    S:\Backup\g_BACKUP\feb13>exp system/manager@BICCO file=Feb13_c012006.dmp owner=c012006 statistics=no
    ne rows=Y constraints=Y
    Export: Release 10.1.0.4.2 - Production on Sat Feb 13 11:57:42 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    server uses AL32UTF8 character set (possible charset conversion)
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user C012006
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user C012006
    About to export C012006's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    EXP-00056: ORACLE error 376 encountered
    ORA-00376: file 3 cannot be read at this time
    ORA-01110: data file 3: 'S:\ORACLE\PRODUCT\10.2.0\ORADATA\BICCO\SYSAUX01.DBF'
    EXP-00000: Export terminated unsuccessfully
    Kai

  • 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

  • Why recovering the datafile ?

    Hi,
    why must we recover a datafile after taking it offline (without restore) to take it online again:
    SQL*Plus SYS> alter database datafile 27 offline;
    Datenbank wurde geändert.
    SQL*Plus SYS> alter database datafile 27 online;
    alter database datafile 27 online
    FEHLER in Zeile 1:
    ORA-01113: Für Datei '27' ist Media Recovery erforderlich
    ORA-01110: Datendatei 27: 'C:\APP\xxxx\ORADATA\TEST\DATAFILE\T_xxx.DBF'
    SQL*Plus SYS> alter database recover datafile 27 ;
    Datenbank wurde geändert.
    SQL*Plus SYS> alter database datafile 27 online;
    Datenbank wurde geändert.
    The version of the database is 11.2.0.2 and it is in ARCHIVELOG mode.
    Thanks in advance!

    Hello,
    why must we recover a datafile after taking it offline (without restore) to take it online again:Because there's no Checkpoint when you set a Datafile OFFLINE.
    However, if you set a Tablespace OFFLINE NORMAL there will be a Checkpoint, and you could set it ONLINE without Recovery.
    This link may give you more details:
    http://esemrick.blogspot.com/2006/03/recovery-of-offline-data-files.html
    Hope this help.
    Best regards,
    Jean-Valentin
    Edited by: Lubiez Jean-Valentin on Mar 8, 2012 3:45 PM

Maybe you are looking for

  • How can I completely delete imessagefrom my Iphone 5?

    how can I completely delete imessagefrom my Iphone 5?

  • Need help how to change LOV query

    Hi All, Can some one help me how to use the LOV Query based on responsibility (I am using form personalization) When the user logs in with XX_Payables Super user with say (Responsibility id =500) then the LOV should be Select BA.bank_account_name, BA

  • Valuation classes

    How the material is valuated thru in VALUATION CLASSES.(GIVE THE EXAMPLES WITH EXPLNATIONS)

  • Windows 7 Download Link?

    Hi All Just bought a new U350 and I'm eligible for a Windows 7 Home Premium Upgrade from Vista Home premium.. I have registered for the upgrade and Lenovo have confirmed the upgrade and are sending out the DVD, the problem is, I don't have an optical

  • Premiere crashing if using other applications

    I'm having problems with Adobe Premiere crashing on me. It seems to happen whenever I use another application (like Chrome or Windows Explorer) while Premiere is open, then go back to Premiere. It pretty much instantly crashes as soon as I click insi