12
返回列表 发新帖
楼主: xGss2000

[讨论] 关于alter table xxx enable table lock

[复制链接]
论坛徽章:
1
2013年新春福章
日期:2013-02-25 14:51:24
11#
 楼主| 发表于 2010-1-27 15:01 | 只看该作者
原帖由 Yong Huang 于 2010-1-27 02:59 发表
How are you so sure "不可对我这张表持有锁的"? I bet you can find its transaction in v$transaction.

Why not try to reproduce this with SQL trace turned on for that Weblogic session so we know what SQL it runs along the way? There must be some DML in the middle of it.

Yong Huang


我是第三方合作人员,没有dba权限,更不知道sys用户的密码。没办法做其他session的sql_trace。
刚刚做了自己的'alter table test_d enable table lock'进程的sql_trace,却发现没有读trace文件的权限......

使用道具 举报

回复
论坛徽章:
42
生肖徽章2007版:鸡
日期:2008-01-02 17:35:53奥运会纪念徽章:羽毛球
日期:2008-04-26 13:39:23生肖徽章2007版:虎
日期:2008-11-24 15:23:482012新春纪念徽章
日期:2012-01-04 11:51:22
12#
发表于 2010-3-8 17:03 | 只看该作者
原帖由 xGss2000 于 2010-1-27 15:01 发表


我是第三方合作人员,没有dba权限,更不知道sys用户的密码。没办法做其他session的sql_trace。
刚刚做了自己的'alter table test_d enable table lock'进程的sql_trace,却发现没有读trace文件的权限......




算幸运,生产系统没有异常

使用道具 举报

回复
论坛徽章:
4
2010新春纪念徽章
日期:2010-03-01 11:19:502014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11ITPUB社区OCM联盟徽章
日期:2014-04-30 14:54:24
13#
发表于 2010-3-9 13:18 | 只看该作者
#[/oracle] sqlplus acct/acct

SQL*Plus: Release 9.2.0.4.0 - Production on Tue Mar 9 13:42:01 2010

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.


Connected to:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production

SQL> create table test_d as select * from all_tables;

Table created.

SQL> alter table test_d disable table lock;

Table altered.

SQL> drop table test_d;
drop table test_d
           *
ERROR at line 1:
ORA-00069: cannot acquire lock -- table locks disabled for TEST_D


SQL> alter table test_d enable table lock;

Table altered.

SQL> drop table test_d;

Table dropped.

SQL> select * from v$version where rownum = 1;

BANNER
--------------------------------------------------------------------------------
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production

试了下 9.2.0.4 Linux 正常

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表