DB 2 Installation

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

############### db2 instance creation & installation

/db2home/expc
./db2prereqcheck -i -s

mkdir -p /opt/IBM/db2/V11.1/fp3

./db2_install -b /opt/IBM/db2/V11.1/fp3

groupadd db2iadm1
useradd -g db2iadm1 -d /db2home/db2inst1 db2inst1
useradd -g db2iadm1 -d /db2home/db2fenc1 db2fenc1

cd /opt/IBM/db2/V11.1/fp3/instance
./db2icrt -u db2fenc1 db2inst1
DBI1446I The db2icrt command is running.

DB2 installation is being initialized.

Total number of tasks to be performed: 4


Total estimated time for all tasks to be performed: 309 second(s)

Task #1 start
Description: Setting default global profile registry variables
Estimated time 1 second(s)
Task #1 end

Task #2 start
Description: Initializing instance list
Estimated time 5 second(s)
Task #2 end

Task #3 start
Description: Configuring DB2 instances
Estimated time 300 second(s)
Task #3 end

Task #4 start
Description: Updating global profile registry
Estimated time 3 second(s)
Task #4 end

The execution completed successfully.

For more information see the DB2 installation log at "/tmp/db2icrt.log.3161".


DBI1070I Program db2icrt completed successfully.

check port in /etc/services


DB2_db2inst1 50000/tcp #Connection port for db2inst1

su - db2inst1
Last login: Thu Jan 28 05:34:27 GMT 2021 from 10.83.241.212 on pts/0
[db2inst1@TCS-PCM-191 ~]$ db2ilist
db2inst1
[db2inst1@TCS-PCM-191 ~]$ db2sampl

Creating database "SAMPLE"...


Connecting to database "SAMPLE"...
Creating tables and data in schema "DB2INST1"...
Creating tables with XML columns and XML data in schema "DB2INST1"...

'db2sampl' processing complete.

[db2inst1@TCS-PCM-191 ~]$ db2 connect to SAMPLE

Database Connection Information

Database server = DB2/LINUXX8664 11.1.3.3


SQL authorization ID = DB2INST1
Local database alias = SAMPLE

[db2inst1@TCS-PCM-191 ~]$
[db2inst1@TCS-PCM-191 ~]$
[db2inst1@TCS-PCM-191 ~]$ db2 connect reset
DB20000I The SQL command completed successfully.

########################################################################

You might also like