之前发过一个贴子,还是老问题,没解决
http://hi.csdn.net/link.php?url=http://topic.csdn.net%2Fu%2F20100129%2F10%2Fac7a4541-9bca-42da-972c-5dda51d07040.html不知道为什么,在我本地就要报错,而你们却不能。
我做了个简单的测试:1、版本:
Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
Connected as erp2、创建包头、包体文件
包头:e:\pkg_wrap_test .sql
create or replace package pkg_wrap_test is
--测试过程,将输入的数字以字符格式输出
procedure test1(i in number);
END pkg_wrap_test;
包体:e:\pkgbd_wrap_test .sql
create or replace package body pkg_wrap_test is
--测试过程,将输入的数字以字符格式输出
procedure test1(i in number) as
begin
dbms_output.put_line('输入参数是' || to_char(i));
end;
END pkg_wrap_test;3、在PL/SQL developer中先执行包头、然后再wrap加密包体
SQL> create or replace package pkg_wrap_test is
2 --测试过程,将输入的数字以字符格式输出
3 procedure test1(i in number);
4 END pkg_wrap_test;
5 /Package createdSQL> host wrap iname=e:\pkgbd_wrap_test.sql oname=e:\pkgbd_wrap_test.plb
SQL> @e:\pkgbd_wrap_test.plbWarning: Package body created with compilation errorsSQL> show error
Errors for PACKAGE BODY ERP.PKG_WRAP_TEST:LINE/COL ERROR
-------- ------------------------------------
24/2 PLS-00103: 出现符号 "TDIADX0PUVO0TG"
SQL> select name,text from user_source where type='PACKAGE BODY' and name='PKG_WRAP_TEST';NAME TEXT
------------------------------ --------------------------------------------------------------------------------
PKG_WRAP_TEST package body pkg_wrap_test wrapped
a000000
354
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
b
9b eb
JiYy+c6phB0qd0Rb0COxA/FzAOAwg5m49TOf9b9cuJu/9MMWhdzQlpbyVuOWoWLRzKV0iwlp
plGpyqoX6pxQyuoCL7GPL4SyrkSuJESdaQ9JscouRIDIZknqv64kyjsOjwZd/Xa7LKvTL6tR
W9sIIkE/4qv8sEFuMO0paCadsEoK1Xd3FkbOxtoSVzneMCcnox0yvpK+VMf7vQKmIP7OpcrG
qTDIADx0puvo0Tg=
SQL> 有没有人知道关于wrap加密这个错误怎么解决的啊?
http://hi.csdn.net/link.php?url=http://topic.csdn.net%2Fu%2F20100129%2F10%2Fac7a4541-9bca-42da-972c-5dda51d07040.html不知道为什么,在我本地就要报错,而你们却不能。
我做了个简单的测试:1、版本:
Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
Connected as erp2、创建包头、包体文件
包头:e:\pkg_wrap_test .sql
create or replace package pkg_wrap_test is
--测试过程,将输入的数字以字符格式输出
procedure test1(i in number);
END pkg_wrap_test;
包体:e:\pkgbd_wrap_test .sql
create or replace package body pkg_wrap_test is
--测试过程,将输入的数字以字符格式输出
procedure test1(i in number) as
begin
dbms_output.put_line('输入参数是' || to_char(i));
end;
END pkg_wrap_test;3、在PL/SQL developer中先执行包头、然后再wrap加密包体
SQL> create or replace package pkg_wrap_test is
2 --测试过程,将输入的数字以字符格式输出
3 procedure test1(i in number);
4 END pkg_wrap_test;
5 /Package createdSQL> host wrap iname=e:\pkgbd_wrap_test.sql oname=e:\pkgbd_wrap_test.plb
SQL> @e:\pkgbd_wrap_test.plbWarning: Package body created with compilation errorsSQL> show error
Errors for PACKAGE BODY ERP.PKG_WRAP_TEST:LINE/COL ERROR
-------- ------------------------------------
24/2 PLS-00103: 出现符号 "TDIADX0PUVO0TG"
SQL> select name,text from user_source where type='PACKAGE BODY' and name='PKG_WRAP_TEST';NAME TEXT
------------------------------ --------------------------------------------------------------------------------
PKG_WRAP_TEST package body pkg_wrap_test wrapped
a000000
354
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
b
9b eb
JiYy+c6phB0qd0Rb0COxA/FzAOAwg5m49TOf9b9cuJu/9MMWhdzQlpbyVuOWoWLRzKV0iwlp
plGpyqoX6pxQyuoCL7GPL4SyrkSuJESdaQ9JscouRIDIZknqv64kyjsOjwZd/Xa7LKvTL6tR
W9sIIkE/4qv8sEFuMO0paCadsEoK1Xd3FkbOxtoSVzneMCcnox0yvpK+VMf7vQKmIP7OpcrG
qTDIADx0puvo0Tg=
SQL> 有没有人知道关于wrap加密这个错误怎么解决的啊?
这句能编译通过吗?
没有begin 啊!