- 论坛徽章:
- 0
|
急急!!!DB2,Websphere,AIX的安装与配置!!
自己再UP一下,看到另外一个写得比较详细的说明,share出来:
I presume you are following the document supplied by IBM for installing WAS
3.5 & DB2 6.1 on AIX
To set up DB2 as a client to a remote database.
On the machine with the database that you want to connect to:
1. Configure the database manager to use TCP/IP on AIX:
On the server machine, log in as the DB2 instance owner.
Set DB2COMM to TPC/IP, e.g.,
db2set DB2COMM=tcpip
2. Edit /etc/services file to include DB2 connection and
interrupt service ports if they do not already exist, e.g.,
db2cdb2inst1 50000/tcp # DB2 connection service port
db2idb2inst1 50001/tcp # DB2 interrupt connection
where db2cdb2inst1 if you are following the default userid db2inst1 for the
installation
3. Update the database manager configuration, e.g.,
db2 update dbm cfg using svcename db2cdb2inst1
the arguement after svcename must match the name of the service that you
placed in /etc/services.
4. Add the following line in the db2profile which is located in the
/home/db2instance_owner/sqllib directory :
export DB2COMM=tcpip
5. Catalog the node, e.g.,
db2 catalog tcpip node loop remote <hostname>; server
<DB2_connection_service_port>;
where <DB2_connection_service_port>; is db2cdb2inst1 if you are following
the default userid for the installation & loop is just a alias name of the
node,
6. Catalog the database, e.g.,
db2 catalog database was as wasloop at node loop
where wasloop is as dbalias of was db which is created as part of
installation
7. Stop and start DB2.
% db2stop
% db2start
8. Make sure admin.config has the dbURL point to the database alias ie,
com.ibm.ejs.sm.adminServer.dbUrl=jdbc\:db2\:<dbAliasName>;
The db alias should be wasloop in this case if you have entered the command
in step 6
Now, you can start your admin server. You won't see any error in your
tracefile. |
|