There are many interfaces in the current project, the data source may be different database or different users of the table, to access the table caused a certain amount of trouble. This time you can use synonyms to simplify.
The syntax for synonyms is: CREATE [OR REPLACE] [public] synonym [schema.] Synonym name for [schema.] Object [@dblink];
You also need assignment-related permissions when you create syno
enters the site.4) A Performance clothing rental site. Not only the page design is very ugly, and the picture is still rolling.Comments: This is obviously flirting with the user: "It is not so easy for you to find the product you want, what can you do to me?" ”5) A moving company website, you will believe this is a moving company's website?? You should at least have a moving picture!!Comments: Website again bad, also should have a limit!!There may be many mistakes in the spam site, but they all
1. Why use Synonyms:
Synonyms, as the name implies, mean that two words share the same meaning and can be replaced with each other. What are their functions:
A's most obvious goal is to simplify SQL. If the name of a database object is too long, you can create a shorter synonym, which is equivalent to the abbreviation.
B. another purpose is to hide the information of some objects. for example, to search for a table in another schema, you must add the
Oracle Database SYNONYM (SYNONYM) Usage
This tutorial uses examples to illustrate how to create and delete Synonyms (SYNONYM) in Oracle Data ).
Concept
Synonyms refer to database objects (tables, views, sequences, stored procedures, and other database objects) referenced by another name. For example:
Creating a synonym
Tags: OCA must rom off system rtx syn change fromSynonyms: A synonym is an alias to another data object, the synonym is dependent on its target object, and the synonym becomes invalid if the target object is changed or deleted. Synonyms are not a substitute for the privileges of database objects, that is, the object with the schema is queried, executed, deleted,
It used to be that the synonym (synonym) in SQL Server was useless, so it never looked up its syntax format. Today, there is a problem, with synonym to solve the better. The problem is that I use multiple databases in my system, and because some of the data in each database needs to be synchronized, I add triggers to the tables in one of those databases to synchr
You can use multiple methods to back up synonyms. For example, you can use a script to generate a creation script for synonyms or use dbms_metadata.get_ddl to extract definition scripts for synonyms. However, when using the traditional exp or DataPump expdp for schema-level data migration, public synonyms cannot be exported. However, we can still use the Export and Import method. The difference is that we use the full = y method to export the synonym
Oracle _ sequence, index, synonym, oracle SynonymZookeeper
1. Sequence1. sequence: database objects that can be used by multiple users to generate unique valuesUnique value automatically providedShared objectIt is mainly used to provide the primary key value.Loading Sequence values into memory improves access efficiency
2. create sequence statementCreate sequence sequence[Increment by n] -- the value of each increase[Start with n] -- START from[{MAXVA
Set synonyms for ease of use Select * from EMP; and so on are used for select * from ABC; Create a common synonymIf the user's level is not enough to establish a public synonym, You can authorize it under system: Grant create any synonym to Scott;Grant create public synonym to Scott; Cancel authorization: Revoke create any synoym from Scott;Revoke create public s
Analysis of OCP question _ 007: synonym synonyms are the alias of the base table. They are defined only in the data dictionary. They do not store synonyms. They provide location transparency for distributed databases. Accessing resources in different regions is just like accessing local resources. www.2cto.com (I) Syntax:Private synonyms without public are the synonyms created by common users. They are private, this is because only the user who create
Synonyms are the aliases of the base table. They are defined only in the data dictionary and are not stored.
Synonyms provide location transparency for distributed databases, and there is no difference in accessing resources in different regions like accessing local resources.
(I) syntax
Syntax for creating Synonyms:
Private synonyms without publicA private synonym is a synonym created by a common user
The following are organized from Oracle's official documentationA conceptA synonym is an alias for any table, view,materialized view, sequence, procedure, function, package, type, Java Classschem A object, User-defined object type, or another synonym. Because a synonymis simply an alias, it requires no storage other than its definition in Thedata dictionary.Synonyms in Oracle are aliases for any table, view
Set synonyms to facilitate the use of select * fromemp; and so on for select * fromabc; create a common synonym if the user level is not enough to create a public synonym, you can
Set synonyms to make it easy to use select * from emp; and so on for select * from abc; create a common synonym. If the user level is insufficient, create a public
ORACLE Synonyms (SYNONYM)
The following content is compiled from the official Oracle documents.Concept 1
A synonym is an alias for any table, view, materialized view, sequence, procedure, function, package, type, Java classschema object, user-defined object type, or another synonym. because a synonymis simply an alias, it requires no storage other than its defini
Set synonyms for ease of useSelect * from emp; and so on are used for select * from abc;Create a common synonymIf the user's level is not enough to establish a public synonym, You can authorize it under system:Grant create any synonym to scott;Grant create public synonym to scott;Cancel authorization:Revoke create any synoym from scott;Revoke create public synoym
Guide: SynonymIt is an alias for database solution objects and is often used to simplify object access and improve object access security. When using synonyms,Oracle DatabaseTranslate it into the name of the corresponding solution object. Similar to a view, synonyms do not occupy the actual storage space. Only the definition of synonyms is saved in the data dictionary. In Oracle databases, most database objects, such as tables, views, synonyms, sequences, stored procedures, functions, JAVA class
1. Why Use synonyms:
Synonyms, as the name implies is two words, the same meaning, can replace each other. So what's its function?
A one of the most obvious purposes is to simplify SQL. If a database object's name is too long, you can create a shorter synonym. It's the abbreviation.
B. Another purpose is to hide the information of some objects. For example, to find a table in another schema, you need to prefix the table name with the schema name. If
Oracle Database Synonyms (SYNONYM), oraclesynonym
This tutorial uses examples to illustrate how to create and delete Synonyms (SYNONYM) in Oracle Data ).
Concept
Synonyms refer to database objects (tables, views, sequences, stored procedures, and other database objects) referenced by another name. For example:
Creating a synonym can exclude the restriction of an
Tags: oracle synonyms synonym synonymsThis tutorial uses examples to illustrate how to create and delete synonyms (synonym) in Oracle data.ConceptSynonyms refer to database objects (database objects such as tables, views, sequences, stored procedures, and so on) that are referenced by another name. Like what:Creating a synonym can exclude the restriction of an ob
Oracle 's synonym (synonyms) is literally understood as the meaning of an alias, similar to the function of an attempt, a mapping relationship. This article describes how to create synonym statements, delete synonyms, and view synonym statements. Oracle's synonym Summary: The literal understanding is the meaning of the
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.