on 05-30-2011 11:27 AM
Hi,
I have installed 3 instances (db sids, VSM,VED,VEI) in one server.
OS : Windows 2003
DB: DB6 9.7 FP3
When I executing the following command getting error.
C:\Documents and Settings\vedadm>db2 connect to VED
SQL1013N The database alias name or database name "VED" could not be
found. SQLSTATE=42705
Its appearing only VSM.
C:\Documents and Settings\vedadm>db2 list db directory
System Database Directory
Number of entries in the directory = 1
Database 1 entry:
Database alias = VSM
Database name = VSM
Local database directory = D:\db2\VSM
Database release level = d.00
Comment = SAP database VSM
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
Total 3 instances: VSM,VEI,VED
Database directory paths for 3 instances
VSM=D:\db2\VSM
VED=D:\db2\VED
VEI=D:\db2\VEI
Thanks
Siva
Hi Siva,
I believe your other databases are created under separate db2 instance (i.e. db2vei and db2vee).
So if you log in with the user db2vei or db2ved, can you see the database VEI or VED via db2 list db directory command?
Regards,
Masako
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Masako,
Thanks for your reply
Command line processor its appearing, but dos prompt level its appearing only VSM.
C:\Documents and Settings\db2ved>db2 list db directory
System Database Directory
Number of entries in the directory = 1
Database 1 entry:
Database alias = VSM
Database name = VSM
Local database directory = D:\db2\VSM
Database release level = d.00
Comment = SAP database VSM
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
db2 => list db directory
System Database Directory
Number of entries in the directory = 1
Database 1 entry:
Database alias = VED
Database name = VED
Local database directory = D:\db2\VED
Database release level = d.00
Comment = SAP database VED
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
Thanks
Siva
Hi Siva,
Have you checked your DB2INSTANCE settings? (DB2INSTANCE is an environment variable.)
Please check the valud of DB2INSTANCE before you execute "db2 list db directory"".
(Example)
C:\Program Files\IBM\SQLLIB\BIN>set DB2INSTANCE
DB2INSTANCE=DB2
And how many instances do you have? Do you see 3 instances listed when executing db2ilist?
(Example)
C:\Documents and Settings\Administrator>db2ilist
DB2_01
How about db2 software? Did you install three copies of db2 software or just one? (You can check it via Add or Remove Programs in Control Panel.)
Regards,
Masako
Hi Masako,
C:\Documents and Settings\Administrator.CMOSERVER>set DB2INSTANCE
DB2INSTANCE=DB2VSM
C:\Documents and Settings\Administrator.CMOSERVER>db2ilist
DB2VSM
3 instance is there in add and remove program mes.
C:\Documents and Settings\Administrator.CMOSERVER>db2 list node directory
SQL1037W The node directory is empty. SQLSTATE=01606
C:\Documents and Settings\Administrator.CMOSERVER>db2idrop VEI
SQL1394N The instance is not defined.
Thanks
Siva
Hi Siva,
I believe that you have installed three copies of db2 software. And you have created one db2 instance in each DB2 copy. And each db2 instance has one database.
I believe you see "IBM DB2" if you click Start-> All programs. Do you have 3 instances under "IBM DB2"? And you should have db2 programs (like CLP or DB2 Command window) for each instance.
You need to invoke the appropriate CLP or DB2 Command Window for each instance. Then you will see the respective DB when you run "db2 list db directory".
Regards,
Masako
Hi Siva,
Since you're using 3 different DB2 software and you created 3 databases in 3 different db2 instances, you can only see one database at a time when you execute db2 list db directory.
If you want to switch DB2 copy, please refer to DB2 information center :
Regards,
Masako
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.