前台用户自定义性能视图

CREATE OR REPLACE VIEW USER_CONSTRAINTS AS
SELECT owner,
       constraint_name,
       constraint_type,
       table_name,
       search_condition,
       r_owner,
       r_constraint_name,
       delete_rule,
       status,
       deferrable,
       deferred,
       validated,
       generated,
       bad,
       rely,
       last_change,
       index_owner,
       index_name,
       invalid,
       view_related
  FROM all_constraints
 WHERE owner = 'TMS_TEST_DATA';



CREATE OR REPLACE VIEW USER_CONS_COLUMNS AS
SELECT owner, constraint_name, table_name, column_name, position
  FROM all_cons_columns
 WHERE owner = 'TMS_TEST_DATA';



create or replace view user_tab_columns as
select  "OWNER","TABLE_NAME","COLUMN_NAME","DATA_TYPE","DATA_TYPE_MOD","DATA_TYPE_OWNER","DATA_LENGTH","DATA_PRECISION","DATA_SCALE","NULLABLE","COLUMN_ID","DEFAULT_LENGTH","DATA_DEFAULT","NUM_DISTINCT","LOW_VALUE","HIGH_VALUE","DENSITY","NUM_NULLS","NUM_BUCKETS","LAST_ANALYZED","SAMPLE_SIZE","CHARACTER_SET_NAME","CHAR_COL_DECL_LENGTH","GLOBAL_STATS","USER_STATS","AVG_COL_LEN","CHAR_LENGTH","CHAR_USED","V80_FMT_IMAGE","DATA_UPGRADED","HISTOGRAM"
  from all_tab_columns
  where  1=1 and owner='TMS_TEST_DATA';

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29439655/viewspace-1372410/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29439655/viewspace-1372410/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值