当前位置:网站首页>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
边栏推荐
- Clickhouse learning notes (I): Clickhouse installation, data type, table engine, SQL operation
- Get a screenshot of a uiscrollview, including off screen parts
- Yum is too slow to bear? That's because you didn't do it
- pytorch 多分类中的损失函数
- tabbar的设置
- [teacher Zhao Yuqiang] calculate aggregation using MapReduce in mongodb
- [teacher Zhao Yuqiang] index in mongodb (Part 1)
- How does win7 solve the problem that telnet is not an internal or external command
- Merge and migrate data from small data volume, sub database and sub table Mysql to tidb
- Deep learning, thinking from one dimensional input to multi-dimensional feature input
猜你喜欢

Life is a process of continuous learning
![[teacher Zhao Yuqiang] RDB persistence of redis](/img/cc/5509b62756dddc6e5d4facbc6a7c5f.jpg)
[teacher Zhao Yuqiang] RDB persistence of redis

How to create and configure ZABBIX

Jedis source code analysis (I): jedis introduction, jedis module source code analysis

Fluentd facile à utiliser avec le marché des plug - ins rainbond pour une collecte de journaux plus rapide

Es remote cluster configuration and cross cluster search

轻松上手Fluentd,结合 Rainbond 插件市场,日志收集更快捷

Kubernetes notes (I) kubernetes cluster architecture
![[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

Core principles and source code analysis of disruptor
随机推荐
Clickhouse learning notes (2): execution plan, table creation optimization, syntax optimization rules, query optimization, data consistency
【系统设计】邻近服务
[teacher Zhao Yuqiang] index in mongodb (Part 2)
技术管理进阶——你了解成长的全貌吗?
[teacher Zhao Yuqiang] kubernetes' probe
pytorch 多分类中的损失函数
Convolution operation in convolution neural network CNN
1. 兩數之和
About the difference between count (1), count (*), and count (column name)
最大似然估计,散度,交叉熵
Tabbar settings
Apple submitted the new MAC model to the regulatory database before the spring conference
70 shell script interview questions and answers
多线程与高并发(7)——从ReentrantLock到AQS源码(两万字大章,一篇理解AQS)
88. 合并两个有序数组
There is no one of the necessary magic skills PXE for old drivers to install!!!
Mysql database table export and import with binary
[teacher Zhao Yuqiang] use Oracle's tracking file
Multithreading and high concurrency (7) -- from reentrantlock to AQS source code (20000 words, one understanding AQS)
Es remote cluster configuration and cross cluster search