Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

Free Oracle Tips

HTML Text

 Home
 E-mail Us
 Oracle Articles



 Oracle Training
 Oracle News

 Oracle Forum
 Class Catalog


 Our Staff
 Our Prices
 Help Wanted!

 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 UNIX
 Oracle UNIX
 Linux
 Oracle Linux
 Monitoring
 Remote help

 Remote plans
 Remote
services
 Oracle C++
 Oracle Java
 Apache
 JDeveloper
 App Server

 Applications
 Oracle Forms
 Oracle Portal
 11i Upgrades
 SQL Server
 Oracle Concepts
 HTML-DB Tips
 Software Help

 Remote Help  
 Development  

 Implementation


 Financials Training
 Oracle 11i
 Oracle Apps 11i
 Oracle Workflow
 Oracle AR 11i Class
 Oracle AP 11i class
 Oracle GL 11i class
 Oracle HR 11i class
 Oracle FA 11i class
 11i Project Mgt
 11i procurement
 11i collections


 Oracle Posters
 Oracle Books

 Oracle Tuning Book
 Oracle RAC Book
 Oracle Security
 Easy Oracle Books
 Oracle Scripts
 SQL Server DBA
 SQL Design Patterns
 WISE
 Excel-DB   


 BC Oracle News


 Rednecks!
 Dress code
 Arabian Stallion

 Burleson Arabians
 Guide Horses
 Don Burleson Blog
 Golf & Travel


 Privacy Policy
 

 

 

 

 

Oracle Synonyms  

Oracle Tips by Burleson Consulting

 


About

Oracle Synonyms 

Administration and Creation of Synonyms

Synonyms are a very powerful feature of Oracle and other SQL-compliant relational database systems. They are used as a database shorthand. They make it possible to shorten the specification of long or complex object names. This is especially useful for shared tables or views. In addition, the use of DATABASE LINKS in synonyms allows transparent access to other databases on other nodes or even other entire systems halfway around the globe.

Synonyms are created using the CREATE SYNONYM command. Synonyms can be either PRIVATE (the default) or PUBLIC. Private synonyms can only be used by the user creating them. You must have a specific grant or one of the special ROLES assigned to you before you can create synonyms. Only users with appropriate privileges (usually DBAs) can create PUBLIC synonyms. Since only the owner can use them, PRIVATE synonyms are more secure.

Monitoring Synonyms Using the V$ and DBA_ Views

Synonyms remain the same in Oracle8, Oracle8i, and Oracle9i. The major changes that have affected Oracle synonyms are those to the structure of the connection strings from SQL*NET V1 to V2 to NET8. Despite the fact that synonyms are the key to providing cross-database access for queries, and a means of implementing distributed data across nodes, systems, and databases, in all the reports reviewed for this book, not one seemed to cover synonyms. Recall that a synonym allows a shorthand version of an object name to be specified. The parts of a synonym are the object name (which usually includes an owner) and, possibly, a database link that will also provide an Oracle user name and password to a remote system. A complete report will show all of these items.

Why is it important to monitor Oracle synonyms? Oracle synonyms can be used to access data, sometimes data that shouldn’t be accessed if object grants have been too widely granted. In addition, they are the means for reaching other nodes and databases. If a connect string becomes invalid, a user name is disconnected or its password changes or node name changes, it is good to be able to see which object synonyms will be affected.

You may also want to create private synonyms for the objects you are going to replicate with the create synonym command. You can use this command to create private Oracle synonyms as seen in this example:

CREATE SYNONYM my_tab FOR tab_own.my_tab;
 


    Need an Oracle Health Check?
  • Do you have bad performance after an upgrade?
     
  • Need to certify that your database follows best practices?

BC Oracle performance gurus can quickly certify every aspect of your Oracle database and provide a complete verification that your database is fully optimized.

 

 

 

 
 
 

Oracle performance tuning book

 

 

Oracle performance tuning software

 
Oracle performance tuning software
 
SearchOracle web site
 
Oracle performance Tuning 10g reference poster
 
Oracle performance tuning webcast
 
Oracle training in Linux commands
 
Oracle training Excel
 
Oracle training & performance tuning books
 

 

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  and include the URL for the page.
 
 


Burleson Consulting

The Oracle of database support


 

Copyright © 1996 -  2007 by Burleson Enterprises, Inc. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation.


Hit Counter