Viewing Other Schema Objects in SqlDeveloper

I'm running SQL Developer 1.5.1.54.40 against 10g 10.1.0.5, and am unable to view package bodies in schemas other than my own. I know there has been some discussion on this, but I'm unsure of the status. Is there a workaround, or plan to provide this functionality in the near future?

Sue,
There is still a problem in 1.5.0 and 1.5.1 (on win XP going against a 10.2.0.3 database) in viewing the columns of a view that is owned by another user. This worked / still works in 1.2.1.
Regards,
Erick
Message was edited by:
ESlazinski

Similar Messages

  • Inconsistent logic for viewing others schemes objects in browser

    A while ago when we upgraded our db's to Oracle 10 we also replaced our famous green friend for Sql Developer with our entire development crew.
    Among a few other things, people were not all that happy, seeing that they lost the desired "check for access to dba views option". But as long as we could rely on a consistent view in the "other schema" in all possible views (via table, or directly in the navigator) we could defend this way of thinking for not being able to see everything.
    But unfortunately, in the latest version "1.5.1 5440", we still see inconsistent things...
    for example :
    via browser (other users schema)
    => Indexes are not visible in the indexes branch point, but they do show up on the indexes tab for the corresponding table.
    => For the same "other users scheme", Triggers do show up in the triggers branch point, but then when we check the trigger tab for the corresponding table, they are not shown
    It looks like waiting for yet another version is no option and we will be forced to retreat to the green commercial swamp on high demand of our developers...
    Ribbit :-(

    There are still a few glitches in the queries used for certain things - I cannot remember the problem you mention with indexes being posted before (although I get the same problem with indexes visible in all_indexes not appearing on other users index node), but the trigger tab problem has been discussed before (1.5PROD/EA3/EA2/EA1: Only table owners triggers show in Table's trigger tab
    theFurryOne

  • Access other schema object from connection

    Hi;
    from the dbconnection, how can I access other schema object?
    Thanks

    Hi,
    I don't know if I understand correctly but if you mean the scenario you connect to the database as SCOTT and you want to map table EMPLOYEES from HR schema, you can do it within wizard and in read only view object you
    use schema name as prefix like select * from HR.EMPLOYEES. If you mean something else please describe it more.
    regards,
    Branislav

  • Restricting SYS user to View other schema's Tables

    Hi All,
    Oracle DB Version - 10R2
    O/S - UNIX
    Could anyone share docs or steps to prevent SYS user to view other schema's tables;
    Thanks,
    Deepak

    Dear Deepak_DBA,
    If you revoke every privilege and role from the SYS user i presume the SYS will continue to select any table from the relevant schema. SYS is a special user and not like the others.
    For instance if you want to revoke the SYSDBA and the SYSOPER from the SYS user;
    SQL> revoke sysdba, sysoper from sys;
    revoke sysdba, sysoper from sys
    ERROR at line 1:
    ORA-01998: REVOKE failed: user SYS always has SYSOPER and SYSDBAI have never seen such documentation that describes how to revoke everything or at least the SELECT ANY TABLE privilege from the SYS user.
    Please see more about the SYS and the SYSTEM users;
    SYS and SYSTEM Users;
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10897/users_secure.htm#ADMQS12003
    Regards.
    Ogan

  • Not able to select the other schema objects mrtadata

    Hi,
    My function returns the matadata of a table (xml format) in the current schema but unable return output of another schema objects. I have the privileges of export full database, import full database and select_catalog_role also.
    It doesn't throw any error just throws empty xml.
    my code is...
    CREATE OR REPLACE FUNCTION TUNER.F_DBEG3(V_Schema VARCHAR2, V_Table VARCHAR2)
    RETURN XMLTYPE
    AS
    Handle NUMBER; --handle returned by OPEN
    V_First_Part XMLTYPE;
    V_Next_Part XMLTYPE;
    V_Output_Total XMLTYPE;
    V_Cnt NUMBER := 0;
    BEGIN
    DBMS_OUTPUT.PUT_LINE('START THE PROGM');
    Handle := DBMS_METADATA.OPEN('DATABASE_EXPORT');
    DBMS_OUTPUT.PUT_LINE('Open the handle');
    DBMS_METADATA.SET_COUNT(HANDLE, 1000);
    DBMS_METADATA.set_filter (Handle, 'INCLUDE_PATH_EXPR', '=''TABLE''');
    DBMS_METADATA.SET_FILTER(Handle,'NAME', V_Schema,'SCHEMA');
    DBMS_METADATA.SET_FILTER(Handle,'NAME', V_Table,'TABLE');
    DBMS_OUTPUT.PUT_LINE('Filter the required objects');
    LOOP
    DBMS_OUTPUT.PUT_LINE('Start the loop');
    DECLARE
    no_mvlog exception;
    pragma exception_init( no_mvlog, -31608 );
    BEGIN
    V_First_Part := DBMS_METADATA.FETCH_XML(Handle);
    EXCEPTION
    WHEN no_mvlog THEN
    EXIT;
    DBMS_OUTPUT.PUT_LINE ('No mv log');
    END;
    IF V_First_Part IS NOT NULL THEN
    DBMS_OUTPUT.PUT_LINE('First Count is '|| v_cnt);
    DBMS_OUTPUT.PUT_LINE('Into the process ');
    else
    DBMS_OUTPUT.PUT_LINE('Exit the loop ');
    exit;
    end if;
    IF V_Cnt = 0 THEN
    V_Output_Total := V_First_Part;
    DBMS_OUTPUT.PUT_LINE('track the metadata in xml form ');
    ELSE
    IF V_Cnt is not null and V_Cnt > 0 then
    SELECT EXTRACT(V_First_Part, '/ROWSET/ROW') INTO V_Next_Part FROM DUAL;
    SELECT APPENDCHILDXML(V_Output_Total,'/ROWSET',V_Next_Part) INTO V_Output_Total FROM DUAL;
    DBMS_OUTPUT.PUT_LINE('combining the child xml''s ');
    END IF;
    END IF;
    V_Cnt := V_Cnt +1;
    DBMS_OUTPUT.PUT_LINE(' Last Count is '|| v_cnt);
    END LOOP;
    DBMS_OUTPUT.PUT_LINE('converted into xml');
    return v_output_TOTAL;
    DBMS_METADATA.CLOSE(Handle);
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    RAISE_APPLICATION_ERROR (
    -20001,
    'Please check! ' || V_Table || ' not an object'
    WHEN OTHERS
    THEN
    DECLARE
    SQL_ERROR NUMBER := SQLCODE;
    SQL_ERRMESS VARCHAR2 (250) := SUBSTR (SQLERRM, 1, 200);
    BEGIN
    DBMS_OUTPUT.PUT_LINE (SQL_ERROR || 'Message : ' || sql_errmess);
    END;
    END;
    but when i use like below i got o/p.
    SELECT DBMS_METADATA.GET_XML('TABLE','ACT_RAP_T','EMACH') FROM DUAL;
    Please tell me where iam wrong.
    regards,
    Madhavi.

    Can you let me know is this problem for the components which are in containers only..
    Yes, as Charles said, the problem is for grouping/ungrouping in containers.  If you find otherwise, please let us know.
    <br>
    This problem you will be looking for next iteration, so is it going to be Service Pack or some Hot Fix..
    Is it possible for us to know the issues which will be looked for the next iteration so that we can know what are the issues current version has so that we have the good idea..
    Correct, it will be for Fix Pack 1 (size between a Service Pack and a Hot Fix).
    We don't have a list of issues.  I don't believe it's procedure to disseminate such information.  Usually we give the information on an individual issue basis.  For instance, this issue is slated for FP1.
    <br>
    Javier

  • Viewing Other Schema In SQL Developer

    Hi,
    I did a search in the Forum and none of the posts I have found has been able to solve my problem so I'm here with my hat in hand asking for some advice. I was recently given SQL Developer to replace what I had been using and, on my own, have been able to convert all of my previous queries for use in SQL Developer. However, the only Tables I see in the Left Window of SQL Developer are those Tables that I have personally created. I checked with our DBA and I do have SELECT permission granted on all Tables in our company's Oracle DB, but I can't see them in SQL Developer so I can't use Query Builder or the Drag and Drop option, etc.
    Thanks for reading this and for your help.
    If you need any further details, let me know and we can work out a contact method other than the forum.

    You need to ask the DBA what the user / schema name is of the tables you have access to. What you see when you expand other users are all the users in the database you are currently connected to. Expanding the tables node for these users will only display the tables when you have select access. Another way to see the different schemas that have objects that you can see is by adding a filter to Other Users. Right click on other users and select the filter. Now in the dialog change the initial drop list to object_count and change the next two fields so that you create an expression that shows row_count > 0. Now only those users with objects in that you can see will display in the list.
    In the query builder you have to change to the user for each set of tables you want to use.
    Sue

  • How to view other schema's job status ?

    Hi,
    My application is in schema A. User B has just enough rights to do specific tasks in A. One of them is to call a function that creates a job in schema A.
    The view user_jobs in A shows the job.
    How can I make this job visible to user B without granting B access to dba_jobs?
    I tried granting select on a.user_jobs to B and hoped that the job would show up in B's all_jobs view but that did not work.
    Any ideas?
    Rene

    Create a customised version of USER_JOBS and grant select on the view to B. See catjobq.sql - note how USER_JOBS is based on DBA_JOBS anyway.
    I usually have some sort of admin user (which may or may not be the application owner) which owns all these types of customisations.
    PS: ALL_JOBS is actually a synonym for USER_JOBS.

  • Unable to see other schemas in JDeveloper Connections Navigator

    When I add a database to my Connections Navigator, only one Schema is visible under the DB. I am unable to view other schemas to which the user has access.
    How do I view the other schemas?

    Yes.. Thats missing in 10.1.3.0.4(bug 5027141)
    Check forum: Cant view objects from another schemas

  • Can't see DDL of views from other schemas in Developer?

    Hi,
    I've seen elements of this problem in other threads but this problem of course has it's own twist.
    I can see other schema's objects EXCEPT VIEW DDL.
    I have given a user every role and priv that I can and they still can't see the view ddl of another schema. They can see procedures, functions etc. just not the view. I've found that if I use the user that created the users I can see the DDL of all subordinate users. Users created under that schema can not see each others views no matter what rights are given. Interestingly enough sometimes when I look to display view DDL it will flash the DDL briefly before blanking the screen. very frustrating. All the Toad fanboys are crowing about how they couldn't possibly use a tool that doesn't allow them to see other view source.
    I have also looked for settings in the preferences but could find none.
    Is this a bug? It seems like one to me.
    Any help is greatly appreciated.
    Thanks
    Mark

    We have a bug logged for this.
    Sue

  • Error using views from other schema

    Hello,
    i recently had problems using the execute immediate statement in Object Types.
    The SQL statement tried to select from some views which were owned by an other schema.
    Although we had public synonyms on these views and the same dynamic sql could be used out of a stored procedure the usage in the object type raised a "table or view does not exist exception".
    using the same views in the same schema where the object types belonged to, was ok.
    example:
    schema: scott
    view: my_view
    schema: dave
    sql: "select from scott.my.view ....."
    works well from a stored procedure, but nor if used in an object type
    create the view in schema "dave" an then
    sql: "select from my.view ....."
    works fine.
    So is someone aware of this behaviour?
    Is this a bug or a feature?
    regards
    peter

    Hello Geoff,
    here is the sample code.
    If the table my_table belongs to the same
    schema runningthe code the code runs with
    no exception.
    But if the table belongs to an other schema
    (lets say SCOTT),
    only having global synonyms and the rigths to
    select on it, the code will raise an exception "table or view does not exist"
    even if we use SCOTT.my_table in the
    select.
    create type query_o as object(
    dummy integer,
    static function get_query return
    varchar2;
    create or replace type body query_o as
    static function get_query return varchar2
    as
    query varchar2(4000) :=
    'select ' &#0124; &#0124;
    ' f.amount_month ' &#0124; &#0124;
    'into :r1 ' &#0124; &#0124;
    'from ' &#0124; &#0124;
    ' my_table f ' &#0124; &#0124;
    'where id=:p1 ';
    begin
    return query;
    end;
    end;
    create type consumer_o as object(
    amount_month number,
    member function find(p_id in integer)
    return consumer_o
    create type body consumer_o as
    member function find(p_id in integer)
    return consumer_o
    as
    l_amount number;
    begin
    execute immediate query_o.get_query()
    using out l_amount,
    in p_id;
    return consumer_o( l_amount );
    end;
    end;
    kind regards
    peetr

  • Restricted view access to other schemas 'showstopper' problem

    I'm tasked with the potential roll-out of SQL Developer across a large number of users (doing away with equivalent software in the process).
    The feedback has been very positive. However, the only real issue stopping the replacement from progressing is that we cannot view certain objects in other schemas (package bodies, triggers etc) ... i.e. we need to connect as the schema owner to view these. This is essential, otherwise everyone would need to know the application schemas password.
    Our current software has the same issue unless the following option in the Options/Startup window is activated: 'Check for access to DBA views. Otherwise, SYS.ALL_xx views will be used when listing objects'. Thereafter the issue is resolved.
    Is there any workaround (e.g. like the above) in SQL Developer?
    Many Thanks.

    Sue, thanks for your reply although I already have access to Package code via tools like SQL*Plus.
    I guess the problem being discussed here is similar to the following thread (for which you have already logged a bug). See:
    How do I view package bodies in another schema ?
    Re: How do I view package bodies in another schema ?
    On a similar issue, I note that there is a possibility that a fix will indeed be implemented in release 1.1. See:
    Package body not visible
    Re: Package body not visible
    Please advise what the current status is relating to a fix?
    Many thanks for any clarification.

  • Viewing package/proc/funtion source in other schemas

    There still seems to be some problems with viewing PL/SQL source in other schemas. In TOAD, I can grant SELECT ANY DICTIONARY to a developer and they can see all source in other schemas. In SQL Developer, they see nothing. If I grant EXECUTE ANY PROCEDURE, they can see the package specs, but no body (Note: we do not want developers having this priv).
    Again, our developers need to be able to view the PL/SQL source in other schemas, without having execute privs on said objects, which is very easy in TOAD. I see this issue in many threads, but SQL Developer seems to have not progressed in this area (unless I'm doing something wrong).

    Granting select on dba_source has no affect. Sure, they can get the code from the table, but it would be nice to browse to it in the GUI. Even with "execute any procedure", the package bodies are not visible.
    I've seen similar tools that have this same issue, but somehow the developers of TOAD got it right, a long time ago even. This is the only issue that keeps our development team from jumping on board with this tool.

  • I want the user to view all other schema

    hi all
    i have a project with 5 modules(GL, AP, AR, OM, PO) and each module has its own schema (tables,pkgs,views,.................)
    and i want to create a new user(test) that don't have any objects , i create it only to connect on forms by it
    and i want that user to access all other users objects
    NOTE:- i create a public synonym(inside each schema) to each table in each schema to access it by this synonym when i connect by user (test)
    but when i try to select from these synonyms it give me : insufficient privileges
    what can i do?
    thanks

    There are few ways of doing this
    1) Create a LOGON trigger for the user.
    In the logon trigger you will change the user to say GL, the use will be no need to qualify the objects with GL.object_name by default all references to OBJECT_NAME will be replaced by gl.object_name. the connected user wills till have his own priveleges which mean he still needs to have grants.Read more on LOGONG triggers
    2) Create Private Synonyms and and give grants to Individual users.
    3) My Preferred Method: Create a Role with all the required privelieges. Grant Role to users. This will save time everytime you create a new user.(This menthoed can be clubbed with the first method of creating logon trigger)
    Please do not create public synonyms.You WILL run into issues sooner or later when you start writing you own customized code.
    Regards,
    Bhushan

  • Is there a way to access object from other schema?

    1. Is there a way to access object from other schema
    Without using synonym/public synonym without prefixing schema owner?
    2. If you do not see any object in all_objects by same name owned by connected user or public, can there still be objects hidden from this view? for instance synonyms created by SYSTEM
    TIA for help

    Well, you missed something somewhere. If there is no
    ALTER SESSION SET CURRENT_SCHEMA=whoeverthen there must be either public synonym for the object as this shows:
    SQL> CREATE USER a identified by a;
    User created.
    SQL> GRANT CREATE SESSION to a;
    Grant succeeded.
    SQL> CREATE USER b identified by b;
    User created.
    SQL> GRANT CREATE SESSION, CREATE PROCEDURE, CREATE PUBLIC SYNONYM to b;
    Grant succeeded.
    SQL> connect b/b
    Connected.
    SQL> CREATE PACKAGE test AS
      2     PROCEDURE testit;
      3  END;
      4  /
    Package created.
    SQL> CREATE PACKAGE BODY test AS
      2  PROCEDURE testit IS
      3  BEGIN
      4     NULL;
      5  END;
      6  END;
      7  /
    Package body created.
    SQL> connect a/a
    Connected.
    SQL> desc b.test
    ERROR:
    ORA-04043: object b.test does not exist
    SQL> connect b/b
    Connected.
    SQL> GRANT EXECUTE ON test TO a;
    Grant succeeded.
    SQL> connect a/a
    Connected.
    SQL> desc b.test;
    PROCEDURE TESTIT
    SQL> desc test;
    ERROR:
    ORA-04043: object test does not exist
    SQL> connect b/b
    Connected.
    SQL> CREATE PUBLIC SYNONYM test FOR TEST;
    Synonym created.
    SQL> connect a/a
    Connected.
    SQL> desc test
    PROCEDURE TESTITAnother possibility without public synonyms is that crv had granted the other user privileges on some object, and the other user creates a private synonym for that. When crv granted privileges on a different object with the same name, the private synonym became valid again. Something like:
    SQL> connect /
    Connected.
    SQL> drop public synonym test;
    Synonym dropped.
    SQL> GRANT CREATE SYNONYM TO a;
    Grant succeeded.
    SQL> connect a/a
    Connected.
    SQL> desc test;
    ERROR:
    ORA-04043: object test does not exist
    SQL> desc b.test
    PROCEDURE TESTIT
    SQL> CREATE SYNONYM test FOR b.test;
    Synonym created.
    SQL> desc test;
    PROCEDURE TESTIT
    SQL> connect b/b
    Connected.
    SQL> REVOKE EXECUTE ON test FROM a;
    Revoke succeeded.
    SQL> connect a/a
    Connected.
    SQL> desc test;
    ERROR:
    ORA-04043: object "B"."TEST" does not exist
    SQL> desc b.test
    ERROR:
    ORA-04043: object b.test does not exist
    SQL> connect b/b
    Connected.
    SQL> DROP PACKAGE test;
    Package dropped.
    SQL> CREATE FUNCTION test (p_num IN NUMBER) RETURN NUMBER AS
      2  BEGIN
      3     RETURN p_num * 10;
      4  END;
      5  /
    Function created.
    SQL> GRANT EXECUTE ON test TO a;
    Grant succeeded.
    SQL> connect a/a
    Connected.
    SQL> desc test;
    FUNCTION test RETURNS NUMBER
    Argument Name                  Type                    In/Out Default?
    P_NUM                          NUMBER                  INSo, I would go looking for the synonyms.
    TTFN
    John

  • SQL Developer and Blocking View of Other Users' Objects

    I am using SQL Developer in a classroom environment. My student users can “see” Other Users objects. They cannot modify, but none the less can see the structure and data.
    I only want the users to be able to see their own objects. Is there a privilege that needs to be revoked? (In using SQL Plus command line, this was not a problem.)
    Thanks.
    -Karen

    Karen,
    From sysdba account (sys/system). Run following and verify for that particular user grant is revoked. May be exit from sql developer and log back in or refresh view.
    YOu can also potenially revoke all the privs from all non admin uses i.e.r even connect/resource roles and grant them back.
    revoke select any table from yourschemaname;
    revoke connect from schemaname;
    revoke create session from  schemaname;
    revoke resource from schemaname;
    Then just grant privs as need basis
    grant connect to schemanme;
    grant resource to schemaname;
    grant create session to schemaname;
    ..Regards
    Edited by: OrionNet on Jan 23, 2009 2:01 PM

Maybe you are looking for

  • Back button doesn't work in Flash Pro CS6 Simulator (ADL)

    Hi everyone. I'm testing Flash Pro CS6, and I've noticed the Back button is not detected in my Android app when testing in ADL (Control / Test movie / In ADL Mobile). When I try to select the option Device / Back (Ctrl+B) in ADL, it just doesn't do a

  • Reduce File Size - Other Options

    I have a very large PDF file (521 mb) with about 6,500 b/w pages that I am trying to get to much smaller (under 350 mb). I am using Acrobat  Pro v9.2 and I have tried most of the typical file size reduction methods (Reduce File Size and different set

  • Help - Print first page from different tray

    Hi, I print seveal booklets and with my old printer (1200) was able to print the first page from the second tray. That is to have the cover page in a different color and weight paper. How do I do this with collated printing with my new Officejet 8500

  • Regarding Seeburger Adapters

    Hi Everyone. First of all "Happy New Year to Everybody" I want to know what are all the Adapters available in Seeburger and usage of each Adapter. I am aware of some Adapters like AS2,BIC adapters. I need more Information of all the Adapters. Thanks

  • Reg:Distribution model is currently being processed

    Dear all, When  i am distributing my model view in BD64  i am getting following error. Error: Model view VCR3BW has not been updated Distribution model is currently being processed  Thanks, Sankar M