Oracle procedure encryption method, oracle encryption procedure

Source: Internet
Author: User

Oracle procedure encryption method, oracle encryption procedure

Oracle object Encryption Method

I. wrap Encryption

The following is a test procedure:

[Oracle @ orclrac1:/home/oracle] $ cat sp_test. SQL

Create or replace procedure leo (I in number)

As

Begin

Dbms_output.put_line ('input parameter: '| to_char (I ));

End;

The encryption process is as follows:

[Oracle @ orclrac1:/home/oracle] $ wrap iname = sp_test. SQL oname = sp_test_jm. SQL

PL/SQL Wrapper: Release 11.2.0.1.0-64bit Production on Wed Nov 08 14:06:58 2017

Copyright (c) 1993,200 9, Oracle. All rights reserved.

Processing sp_test. SQL to sp_test_jm. SQL

The following content is displayed after encryption is completed:

[Oracle @ orclrac1:/home/oracle] $ cat sp_test_jm. SQL

Create or replace procedure leo wrapped

A000000

354

Abcd

Abcd

Abcd

Abcd

Abcd

Abcd

Abcd

Abcd

Abcd

Abcd

Abcd

Abcd

Abcd

Abcd

Abcd

7

6b AE

ELucoK2tPHT0oy + WjvSukeA9 + fUwg5nnm7 + fMr2ywFyFodexpcOl0l6lmYEywLIlXQbAdIsG

WMAy/tKGBgmm + x9jmo8wtvdiqvavmdd/gjSxz1pckfVFmLMFlpW8kcuYqFiwglpZCa9CNC/

M7h0JaV3d6CLBsCBx/vxdKa1unZI

/

Compile the stored procedure and execute it smoothly:

[Oracle @ orclrac1:/home/oracle] $ sqlplus zq/oracle

SQL * Plus: Release 11.2.0.1.0 Production on Wed Nov 8 14:07:03 2017

Copyright (c) 1982,200 9, Oracle. All rights reserved.

Connected:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0-64bit Production

With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,

Data Mining and Real Application Testing options

SQL> @ sp_test_jm. SQL

Procedure created.

SQL> set serveroutput on;

SQL> exec leo (100 );

Input parameter: 100

PL/SQL procedure successfully completed.

View the display in oracle Data Dictionary:

SQL> select name, text from user_source where type = 'processed' and name = 'Leo ';

NAME

----

TEXT

Certificate -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

LEO

Procedure leo wrapped

A000000

354

Abcd

Abcd

Abcd

Abcd

Abcd

Abcd

Abcd

Abcd

Abcd

Abcd

Abcd

Abcd

Abcd

Abcd

Abcd

7

6b AE

ELucoK2tPHT0oy + WjvSukeA9 + fUwg5nnm7 + fMr2ywFyFodexpcOl0l6lmYEywLIlXQbAdIsG

WMAy/tKGBgmm + x9jmo8wtvdiqvavmdd/gjSxz1pckfVFmLMFlpW8kcuYqFiwglpZCa9CNC/

M7h0JaV3d6CLBsCBx/vxdKa1unZI

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.