5、视图
查看视图的名称SQL>select view_name from user_views;查看创建视图的 select 语句SQL>set view_name,text_length from user_views;SQL>set long 2000; 解释:可以根据视图的 text_length 值设定 set long 的大年夜小SQL>select text from user_views where view_name=upper('&view_name');
6、同义词
查看同义词典名称SQL>select * from user_synonyms;
7、束缚前提
查看某表的束缚前提SQL>select constraint_name, constraint_type,search_condition, r_constraint_namefrom user_constraints where table_name = upper('&table_name');SQL>select c.constraint_name,c.constraint_type,cc.column_namefrom user_constraints c,user_cons_columns ccwhere c.owner = upper('&table_owner') and c.table_name = upper('&table_name')and c.owner = cc.owner and c.constraint_name = cc.constraint_nameorder by cc.position;
8、存储函数和过程
查看函数和过程的状况SQL>select object_name,status from user_objects where object_type='FUNCTION';SQL>select object_name,status from user_objects where object_type='PROCEDURE';查看函数和过程的源代码SQL>select text from all_source where owner=user and name=upper('&plsql_name');
【编辑推荐】
- 一个真实案例,教会你数据库机能调优
- 一篇控制MySQL,Oracle和PostgreSQL数据库体系架构
- SQL Server、MySQL、Oracle三种数据库的优缺点比较,这一文够了
- 回想2017年宣布的┞封10个新数据库体系
- MySQL的前缀索引及Oracle的类似实现
推荐阅读
年前最后一场技巧盛宴 | 1月27日与京东、日记易技巧大年夜咖畅聊智能化运维成长趋势!纵不雅AIO市场,联想、苹不雅、惠普、戴尔、微星位列前五,2017年实现增长的只有联想和微星。 对于AIO>>>详细阅读
本文标题:收藏!Oracle常用数据字典表、视图的总结,都在这里了
地址:http://www.17bianji.com/lsqh/40375.html
1/2 1