473,769 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

sqldbdir

Hi,
is there any way to recreate manually or by an Exe the file sqldbdir in the
system and local database directory.

My problem is :
i have lost both sqldbdir and want to recatalog the database but this doesnt
work
the catalog command process succesfully but i can't connect since db2 don't
know the name of the subdirectory
where the database resides.

ex :
i have a instance TEST
and a database DB1 under d:\TEST\node000 0\sql00001

but i haven't these two files
sqldbdir under \sqllib\test\sq ldbdir and d:\TEST\node000 0\sqldbdir\sqld bdir
thx in advance
Nov 12 '05 #1
3 5120
You can use the "on path" syntax in catalog database to specify a
different path than the default.

Paul wrote:
Hi,
is there any way to recreate manually or by an Exe the file sqldbdir in the
system and local database directory.

My problem is :
i have lost both sqldbdir and want to recatalog the database but this doesnt
work
the catalog command process succesfully but i can't connect since db2 don't
know the name of the subdirectory
where the database resides.

ex :
i have a instance TEST
and a database DB1 under d:\TEST\node000 0\sql00001

but i haven't these two files
sqldbdir under \sqllib\test\sq ldbdir and d:\TEST\node000 0\sqldbdir\sqld bdir
thx in advance

Y
Nov 12 '05 #2
hi thx for answer,
but that's not what i ask
i know this command but i'll give you a example

imagine on w2000
one instance TEST1 created on d:
so local database directory is on d:\TEST1\node00 00\sqldbdir\sqd bdir
and system database directory on \program
files\sqllib\TE ST1\sqldbdir\sq dbdir

i create a database DB1 on d: -> db is located on
\d:\test1\node0 000\sql00001

now if you rename the rep sql00001 in sql00002

how can you tell to db2 that DB1 is located in d:\test1\node00 00\sql00002 ?


"Sean McKeough" <mc******@nospa m.ca.ibm.com> a écrit dans le message de
news: c1**********@ha nover.torolab.i bm.com...
You can use the "on path" syntax in catalog database to specify a
different path than the default.

Nov 12 '05 #3
You shouldn't rename directories where databases are located.
In the local database directory the old directory name is still present.
I don't think patching this will help you.

Paul wrote:
hi thx for answer,
but that's not what i ask
i know this command but i'll give you a example

imagine on w2000
one instance TEST1 created on d:
so local database directory is on d:\TEST1\node00 00\sqldbdir\sqd bdir
and system database directory on \program
files\sqllib\T EST1\sqldbdir\s qdbdir

i create a database DB1 on d: -> db is located on
\d:\test1\node 0000\sql00001

now if you rename the rep sql00001 in sql00002

how can you tell to db2 that DB1 is located in d:\test1\node00 00\sql00002 ?


"Sean McKeough" <mc******@nospa m.ca.ibm.com> a écrit dans le message de
news: c1**********@ha nover.torolab.i bm.com...

You can use the "on path" syntax in catalog database to specify a
different path than the default.



--
Anton Versteeg
IBM Certified DB2 Specialist
IBM Netherlands
Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
3659
by: Rob S | last post by:
I have UDB 8.1 Personal Edition installed. I'm using Development centre to develop JAVA Stored Procedues. I am unable to debug them. I have installed IBM Distributed Debugger and have set DB2ROUTINE_DEBUG=ON. I installed Distributed Debugger after UDB. The Procs will build with debug but no debugger window appears when run in debug mode. I followed the instructions that came with Debugger regarding the installation directory etc.
5
7945
by: Ale | last post by:
Ciao a tutti. Ho eliminato il database di esempio SAMPLE(non cancellato). Ora lo voglio reinstallare ma durante l'installazione mi da il seguente errore: nella finestra con scritto SQL1005N c'è scritto : "Gli alias "SAMPLE" del database già esistono nel catalogo database locale o di sistema. SQL1013N Il nome alias di un database o il nome del database "SAMPLE" non è stato trovato. SQLSTATE=42705.
2
2574
by: Vikrant | last post by:
Hi DB2/UDB Gurus, I got the same problem , when I am migrating DB2/UDB 5.2 to 7.2 EE under AIX. Is this a known problem ?, I would sincerely appreciate (well if you want to have money, that is also possible, I am serious)
2
8247
by: Ilja Booij | last post by:
Hi all, I'm having trouble using the db2relocatedb command. I have to move a database which was created under the db2inst1 user home dir, to a separate partition. Following the instructions in the DB2 online manuals, I have come up with the following config file for db2relocatedb: DB_NAME=IPI DB_PATH=/db2home/db2inst1,/database
1
3863
by: Frederick Page | last post by:
Hi everybody, we're using DB2 7.2 FP 11 on WinNT machines, today one server was down, because the complete directory E:\DB2\NODE0000\SQLDBDIR was gone. Question: I restored this directory from a TSM-backup, but could I have done something else? After the restore most databases worked again, with the exception of one: "SQL5005C" (System error). I had to restore the database from a
4
5777
by: Oliver Stratmann | last post by:
Hello All, does anyone know, where the configuration of a db2-client on a windows-machine is stored? I searched the registry and the filesystem on my machine and couldn't find anything. Is there a file or a node in the registry, where all the information (like port-number, db-name and so on) can be found. Is there another place for this piece of information?
8
7899
by: Kamlesh | last post by:
Hi, How do I know the physical database path of a database. When I goto the DB2INSTANCE users's directory (/home/db2inst1), I see following folders: /db2inst1/NODE0000/SQL00001 /db2inst1/NODE0000/SQL00002 /db2inst1/NODE0000/SQL00003 /db2inst1/NODE0000/SQL00004
9
8415
by: db2inst2 | last post by:
Hi all, I am in a situation to restore a DB just from the Files (No Backup Image) I have got all the files of NODE0000 directory. Platform WIN 2000 pro And db2 8.1 fp 2 Is it possible to restore the DB. How do i do it?
1
1723
by: NG | last post by:
Hi, We are using DB2V7.2 with fixpack 13 with AIX 5.2. We created a new Database under the file system '/qcgprodb1/data'. From that point we are getting the following error every 17 sec. 2005-03-21-09.18.10.219725 Instance:gfxprod1 Node:000 PID:74596(db2bp) Appid: oper_system_services sqloopenp Probe:20
0
9579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9422
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10208
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9987
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9857
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8867
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5294
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2812
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.