Dropping system datafile

Dear all,
10.2.0.4 on solaris 10
We created some additional datafiles for system tablespace as we enabled auditing. Auditing is cancelled as per the requirement
from management. now , out of 7 datafiles, 4 are empty.Is it safe to
drop this datafiles .(am checking the free space of the datafile from
toad object browser )
Thanks
Kai

No. You can never drop datafiles in the SYSTEM tablespace. (You can resize them downards).
One more reason why it is a bad idea to create objects in the SYSTEM tablespace.
Hemant K Chitale

Similar Messages

  • How to drop the datafile in a tablespace

    hi,
    I need to drop the datafile in a tablespace.How to drop the datafile in the tablespace.If iam able to drop the datafile and is it possible to create the datafiles with the same name.could u pls help me out..
    Thanks in advance,
    R.Ratheesh

    sql > alter database <datafile> offline drop ;
    sql > alter database open ;What if the datafile have the segments in it, I believe users will not be able to access them. And system will put the datafile to Recovry mode not drop it.
    Dropping a datafle is possible only in 10G. In 9i you can reduce the size of file below the size of your min extents so that the space wont be allocated from that datafile or you may need to recreate a new tablespace copy all the segments from old tablespace and drop old one.
    Cheers

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

  • How to drop the datafile?

    Hello Everybody
    is it possible to drop the datafile? i have run the query ALTER DATABASE DATAFILE 'c:\oracle\oracle_db\m300\user\user01.dbf' offline drop. After i checked with DBA_DATA_FILES its there.Can any one help in this regards
    Regards
    Hameed

    Please see this link:
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14231/dfiles.htm#i1006556
    Restrictions for Dropping Datafiles
    The following are restrictions for dropping datafiles and tempfiles:
    The database must be open.
    If a datafile is not empty, it cannot be dropped.
    If you must remove a datafile that is not empty and that cannot be made empty by dropping schema objects, you must drop the tablespace that contains the datafile.
    You cannot drop the first or only datafile in a tablespace.
    This means that DROP DATAFILE cannot be used with a bigfile tablespace.
    You cannot drop datafiles in a read-only tablespace.
    You cannot drop datafiles in the SYSTEM tablespace.
    If a datafile in a locally managed tablespace is offline, it cannot be dropped.
    Regards

  • Accidentally dropped a Datafile

    Hi friends
    I run oracle 11.2.0.3.0 on windows machine
    I have accidentally dropped a datafile on develop DB without media recovery active, so that, I cant just turn the file offline as shown below:
    SQL> ALTER DATABASE DATAFILE 88 OFFLINE;
    ALTER DATABASE DATAFILE 88 OFFLINE
    ERROR at line 1:
    ORA-01145: offline immediate disallowed unless media recovery enabled
    What Can I do to bypass this datafile or even the tablespace that its not so important and could be lost?
    I tryed remove the tablespace without success:
    SQL> DROP TABLESPACE V_FISCO_INDX;
    DROP TABLESPACE V_FISCO_INDX
    ERROR at line 1:
    ORA-01109: database not open
    the status is mounted
    **** Can I turn on the media recovery and place the datafile offline?
    or I'll have to re-create the control file?
    If so, how?
    Thanks a lot friends

    Hi friends
    It worked now.
    SQL> alter database archivelog;
    Database altered.
    SQL> ALTER DATABASE DATAFILE 88 OFFLINE;
    Database altered.
    SQL> alter database open;
    Database altered.
    SQL> SELECT DISTINCT(OWNER) FROM DBA_TABLES WHERE TABLESPACE_NAME='V_F';
    no rows selected
    SQL> DROP TABLESPACE V_F including contents and datafiles;
    Tablespace dropped.
    SQL> SHUTDOWN IMMEDIATE
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> STARTUP MOUNT
    ORACLE instance started.
    Total System Global Area 6396977152 bytes
    Fixed Size 2265120 bytes
    Variable Size 3841986528 bytes
    Database Buffers 2533359616 bytes
    Redo Buffers 19365888 bytes
    Database mounted.
    SQL>
    SQL>
    SQL> ALTER DATABASE NOARCHIVELOG;
    Database altered.
    SQL> ALTER DATABASE OPEN
    2 ;
    Database altered.
    tks a lot.

  • System datafile is deleted, Urgent help needed!!

    Hi,
    Accidently one of my fellow developers deleted the system datafile. Its throwing the following error:
    ORA-01116: error in opening database file 10
    ORA-01110: data file 10: '/u02/oracle/product/920/syssource.dbf'
    ORA-27041: unable to open file
    SVR4 Error: 2: No such file or directory
    Then I tried the following steps:
    SQL> shutdown immediate
    ORA-01116: error in opening database file 10
    ORA-01110: data file 10: '/u02/oracle/product/920/syssource.dbf'
    ORA-27041: unable to open file
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    SQL> shutdown abort
    ORACLE instance shut down.
    SQL> startup nomount
    ORACLE instance started.
    Total System Global Area 201938076 bytes
    Fixed Size 455836 bytes
    Variable Size 83886080 bytes
    Database Buffers 117440512 bytes
    Redo Buffers 155648 bytes
    SQL> alter database mount;
    Database altered.
    SQL> alter database datafile '/u02/oracle/product/920/syssource.dbf' offline drop;
    Database altered.
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01147: SYSTEM tablespace file 10 is offline
    ORA-01110: data file 10: '/u02/oracle/product/920/syssource.dbf'
    Can anybody help me out of this problem...your prompt response is highly appreciated. Thanks in advance.
    System tablespace is using both the below datafiles, which I can see in the v$datafile.
    SYSTEM - /u03/oracle/db2/sys1db2.dbf
    SYSTEM - /u02/oracle/product/920/syssource.dbf

    Hi,
    Step 1: restore from backup
    If Step 1 don't work:
    Step 2: fire your DBA, and check why there is no valid backup
    Step 3: Open an iTar
    I'm wontering why in the world a developper would have acess to the database files / database host computer. Puzzles me.
    Regards,
    Yoann.

  • 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

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

  • Block corruption error in system datafile

    Hi Guru,
    There is a problem in system datafile of production database, one of the block has been corrupted.we have set the configuration of RMAN with SBT_TAPE for backup. when we try to recover using then following commands then we get some error. Please help to solve the issue.database 1s 10g on linux environment.
    RMAN> RUN
    ALLOCATE CHANNEL c1 DEVICE TYPE disk;
    blockrecover datafile 3 block 39830;
    }2> 3> 4> 5>
    allocated channel: c1
    channel c1: sid=1417 devtype=DISK
    Starting blockrecover at 21-MAR-13
    released channel: c1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of blockrecover command at 03/21/2013 13:02:10
    RMAN-06026: some targets not found - aborting restore
    RMAN-06100: no channel to restore a backup or copy of datafile 3
    RMAN>
    RMAN> blockrecover datafile 3 block 39830;
    Starting blockrecover at 21-MAR-13
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=1417 devtype=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: sid=2351 devtype=DISK
    allocated channel: ORA_DISK_3
    channel ORA_DISK_3: sid=1452 devtype=DISK
    allocated channel: ORA_DISK_4
    channel ORA_DISK_4: sid=1270 devtype=DISK
    allocated channel: ORA_DISK_5
    channel ORA_DISK_5: sid=1865 devtype=DISK
    allocated channel: ORA_DISK_6
    channel ORA_DISK_6: sid=2064 devtype=DISK
    allocated channel: ORA_DISK_7
    channel ORA_DISK_7: sid=1734 devtype=DISK
    allocated channel: ORA_DISK_8
    channel ORA_DISK_8: sid=1574 devtype=DISK
    released channel: ORA_DISK_1
    released channel: ORA_DISK_2
    released channel: ORA_DISK_3
    released channel: ORA_DISK_4
    released channel: ORA_DISK_5
    released channel: ORA_DISK_6
    released channel: ORA_DISK_7
    released channel: ORA_DISK_8
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of blockrecover command at 03/21/2013 13:19:59
    ORA-19554: error allocating device, device type: SBT_TAPE, device name:
    ORA-27211: Failed to load Media Management Library
    Additional information: 2
    RMAN>
    RMAN> show all;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 7;
    CONFIGURE BACKUP OPTIMIZATION OFF;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/d02/rman/ctl_%F';
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE 'SBT_TAPE' TO '%F';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 8 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 8 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE 'SBT_TAPE' TO 1;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE 'SBT_TAPE' TO 1;
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/d02/rman/%T_%d_%s_%p';
    CONFIGURE MAXSETSIZE TO UNLIMITED;
    CONFIGURE ENCRYPTION FOR DATABASE OFF;
    CONFIGURE ENCRYPTION ALGORITHM 'AES128';
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/d02/rman/snapcf_PROD.f';

    Please find the below backup and recovery scripts.
    Daily backup script
    ====================
    run {
    allocate channel 'dev_0' type 'sbt_tape'
    parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=PROD,OB2BARLIST=Monday-ERP-RMAN-Daily)';
    allocate channel 'dev_1' type 'sbt_tape'
    parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=PROD,OB2BARLIST=Monday-ERP-RMAN-Daily)';
    allocate channel 'dev_2' type 'sbt_tape'
    parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=PROD,OB2BARLIST=Monday-ERP-RMAN-Daily)';
    allocate channel 'dev_3' type 'sbt_tape'
    parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=PROD,OB2BARLIST=Monday-ERP-RMAN-Daily)';
    allocate channel 'dev_4' type 'sbt_tape'
    parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=PROD,OB2BARLIST=Monday-ERP-RMAN-Daily)';
    allocate channel 'dev_5' type 'sbt_tape'
    parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=PROD,OB2BARLIST=Monday-ERP-RMAN-Daily)';
    allocate channel 'dev_6' type 'sbt_tape'
    parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=PROD,OB2BARLIST=Monday-ERP-RMAN-Daily)';
    allocate channel 'dev_7' type 'sbt_tape'
    parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=PROD,OB2BARLIST=Monday-ERP-RMAN-Daily)';
    delete noprompt archivelog until time 'sysdate-2';
    crosscheck archivelog all;
    sql 'alter system archive log current';
    backup as compressed backupset
    format 'Monday-ERP-RMAN-Daily<PROD_%s:%t:%p>.dbf'
    database;
    backup as compressed backupset
    format 'Monday-ERP-RMAN-Daily<PROD_%s:%t:%p>.dbf'
    archivelog all;
    backup
    format 'Monday-ERP-RMAN-Daily<PROD_%s:%t:%p>.dbf'
    current controlfile;
    we tried the following command as well.
    RMAN> RUN
    ALLOCATE CHANNEL c1 DEVICE 'sbt_tape';
    blockrecover datafile 3 block 39830;
    but the same error as below.
    RMAN> show all;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 7;
    CONFIGURE BACKUP OPTIMIZATION OFF;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/d02/rman/ctl_%F';
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE 'SBT_TAPE' TO '%F';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 8 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 8 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE 'SBT_TAPE' TO 1;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE 'SBT_TAPE' TO 1;
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/d02/rman/%T_%d_%s_%p';
    CONFIGURE MAXSETSIZE TO UNLIMITED;
    CONFIGURE ENCRYPTION FOR DATABASE OFF;
    CONFIGURE ENCRYPTION ALGORITHM 'AES128';
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/d02/rman/snapcf_PROD.f';
    RMAN>
    also tried the following command
    =======================
    RMAN> RUN
    ALLOCATE CHANNEL c1 DEVICE TYPE disk;
    blockrecover datafile 3 block 39830;
    }2> 3> 4> 5>
    allocated channel: c1
    channel c1: sid=1417 devtype=DISK
    Starting blockrecover at 21-MAR-13
    released channel: c1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of blockrecover command at 03/21/2013 13:02:10
    RMAN-06026: some targets not found - aborting restore
    RMAN-06100: no channel to restore a backup or copy of datafile 3
    RMAN>
    RMAN> blockrecover datafile 3 block 39830;
    Starting blockrecover at 21-MAR-13
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=1417 devtype=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: sid=2351 devtype=DISK
    allocated channel: ORA_DISK_3
    channel ORA_DISK_3: sid=1452 devtype=DISK
    allocated channel: ORA_DISK_4
    channel ORA_DISK_4: sid=1270 devtype=DISK
    allocated channel: ORA_DISK_5
    channel ORA_DISK_5: sid=1865 devtype=DISK
    allocated channel: ORA_DISK_6
    channel ORA_DISK_6: sid=2064 devtype=DISK
    allocated channel: ORA_DISK_7
    channel ORA_DISK_7: sid=1734 devtype=DISK
    allocated channel: ORA_DISK_8
    channel ORA_DISK_8: sid=1574 devtype=DISK
    released channel: ORA_DISK_1
    released channel: ORA_DISK_2
    released channel: ORA_DISK_3
    released channel: ORA_DISK_4
    released channel: ORA_DISK_5
    released channel: ORA_DISK_6
    released channel: ORA_DISK_7
    released channel: ORA_DISK_8
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of blockrecover command at 03/21/2013 13:19:59
    ORA-19554: error allocating device, device type: SBT_TAPE, device name:
    ORA-27211: Failed to load Media Management Library
    Additional information: 2
    RMAN>

  • 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

  • System datafile corruption

    good morning all
    What if in system datafile some blocks are corrupted in scenerio as below(db in noarchive mode but backup available-point in time recovery not important,data loss tolerated but want faster approach without shutting down db prefrably)
    oracle 10g release 2
    1)have cold backup /rman of few days old before corruption
    2)can i use bmr of rman or export system from this server import on anoter server and export and import back on this server
    3)or can i restore backup/rman of this db on other server,export system and import this on server where
    system.dbf is corrupted
    4)OR should i restore whole rman backup and replace whole db(point in time recovery not important here)
    which approach is best
    thanks

    for the following points :
    1)have cold backup /rman of few days old before corruptionyou have to remove the existing C/R/D files and restore those files from the last backup and start the database.
    2)can i use bmr of rman or export system from this server import on anoter server and export and import back on this serverTaking export is possible but not sure whether there would be any problem while taking any export and also during the import as well.
    3)or can i restore backup/rman of this db on other server,export system and import this on server where system.dbf is corrupted Its same as your second point but you are just doing it remotely
    4)OR should i restore whole rman backup and replace whole db(point in time recovery not important here) which approach is bestThis point is right because the database is not in archivelog mode...
    Cheers!

  • Drop a datafile that is offline and not on the OS

    I am running a 2 node rac on ASM . 10gR2 on HP UX.
    By mistake 1 datafile has been deleted on the OS , and that datafile is marked as offline in the dba_data_files.
    How can I drop the datafile from the database.
    since when I query the dba_data_files the datafile 10 ( which was deleted on OS ) , shows its still present and online_status is offline.
    The datafile is not required and also there is no backup for the datafile.
    Thanks

    Hi,
    ALTER DATABASE DATAFILE '<full file spec>' OFFLINE DROP;
    example: just give '+dg1/../../..' if it not exists also give the same
    Kind Regards,
    Rakesh Jayappa

  • ORA-03264: cannot drop offline datafile of locally managed tablespace

    Hi list
    A datafile was acidentally created on filesystem in one node of two nodes RAC.
    After that the filesystem on which the datafile was created was out of space because of automatic control file backup and sysadmin move this datafile to another device. And before this action RMAN backup stopped work.
    Now we replace the datafile to the original location, but it stay offline and recover status, and we cant bring them online because the customer dont have necessary archive logs to recover this datafile. RMAN backup is now working. But now we need to create a DataGuard on a third server and want to drop this datafile.
    This datafile dont have any data segment and stay in most critical tablespace of the customer application which have more datafiles. This datafile in question isnt the first datafile of the tablespace.
    SQL> select file#, status from v$datafile where name='/oracle/product/db/ars/dbs/arsystem.old';
    FILE# STATUS
    21 RECOVER
    SQL> select file#, status from v$datafile_header where name='/oracle/product/db/ars/dbs/arsystem.old';
    FILE# STATUS
    21 OFFLINE
    How can I drop this datafile?
    Thanks
    Cristiano

    Review this metalink note, what to do:
    How to 'DROP' a Datafile from a Tablespace
    Doc ID:111316.1
    If you cannot recover the datafile, you have to export the 'rest' of the tablespace (after statement 'alter database datafile '/oracle/product/db/ars/dbs/arsystem.old' offline drop;' was successfully issued). Afterwards drop the tablespace,recreate it and import the data).
    Werner

  • Drop offline Datafile

    Oracle Database version - 10.2.0.3
    I have a tablespace with 2 datafiles. One of the datafile is offline since couple of months. Now I am trying to drop the offline datafile but its not possible to drop that datafile.
    As its production environment I can not take the tablespace in offline mode.
    Can anyone please suggest suitable solution to drop the datafile?
    Regards,
    Sandeep

    SQL> alter tablespace AUDIT_REPORT drop datafile '/data/zus26d-0701/oracle/u04/PZHINF01/cust_idx_04.dbf';
    alter tablespace AUDIT_REPORT drop datafile '/data/zus26d-0701/oracle/u04/PZHINF01/cust_idx_04.dbf'
    ERROR at line 1:
    ORA-03264: cannot drop offline datafile of locally managed tablespace
    SQL>

  • Second system datafile ,but no data stored find???

    i add a second datafile SYSDBFILE.DBF
    SQL> select file#,ts#,name from v$datafile order by 2;
    FILE# TS# NAME
    1 0 D:\ORACLE\ORADATA\LRH\SYSTEM01.DBF
    14 0 D:\SYSDBFILE.DBF
    2 1 D:\ORACLE\ORADATA\LRH\UNDOTBS01.DBF
    3 3 D:\ORACLE\ORADATA\LRH\CWMLITE01.DBF
    4 4 D:\ORACLE\ORADATA\LRH\DRSYS01.DBF
    5 5 D:\ORACLE\ORADATA\LRH\EXAMPLE01.DBF
    6 6 D:\ORACLE\ORADATA\LRH\INDX01.DBF
    7 7 D:\ORACLE\ORADATA\LRH\ODM01.DBF
    8 8 D:\ORACLE\ORADATA\LRH\TOOLS01.DBF
    9 9 D:\ORACLE\ORADATA\LRH\USERS01.DBF
    10 10 D:\ORACLE\ORADATA\LRH\XDB01.DBF
    FILE# TS# NAME
    11 12 G:\ORACLE\ORA92\DATABASE\MISSING00011
    12 13 G:\ORACLE\ORA92\DATABASE\MISSING00012
    13 14 D:\ORACLE\ORADATA\LRH\T.DBF
    SQL> select count(*) from dba_extents where file_id=14;
    COUNT(*)
    0
    file# 14 is my second system datafile SYSDBFILE.DBF,
    but nothing is stored in it ,,,why ????
    why other data only stored in first definition system01.dbf ???? thanks in advance

    Are you really sure that you added the datafile successfully? Did you check the alert.log?
    How do you know that the file_di 14 is the file id from your last added file? That don't seem so!
    In any case your database has problems. You have "MISSINGXXXXX' file.
    Aron
    Forget the first part. I didn't see the file in the report ... fast reading.
    Message was edited by:
    Aron Tunzi

Maybe you are looking for

  • Format of the analytic reports changed in OBIEE11g after restart.

    Hi all, After restarting the BI server, the format of the reports changed. The analytic reports header font sizes has been increased and the report is not showing in tabular view instead it is showing results as in a notepad. What might be the issue

  • HTTP_RESP_STATUS_CODE_NOT_OK when using Principle Propagation

    I am implementing Principle propagation for my PI 7.0 system.  I followed the instruction exactly like I did in my dev and qa system.  The new intrefaces that are supposed to use the PP (Principal propagation) do not work when it is active, but when

  • Working with Large Blobs in BerkeleyDB

    Hi Everyone, I'm trying to use BerkeleyDB as a simple key/value store for large (~50 MB) blobs of data. Before I get too deep into this, I wanted to see if anyone had any advice as to the best way to configure Berkeley to do this efficiently. Some of

  • Unable to add person to adress book after messenger update failed

    Hi; Since three days i can not add new person to m adress book.It started after failure of Windows Live Messenger update.After new update has dropped into my box i tried to get updated version.ut the screen has frozen.After get the battery out from t

  • Calculate Shared Pool Size

    HI, EBS:12.0.6 DB:10.2.0.3 This is the formula to calculate shared pool size.. minimum share_pool_size = - mp(sp_idx).minvalue - + - (Num_of_CPU * 2MB) + - (Num_of_sessions * 17408) + - (10% of the old shared_pool_size for overhead)from where i can g