Skip to Content

User for existing Schema

Hi All,

  There is an away to create a user with the name of existing Schema without drop Schema?

   I Create a Schema AAA with user Y, now I want create a User 'AAA' to work with Schema 'AAA'.

Thank All.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jan 13, 2015 at 01:00 PM

    >There is an away to create a user with the name of existing Schema without drop Schema?
    No, because when you create a user a schema with the same name is automatically created in the system. This is supposed to be a special type of schema that should only be used to store temporary objects for the user in question.  This is why the system blocks you if it sees there is already a schema with the same name created in the system.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 13, 2015 at 10:30 AM

    Not possible in SAP HANA

    Regards,

    Krishna Tangudu

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 12, 2015 at 04:32 PM

    Is there a reason you want it to have the same name?  You could just assign access to schema AAA to user AAA.  When you create a schema via SQL console you can assign owner there as well like this;

    CREATE SCHEMA SCHEMANAMEHERE OWNED BY USERNAMEHERE

    -Patrick

    Add comment
    10|10000 characters needed characters exceeded