癥狀:安裝oracle 10g 的時候 網路檢測沒有通過,沒有處理就繼續安裝了,ip地址也沒有制定,後來給機器修改了IPoracleDBConsole就不能啟動了,系統開機記錄查看:Agent process exited abnormally during initialization。 無法啟動oracleDBConsole的解決方案之一 癥狀:原來正常,後來給機器加了DNS尾碼就不能啟動了,系統啟動時報錯:Agent process exited abnormally
RAT 是Oracle 11g的一個新特性.它的目的是評估資料的效能。當我們對資料庫進行升級或改動一些配置,換資料庫伺服器時可以對改動之前和改動之後的效能進行對比.要使兩者的效能具有可比性,並且切合實際。就需要先在生產環境中capture某一個時間段的所有操作。然後把它們在測試環境中進行replay. 一.Capture步驟建立一個系統目錄,例如d:\capture建立一個Oracle 目錄:create directory dir1 as
1、SET AUTOTRACE參數SET AUTOTRACE OFF ---------------- 不產生AUTOTRACE 報告,這是預設模式SET AUTOTRACE ON EXPLAIN ------ AUTOTRACE只顯示最佳化器執行路徑報告 SET AUTOTRACE ON STATISTICS -- 只顯示執行統計資訊SET AUTOTRACE ON ----------------- 包含執行計畫和統計資訊 SET AUTOTRACE TRACEONLY ------
首先進行一些基本的設定1.SQL*PLUS中輸入SQL> connect sys/sys as sysdba; SQL> alter system set job_queue_processes = 6; --自動執行資料收集時該參數需要大於0System alteredSQL> alter system set timed_statistics = true; System altered--使用statspack收集統計資訊時建議將該值設定為
-----------Step-by-Step Instructions for Creating a Logical Standby Database-----------1.Create a Physical Standby Database (EXSITING NOW)2.Stop Redo Apply on the Physical Standby Database Executing the following statement in the sqlplus on the
在安裝oracle 11g rac是報錯內容如下:INFO: Checking Single Client Access Name (SCAN)...INFO: Checking name resolution setup for "racscan"...INFO: ERROR:INFO: PRVF-4664 : Found inconsistent name resolution entries for SCAN name "racscan"INFO: ERROR:INFO: PRVF-465
做Oracle的實驗,需要匯入匯出視圖,scott下沒有視圖,故需要建立。若用scott直接建立,則顯示“ORA-01031: 許可權不足”,方法如下。SQL> grant create view to scott;grant create view to scott*第 1 行出現錯誤:ORA-01031: 許可權不足SQL> conn sys/root as sysdba已串連。SQL> grant create view to scott;授權成功。SQL>
ASCII字串==>16進位串create or replace function AscToHex(sIn IN varchar2)RETURN varchar2ISsTmp varchar2(4000);i integer;BEGINi:=1;stmp:='';for i in 1..length(sIn) loop sTmp:=sTmp||trim(to_char(ascii(substr(sIn,i,1)),'XXXX'));end loop;return sTmp;END;/
Oracle 中count函數用法Count用來統計查詢結果有幾條記錄例表 t_test姓名性別年齡工資張三男232000李四女34 王武男251300 ① 簡單應用查詢:Select count(*) from t_test;結果:3解釋:以上查詢將返回表t_test中記錄的條數。② 帶where條件的應用查詢:Select count(*) from t_test where