Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Grant authorization

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Log in as sys (administrator) and create the user name zsta_new

Create user zsta_new

Identified by password

Default tablespace ZSTA_DATA_TBS

Temporary tablespace TEMP

Profile DEFAULT; authorizes zsta_new users (allows you to create 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; assumes that the zsta_new user creates a stored procedure up_xx_gzmx and allows the smxxpt user to call

Then log in as the zsta_new user and execute the following statement:

Grant execute on up_xx_gzmx to smxxpt reference:

It is well known that grant assigns permissions to other users. It 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 assigns permissions to the table:

Grant select/update on table to user

Grant permissions on table to user.

2.grant assigns permissions to stored procedures:

Grant execute on package/function/procedure to user

Grant execute on procedure, package, method to user

-

Copyright notice: this article is the original article of CSDN blogger Wan Ruiqing, in accordance with the CC 4.0BY-SA copyright Agreement. Please attach the original source link and this statement for reprint.

Original link: https://blog.csdn.net/gateway6143/article/details/41212823

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report