用sql語句檢視資料庫就夠,前提針對自己可見的表,如下語句,檢視表結構方式:
1.select
a.column_name 欄位名,a.data_type 資料型別,a.data_length 長度,a.data_precision 整數字,
a.data_scale 小數字,a.nullable 允許空值,a.data_default 預設值,b.comments 備註
from
user_tab_columns a,user_col_comments b
where
a.table_name = b.table_name
and a.column_name = b.column_name
and a.table_name = 'ar_mstcimnet';
2.select * from user_tab_columns where table_name='ar_mstcimnet';
檢視Oracle資料庫狀態
show sga set wrap off set linesize 400 檢視正在執行的後台程序 select from v bgprocess select from v bgprocess where paddr 00 檢視資料庫的物理組成 檔案情況 select from v contro...
檢視oracle資料庫鎖
方法一 檢視產生鎖的程序id 在資料庫伺服器上 主機 如應用伺服器 等等 select s.machine sourse host,p.spid pid,l.session id sid,s.serial l.locked mode,l.oracle username,s.user l.os use...
oracle 資料庫相關資訊檢視
1.查詢所有使用者表空間占用大小 select segment name,tablespace name,sum bytes 1024 1024 m from dba extents where segment type table group by segment name,tablespace ...