天天看點

關于Oracle sql developer與plsql developer使用

最近想要系統地學習一下Oracle,因為sql developer是系統自帶的工具,而且又比sqlplus人性化得多,就一直使用sql developer。昨天建立觸發器的時候,在sqlplus上可以編譯,但是在sql developer上執行不了。

create or replace  trigger tri_emp 
before update
on employees
for each row
begin
if :new.salary>:old.salary then
dbms_output.put_line(:new.first_name||'工資調高了');
elsif :new.salary<:old.salary then 
dbms_output.put_line(:new.first_name||'工資調低了');
else
dbms_output.put_line(:new.first_name||'工資沒有調整');
end if;
end tri_emp;           

百度之後,發現用plsql developer的人比sql developer多得多(最近遠端幾個Oracle資料庫的客戶用的都是plsql developer)。安裝plsql developer測試該觸發器可以建立成功。難道sql developer無法建立上面的觸發器?真是這樣的話那麼sql developer可就大打折扣了。以後還是用plsql developer好了。

下面是plsql developer的下載下傳連結

PLSQLDeveloper_解壓版(64位可用)

plsql developer配置

PLSQL Developer連接配接Oracle11g 64位資料庫配置詳解(作者:霧裡看花)

其中,本人測試的結果是需要将tnsnames.ora檔案複制到instantclient_11_2下建立的NETWORK\ADMIN中才能生效。

努力不會背叛

博文僅供參考,歡迎大家來訪。如有錯誤之處,希望批評指正。

繼續閱讀