To create tables and write data to your new CEcms database, the installation scripts need to establish a connection to the database server. That is, when you log on to UNIX with the user name crystal to perform the installation, the default shell environment must include the appropriate database environment variables and/or initialization files. Only then can the installation script access the CEcms database using your database client software.
The environment variables and/or files required by the installation scripts depend upon the type of database server you are running:
ORACLE_HOME environment variable. This standard Oracle environment variable must be set in order for the setup.sh script to utilize the Oracle client software.
DB2INSTANCE environment variable. This standard DB2 environment variable must be set in order for the setup.sh script to utilize the DB2 client software.
SYBASE and SYBASE_OCS environment variables. These standard Sybase environment variables must be set in order for the setup.sh script to utilize the Sybase client software.
Additional database environment variables must be set in order for the installation script to use the database client software properly. Before running the installation script, test the shell environment of the new crystal user to verify database connectivity and privileges. See the procedure that corresponds to your database.
Note: Consult your database documentation and/or your database administrator if the crystal user's shell environment has not yet been set up for your database client software, or if you are unable to connect successfully to the database.
crystal user account.
This example checks the required variables and shows sample output values.
/usr/bin:/usr/ucb:/etc:.:/opt/oracle/817/bin
sqlplus crystal/password@tnsname
Replace password and tnsname with the appropriate values. If the shell environment has been configured correctly, you are connected to Oracle.
crystal user account has permission to create tables:
create table sampletable (field1 char(10));
crystal user account has permission to delete tables:
drop table sampletable;
exit
crystal user account.
This example checks the required variables and shows sample output values.
/export/home/db2inst1/sqllib/lib
/usr/bin:/usr/ucb:/etc:.:/export/home/db2inst1/sqllib/adm:/export/home/db2inst1/sqllib/misc
db2
connect to db_alias user crystal using password
Replace db_alias and password with the appropriate values. If the shell environment has been configured correctly, you are connected to DB2.
crystal user account has permission to create tables:
create table sampletable (col_fld char(10) not null)
crystal user account has permission to delete tables:
drop table sampletable
terminate
crystal user account.
This example checks the required variables, and shows sample output values:
/export/home/sybase/12.0/OCS
/usr/bin:/usr/ucb:/etc:.:/export/home/sybase/12.0/OCS
isql user
Replace user, password, and servername with the appropriate values. If the shell environment has been configured correctly, you are connected to Sybase.
crystal user account has permission to create tables:
create table sampletable (def_field char(10))
crystal user account has permission to delete tables:
quit
| Crystal Decisions http://www.crystaldecisions.com/ Support services http://support.crystaldecisions.com/ |