If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > server names changed, need help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-18-09, 12:19
kelleybdk kelleybdk is offline
Registered User
 
Join Date: Mar 2009
Posts: 3
server names changed, need help

Hi all,
I'm a complete newbie when it comes to db2, and am looking for some help.

We've got a couple of db2 servers (8.1.0.128-fp14 and 9.1.0.1-fp1) running in our development environment. The clients that are used to connect to the servers are in NFS space, and are accessible by 100 or so different versions of UNIX, LINUX automated build servers.

Our company recently split up into two separate companies and we had to change our NIS domain name. The admin who was taking care of these servers has also left the company.

As an example, the servers were named crust.foo.com and magma.foo.com. Now they are crust and magma.foo.bar.com.

I need help in changing the clients so that they can connect properly to the new server names. I think the server names need to be re-cataloged on the clients, but I am unsure how this is done.

One of our previous admins wrote a script that hacks all of the db2 client code in our NFS space that "should" allow me to do this, but it seems to be broken.

I've also got a "catalog.sql" file that we use when we're setting up new clients. It contains all of the server and database names that we have in our different server room locations. It has several entries that look like this:

#
# The database entries for the 32-bit V8.1 FP14 server running on magma.foo.com
#
catalog tcpip node NDM08141 remote magma.foo.com server db2v81serv

catalog database QE1 as Q1D08141 at node NDM08141
catalog database QE2 as Q2D08141 at node NDM08141
catalog database SUPPORT as SPD08141 at node NDM08141
catalog database QE1_UTF8 as Q1U08141 at node NDM08141
catalog database SUP_UTF8 as SPU08141 at node NDM08141

I've edited this file and changed the hostname to crust and magma.foo.bar.com. Can I just have the clients re-read this file to update their catalog? If so, how would I do this?

Any help would be greatly appreciated.
Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 03-18-09, 12:24
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
You will need to uncatalog the changing node first: add "uncatalog node NDM08141" before the "catalog tcpip node..." command for each node, obviously specifying the appropriate node each time.

Once this is done, you will need to execute catalog.sql on each client using the db2 command line processor:

$ db2 -f catalog.sql
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On