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

Trouble connecting to databases from DB2 9 - Command Center

I have installed DB2 9 Enterprise Edition on my laptop and created the
sample database. Now I'm having truble connecting to the database from
Command Editor. If I connect from Command Window it's no problem connecting
to sample (or any other databases - local or remote), but if I try to
connect from Command Editor I'm not able to do that. There is no error
message, the Progress dialog just run and run without anything happening.

Is this a bug in DB2 9, or maybe some configuration issue on my part ?

I'm using Windows XP.

Regards
Odd B Andersen
Oct 23 '06 #1
5 2458
How about posting the exact command you are entering?

Larry Edelstein

Odd Bjørn Andersen wrote:
I have installed DB2 9 Enterprise Edition on my laptop and created the
sample database. Now I'm having truble connecting to the database from
Command Editor. If I connect from Command Window it's no problem connecting
to sample (or any other databases - local or remote), but if I try to
connect from Command Editor I'm not able to do that. There is no error
message, the Progress dialog just run and run without anything happening.

Is this a bug in DB2 9, or maybe some configuration issue on my part ?

I'm using Windows XP.

Regards
Odd B Andersen

Oct 23 '06 #2
The command is just:
connect to sample user username using password

If I try the same from a command windows, like:
db2 connect to sample user username using password

the connect works fine. But not from the Command Editor. I have not been
able to work out what's happening.

regards
Odd B
..
"Larry" <la***@nospam.netwrote in message
news:WK**************@newsfe10.lga...
How about posting the exact command you are entering?

Larry Edelstein

Odd Bjørn Andersen wrote:
>I have installed DB2 9 Enterprise Edition on my laptop and created the
sample database. Now I'm having truble connecting to the database from
Command Editor. If I connect from Command Window it's no problem
connecting to sample (or any other databases - local or remote), but if I
try to connect from Command Editor I'm not able to do that. There is no
error message, the Progress dialog just run and run without anything
happening.

Is this a bug in DB2 9, or maybe some configuration issue on my part ?

I'm using Windows XP.

Regards
Odd B Andersen

Oct 24 '06 #3
What Type of Install did you do.... I have the same problem when I
install DB2 v9 with UDB v8.2. DB2v9 bacially it needed it's own
Database directory to connect to. I did not know if this was a problem
related to two different verison of DB2 on a Windows work station.
But since DB2v9 created another instance on my workstation it only made
since that I would need to catalog my old databases to that instance.

That task is very easy to do by exporing the UDBv8 database profiles
and importing them onto DB2v9. Remember you will need to change the
DB2INSTANCE= Parm with db2set when changing from UDBv8 to DB2v9.
Odd Bjørn Andersen wrote:
The command is just:
connect to sample user username using password

If I try the same from a command windows, like:
db2 connect to sample user username using password

the connect works fine. But not from the Command Editor. I have not been
able to work out what's happening.

regards
Odd B
.
"Larry" <la***@nospam.netwrote in message
news:WK**************@newsfe10.lga...
How about posting the exact command you are entering?

Larry Edelstein

Odd Bjørn Andersen wrote:
I have installed DB2 9 Enterprise Edition on my laptop and created the
sample database. Now I'm having truble connecting to the database from
Command Editor. If I connect from Command Window it's no problem
connecting to sample (or any other databases - local or remote), but if I
try to connect from Command Editor I'm not able to do that. There is no
error message, the Progress dialog just run and run without anything
happening.

Is this a bug in DB2 9, or maybe some configuration issue on my part ?

I'm using Windows XP.

Regards
Odd B Andersen
Oct 24 '06 #4
I did a clean install of Db2 9. That is, I had db2 8.2 installed, but
uninstalled that version before installing version 9. The parameter
DB2INSTANCE is set as an environment variable, and seemed not valid to set
with the db2set command, I had to use the OS command 'set'.

Regards
Odd B

"doug" <do*********@db2helpdesk.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
What Type of Install did you do.... I have the same problem when I
install DB2 v9 with UDB v8.2. DB2v9 bacially it needed it's own
Database directory to connect to. I did not know if this was a problem
related to two different verison of DB2 on a Windows work station.
But since DB2v9 created another instance on my workstation it only made
since that I would need to catalog my old databases to that instance.

That task is very easy to do by exporing the UDBv8 database profiles
and importing them onto DB2v9. Remember you will need to change the
DB2INSTANCE= Parm with db2set when changing from UDBv8 to DB2v9.
Odd Bjørn Andersen wrote:
The command is just:
connect to sample user username using password

If I try the same from a command windows, like:
db2 connect to sample user username using password

the connect works fine. But not from the Command Editor. I have not been
able to work out what's happening.

regards
Odd B
.
"Larry" <la***@nospam.netwrote in message
news:WK**************@newsfe10.lga...
How about posting the exact command you are entering?

Larry Edelstein

Odd Bjørn Andersen wrote:
I have installed DB2 9 Enterprise Edition on my laptop and created the
sample database. Now I'm having truble connecting to the database from
Command Editor. If I connect from Command Window it's no problem
connecting to sample (or any other databases - local or remote), but if
I
try to connect from Command Editor I'm not able to do that. There is no
error message, the Progress dialog just run and run without anything
happening.

Is this a bug in DB2 9, or maybe some configuration issue on my part ?

I'm using Windows XP.

Regards
Odd B Andersen

Oct 25 '06 #5
I have now solved this - sort of......

I had exported all configuration from a version 8.2 installation, and
imported this into my new version 9 installation. It seems that this was the
reason to my problems. After I uncataloged all the cataloged tcpip
nodes/databases, except the sample and toolsdb created dureinf/after
installation of version 9, I was able to connect to sample from Command
Editor.

But now I have encountered another problem. Concerning security and
authorizations..... I am not able to catalogue any nodes or databases on my
system. I get the message: " "OAND " does not have the authorization
to.....". I installed db2 on my system logged on as user <domain>\oand, and
somewhere during installation, asked for a username, I supplied the local
username db2admin which is the user I want to use exclusively for db2. But I
will always be logged on my system as the network user (<domain>\oand).

How can I assure that my network user is granted all the necessary
authorizations in db2. The user is now member of both the local
Administrators group and the sysadm group. But that is obviously not enough.
What other user rights is necessary ?

Regards
Odd B

"doug" <do*********@db2helpdesk.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
What Type of Install did you do.... I have the same problem when I
install DB2 v9 with UDB v8.2. DB2v9 bacially it needed it's own
Database directory to connect to. I did not know if this was a problem
related to two different verison of DB2 on a Windows work station.
But since DB2v9 created another instance on my workstation it only made
since that I would need to catalog my old databases to that instance.

That task is very easy to do by exporing the UDBv8 database profiles
and importing them onto DB2v9. Remember you will need to change the
DB2INSTANCE= Parm with db2set when changing from UDBv8 to DB2v9.
Odd Bjørn Andersen wrote:
The command is just:
connect to sample user username using password

If I try the same from a command windows, like:
db2 connect to sample user username using password

the connect works fine. But not from the Command Editor. I have not been
able to work out what's happening.

regards
Odd B
.
"Larry" <la***@nospam.netwrote in message
news:WK**************@newsfe10.lga...
How about posting the exact command you are entering?

Larry Edelstein

Odd Bjørn Andersen wrote:
I have installed DB2 9 Enterprise Edition on my laptop and created the
sample database. Now I'm having truble connecting to the database from
Command Editor. If I connect from Command Window it's no problem
connecting to sample (or any other databases - local or remote), but if
I
try to connect from Command Editor I'm not able to do that. There is no
error message, the Progress dialog just run and run without anything
happening.

Is this a bug in DB2 9, or maybe some configuration issue on my part ?

I'm using Windows XP.

Regards
Odd B Andersen

Oct 25 '06 #6

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

Similar topics

4
by: 21novembre | last post by:
Hi all, I got a quite strange problem when I tried to setup a database backup shell. I put it this way: "bin/mysqldump --opt --user=xxx --password=xxx DB > DB.bak" However, error 1045 came to...
1
by: Jennifer | last post by:
I have a database on DB2 server 8.1. One of the databases in the same instance has the following problems, while the others are working ok. 1. cannot connect to the database no matter from CLP or...
14
by: Hemant Shah | last post by:
Folks, I installed DB2 UDB 8.2 FP8 ESE on Win 2K syatem. I cataloged node and database on AIX system. When I try to connect to the database on windows system from an AIX system I get following...
0
by: NewsReader | last post by:
Hello, I have been looking around the net for a script to help me connect to and help gather information from Cisco routers/switches. I have pieced together a couple of different scripts from...
1
by: Laurence | last post by:
Hi there, The force application command will terminate the connections specified, but it does not stop new applications from connecting to the databases. Is there anyway to stop new...
4
by: Tracey | last post by:
I have a Mysql database hosted on a remote server. Previously, I could always connect to those databases using the 3.51 ODBC connector and linking the tables in Access. The benefit of this is that...
0
by: jags_32 | last post by:
Hello We use MFG-PRO as our ERP system which in turn uses Progress databases. In the old version of SQL 2000, using DTS packages, we used to set the code page via command prompts and execute DTS...
0
by: brum2008 | last post by:
Hello! Below is the Netbeans Mobility source code for my application (The application offers SPP service, and then just hangs waiting for a client to connect (using acceptAndOpen()). The other...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.