Private synonym < type unknown obj >

Hello

I do a script, what makes it synonymous to the new database schema 'ABC', for our existing patterns.

part of the script is:

SELECT * FROM)
SELECT master, object_name of object WHERE owner IN ('ETL') AND object_type IN ('TABLE', 'SEE') AND object_name NOT LIKE ' % $% "(LESS)
SELECT table_owner, table_name FROM all_synonyms WHERE UPPER (owner) IN ('PUBLIC', 'ABC')
AND UPPER (table_owner) IN ('ETL'))

r_synonym sys.all_objects%ROWTYPE;

--
FOR r_synonym IN table_synonyms
LOOP
RUN IMMEDIATELY "CREATE OR REPLACE SYNONYM ABC." | r_synonym.object_name | "FOR ' | r_synonym. Owner: '.' | r_synonym.object_name;
END LOOP;

Now, the synonym is created, but the info shows me 'unknown obj type <>' and as you can expect, the synonym does not work (even if it is created).

Any ideas?
THX

ABC has privileges on the objects?
For example a sysnonym on a table will not work if you do not have a privilege such as SELECT or UPDATE.

Concerning
Marcus

Tags: Database

Similar Questions

  • Models of virtual machine in the library of content focus type = unknown

    Hello

    I created a test with vsphere environment 6 and I created a content library for my VM models.

    That worked well for the last few months, but today I have connected the web client and wanted to deploy a new virtual machine from the content library.

    First thing I noticed was the selection after "deploy vm from library" - the library is empty...

    When I look directly in the content library, models are still there, but the type is unknown and not possible to export the s model or deploy...

    Any ideas what I can do?

    I already rebooted the server vcenter...

    I found a work around...

    I was able to clone the model with type = unknown, and the watch type = clone model vm and the guest OS is displayed correctly, too...

  • private synonym

    HII I want to know that if I create a private synonym vinod_test_prv on a vinod_test of the table in the hr schema and do not have the right to select on that but give the privilege on the table select the synonym of another schema say scott



    create the synonym for vinod_test; - in the hr schema vinod_test_prv

    Revoke select on vinod_test_prv scott; - in the hr schema

    SQL > grant select on vinod_test to scott; - in the hr schema

    Grant succeeded.



    schema Scott

    SQL > select count (*) from hr.vinod_test_prv;-here I am able to select a synonym, while I've revoked select synonym

    COUNT (*)
    ----------
    107

    Published by: 810345 on January 18, 2011 15:50

    You cannot give privileges on a synonym.

    A synonym is only an alias, a sort of "tinyurl" that allows you to write the name of an object in a different way.

    So if your object is name 'HR '. "" VINOD_TEST "and you create a synonym on it. Then the grant statement will use name resolution, the synonym is estimated and translated this synonym for the name of the appropriate object. The however grant on the object, not on the synonym.

    Allows so check what is happening during your example surveys:

    810345 wrote:
    HII I want to know that if I create a private synonym vinod_test_prv on a vinod_test of the table in the hr schema and do not have the right to select on that but give the privilege on the table select the synonym of another schema say scott

    create the synonym for vinod_test; - in the hr schema vinod_test_prv

    Revoke select on vinod_test_prv scott; - in the hr schema

    You just select priv HR revoked. Scott VINOD_TEST

    SQL > grant select on vinod_test to scott; - in the hr schema

    Grant succeeded.

    You just give the priv select hr. VINOD_TEST Scott

    So Scott can now choose from this table. And it can also choose the synonym.

    Published by: Sven w. on January 18, 2011 11:22

  • Write to spread generates file of journal of type unknown file in windows 7.

    Hi all, I use the Vi 'Write in a spreadsheet file' for writing data in text files. These data can be read by any text editor, such as Notepad in MS, or excel. The problem is that

    Windows detects these files as being of an unknown type, and I have to explicitly tell windows what program to use to open these files. In addition, for some reason any the

    Box "Always use the selected program to open this kind of file" is grayed out. So I can't assign a file type to these files.

    Has anyone else encountered this problem? Do you know how to fix it? And what type of files 'Write in a spreadsheet file' generates?

    Thanks for your help,

    What extension do you use to create your files?  I agree that it seems that you do not provide a file extension.  Add a ".txt" to your file names before writing and Windows will play more nicely with you.  Or if you use a comma as separator, use ".csv".

  • Public/private synonym not recognized

    Hello world.

    I'm running EBS 11.5.10 Oracle 10.2.0.3, and until recently all the bolt on and when custom applications using the APPS user to perform their daily tasks. We strive to correct this by giving them least privilege user names, but I don't want to force changes to the code. We decided to use synonyms to make transparent change to applications, but has faced some questions about only one app (which, unfortunately, is a large). For some reason any, when the java class uses a package since the synonym body, it returns error.

    Creating synonym for example:
    CREATE OR REPLACE SYNONYM "OPS$TFNESERV"."GETS_B2B_102_INBOUND_PKG" FOR "APPS"."GETS_B2B_102_INBOUND_PKG";
    {code}
    In the database, the total objects related to this are:
    {code:java}
    select * from dba_objects where object_name = 'GETS_B2B_102_INBOUND_PKG'
    OWNER          OBJECT_NAME               OBJECT_ID
    ---------------------------------------------------------------------------------
    PUBLIC          GETS_B2B_102_INBOUND_PKG     SYNONYM
    APPS          GETS_B2B_102_INBOUND_PKG     PACKAGE
    APPS          GETS_B2B_102_INBOUND_PKG     PACKAGE
    OPS$TFNESERV     GETS_B2B_102_INBOUND_PKG     SYNONYM
    {code}
    Grants include execute & debug on this object:
    [code]
    select * from dba_tab_privs where grantee  like 'OPS$TFNESERV' AND table_name = 'GETS_B2B_102_INBOUND_PKG'
    GRANTEE          OWNER          TABLE_NAME               GRANTOR     PRIVILEGE
    -----------------------------------------------------------------------------------
    OPS$TFNESERV     APPS          GETS_B2B_102_INBOUND_PKG     APPS     EXECUTE
    OPS$TFNESERV     APPS          GETS_B2B_102_INBOUND_PKG     APPS     DEBUG
    [/code]
    The code is written without specifying the schemas, which shouldn't be an issue. Yet here are the various errors I see:
    [code]
    //Java command:
    cstm = con.prepareCall("{call GETS_B2B_102_INBOUND_PKG.get_clob_message(?,?,?,?)}");
    Gets_T1_T3_Inbound:**: SQL ERROR:T3:ORA-01031: insufficient privileges
    
    //SQL
    desc GETS_B2B_102_INBOUND_PKG;
    ERROR:                                                                               
    ------------------------------------------------------------------------------------ 
    ERROR: object GETS_B2B_102_INBOUND_PKG:                                              
    APPS:GETS_B2B_102_INBOUND_PKG does not exist                                         
    
    desc apps.GETS_B2B_102_INBOUND_PKG;
    PROCEDURE                                                                            Argument Name                  Type
    -----------------------------------------------------------------------------------------
    //...data
    [/code]
    
    Am I missing some permission or definition? any help would be appreciated. Thanks!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    Do something->

    Are you sure you are using the same account in the database and the java connection string? IF Yes, then->

    Do you have dbms_java privs?

    Convert your java code in a procedure based on java within your database, then try to run that and if you are able to do it or not?

    Kind regards.

    LOULOU.

    Published by: Satyaki_De on October 16, 2008 02:53

  • VISA driver on the connection type unknown

    I can't be the only person having this problem in LabVIEW and I have not worked on the solution.

    Let's say for example I write a driver for a power supply, this device is off the shelf, but the manufacturer provided driver is *!

    Instrument is connected through GPIB. in this case.

    3 months later, I would like to re - use the driver but due to the implcations cost I can not have the flavor of the instrument GPIB and need the RS232 version, so I re - write the pilot so that all the functions of R/W are shrouded by a VI using the right process for the reading of serial ports if a RS232 device and repeat the initialization of the process too.

    3 months later I get my hands on a USB version of the PSU - he uses the style GPIB code and does not take long to change.

    The question is this:

    Is it all as anyone knows (alias VISA ignoring) that will allow me to determine the physical to the PSU from the PC connection, if someone changes and therefore to use the correct part of the code driver to initialize and communicate with the power supply.

    Specifying the Intf Type is a fix SW for a HW problem that causes more problems if the connection is changed, how can I allow someone to use RS232/USB/GPIB and detect the connection type myslef in LabVIEW, before making a * IDN and the harbor onpen?

    Thanks in advance for any ideas

    James

    Have you looked at all the drivers NOR? The example of the expedition of the Agilent 34401 is sufficient. In the Initialize function, there is a test to see if the resource VISA is a serial port. The case statement for the true condition sets up the port. There is no other changes such as GPIB, USB connection or Ethernet works exactly the same way.

  • Number cast type unknown number

    Hi all

    I need to convert an object to double, increment and then convert the double object (preservation of the original object class). This object class would be byte, short, int, long, float or double.

    < code >

    Object o = 123;

    double d;

    Number n;

    Class c;

    c = o.GetClass ();

    n = o (number);

    d = n.DoubleValue ();

    d ++ ;

    n = d;

    o = c.Cast (n);

    < code >

    The last statement produces ClassCastException.

    Why the tag < code > did not work. I miss the button to 'view' in the old forum of 'Sun '.

    Maybe not, I can't imagine that someone has already done something for you to do, as in the municipalities of Apache API. But the code is so trivial that I tend to just reinventing the wheel instead of something that already exists.

  • Private to my Mac network does not work

    I copied a Workstation VM Fusion Pro 7 10.

    Guest operating system: RHEL 5

    The Workstation vmnet1 network was 172.16.19.0. I don't know how config it for 'Private to my Mac' Fusion Pro.

    I tried to configure the NIC of the virtual machine on Fusion Pro 7, 'My Mac private' and adding a second adapter for vmnet2 (172.16.19.0) to my parameters of Fusion and configuration of the VM to this adapter, but both options cannot connect between the host and the guest and vice versa.

    I stopped the iptables in the comments.

    My host ifconfig:

    ifconfig $

    lo0: flags = 8049 < LOOPBACK, RUNNING, UP, MULTICAST > mtu 16384

    options = 3 < RXCSUM, TXCSUM >

    inet6: 1 prefixlen 128

    INET 127.0.0.1 netmask 0xff000000

    inet6 fe80::1% lo0 prefixlen 64 scopeid 0x1

    ND6 options = 1 < PERFORMNUD >

    gif0: flags = 8010 < POINTOPOINT, MULTICAST > mtu 1280

    stf0: flags = 0 <>mtu 1280

    en0: flags = 8863 < UP, BROADCAST, SMART, RUNNING, SIMPLEX, MULTICAST > mtu 1500

    ether 60:f8:1 d: af:80:28

    inet6 fe80::62f8:1dff:feaf:8028% en0 prefixlen 64 scopeid 0x4

    INET 192.168.1.70 netmask 0xffffff00 broadcast 192.168.1.255

    ND6 options = 1 < PERFORMNUD >

    Media: AutoSelect

    status: Active

    EN1: flags = 8963 < UP, BROADCAST, SMART, RUNNING PROMISC, SIMPLEX, MULTICAST > mtu 1500

    options = 60 < TSO4, TSO6 >

    ether 72:00:07:4e:95:c0

    Media: AutoSelect < full duplex >

    status: inactive

    EN2: flags = 8963 < UP, BROADCAST, SMART, RUNNING PROMISC, SIMPLEX, MULTICAST > mtu 1500

    options = 60 < TSO4, TSO6 >

    ether 72:00:07:4e:95:c1

    Media: AutoSelect < full duplex >

    status: inactive

    P2P0: flags = 8843 < SQUARE, RELEASE, running, SIMPLEX, MULTICAST > mtu 2304

    ether 02:f8:1 d: af:80:28

    Media: AutoSelect

    status: inactive

    awdl0: flags = 8843 < SQUARE, RELEASE, running, SIMPLEX, MULTICAST > mtu 1452

    ether d2:99:97:c3:13: ff

    inet6 fe80::d099:97ff:fec3:13ff % awdl0 prefixlen 64 scopeid 0x8

    ND6 options = 1 < PERFORMNUD >

    Media: AutoSelect

    status: Active

    bridge0: flags = 8863 < UP, BROADCAST, SMART, RUNNING, SIMPLEX, MULTICAST > mtu 1500

    options = 63 < TXCSUM, TSO4, RXCSUM, TSO6 >

    ether 62:f8:1 d: f: 20:00

    Configuration:

    0:0:0:0:0:0 priority 0 0 fwddelay hellotime ID 0

    maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200

    port root id 0:0:0:0:0:0 priority 0 ifcost 0 0

    IPFilter disabled flags 0 x 2

    Member: en1 flags = 3 < LEARNING, DISCOVER >

    path of priority 0 ifmaxaddr 0 5 0 cost port

    Member: en2 flags = 3 < LEARNING, DISCOVER >

    ifmaxaddr 6 priority path cost 0 0 0 port

    ND6 options = 1 < PERFORMNUD >

    Media: < type unknown >

    status: inactive

    VMnet1: flags = 8863 < UP, BROADCAST, SMART, RUNNING, SIMPLEX, MULTICAST > mtu 1500

    ether 00:50:56:c0:00:01

    INET 172.16.153.1 netmask 0xffffff00 broadcast 172.16.153.255

    VMnet2: flags = 8863 < UP, BROADCAST, SMART, RUNNING, SIMPLEX, MULTICAST > mtu 1500

    ether 00:50:56:c0:00:02

    INET 192.16.19.1 netmask 0xffffff00 broadcast 192.16.19.255

    VMnet8: flags = 8863 < UP, BROADCAST, SMART, RUNNING, SIMPLEX, MULTICAST > mtu 1500

    ether 00:50:56:c0:00:08

    INET 172.16.250.1 netmask 0xffffff00 broadcast 172.16.250.255

    Any idea?

    It works if you reconfigure your interface vmnet2 to the right address?  Has your current output of ifconfig:

    VMnet2: flags = 8863 mtu 1500

    ether 00:50:56:c0:00:02

    INET 192.16.19.1 netmask 0xffffff00 broadcast 192.16.19.255

    Which isn't what you want.

    See you soon,.

    --

    Darius

  • JAX - RPC, Webservice and the dateTime type elusive everything

    I need to interface with a web service. I have no control over it, so I can't change the WSDL, the server, or something similar.

    One of the types of data used is xsd: DateTime, a guy who according to it (table 1, JAX - RPC support for data types), is not supported on J2ME. Of my research (on this forum and on the Internet), person doesn't use any date/time/dateTime any form or is ordered to change their WSDL so it it does not use if they intend to use a client on J2ME.

    If anyone has a clue on how to use it, because I said, I have no control over the server or the WSDL. Would be his replacement formatted by a string in the work in an appropriate manner or the JAX - RPC system would say it's the wrong type?

    I used wscompile to get static stubs for the service, I can't compile without figure this (Type has only primitive types, 'UNKNOWN' what wscompile replaces the unsupported types is not cutting it for obvious reasons). Temporarily, I've replaced 'UNKNOWN' with Type.STRING but I don't know if it will work (that's why I asked).

    OK, the base64Binary Type I used was Type.STRING. Then I just ran through the Base64InputStream.decode that does the job. I realized that two types do not work (wscompile is good for a general idea of how a web service must be implemented but horrible to the actual implementation) so I need to rewrite much of the code and decided to rewrite it so that it works better and is more clean.

    Thanks for the help.

    EDIT:

    It was also the help function, I used to convert a string to a timetable so that it works with the web service:

    public static String toSOAPString(Calendar cal)
    {
        if(cal == null)
        {
            return null;
        }
        StringBuffer buf = new StringBuffer();
    
        //Get format
        new SimpleDateFormat("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'SSS").format(cal, buf, null);
        buf.append("0000");
    
        //Timezone
        String zoneID = cal.getTimeZone().getID();
        int index = zoneID.indexOf('-');
        if(index == -1)
        {
            index = zoneID.indexOf('+');
            /* If no timezone offset exists, it isn't needed
            if(index == -1)
            {
                buf.append("+00:00");
            }
            */
        }
        if(index != -1)
        {
            buf.append(zoneID.substring(index + 1));
        }
        return buf.toString();
    }
    
  • How the XML element used in RTF PUBLIC/PRIVATE? I know how to hide columns in RTF, but do not know how to generate xml below way. Help, please.

    Hello

    I'm following link below to show/hide my columns dynamically. See "formatting of column.

    http://docs.Oracle.com/CD/E12844_01/doc/BIP.1013/e12187.PDF

    According to the doc element can be made in private/public.

    <items type="PUBLIC">
     <item>
      <name>Plasma TV</name>
      <quantity>10</quantity>
      <price>4000</price>
     </item>
     <item>
    

    And even can be used to hide the column with the help of State

    <?if@column:/items/@type="PUBLIC"?>
    

    MY QUESTION IS HOW TO DO THIS IN MY XML BELOW?

    Here's the part of my XML code that I use in the definition of the data to RTF.

    <group name="GH3" source="QH3">
    <element name="COLUMN_HEAD3" value="COLUMN_NAME" /> 
    </group>
    <group name="GH4" source="QH4">
    <element name="COLUMN_HEAD4" value="COLUMN_NAME" /> 
    </group>
    

    I'm out like that.

    <LIST_GH3>
    <GH3>
    <COLUMN_HEAD3>REBILL_TO_OTHER_BUSINESS_UNIT</COLUMN_HEAD3>
    </GH3>
    </LIST_GH3>
    <LIST_GH4>
    <GH4>
    <COLUMN_HEAD4>XYZ</COLUMN_HEAD4>
    </GH4>
    </LIST_GH4>
    

    In order to use the logic according to the oracle document I want output like this.

    <LIST_GH3 type="PUBLIC">
    <GH3>
    <COLUMN_HEAD3>REBILL_TO_OTHER_BUSINESS_UNIT</COLUMN_HEAD3>
    </GH3>
    </LIST_GH3>
    <LIST_GH4 type="PRIVATE">
    <GH4>
    <COLUMN_HEAD4>BLANK</COLUMN_HEAD4>
    </GH4>
    </LIST_GH4>
    

    Should what changes I make in my XML to get the result of the execution as above? Help, please. Where should I make changes in the XML above? Name of the Group? Name of the element?

    I intend to use it under condition in RTF model to hide the column, but do not know how to set the column as PRIVATE/PUBLIC type in the XML output that is used to populate the data in the RTF while running.

    <?if@column:/BTSPIEXP/LIST_GH3/@type=”PUBLIC”?>COLUMN_HEAD3<?end if?>
    

    Kind regards

    Patricia K.

    Hello

    Problem has been resolved. I used the value of the item to determine whether to show it.

    Kind regards

    Patricia K.

  • We create synonyms on synonyms.

    Hi guru,.

    We create synonyms on synonyms in oracle...

    Please advice!

    Thanks in advance...

    First of all, did you create a public synonym or private synonym in t2? A public synonym is available to all users. A private synonym is, by definition, private. You cannot grant access to a synonym private in the scheme of t2 to t3.

    If you want to use private synonyms, you need private synonyms in t2 and t3 that refer to the object in t1 (and the t2 and t3 must have access to the table t1). If you want to use public synonyms, you would create a public synonym that would be available to both t2 and t3 (both should still have access to the table t1).

    Justin

  • Create a trigger to check if the synonym already exists in the db

    Hello
    How can I create a trigger to check if the synonym already exists in the db and if exists then do not create a synonym.

    my work: (it's like a schematic I developed)

    Select * from all_synonyms;
    declare
    number of s_exists;
    Start
    -checks if the synonym
    Select 1 in s_exists to all_synonyms;
    -a mistake gets stimulus if it's not
    exception when no_data_found then
    -The DOF should be done inside
    run immediately ' create or replace synonym;
    end;
    /

    any help is really appreciated...

    Thank you

    Published by: Vinay Mummadi on 29 March 2013 12:51

    There are a few rules of trade more that you need to consider.

    Do not forget that there are synonyms both PUBLIC and PRIVATE.

    Just because there is a synonym of a given name does NOT mean it's the only one who tries to create a given user. If a user tries to create a synonym private, you need see if the OWNER and the NAME, the two match.

    What is a user issuing a CREATE or REPLACE for their own private synonym? Is this OK or who need help also?

  • Remote procedures created on private Database links

    How to grant access to the role on the private synonym created in a schema of the remote procedure with private database links.

    We converted the public database links to the private sector. Please suggest me how to access the remote procedure and
    Grant access to the role.

    Thank you very much in advance.


    Its Urgent

    Its Urgent

    Why is it urgent for me to post the solution to your problem?

    acquired through ROLE privileges are NOT applicable within the named PL/SQL procedures.

    GRANT is the only way to gain privileges or ROLE

  • Synonym does public get used by the database engine in the schema of the owner?

    I have database public synonym 'P' and "S.P" table (in the "S" pattern).
    If my article references select array/object 'P' (without prefix-schema for the table), then there is no reference to the table ("S.P') or that it references a synonym ("P")?
    I understand that if my select query is executed in the session/connection made with schema/user "S", then the database engine does not at all synonymous, it will immediately table 'S.P. Is this right?
    Can you just confirm my understanding, maybe I'm wrong.

    (Oracle 10g, Windows OS)

    Fix. There is a certain order regarding name resolution.

    If I remember correctly then it searches first for the current schema objects (tables, views, procedures, etc.), then for private synonyms, then public synonyms.

    I get a bit more complex if you have a schema that is also the name of a package for example.

    For more information, see: http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/general008.htm

    Published by: Sven w. December 1, 2010 11:09

  • Oracle best practices Discussion advantages/disadvantages of the use of synonyms

    Share your experience, given the advantages/disadvantages development database of Enterprise Applications using public and private synonyms.

    My recommendation to the developers on my team is to avoid using Public synonyms in their code and instead fully qualify the object of database by the owner of the schema.

    Benefits: When you delete a schema, you do not drop the public synonyms they created. So if you use synonymous, make it private and not public.

    Please, share your experience!

    From my experience, synonymous public are the number 1 name collisions cause. So they stop completely the possibility of the consolidation of databases and Instance and potentially end up costing huge customer money in useless Oracle licenses.

    A much better way to the level of development would be to use ALTER SESSION SET CURRENT_SCHEMA when possible and minimizes the use of any synonyms. When synonyms are necessary, they should be synonymous private and should be handled by the application.

    IMO :-)

    Published by: Hans Forbrich, November 4, 2009 12:59

Maybe you are looking for