Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2004
    Location
    Copenhagen
    Posts
    220

    Unanswered: Dropping a database

    Unix 5.2 DB2 v.8.1.1

    Does anybody have a clue to why I can't
    drop the database in question? (# 1)

    db2 => list database directory

    System Database Directory

    Number of entries in the directory = 3

    Database 1 entry:

    Database alias = ULR
    Database name = SST
    Local database directory = /home/db2inst1
    Database release level = a.00
    Comment = Ulykkesindberetning
    Directory entry type = Indirect
    Catalog database partition number = 0

    Database 2 entry:

    Database alias = METADB
    Database name = METADB
    Local database directory = /home/db2inst1
    Database release level = a.00
    Comment =
    Directory entry type = Indirect
    Catalog database partition number = 0

    Database 3 entry:

    Database alias = DOSA
    Database name = DOSA
    Local database directory = /home/db2inst1
    Database release level = a.00
    Comment =
    Directory entry type = Indirect
    Catalog database partition number = 0

    db2 => get connection state

    Database Connection State

    Connection state = Connectable and Unconnected
    Connection mode =
    Local database alias =
    Database name =

    db2 =>
    db2 =>
    db2 => drop database ulr
    SQL1013N The database alias name or database name "SST " could not be
    found. SQLSTATE=42705
    db2 => drop database SST
    SQL1013N The database alias name or database name "SST " could not be
    found. SQLSTATE=42705
    db2 =>

    Thanks
    Kristian K. Hansen
    Project Supervisor
    National Board of Health

  2. #2
    Join Date
    Aug 2001
    Location
    UK
    Posts
    4,650

    Re: Dropping a database

    See if SST is included in

    db2 list db directory on /home/db2inst1

    If it is not listed, it means, your ULR entry is a 'rouge' entry ..

    Just say, uncatalog database ULR

    HTH

    Sathyaram
    Visit the new-look IDUG Website , register to gain access to the excellent content.

  3. #3
    Join Date
    Feb 2004
    Location
    Copenhagen
    Posts
    220
    You're the Man, sathyaram_s

    Thanks a lot.

    Cheers
    Kristian K. Hansen
    Project Supervisor
    National Board of Health

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •