Bo's Oracle Station

查看: 1040|回复: 0

2014-08-02-4.sql

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2014-8-6 08:34:23 | 显示全部楼层 |阅读模式
select  * from v_$session s where s.TERMINAL='pts/1';

--00000001EC871778
--13
--349

select  * from v_$transaction  ;

select * from v_$lock l where l.SID = 13;


create table hr.t05209_parent (  a   number primary key ) ;

create table hr.t05209_son  ( a number  referencing  hr.t05209_parent ) ;


alter table hr.t05209_son drop constraint  SYS_C0011054;

alter table hr.t05209_son  add constraint fk_t05209_son foreign key ( a )  
    referencing hr.t05209_parent   on delete set null;
   
    select  * from dba_constraints c where c.owner='HR' and c.table_name='T05209_SON';
回复

使用道具 举报

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

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-4-29 12:26 , Processed in 0.038841 second(s), 24 queries .

快速回复 返回顶部 返回列表