Oracle knowledge: db_link permission issues in Stored Procedures

Source: Internet
Author: User
1. After signing your process, temporarily declare authorization: authidcurrent_user. The Code is as follows: createorreplaceprocedureproc_test_nameauthid

1. After signing your process, temporarily declare authorization: authid current_user. The Code is as follows: create or replace procedure proc_test_name authid

1. After signing your process, temporarily declare authorization: authid current_user.

The Code is as follows:

Create or replace procedure proc_test_name authid current_user

As

Begin

Execute immediate 'create database link dblink_name connect to user_name identified by user_pwd using ''db _ remote ''';

End;

2. authorize your user again.

Grant create database link to user_name (permanent ).

Oracle does not provide a clear explanation of the above operations, and there are few online materials. I discussed the possible cause with my colleagues. It may be a small bug in Oracle permission management. In Oracle, the permission sub-system permission and object permission. dba should be a role-type permission, which indicates that users under this role can do anything ,, however, "You can do it" does not mean you can do it directly, but you still need to "Apply". It is indeed a bit confusing.

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.