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 > Cannot successfully install DB2 - db connection does not exist

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-04-04, 20:11
courtrogue courtrogue is offline
Registered User
 
Join Date: Dec 2004
Posts: 2
Question Cannot successfully install DB2 - db connection does not exist

Having problems with DB2 installation on Windows 2000. Initially I tried to install DB2 Universal Database Enterprise Edition version 7.2. Then I uninstalled it and installed the fixpack 5 for version 8.1, but when I tried to execute the first script received the following error message:

SQL1024N A database connection does not exist.

Explanation:

There is no connection to a database. Other SQL statements
cannot be processed unless an SQL CONNECT was previously
executed.

The command cannot be processed.

Since then I've tried uninstalling DB2 again and installing the full 8.1 product. I cannot get past this problem. The system shows that all db2 services are started, but I stil receive the error that the connection does not exist.

What do I need to do get the installation completed successfully?
Reply With Quote
  #2 (permalink)  
Old 12-04-04, 20:16
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Issue the following statement before your other SQL statements:

connect to database-name;

If you have not created a database (or not installed the sample database) then you need to issue the create database command.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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