473,698 Members | 2,571 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 15632
maricel <ma*****@xtra.c o.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.un i-jena.de...
maricel <ma*****@xtra.c o.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.c o.nz> a écrit dans le message de
news:qn******** ************@ne ws.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.un i-jena.de...
maricel <ma*****@xtra.c o.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
2073
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 query is: > SELECT *
2
2766
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), plus speed up if the stylesheet+dtds is located on the local machine. Question #1: How do I create a catagory.xml file, which works?
6
2827
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 example. Here's my XML file: <?xml version="1.0"?> <!DOCTYPE para PUBLIC "-//Norman Walsh//DTD Website Full V2.4.0//EN" "http://docbook.sourceforge.net/release/website/2.4.0/website-full.dtd"
6
9252
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
2939
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 = TCPIP Hostname = abcdef.portsmouth.uk.ibm.com
0
2587
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 uncatalog/catalog database. After I disconnect from this database, list applications command show all instances connection. Below I paste the situation.
0
3156
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 Source=MyDS;User ID=uid;Password=pwd;Initial Catalog=MyCat;Catalog Library List=Lib1,Lib2"); When I fully qualify tables I am successful. For Example:
2
3465
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 runstats and reorgs? Can the tools catalog be centralized for a given server (AIX/LINUX)? How can I know if there is a tools catalog existing for a given database or an instance?
0
1810
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 DB PROD400 AT NODE AS400 AUTHENTICATION SERVER
0
8683
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
8610
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
9170
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...
0
9031
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8873
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
7740
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
5862
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
4372
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
2007
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.