How do I view package bodies in another schema ?

For purposes of SOX and security/audit control, we log in under our network id's in our production environment. We have sourcecode compiled into Oracle seeded schemas ( APPS ) so that scheduled jobs are able to run with submitted from the Oracle Applications environment. We don't compile code into our personal network account areas.
I know how to GRANT EXECUTE privs so that we can execute a package in another schema, but what I want to do is to be able to view the sourcecode in another schema. Compile into APPS but be able to see the package body from my network id schema account.
I can't seem to find what the correct permission is anywhere. Granted I can look at DBA_SOURCE to get to it, but I want to use a tool like SQL Developer or TOAD to look at the code in a more presentable and easier to debug manner.
Any help ?

I did some more searching on the forum... seems its already a request... TOAD gives access to DBA_Views to resolve the issue... SQL Developer has not integrated that functionality yet, but forum entries seem to indicate that it is on the horizon.
Thanks for responding though.
~Barry

Similar Messages

  • View package body in another schema

    I have developers who want to view the code in the package body in another's schema.
    I know select text from all_source/ user_source works only for packages in your own schema.
    Granting system privelege 'create any procedure' allows the developer to view as well as update priveleges.
    As the owner of the objects what grants do I need to give to developers so that they can only view the code.

    You can grant select_catalog_role permissions to your developers. This will give your developers select access to all of the V$ views and DBA_% views. Then they can view the dba_source table to view other schema's package code..
    Regards,
    David

  • VIew of Package body in another schema in EA 3.0

    I would like the ability in SQL Developer to view the package body of another schema with the CREATE ANY PRIVILGE.
    For instance, in TOAD you can grant access to DBA_SOURCE or SELECT_CATALOG_ROLE and then be able to view another schema's package body.
    This is long overdue without having to log into that schema or granting CREATE ANY PRIVILEDGE to user.
    This one is really needed

    "CREATE ANY PRIVILEGE" is irrelevant to the ability of viewing the source owned by other users.
    Please provide exact script for creating a user, which is able to see the code, say in HR schema, via the query
    select * from all_source
    where owner = 'HR'
    and yet missing the nodes in the OtherUsers->Packages->PKG_A->PKG_A Body in the navigator.

  • How to refer global simple types in another schema?

    Hello All,
    Any help would be greatly appreciated. My problem is , I have a global.xsd schema which declare simple types such as
    <xsd:simpleType name="DecimalMin1Max14Places2Type">
    <xsd:restriction base="xsd:decimal">
    <xsd:totalDigits value="14"/>
    <xsd:fractionDigits value="2"/>
    </xsd:restriction>
    </xsd:simpleType>
    I am referring to this type in my another schema forms.xsd. It is used as an attribute to an element. for example an element in forms.xsd is
    <xsd:element name="BudgetFourthYearAmount" type="glob:DecimalMin1Max14Places2Type"/>
    where glob is the prefix associated with global.xsd
    I am sucessfully able to register global.xsd in xdb, but when i try to register forms.xsd, i get sql mapping error. Oracle is able to resolve all the global elements from global.xsd , but it cannot resolve the global simple types i declared.
    My question is how i can refer global simple types declared in one xsd and use them in another xsd?
    Thank you,
    Maninder

    Using an include statement in forms.xsd to import in the global.xsd
    <xs:include schemaLocation="Global.xsd"/>
    If Global.xsd was the shcema_url that you registered the first xsd to.
    Regards
    Coby

  • How to copy all vpd policies to another schema ?

    Hi all,
    I have two schema :
    app_test
    app_live
    app_test has 70 VPD policies implemented.
    How to copy those policies to be implemented also in app_live ?
    (to avoid runnng the script one by one again ?)
    Thank you,
    xtanto

    To another schema?
    You will need to run all the scripts again, in another schema.

  • How to work with tables located into another schema ?

    Hi
    I have created an application named OBSERVATOIRE and a schema named "OBSERVATOIRE" for it into my db. I created into this schema a few tables like "AGENT" for example.
    Now I am designing another application named TELEGESTION located in another schema named "SIVOA" and I need to display and to use tables located into the schema OBSERVATOIRE.
    I added the schema OBSERVATOIRE into my application TELEGESTION.
    In my new application TELEGESTION, when I try to create a report with a simple request like this
    select * from observatoire.agents
    I get this error :
    Query cannot be parsed, please check the syntax of your query. (ORA-00942: Table ou vue inexistante)
    What should I do in order to work with tables in another schema ?
    Thank you very much
    Christian

    Vajrad and Dan,
    Thank you very much for your suggestions.
    At this point I am wondering if It would be better for me to change the way I began work.
    These two applications will be used by the same users into an intranet (a private network of our company). I wonder if the better would be to import the tables and my application OBSERVATOIRE into the schema SIVOA and get rid of these problems of access.
    Historically, the schema SIVOA contains a lot of tables already used by a previous network.As i was beginner with APEX I created a schema "OBSERVATOIRE" to be "safe". But this schema contains a small amounbt of tables, i can easily tranfers them into the schema "SIVOA"
    But now as I see that that having two schemas is complexifying the developpement and also I am thinking to the login page, I do'nt want to force the user to login each times a switch from one application to the other, etc... I want some kind of "single sign on".
    Whad would be you advise ?
    Thank you for your time.
    Christian

  • [Solved] How to recover the package list from another installation?

    Hello,
    I supposed gparted could make a fine result by moving the partition, but it didn't.
    I was doing that on an USB installation, now fsck recover partially my partition, but mostly many files are gone. It seems that pacman databases are saved, then I would like to recover the list and try to reinstall all packages.
    I can't enter by chroot on that partition, bash fails.
    My attempt is to use pacman -r /mounted/partition packagelist, if I'll get the list, then it mostly possible to regain chroot access
    EDIT
    I got a flashback and I applied modifications in a temporary pacman.conf. In that configuration I modified the paths to all file used by pacman to reflect the other installation.
    Finally I could get the list, but I didn't go for an update, because the installation was too old. I'm doing a fresh install with the recovered package list.
    Last edited by TheSaint (2013-08-02 09:39:59)

    I'm entirely agreed with you.
    Some time I fail to remember such things. I don't regret much the loss, it was just a support installation for emergency cases. Home is safe in another partition
    However it is a good exercise to rescue the package list.

  • How to create table from one to another schema?

    Hi,
    There is two schema A and B. schema A want to create table on Schema. which privilege we need to provide? how to create?
    thanks in advance
    Thanks,

    user2017273 wrote:
    Hi,
    There is two schema A and B. schema A want to create table on Schema. which privilege we need to provide? how to create?
    thanks in advance
    Thanks,When you give CREATE ANY TABLE TO A then user A will create table on any schema.But you can create stored PROCEDURE on schema B for creating table and give GRANT EXECUTE <PROC NAME> to A.

  • Privileges needed to view procedures, triggers, package bodies

    What privileges are needed for a user to view procedures, triggers, package bodies in another schema? I don't want to grant privileges more powerful than needed like 'select ANY'.

    If you want to give somebody access to view only some of objects without giving read/execute access to them probably the best method is to build your own view and give select acces to this view.
    Example:
    create view special_definitions as
      select view_name obj_name, 'VIEW' obj_type text
        from dba_views
       where owner='OTHERSCHEMA'
           and view_name in ('VIEW1', 'VIEW2', ...)
    union all
      select trigger_name,'TRIGGER', trigger_body
        from dba_triggers
       where .....
    grant select on special_definitions to special_user;Bartek

  • How to view index details of another user

    I can't view index detail of another schema in sql developer release 5.
    I'm doing this steps :
    1) I'm connecting with user lopes
    2) Open folder of user mrt
    3) Open table folder
    4) select a table xpto. At this point is openeda a frame details of table xpto. In this frame several information are displayed, when I select Indexes nothing is showed, but this table has a lot of indexes.
    How should I make this indexes information visible ? I think this form is using user_indexes.
    Thanks in advance.
    Danilo

    Who owns the indexes?
    I have cases where I am logged on as a user who has access to a table owned by another user, but indexes created and owned by the connected user (so would obviously be able to see them) are not displayed on the indexes tab for the table.
    I get the same problem with triggers owned by the connected user and dependencies to objects owned by the connected user not displaying on the table tab for tables owned by a different user.
    Presumably, rather than excluding indexes, triggers or dependencies owned by the current user, the details are being restricted to objects owned by the table owner.

  • Unable to compile a package calling a package procedure in different schema

    Hello,
    I'm unable to compile a package referencing a package located in another schema. I get the message: PLS-00201: identifier 'pkg1' must be declared
    Facts:
    0. I'm running Oracle DB 10.2.0.4.0 Enterprise Edition
    1. There is one schema ('schema1') containing a package ('pkg1').
    2. This package 'pkg1' has a public synonym ('pkg1' as well).
    3. The EXECUTE grant is given to a role ('role1').
    4. There is another schema 'schema2', which is granted the role 'role1' (and set as default).
    5. This schema 'schema2' contains a package ('pkg2').
    6. This package 'pkg2' calls a procedure of 'pkg1'.
    7. When compiling 'pkg2', I get error message saying 'pkg1' does not exist.
    Of course, if I execute 'GRANT EXECUTE ON pkg1 TO PUBLIC' or 'GRANT EXECUTE ON pkg1 TO schema2', I can compile the package 'pkg2'. But I don't want this.
    And what's weird is that, connected as 'schema2', I can execute the statement 'execute pkg1.proc1' without any trouble. So I guess the role setup is okay.
    What would let me compile 'pkg2' properly?
    Regards,
    Arnaud

    user3347638 wrote:
    Hello,
    I'm unable to compile a package referencing a package located in another schema. I get the message: PLS-00201: identifier 'pkg1' must be declared
    Facts:
    0. I'm running Oracle DB 10.2.0.4.0 Enterprise Edition
    1. There is one schema ('schema1') containing a package ('pkg1').
    2. This package 'pkg1' has a public synonym ('pkg1' as well).
    3. The EXECUTE grant is given to a role ('role1').
    4. There is another schema 'schema2', which is granted the role 'role1' (and set as default).
    5. This schema 'schema2' contains a package ('pkg2').
    6. This package 'pkg2' calls a procedure of 'pkg1'.
    7. When compiling 'pkg2', I get error message saying 'pkg1' does not exist.
    Of course, if I execute 'GRANT EXECUTE ON pkg1 TO PUBLIC' or 'GRANT EXECUTE ON pkg1 TO schema2', I can compile the package 'pkg2'. But I don't want this.
    And what's weird is that, connected as 'schema2', I can execute the statement 'execute pkg1.proc1' without any trouble. So I guess the role setup is okay.
    What would let me compile 'pkg2' properly?
    Regards,
    Arnaudprivileges acquired via ROLE do NOT apply within named PL/SQL procedures.
    above is just a restriction built into PL/SQL.
    accept it & get on with reality

  • ORA-12008:ERR OCCCURS WHEN MATERIALIZED VIEW IS REFRESHED FROM OTHER SCHEMA

    Hi,
    ORA-12008: Error occcurs when materialized view is refreshed from another schema, Following the output of the trace file when error occured.
    /u01/app/oracle/admin/orcl92/bdump/orcl92_j000_23729.trc
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1
    System name: Linux
    Node name: newdbserver
    Release: 2.6.9-5.ELsmp
    Version: #1 SMP Wed Jan 5 19:30:39 EST 2005
    Machine: i686
    Instance name: orcl92
    Redo thread mounted by this instance: 1
    Oracle process number: 164
    Unix process pid: 23729, image: oracle@newdbserver (J000)
    *** SERVICE NAME:(SYS$USERS) 2008-05-23 10:30:51.848
    *** SESSION ID:(462.21166) 2008-05-23 10:30:51.848
    *** 2008-05-23 10:30:51.848
    ORA-12012: error on auto execute of job 766
    ORA-12008: error in materialized view refresh path
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2255
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2461
    ORA-06512: at "SYS.DBMS_IREFRESH", line 683
    ORA-06512: at "SYS.DBMS_REFRESH", line 195
    ORA-06512: at line 1
    Regards,
    Abhishek

    Hi Damorgan,
    As i said, when refresh materialized view from another schema, mentioned error occurs.
    I have also granted accees explicitely still following error occurs.
    ORA-12008: error in materialized view refresh path
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2255
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2461
    ORA-06512: at "SYS.DBMS_IREFRESH", line 683
    ORA-06512: at "SYS.DBMS_REFRESH", line 195
    ORA-06512: at line 1
    Regards,
    Abhishek
    Message was edited by:
    AbhishekRathod(user559364)

  • How do I view a video that was sent to me through imessage to my iphone 5S?It was sent by another iphone user.I clicked the link and entered my phone number and the password provided but it still won't open.What should I do?

    How do I view a video that was sent to me through imessage to my iphone 5S?It was sent by another iphone user.I clicked the link and entered my phone number and the password provided but it still won't open.What should I do?

    Is this your issue >  http://support.apple.com/kb/HT5818
    If so...
    The Apple ID and Password that was Originally used to Activate the iDevice is required
    If you do not have that information you will not be able to use the Device.

  • How to Get view attribute of another VO

    HI OAF Guys,
    I have a query to get view attribute of another VO. I will explain the case:
    I created a separated region(consists of Advanced Table-in-Advanced Table) and i added it to the already existing page. I want to populate the master table content by passing the custacctid and contactid to the VO(Master table). Here contact id, we can get using party id. This party id view attribute is in another VO(This VO is already existed in the page). How to access that VO and view Attribute.
    If some one knows this, respond asap as it is urgent requirement.
    Kind&Regards
    U.Palakondaiah

    Hi tapash,
    thx for ur soon reply. I will explain a little bit more. In the existing page, there is a VO(IMCCustAccountRolesVO) having IMCAcctContactUpdateCO and
    IMCCustAccountContactAM controller and Application modules respectively.
    Now I added a region to this page(consists Advanced table-in-advanced table). This region has ContactPrivilegesCO and ContactPrivilegesAM conroller and Application modules respectively. I created a VO(EqxContPrvlVO) to populate the values in master table. For this one I have to pass contactid. we can get this contactid by using partyid which is view attribute of IMCCustAccountRolesVO.
    Now can I get this view attribute(PartyId) in ContactPrivilegesAM?
    I think you undetstand the situation. If you have any doubts let me know..
    Thanks & Regards
    U.Palakondaiah

  • How to use layout of one view(some part) in another view

    Hi All,
                 I need how to use a layout of one view(some part) in another view.if anybody knows, help me.
    Ex : I took two views.but some part of layout in first view is also needed in second view.Is it possible.
    Thank You,
    Anupama.

    Hi,
    Whichever common ui elements you want to put in both views. Keep them in one view.
    Now create two views which You want to display.( i.e you have to create three views in that two only will be used for display purpose ) In that both views add viewcontainer ui element and embedd that view which has common UIs. And Then add rest uncommon UIs in both views.
    I hope it helps.
    Regards,
    Rohit

Maybe you are looking for

  • Idoc Mapping

    Hello everybody, I have the next scenario Oracle DB-> XI-> Idoc PAYEXT,  now the problem is that I get the error in the message mapping that Mapping not sufficiently defined, my strcutures look fine, so is there a way to know all the required fields

  • My i-pod will not work because my operating system

    my operating system is Windows XP, and until my other computer is reinstalled I can do nothing with Win XP!!!

  • How do I transfer a pdf file from a mac to Z1?

    I'd like to transfer some pdf files from my macbook to my Z1 to read while commuting, but Bridge only seems to allow me to click music, videos and picture files. When I get to my pdf folder, the files are unclickable so I can't synch them. Is there a

  • Setup help - low signal level in Logic

    I'm getting low input signal levels when recording in Logic (-17db to about -10db, on average), and am hoping someone here can point out an obvious oversight on my part. I'm recording mic'd guitars and vocals (one track at a time), with the mic(s)run

  • Thumbnails/Previews not showing on tiffs viewed on Mac

    I have a client who is asking me why the tiffs I'm supplying him with don't have thumbnails/previews. He's working an a Mac and has had to resave the files in order to create previews. I haven't been able to answer his question. Any takers? TIA. PSho