Data Source And Start Script Settings For Db2 (Unix) - MACROMEDIA COLDFUSION 4.5-ADMINISTRING COLDFUSION SERVER Manual

Table of Contents

Advertisement

108
(
database_alias
in the database directory, along with the information in the node directory, is used on
the client to establish a connection to the remote database.
You must add an entry to the client's node directory to describe the remote node.
1.
Run the db2 command line utility db2.
2.
At the db2 prompt enter the following:
db2 => catalog database sample as sample1 at node dbserver1node
db2 =>terminate
Test the connection
You are now ready to test the connection with a known table. The following procedure
uses a table that is installed with DB2.
1.
Run the DB2 command line utility db2
2.
At the db2 prompt enter the following:
db2 => connect to sample1 user username using password
db2 => select * from employee
db2 => terminate

Data source and start script settings for DB2 (UNIX)

This section describes changes you must make to the ColdFusion start script and
Here are the environment variables that need to be set in the
coldfusion/bin/start
# DB2 environment variables
DB2INSTANCE=db2inst1
INSTHOME=/export/home/db2inst1
# Set library search path
#
# NOTE: Add your database client library directory to the FRONT of this
list
#
# Example:
#
LD_LIBRARY_PATH=/usr/dt/lib:/lib:/usr/openwin/lib:$INSTHOME/sqllib/
lib:$CFHOME/lib
#
# This is the list of variables that ColdFusion will see
# Add any special Database environment variables here
#
VAR_LIST="LD_LIBRARY_PATH DB2INSTANCE INSTHOME CFHOME SYBASE ORACLE_HOME
INFORMIXDIR INFORMIXSERVER II_SYSTEM"
) the same as the database name (
script file.
Administering ColdFusion Server
). The information
database_name
<installdir>/

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-ADMINISTRING COLDFUSION SERVER and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion 4.5

Table of Contents