SlideShare ist ein Scribd-Unternehmen logo
1 von 3
SR230559907

To show all the bufferpool:-

db2pd -d DEV -bufferpools
select varchar(bpname,20) as bpname,npages,pagesize from syscat.bufferpools



alter bufferpool IBMSYSTEMBP16K immediate size 20;


 select   * from syscat.bufferpools


MESSAGE : ADM6019E All pages in buffer pool "IBMSYSTEMBP16K" (ID "4098") are
          in use. Refer to the documentation for SQLCODE -1218.


SELECT TBSPACE, BUFFERPOOLID FROM SYSCAT.TABLESPACES

dbdev-se:db2dev 88> db2 update db cfg for DEV | grep SORTHEAP
dbdev-se:db2dev 89> db2 get db cfg for DEV | grep SORTHEAP
 Sort list heap (4KB)                         (SORTHEAP) = AUTOMATIC(256)


SELECT varchar(bp_name,20) AS
bp_name,pool_data_gbp_l_reads,pool_data_gbp_p_reads,member FROM
TABLE(MON_GET_BUFFERPOOL('',-2))


dbdev-se:db2dev 82> db2pd -dbptn mem
Invalid suboption mem
Invalid suboption mem

Database Partition 0 -- Active -- Up 1 days 20:32:28 -- Date 06/07/2012 09:55:30

Database Partition Memory Controller Statistics
customer.care@icicibank.com


Sajjan   ATM Card Dept
Chirag Gada

8june firsr flight

CC9132083

dwarka
kalka ji
model town

Pitam puta

ICICI Rp1 10-3



Controller Automatic:   N
Memory Limit:           2048000 KB
Current usage:          462848 KB
HWM usage:              463424 KB
Cached memory:          185728 KB
•softmax represents the percentage of log files that are to be recovered
following a database crash;
for example, if the value of softmax is 250, then 2.5 log files will contain the
changes that need to be recovered if a crash occurs


dbdev-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) = ENABLE




dbdev-se:db2dev 55> db2ilist
db2dev


SELECT 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 BY
BP_NAME




db2 reset monitor all
db2 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.catal
og


/mnt/medi-
it/SRM/Install/BS_2005_SR3_SAP_Installation_Master/IM_LINUX_X86_64/NW04S/WEBAS/I
ND

./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.catal
og
select distinct(status) from dba_indexes;

select status,index_name,owner,table_name from dba_indexes where status not like
'VALID' and 'UNUSABLE';


select table_name,INDEX_TYPE,PARTITIONED,status from dba_indexes where status !
='USABLE'

/proc/cpuinfo
uname -a
uname -X
cat /proc/meminfo


/sapdb/programs/bin/dbmcli

Weitere ähnliche Inhalte

Was ist angesagt?

37562259 top-consuming-process
37562259 top-consuming-process37562259 top-consuming-process
37562259 top-consuming-process
skumner
 

Was ist angesagt? (20)

Oracle cluster installation with grid and iscsi
Oracle cluster  installation with grid and iscsiOracle cluster  installation with grid and iscsi
Oracle cluster installation with grid and iscsi
 
Full Text Search in PostgreSQL
Full Text Search in PostgreSQLFull Text Search in PostgreSQL
Full Text Search in PostgreSQL
 
PostgreSQL
PostgreSQLPostgreSQL
PostgreSQL
 
Troubleshooting PostgreSQL with pgCenter
Troubleshooting PostgreSQL with pgCenterTroubleshooting PostgreSQL with pgCenter
Troubleshooting PostgreSQL with pgCenter
 
Xtrabackup工具使用简介 - 20110427
Xtrabackup工具使用简介 - 20110427Xtrabackup工具使用简介 - 20110427
Xtrabackup工具使用简介 - 20110427
 
ClickHouse Features for Advanced Users, by Aleksei Milovidov
ClickHouse Features for Advanced Users, by Aleksei MilovidovClickHouse Features for Advanced Users, by Aleksei Milovidov
ClickHouse Features for Advanced Users, by Aleksei Milovidov
 
PostgreSQL Administration for System Administrators
PostgreSQL Administration for System AdministratorsPostgreSQL Administration for System Administrators
PostgreSQL Administration for System Administrators
 
InfluxDB IOx Tech Talks: Query Processing in InfluxDB IOx
InfluxDB IOx Tech Talks: Query Processing in InfluxDB IOxInfluxDB IOx Tech Talks: Query Processing in InfluxDB IOx
InfluxDB IOx Tech Talks: Query Processing in InfluxDB IOx
 
Advanced backup methods (Postgres@CERN)
Advanced backup methods (Postgres@CERN)Advanced backup methods (Postgres@CERN)
Advanced backup methods (Postgres@CERN)
 
Ceph Day KL - Bluestore
Ceph Day KL - Bluestore Ceph Day KL - Bluestore
Ceph Day KL - Bluestore
 
ClickHouse materialized views - a secret weapon for high performance analytic...
ClickHouse materialized views - a secret weapon for high performance analytic...ClickHouse materialized views - a secret weapon for high performance analytic...
ClickHouse materialized views - a secret weapon for high performance analytic...
 
GTC Japan 2014
GTC Japan 2014GTC Japan 2014
GTC Japan 2014
 
pg_proctab: Accessing System Stats in PostgreSQL
pg_proctab: Accessing System Stats in PostgreSQLpg_proctab: Accessing System Stats in PostgreSQL
pg_proctab: Accessing System Stats in PostgreSQL
 
Oracle cluster installation with grid and nfs
Oracle cluster  installation with grid and nfsOracle cluster  installation with grid and nfs
Oracle cluster installation with grid and nfs
 
pg_proctab: Accessing System Stats in PostgreSQL
pg_proctab: Accessing System Stats in PostgreSQLpg_proctab: Accessing System Stats in PostgreSQL
pg_proctab: Accessing System Stats in PostgreSQL
 
ClickHouse and the Magic of Materialized Views, By Robert Hodges and Altinity...
ClickHouse and the Magic of Materialized Views, By Robert Hodges and Altinity...ClickHouse and the Magic of Materialized Views, By Robert Hodges and Altinity...
ClickHouse and the Magic of Materialized Views, By Robert Hodges and Altinity...
 
MySQL Tokudb engine benchmark
MySQL Tokudb engine benchmarkMySQL Tokudb engine benchmark
MySQL Tokudb engine benchmark
 
PgconfSV compression
PgconfSV compressionPgconfSV compression
PgconfSV compression
 
37562259 top-consuming-process
37562259 top-consuming-process37562259 top-consuming-process
37562259 top-consuming-process
 
Recent my sql_performance Test detail
Recent my sql_performance Test detailRecent my sql_performance Test detail
Recent my sql_performance Test detail
 

Andere mochten auch

Embitel_IoT_Brochure_2015 (2)
Embitel_IoT_Brochure_2015 (2)Embitel_IoT_Brochure_2015 (2)
Embitel_IoT_Brochure_2015 (2)
Jaibhima N R
 
Python for Chemistry
Python for ChemistryPython for Chemistry
Python for Chemistry
baoilleach
 
National Diploma Marketing
National Diploma MarketingNational Diploma Marketing
National Diploma Marketing
Mpho Tumisi
 

Andere mochten auch (16)

Data protection in cloud
Data protection in cloudData protection in cloud
Data protection in cloud
 
A Comprehensive Guide to Videoconferencing and Media in ICT
A Comprehensive Guide to Videoconferencing and Media in ICTA Comprehensive Guide to Videoconferencing and Media in ICT
A Comprehensive Guide to Videoconferencing and Media in ICT
 
Lugares turísticos Ecuador
Lugares turísticos EcuadorLugares turísticos Ecuador
Lugares turísticos Ecuador
 
Travel Guides Online
Travel Guides OnlineTravel Guides Online
Travel Guides Online
 
The joys of accessible design with an open source catalogue
The joys of accessible design with an open source catalogueThe joys of accessible design with an open source catalogue
The joys of accessible design with an open source catalogue
 
Configuring VLEs For Mathematics
Configuring VLEs For MathematicsConfiguring VLEs For Mathematics
Configuring VLEs For Mathematics
 
Bielizna szpitalna
Bielizna szpitalnaBielizna szpitalna
Bielizna szpitalna
 
ADAPT: Analysis of Dynamic Adaptations in Parameter Trajectories
ADAPT: Analysis of Dynamic Adaptations in Parameter Trajectories ADAPT: Analysis of Dynamic Adaptations in Parameter Trajectories
ADAPT: Analysis of Dynamic Adaptations in Parameter Trajectories
 
Infographic: Changing a Car Tire
Infographic: Changing a Car TireInfographic: Changing a Car Tire
Infographic: Changing a Car Tire
 
Embitel_IoT_Brochure_2015 (2)
Embitel_IoT_Brochure_2015 (2)Embitel_IoT_Brochure_2015 (2)
Embitel_IoT_Brochure_2015 (2)
 
Mobile tech: trends & tools
Mobile tech: trends & toolsMobile tech: trends & tools
Mobile tech: trends & tools
 
Building a Credit History with a Secured Credit Card
Building a Credit History with a Secured Credit Card Building a Credit History with a Secured Credit Card
Building a Credit History with a Secured Credit Card
 
Mid-Autumn Celebrations • Bengawan Solo
Mid-Autumn Celebrations • Bengawan SoloMid-Autumn Celebrations • Bengawan Solo
Mid-Autumn Celebrations • Bengawan Solo
 
Ballerina
BallerinaBallerina
Ballerina
 
Python for Chemistry
Python for ChemistryPython for Chemistry
Python for Chemistry
 
National Diploma Marketing
National Diploma MarketingNational Diploma Marketing
National Diploma Marketing
 

Ähnlich wie Db2

Oracle Basics and Architecture
Oracle Basics and ArchitectureOracle Basics and Architecture
Oracle Basics and Architecture
Sidney Chen
 
在Aix6.1上安装11g r2 rac grid infrastructure集群
在Aix6.1上安装11g r2 rac grid infrastructure集群在Aix6.1上安装11g r2 rac grid infrastructure集群
在Aix6.1上安装11g r2 rac grid infrastructure集群
maclean liu
 
Fatkulin presentation
Fatkulin presentationFatkulin presentation
Fatkulin presentation
Enkitec
 
Schema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12cSchema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12c
uzzal basak
 

Ähnlich wie Db2 (20)

Experience on porting HIGHMEM and KASAN to RISC-V at COSCUP 2020
Experience on porting HIGHMEM and KASAN to RISC-V at COSCUP 2020Experience on porting HIGHMEM and KASAN to RISC-V at COSCUP 2020
Experience on porting HIGHMEM and KASAN to RISC-V at COSCUP 2020
 
(SDD402) Amazon ElastiCache Deep Dive | AWS re:Invent 2014
(SDD402) Amazon ElastiCache Deep Dive | AWS re:Invent 2014(SDD402) Amazon ElastiCache Deep Dive | AWS re:Invent 2014
(SDD402) Amazon ElastiCache Deep Dive | AWS re:Invent 2014
 
DUG'20: 12 - DAOS in Lenovo’s HPC Innovation Center
DUG'20: 12 - DAOS in Lenovo’s HPC Innovation CenterDUG'20: 12 - DAOS in Lenovo’s HPC Innovation Center
DUG'20: 12 - DAOS in Lenovo’s HPC Innovation Center
 
Oracle Basics and Architecture
Oracle Basics and ArchitectureOracle Basics and Architecture
Oracle Basics and Architecture
 
COSCUP 2020 RISC-V 32 bit linux highmem porting
COSCUP 2020 RISC-V 32 bit linux highmem portingCOSCUP 2020 RISC-V 32 bit linux highmem porting
COSCUP 2020 RISC-V 32 bit linux highmem porting
 
在Aix6.1上安装11g r2 rac grid infrastructure集群
在Aix6.1上安装11g r2 rac grid infrastructure集群在Aix6.1上安装11g r2 rac grid infrastructure集群
在Aix6.1上安装11g r2 rac grid infrastructure集群
 
malloc & vmalloc in Linux
malloc & vmalloc in Linuxmalloc & vmalloc in Linux
malloc & vmalloc in Linux
 
[Pgday.Seoul 2019] Citus를 이용한 분산 데이터베이스
[Pgday.Seoul 2019] Citus를 이용한 분산 데이터베이스[Pgday.Seoul 2019] Citus를 이용한 분산 데이터베이스
[Pgday.Seoul 2019] Citus를 이용한 분산 데이터베이스
 
Fatkulin presentation
Fatkulin presentationFatkulin presentation
Fatkulin presentation
 
PGCon 2014 - What Do You Mean my Database Server Core Dumped? - How to Inspec...
PGCon 2014 - What Do You Mean my Database Server Core Dumped? - How to Inspec...PGCon 2014 - What Do You Mean my Database Server Core Dumped? - How to Inspec...
PGCon 2014 - What Do You Mean my Database Server Core Dumped? - How to Inspec...
 
AtlasCamp 2015 Docker continuous integration training
AtlasCamp 2015 Docker continuous integration trainingAtlasCamp 2015 Docker continuous integration training
AtlasCamp 2015 Docker continuous integration training
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12c
 
Hadoop - Lessons Learned
Hadoop - Lessons LearnedHadoop - Lessons Learned
Hadoop - Lessons Learned
 
Firebird
FirebirdFirebird
Firebird
 
Monetdb basic bat operation
Monetdb basic bat operationMonetdb basic bat operation
Monetdb basic bat operation
 
Sharded cluster tutorial
Sharded cluster tutorialSharded cluster tutorial
Sharded cluster tutorial
 
MongoDB - Sharded Cluster Tutorial
MongoDB - Sharded Cluster TutorialMongoDB - Sharded Cluster Tutorial
MongoDB - Sharded Cluster Tutorial
 
MongoDB – Sharded cluster tutorial - Percona Europe 2017
MongoDB – Sharded cluster tutorial - Percona Europe 2017MongoDB – Sharded cluster tutorial - Percona Europe 2017
MongoDB – Sharded cluster tutorial - Percona Europe 2017
 
Percona Live 2017 ­- Sharded cluster tutorial
Percona Live 2017 ­- Sharded cluster tutorialPercona Live 2017 ­- Sharded cluster tutorial
Percona Live 2017 ­- Sharded cluster tutorial
 
Schema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12cSchema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12c
 

Db2

  • 1. SR230559907 To show all the bufferpool:- db2pd -d DEV -bufferpools select varchar(bpname,20) as bpname,npages,pagesize from syscat.bufferpools alter bufferpool IBMSYSTEMBP16K immediate size 20; select * from syscat.bufferpools MESSAGE : ADM6019E All pages in buffer pool "IBMSYSTEMBP16K" (ID "4098") are in use. Refer to the documentation for SQLCODE -1218. SELECT TBSPACE, BUFFERPOOLID FROM SYSCAT.TABLESPACES dbdev-se:db2dev 88> db2 update db cfg for DEV | grep SORTHEAP dbdev-se:db2dev 89> db2 get db cfg for DEV | grep SORTHEAP Sort list heap (4KB) (SORTHEAP) = AUTOMATIC(256) SELECT varchar(bp_name,20) AS bp_name,pool_data_gbp_l_reads,pool_data_gbp_p_reads,member FROM TABLE(MON_GET_BUFFERPOOL('',-2)) dbdev-se:db2dev 82> db2pd -dbptn mem Invalid suboption mem Invalid suboption mem Database Partition 0 -- Active -- Up 1 days 20:32:28 -- Date 06/07/2012 09:55:30 Database Partition Memory Controller Statistics customer.care@icicibank.com Sajjan ATM Card Dept Chirag Gada 8june firsr flight CC9132083 dwarka kalka ji model town Pitam puta ICICI Rp1 10-3 Controller Automatic: N Memory Limit: 2048000 KB Current usage: 462848 KB HWM usage: 463424 KB Cached memory: 185728 KB
  • 2. •softmax represents the percentage of log files that are to be recovered following a database crash; for example, if the value of softmax is 250, then 2.5 log files will contain the changes that need to be recovered if a crash occurs dbdev-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) = ENABLE dbdev-se:db2dev 55> db2ilist db2dev SELECT 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 BY BP_NAME db2 reset monitor all db2 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.catal og /mnt/medi- it/SRM/Install/BS_2005_SR3_SAP_Installation_Master/IM_LINUX_X86_64/NW04S/WEBAS/I ND ./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.catal og
  • 3. select distinct(status) from dba_indexes; select status,index_name,owner,table_name from dba_indexes where status not like 'VALID' and 'UNUSABLE'; select table_name,INDEX_TYPE,PARTITIONED,status from dba_indexes where status ! ='USABLE' /proc/cpuinfo uname -a uname -X cat /proc/meminfo /sapdb/programs/bin/dbmcli