db2 luw - database not listed in DB2 -
i have databases on db2 on aix server.
i login db2 instance user id "chandroo" (having db2profile set automatically when login) , issue command below , no result.
chandroo@xxxxxxxx::/db2/chandroo> db2 list db directory chandroo@xxxxxxxx::/db2/chandroo>
however if invoke db2 directly installation directory able see entries , , have no clue why happens.
chandroo@xxxxxxxxx::/opt/ibm/db2/v9.5/bin> ./db2 list db directory system database directory number of entries in directory = 2 database 1 entry: database alias = chandb database name = chandb local database directory = /db2/chandroo/db database release level = c.00 comment = directory entry type = indirect catalog database partition number = 0 alternate server hostname = alternate server port number = database 2 entry: database alias = chan database name = chan local database directory = /db2/chandroo/db database release level = c.00 comment = directory entry type = indirect catalog database partition number = 0 alternate server hostname = alternate server port number = chandroo@xxxxxxxxx::/opt/ibm/db2/v9.5/bin>
it sounds db2profile script isn't being sourced properly. environment variables defined in script need set current aix shell process, not temporary subprocess started sh, ksh, or bash. accomplished specifying single dot instead of program name run db2profile script. difference subtle, important.
if problem, running command fix problem initializing current shell process:
. ~chandroo/sqllib/db2profile
and commands db2 list db directory
start working.
the next step determine keeping happening in $home/.profile
startup script. if see call db2profile using proper syntax shown above, there might problem execution permissions on $home/.profile
.
Comments
Post a Comment