標籤:1、用DBA登入賦許可權create or replace directory D_OUTPUT as ‘D:\TEMP‘; grant read,write on directory D_OUTPUT to testdb; GRANT EXECUTE ON utl_file TO testdb;2、寫一個函數建立目錄並寫入資料在資料清洗的預存程序中調用函數首先在上邊聲明變數 xx varchar2(1000);然後在執行插入失敗的下面調用函數 else
標籤:select table_name from user_tables; //目前使用者擁有的表 select table_name from all_tables; //所有使用者的表 select table_name from dba_tables; //包括系統資料表select table_name from dba_tables where owner=‘使用者名稱‘
標籤: --建立序列 create sequence zonecode_seq start with 1 increment by 1; --建立觸發器 create or replace trigger zonecode_trigger before insert on org_HospitalZone_dict for each row begin select zonecode_seq.nextval into
標籤:沒怎麼用過oracle,而且是在地稅內網內部估計是防火牆的原因虛擬機器裡也連不上oracle,剛開始費了很多周折尋找問題,現在又放棄使用直連資料庫了,記下來以備後用吧 public class LoadData { /// <summary> /// /// </summary> /// <returns></returns> public static
標籤:---停止job 25是建立的jobbegin dbms_job.broken(25,true); commit; end; --啟動job begin dbms_job.run(25); commit; end; --刪除job begin dbms_job.remove(25); commit; end; --查看執行結果 select * from test_job order by test_job.para_date desc; -
標籤:1. 安裝的是oracle 12c client for windows,從同事處拿到的,說是64位的,不過我沒有找到包含有64這樣的檔案名稱或者裡面內容有64位的。從同事處拿到的plsqldev1104的64位版本,也有936的32位版本,結果發現和oracle資料庫連接時,總是提示:"Make sure you have the 32 bits Oracle Client