Windows PowerShell
版权所有 (C) 2014 Microsoft Corporation。保留所有权利。
PS C:\Users\Administrator> sqlplus sys/[email protected] as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on 星期一 3月 5 17:49:27 2018
Copyright (c) 1982, 2010, Oracle. All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select * from sde.state_locks;
未选定行
SQL> select * from sde.object_locks;
未选定行
SQL> select * from sde.layer_locks;
未选定行
SQL> select * from sde.table_locks;
SDE_ID REGISTRATION_ID LO LOCK_TIME
---------- --------------- -- --------------
13 9 S 05-3月 -18
13 10 S 05-3月 -18
13 11 S 05-3月 -18
13 8 S 05-3月 -18
13 12 S 05-3月 -18
22 9 S 05-3月 -18
22 10 S 05-3月 -18
22 11 S 05-3月 -18
22 8 S 05-3月 -18
22 12 S 05-3月 -18
已选择10行。
SQL> truncate table sde.table_locks;
表被截断。
SQL> select * from sde.table_locks;
SDE_ID REGISTRATION_ID LO LOCK_TIME
---------- --------------- -- --------------
22 9 S 05-3月 -18
SQL> truncate table sde.table_locks;
表被截断。
原文地址:https://www.cnblogs.com/herosoft/p/8510800.html