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

Similar Messages

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

  • ORA-01940: cannot drop a connected user... No entries in v$session.

    Hi DBAs,
    Its on Linux Ubuntu... I want to drop a user. Getting error as below. When I check for connected sessions, I find no entries in v$session. Any other alternative? Please help!!!
    EGOVDBA@qadb> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE     10.2.0.1.0     Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    EGOVDBA@qadb> drop user egov_integrated cascade;
    drop user egov_integrated cascade
    ERROR at line 1:
    ORA-01940: cannot drop a user that is currently connected
    EGOVDBA@qadb> select username, osuser, machine, terminal, sid, serial# from v$session where username='EGOV_INTEGRATED';
    no rows selected
    EGOVDBA@qadb> drop user egov_integrated cascade;
    drop user egov_integrated cascade
    ERROR at line 1:
    ORA-01940: cannot drop a user that is currently connected

    oracle@hp2:~$ ps -ef | grep oracle
    oracle 7011 1 0 Mar31 ? 00:03:18 /orclins/u01/app/oracle/bin/tnslsnr LISTENER -inherit
    oracle 7166 1 0 Mar31 ? 00:00:08 ora_pmon_qadb
    oracle 7168 1 0 Mar31 ? 00:00:00 ora_psp0_qadb
    oracle 7170 1 0 Mar31 ? 00:00:16 ora_mman_qadb
    oracle 7172 1 0 Mar31 ? 00:01:32 ora_dbw0_qadb
    oracle 7174 1 0 Mar31 ? 00:01:47 ora_lgwr_qadb
    oracle 7176 1 0 Mar31 ? 00:00:08 ora_ckpt_qadb
    oracle 7178 1 0 Mar31 ? 00:00:42 ora_smon_qadb
    oracle 7180 1 0 Mar31 ? 00:00:00 ora_reco_qadb
    oracle 7182 1 0 Mar31 ? 00:00:09 ora_cjq0_qadb
    oracle 7184 1 0 Mar31 ? 00:00:06 ora_mmon_qadb
    oracle 7186 1 0 Mar31 ? 00:00:13 ora_mmnl_qadb
    oracle 7188 1 0 Mar31 ? 00:00:00 ora_d000_qadb
    oracle 7190 1 0 Mar31 ? 00:00:00 ora_s000_qadb
    oracle 7275 1 0 Mar31 ? 00:00:00 ora_qmnc_qadb
    oracle 7277 1 0 Mar31 ? 00:00:00 ora_q000_qadb
    oracle 7280 1 0 Mar31 ? 00:00:00 ora_q001_qadb
    oracle 7765 1 0 Mar31 ? 00:00:01 oracleqadb (LOCAL=NO)
    oracle 7767 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 7769 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 7771 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 7773 1 0 Mar31 ? 00:00:01 oracleqadb (LOCAL=NO)
    oracle 17325 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 17327 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 17329 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 17331 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 17333 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 17337 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 17339 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 17341 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 17343 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 17345 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 20219 1 15 Mar31 ? 02:07:49 oracleqadb (LOCAL=NO)
    oracle 20221 1 16 Mar31 ? 02:11:16 oracleqadb (LOCAL=NO)
    oracle 20227 1 15 Mar31 ? 02:00:44 oracleqadb (LOCAL=NO)
    oracle 20229 1 13 Mar31 ? 01:46:38 oracleqadb (LOCAL=NO)
    oracle 20376 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 20378 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 20380 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 20382 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 20384 1 0 Mar31 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 21336 1 0 00:00 ? 00:04:15 ora_j000_qadb
    oracle 24611 1 0 07:50 ? 00:00:00 oracleqadb (LOCAL=NO)
    root 25225 6477 0 08:37 ? 00:00:00 sshd: oracle [priv]
    oracle 25227 25225 0 08:37 ? 00:00:00 sshd: oracle@pts/0
    oracle 25228 25227 0 08:37 pts/0 00:00:00 -bash
    oracle 25273 1 0 08:41 ? 00:00:02 ora_j001_qadb
    oracle 26011 1 0 09:27 ? 00:00:00 oracleqadb (LOCAL=NO)
    oracle 26012 25228 0 09:27 pts/0 00:00:00 ps -ef
    oracle 26013 25228 0 09:27 pts/0 00:00:00 grep oracle
    oracle@hp2:~$

  • Catproc.sql gives ORA-02303: cannot drop or replace a type with type or tab

    I am running catproc.sql and am seeing several of the following errors. Appreciate any insight into the problem. Thanks..
    CREATE OR REPLACE TYPE ODCIObject AS object
    ERROR at line 1:
    ORA-02303: cannot drop or replace a type with type or table dependents
    CREATE OR REPLACE TYPE ODCIObjectList AS VARRAY(32) of ODCIObject;
    ERROR at line 1:
    ORA-02303: cannot drop or replace a type with type or table dependents

    I am in the process of doing a test upgrade of Oracle E-business 11.0.3 with Oracle 8.0.6 to Oracle E-business 11.5.10.2 with Oracle 9.2.0.
    I am following the upgrade manual:
    Oracle Applications – Upgrading Oracle Applications
    Release 11i (11.5.10.2)
    Part No. B19297-01
    I have already upgraded the database from 8.0.6 to 9.2.0 using the Oracle database migration utility at the appropriate point in the instructions.
    After upgrading the database to 9.2.0 as stated in this manual, one of the of the next Oracle Application pre-upgrade tasks is to execute a script called addb920_nt.sql which in turn executes catalog.sql and catproc.sql. I am seeing these errors when catproc.sql is executed.
    I have logged an Oracle Support SR and am awaiting a response, but wanted to know if anyone had seen similar issues.
    Thanks,
    Alma

  • ORA-02303: cannot drop or replace a type with type or table dependents

    Oracle 10.2.0.3 on solaris :
    I am trying to do a
    CREATE OR REPLACE TYPE WickType_StringArray AS TABLE OF VARCHAR2(256);
    I am getting the error :
    ORA-02303: cannot drop or replace a type with type or table dependents
    I then looked for the dependencies :
    select * from dba_dependencies where name = 'WICKTYPE_STRINGARRAY' and owner='HARPER';
    (Columns below with values are delimited by pipe | )
    OWNER|NAME|TYPE|REFERENCED_OWNER|REFERENCED_NAME|REFERENCED_TYPE|REFERENCED_LINK_NAME|DEPENDENCY_TYPE
    HARPER|WICKTYPE_STRINGARRAY|TYPE|SYS|STANDARD|PACKAGE||HARD     
    What is the best way for me to proceed to get my CREATE OR REPLACE statement working ?
    Thanks

    Well you could move to 11g but I'd suggest a less drastic measure for now. Save the data, drop the table, reload the table.
    But give serious consideration to Tom Kyte's advice about object tables: Don't use them. Instead use relational tables and object views.

  • ORA-12983: cannot drop all columns in a table

    Hi,
    I am creating a table with two columns.
    I have modified a column as unused using ALTER statement.
    After that i have tried to drop the another column by using ALTER statement.
    But it throws an error ORA-12983: cannot drop all columns in a table.
    is it not possible to achieve this via ALTER statement?
    thanks

    is there any other way to find the name of the columns which have been marked as unused?Don't think so, and you would not be able to do much about. You won't be able to reference it, you won't be able to un-unuse it, and you would even be able to add a new column having same name.
    Why are you using SET UNUSED in the first place?
    Regards
    Peter
    Quoting myself:
    You won't be able to reference itMaybe not good enough:
    SQL> select column_name, data_type, segment_column_id
      from user_tab_cols
    where table_name = 'T';
    COLUMN_NAME                    DATA_TYPE   SEGMENT_COLUMN_ID
    SYS_C00001_11051618:28:14$     NUMBER                      1
    B                              NUMBER                      2
    SYS_C00003_11051618:28:14$     NUMBER                      3
    3 rows selected.
    select "SYS_C00003_11051618:28:14$" from t
    Error at line 1
    ORA-00904: "SYS_C00003_11051618:28:14$": invalid identifier
    SQL> alter table t drop column "SYS_C00001_11051618:28:14$";
    Table altered.
    SQL> select column_name, data_type, segment_column_id
      from user_tab_cols
    where table_name = 'T';
    COLUMN_NAME                    DATA_TYPE   SEGMENT_COLUMN_ID
    B                              NUMBER                      
    1 row selected.
    Note: Both columns "disappeared"  Thanks MichaelS
    Edited by: Peter on May 16, 2011 9:29 AM

  • Default storage for locally managed tablespaces

    the documentation says you cannot have a default storage parameter for locally managed tablespaces. Does this mean that we cannot specify
    INITIAL
    NEXT
    PCTINCREASE
    MINEXTENTS
    MAXEXTENTS for such tablespaces, or is there another way we can, without using default storage?
    thanks

    I amnot sure where you read that part that the default storage clause can't be given.Please see here,
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/tspaces.htm#sthref1149
    From the doc,
    Creating a Locally Managed Tablespace
    If the CREATE TABLESPACE statement includes a DEFAULT storage clause, then the database considers the following:
    If you specified the MINIMUM EXTENT clause, the database evaluates whether the values of MINIMUM EXTENT, INITIAL, and NEXT are equal and the value of PCTINCREASE is 0. If so, the database creates a locally managed uniform tablespace with extent size = INITIAL. If the MINIMUM EXTENT, INITIAL, and NEXT parameters are not equal, or if PCTINCREASE is not 0, the database ignores any extent storage parameters you may specify and creates a locally managed, autoallocated tablespace.
    If you did not specify MINIMUM EXTENT clause, the database evaluates only whether the storage values of INITIAL and NEXT are equal and PCTINCREASE is 0. If so, the tablespace is locally managed and uniform. Otherwise, the tablespace is locally managed and autoallocated.
    HTH
    Aman....

  • Locally Managed tablespaces?

    Into the Design Editor, Admin tab: How can I define a tablespace as Locally Managed?

    Harvinder,
    Locally managed tablespaces are part of the new features of Oracle 8i. the advantages
    are when they database objects need to allocate space, they need not go through the
    data dictionary, they can find the free space
    through bitmaps in the datafile, hence the name locally managed tablespaces.
    this improves performance because recursive sql (update/insert/select of data dictionary tables) is avoided.
    temporary tablespaces are prime candidates for locally managed tablespaces.
    yes the whole database can be created with locally managed tablespaces..but with some restrictions. see oracle documentation for further details.
    Mukundan.

  • Explain local manage tablespace and dictionary manage tablespace

    hi all,
    kindly help me to understand local manage and dictionary manage tablespace
    i have read search result and oracle corporation book still unable to understand
    what i know that local is managed by bitmap(no redo) and dictionary is managed by dictionary(generates redo) plz explain this as well
    and also suggest me some documentation.
    thanks
    Navin

    Navin,
    These are excerpts from Oracle documentation
    Dictionary Managed Tablespace_
    If you created your database with an earlier version of Oracle, then you could be using dictionary managed tablespaces. For a tablespace that uses the data dictionary to manage its extents, Oracle updates the appropriate tables in the data dictionary whenever an extent is allocated or freed for reuse. Oracle also stores rollback information about each update of the dictionary tables. Because dictionary tables and rollback segments are part of the database, the space that they occupy is subject to the same space management operations as all other data.
    Lcaolly Managed Tablesapce_
    A tablespace that manages its own extents maintains a bitmap in each datafile to keep track of the free or used status of blocks in that datafile. Each bit in the bitmap corresponds to a block or a group of blocks. When an extent is allocated or freed for reuse, Oracle changes the bitmap values to show the new status of the blocks. These changes do not generate rollback information because they do not update tables in the data dictionary (except for special cases such as tablespace quota information).
    Locally managed tablespaces have the following advantages over dictionary managed tablespaces:
    Local management of extents automatically tracks adjacent free space, eliminating the need to coalesce free extents.
    Local management of extents avoids recursive space management operations. Such recursive operations can occur in dictionary managed tablespaces if consuming or releasing space in an extent results in another operation that consumes or releases space in a data dictionary table or rollback segment.
    The sizes of extents that are managed locally can be determined automatically by the system. Alternatively, all extents can have the same size in a locally managed tablespace and override object storage options.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/physical.htm#sthref518
    Regards

  • Create table with storage parameters in a locally managed tablespace

    Hi,
    Can we create object with storage parameters in a locally managed tablespace.
    CREATE TABLE my_hash_table_6 (
    name VARCHAR2(30),
    value VARCHAR2(4000) )
    STORAGE (
    INITIAL 1M
    NEXT 512K
    PCTINCREASE 0
    MINEXTENTS 2
    MAXEXTENTS UNLIMITED )
    users default tablespace is locallly managed.
    Then this table's extent management will be managed as per the tablespace or as the storage parameters which
    were specified at the time of table creation.

    Why don't you try it yourself ?
    TEST@db102 > select * from dba_tablespaces
      2  where TABLESPACE_NAME='USERS';
    TABLESPACE_NAME                BLOCK_SIZE INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS
    MAX_EXTENTS PCT_INCREASE MIN_EXTLEN STATUS    CONTENTS  LOGGING   FOR EXTENT_MAN
    ALLOCATIO PLU SEGMEN DEF_TAB_ RETENTION   BIG
    USERS                                8192          65536                       1
    2147483645                   65536 ONLINE    PERMANENT LOGGING   NO  LOCAL
    SYSTEM    NO  AUTO   DISABLED NOT APPLY   NO
    TEST@db102 > CREATE TABLE my_hash_table_6 (
      2  name VARCHAR2(30),
      3  value VARCHAR2(4000) )
      4  STORAGE (
      5  INITIAL 1M
      6  NEXT 512K
      7  PCTINCREASE 0
      8  MINEXTENTS 2
      9* MAXEXTENTS UNLIMITED )
    TEST@db102 > /
    Table created.
    TEST@db102 > select * from user_segments
      2  where segment_name='MY_HASH_TABLE_6';
    SEGMENT_NAME
    PARTITION_NAME                 SEGMENT_TYPE       TABLESPACE_NAME
         BYTES     BLOCKS    EXTENTS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS
    MAX_EXTENTS PCT_INCREASE  FREELISTS FREELIST_GROUPS BUFFER_
    MY_HASH_TABLE_6
                                   TABLE              USERS
       2097152        256          2        1572864                       1
    2147483645                                         DEFAULT
    TEST@db102 >

  • Bitmap indexes to track extents in locally managed tablespaces

    does any body have any idea that how oracle tracks free and used extents with bitmap indexes in locally managed tablespaces ?
    please reply

    There are no bitmap indexes, there is a 64k tablespace header block containing the bitmap of occupied and free extents.
    Sybrand Bakker
    Senior Oracle DBA

  • Rollback segment in locally manage tablespace

    Is it possible to create rollback segment in
    locally manage tablespace in oracle 8i(8.1.6)
    kuljeet pal singh

    Srini,
    Both the 10gR2 and 11gR2 versions of the database are using automatic undo management.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> show parameter undo
    NAME TYPE VALUE
    _undo_autotune boolean TRUE
    undo_management string AUTO
    undo_retention integer 14400
    undo_tablespace string UNDOTBS1
    SQL>
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> show parameter undo
    NAME TYPE VALUE
    undo_management string AUTO
    undo_retention integer 14400
    undo_tablespace string UNDOTBS1
    SQL>
    Do you know anything about Oracle no longer automatically creating R0 in 11gR2?
    Thanks,
    Bill

  • Locally managed tablespaces in Apps 11.0.3

    Hi,
    we are on Oracle Apps 11.0.3. we recently upgraded the database to 8i ( 8.1.7.4 ). I would like to change some high activity tablespaces to locally managed tablespaces to improve performance. Are there any issues in doing this ? Can I benefit from this or will I have any issues.
    thanks
    Ram

    We moved all the tablespaces to locally managed. Although we convereted the tablespaces to locally managed, occassionally we would see some of the ddl commands hang, cause being system still trying to update fet$ and uet$ tables. We were able to fix this by creating new locally managed tablespaces and move the contents to new locally managed tablespaces.

  • Downsides to Locally Managed Tablespaces?

    I am creating a database from scratch and am looking at locally managed tablespaces.
    Are there any downsides to locally managed tablespaces?
    I understand that if the SYSTEM tablespace is locally managed, then all other tablespaces need to be locally managed. Are there any cons to this?

    <quote source="AskTom.oracle.com">
    Locally managed tablespaces are much faster at allocating and de-allocating
    extents - many order of magnitudes faster.
    locally managed tablespaces decrease contention on the data dictionary.
    There is nothing bad about them, only good things.
    </quote>
    http://asktom.oracle.com/pls/ask/f?p=4950:8:720407411417074486::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:409670433426

  • Portal, Tablespace defragmentation and Locally Managed tablespaces

    We are setting up a Big portal installation. We want to use seperate small, medium and large tablespaces for data, lobs and index as described in the de-fragmention start living white paper. We will also use locally managed tablespaces.
    Has anybody set-up a portal installation like this. What where the large and medium data, index and lob segments ?
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by David Stoller ():
    Anyone try using IFS in a Locally Managed Tablespace? Is it OK?<HR></BLOCKQUOTE>
    Yes, we have all tablespaces managed locally. No problems with that.

Maybe you are looking for

  • Error sending IDOC from JCO Client to PI AEX 7.3.1

    Hi All We have a requirement to send an IDOC from a non SAP System to our ECC via PI AEX : JCO.Client --> PI AEX --> SAP ECC At this time, we are testing this scenario with a JAVA Client with JCO Library (3.0.10). Destination to PI is OK Destination

  • Error in Http Receiver adapter.

    HI Everyone, I am doing File to HTTP Scenario. I am Getting error as "ICM_HTTP_CONNECTION_FAILED" when i check in message monitoring. What could be the problem. Regards, Varun

  • BlackBerry Z10 Error "The file cannot be played due to an unexpected error (10)"

    Hope someone can help this one, I received a voice note through BlackBerry Messenger, after downloading I tried to play it and the following message popped up, "The file cannot be played due to an unexpected error (10)". I received another file, 3GP

  • Can I create a network using a DSL Gateway with iPad

    My brother and I purchased an iPad for our mum. She can see next doors Netgear WiFi but unfortunately they do not know the the security number to give mum access. So we were wondering if there is a way of creating a new network using an old wireless

  • Closing forms runtime

    Hi all, With Forms 9i, if we close the runtime by closing the browser window, it doesnt prompt to commit/rollback the data changes done. Why so? Experts please throw some light on this. Kiran