To verify DB2 native connectivity through a database alias
Note: This account should already be set up. See Create an Account, a Home Directory, and a Login Environment for more information about setting up a UNIX account to use when you install BusinessObjects Enterprise.
This variable defines the current DB2INSTANCE DB2 database instance.
This variable contains the path to the root directory of your DB2 client installation.
This variable contains the path to the root directory of your DB2 installation (one level above the DB2 bin and lib directories).
The library search path (LD_LIBRARY_PATH on Solaris and Linux, and LIBPATH on AIX) must include the lib directory of your DB2 client installation.
The search path must include the bin directory of your DB2 client installation.
This example checks the required variables and shows sample output values.
$ echo $DB2INSTANCE db2inst1 $ echo $DB2DIR /opt/IBMdb2/V7.1 $ echo $LD_LIBRARY_PATH /export/home/db2inst1/sqllib/lib $ echo $PATH /usr/bin:/usr/ucb:/etc:.:/export/home/db2inst1/sqllib/adm:/ex port/home/db2inst1/sqllib/misc
db2
connect to db_alias user accountname using password
Replace db_alias and password with the appropriate values. If the shell environment has been configured correctly, you are connected to DB2.
create table sampletable (col_fld char(10) not null)
drop table sampletable
If you are using your own MySQL installation for the CMS or auditing database, use a Unicode character set, such as UTF-8. Once the database is created, you must prepare it for the BusinessObjects Enterprise installation.
|
Copyright © 2010 CA.
All rights reserved.
|
|