on 08-10-2020 2:35 PM
I want to create SAP HANA Database User using Procedures in SAP Web IDE.
When I am trying to run the procedure in sql console of SAP Web IDE, I get the following error :
Please suugest on how to create SAP HANA Database User using Procedures.
My Procedure has following code :
PROCEDURE "create_user"( )
LANGUAGE SQLSCRIPT
SQL SECURITY INVOKER
--DEFAULT SCHEMA <default_schema_name>
READS SQL DATA AS
BEGIN
/*************************************
Write your procedure logic
*************************************/
EXEC 'CREATE USER ABC PASSWORD Welcome123';
END
First you should get the additional details for the error message using procedure SYS.GET_INSUFFICIENT_PRIVILEGE_ERROR_DETAILS like described here.
There are two possible results:
- The user trying to execute the procedure has no execution privileges for the procedure -> in that case you have to add the execution privilges to the user.
- The user trying to execute the procedure has no privileges to create a user. System privilege USER ADMIN is necessary for that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
11 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.