可以使用db2pd -trans来确定当前的lowtranLSN吗?
1. 什么是lowtranLSN:lowtranlsnLSN of the first log record written by the oldest uncommitted transaction. It only moves up when the oldest transaction commits/aborts. Oldest is is ordered by the time transactions write their first log records, not the UOW start time reported by database monitor.2. lowtranLSN的作用是什么?lowtranLSN和minbuffLSN是DB2数据库进行崩溃恢复时重要依据。下面会有比较详细的说明。3. 针对db2pd -trans能否确定当前系统中的lowtranLSN,我做了如下的测试测试环境: DB2 v9.5 FP2a测试的
为什么有大量的FreePndpgs很久都不释放呢?
为什么会有很多PndFreePages不释放呢?这可能是很多DBA尤其是BI数据库的DBA不能理解的地方。那么如何才能让这些页真正的释放掉呢?下面我们做个测试,下面通过一个简单的例子说明一下。不过要聊起原因来,就要涉及到DB2的表空间管理架构了,囿于篇幅,这里就不做详细的解释了。1. 创建自动存储器表空间ftest2,表sales2位于ftest2中2. 初始状态如下:$ db2pd -db sample -tablespaces | egrep"0x0700000047484820|Address|PndFreePgs"Address Id TypeContent PageSz ExtentSz Auto Prefetch BufID BufIDDisk FSC NumCntrsMaxStr