473,807 Members | 2,766 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQL1031N connecting to remote database

Im connecting to a database on a remote machine. The node and catalog
command were successfully run. I can connect to the database from the
db2 command line.

db2 => connect to dkt_old user xxx using yyy

Database Connection Information

Database server = DB2/LINUX 7.1.0
SQL authorization ID = DOCKET
Local database alias = DKT_OLD

I can view and select tables from the remote db.

When I try to connect via DBI it fails

$dbh = DBI->connect("DBI:D B2:dkt_old", <username>, <password>,
{ PrintError => 0,
RaiseError => 1,
AutoCommit => 0 } )};

DBI connect('dkt_ol d','docket',... ) failed: [IBM][CLI Driver] SQL1031N
The database directory cannot be found on the indicated file system.
SQLSTATE=58031

I would greatly appreciate any suggestions to the cause of this
problem.

thanks

Nov 25 '05 #1
2 11669
te************@ yahoo.com wrote:
Im connecting to a database on a remote machine. The node and catalog
command were successfully run. I can connect to the database from the
db2 command line.

db2 => connect to dkt_old user xxx using yyy

Database Connection Information

Database server = DB2/LINUX 7.1.0
SQL authorization ID = DOCKET
Local database alias = DKT_OLD

I can view and select tables from the remote db.

When I try to connect via DBI it fails

$dbh = DBI->connect("DBI:D B2:dkt_old", <username>, <password>,
{ PrintError => 0,
RaiseError => 1,
AutoCommit => 0 } )};

DBI connect('dkt_ol d','docket',... ) failed: [IBM][CLI Driver] SQL1031N
The database directory cannot be found on the indicated file system.
SQLSTATE=58031

I would greatly appreciate any suggestions to the cause of this
problem.


This looks as if you did not start your application, which uses DBI, in a
properly configured and initialized environment.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Nov 25 '05 #2
Check out the Perl DBI documentation for DB2: there is a description on
how to use perl.

http://publib.boulder.ibm.com/infoce...d/c0006690.htm
http://www-306.ibm.com/software/data/db2/perl/

Dec 1 '05 #3

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

Similar topics

1
2465
by: toddles666 | last post by:
Hi- I'm having a rather strange problem attempting to create a database. We're attempting to move a database from attached SCSI storage to SAN storage, and when I attempt to create the database using the SAN mount point as the database directory, I get a SQL1031N error. However, it is only happening on SAN LUNs mounted underneath directories on root. Our sysadmin decided he did not want to mess up his pretty root directory with mount...
3
3254
by: stabbert | last post by:
We are running DB2 UDB 8.1.6 in a partitioned environment where we have 8 physical nodes. We have a process that remotely connects to each individual node and loads some data. By setting the DB2NODE variable to a different value then the coordinator node is the only way I am aware for a remote application to do this so I am making the assumption that is how this application connects. What I am more interested in is that after logging...
1
2610
by: Jim Bayers | last post by:
Our network nazi doesn't want us running a webserver on the server that has a connection to the campus database so we created a remote object that runs as a windows service. The windows service runs on the server with a connection to the campus database and we make calls to it. My question is, how best to connect to this object via asp.net, in an aspx page?. The example I had used a console ap to connect and that works, but we want to...
5
2383
by: bill | last post by:
I am having difficulties connecting to a remote Sql server database in VB.net. Lets say my remote server is found at 255.255.255.255 and its name is MyServer. The database is called MyDatabase. I drap my SQLDataAdapter on to the form and set up a new connection at the wizard. I am putting the IP address of my server under server name and entering my login and password. I get an access denied. Sql Server Error: 17.
5
26431
by: lxw176 via DBMonster.com | last post by:
Hi, I'm working on DB2 UDB 8.1 for AIX 5.3. I tried to do either db2 drop database mydb or connect to mydb command after I restored mydb from an online backup image using redirected restore. I got the following error: SQL1031N The database directory cannot be found on the indicated file system. SQLSTATE=58031
0
3928
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2 development client. Bur Its gives me following error message. I searched lots of things on net and tried on remote server but i didnt got suceess. Can any one tell me how to set TCP\IP connection protocol on server for particular instance. Becuase I think
10
15962
by: mairhtin o'feannag | last post by:
Hello, I'm having problems connecting to my new v9 db box. The pertinent information is below: DB2_db2inst1 60000/tcp DB2_db2inst1_1 60001/tcp DB2_db2inst1_2 60002/tcp DB2_db2inst1_END 60003/tcp
2
4968
by: samadams_2006 | last post by:
Hello, I have a problem that I'm hoping someone will be able to help me resolve. 1) I have a C# Web Site in which I connect to the database: "Install Microsoft SQL Server 2005 Express Edition" via the link on: http://msdn2.microsoft.com/en-us/express/bb410792.aspx
0
1591
by: jeffhan | last post by:
i am using db2 client on an AIX machine to connect to the remote database, we use LDAP to store the node and database on client machine, when i run: db2 list database directory or db2 list node directory i can see the database which i want to connect to (for example: testdb)
0
9599
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
10624
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
10371
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
9193
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...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5546
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...
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3853
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3010
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.