Synonym advantages in Oracle

What is synonym? and what r the advantages of using synonyms

From good old Oracle documentation..
A synonym is an alias for any table, view, snapshot, sequence, procedure, function, or package. 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
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. Assume the following:
A table called SALES_DATA is in the schema owned by the user JWARD.
The SELECT privilege for the SALES_DATA table is granted to PUBLIC.
At this point, you have to query the table SALES_DATA with a SQL statement similar to the one below:
SELECT * FROM jward.sales_data;
Notice how you must include both the schema that contains the table along with the table name to perform the query.
Assume that the database administrator creates a public synonym with the following SQL statement:
CREATE PUBLIC SYNONYM sales FOR jward.sales_data;
After the public synonym is created, you can query the table SALES_DATA with a simple SQL statement:
SELECT * FROM sales;
Notice that the public synonym SALES hides the name of the table SALES_DATA and the name of the schema that contains the table.

Similar Messages

  • Advantage of Oracle Database Firewall

    Hi
    I am newbie to Database Firewall. One of our client is already using SecureSphere Database Firewall. Now we are proposing Oracle Database firewall to the client so that we need to know the advantage of oracle database firewall compared to securesphere database firewall.
    Could anyone pls let me know the main difference between these two?
    Thanks

    Hi,
    The following will help you;
    Oracle Audit Vault 10.2.3.2.x -> Installation Guide: https://docs.oracle.com/cd/E14472_01/relnotes.102/e11061/toc.htm
    Oracle Audit Vault 10.3.x -> Installation Guide: http://docs.oracle.com/cd/E23574_01/relnotes.103/e23572/toc.htm
    Oracle Database Firewall Documentation, Release 5.0
    Oracle Database Firewall Documentation, Release 5.1
    Oracle Audit Vault and Database Firewall 12.1.2 -> Installation Guide: http://docs.oracle.com/cd/E37100_01/doc.121/e27778/toc.htm
    Contributor Data File
    Thank you,
    Orhan Eripek

  • Advantages of Oracle 10g over Sybase

    Hi All,
    I need a quick help on advantages of Oracle 10g that it has over Sybase. Please suggest any good links/docs.
    Thanks in advance
    Aditi

    Here's an old one ...
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:1886476148373
    C.

  • Advantages of oracle 9i

    Hi,
    Can anyone please tell what are the features of Oracle 9i. ie... advantages of Oracle 9i.
    I faced this question in my interview.
    Thanks in advance!!!

    Read Oracle documentation, Database New Features Guide. E.g. for Oracle10g:
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14214/toc.htm
    Personally for me [as developer] the best is possibility to use analitics in SQL embedded in PL/SQL. Ora8 PL/SQL does not allow to do this [and a lot of other things]

  • Synonym issue in Oracle 11g

    Hi All,
    I came across strange issue on basic nature of Synonyms in Oracle 11gR2. Below is the scenario
    I have two users U1 and U2, in the same database.
    Schema Objects of U1 and U2 are on different tablespace, not on SYSTEM. I can refer and access any valid U1 object in U2 as U1.object_name or with synonym. But whenever I refer, I get error "OCI-21700: object does not exist or is marked for delete".
    I have tested this with both private and public synonyms in U2. I have granted ALL access from U1 on the objects.
    Please help me on this.
    SBH

    Hi SBH,
    Can you execute the below and try again. I think you are getting the error while executing a PL/SQL block. Correct me if I'm wrong.
    GRANT SELECT ANY DICTIONARY TO U2;Have you granted access via roles or direct ?
    Cheers
    Kanchana.
    Edited by: Kanchana Devasurendra on Oct 6, 2010 10:58 AM

  • Advantages of oracle

    can anyone please help me?? im a poor lil uni student looking for the advantages and disadvantages of using oracle developer

    What do you mean "Oracle Developer"?
    Are you talking about the Java tool - Oracle JDeveloper?
    This page: http://otn.oracle.com/products/jdev has a lot of information to show you how it makes developing application simpler.

  • Synonym use through Oracle JDBC driver

    I am trying to find out if Oracle JDBC driver can use synonym to get to an oracle object. I connect to one schema, this schema has synonym for this object and grant from other schema which is the owner of this object. Unless, I have this object's name prefixed with the schema name (which is the owner of this object) JDBC driver cannot see it. We move around oracle types(objects) to different schema for house keeping and this make our java code fail. I am trying to find out a way to remove this dependency of tacking schema name front of object name. Can you please let me know that if this is Oracle JDBC diver limitation or I should be something else?

    http://forum.java.sun.com/thread.jsp?forum=48&thread=187964&start=0&range=15#608968
    The above link is a comprehensive "How to get set up and on my way" that I made for someone else learning Oracle/jdbc. Kind of a self-help resource page. I would start from the beginning and download the newest drivers, then set up your environment,...etc.
    hope this helped,
    Jamie

  • Advantages of Oracle ASM Cluster File Systems (ACFS)

    Hi
    configured 11g Rel 2 Grid Infr , ASM instance and the database on linux x86_64 bit
    when I started asmca, i noticed that there are no volumes configured
    Need to know what are the advantages of configuring volumes,
    [root@vmorarac2 init.d]# lsmod
    Module Size Used by
    oracleacfs 1613902 0
    oracleadvm 220326 0
    oracleoks 279693 2 oracleacfs,oracleadvm
    oracleasm 48660 1
    thanks

    Need to know what are the advantages of configuring volumes,ACFS files system will available once you'll configure volume.
    http://docs.oracle.com/cd/E11882_01/server.112/e18951/asmfs_util002.htm#CACGFHAA

  • Advantage of Oracle job over Crontab\Control-M?

    Is there any advantage of having Job functionality using DBMS_JOBS over Unix crontab\control-M?
    Regards,
    Bhagat

    In what way u need the adv. It depends on what ur application need is.
    Is your oracle is installaed on Unix platform, then calling a oracle proc though a small script and putting the same in crontab provides much control over your job. Instead going to DB everytime......
    Cheers.......... Bob

  • Synonym query in oracle

    Hi there,
    I have defined a synonym group of words using Intermedia.
    The query I am using at the moment is:
    select * from textsyn where contains(description, 'about(the_search_word)')>0
    Any ideas how can I query synonyms without losing the generality that offers me the "about" term instead of creating the following query:
    select * from textsyn where contains(description, 'syn(the_search_word)')>0
    Regards,
    Kostas.

    Hi there,
    I have defined a synonym group of words using Intermedia.
    The query I am using at the moment is:
    select * from textsyn where contains(description, 'about(the_search_word)')>0
    Any ideas how can I query synonyms without losing the generality that offers me the "about" term instead of creating the following query:
    select * from textsyn where contains(description, 'syn(the_search_word)')>0
    Regards,
    Kostas.

  • Advantage with Oracle productivity tool

    PL/SQL, Pro*C Process Code Generator for Oracle. A must visit site:
    http://www.supertime2000.com/snapproc.htm

    Oracle Reports can only be created through Report Builder.
    If you want a simple reporting tool for end users, then other products are more suitable, e.g. Oracle Discoverer, Crystal Reports, Cognos Impromptu.

  • Oracle SCM & OPM Advantages Over  SAP MM & SCM Suite.

    Hi every one,
    Are there any Features in Oracle EBS which would be concidered as advantage of Oracle SCM & OPM over SAP MM and SCM Suite. All you gurus out there please share your views and experience.
    Waiting for a fruitful response.

    Hi,
    1. Cost Allocation to multiple FG in a single production batch cannot be handled in SAP. SAP expects a batch to have a single product.
    2. SAP Material Ledger does not handle multiple levels of iteration (Reprocessing), which can be common in a process manufacturing industry.
    Regards,
    Malcolm

  • Synonyms for oracle queues

    hi,
    We have the following set up in place,
    A Schema user(say user1) who owns all tables, procedures, queues. And a user(say user2) who accesses these objects using synonyms.
    User2 is able to create synonyms and has been granted enqueue/dequeue permissions for the queue owned by user1.
    now user2 executes a plsql procedure invoking these queues, but this gives an error stating user2.queue-name not found.
    if the same plsql procedure is modified to prefix user1.queue-name then the procedure runs successfully.
    Are synonyms valid for oracle queues? any ideas to make things work?

    Solution
    The behaviour of AQ can be changed to use the standard PL/SQL definer/invoker's rights model when
    executing the packages via an event setting. When the event is in place, the referenced queue user
    will default to the actual owner of the queue. The event can be set statically via
    event = "10862 trace name context forever, level 1"
    in the init.ora or
    alter system set event='10862 trace name context forever, level 1' scope=spfile;
    for the spfile and restarting the instance. Alternatively the parameter can be set dynamically via
    alter system set events '10862 trace name context forever, level 1';
    or
    alter session set events '10862 trace name context forever, level 1';
    The workaround is  to explicitly specify the schema name when referencing the AQ objects, e.g.
    dbms_aq.enqueue (queue_name => 'USER_A.QUEUE_A' ..

  • Oracle advantages over MicroStrategy

    Can anyone point me to a good web site (or provide some info) regarding the advantage of using Oracle's BI toolset versus MicroStrategy? I'm having a hard time convincing upper mgmt to go with the right tool. My admitted personal bias (I'd rather quit than work with that particular tool again) is well known, and rather than being a "sky is falling" sort of guy I'd prefer to have some ammunition to justify my preferences.
    TIA

    Hi,
    It's just my opinion....
    You need to first plan & chalk out your Hardware / Network / Infrastructure / MiddleWare / Application strategy before investing in a Portal. I have had this argument with a couple of my friends over weekends ( Oracle Portal vs. Microsoft SharePoint ) & after lot of heated debates, we figured out that the picture is much larger than just " Portal ".
    If you have your IT Infrastructure built around Microfost Products & Services, I would say that SharePoint is a good investment. If you have your IT Infrastructure built around Oracle, Oracle Portal is the way to go !
    Of course, I can go on & on about the advantages of Oracle Portal....personally, I have found it very scalable, robust & it's support for almost all the emerging standards / technologies is really awesome.
    Again, it's just my opinion....I too would like to hear other view on this....
    Regards,
    Sandeep

  • Need help in understanding Oracle WMS

    Hi,
    We are planning to implement Oracle WMS in our company. Currently we are using High Jump software for all our warehouses. Some of the warehouse functions as Cross Dock or some as Storage. Can some body give me some inputs for the following so that i can prepare a doc and present it to my upper management.
    1. Some articles/training material which talks about complete functionalities in Oracle WMS( I would like to know more about Warehousing, Yard management and Customer Reporting)
    2. Is there any document which talks about the advantages of Oracle WMS over HighJump WMS? (I did search in web for 2-3 days but couldn't find much info)
    It would be really help if anybody help me to find outmore info on Oracle WMS.
    Thanks everyone.

    Hi,
    If you are still looking for information and have a CSI for My Oracle Support, you might consider posting your question to the Logistics Community which is a venue for current customers to discuss WMS:
    https://communities.oracle.com/portal/server.pt/community/logistics/264
    Best regards,
    Catherine
    Logistics Community Manager

Maybe you are looking for