当前位置:网站首页>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
边栏推荐
- Exportation et importation de tables de bibliothèque avec binaires MySQL
- Ext4 vs XFS -- which file system should you use
- @Import annotation: four ways to import configuration classes & source code analysis
- Project summary --01 (addition, deletion, modification and query of interfaces; use of multithreading)
- The server data is all gone! Thinking caused by a RAID5 crash
- Detailed explanation of iptables (1): iptables concept
- Loss function in pytorch multi classification
- The most responsible command line beautification tutorial
- Using the ethtool command by example
- Alibaba cloud OOS file upload
猜你喜欢

Redhat7 system root user password cracking

Simple solution of small up main lottery in station B

Kubernetes notes (10) kubernetes Monitoring & debugging

Solve the problem of automatic disconnection of SecureCRT timeout connection

pytorch 多分类中的损失函数

Why is the website slow to open?
![[teacher Zhao Yuqiang] use Oracle's tracking file](/img/0e/698478876d0dbfb37904d7b9ff9aca.jpg)
[teacher Zhao Yuqiang] use Oracle's tracking file

Kubesphere - Multi tenant management

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

phpstudy设置项目可以由局域网的其他电脑可以访问
随机推荐
arcgis创建postgre企业级数据库
Virtual memory technology sharing
Common exceptions when Jenkins is released (continuous update...)
Disruptor learning notes: basic use, core concepts and principles
Jedis source code analysis (II): jediscluster module source code analysis
Alibaba cloud OOS file upload
Leetcode solution - 01 Two Sum
Using the ethtool command by example
Exportation et importation de tables de bibliothèque avec binaires MySQL
多线程与高并发(7)——从ReentrantLock到AQS源码(两万字大章,一篇理解AQS)
How does win7 solve the problem that telnet is not an internal or external command
Code generator - single table query crud - generator
Kubesphere - set up redis cluster
Oauth2.0 - explanation of simplified mode, password mode and client mode
Core principles and source code analysis of disruptor
Kubernetes cluster environment construction & Deployment dashboard
Simple solution of small up main lottery in station B
Svn branch management
Installation du plug - in CAD et chargement automatique DLL, Arx
[teacher Zhao Yuqiang] index in mongodb (Part 2)