Oracle 存儲(chǔ)過程加密方法
更新時(shí)間:2009年10月21日 22:04:00 作者:
Oracle 存儲(chǔ)過程加密方法,需要的朋友可以參考下。
軟件環(huán)境:
1、操作系統(tǒng):Windows 2000 Server
2、數(shù) 據(jù) 庫:Oracle 8i R2 (8.1.7) for NT 企業(yè)版
3、安裝路徑:C:ORACLE
實(shí)現(xiàn)方法:
1、
D:>set NLS_LANG=AMERICAN_AMERICA.USACII7
或
D:>set NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
D:>set
直接打set命令可以查看環(huán)境變量
2、
在D:下創(chuàng)建a.sql文件,內(nèi)容如下:
create or replace procedure test1(i in number) as
begin
dbms_output.put_line('輸入?yún)?shù)是'||to_char(i));
end;
3、
D:>wrap iname=a.sql
PL/SQL Wrapper: Release 8.1.7.0.0 - Production on Tue Nov 27 22:26:48 2001
Copyright (c) Oracle Corporation 1993, 2000. All Rights Reserved.
Processing a.sql to a.plb
4、
打開a.plb,現(xiàn)在它的內(nèi)容如下:
create or replace procedure test1 wrapped
0
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
3
7
8106000
1
4
0
8
2 :e:
1TEST1:
1I:
1NUMBER:
1DBMS_OUTPUT:
1PUT_LINE:
1輸入?yún)?shù)是:
1||:
1TO_CHAR:
0
0
0
1f
2
0 1d 9a 8f a0 b0 3d b4
55 6a :2 a0 6b 6e 7e :2 a0 a5
b b4 2e a5 57 b7 a4 b1
11 68 4f 17 b5
1f
2
0 3 4 1d 19 18 25 15
2a 2e 32 36 3a 3d 42 45
49 4d 4e 50 51 56 57 5c
5e 62 64 70 74 76 7f
1f
2
0 1 b 11 16 :2 11 10 :3 1
:2 d 16 22 24 2c :2 24 :2 16 :a 1
1f
2
0 :9 1 :d 3 :2 2 :3 1 4 :2 1
81
4
:4 0 1 :a 0 1b
1 :4 0 5 :2 0
:2 3 :3 0 2 :7 0
5 4 :3 0 7
:2 0 1b 2 8
:2 0 4 :3 0 5
:3 0 a b 0
6 :4 0 7 :2 0
8 :3 0 2 :3 0
7 f 11 9
e 13 :3 0 :2 c
15 :2 0 17 10
1a :3 0 1a 0
1a 19 17 18
:6 0 1b :2 0 2
8 1a 1d :2 0
1 1b 1e :8 0
13
4
:3 0 1 3 1
6 1 10 2
d 12 1 14
1 16 2 16
1c
1
4
0
1d
0
1
14
1
2
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0
2 0 1
3 1 0
0
/
5、運(yùn)行a.plb
SQL> @d:a.plb
過程已創(chuàng)建。
6、運(yùn)行存儲(chǔ)過程
SQL> set serveroutput on
SQL> execute test1(1);
輸入?yún)?shù)是1
PL/SQL 過程已成功完成。
7、查看存儲(chǔ)過程的代碼
SQL> select name,text from all_source where type='PROCEDURE' and name='TEST1';
結(jié)果:看不到其原碼
1、操作系統(tǒng):Windows 2000 Server
2、數(shù) 據(jù) 庫:Oracle 8i R2 (8.1.7) for NT 企業(yè)版
3、安裝路徑:C:ORACLE
實(shí)現(xiàn)方法:
1、
D:>set NLS_LANG=AMERICAN_AMERICA.USACII7
或
D:>set NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
D:>set
直接打set命令可以查看環(huán)境變量
2、
在D:下創(chuàng)建a.sql文件,內(nèi)容如下:
create or replace procedure test1(i in number) as
begin
dbms_output.put_line('輸入?yún)?shù)是'||to_char(i));
end;
3、
D:>wrap iname=a.sql
PL/SQL Wrapper: Release 8.1.7.0.0 - Production on Tue Nov 27 22:26:48 2001
Copyright (c) Oracle Corporation 1993, 2000. All Rights Reserved.
Processing a.sql to a.plb
4、
打開a.plb,現(xiàn)在它的內(nèi)容如下:
create or replace procedure test1 wrapped
0
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
3
7
8106000
1
4
0
8
2 :e:
1TEST1:
1I:
1NUMBER:
1DBMS_OUTPUT:
1PUT_LINE:
1輸入?yún)?shù)是:
1||:
1TO_CHAR:
0
0
0
1f
2
0 1d 9a 8f a0 b0 3d b4
55 6a :2 a0 6b 6e 7e :2 a0 a5
b b4 2e a5 57 b7 a4 b1
11 68 4f 17 b5
1f
2
0 3 4 1d 19 18 25 15
2a 2e 32 36 3a 3d 42 45
49 4d 4e 50 51 56 57 5c
5e 62 64 70 74 76 7f
1f
2
0 1 b 11 16 :2 11 10 :3 1
:2 d 16 22 24 2c :2 24 :2 16 :a 1
1f
2
0 :9 1 :d 3 :2 2 :3 1 4 :2 1
81
4
:4 0 1 :a 0 1b
1 :4 0 5 :2 0
:2 3 :3 0 2 :7 0
5 4 :3 0 7
:2 0 1b 2 8
:2 0 4 :3 0 5
:3 0 a b 0
6 :4 0 7 :2 0
8 :3 0 2 :3 0
7 f 11 9
e 13 :3 0 :2 c
15 :2 0 17 10
1a :3 0 1a 0
1a 19 17 18
:6 0 1b :2 0 2
8 1a 1d :2 0
1 1b 1e :8 0
13
4
:3 0 1 3 1
6 1 10 2
d 12 1 14
1 16 2 16
1c
1
4
0
1d
0
1
14
1
2
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0
2 0 1
3 1 0
0
/
5、運(yùn)行a.plb
SQL> @d:a.plb
過程已創(chuàng)建。
6、運(yùn)行存儲(chǔ)過程
SQL> set serveroutput on
SQL> execute test1(1);
輸入?yún)?shù)是1
PL/SQL 過程已成功完成。
7、查看存儲(chǔ)過程的代碼
SQL> select name,text from all_source where type='PROCEDURE' and name='TEST1';
結(jié)果:看不到其原碼
相關(guān)文章
詳解PL/SQL Developer連接本地Oracle 11g 64位數(shù)據(jù)庫
本篇文章主要介紹了PL/SQL Developer連接本地Oracle 11g 64位數(shù)據(jù)庫 ,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2017-04-04Oracle 11g Release (11.1) 索引底層的數(shù)據(jù)結(jié)構(gòu)
本文介紹關(guān)于 Oracle 索引的結(jié)構(gòu)。大概了解 Oracle 索引底層的數(shù)據(jù)結(jié)構(gòu),從而更好地理解 Oracle 索引對(duì)增、刪、改、查的性能2012-11-11Redhat 6.2 下 oracle 11g R2的安裝詳解
這篇文章主要介紹了Redhat 6.2 下 oracle 11g R2的安裝詳解,需要的朋友可以參考下2016-07-07Oracle以逗號(hào)分隔的字符串拆分為多行數(shù)據(jù)實(shí)例詳解
做多選功能時(shí)為了簡(jiǎn)便,會(huì)在某個(gè)字段中存儲(chǔ)多個(gè)值,保存時(shí)雖然省事,但后續(xù)的查詢統(tǒng)計(jì)時(shí)還需要拆分?jǐn)?shù)據(jù)才行,因此這時(shí)需要將字段內(nèi)的值分成多行以便后續(xù)使用,這篇文章主要給大家介紹了關(guān)于Oracle以逗號(hào)分隔的字符串拆分為多行數(shù)據(jù)的相關(guān)資料,需要的朋友可以參考下2021-07-07oracle創(chuàng)建表空間、授權(quán)、創(chuàng)建用戶、導(dǎo)入dmp文件
這篇文章主要介紹了oracle創(chuàng)建表空間、授權(quán)、創(chuàng)建用戶、導(dǎo)入dmp文件,需要的朋友可以參考下2017-04-04oracle數(shù)據(jù)庫下統(tǒng)計(jì)專營(yíng)店的男女?dāng)?shù)量的語句
oracle數(shù)據(jù)庫下統(tǒng)計(jì)專營(yíng)店的男女?dāng)?shù)量的語句,方便需要的朋友2012-07-07