Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Db2

278 views

Published on

Commands

  • My struggles with my dissertation were long gone since the day I contacted Emily for my dissertation help. Great assistance by guys from ⇒⇒⇒WRITE-MY-PAPER.net ⇐⇐⇐
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • If you are looking for trusted essay writing service I highly recommend ⇒⇒⇒WRITE-MY-PAPER.net ⇐⇐⇐ The service I received was great. I got an A on my final paper which really helped my grade. Knowing that I can count on them in the future has really helped relieve the stress, anxiety and workload. I recommend everyone to give them a try. You'll be glad you did.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

Db2

  1. 1. SR230559907To show all the bufferpool:-db2pd -d DEV -bufferpoolsselect varchar(bpname,20) as bpname,npages,pagesize from syscat.bufferpoolsalter bufferpool IBMSYSTEMBP16K immediate size 20; select * from syscat.bufferpoolsMESSAGE : ADM6019E All pages in buffer pool "IBMSYSTEMBP16K" (ID "4098") are in use. Refer to the documentation for SQLCODE -1218.SELECT TBSPACE, BUFFERPOOLID FROM SYSCAT.TABLESPACESdbdev-se:db2dev 88> db2 update db cfg for DEV | grep SORTHEAPdbdev-se:db2dev 89> db2 get db cfg for DEV | grep SORTHEAP Sort list heap (4KB) (SORTHEAP) = AUTOMATIC(256)SELECT varchar(bp_name,20) ASbp_name,pool_data_gbp_l_reads,pool_data_gbp_p_reads,member FROMTABLE(MON_GET_BUFFERPOOL(,-2))dbdev-se:db2dev 82> db2pd -dbptn memInvalid suboption memInvalid suboption memDatabase Partition 0 -- Active -- Up 1 days 20:32:28 -- Date 06/07/2012 09:55:30Database Partition Memory Controller Statisticscustomer.care@icicibank.comSajjan ATM Card DeptChirag Gada8june firsr flightCC9132083dwarkakalka jimodel townPitam putaICICI Rp1 10-3Controller Automatic: NMemory Limit: 2048000 KBCurrent usage: 462848 KBHWM usage: 463424 KBCached memory: 185728 KB
  2. 2. •softmax represents the percentage of log files that are to be recoveredfollowing a database crash;for example, if the value of softmax is 250, then 2.5 log files will contain thechanges that need to be recovered if a crash occursdbdev-se:db2dev 52> db2 get db cfg for DEV | grep instance HADR instance name of remote server (HADR_REMOTE_INST) =dbdev-se:db2dev 53> db2 get db cfg for DEV | grep MEMORY Size of database shared memory (4KB) (DATABASE_MEMORY) = AUTOMATIC(43872) Application Memory Size (4KB) (APPL_MEMORY) = AUTOMATIC(40000)dbdev-se:db2dev 54> db2 get dbm cfg | grep instance Monitor health of instance and databases (HEALTH_MON) = OFF Size of instance shared memory (4KB) (INSTANCE_MEMORY) = 512000 Discover server instance (DISCOVER_INST) = ENABLE*************dbqas-se:db2qas 55> db2 get db cfg for QAS | grep MEMORY Size of database shared memory (4KB) (DATABASE_MEMORY) = AUTOMATIC(710200) Application Memory Size (4KB) (APPL_MEMORY) = AUTOMATIC(40000)dbqas-se:db2qas 56> db2 get dbm cfg | grep instance Monitor health of instance and databases (HEALTH_MON) = OFF Size of instance shared memory (4KB) (INSTANCE_MEMORY) = 768000 Discover server instance (DISCOVER_INST) = ENABLEdbdev-se:db2dev 55> db2ilistdb2devSELECT VARCHAR(BP_NAME,20) AS BP, SUM(POOL_DATA_GBP_L_READS),SUM(POOL_DATA_GBP_P_READS) FROM TABLE(MON_GET_BUFFERPOOL(,-1)) GROUP BYBP_NAMEdb2 reset monitor alldb2 get snapshot for bufferpools on DEV./sapinst SAPINST_JSLIB_TRACE=all SAPINST_USE_HOSTNAME=dbmst-se /mnt/medi-it/SRM/Install/BS_2005_SR3_SAP_Installation_Master/IM_LINUX_X86_64/product.catalog/mnt/medi-it/SRM/Install/BS_2005_SR3_SAP_Installation_Master/IM_LINUX_X86_64/NW04S/WEBAS/IND./sapinst SAPINST_JSLIB_TRACE=all SAPINST_USE_HOSTNAME=dbmst-se /mnt/medi-it/SRM/Install/BS_2005_SR3_SAP_Installation_Master/IM_LINUX_X86_64/product.catalog
  3. 3. select distinct(status) from dba_indexes;select status,index_name,owner,table_name from dba_indexes where status not likeVALID and UNUSABLE;select table_name,INDEX_TYPE,PARTITIONED,status from dba_indexes where status !=USABLE/proc/cpuinfouname -auname -Xcat /proc/meminfo/sapdb/programs/bin/dbmcli

×