Overview of Synonyms (193)
A synonym is an alias for any table, view, materialized view, sequence, procedure,
function, package, type, Java class schema object, user-defined object type, or another
synonym. Because a synonym is simply an alias, it requires no storage other than its
definition in the data dictionary.
Synonyms are often used for security and convenience. For example, they can do the
following:
■ Mask the name and owner of an object
■ Provide location transparency for remote objects of a distributed database
■ Simplify SQL statements for database users
■ Enable restricted access similar to specialized views when exercising fine-grained
access control
You can create both public and private synonyms. A public synonym is owned by the
special user group named PUBLIC and every user in a database can access it. A
private synonym is in the schema of a specific user who has control over its
availability to others.
Synonyms are very useful in both distributed and nondistributed database
environments because they hide the identity of the underlying object, including its
location in a distributed system. This is advantageous because if the underlying object
must be renamed or moved, then only the synonym needs to be redefined.
Applications based on the synonym continue to function without modification.
Synonyms can also simplify SQL statements for users in a distributed database system.
The following example shows how and why public synonyms are often created by a
database administrator to hide the identity of a base table and reduce the complexity
of SQL statements.
同義詞
1. 隱藏一個資料庫物件的名字和擁有者
2. 隱藏分散式環境中遠端物件的位置
3. 簡化資料庫使用者的 SQL 語句
4. 用於實現更精細的訪問控制
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10599713/viewspace-982103/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Check the existence of public synonyms Remove the public synonymsREM
- Flutter OverviewFlutterView
- [20190102]ORA-01775 looping chain of synonyms.txtOOPAI
- Overview of Availability in a CDBViewAI
- dart class overviewDartView
- [英] TensorFlow OverviewView
- 高通USB overviewView
- 7-Overview-namesView
- 8-Overview-NamespacesViewnamespace
- 10-Overview-AnnotationsView
- 2.4 Overview of Services in a CDBView
- Spring Cloud: Overview 概述SpringCloudView
- DeepLearning – Overview of Sequence modelView
- Elasticsearch:使用同義詞 synonyms 來提高搜尋效率Elasticsearch
- 【Machine Teaching】An Overview of Machine TeachingMacView
- 9-Overview-Labels and SelectorsView
- 11-Overview-Field SelectorsView
- 12-Overview-Recommended LabelsView
- Overview-(概述 What is Kubernetes)View
- 4-Overview-Kubernetes APIViewAPI
- 2.6.2 Overview of Flashback PDB in a CDBView
- 2.2.7 Overview of PDB Lockdown ProfilesView
- 2.2.6 Overview of Common Audit ConfigurationsView
- An Overview of PostgreSQL & MySQL Cross ReplicationViewMySqlROS
- PostgreSQL DBA(193) - 資料傾斜下的HashJoinSQL
- 5-Overview-Understanding Kubernetes ObjectsViewObject
- 6-Overview-Kubernetes Object ManagementViewObject
- 1-Overview-(概述 What is Kubernetes)View
- 2.7 Overview of Oracle Resource Manager in a CDBViewOracle
- 2.5 Overview of Tablespaces and Database Files in a CDBViewDatabase
- 2.2.5 Overview of Common and Local Objects in a CDBViewObject
- 2.2.4 Overview of Privilege and Role Grants in a CDBView
- 2.2.2 Overview of Common and Local Users in a CDBView
- An Overview of High Performance Computing and Responsibly Reckless AlgorithmsViewORMGo
- Guide to app architecture 2 - UI layer OverviewGUIIDEAPPView
- 3-Overview-k8s 元件ViewK8S元件
- 2.1 Overview of Containers in a CDB (CDB容器概述)ViewAI
- 9. Technical Overview 技術概述View
- PostgreSQL 原始碼解讀(193)- 查詢#109(排序#2 - ExecSort)SQL原始碼排序