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
Consult the database design solution again. Consult the database design solution again. If you want to develop a clothing system by yourself, you may encounter a problem: a clothing may have multiple colors, multiple sizes (different numbers), and different colors (different numbers ), different sizes, different colors, and different prices. I would like to ask you how you can easily add products to the car
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
mining, learning sequencing, and language models.If the direction newness does not have a relevant review, it is generally possible to find the latest papers published in that direction, read their "related work" chapters, and follow the list of references to get a basic understanding of the relevant research context. There are, of course, many other options, such as going to videolectures.net to see the tutorial reports of famous academics at major academic conferences or summer schools, to
fieldFinally, a quick overview of the progress of research in a field of experience. You will find that search engine is an important tool to access the literature, especially Google Scholar, because of its huge index, it will be our tool.When you need to know a certain area, if you can find a new research summary of this field, it is Jingxiang more. The most convenient way is to search for "domain name + survey/review/tutorial/review" in Google Scholar. There are also publishers who specialize
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
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
Dear Boss:
I have a query for the SQL statement to consult, I hope to be able to get results with a SQL statement, the problem is as follows:
Table x:
A B C D
------------------
BEIJING Guangzhou 1000 10
Beijing Shenzhen 1200 20
Beijing Shanghai 500 30
Beijing Tianjin 300 40
Beijing Henan 800 20
Table y:
A B
----------
Beijing Shenzhen
Beijing Shanghai
Table Z:
A B C D
------------------
BEIJING Guangzhou 200 10
BEIJING Shanghai-100-10
Beijing Si
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.