Oracle encryption stored procedure operation notes

Source: Internet
Author: User

Create a stored procedure script file, such as test. SQL

Create or replace procedure DIS_1
As
I integer;
Begin
DBMS_OUTPUT.PUT_LINE ('Hello Beijing ');
End;
/

Note the last/Character

SQL> @ test. SQL
Procedure created.

SQL> set serveroutput on

SQL> exec DIS_1
Hello Beijing

PL/SQL procedure successfully completed.

SQL> select name, text from all_source where type = 'processed' and name = 'dis _ 1 ';

Then we can see that the text field named DIS_1 shows the plain text. Now we need to encrypt this text.

SQL> quit

$ Wrap iname = test. SQL

PL/SQL Wrapper: Release 9.2.0.8.0-64bit Production on Tue Aug 26 16:11:15 2008

Copyright (c) Oracle Corporation 1993,200 1. All Rights Reserved.

Processing test. SQL to test. plb

SQL> @ test. plb
Procedure created.

SQL> set serveroutput on

SQL> exec DIS_1
Hello Beijing

PL/SQL procedure successfully completed.

SQL> select name, text from all_source where type = 'processed' and name = 'dis _ 1 ';

The text field named DIS_1 shows the encrypted content.

Note: the steps in the encryption process are affected by the platform. That is to say, you cannot compile plb files on Windows platform into oracle on unix platform.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.