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
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
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 _ 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
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
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
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
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
Oracle synonym learning. To create a synonym for a table on a remote database, you must first create a DatabaseLink (database connection) to expand
Oracle synonym learning. To create a synonym for a table on a remote Database, you must first create a Database Link (Database connection) to expand
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
Concept
A graphical synonym is a representation of an object (table), which itself has no specific definition.
By graphically using synonyms, it is possible to use this object (table) in different places in the same physical diagram (physical diagram).
Role: In the physical diagram between the relationship between the lines as far as possible, through the establishment of synonymous word image (graphical
1, first need to install good elasticsearch and Elasticsearch-analysis-ik word breaker2. Configure IK synonymsThe Elasticsearch comes with a synonym filter named synonym. In order for IK and synonym to work together, we need to define a new analyzer and use IK as the tokenizer,synonym filter. It sounds complicated, but
Take a list of process business information to illustrate the use of Oracle synonym solutions.The following objects are available in the Oracle database Bpm_sun User:
Object Name
type
Description
Sun_biz_base
Table
Sub_focusprocess
Table
Sub_biz_info
Synonym
Create
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.