Question: how can Oracle access other users’ tables without adding a table user name
Reasons: 1. Convenient access to common tables
2. Hide the users of the table
3. Limit authority
Solution:
1、 Create consent word
CREATE [PUBLIC] SYNONYM synonym_ name FOR [schema.] object[@db_ link];
2、 Create view
create view DF_ YHJB_ BZ as select * from MIS.DF_ YHJB_ BZ
3、 Modify current_ Schema parameter
The schema used to switch the current session. When parsing the object name, if there is no qualified schema name before the object name, Oracle will automatically query the matching objects under this schema.
for example, when the “Scott” user executes the “select * from EMPs;” statement, Oracle will query the “EMPs” table under the “Scott” architecture by default; however, if the “alter session set” current_ Schema = XX; the current schema of the session is changed. When this statement is executed, Oracle will query the EMPs table under XX schema.
Read More:
- Failed to create Oracle Oracle home user solution appears in oracle12c installation
- MySQL partitions the existing tables of the data table
- MySQL skip grant tables add user error 1290
- Oracle quick replacement undo table space method
- [SQLITE_ Error] SQL error or missing database (table users already exists)
- phpstudy Error while setting value ‘STRICT_TRANS_TABLES, NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION
- Mybatis integrates Oracle query and reports an error in the datetime type field
- 【Exception】mysqldump: Error 2013: Lost connection to MySQL server during query when dumping table…
- scalac: Token not found: C:\Users\User\AppData\Local\JetBrains\IntelliJIdea2020.3\compile-server\to
- MySQL – ERROR 1146 (42S02): Table ‘mysql.user’ doesn’t exist
- python sqlite Error IntegrityError: UNIQUE constraint failed: table_area1.user_name
- (element UI component table) how to add a style to a table
- Insufficient table space ORA-00604 unable to extend table SYS.AUD by 8192
- Oracle database file is damaged, Error:ORA-01033 :ORACLE initialization or shutdown in progress
- Adding a reference in the system-user.dtsi file cannot modify the device tree file pl.dtsi
- sqoop-import ERROR tool.ImportTool: Import failed: No primary key could be found for table user_info
- [resolved] superset failed to create admin user: error! User already exists user or attributeerror: ‘nonetype’‘
- In the SQL query statement, add the column that does not exist in the table and set the fixed value of the column
- How to Solve mybatis returns null when querying Oracle database with char type field
- Use of HQL query.list () is a null pointer exception, but the database can find out the result