oracle| encryption
Encrypt your code using the Oracle Wrap tool
Last Updated:monday, 2004-11-15 22:31 eygle
Oracle provides wrap tools that can be used to encrypt your package and so on.
However, it should be noted that the encrypted code can not be decrypted, you need to take care of your source code.
Here's an example:
1. Source Code
Create or Replace function Get_rowid (L_rowid in varchar2) return Varchar2isls_my_rowid VARCHAR2 (200); Rowid_type number; Object_number number; RELATIVE_FNO number; Block_number number; Row_number number; Begin Dbms_rowid.rowid_info (L_ROWID,ROWID_TYPE,OBJECT_NUMBER,RELATIVE_FNO, Block_number, row_number); Ls_my_rowid: = ' object# is: ' | | To_char (object_number) | | Chr (10) | | ' Relative_fno is: ' | | To_char (RELATIVE_FNO) | | Chr (10) | | ' Block number is: ' | | To_char (block_number) | | Chr (10) | | ' Row number is: ' | | To_char (Row_number); return ls_my_rowid; /
2. Code function test
[Oracle@jumper tools]$ sqlplus scott/tigersql*plus:release 9.2.0.4.0-production on Mon Nov 2004Copyright 21:56:36 (c ) 1982, 2002, Oracle Corporation. All rights reserved. Connected to:oracle9i Enterprise Edition release 9.2.0.4.0-productionwith the partitioning optionjserver release 9.2.0.4 .0-productionsql> @f_get_rowidFunction created. Sql> Select rowID from dept where deptno=10; ROWID------------------aaabipaabaaafrsaaasql> Select Get_rowid (' Aaabipaabaaafrsaaa ') from dual; Get_rowid (' aaabipaabaaafrsaaa ')------------------------------------------------------------------object# is : 6287relative_fno is:1block number Is:21586row number is:0sql>! [Oracle@jumper tools]$ lsct.sql ddlt.sql f_get_rowid.sql getevent.sql
[Oracle@jumper tools]$ exitexitsql> drop function Get_rowid; Function dropped. Sql> @f_get_rowid. Plbfunction created. Sql> Select Get_rowid (' Aaabipaabaaafrsaaa ') from dual; Get_rowid (' aaabipaabaaafrsaaa ')-----------------------------------------------------------------object# is : 6287relative_fno is:1block number Is:21586row number is:0sql>
The author of this article:
Eygle,oracle technology concern, from China's largest Oracle technology forum Itpub.
Www.eygle.com is the author's personal site. You can contact the author by Guoqiang.Gai@gmail.com. Welcome technical discussions and exchange of links.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.