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

Accessing a remote DB2 server

If I have DB2 8.1 (FP5, I believe, but not relevant to my question...I hope)
installed on my desktop, do I have what I need to connect to a remote DB2
server (also running 8.1 FP5) from my desktop machine? I assume, perhaps
naively, that all the parts are there but I've spent several hours trying to
grasp how to go about accessing the remote server.

Specifically, I'm trying to create and populate databases on the remote
server from command line scripts. So, currently I have a file containing SQL
commands to create and populate the database which I invoke using:
db2cmd -c -w -i db2 -t -f <filename>

Works great creating everything on my machine but I'd like to be able to run
the scripts from my machine and have it create and populate the databases on
the remote server.

This is trivial in SQL Server but apparently IBM wants to make sure that its
DBA's continue to make lots of money.

Can anyone let me know if this is even possible given my current
configuration and, if so, provide a simple step-by-step description of how
to achieve it?

Thanks,
Doug Harber
Nov 12 '05 #1
2 7059
"Douglas Harber" <re*******************@hotmail.com> wrote in message
news:_u********************@comcast.com...
If I have DB2 8.1 (FP5, I believe, but not relevant to my question...I hope) installed on my desktop, do I have what I need to connect to a remote DB2
server (also running 8.1 FP5) from my desktop machine? I assume, perhaps
naively, that all the parts are there but I've spent several hours trying to grasp how to go about accessing the remote server.

Specifically, I'm trying to create and populate databases on the remote
server from command line scripts. So, currently I have a file containing SQL commands to create and populate the database which I invoke using:
db2cmd -c -w -i db2 -t -f <filename>

Works great creating everything on my machine but I'd like to be able to run the scripts from my machine and have it create and populate the databases on the remote server.

This is trivial in SQL Server but apparently IBM wants to make sure that its DBA's continue to make lots of money.

Can anyone let me know if this is even possible given my current
configuration and, if so, provide a simple step-by-step description of how
to achieve it?

Thanks,
Doug Harber

Yes, you have everything you need. In fact, all you really need is a client
and not the database installed on your machine.

However, first you need to catalog the remote database on your machine. This
is a two step process which includes cataloging the remote node, and the
remote database. The easiest way is to use the GUI Configuration Assistant
(Set Up Tools) in the DB2 folder. You may need help from your DBA, but it is
only a one time set up. If need help, check the manuals.

It might be easier to submit the scripts via the GUI interface. Open the
Command Center to import scripts and submit them.
Nov 12 '05 #2
In article <o6********************@comcast.com>, Mark A
(no****@nowhere.com) says...
"Douglas Harber" <re*******************@hotmail.com> wrote in message
news:_u********************@comcast.com...
If I have DB2 8.1 (FP5, I believe, but not relevant to my question...I

hope)
installed on my desktop, do I have what I need to connect to a remote DB2
server (also running 8.1 FP5) from my desktop machine? I assume, perhaps
naively, that all the parts are there but I've spent several hours trying

to
grasp how to go about accessing the remote server.

Specifically, I'm trying to create and populate databases on the remote
server from command line scripts. So, currently I have a file containing

SQL
commands to create and populate the database which I invoke using:
db2cmd -c -w -i db2 -t -f <filename>

Works great creating everything on my machine but I'd like to be able to

run
the scripts from my machine and have it create and populate the databases

on
the remote server.

This is trivial in SQL Server but apparently IBM wants to make sure that

its
DBA's continue to make lots of money.

Can anyone let me know if this is even possible given my current
configuration and, if so, provide a simple step-by-step description of how
to achieve it?

Thanks,
Doug Harber

Yes, you have everything you need. In fact, all you really need is a client
and not the database installed on your machine.

However, first you need to catalog the remote database on your machine. This
is a two step process which includes cataloging the remote node, and the
remote database. The easiest way is to use the GUI Configuration Assistant
(Set Up Tools) in the DB2 folder. You may need help from your DBA, but it is
only a one time set up. If need help, check the manuals.

It might be easier to submit the scripts via the GUI interface. Open the
Command Center to import scripts and submit them.


And to add to Mark's remarks you can create a remote database after
attaching to the remote node.

Something like:

db2 attach to <remote_node> user <user> using <password>
db2 create database <dbname> <additional options>
db2 connect to <dbname> user <user> using <password>
db2 create table <tbname> ......
.....

Kind regards, Gert
Nov 12 '05 #3

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

Similar topics

4
by: Jaydeep | last post by:
Hello, I am facing a strange problem. Problem accessing remote database from ASP using COM+ server application having VB components (ActiveX DLL) installed. Tier 1 : ASP front End (IIS 5.0) Tire...
3
by: prodirect | last post by:
Hi all, I hope someone can help me. I've recently created a database and wanted to put it up on an ftp sight so that multiple people could access the same tables at the same time from different...
2
by: Jon L. Lovesky | last post by:
Hello all, I am attempting to access a remote folder from an asp.net application (all within the same domain). The application is configured for windows authentication in IIS and the asp.net...
3
by: Pakna | last post by:
Hello, I have what may be a beginner's question regarding DB2. How does one access a remote table on a remote database via SQL? What is the command string, is there an equivalent of Oracle...
5
by: Mike | last post by:
I'm having trouble accessing SQL2005 Standard Edition as a second instance of SQL Server where the first instance is SQL 2000 Enterprise Edition. I installed SQL 2005 as a named instance...
2
by: olekribu | last post by:
Hi! I'm struggling with the following scenario: I want my asp.net application to be able to create and write to a specific file on a remote file server from a web server. Both servers have...
4
by: Noy B | last post by:
Hi, I have developed a small application that is using a MSAccess DB. the problem is that it was developed on a machine where the application and the DB are both located. now it needs to be...
8
by: John | last post by:
Hi We had an sbs 2003 with isa 2000 server. We wre able to access a remote sql server (hosted at our web host) just fine. We replaced the server with a new sbs 2003 r2 with isa 2004 server and...
1
by: Usenet User | last post by:
From a .NET 1.1 app: need to access a file share on a remote server by its UNC path, i.e., \\server\folder\subfolder\, using specific username and password. The problem is that the credentials...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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,...
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.