範例:create or replace procedure test is v_count number(4); cursor v_c is select * from "t2VoucherHandNo"; begin select count(*) into v_count from "t2VoucherHandNo"; if v_count>1 then raise too_many_rows; else for my_v
使用預存程序(PL/SQL)向資料庫中存取BLOB對象——圖片新一篇: Add a custom tool to the web mapping application注:僅儲存和讀取伺服器上的資料用戶端可以執行,但也是存取伺服器上的資料。以下操作最好在伺服器上執行一、使用預存程序(PL/SQL)向資料庫中儲存BLOB對象以下預存程序用於向資料庫載入BLOB對象1.建立directory並授權關於Directory可以參考: Using Create directory &
oracle@linux-l4nt:~> sqlplus / as sysdbaSQL*Plus: Release 10.2.0.4.0 - Production on Sat Jan 23 10:58:31 2010Copyright (c) 1982, 2007, Oracle. All Rights Reserved.Connected to an idle instance.SQL> startupORACLE instance started.Total System
1.查看資料檔案的路徑:SQL> col file_name format a55 SQL> set line 120 pagesize 2000SQL> select file_name,tablespace_name from dba_data_files;FILE_NAME TABLESPACE_NAME------------------------------
If you use DBWR_IO_SLAVES, only one database writer process will be used, regardless of the setting for DB_WRITER_PROCESSES.dbwr_io_slaves 主要用於類比非同步環境,在不支援非同步作業的os上,可以提高IO的讀寫速度。多個dbwr可以並行(同時)從data buffer中擷取dirty block並並行寫入磁碟。但是,多個IO
分區表的維護:增加分區: ALTER TABLE sales ADD PARTITION sales2000_q1 VALUES LESS THAN (TO_DATE(‘2000-04-01’,’YYYY-MM-DD’) TABLESPACE ts_sale2000q1; 如果已有maxvalue分區,不能增加分區,可以採取分裂分區的辦法增加分區!刪除分區: ALTER TABLE sales DROP PARTION sales1999_q1; 截短分區:alter table sales