Oracle Create synonyms

Source: Internet
Author: User


First, you need to create a synonym permission for the user:

Sql> Grant create synonym to Jhchen;


Grant succeeded.


To create a synonym syntax:


Create synonym name for owner. Object name


Need to login with Jhchen


sql> create synonym eos_kpi_usersalary for kpi.eos_kpi_usersalary;

Synonym created


Batch change synonyms need to be queried by the owner first:

SELECT ' create synonym ' | | object_name | | ' for KPI. ' | | object_name | | ‘;‘

From User_objects

WHERE object_type in

(' TABLE ', ' VIEW ', ' PROCEDURE ', ' TRIGGER ', ' FUNCTION ', ' package ');

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6D/68/wKioL1Vj5iiCrwyFAARF6Gwf2FE488.jpg "title=" Qq20150526111410.png "alt=" wkiol1vj5iicrwyfaarf6gwf2fe488.jpg "/> Copy the following statement executed under Jhchen user!



This article is from "one van" blog, please be sure to keep this source http://1336014.blog.51cto.com/1326014/1655185

Oracle Create synonyms

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.