Is schema name compulsory to prefix the table??
Posted: Wed Aug 07, 2013 6:22 am
Connected as dbadmin
While querying a table , if schema name is not prefixed the table, then by default it considers the schema as Public and retrieves the data from Public schema.
Connected as a user X
Lets assume User X has permission on YYYY schema and public schema too.
While querying a table , if schema name is not prefixed the table, then by default,
Q1) Does it considers the schema as public or YYYY ??
But it is clearly mentioned in the Document that , if the schema name is not specified , then by default it considers the schema as PUBLIC.
So, In this case, when i connected with a user other than DBADMIN, who is having permissions on schema YYYY and Public , and if i tried to retrieve the data from a table without prefixing the schema name , from which schema does it retrieve the data???
PS: I gave the same name to SCHEMA_NAME and USER_NAME while creating the schema and user. Can i give like this or not??
Thanks,
Raj!!
While querying a table , if schema name is not prefixed the table, then by default it considers the schema as Public and retrieves the data from Public schema.
Connected as a user X
Lets assume User X has permission on YYYY schema and public schema too.
While querying a table , if schema name is not prefixed the table, then by default,
Q1) Does it considers the schema as public or YYYY ??
But it is clearly mentioned in the Document that , if the schema name is not specified , then by default it considers the schema as PUBLIC.
So, In this case, when i connected with a user other than DBADMIN, who is having permissions on schema YYYY and Public , and if i tried to retrieve the data from a table without prefixing the schema name , from which schema does it retrieve the data???
PS: I gave the same name to SCHEMA_NAME and USER_NAME while creating the schema and user. Can i give like this or not??
Thanks,
Raj!!