$ ./db2licm -a /home/software/expc/db2/license/db2expc_uw.lic
LIC1402I License added successfully. LIC1426I This product is now licensed for use as outlined in your License Agreement. USE OF THE PRODUCT CONSTITUTES ACCEPTANCE OF THE TERMS OF THE IBM LICENSE AGREEMENT, LOCATED IN THE FOLLOWING DIRECTORY: "/opt/ibm/db2/V11.1/license/zh_CN.utf8"
$ cd /opt/ibm/db2/V11.1/instance/ $ chmod -R 775 * $ ./db2icrt -p 50000 -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.5871". DBI1070I Program db2icrt completed successfully.
$ db2sampl Starting the DB2 instance... 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"... Stopping the DB2 instance... 'db2sampl' processing complete. $ db2start SQL1063N DB2START processing was successful. $ db2 connect to sample Database Connection Information Database server = DB2/LINUXX8664 188.8.131.52 SQL authorization ID = DB2INST1 Local database alias = SAMPLE $ db2 "select * from staff" $ db2licm -l Product name: "DB2 Express-C" License type: "Unwarranted" Expiry date: "Permanent" Product identifier: "db2expc" Version information: "11.1" Max number of CPUs: "2" Max amount of memory (GB): "16" Max number of cores: "2" Enforcement policy: "Soft Stop"
Warning: /opt/cloudera/parcels/CDH-5.14.0-1.cdh5.14.0.p0.24/bin/../lib/sqoop/../accumulo does not exist! Accumulo imports will fail. Please set $ACCUMULO_HOME to the root of your Accumulo installation. 19/01/22 13:55:59 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6-cdh5.14.0 Enter password: 19/01/22 13:56:03 INFO manager.SqlManager: Using default fetchSize of 1000 DB2INST1 NULLID SQLJ SYSCAT SYSFUN SYSIBM SYSIBMADM SYSIBMINTERNAL SYSIBMTS SYSPROC SYSPUBLIC SYSSTAT SYSTOOLS