当前位置:网站首页>Oracle database synonym creation
Oracle database synonym creation
2022-07-03 06:09:00 【vincentwc】
Oracle Databases are distinguished by users , Before when developing a project , Called the electronic signature resource of another project , The problem is , The table of the electronic signature is under another user , After searching, find the processing method , My solution is to create a oracle Synonyms of ,
This case : stay vincent Users can access scott Of emp surface
1. Create user with administrator account vincent:
SQL> conn /as sysdba
Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.1.0
Connected as [email protected]
SQL> create user vincent identified by root;
User created
SQL> grant create session,connect,resource to vincent;
Grant succeeded2. Use the administrator account to give the current account 【vincent】 give CREATE SYNONYM Authority
SQL> grant create synonym to vincent;
Grant succeeded3. stay scott Under the user , Do the following :【 to vincent User assignment query emp Table authority 】
SQL> grant select on emp to vincent;
Grant succeeded4. stay vincent Create synonyms under user :
SQL> create or replace synonym emp2 for scott.emp;here , stay vincent Under the user , adopt select * from emp2 You can check scott User emp data
边栏推荐
- phpstudy设置项目可以由局域网的其他电脑可以访问
- Understand expectations (mean / estimate) and variances
- If function of MySQL
- Get a screenshot of a uiscrollview, including off screen parts
- [teacher Zhao Yuqiang] use Oracle's tracking file
- 智牛股--03
- Kubernetes notes (IV) kubernetes network
- JS implements the problem of closing the current child window and refreshing the parent window
- Exportation et importation de tables de bibliothèque avec binaires MySQL
- Kubernetes notes (I) kubernetes cluster architecture
猜你喜欢

多线程与高并发(7)——从ReentrantLock到AQS源码(两万字大章,一篇理解AQS)

智牛股项目--04

Oauth2.0 - using JWT to replace token and JWT content enhancement

Analysis of Clickhouse mergetree principle

Cesium 点击获三维坐标(经纬度高程)

輕松上手Fluentd,結合 Rainbond 插件市場,日志收集更快捷

Clickhouse learning notes (I): Clickhouse installation, data type, table engine, SQL operation
![[teacher Zhao Yuqiang] Alibaba cloud big data ACP certified Alibaba big data product system](/img/cc/5509b62756dddc6e5d4facbc6a7c5f.jpg)
[teacher Zhao Yuqiang] Alibaba cloud big data ACP certified Alibaba big data product system

Merge and migrate data from small data volume, sub database and sub table Mysql to tidb

Oauth2.0 - explanation of simplified mode, password mode and client mode
随机推荐
Kubernetes notes (VII) kuberetes scheduling
Convolution operation in convolution neural network CNN
JS implements the problem of closing the current child window and refreshing the parent window
PMP notes
pytorch 搭建神经网络最简版
智牛股项目--05
Jackson: what if there is a lack of property- Jackson: What happens if a property is missing?
Kubernetes notes (VI) kubernetes storage
JDBC connection database steps
Kubernetes cluster environment construction & Deployment dashboard
Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster
Code generator - single table query crud - generator
MySQL帶二進制的庫錶導出導入
Kubesphere - Multi tenant management
1. Somme des deux nombres
When PHP uses env to obtain file parameters, it gets strings
[teacher Zhao Yuqiang] index in mongodb (Part 1)
Kubesphere - build Nacos cluster
70 shell script interview questions and answers
Exportation et importation de tables de bibliothèque avec binaires MySQL