--1.ASCII返回與指定的字元對應的十進位數;select ascii('A') A, ascii('a') a, ascii('0') zero, ascii(' ') space from dual;--返回: 65 97 48 32--2.CHR給出整數,返回對應的字元;select chr(54740) zhao, chr(65) chr65 from dual;--返回:趙 A--3.CONCAT串連兩個字串;select
預存程序建立文法:create or replace procedure 預存程序名(param1 in type,param2 out type) as 變數1 類型(值範圍);變數2 類型(值範圍);Begin Select count(*) into 變數1 from 表A where列名=param1; If (判斷條件) then Select 列名 into 變數2 from 表A where列名=param1; Dbms_output。Put_
Oracle Restart improves the availability of your single-instance Oracle database. Oracle Restart automatically restarts the database instance, the Automatic Storage Management (ASM) instance, the listener, and other components after a hardware or
1.使用 CREATE_BASELINE_TEMPLATE 預存程序建立 single baseline template:col BASELINE_NAME for a30TEMPLATE_NAME for a30select DBID,BASELINE_ID,BASELINE_NAME,BASELINE_TYPE,EXPIRATION,TEMPLATE_NAME from dba_hist_baseline; DBID BASELINE_ID BASELINE_NAME
客戶的11.2.0.3 RAC環境自動啟動並執行JOB報錯ORA-29280。詳細錯誤資訊為:Sat Sep 15 05:59:59 2012 VKRM started with pid=54, OS id=32622 Sat Sep 15 06:00:09 2012 Errors in file /opt/app/oracle/diag/rdbms/orcl/orcl1/trace/orcl1_j001_32634.trc:ORA-12012: error on auto execute
1.產生單一實例 AWR 報告:@$ORACLE_HOME/rdbms/admin/awrrpt.sql2.產生 Oracle RAC AWR 報告:@$ORACLE_HOME/rdbms/admin/awrgrpt.sql3.產生 RAC 環境中特定資料庫執行個體的 AWR 報告:@$ORACLE_HOME/rdbms/admin/awrrpti.sql4.產生 Oracle RAC 環境中多個資料庫執行個體的 AWR