Professional Documents
Culture Documents
/media/RAFW_MEDIA/linux/X32/db2/95/install_images/db2_install
DB2DIR/instance/dascrt -u DASuser
where
o DB2DIR specifies the path where the DB2 database product was installed. The
default installation directory is:
for AIX®, HP-UX or Solaris operating systems: /opt/IBM/db2/V9.5
for Linux® operating systems: /opt/ibm/db2/V9.5
o –u specifies the DAS user you created when creating users and groups.
1 of 6
Command line install DB2 9.5 – Linux Red Hat 5.2 32 bit Author: Eduard Serrano
Example
On Linux® or UNIX® operating systems, you must have root authority. On Windows®
operating systems, you must be logged on as a Local Administrator.
Procedure
where:
DB2DIR
is the DB2 installation directory.
2 of 6
Command line install DB2 9.5 – Linux Red Hat 5.2 32 bit Author: Eduard Serrano
Example
For example, if you are using server authentication, your fenced user is db2fenc1, and your
instance owning user is db2inst1, use the following command to create an instance on an AIX
system:
/opt/IBM/db2/V9.5/instance/db2icrt -a server -u db2fenc1 db2inst1
The TCP/IP services file specifies the ports that server applications can listen on for client
requests. If you specified a service name in the svcename field of the DBM configuration file,
the services file must be updated with the service name to port number/protocol mapping. If
you specified a port number in the svcename field of the DBM configuration file, the services
file does not need to be updated.
Update the services file and specify the ports that you want the server to listen on for incoming
client requests. The default location of the services file depends on the operating system:
vi /etc/services
Using a text editor, add the Connection entry to the services file. For example:
db2c_db2inst1 3700/tcp # DB2 connection service port
Note: it will be better to change the port 3700 for 50000. You can change
the instance name db2c_db2inst1 for db2inst1
Example
db2inst1 50000/tcp # DB2 connection service port
3 of 6
Command line install DB2 9.5 – Linux Red Hat 5.2 32 bit Author: Eduard Serrano
You must update the database manager configuration file with the service name (svcename)
parameter.
su –l db2inst1
db2
4. Update the database manager configuration file with the Service name (svcename)
parameter by entering the following commands:
Example
db2 => update database manager configuration using svcename db2inst1
DB20000I The UPDATE DATABASE MANAGER CONFIGURATION command completed
successfully.
db2 => db2stop
SQL1032N No start database manager command was issued.
SQLSTATE=57019
db2 => db2start
DB20000I The DB2START command completed successfully.
db2 =>
4 of 6
Command line install DB2 9.5 – Linux Red Hat 5.2 32 bit Author: Eduard Serrano
Database 1 entry:
db2 =>
where:
If a service name is being specified, the svcename used must match the Connection
Service name specified in the services file.
After the database manager is stopped and started again, view the database manager
configuration file to ensure that these changes have taken effect. View the database
manager configuration file by entering the following command:
Setting communication protocols for a DB2® instance is part of the main task of configuring
TCP/IP or SSL communications for a DB2 instance.
The DB2COMM registry variable allows you to set communication protocols for the current
DB2 instance. If the DB2COMM registry variable is undefined or set to null, no protocol
connection managers are started when the database manager is started.
The DB2COMM registry variable can be set with one of the following keywords:
tcpip
ssl
5 of 6
Command line install DB2 9.5 – Linux Red Hat 5.2 32 bit Author: Eduard Serrano
Enter the db2set DB2COMM command from the DB2 command window:
db2set DB2COMM=tcpip
For example, to set the database manager to start connection managers for the TCP/IP
communication protocols, enter the following command:
db2set DB2COMM=tcpip
db2stop
db2start
SQL8007W There are "89" day(s) left in the evaluation period for
the product "DB2 Express Edition". For evaluation license terms and
conditions, refer to the License Agreement document located in the
license directory in the installation path of this product. If you
have licensed this product, ensure the license key is properly
registered. You can register the license via the License Center or
db2licm command line utility. The license key can be obtained from
your licensed product CD.
[db2inst1@bf7114 ~]$
6 of 6