Home > database > After landing with SYS restore the database, users can not access the default Schema
After landing with SYS restore the database, users can not access the default Schema
Time:10-13
I use SYS log in to restore a database, then use User1 login, found that when accessing a table must be prefixed with Schema, such as select * from User1. Table1. If write a select * from table1 is wrong, I don't know how to solve this problem, thank you for your attention
CodePudding user response:
In general, need to use the schema name applied to other users/object mode, oracle and PG, there is no such parameters as search_path, But can be disguised omit schema name: which in the current schema created under synonyms or view, with the same premise is not under the current schema objects with the same, otherwise only specify the schema name a way,
CodePudding user response:
Sorry, I am a beginner, may not be clear, my user name and Schema is consistent, but cannot access the table, the user name is User1, Schema User1, but can not access the Table1, must add prefix User1. Table1.