![]() |
Synonyms![]() ![]() ![]() ![]() ![]()
What is Synonym? Why use Synonym? Synonyms provide many benefits, including the following: Requiring no storage other than their definition on the data dictionary Simplifying SQL coding Improving database security Providing public access to an Oracle object Synonyms are used to improve database security by masking the underlying object's actual name, owner, and location. This holds true for distributed database where an object can be referred to on a remote database. How to use Synonym?
Use the SQL command create synonym to create a synonym. The following example creates public synonym named emp for the table EMPLY in the schema emp_01
CREATE PUBLIC SYNONYM EMP FOR EMP OLEMPLY,
A synonym can be used to stand for its underlying object in any of the following Data manipulation Language Statements.
Not using synonyms in the SQL statement;
To remove a synonym from the database and its data dictionary, use the drop synonym command. You use public keyword to drop a public synonym. The following synonym drops the private synonym emp: DROP SYNONYM EMP; Renaming a Synonym You can rename a private synonym of a table by using the rename command. The following example renames the dept synonym to the bus unit synonym: RENAME DEPT TO BUS UNIT; All grants and indexes belonging to the old synonym are transferred to the new system.
|
|
Domain NamesSQL Database Management Systems Relational Database Management System Properties of RDBMS Client Server Computing Oracle Relational Database Database Structure and Space Management SQL Data Types How to Use Data Types? What is Operators and Conditions Character OperatorsOperator Precedence Data Retrieval Using SQL Plus SQL Data Definitions Data Retrieval Using Select SQL Operator Precedence Selecting Rows and Columns The Group by Clause
Having Clause Union, Union all, Intersact and Minus Commands Playing with Numbers Date Functions Example of Date Arithmetic Working with Null Values
Joining Tables and Subqueries Views Synonyms Indexes Clusters Sequences Formatting Query Results with SQL Plus Data Integrity The Optimizer How Oracle Optimizes SQL Statements Evaluating Expression and ConditionsOptimization Hints PL-SQL PL-SQL Architecture Error Reporting Functions Character Functions Composite Data Types PL-SQL Structures How to use PL-SQL Structures Normalization Operator Precedence Cursor Error Handling Database Triggers Types of Triggers Locking Sub Programs Packages New and Improved Data Types Improved Select Statement Advanced Quering Improved Scalability Improved Performance Via Partitioning Object Relational Features Heterogeneous Data Access Improved Security Administration New Data Types Improved Select Statement Changes to the Select Statement Improved Scalability Data Partitioning Oriented Toward Objects Character Functions Creating Object Types Created Nested Tables Oracle8 and Distributed Database Oracle8 Database Management and Security Distributed Database Invoking Export Invoking ImportWeb DesignWeb HostingE Commerce |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |