原创 怎麼捕獲自己session執行的sql,進行深入跟蹤
alter session set timed_statistics = true; --可選 alter session set max_dump_file_size = unlimited; --可選,防止dump目錄放不下
原创 alter system|session set events轉儲
格式: alter system|session set events ‘[eventnumber|immediate] trace name eventname [forever] [, level levelnumber] :
原创 ORA-12170引發的ORA-3136所導致的數據庫問題
環境: ORACLE RDBMS Version: 11.1.0.6.0 + Windows 2003 問題描述: 10月9號,長假歸來第一天,公司開發庫數據庫無法進入,當時沒有查看日誌文件,也沒看ora-報錯號,直接重啓數據庫了(這次解
原创 rownum和rowid的概念
ROWNUM returns a number indicating the sequence in which a row was selected from a table. The first row selected has a
原创 隱式轉換在執行計劃中對Access predicates 和Filter predicates 的影響
In Oracle 10g, when we see the explain plan for a SQL, then there are 2 new items that are of interest - the 'Access pr
原创 ALTER TABLE...MOVE 相關使用方法
1. The ALTER TABLE...MOVE statement enables you to relocate data of a non-partitioned table or of a partition of a par
原创 ora-03113 通信通道的文件結束和ORA-07445: 出現異常錯誤: 核心轉儲
今天數據庫莫名其妙地出現登陸後執行報“通信通道的文件結束錯誤處理”的錯誤,搞了半天沒解決,頭一下暈了,最後幸虧測試部王哥幫忙,唉,看來頭暈時更暈人。。。 以下是各個解決方案: ora-03113 通信通道的文件結束錯誤處理編輯D
原创 Linux 重啓命令
----Linux 重啓命令---- 1、shutdown 2、poweroff 3、init 4、reboot 5、halt *---具體說明--- shutdown reboot 在linux下一些常用的關機/重啓命令
原创 Before, after, each row and table level triggers [Oracle]
The goal of this page is to demonstrate the most important differences between before and after triggers as well as the
原创 Oracle10g ASH使用
ASH(Active Session History)從Oracle10g開始引入了V$ACTIVE_SESSION_HISTORY視圖,用於查詢用戶活動會話的歷史信息。ASH每秒採樣V$session,記錄會話等待的事件,不活動的會話不
原创 V$filestat探究
說明:This view displays the number of physical reads and writes done and the total number of single-block and multibloc
原创 length()與lengthb()的區別
環境:oracle 11.1.0.6.0 區別:length計算字符長度,lengthb計算字節長度。 SQL> select length('a') from dual; LENGTH('A')-----------
原创 操作Tablespace 的三種方式offline 、online、read only
前提,用戶必須要有alter tablespace或者manage tablespace的權限 一 offline方式 1. system tablespace、undo tablespace、temporary t
原创 每一次登錄Pl/sql,查詢報錯Dynamic Performance Tables not accessible...之後再查詢時就好了
報錯截圖: 當前解決方案: utomatic statistics 含義: When you execute a statement in a SQL Window or in a Test Window,
原创 Windows server 2008 R2 + oracle 10g 10.2.0.4 安裝
目的:客戶的服務器上是Windows server 2008 R2 ,安裝oracle 10g 10.2.0.1。 原因及解決方案:後來發現,安裝文件是32位,操作系統是64位,版本不匹配,而且oracle至少需要10.2.0.5以上