473,378 Members | 1,400 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,378 software developers and data experts.

re-configuring db2 server for client operation? [comparison to oracle]

z
To reconfigure oracle9i from server to client operation,
two files need to be modified:

listener.ora (for the server IP address), and tnsnames.ora
(for user permissions).

What are the analogous files to be modified for db2?
I looked at a couple of manuals, but only got the instruction
to re-install db2 specifying client. For various reasons,
that is impractical for my situation.

Thanks...

Apr 6 '06 #1
4 3708
DB2 has a client by default. To access remote databases, you need to
catalog the remote tcpip node, and then catalog the (remote) db to the
node. See the Command Reference manual for details.

Apr 6 '06 #2

z wrote:
To reconfigure oracle9i from server to client operation,
two files need to be modified:

listener.ora (for the server IP address), and tnsnames.ora
(for user permissions).

What are the analogous files to be modified for db2?
I looked at a couple of manuals, but only got the instruction
to re-install db2 specifying client. For various reasons,
that is impractical for my situation.

Thanks...


In addition to what's already been replied, your question implies that
a machine is *either* a client *or* a server. I don't think this is
true anywhere, certainly not in Oracle. All of my oracle servers
(machines) act as both oracle database servers (running one or more
oracle databases) AND as database clients (accessing databases on other
boxes). The two are not mutually exclusive and no "reconfiguration" is
required. As for the files you mentioned, the listener.ora is used by
the server-side process ONLY, and the tnsnames.ora is used by the
client-side process ONLY. Oh, and tnsnames.ora has NOTHING to do with
user permissions. It is only a names resolution mechanism, used to
resolve a name to a specific IP address (possibly with the help of DNS
name resolution), port, and service name. It is actually possible for
the client process to connect to a remote database without a tnsnames
file. It requires a cumbersomly long connect string, but is quite
possible.

Apr 6 '06 #3
z
I'm sorry I do not know very much about DB2 at all, just
a very superficial amount from running QuickInstall
once.

Would the following be correct [DB2 V 8.2]?
starting from systemA on which DB2 has been installed monolithically
[using the defaults from the Quick Installation Guide wherever possible]
and systemB on which DB2 has not yet been installed:
copy:

systemA /home/dasusr1 to systemB /home/dasusr1
systemA /home/db2fenc1 to systemB /home/db2fenc1
systemA /home/db2inst1 to systemB /home/db2inst1
systemA /opt/IBM to systemB /opt/IBM
systemA /opt/IBMJava2-141 to systemB /opt/IBMJava2-141

[Please let all of the above be a given. Thanks.]

Then, issue the following commands on systemB:

as user db2inst1:

db2 catalog tcpip node systemA remote tcphost server db2c_db2inst1
db2 catalog database sample at node systemA

After this, issuing db2 commands on database sample should not
matter whether the commands are being issues on systemA or systemB.

Correct?

If not, what can be done to the above procedure to make it correct?

[Alternatively, are there files that can be tweaked a la Oracle9i
to achieve the equivalent of the above two db2 administrative commands?]

Thanks...

<m0****@yahoo.com> wrote in message
news:11*********************@t31g2000cwb.googlegro ups.com...
DB2 has a client by default. To access remote databases, you need to
catalog the remote tcpip node, and then catalog the (remote) db to the
node. See the Command Reference manual for details.

Apr 7 '06 #4
"z" <z@y.x.invalid> wrote in message
news:zz******************@newssvr27.news.prodigy.n et...
I'm sorry I do not know very much about DB2 at all, just
a very superficial amount from running QuickInstall
once.

Would the following be correct [DB2 V 8.2]?
starting from systemA on which DB2 has been installed monolithically
[using the defaults from the Quick Installation Guide wherever possible]
and systemB on which DB2 has not yet been installed:
copy:

systemA /home/dasusr1 to systemB /home/dasusr1
systemA /home/db2fenc1 to systemB /home/db2fenc1
systemA /home/db2inst1 to systemB /home/db2inst1
systemA /opt/IBM to systemB /opt/IBM
systemA /opt/IBMJava2-141 to systemB /opt/IBMJava2-141

[Please let all of the above be a given. Thanks.]

Then, issue the following commands on systemB:

as user db2inst1:

db2 catalog tcpip node systemA remote tcphost server db2c_db2inst1
db2 catalog database sample at node systemA

After this, issuing db2 commands on database sample should not
matter whether the commands are being issues on systemA or systemB.

Correct?

If not, what can be done to the above procedure to make it correct?

[Alternatively, are there files that can be tweaked a la Oracle9i
to achieve the equivalent of the above two db2 administrative commands?]

Thanks...


I don't understand what all the copy commands are for. But you cannot
install DB2 or copy a database by copy files. You should do install of DB2,
backup of the database in question, and restore of database on the new
server. Backup and restore are DB2 commands documented in the Command
Reference.

On your first catalog statement: tcphost is the hostname or IP address of
the remote server. db2c_db2inst1 is the port number or service name (as
specified in /etc/services).

On the second catalog statement, you need a database name and an alias name
that the database will be called on the local machine. So it would be
something like:

db2 catalog database sample as sample_r at node systemA authentication
server

sample_r is the alias with a different name in case you have a local
database named sample. But both the database name and alias name can be the
same if it does not already exist.
Apr 7 '06 #5

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

Similar topics

1
by: Nel | last post by:
I have a question related to the "security" issues posed by Globals ON. It is good programming technique IMO to initialise variables, even if it's just $foo = 0; $bar = ""; Surely it would...
4
by: Craig Bailey | last post by:
Anyone recommend a good script editor for Mac OS X? Just finished a 4-day PHP class in front of a Windows machine, and liked the editor we used. Don't recall the name, but it gave line numbers as...
1
by: Chris | last post by:
Sorry to post so much code all at once but I'm banging my head against the wall trying to get this to work! Does anyone have any idea where I'm going wrong? Thanks in advance and sorry again...
11
by: James | last post by:
My form and results are on one page. If I use : if ($Company) { $query = "Select Company, Contact From tblworking Where ID = $Company Order By Company ASC"; }
4
by: Alan Walkington | last post by:
Folks: How can I get an /exec'ed/ process to run in the background on an XP box? I have a monitor-like process which I am starting as 'exec("something.exe");' and, of course the exec function...
10
by: James | last post by:
What is the best method for creating a Web Page that uses both PHP and HTML ? <HTML> BLA BLA BLA BLA BLA
8
by: Beowulf | last post by:
Hi Guru's, I have a query regarding using PHP to maintain a user profiles list. I want to be able to have a form where users can fill in their profile info (Name, hobbies etc) and attach an...
1
by: joost | last post by:
Hello, I'm kind of new to mySQL but more used to Sybase/PHP What is illegal about this query or can i not use combined query's in mySQL? DELETE FROM manufacturers WHERE manufacturers_id ...
2
by: sky2070 | last post by:
i have two file with jobapp.html calling jobapp_action.php <HTML> <!-- jobapp.html --> <BODY> <H1>Phop's Bicycles Job Application</H1> <P>Are you looking for an exciting career in the world of...
1
by: Brian | last post by:
I have an array like this: $events = array( array( '2003-07-01', 'Event Title 1', '1' //ID Number (not unique) ), array( '2003-07-02',
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...

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.