当前位置:网站首页>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
边栏推荐
- [teacher Zhao Yuqiang] Cassandra foundation of NoSQL database
- 智牛股项目--05
- CAD插件的安装和自动加载dll、arx
- Crontab command usage
- If function of MySQL
- Zhiniu stock project -- 05
- Exportation et importation de tables de bibliothèque avec binaires MySQL
- [teacher Zhao Yuqiang] kubernetes' probe
- Exception when introducing redistemplate: noclassdeffounderror: com/fasterxml/jackson/core/jsonprocessingexception
- Merge and migrate data from small data volume, sub database and sub table Mysql to tidb
猜你喜欢

tabbar的设置

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

Project summary --04

Oauth2.0 - Introduction and use and explanation of authorization code mode
![[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

pytorch 多分类中的损失函数
![[teacher Zhao Yuqiang] MySQL flashback](/img/93/75998e28fd309880661ea723dc8de6.jpg)
[teacher Zhao Yuqiang] MySQL flashback

Skywalking8.7 source code analysis (I): agent startup process, agent configuration loading process, custom class loader agentclassloader, plug-in definition system, plug-in loading

Core principles and source code analysis of disruptor

Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster
随机推荐
GPS坐标转百度地图坐标的方法
Analysis of Clickhouse mergetree principle
轻松上手Fluentd,结合 Rainbond 插件市场,日志收集更快捷
Code generator - single table query crud - generator
Btrfs and ext4 - features, strengths and weaknesses
JS implements the problem of closing the current child window and refreshing the parent window
从 Amazon Aurora 迁移数据到 TiDB
Oauth2.0 - Introduction and use and explanation of authorization code mode
项目总结--2(Jsoup的基本使用)
理解 期望(均值/估计值)和方差
Interesting research on mouse pointer interaction
Virtual memory technology sharing
Common exceptions when Jenkins is released (continuous update...)
Download the corresponding version of chromedriver
深入解析kubernetes controller-runtime
[teacher Zhao Yuqiang] Cassandra foundation of NoSQL database
It is said that the operation and maintenance of shell scripts are paid tens of thousands of yuan a month!!!
Apple submitted the new MAC model to the regulatory database before the spring conference
多线程与高并发(7)——从ReentrantLock到AQS源码(两万字大章,一篇理解AQS)
Kubernetes cluster environment construction & Deployment dashboard