查詢方式:LIKE '%xx%'普通: SELECT * FROM TABLE T WHERE T.COLUNM LIKE '%xx%'最佳化:使用 INSTRSELECT * FROM TABLE T WHERE INSTR(T.COLUNM, xx)>0在執行的時候,執行計畫顯示,消耗值,io值,cpu值均非常大,原因是like後面前模糊查詢導致索引失效,進行全表掃描。1. 盡量不要使用 like '%%'2. 對於 like '%' (不以 % 開頭),Oracle 可以應用
有朋友反饋資料庫啟動運行一點時間之後,然後就自動crash,讓我們幫忙找原因,通過分析是由於smon進程觸發ORA-600 13013導致資料庫異常alert日誌報錯資訊Thu Aug 4 18:39:44 2016Database Characterset is ZHS16GBKreplication_dependency_tracking turned off (no async multimaster replication found)Starting background
在dataguard上,使用rman串連catalog資料庫進行備份。備份的時候,rman的日誌報錯如下:Starting backup at 2014/04/23-10:02:02archived log /aabb/qb/mobprd/log/fra/mobprd/archivelog/2014_04_23/o1_mf_1_201410_9ofpggpg_.arc not found or out of sync with catalogskipping inaccessible file
將10.2.0.5的一個大表匯入到12.1.0.2的時候,匯出參數是:[oracle10g@testdb tmp]$ cat expdp.paruserid='/ as sysdba'DIRECTORY=DUMPDIRdumpfile=mytable_%U.dmptables=schema.mytablelogfile=mytable.logjob_name=mytableparallel=8filesize=100M匯入參數是:userid='/ as
客戶一個資料庫,架構是2地3中心,本地有primary和standby,遠程還有一個standby。primary的rman archivelog deletion policy是ship to all standby同城standby的rman archivelog deletion policy是backup 1 time,備份在同城standby上進行。遠程standby的rman archivelog deletion policy是applied on all
作業系統:Red Hat Enterprise Linux Server release 6.2 x86_64Oracle版本:Oracle Database 11g Release 2Oracle官方下載地址:File1:http://download.oracle.com/otn/linux/oracle11g/R2/linux.x64_11gR2_database_1of2.zipFile2:http://download.oracle.com/otn/linux/oracle11g/R2
具體錯誤java.sql.SQLRecoverableException: Io 異常: The Network Adapter could not establish the connection at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:101) at
資料庫最初故障Thu Sep 25 09:27:26 2014MMON started with pid=15, OS id=1968 starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...starting up 1 shared server(s) ...ORACLE_BASE from environment = F:\oracleThu Sep 25 09:27:2
朋友資料庫啟動遭遇ORA-00600[2663]Mon Sep 22 19:24:20 2014Thread 1 advanced to log sequence 17 (thread open)Thread 1 opened at log sequence 17 Current log# 17 seq# 17 mem# 0: /u02/orayali2/redo17.logSuccessful open of redo thread 1MTTR advisory is