摘要:
col owner format a20 col object_id format 99999999 col object_name format a30 col object_type format a30 col column_name format a30 col table_name for 阅读全文
摘要:
SQL> desc gv$instance; Name Null? Type INST_ID NUMBER INSTANCE_NUMBER NUMBER INSTANCE_NAME VARCHAR2(16) HOST_NAME VARCHAR2(64) VERSION VARCHAR2(17) ST 阅读全文
摘要:
查看数据库连接主机名,程序名,用户名等情况 select b.MACHINE, b.PROGRAM, b.USERNAME, count(*) from v process a, vprocessa,vsession b where a.ADDR = b.PADDR and b.USERNAME i 阅读全文
摘要:
col owner format a20 col object_name format a50 set linesize 100 select owner,object_name from dba_objects where owner='ORDDATA' and object_type='TABL 阅读全文
摘要:
1、查找表的所有索引(包括索引名,类型,构成列): select t.*,i.index_type from user_ind_columns t,user_indexes i where t.index_name = i.index_name and t.table_name = i.table_ 阅读全文