on 05-21-2021 4:37 PM
Dear Experts,
We created a new user(IWSYSTEM) in HANA for Accessing B1 Company databases, we assigned the the Object privilege's for the specific user and the was able to access the B1 Company databases only assigned to that user.
If any new B1 Company databases has been Created/ or a old DB restored, the new user IWSYSTEM is unable to access the created/restored B1 database.
In order to access that, we need to login with SYSTEM User and assign the object privilege for the B1 Schema (Company database) for the user IWSYSTEM, then only the new user IWSYSTEM is able to access.
Is it possible to assign any superuser privilege to the HANA user, so that whenever a new B1 Schema is restored the new user(IWSYSTEM) should also have access to it.
Basically our idea is not to use SYSTEM user, instead create a mirror access for SYSTEM User and use it for our purpose.
Kindly advise how to apply necessary privileges.
Thanks
Anand
When you create new schema, you may define user IWSYSTEM has owner with statement like:
CREATE SCHEMA <SchemaName> OWNED BY IWSYSTEM
Doing that user IWSYSTEM will have full privileges on the newly created schema
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes Anand,
even SYSTEM user does not have access to all schemas.
The prerequisite is to either be the owner of the schema or have been granted access by an other user having already access to it with "grant to others" option.
You can check "SYS"."OWNERSHIP" view to see who is the owner.
If you are using IMPORT statement to create your schema, I suppose the OWNER will be the one running the IMPORT statement.
Regards,
Michael
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.