您的位置:首页 > 数据库

项目:部署基于windows的SQL故障转移群集

2014-08-20 16:04 169 查看
a) How to know table Owner
select * from all_tables t where t.table_name = 'XXXX';
(select * from user_tables t where t.table_name = 'XXXX';)
 
b) How to use source fragment to find source name
select * from user_source t where lower(t.text) like '%xxx%';
select * from all_source t where lower(t.text) like '%xxx%';
 
Note: user_source: name, type(PACKAGE,PACKAGE BODY), line, text:varchar2(4000)
 
c) How to find object information
select * from user_objects;
select * from all_objects;
 
d) How to find constrains
select * from user_constraints;
 
e) Column, etc
select * from user_tab_cols; --get each column properties 
select * from user_col_comments t where   lower(column_name) LIKE '%xxx%';
 
f) How to check Oracle version
select * from v$version;
 
 
 
 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐