Data cleansing Note: multiple users call the same function

Source: Internet
Author: User

Data cleansing Note: multiple users call the same function

Background]

During data extraction, when multiple users access different tables on the source end and need to use the same function, they need to create a new one under multiple users.

 

[Solution]

When multiple users use the same function, we can choose to recreate the function, but sometimes the execution is inconvenient due to too many functions, it is sometimes difficult for every user to manage functions once. Therefore, we can create the aggregate function and grant permissions to multiple users to use the same function. Take the isnum () function for example, the syntax is grant execute on user. function name to other users.

 

[Experiment]

Before granting permissions, log on to hyl and use the isnum function. The following error is returned:

Grant the isnum function execution permission of scott to the hyl user under sys, as follows:

SQL> grant execute on scott. isnum to hyl;

Use hyl again to call the isnum function. The verification is as follows:

Small knowledge, easy to remember.

 

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.