on 05-11-2016 9:44 PM
Hi all,
I have created a schema using .hdbschema in the editor which I now want to remove. As noted in the documentation, deleting the .hdbschema doesn't remove the schema like removing .hdbtable files do, however unfortunately the documentation didn't say what to do in this case. When I try to drop the schema in the Catalog it tells me I don't have sufficient authorizations to do this. Could someone please tell me what the procedure is to remove schemas created this way?
Regards,
Mike
Hi,
You need to have drop privilege on the schema as you had select privilege. In order to grant the user, you can call the procedure GRANT_SCHEMA_PRIVILEGE_ON_ACTIVATED_CONTENT as
call "PUBLIC"."GRANT_SCHEMA_PRIVILEGE_ON_ACTIVATED_CONTENT" ('DROP','<SCHEMANAME>','<USERNAME>');
Thank you.
Best Regards,
Anjali.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anjali,
That is what I was thinking as well and had tried it before, however I keep getting the following error (with my schema and user replaced, of course):
9:28:24 AM (SQL Editor) Could not execute 'call "PUBLIC"."GRANT_SCHEMA_PRIVILEGE_ON_ACTIVATED_CONTENT" ('DROP','<SCHEMA>',<USER>')'
Error: (dberror) 302 - invalid CHAR or VARCHAR value: Invalid parameter value for this procedure
If it helps any, I used the Catalog from the HANA Web Development Workbench to execute this.
Thanks,
Mike
You cant delete the _SYS_REPO schema, it is system schema. What ever repository object you create, it will by default owned by _SYS_REPO schema.
Kindly Deleting the .hdbschema files from the project folder and activate. will delete the table from the catalogue. Transporting the corresponding delivery unit to the QA will delete objects from there as well.
-Chandan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chandran,
Thanks for the reply, however as I mentioned in my post I have already tried removing the .hdbschema file. I'm not worried about removing individual tables, I am asking how to remove the schema that was created as it is owned by _SYS_REPO (I'm not trying to delete the _SYS_REPO schema).
Any other ideas?
Mike
Can you try removing the .hdbrole file for the schema from your role, then only you will not be able to see this. I cant try this in my system as I dont have authorisation to do so, But theoritically I can show you pointer to achieve this.
You can also try going to Catalog in Web IDE and then Right click on schema and delete it. If you have a authorisation you can delete the schema you have created.
you can also check the generic video by Thomas,
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.