GRANT authorization, grant authorization

Source: Internet
Author: User

GRANT authorization, grant authorization

Log On As the sys (Administrator) and create the username zsta_new

Create user zsta_new
Identified by password
Default tablespace ZSTA_DATA_TBS
Temporary tablespace TEMP
Profile DEFAULT;


Authorize zsta_new users (allow creation of stored procedures, etc ):
Grant connect to zsta_new;
Grant resource to zsta_new;
Grant create any procedure to zsta_new;
Grant create any view to zsta_new;
Grant unlimited tablespace to zsta_new;
Grant create database link to zsta_new;
Grant debug any procedure, debug connect session to zsta_new;


Assume that the zsta_new user creates a stored procedure up_xx_gzmx and allows the smxxpt user to call

Log On As the zsta_new user and execute the following statement:

Grant execute on up_xx_gzmx to smxxpt


Refer:

As we all know, grant permissions are granted to other users. He can not only grant permissions to tables and views, but also to stored procedures, methods, and packages. The specific syntax is as follows:

1. grant table permissions:

Grant select/update on table to user;

Grant permission on table to user.

2. grant the Stored Procedure permissions:

Grant execute on package/function/procedure to user;

Grant execute on process, package, method to user

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.