Write select data to other users don't forget grant authorization

Source: Internet
Author: User

Write data to other users don't forget to authorize:

event, application request to write data to other users, because in the same library, it is not necessary to enable dblink, and directly precede the table name to insert the user name.

Insert into Tmp_adc_entry_container (Data_import_time, entry_id, container_id)

Select to_char (end_time, ' yyyymmddhh24mi '), entry_id, container_id from Adc_entry_container;

But has been reported error:pl/sql:ora-01031:insufficient privileges error

Compilation errors for PROCEDURE ADC. Proc_export_containers

Error:pl/sql:ora-01031:insufficient Privileges

line:151

and a separate test

Insert into Tmp_adc_entry_container (Data_import_time, entry_id, container_id) VALUES (sysdate, ' 1 ', ' 2 ') are normal,

Baffled, and finally imagine whether there is a problem accessing the remote table's permissions, try the following authorization:

SYS user under Grant Select,insert on Eport. Tmp_adc_entry_container to ADC;

Successful execution of a modified statement after authorization

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.