IBM Maximo: Criando a database manualmente para o Maximo
Criando a database do Maximo
Criando os usuários de Administração
groupadd -g 500 ctggrp1 groupadd -g 501 ctgfgrp1 groupadd -g 502 maximo mkdir -p /opt/DB2HOME useradd -u 500 -m --system -g ctggrp1 -d /opt/DB2HOME/ctginst1 ctginst1 useradd -u 501 -m --system -g ctgfgrp1 -d /opt/DB2HOME/ctgfenc1 ctgfenc1 useradd -u 502 -m --system -g maximo -d /opt/DB2HOME/maximo maximo MY_PASSWORD=passw0rd echo "ctginst1:$MY_PASSWORD" | chpasswd echo "ctgfenc1:$MY_PASSWORD" | chpasswd echo "maximo:$MY_PASSWORD" | chpasswd
Criando a instância do DB2
# /opt/ibm/db2/V11.1/instance/db2icrt -s ese -u ctgfenc1 -p 50005 ctginst1
Vericando as portas configuradas no arquivo /etc/services do Linux.
# cat /etc/services ... DB2_ctginst1 60000/tcp DB2_ctginst1_1 60001/tcp DB2_ctginst1_2 60002/tcp DB2_ctginst1_3 60003/tcp DB2_ctginst1_4 60004/tcp DB2_ctginst1_END 60005/tcp db2c_ctginst1 50005/tcp
Criando a database DB2
su - ctginst1 <<- EOS MAXDB=maxdb76 MAXDB_DATADIR=/opt/DB2HOME/ctginst1/datadir mkdir -p $MAXDB_DATADIR db2start db2 update dbm config using SVCENAME 50005 DEFERRED db2stop db2set DB2COMM=tcpip db2start EOS