473,387 Members | 1,476 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.

cataloging and rerouting questions

I've got a set of redundant marts that I'm trying to catalog on the
client side to allow us to do two things:
1. manually recatalog to point at either of the two fast marts
2. automatically failover to a third slow mart
The data marts are on db2 8.2.1, the client on db2 8.2.?

But I'm hitting a few roadblocks here - all suggestions are
appreciated. So, I've given our portal team (runs actuate) a pair of
scripts to switch the catalog entries between the two fast marts:

recatalog_to_primary.ksh:
#!/bin/ksh
db2 terminate
db2 catalog tcpip node server1 remote server1 server 60000
db2 uncatalog database rptmart
db2 catalog database rptmart as rptmart at node server1
db2 terminate
exit 0

recatalog_to_secondary.ksh:
#!/bin/ksh
db2 terminate
db2 catalog tcpip node server2 remote server2 server 60000
db2 uncatalog database rptmart
db2 catalog database rptmart as rptmart at node server2
db2 terminate
exit 0

Additionally, on the server side I've updated each server to point at
the other as an alternate (via client rerouting). These will
eventually point to the slow mart, but for right now they are pointing
to each other.
Database 1 entry for server1:
Database alias = RPTMART
Database name = RPTMART
Local database directory = /db2i2_home/db2i2
Database release level = a.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname = server2
Alternate server port number = 60000
Database 1 entry for server2:
Database alias = RPTMART
Database name = RPTMART
Local database directory = /db2i2_home/db2i2
Database release level = a.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname = server1
Alternate server port number = 60000
So, here's what I've seen regarding the manual recataloging:

1. when i've experimented with the recatalog scripts on one of our
other servers, it continued to connect to the wrong server. Bouncing
the instance helped - but I can't rely on that in production. Any
suggestions?
And here's what I've seen regarding the automatic client rerouting:

2. after connecting to one of these servers from the portal server its
local database directory does not show the alternate server. Should
it?

3. after I force a portal query on one server (resulting in a
SQL30081N) the actuate query fails, returning the SQL30081N, instead of
reconnecting to the alternate. Do I need to do anything else to get
the server alternates used by the client?

4. i'd prefer to configure client rerouting on the client side rather
than the server - so that I could have different clients reroute to
different failover servers (the clients have differing availability
requirements). It looks like the clients should support this, but the
online documentation seemed to indicate that rerouting info on the
client side was ignored. Is this true?
Thanks!

Ken

Nov 12 '05 #1
1 1594
I've got some progress on both of these issues:

1. client reroute - it appears to be working, it's just that it
reconnects to the original server, rather than to the alternate. I
assume that this is by design, and i'll have to actually shut down one
of the production servers to see if it failovers to the other. Or
accelerate getting that second test server set up.

2. recataloging - I've added a few lines of code to our cataloging
script to attempt to force the directory cache to be updated:
db2 update dbm cfg using dir_cache no immediate
db2 terminate
db2 connect to rptmart user kenfar
db2 update dbm cfg using dir_cache yes immediate
db2 terminate
and now it's working fine. But I've never had to do this before - am I
overlooking something really simple here?
Thanks,

Ken

Nov 12 '05 #2

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

Similar topics

2
by: Matthew K Jensen | last post by:
I've just come up with an idea to make a small-time record of web pages linking to other web pages. I don't want to download every page on the internet (I'll leave google to do that). I just want...
2
by: Jagdip Singh | last post by:
Hi all, I uninstalled db2 without dropping old instance. I have one database which i want to access again through new db2 i installed. I opted for fresh db2 directory while installing instead...
9
by: Codex Twin | last post by:
I am re-sending this in the hope that it might illicit a response. I have a corporate client who forces their workstations to get the proxy server details using an automatic proxy discovery script....
0
by: softwareengineer2006 | last post by:
All Interview Questions And Answers 10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP) I have listed over 10000 interview questions asked in interview/placement test papers for...
0
by: connectrajesh | last post by:
INTERVIEWINFO.NET http://www.interviewinfo.net FREE WEB SITE AND SERVICE FOR JOB SEEKERS /FRESH GRADUATES NO ADVERTISEMENT
2
by: freepdfforjobs | last post by:
Full eBook with 4000 C#, JAVA,.NET and SQL Server Interview questions http://www.questpond.com/SampleInterviewQuestionBook.zip Download the JAVA , .NET and SQL Server interview sheet and rate...
4
by: Drew | last post by:
I posted this to the asp.db group, but it doesn't look like there is much activity on there, also I noticed that there are a bunch of posts on here pertaining to database and asp. Sorry for...
11
by: Brad | last post by:
Does anyone know of a method to reroute a web page to a file. When someone comes to a web page, I would to reroute the output from a web page to a file on our site. The web page we are rerouting...
0
by: GetgoodV | last post by:
Hi all, I wonder if anybody can help with a problem I have accessing (caaloging) databases on my network (drive V) I have installed DB2 V8 on Windows XP: -...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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...

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.