Physical Address 1:1988
Creation date 08/21/2006 20:07:41
TBLspace Flags 801 Page Locking
TBLspace use 4 bit bit-maps
Maximum row size 80
Number of special columns 0
...
...
Listing 6. Identifying a fragmented table through its hexadecimal partition number
Query:
------
database stores_demo;
select st.tabname, dbinfo("dbspace", sf.partn), hex(sf.partn)
from systables st, sysfragments sf
where st.tabid = sf.tabid
and sf.fragtype = "T"
and hex(sf.partn) = "0x0010013B";
Result:
-------
No rows found.
本例中的partition number 0x0010013B不是分片表的一個(gè)分片,因此在sysfragments表中不存在對(duì)應(yīng)信息。但是對(duì)于分片表則會(huì)有信
Listing 14. Listing isolation levels of individual database sessions
Command:
---------
onstat -g sql
Output:
-------
Sess SQL Current Iso Lock SQL ISAM F.E.
Id Stmt type Database Lvl Mode ERR ERR Vers Explain
50 - stores_demo RR Wait 10 0 0 9.03 Off
45 - stores_demo DR Not Wait 0 0 9.03 Off
...
...