473,387 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

UNCATALOG/CATALOG

Could somebody confirm the behavior of UNCATALOG & CATALOG command based on
the following situation:

There are two NODES on DB2 UDB v8.1, MYNODEA & MYNODEB. MYNODEA has two
databases proda & prodb & MYNODEB has an alias database dbload - catalog
from proda initially. Three end-users are currently connected to dbload.

NODE MYNODEA:
Databases:
PRODA
PRODB
NODE MYNODEB
DBLOAD (PRODA) (catalog from proda)
users connected to DBLOAD:

user1 - currently processing long running query
user2 - connected to DBLOAD doing nothing
user3 - connected to DBLOAD doing nothing

What will happen to these end-users after the following command is issued:
UNCATALOG DATABASE DBLOAD;
CATALOG DB PRODB AS DBLOAD AT NODE MYNODE;

Questions:
1) Is the query processing run by USER1 will stop?
2) What will happen to USER1, is it going to be disconnected?
3) What will happen to USER1 & USER2, are they automatically disconnected as
well & if they run queries after UNCATALOGing the DBLOAD, can they still run
the query & which database they are pointing to?
Your help would be highly appreciated.
maricel.



Nov 12 '05 #1
3 15593
maricel <ma*****@xtra.co.nz> wrote:
Could somebody confirm the behavior of UNCATALOG & CATALOG command based
on the following situation:

There are two NODES on DB2 UDB v8.1, MYNODEA & MYNODEB. MYNODEA has two
databases proda & prodb & MYNODEB has an alias database dbload - catalog
from proda initially. Three end-users are currently connected to dbload.

NODE MYNODEA:
Databases:
PRODA
PRODB
NODE MYNODEB
DBLOAD (PRODA) (catalog from proda)
users connected to DBLOAD:

user1 - currently processing long running query
user2 - connected to DBLOAD doing nothing
user3 - connected to DBLOAD doing nothing

What will happen to these end-users after the following command is issued:
UNCATALOG DATABASE DBLOAD;
CATALOG DB PRODB AS DBLOAD AT NODE MYNODE;
Nothing. They are still connected to PRODA.
Questions:
1) Is the query processing run by USER1 will stop?
No.
2) What will happen to USER1, is it going to be disconnected?
No.
3) What will happen to USER1 & USER2, are they automatically disconnected
as well & if they run queries after UNCATALOGing the DBLOAD, can they
still run the query & which database they are pointing to?


They stay connected and run their queries against PRODA.

The db2agent processes that act on behalf of your users have the directory
information cached. The cache is not changed on the fly.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #2
Thanks for this info.
How are you going to re-direct those currently connected users to point to
the new database?
Is there a mechanism to update their directory cache to point to PRODB on
the fly?

Many Thanks,
maricel

"Knut Stolze" <st****@de.ibm.com> wrote in message
news:c0**********@fsuj29.rz.uni-jena.de...
maricel <ma*****@xtra.co.nz> wrote:
Could somebody confirm the behavior of UNCATALOG & CATALOG command based
on the following situation:

There are two NODES on DB2 UDB v8.1, MYNODEA & MYNODEB. MYNODEA has two
databases proda & prodb & MYNODEB has an alias database dbload - catalog
from proda initially. Three end-users are currently connected to dbload.

NODE MYNODEA:
Databases:
PRODA
PRODB
NODE MYNODEB
DBLOAD (PRODA) (catalog from proda)
users connected to DBLOAD:

user1 - currently processing long running query
user2 - connected to DBLOAD doing nothing
user3 - connected to DBLOAD doing nothing

What will happen to these end-users after the following command is issued: UNCATALOG DATABASE DBLOAD;
CATALOG DB PRODB AS DBLOAD AT NODE MYNODE;


Nothing. They are still connected to PRODA.
Questions:
1) Is the query processing run by USER1 will stop?


No.
2) What will happen to USER1, is it going to be disconnected?


No.
3) What will happen to USER1 & USER2, are they automatically disconnected as well & if they run queries after UNCATALOGing the DBLOAD, can they
still run the query & which database they are pointing to?


They stay connected and run their queries against PRODA.

The db2agent processes that act on behalf of your users have the directory
information cached. The cache is not changed on the fly.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena

Nov 12 '05 #3
If you do not want to have to update any client files, then you will have to
work from MYNODEB. Make sure that on MYNODEB, the instance that owns DBLOAD
is active.
Beacuase DBLOAD is the alias of PRODA it means that MYNODEA is already
identified to MYNOEDB
UNCATALOG DATABASE DBLOAD
CATALOG DATABASE PRODB AS DBLOAD AT NODE MYNODEA

As these execute, whoever was connected to PRODA via DBLOAD will stay there
until they connect reset,
I believe that for the new connection requests, instead of reading the
cache, the instance will realize that the file has been changed and the new
connection requests should go to to PRODB via DBLOAD.

To ensure that it is the case, if you can afford it, stop/start the
instance. If not, and you're on V*, look at using the QUIESCE command at
either/or the instance or db level.
HTH, Pierre.
"maricel" <ma*****@xtra.co.nz> a écrit dans le message de
news:qn********************@news.xtra.co.nz...
Thanks for this info.
How are you going to re-direct those currently connected users to point to
the new database?
Is there a mechanism to update their directory cache to point to PRODB on
the fly?

Many Thanks,
maricel

"Knut Stolze" <st****@de.ibm.com> wrote in message
news:c0**********@fsuj29.rz.uni-jena.de...
maricel <ma*****@xtra.co.nz> wrote:
Could somebody confirm the behavior of UNCATALOG & CATALOG command based on the following situation:

There are two NODES on DB2 UDB v8.1, MYNODEA & MYNODEB. MYNODEA has two databases proda & prodb & MYNODEB has an alias database dbload - catalog from proda initially. Three end-users are currently connected to dbload.
NODE MYNODEA:
Databases:
PRODA
PRODB
NODE MYNODEB
DBLOAD (PRODA) (catalog from proda)
users connected to DBLOAD:

user1 - currently processing long running query
user2 - connected to DBLOAD doing nothing
user3 - connected to DBLOAD doing nothing

What will happen to these end-users after the following command is issued: UNCATALOG DATABASE DBLOAD;
CATALOG DB PRODB AS DBLOAD AT NODE MYNODE;


Nothing. They are still connected to PRODA.
Questions:
1) Is the query processing run by USER1 will stop?


No.
2) What will happen to USER1, is it going to be disconnected?


No.
3) What will happen to USER1 & USER2, are they automatically disconnected as well & if they run queries after UNCATALOGing the DBLOAD, can they
still run the query & which database they are pointing to?


They stay connected and run their queries against PRODA.

The db2agent processes that act on behalf of your users have the directory information cached. The cache is not changed on the fly.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena



Nov 12 '05 #4

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

Similar topics

2
by: Jefferis NoSpamme | last post by:
I am looking at an old query and I cannot remember or figure out what this part of the query means: `Catalog`.item like '%A\-%' It is the like '%A\-%' I cannot figure out. Then entire...
2
by: Simon Strandgaard | last post by:
I am trying to understand how to create a 'catalog.xml' file for my docbook-xml documents. If I understand correct a local catalog.xml file can both avoid hardcoding in makefiles (portability),...
6
by: Vincent Lefevre | last post by:
I would like to know if the base URI considered to resolve an unparsed entity defined by a relative URI should be the URI before or after its rewriting due to a possible catalog. Let's take an...
6
by: Chuck | last post by:
What's the difference between using "catalog node" and catalog admin node"? -- Chuck Remove "_nospam" to reply by email
4
by: bikkaran | last post by:
Hi , I want to catalog a database and I have the follwoing information with me. Node name = abcdef Comment = Protocol =...
0
by: mel_apiso | last post by:
Hi, after uncatalog one database, and catalog again with other name, if I try to connect with this database, everything is ok, but list applications only show me the connection with the...
0
by: berandor | last post by:
I am attempting to use the "Catalog Library List" feature of the IBMDA400 oledb provider. My connection string is as follows: new OleDbConnection("Provider=IBMDA400.DataSource.1;Data...
2
by: sandeep.manthena | last post by:
Hi everyone, Can anyone answers my questions. My server is AIX and is 5.2 and the db2 udb of V 8.1 Fixpak 9. What exactly is the tools catalog for? How it is uaseful in performing automatic...
0
by: Laurence | last post by:
Hi folks, I used the following CLP commands to access DB2/400 in AIX 5L/DB2 EE, and it works. CATALOG TCPIP NODE AS400 REMOTE 192.168.10.51 SERVER 446 SYSTEM PROD400 OSTYPE OS400 CATALOG...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...

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.