天天看点

关于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中才能生效。

努力不会背叛

博文仅供参考,欢迎大家来访。如有错误之处,希望批评指正。

继续阅读