⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ddltablelockmode.out

📁 derby database source code.good for you.
💻 OUT
📖 第 1 页 / 共 5 页
字号:
ij> -- test DDL Table Lock modecall SYSCS_UTIL.SYSCS_SET_RUNTIMESTATISTICS(1);0 rows inserted/updated/deletedij> maximumdisplaywidth 2000;ij> CREATE PROCEDURE WAIT_FOR_POST_COMMIT() DYNAMIC RESULT SETS 0 LANGUAGE JAVA EXTERNAL NAME 'org.apache.derbyTesting.functionTests.util.T_Access.waitForPostCommitToFinish' PARAMETER STYLE JAVA;0 rows inserted/updated/deletedij> -- create tables with different lock modesdrop   table default1;ERROR 42Y55: 'DROP TABLE' cannot be performed on 'DEFAULT1' because it does not exist.ij> create table default1(c1 int);0 rows inserted/updated/deletedij> drop   table row1;ERROR 42Y55: 'DROP TABLE' cannot be performed on 'ROW1' because it does not exist.ij> create table row1(c1 int);0 rows inserted/updated/deletedij> alter table row1 locksize row;0 rows inserted/updated/deletedij> drop   table table1;ERROR 42Y55: 'DROP TABLE' cannot be performed on 'TABLE1' because it does not exist.ij> create table table1(c1 int);0 rows inserted/updated/deletedij> alter table table1 locksize table;0 rows inserted/updated/deletedij> -- verify that views have table lock mode of 'R' (ignored)create view v1 as select * from table1;0 rows inserted/updated/deletedij> select tablename, lockgranularity from sys.systableswhere tablename = 'V1';TABLENAME                                                                                                                       |&----------------------------------------------------------------------------------------------------------------------------------V1                                                                                                                              |Rij> drop view v1;0 rows inserted/updated/deletedij> -- verify that system tables have lock mode of 'R'select tablename, lockgranularity from sys.systableswhere tablename = 'SYSTABLES';TABLENAME                                                                                                                       |&----------------------------------------------------------------------------------------------------------------------------------SYSTABLES                                                                                                                       |Rij> -- READ COMMITTED testscall SYSCS_UTIL.SYSCS_SET_RUNTIMESTATISTICS(1);0 rows inserted/updated/deletedij> maximumdisplaywidth 2000;ij> set current isolation = CS;0 rows inserted/updated/deletedij> -- all selects should be row locked except for table1select * from default1;C1         -----------ij> values SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS();1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Statement Name: 	nullStatement Text: 	-- all selects should be row locked except for table1select * from default1Parse Time: 0Bind Time: 0Optimize Time: 0Generate Time: 0Compile Time: 0Execute Time: 0Begin Compilation Timestamp : nullEnd Compilation Timestamp : nullBegin Execution Timestamp : nullEnd Execution Timestamp : nullStatement Execution Plan Text: Table Scan ResultSet for DEFAULT1 at read committed isolation level using instantaneous share row locking chosen by the optimizerNumber of opens = 1Rows seen = 0Rows filtered = 0Fetch Size = 16	constructor time (milliseconds) = 0	open time (milliseconds) = 0	next time (milliseconds) = 0	close time (milliseconds) = 0scan information: 	Bit set of columns fetched=All	Number of columns fetched=1	Number of pages visited=1	Number of rows qualified=0	Number of rows visited=0	Scan type=heap	start position: null	stop position: null	qualifiers:Noneij> select * from row1;C1         -----------ij> values SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS();1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Statement Name: 	nullStatement Text: 	select * from row1Parse Time: 0Bind Time: 0Optimize Time: 0Generate Time: 0Compile Time: 0Execute Time: 0Begin Compilation Timestamp : nullEnd Compilation Timestamp : nullBegin Execution Timestamp : nullEnd Execution Timestamp : nullStatement Execution Plan Text: Table Scan ResultSet for ROW1 at read committed isolation level using instantaneous share row locking chosen by the optimizerNumber of opens = 1Rows seen = 0Rows filtered = 0Fetch Size = 16	constructor time (milliseconds) = 0	open time (milliseconds) = 0	next time (milliseconds) = 0	close time (milliseconds) = 0scan information: 	Bit set of columns fetched=All	Number of columns fetched=1	Number of pages visited=1	Number of rows qualified=0	Number of rows visited=0	Scan type=heap	start position: null	stop position: null	qualifiers:Noneij> select * from table1;C1         -----------ij> values SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS();1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Statement Name: 	nullStatement Text: 	select * from table1Parse Time: 0Bind Time: 0Optimize Time: 0Generate Time: 0Compile Time: 0Execute Time: 0Begin Compilation Timestamp : nullEnd Compilation Timestamp : nullBegin Execution Timestamp : nullEnd Execution Timestamp : nullStatement Execution Plan Text: Table Scan ResultSet for TABLE1 at read committed isolation level using instantaneous share table locking chosen by the optimizerNumber of opens = 1Rows seen = 0Rows filtered = 0Fetch Size = 16	constructor time (milliseconds) = 0	open time (milliseconds) = 0	next time (milliseconds) = 0	close time (milliseconds) = 0scan information: 	Bit set of columns fetched=All	Number of columns fetched=1	Number of pages visited=1	Number of rows qualified=0	Number of rows visited=0	Scan type=heap	start position: null	stop position: null	qualifiers:Noneij> -- scans for all updates should be row locked except for table1update default1 set c1 = 1;0 rows inserted/updated/deletedij> values SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS();1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Statement Name: 	nullStatement Text: 	-- scans for all updates should be row locked except for table1update default1 set c1 = 1Parse Time: 0Bind Time: 0Optimize Time: 0Generate Time: 0Compile Time: 0Execute Time: 0Begin Compilation Timestamp : nullEnd Compilation Timestamp : nullBegin Execution Timestamp : nullEnd Execution Timestamp : nullStatement Execution Plan Text: Update ResultSet using row locking:deferred: falseRows updated = 0Indexes updated = 0Execute Time = 0	Project-Restrict ResultSet (1):	Number of opens = 1	Rows seen = 0	Rows filtered = 0	restriction = false	projection = true		constructor time (milliseconds) = 0		open time (milliseconds) = 0		next time (milliseconds) = 0		close time (milliseconds) = 0		restriction time (milliseconds) = 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -