一、我的是用包做的簡單的應用預存程序返回結果集create or replace package text_fhz is type type_cur is ref cursor; --定義遊標變數用於返回記錄集 procedure TESTA(deptcode IN VARCHAR2, v_cur out type_cur--定義輸出的變數);end text_fhz;create or replace package body text_fhz
最近要最佳化Oracle資料庫的效率,然後在網上查了很多判斷記錄是否存在的高效率方法網上有很多的建議第一種方法,我做了一個測試,但是可能資料量不夠大,42667條記錄,不知道很大的資料量是什麼一個情況網上好多高效的建議方式 Code highlighting produced by Actipro CodeHighlighter
1.在Varchar2的格式中‘’相當於null(都不分配記憶體)。 select '存在' aa from dual where '' is null 這句話的結果是存在的。 2.在Oracle中不能對null做邏輯判斷,只能使用is和is not。 select '存在' aa from dual where null = null;select '存在' aa from dual where null <> null;select '存在' aa from dual
Oracle XE預設串連數好像是40個,如果process超出這個數字,再次申請串連就會被拒絕。 1,用system使用者登入: sqlplus system/password@xe 2,執行以下命令: alter system set session_cached_cursors=200 scope=spfile; alter system set session_max_open_files=200 scope=spfile; alter system set sessions=20
[解決方案]1)通過尋找已被鎖定的資料庫表以及相關的sid,serial#,spid;select object_name,s.sid,s.serial#,p.spid from v$locked_object l,dba_objects o,v$session s,v$process p where l.object_id=o.object_id and l.session_id=s.sid and s.paddr=p.addr; 2)在資料庫中殺死Sessionalter system
在通過sql語句為oracle中的long欄位插入資料時提示錯誤:我有這樣一個問題,我在c#的組件中,以OleDbComment.ExecuteNonQuery()方法執行一個將長字串更新到一個Long(或Clob)欄位SQL語句,發現字串較少時可以更新進去,大符串大時(應該超過4000)就無法插入,報字串超出範圍的資訊。 解決方案:string clobstr=[這裡是一個長字串]string sql=update tablename set clobstr=:clobstr where
--以對一篇文章的插入為例 操作Oracle的Blob欄位--Oracle的Blob欄位是二進位存取,上傳前要把檔案轉成二進位,下載亦是把下載到的二進位轉換.最大可存取4GB的檔案,適合對大檔案或非文字檔的操作,以下就最近做的一個項目,把對Blob的存取寫出來供網友參考: Code highlighting produced by Actipro CodeHighlighter
原文地址:http://tdqing.javaeye.com/blog/453061 今天程式開發伺服器突然串連不上,sqlplus /nolog、conn /as sysdba、startup命令後顯示SQL> startupORA-01078: failure in processing system parametersLRM-00109: could not open parameter file