User Tools

Site Tools


database:db2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
database:db2 [2024/03/01 13:19]
manu [DB2 reorg]
database:db2 [2024/05/28 17:56] (current)
manu [connect to DB2]
Line 6: Line 6:
  
 [[database:​db2_clone_steps|DB2 clone steps]] [[database:​db2_clone_steps|DB2 clone steps]]
 +
 +[[database:​db2_install_steps|DB2 install steps]]
  
 ====== DB2 command line ====== ====== DB2 command line ======
 +
 +https://​www.ibm.com/​docs/​en/​db2/​11.5?​topic=instances-designing
  
 https://​www.ibm.com/​developerworks/​servicemanagement/​library/​sm-tsm-db2/​ https://​www.ibm.com/​developerworks/​servicemanagement/​library/​sm-tsm-db2/​
Line 149: Line 153:
 </​cli>​ </​cli>​
  
-  ​+===== Update a user password ===== 
 + 
 +For example, use the CONNECT statement to change the password of the user instance, 
 +<cli prompt='​$'>​ 
 +$ db2 "​CONNECT TO <​database>​ USER <​userid>​ USING <​password>​ NEW <​new_password>​ CONFIRM <​new_password>"​ 
 +</​cli>​
 ===== DB2 list command ===== ===== DB2 list command =====
  
Line 808: Line 817:
 </​cli>​ </​cli>​
  
 +The 3 folowing parameters have to be set to ON
 +  db2 update db cfg for <​db_name>​ using auto_maint on
 +  db2 update db cfg for <​db_name>​ using auto_tbl_maint on
 +  db2 update db cfg for <​db_name>​ using auto_reorg on
 + 
 List historic List historic
 <cli prompt='​$'>​ <cli prompt='​$'>​
Line 841: Line 855:
 </​cli>​ </​cli>​
  
-List historic+List DB size
 <cli prompt='​$'>​ <cli prompt='​$'>​
 [db2sc@lnxl779l ~]$  db2 "CALL GET_DBSIZE_INFO (?, ?, ?, -1)" [db2sc@lnxl779l ~]$  db2 "CALL GET_DBSIZE_INFO (?, ?, ?, -1)"
Line 857: Line 871:
  
   Return Status = 0   Return Status = 0
 +</​cli>​
 +
 +https://​datageek.blog/​2014/​06/​02/​how-to-tell-when-a-table-reorg-is-needed/​
 +
 +===== Uninstall DB2 =====
 +
 +<cli prompt='#'>​
 +[root@lnx01] /​tmp/​db2/​universal # ./​db2_deinstall -a -b /​opt/​ibm/​db2/​V11.5
 +DBI1016I ​ Program db2_deinstall is performing uninstallation. Please
 </​cli>​ </​cli>​
database/db2.1709295576.txt.gz · Last modified: 2024/03/01 13:19 by manu