Can't catalog or drop database

I was creating a db for pruning my db2hist files.  That another thread.  Problem is that the database that I created and lists in the db won't drop as it says from the db2 drop db DOD .....database DOD could not be found.  List db directory shows it. 
Database 1 entry:
Database alias                       = DMD
Database name                        = DMD
Local database directory             = /db2/P01
Database release level               = d.00
Comment                              =
Directory entry type                 = Indirect
Catalog database partition number    = 0
Alternate server hostname            =
Alternate server port number         =
I tried to catalog it but it doesn't work as the files are no longer there.  How can I trick DB2 (or what do I need to do) to resolve this and get rid of this entry?
Thanks,
Len.

Hi Leonard
Could you please try below steps.
db2 "connect to DBSID"
db2 "quiesce database immediate force connections"
db2 "unquiesce database"
db2 "force application all"
db2stop force
db2start
db2 "drop database DBSID"
Thanks
Sadiq

Similar Messages

  • Can we have a common database for TARGER and CATALOG in RMAN?

    Hi,
    Can we have a common database for TARGER and CATALOG in RMAN?
    I am trying to duplicate a auxilary database using rman. In this situation can i have common db for target and catalog?
    Please suggest.
    Thanks
    Naveen.

    You just won't use a CATALOG database.
    Check Creating a Duplicate Database with RMAN for the full process.

  • DUPLICATE: NEED TO "DROP DATABASE" BEFORE REFRESH OR CAN REMOVE DATAFILES

    I have TARGET and AUX, i need to REFRESH my AUX, so the question is:
    i need to "DROP DATABASE" or just REMOVE DATAFILES, CONTROLFILES, REDO LOGS?
    Sure, i will create new INIT.ORA , etc...
    Cheers

    Either command will do.
    Hemant K Chitale

  • Unable to drop database user

    Hi All,
    I am unable to drop database user and getting the folllowing error:
    " must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables "
    I find 3 table with AQ prefix in the schema but unable to drop these table even by using "sys" user.
    Any idea how can I do that ?
    Regards,

    Hi,
    select object_name,object_type from dba_objects where owner='USERNAME' and object_name like '%AQ%';TO drop the queue table, login as the owner and
    exec DBMS_AQADM.DROP_QUEUE_TABLE(queue_table=>'PASTE_THE_OBJECT_NAME_FROM_ABOVE',force =>TRUE);Anand

  • Drag and dropping database objects in Jdev

    I evaluated Visual Cafe and deciding wheather to go with VC or JDev. One of the cool things I noticed in VC is that one can drag and drop database objects in the form using DBNavigator. I haven't seen anything similar in JDev 3.1. Does this or something similar exist in JDev?
    Regards,
    Mark

    Mark,
    Yes, the DB Navigator in Visual Cafe may provide a nice simple look at the database Tables - but so does JDeveloper's Database Navigator - VC may excel in the Drag and Drop functionality - but this is not the real objective. Let me explain...
    When creating a real enterprise level application in Visual Cafe, you begin to discover that DB Navigator along with it's nifty Drag & Drop is no match for JDeveloper's unprecedented level of database integration. JDeveloper's Database related integration includes (but not limited to):
    - JDevelopers Database Navigator
    - Integrated SQLJ environment
    - Tight Business Components for Java (BC4J) integration
    - Wizard driven Form generation (thin & thick)
    - DAC Controls / InfoSwing components
    - Named Connections / Connection Manager
    - WebBeans / JSP Element Wizard
    The closest thing in JDeveloper to what you are referring to in VC is JDeveloper's support for the Design mode which allows you to design both graphical and non-graphical elements. In particular, JDeveloper allows you to design your InfoSwing and InfoProducer components using the Designer - by selecting the component (JavaBean) from the Component Palette and then [Dragging Optional] Dropping it on either the Design Canvas or the Structure pane (lower pane of Navigator window).
    For non-visual elements (such as InfoProducer elements), the Structure pane allows for Creation via Drag & Drop and allows for property setting by using the Property Inspector (Since it is a JavaBean...).
    There are many reasons why JDeveloper provides a much richer and more productive development environment than Visual Cafe. Most have to do with seeking a complete enterprise level solution. JDeveloper adresses the enterprise level application developers needs directly with integration of elements from Tools & Wizards to the integration of a complete application development framework - Oracle Business Components for Java - No other tool can provide you with such a rich and productive development environment.
    John - JDeveloper Team
    null

  • How to create interface where you can view metadata of several databases

    How to create interface where we can view metadata of several databases:
    Oracle Apex should display metadata of this particular DB (later on we can include multiple DB’s)
              a. Report should first display DB name
              b. When clicked on DB name, should display 3 schemas
              c. When clicked on 1 schema, should display tables – when clicked on each table,
              should display various column names and its corresponding metadata.
              (similarly for other schema’s also)
              d. In short, it should be like a drill down report.
    Help required for craeting like above.
    Appreciate your help.

    I did something similar a while back. I had an application reading from multiple schema's for reporting purposes..IN that case atleast we just would build the selects using a function reurning SQL select, so that we could have an application item with the selected schema they wanted to use to build into the select returned...
    For forms, that would be an interesting idea, don't know how you can dynamically change the table owner name, since it is a drop down control in development..
    Thank you,
    Tony Miller
    Webster, TX
    I cried because I did not have an office with a door until I met a man who had no cubicle.
    -Dilbert
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Drop database link

    I'm having trouble dropping a database link. In SQLPlus I get:
    SQL> SELECT db_link FROM USER_DB_LINKS where db_link like 'PROD%';
    DB_LINK
    PROD.CBS.STATE.OR.US
    PROD.CBS.STATE.OR.US
    PROD_DB.CBS.STATE.OR.US
    PROD_RI.CBS.STATE.OR.US
    SQL> drop database link PROD_RI.CBS.STATE.OR.US;
    drop database link PROD_RI.CBS.STATE.OR.US
    ERROR at line 1:
    ORA-02084: database name is missing a component
    This is the method identified in the 10g manual: http://download-west.oracle.com/docs/cd/B13789_01/server.101/b10739/ds_admin.htm#sthref3729
    When I try to drop the same link using OEM, I get the message:
    ORA-02024: database link not found
    In the case of OEM, I'm logging on as a different user then the owner of the link. In the case of SQLPlus, I get the same error whether or not I'm logged in as the owner of the db link, or myself.
    Thanks,
    Chuck

    Using the quotes worked:
    drop database link "PROD_RI.CBS.STATE.OR.US";
    but only if I own the database link. How, as the DBA, can I get rid of a link that someone else created (our DEV system is littered with experiemental links).
    The same above doesn't work if it's owned by someone else:
    SQL> DROP DATABASE LINK "IRISHRD.CBS.STATE.OR.US";
    DROP DATABASE LINK "IRISHRD.CBS.STATE.OR.US"
    ERROR at line 1:
    ORA-02024: database link not found
    I tried changing the schema context to no avail either:
    SQL> DROP DATABASE LINK "IRISHRD.CBS.STATE.OR.US";
    DROP DATABASE LINK "IRISHRD.CBS.STATE.OR.US"
    ERROR at line 1:
    ORA-01031: insufficient privileges
    Thanks,
    Chuck

  • Drop database

    Hi,
    in 11G R2
    to drop database, it should be in restrict mode. How to put it in strict :
    alter database mount restricted
    Thank you.

    Kuljeet Pal Singh wrote:
    shutdown abort;
    startup mount exclusive restrict;
    drop database;Instead of shut abort, you can start with force :)
    startup force mount exclusive restrict;

  • Drop database in Oracle9i

    I have a situation wherein I need to drop a database and recreate the database using a different NLS_characterset. The software (Cognos) I am trying to install will not accept the default characterset and only prefers in a particular format. I am using Oracle 9i. I would like to know how I could drop the database and recreate a new one database with the correct characterset.
    Also, can you advise me as to how to create the database using NLS_CHARACTERSET with either UTF-8 or AL32UTF8? Also, is there a way I can change this parameter in my existing database to the value I need. I need to address this immediately. Can the experts on this forum please guide me.

    Eliminating a database is quite easy, you can do it either manually or by means of the dbca. By means of the dbca you can also create a customized database and specify the desired character set.
    Another option is to try to change the database character set, but prior to execute this task you should use the character set scanner tool to verify if your character set is suitable to be changed. You are required to use the csscan tool to determine if this is or isn't possible.
    ~ Madrid
    http://hrivera99.blogspot.com/

  • Drop database vs. dbca delete database

    So I'd like to delete this database: control files, datafiles, log files, spfiles, everything. leave no trace.
    I can use good old sqlplus and run "drop database;", or I can use DBCA and do "delete database".
    What is the difference?
    Documentation clearly explains what "drop database" will do, but it does not explain what DBCA is doing (maybe just running drop database behind the curtains?).

    from the book of «OCP - Oracle Database 10g Administration I», Chap 3. -- Using the DBCA to Delete a Database p 3 - 14
    «Dropping a database involves removing its data files, redo log files, control files, and
    initialization parameter files. The DROP DATABASE statement deletes all control files and all
    other database files listed in the control file. To use the DROP DATABASE statement
    successfully, all the following conditions must apply:
    • The database must be mounted and closed.
    • The database must be mounted exclusively—not in shared mode.
    • The database must be mounted as RESTRICTED.
    An example of this statement is:
    DROP DATABASE;
    The DROP DATABASE statement has no effect on archived log files nor does it have any effect
    on copies or backups of the database. It is best to use Recovery Manager (RMAN) to delete such
    files. If the database is on raw disks, then the actual raw disk special files are not deleted.»
    there is no distinction between the DBCA Delete a database and the drop database statement.

  • ILR DPM "failed to gather item level catalog for 4 database"

    Dear all,
    Im dealing with an "DPM failed to gather item level catalog for 4 database(s) .... (ID 3133)" error.
    I have check log error at Sharepoint Agent logs and got the following:
    42AC      32F4       08/24     23:04:18.574       31           WSSCatalogGenerator.cs(234)  
    [0000000000F488B0]                       WARNING           [UniqueId 600] Caught Exception trying to
    generate a Catalog for Database [SQLCLU2\MSSQLSERVER_2\C_SP15_Content_WS_Technology]
    42AC      32F4       08/24     23:01:16.029       31           WSSCatalogGenerator.cs(234)  
    [0000000000F488B0]                       WARNING           [UniqueId 599] Caught Exception trying to
    generate a Catalog for Database [SQLCLU2\MSSQLSERVER_2\C_SP15_Content_WS_Comms]
    Any clue about how to solve this ?
    thanks in advace

    Hi,
    In the snip provided above does the log outline what the
    Exception Message is equal to?
    Example of what you may see in the stack  [
    Exception Message = ]  the line below that should state what the warning <is for>. This maybe helpful to narrowing down the failure.
    **Sample snip**
    WARNING Exception Message   = 
    WARNING <                           >
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to
    other community members reading the thread. Regards,Dwayne Jackson II. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights."

  • ORA-02026 when dropping database.

    Is the Drop Database functionality available in 9i? This is what I get when I try to execute the statement under sys. I also went through the DBCA to drop the database but for some reason none of my databases are showing up in it. Looked under the help file, and it said my SID is not in its "Shell"... whatever that means...
    SQL> DROP DATABASE;
    DROP DATABASE
    ERROR at line 1:
    ORA-02026: missing LINK keyword
    So. my question is, is there a way to get my databases to show up in the DBCA? If not, how do I drop a database in 9i manually? Thanks for all the help so far :)

    Thats cute guys, but you fail to notice 98% of the questions that are asked on this forum can be answered directly from some kind of documentation written either in the past or close to present. If what your asking is for people to check documentation before posting, what your really asking for is a INACTIVE FORUM.
    So tell me, who's being lazy? The developer thats found a faster way to get their questions answered (which coincidentally is getting more work done at light speed) or the plethora of "trying-to-be-oracle-aces" who continually ask for less work on the very forum they're supposed to help people on?
    I imagine that this forum is supposed to help oracle lessen the work load of meta-link. So do you job guys, and help some people. Flaming people will just make you look like an *ss.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Dynamic drop database link

    Hi,
    As user SYS i need to Dynamically DROP all the database link in the Database.
    I cant drop private database link .
    For example i have few database links under APPS schema that i would like to drop.
    Please note that it should be done by SYS user
    SQL> declare
      2 
      3  cursor c is
      4  select *
      5  from dba_db_links;
      6 
      7 
      8  begin
      9  for c_rec in c loop
    10 
    11      if c_rec.owner = 'PUBLIC' then
    12          execute immediate ' drop public database link '||'"'||c_rec.db_link||'"';
    13      else
    14          dbms_output.put_line (' drop database link '||'"'||c_rec.db_link||'"');
    15           execute immediate ' drop database link '||'"'||c_rec.db_link||'"';
    16      end if;     
    17  end loop;
    18 
    19  end;
    20  /
    drop database link "APPS_TO_APPS"
    declare
    ERROR at line 1:
    ORA-02024: database link not found
    ORA-06512: at line 15Thanks

    791550 wrote:
    Yet it doest work please see bellow:Correct. The domain name can optionally be included with the database name. So if you for example want to drop database link "ABC.DEF.WORLD.COM", does ABC refer to the link name and DEF.WORLD.COM to the domain?
    Or is ABC the schema name, DEF the link name and WORLD.COM the domain?
    And what is schema ABC exists with link DEF.WORLD.COM and in the current schema there's a link called ABC for domain DEF.WORLD.COM ?
    So there is no clean and correct way for Oracle to resolve the schema scope of a database link name.
    If you, as SYS, want to drop all database links, then you can use the DBMS_SYS_SQL interface - this is a (mostly undocumented) interface for parsing SQL as any specific schema on the database. The DBMS_SQL interface (restricted to parsing as the current schema) is documented and runs on top of this system interface.
    E.g.
    create or replace procedure DropDbLink( schemaName varchar2, dbLink varchar2 ) is
            cur     number;
            plsql   varchar2(1000);
            uid     number;
            rc      number;
    begin
            select
                    u.user_id into uid
            from    dba_users u
            where   u.username = schemaName;
            plsql := 'drop database link "'||dbLink||'"';
            cur := SYS.DBMS_SYS_SQL.open_cursor;
            SYS.DBMS_SYS_SQL.parse_as_user(
                    c => cur,
                    statement => plsql,
                    language_flag => DBMS_SQL.native,
                    userID => uid
            rc := SYS.DBMS_SYS_SQL.execute( cur );
            SYS.DBMS_SYS_SQL.close_cursor( cur );
    end;
    /This proc, as SYS, allows you to drop any private database link from the SYS schema.

  • Sql Drop database;

    Hello All:
    I always used the old approach of deleting the files data,log,control prior to any database refresh using OS rm command. Currently with 11gR2 2node RAC cluster , storage on ASM i did the same successfully. Just wondering for any inputs on using SQL>DROP DATABASE; Command if anyone has used it just so i can avoid a few steps in the refresh process. Your experiences will definetely help.
    Thanks
    San~

    I,do not need manually delete datafile/controlfile/logfile,you can use drop database;
    sqlplus "/as sysba"
    shutdown immediate;
    startup mount;
    alter system enable restricted session;
    drop database;
    all files related this database will automatically delete,but recommend way is using DBCA.
    In additonally, you have to need to use srvctl to remove specific instances settings from CRS,also you can drop ASM disk groups.

  • A problem to drop database and its backups.

    HI,
    database: 10.2.0.4.0
    OS: AIX
    SQL> startup mount exclusive;
    ORACLE instance started.
    Total System Global Area 1610612736 bytes
    Fixed Size 2084336 bytes
    Variable Size 385876496 bytes
    Database Buffers 1174405120 bytes
    Redo Buffers 48246784 bytes
    Database mounted.
    SQL> alter system enable restricted session;
    sql> exit
    rman target / catalog rman@rmancatalog
    RMAN> drop database including backups;
    starting full resync of recovery catalog
    full resync complete
    database name is "xxxx" and DBID is xxxxx
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of drop db & bck command at 09/28/2012 15:40:12
    RMAN-06941: Database must be closed and mounted EXCLUSIVE and RESTRICTED.
    RMAN> sql 'alter system enable restricted session';
    sql statement: alter system enable restricted session
    RMAN>
    RMAN> drop database including backups;
    database name is "xxxxx" and DBID is xxxxx
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of drop db & bck command at 09/28/2012 15:41:37
    RMAN-06941: Database must be closed and mounted EXCLUSIVE and RESTRICTED.
    what is wrong?
    thank you
    Edited by: 951932 on Sep 28, 2012 1:49 PM

    Hello,
    this is what I did, anyway, still failed. thank you very much.
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup restrict mount
    ORACLE instance started.
    Total System Global Area 1610612736 bytes
    Fixed Size 2084336 bytes
    Variable Size 385876496 bytes
    Database Buffers 1174405120 bytes
    Redo Buffers 48246784 bytes
    Database mounted.
    SQL> drop database;
    drop database
    ERROR at line 1:
    ORA-01586: database must be mounted EXCLUSIVE and not open for this operation
    SQL> alter system enable restricted session;
    System altered.
    SQL> drop database;
    drop database
    ERROR at line 1:
    ORA-01586: database must be mounted EXCLUSIVE and not open for this operation
    ### try another way.
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup nomount;
    ORACLE instance started.
    Total System Global Area 1610612736 bytes
    Fixed Size 2084336 bytes
    Variable Size 385876496 bytes
    Database Buffers 1174405120 bytes
    Redo Buffers 48246784 bytes
    SQL> alter database mount exclusive;
    Database altered.
    SQL> SQL> alter system enable restricted session;
    System altered.
    SQL> SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle][gamfcs]/home/oracle>rman target /
    Recovery Manager: Release 10.2.0.4.0 - Production on Mon Oct 8 09:29:36 2012
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    connected to target database: GAMFCS (DBID=2082941597)
    RMAN>
    RMAN> drop database including backups;
    database name is "GAMFCS" and DBID is 2082941597
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of drop db & bck command at 10/08/2012 09:29:57
    RMAN-06941: Database must be closed and mounted EXCLUSIVE and RESTRICTED.
    Edited by: 951932 on Oct 8, 2012 7:33 AM

Maybe you are looking for