editing SQLDBDIR

editing SQLDBDIR

Post by robe » Fri, 14 Jun 2002 04:36:52



i had two databases which got hosed.  all traces are gone,
except that the file SQLDBDIR still contains entries, which
show up in Control Center db tree.  tired of looking at
them.

is there a way to tell DB2 to rebuild SQLDBDIR?  alternatively,
i've looked at the file in my trusty hex editor, and can
identify the entries; to a degree.  can see the db names as
pairs.  can't tell where the entries start and stop, nor
whether there is a db count that has to be changed.

any way?

DB -> 7.1 fp 3
OS -> NT4/SP6

toodles,
robert

 
 
 

editing SQLDBDIR

Post by Haro » Fri, 14 Jun 2002 06:54:53



Quote:>i had two databases which got hosed.  all traces are gone,
>except that the file SQLDBDIR still contains entries, which
>show up in Control Center db tree.  tired of looking at
>them.

>is there a way to tell DB2 to rebuild SQLDBDIR?  alternatively,
>i've looked at the file in my trusty hex editor, and can
>identify the entries; to a degree.  can see the db names as
>pairs.  can't tell where the entries start and stop, nor
>whether there is a db count that has to be changed.

>any way?

>DB -> 7.1 fp 3
>OS -> NT4/SP6

>toodles,
>robert

Try using "db2 uncatalog database MYDB"... that should remove them
from the SQLDBDIR

 
 
 

editing SQLDBDIR

Post by robe » Fri, 14 Jun 2002 22:09:09


after hitting the send button, thought i should have mentioned
that i tried that.  got back message that DB didn't exist.  went
so far as to create a new database with same number of characters
in name; copy the data directory in C:\DB2; change names and
directory numbers in the files.  still won't get rid of it.

tried UNCATALOG with ODBC option:  said that was successful,
but the little blighters won't go away.

toodles
robert



> >i had two databases which got hosed.  all traces are gone,
> >except that the file SQLDBDIR still contains entries, which
> >show up in Control Center db tree.  tired of looking at
> >them.

> >is there a way to tell DB2 to rebuild SQLDBDIR?  alternatively,
> >i've looked at the file in my trusty hex editor, and can
> >identify the entries; to a degree.  can see the db names as
> >pairs.  can't tell where the entries start and stop, nor
> >whether there is a db count that has to be changed.

> >any way?

> >DB -> 7.1 fp 3
> >OS -> NT4/SP6

> >toodles,
> >robert

> Try using "db2 uncatalog database MYDB"... that should remove them
> from the SQLDBDIR

 
 
 

1. IBM DB2 Files SQLDBDIR and SQLNODIR

If you cannot read those files (they are in binary) - how do you know
that you need to read them in the first place?
Did you look into LIST DATABASE DIRECTORY and/or LIST NODE DIRECTORY
commands?
Did you look into sqledgne() and sqlengne API?

Please elaborate what you are trying to do a little bit more.

--
Jan M. Nelken

-------------------------------------------------------------------------------

Home   e-mail: nelkenj at attglobal period net

IBM Certified Solutions Expert DB2 UDB V6.1 for UNIX, Windows & OS/2
    - Database Administration,
    - Application Development
IBM Certified Advanced Technical Expert DB2 UDB V6.1 for UNIX, Windows &
OS/2
    - Distributed Relational Database Architecture (DRDA)
-------------------------------------------------------------------------------

2. Meta Data Services

3. sqldbdir must reside in a SHARED directory

4. USE LTRIM and RTRIM

5. Displaying edited articles by latest edited date

6. Visalink/Intellicharge

7. edit or not edit !!! ;-)

8. The Magical Mystery Index

9. D1-Oracle-Tquery-Dbgrid edit gives 'couldnt perform edit cos another user changed record

10. editing drop down edit list

11. VFP5 - How to edit an edit box

12. VFP5 - Can I Edit an Edit Box?

13. Access:adp: No editing capabilities when RecordSource is a view, and user doesn't have editing rights on undelying table