原创 察看某表上建立的索引情況

select index_name,column_name,column_position from dba_ind_columns where table_owner='XXXX' and table_name = 'XXXX' ord

原创 查找處理oracle數據庫中僵死進程

查找數據庫中僵死進程  Col terminal format a20 select pid, spid, username, terminal, program from v$process where addr not in

原创 修改ORACLE數據庫字符集

查看數據庫的字符集 sqlplus system/manager col parameter for a40 col value for a40 set lines 200 select * from nls_database_p

原创 ORACLE中表或者索引的實際大小

查詢表或者索引的實際大小: 比如表有多少個數據塊,有多少條記錄 select blocks from dba_segments where owner='TEST' and segment_name ='表名字'; select  b

原创 Linux下vmstat輸出釋疑

Vmstat procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu---- r b   swpd free buff cache      

原创 根據進程定位SQL

--查詢哪個SQL消耗系統資源過大 --先用top查看是哪個oracle進程消耗CPU大 --根據進程號使用SQL語句查詢其對應的執行SQL語句 select p.spid,p.username,p.terminal,s.sid,s.

原创 OERR使用

oerr是一個簡單而非常有用的命令,linux/unix的平臺安裝完Oracle就已經帶有了。 window平臺可以到網上下載 這個命令可以快速的查詢一個根據oracle錯誤號的查到錯誤概要描述 比如 [oracle@dxzq10 ~]

原创 關於監聽和監聽日誌大小

看操作系統有哪些關於監聽的進程 ps -ef |grep lsnr 察看監聽的狀態 lsnrctl status 啓動監聽 lsnrctl start lintener.log日至,超過2G,就無法啓動監聽 解決辦法: 一定要先停