Common Content for Data Engineering
- Common Content for Data Engineering 10.5.5.1
- All Products
$ DB2INSTANCE=db2admin; export DB2INSTANCE
$ setenv DB2INSTANCE db2admin
$ INSTHOME=~db2admin
$ setenv INSTHOME ~db2admin>
$ DB2DIR=/opt/IBM/db2/V9.7; export DB2DIR
$ setenv DB2DIR /opt/IBM/db2/V9.7
$ PATH=${PATH}:$DB2DIR/bin; export PATH
$ setenv PATH ${PATH}:$DB2DIR/bin
Operating System
| Variable
|
---|---|
Linux
| LD_LIBRARY_PATH
|
AIX
| LIBPATH
|
$ LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$HOME/server_dir:$DB2DIR/lib; export LD_LIBRARY_PATH
$ setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:$HOME/server_dir:$DB2DIR/lib
$ LIBPATH=${LIBPATH}:$HOME/server_dir:$DB2DIR/lib; export LIBPATH
$ setenv LIBPATH ${LIBPATH}:$HOME/server_dir:$DB2DIR/lib
$ source .profile
$ source .cshrc
DB2 LIST DATABASE DIRECTORY
DB2 LIST NODE DIRECTORY
db2 CATALOG TCPIP NODE <nodename> REMOTE <hostname_or_address> SERVER <port number>
db2 CATALOG DATABASE <dbname> as <dbalias> at NODE <nodename>
CONNECT TO <dbalias> USER <username> USING <password>