DB2 LUW V11 Certification Training - Part 2
DB2 LUW V11 Certification Training - Part 2
DB2 LUW V11 Certification Training - Part 2
www.EnterpriseDB2.com
Agenda
Sample Questions
DB2 BLU Acceleration
10 record(s) selected.
DB2 BLU Acceleration… Cont.
Synopsis Table
This is a meta-data describing which ranges of values exist in which portion of the user table.
• This enables data skipping when scanning data to fulfill a query request
• Pre-sorted data
• It is managed and maintained by DB2 automatically and transparently to the users
• It is a column-organized table and is compressed
• Generally 0.1 or 0.2% of the base table
For a table having 62,914,560 records, what will the synopsis table records be around?
61K ~ (62M/1024)
1
-----------
61512
DB2 BLU Acceleration… Cont.
ALTER TABLE MS.T3 ADD CONSTRAINT PK_T3 PRIMARY KEY (ID) ENFORCED;
3 record(s) selected.
• maxanalyzesize: How much data is sampled in the ANALYZE phase? Default is 128 GB
and can be modified. Value ZERO means unlimited.
Data Load Best Practices for BLU… Cont.
• Analyze: This occurs only if dictionary creation is necessary. When necessary it builds
histogram to track value frequency and column compression dictionaries.
• Load: Compress data pages, update synopsis table
• Build: Builds key for UNIQUE indexes
Data Load Comparison
BLU In-Memory
Overall Time: 155.60 Seconds 170.68 Seconds
13
New Monitoring Table Function
Lock Latch
Locks assure logical consistency of the data in a Latch is a lock at the internal memory structure
table via record level or table level locks. consistency of the object in memory
Held till the logical completion of the transaction. This will only be held at the page level for a short
term.
Monitoring via SYSPROC.MON_GET_LOCKS Monitoring via SYSPROC.MON_GET_LATCH
SYSPROC.MON_GET_LATCH
SELECT SUBSTR(LATCH_NAME,1,40) LATCH_NAME,
SUBSTR(MEMORY_ADDRESS,1,20) MEMORY_ADDRESS,
EDU_ID,
SUBSTR(EDU_NAME,1,20) EDU_NAME,
APPLICATION_HANDLE,
LATCH_STATUS,
LATCH_WAIT_TIME FROM TABLE ( MON_GET_LATCH( NULL, -2 ) )
ORDER BY LATCH_NAME, LATCH_STATUS;
SYSPROC.MON_GET_LATCH
MON_GET_LATCH (<search_args>,<member>)
• application_handle
• latch_name
• edu_id
• latch_status
PureScale Enhancements
Packaging
New Direct Advanced Edition
Passive/Active Licensing
Improvements in Installation and Deployment
Install Complexity Reduced
Smarter Defaults
GPFS Replication step reduction from 30 to 4
db2cluster command enhancements
Install recovery/restart logic
Improved Documentation
Improved Buffer Management
Truncate, Drop Table, Load/Import and Ingest speed increases
PureScale Enhancements - Continues
Enhanced pre-checking script
Improved Member Set Alternate Member Failover Priority
Linux Virtual Enhancements
Single-Root I/O Virtualization
Shared Single Adapter across VMWare Partitions
GDPC Enhancements
Multiple adapter ports per member
Dual Switches
BSSL – (Bold, Simple, Stable, Limited) - HADR
No SPOF: DB2 Version Upgrade Outage
CFs CFs
Members Members
CF Members
CF Members
SAAU(Simple, Always Available, Unlimited)- CDC/QRep
CFs CFs
Members Members
DB2_INSTANCE_ALERTS View
CLP Commands
LIST INSTANCE
LIST INSTANCE SHOW DETAIL
LIST APPLICATIONS AT MEMBER <node>
LIST APPLICATIONS GLOBAL
PureScale Monitoring