View defination privilege on Procedures by all the users

Hello,
I was looking for some query where i can view the defination or select the procedures of any schema
for example we have procedures owned by ML schema, other users such as fft, fft_read etc wants to view the defination of the procedures or select privileges on the procedures owned by ML Schema.
is there anything like grant select any procedure owned by any schema can view the procedures by all other schema's in the database.
Thanks

You can not grant select on a procedure;
SQL> grant select on tsb.example_defaults to test01;
grant select on tsb.example_defaults to test01
ERROR at line 1:
ORA-02225: only EXECUTE and DEBUG privileges are valid for procedures
However, you can grant debug on the objects and then you will be able to see the definitions from ALL_SOURCE. Additionally they will still not be able to excute the code.
SQL> select object_name from all_objects where object_type='PROCEDURE' and owner='TSB';
OBJECT_NAME
NEW_EXAMPLE
EXAMPLE_DEFAULTS
SQL> connect test01/password
Connected.
SQL>  select object_name from all_objects where object_type='PROCEDURE' and owner='TSB';
no rows selected
SQL> connect tsb
Enter password:
Connected.
SQL> select 'GRANT DEBUG ON TSB.'||OBJECT_NAME||' TO TEST01;'  from all_objects where object_type='PROCEDURE' and owner='TSB';
*'GRANTDEBUGONTSB.'||OBJECT_NAME||'TOTEST01;'*
GRANT DEBUG ON TSB.NEW_EXAMPLE TO TEST01;
GRANT DEBUG ON TSB.EXAMPLE_DEFAULTS TO TEST01;
SQL> GRANT DEBUG ON TSB.NEW_EXAMPLE TO TEST01;
Grant succeeded.
SQL> GRANT DEBUG ON TSB.EXAMPLE_DEFAULTS TO TEST01;
Grant succeeded.
SQL> CONNECT test01/test01
Connected.
SQL>  select text from all_source where owner='TSB' order by name, line;
TEXT
procedure example_defaults
*(n_1 in number :=5,*
n_2 in number :=6,
n_3 in number :=7)
as
begin
dbms_output.put_line(n_1||n_2||n_3);
end;
procedure new_example
*(n_1 in number :=8,*
n_2 in number :=10)
as begin
dbms_output.put_line(n_1+n_2);
end;
*14 rows selected.*
SQL> set serveroutput on
SQL> exec tsb.example_defaults(1,2,3);
BEGIN tsb.example_defaults(1,2,3); END;
ERROR at line 1:
ORA-06550: line 1, column 11:
PLS-00904: insufficient privilege to access object TSB.EXAMPLE_DEFAULTS
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Hope this helps.
Regards
Tim

Similar Messages

  • View defination privileges on Procedures for any user

    Hello,
    I was looking for some query where i can view the defination or select the procedures of any schema
    for example we have procedures owned by ML schema, other users such as fft, fft_read etc wants to view the defination of the procedures or select privileges on the procedures owned by ML Schema.
    is there anything like grant select any procedure owned by any schema can view the procedures by all other schema's in the database.
    Thanks

    Thanks for your response.
    These are the procedures owned by other schema not by FFT and FFT read.
    and i need only procedures not other objects.Connect to the schema who owns the Procedures and Issue,
    Grant debug on owner.object_name(Procedure) to FFT,FFT_READ;
    Or
    Just issue
    Grant debug connect session to FFT,FFT_READ
    Hope this helps.
    -Anantha

  • Assigning View permission to all the users that have been selected in contact selector - SP 2010, InfoPath 2010

    I have a SharePoint InfoPath 2010 browser form with item level security. Only submitter
    and approvers has access to the form.  This form contains a people picker that is populated with the names of attendees
    for the meeting they attended (which
    I am able to store in Field2 below). I want to allow attendees to be able to view (grant view permission) the InfoPath form. Field 2 has the users in form of domain\user1;domain\user2; etc. Following the below step, I am getting error when I ADD or REPLACE
    permission on current item. How do I go about assigning view permission to all the users that have been selected in contact selector?
    Jitu

    Hi ,
    i understand that the text box and the people picker hold multiple user names and you want to grant user permission based on the user in the text box.
    I have a test based on your description,the results are: When there are multiple users in the text box, the workflow will throw an error'Error Occurred'.It is the same with the people picker column.
    You need to limit the peopel picker to only allow to select one user,in this way the text box will only hold one user.Then you can use the people picker or the text box to grant user permission.
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • How to view all the users existing in a Client

    Hi
    Can any one help me, How to view all the users existing in a Client (Other than SM04 and AL08).
    I want to view not only the active users, but all existing users.
    Thanks in Advance
    Chandra

    Hi,
    Check table devaccess. to get all developers list
    Reward points if helpful.
    Regards,
    Mukul
    Edited by: Mukul Sharma on Jun 2, 2008 12:10 PM

  • Publishing a list with specifics views anf filters for all the users to see it.

    Hi i was working on the item level permissions of a list which are accessed by all users.
    I have applied the item level permissions for specific users having specific records to work with.
    Now, there are situations when we need to show all the users all the data but in read only mode.
    How do i work on the report so that the user can actually only see the data.
    The Admin will pick the list with a specific view and apply filters and then expose it for other end users to view.
    How do i achive that?

    Hello,
    How did you set item level permission? I mean,  list "advanced settings" OR manually edit the items permission by breaking the permission.
    If you have broken the permission and user doesn't have permission on  items then there is no way to show item to users. You must provide at least read access to view the item.
    In you case, you can give contributor right to everyone on all items (by inherit parent permission) then go to list settings page-->advanced settings-->then set item level permission as shown in pic:
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Capture all the Users who viewed the BSP Applications ???

    Hello All,
           I need to create a BSP Application which shows all the Users, who have executed different BSP Applications and the Number of Times each user has executed these BSP's.
    Is this Possible ?
    If yes, can anyone tell me how to go forward  ????
    Regards,
    Deepu.K
    Message was edited by:
            deepu k

    Hello Eddy,
          I have gone thru ur Blog.
    But in this I guess I need from this part -->
    C. Generating Own Stats in BSP
    C.1. Logging It
    If all of the aforementioned tools don’t cover what you’re looking for, or there are technical/other reasons not
    to choose them, then there is only one thing left to do. Write your own stuff. It really isn’t that difficult to do
    and, if you are confident enough, you can make something that suits your needs 100%. Or as a host in a
    Flemish regional TV DIY show always says: “What you do yourself is usually done better.” Let us see what
    you need to do in order to achieve this.
    First of all you need data on the browser. This can be done via JavaScript and the navigator object:
    appCodeName
    The code name of browser (i.e.: Mozilla)
    appName
    The name of the browser (i.e.: Microsoft Internet Explorer)
    appVersion
    Version information of the browser (ie: 4.75 [en] (Win98; U)
    userAgent
    String passed by browser as user-agent header. (ie: Mozilla/4.0
    (compatible; MSIE 5.5; Windows 98; Hotbar 3.0))
    Platform
    The platform of the client's computer. JavaScript 1.2 property. (ie:
    Win32)
    You probably need some extra information like IP number. This can be done via the
    request->get_header_field method.
    As such you don’t need to retrieve this info every time if you have a single entry point like a login page. Just
    put it in a server side cookie. Each new page will read this cookie and save this info together with the page
    name, user id, eventual parameters, etc. into the log. Now I talked earlier about the visitor concept. This is
    also an ideal place to implement this. If you are only interested in returning visitors with a full day time interval,
    you can for example determine whether that user has already used that application. If so, you just increment a
    counter. If not, you have to create a new line. This method will also reduce the size of your table.
    C.2 Showing It
    The only thing you need to do is to analyze and visualize stuff. The analyzing stuff is completely up to you.
    The following screen shot is an example where the total number of visitors within a given time frame is shown.
    It also shows the number of unique visitors in that same time frame compared to the potential number of
    visitors. You might find this of interest if you want to know how many (internal) users actually use your intranet
    application. You can couple the user info to the department info and then you can figure out whether
    department X or Y is actually using the application.
    But I didnot get the actual idea of implementing this in my BSP.
    Can you give an explanation for the above ?
    Regards,
    Deepu.K

  • Mail step should be sent to all the users in multiple condition

    hi experts,
                      I have a requirement on invoice posting.Say if invoice amount is 1000 then person A can post the invoice.
    if >= 1000 person B can post the invoice.
    If >=2000 person C can post the invoice.
                                                                      what i have did is, created a multiple condition and then based on the inv amount assigned 3 methods for invoice posting.My problem is if a person posts an invoice amount of 1000.A mail has to be sent to Person B and C informing that an amount of 1000 is posted with user id.Same for person B, ie mail should be sent to person A and C informing regarding invoice posting.Now inside the multiple condition i cannot assign mail step.Coz based on the condition it will go to a particular user for invoice posting but where as mail should be sent to all the users.So how can i achieve this??.

    Hi Priyanka,
    I am getting 1 thing why you need need multiple conditions. No need to create any multiple conditions.
    1. Create a rule using transaction PFAC. (you can use the example as Rule: 0000168).
        a. Create an function module with table parameters as ACTOR_TAB (type SWHACTOR) and AC_CONTAINER (Type
            SWCONT). You can aswell copy the FM used in 168 rule and change it. check the logic mentioned below.
        b. In PFAC transaction, go to container tab and create 2 container elements.  For amount and Mail_indicator (type should be
            same as that of the amount field in your workflow) .
    2. Use this Rule in your workflow to send mail.
    Logic:
    ""Lokale Schnittstelle:
    *"       TABLES
    *"              ACTOR_TAB STRUCTURE  SWHACTOR
    *"              AC_CONTAINER STRUCTURE  SWCONT
    *"       EXCEPTIONS
    *"              NOBODY_FOUND
      INCLUDE <CNTAIN>.
      DATA BEGIN OF ORG_OBJECT OCCURS 0.
              INCLUDE STRUCTURE SWHACTOR.
      DATA END OF ORG_OBJECT.
      DATA: BEGIN OF NEW_AC_CONTAINER OCCURS 3.
              INCLUDE STRUCTURE SWCONT.
      DATA: END OF NEW_AC_CONTAINER.
      DATA: V_AMOUNT TYPE <AMOUNT FIELD>.
      DATA: V_MAIL_INDICATOR TYPE <FLAG>.
      REFRESH: actor_tab.
    Get the org-object under consideration. AMOUNT is the container name defined in your PFTC transaction
      SWC_GET_ELEMENT AC_CONTAINER 'AMOUNT' 'V_AMOUNT'.
    Get the org-object-type and the org-object id.
      SWC_GET_ELEMENT AC_CONTAINER 'MAIL_INDICATOR' V_MAIL_INDICATOR .
    Pass the org-object, the org-object-type and the org-object-id
    to a new container.
    The org object get a new name: ORG_AGENT.
      SWC_SET_ELEMENT NEW_AC_CONTAINER 'AMOUNT' 'V_AMOUNT'.
      SWC_SET_ELEMENT NEW_AC_CONTAINER 'MAIL_INDICATOR' V_MAIL_INDICATOR .
    check for V_AMOUNT and V_MAIL_INDICATOR.
    if the v_amount = 1000 .'
      if  v_mail_indicator = ' '.
        actor_tab-OTYPE = 'US'  .
        actor_tab-OBJID = 'SAPUSER1'.
        append actor_tab
      else.
        actor_tab-OTYPE = 'US'  . 
        actor_tab-OBJID = 'SAPUSER2'.
        append actor_tab
        actor_tab-OTYPE = 'US'  .
        actor_tab-OBJID = 'SAPUSER3'.
        append actor_tab
      endif.
    endif.
    Similarly write the logic for other conditions.
    This way you can use same for different purposes.
    If you pass the indicator that means you are sending mail to other approvers for information.
    Revert back if u need more help.
    Regards,
    Gautham

  • People Picker JS Control not fetching all the users...

    Hi,
    I am using Java Script people picker control. It fetching information for users but not all. I used following code block to get the control working. Why is not fetching all the users?? Where as OOTB people picker fetches same user. This does not make sense.
    My environment is SharePoint online.  
    // Run your custom code when the DOM is ready.
    $(document).ready(function () {
    // Specify the unique ID of the DOM element where the
    // picker will render.
    initializePeoplePicker('peoplePickerDiv');
    // Render and initialize the client-side People Picker.
    function initializePeoplePicker(peoplePickerElementId) {
    // Create a schema to store picker properties, and set the properties.
    var schema = {};
    schema['PrincipalAccountType'] = 'User,DL,SecGroup,SPGroup';
    schema['SearchPrincipalSource'] = 15;
    schema['ResolvePrincipalSource'] = 15;
    schema['AllowMultipleValues'] = true;
    schema['MaximumEntitySuggestions'] = 50;
    schema['Width'] = '280px';
    // Render and initialize the picker.
    // Pass the ID of the DOM element that contains the picker, an array of initial
    // PickerEntity objects to set the picker value, and a schema that defines
    // picker properties.
    this.SPClientPeoplePicker_InitStandaloneControlWrapper(peoplePickerElementId, null, schema);
    Here is the link from Microsoft explaining it.
     How to: Use the client-side People Picker control in SharePoint-hosted apps: https://msdn.microsoft.com/en-us/library/office/jj713593.aspx
    Appreciate any help or workaround here.
    Thanks.

    Hi,
    In my case im usign customize people picker. it is better to use in delelopement since you have the control and customization.
    I have used select2 (https://select2.github.io/examples.html) drop down control and create a people picker
    You can use the same REST call to populate data.
    function initApproversPicker(success, fail) {
                var data = { results: [] };
                var executor = new SP.RequestExecutor($$.getAppWebUrlUrl());
                executor.executeAsync(
      url: $$.getAppWebUrlUrl() + "/_api/web/siteusers",
      method: "GET",
      contentType: "application/json;odata=verbose",
      headers: { "Accept": "application/json; odata=verbose" },
      success: function (dt) {
          $.each(JSON.parse(dt.body).d.results, function (i, ele) {
              data.results.push({ id: ele.Id, text: ele.Title });
          executor.executeAsync(
               url: $$.getAppWebUrlUrl() + "/_api/web/sitegroups",
               method: "GET",
               contentType: "application/json;odata=verbose",
               headers: { "Accept": "application/json; odata=verbose" },
               success: function (dt) {
                   $.each(JSON.parse(dt.body).d.results, function (i, ele) {
                       data.results.push({ id: ele.Id, text: ele.Title });
                   $("#WFApprovers").select2({ data: data, multiple: true });
                   if (success) {
                       success();
               error: function (d, errorCode, errorMessage) {
                   if (fail) {
                       fail();
                   utils.log(errorMessage);
      error: function (d, errorCode, errorMessage) {
          utils.log(errorMessage);
    Melick Rajee http://melick-rajee.blogspot.com

  • How to write select query for all the user tables in database

    Can any one tell me how to select the columns from all the user tables in a database
    Here I had 3columns as input...
    1.phone no
    2.memberid
    3.sub no.
    I have to select call time,record,agn from all the tables in a database...all database tables have the same column names but some may have additional columns..
    Eg: select call time, record,agn from ah_t_table where phone no= 6186759765,memberid=j34563298
    Query has to execute not only for this table but for all user tables in the database..all tables will start with ah_t
    I am trying for this query since 30days...
    Help me please....any kind of help is appreciated.....

    Hi,
    user13113704 wrote:
    ... i need to include the symbol (') for the numbers(values) to get selected..
    eg: phone no= '6284056879'To include a single-quote in a string literal, use 2 or them in a row, as shown below.
    Starting in Oracle 10, you can also use Q-notation:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements003.htm#i42617
    ...and also can you tell me how to execute the output of this script. What front end are you using? If it's SQL*Plus, then you can SPOOL the query to a file, and then execute that file, like this:
    -- Suppress SQL*Plus features that interfere with raw output
    SET     FEEDBACK     OFF
    SET     PAGESIZE     0
    -- Run preliminary query to generate main query
    SPOOL     c:\my_sql_dir\all_ah_t.sql
    SELECT       'select call time, record, agn from '
    ||       owner
    ||       '.'
    ||       table_name
    ||       ' where phone_no = ''6186759765'' and memberid = j34563298'
    ||       CASE
               WHEN ROW_NUMBER () OVER ( ORDER BY  owner          DESC
                              ,        table_name      DESC
                              ) = 1
               THEN  ';'
               ELSE  ' UNION ALL'
           END     AS txt
    FROM       all_tables
    WHERE       SUBSTR (table_name, 1, 4)     = 'AH_T'
    ORDER BY  owner
    ,       table_name
    SPOOL     OFF
    -- Restore SQL*Plus features that interfere with raw output (if desired)
    SET     FEEDBACK     ON
    SET     PAGESIZE     50
    -- Run main query:
    @c:\my_sql_dir\all_ah_t.sql
    so that i form a temporary view for this script as a table(or store the result in a temp table) and my problem will be solved..Sorry, I don't understand. What is a "temporary view"?

  • All the users can buy for all the purchasing groups?

    Hello,
    I have created the organizational structure as follows:
    (root level 1) Company O  50000758
        (root level 2) Plant    O  50000759
        (root level 2) Purchasing organization   O  50000760
              (root level 3) Purchasing group1        O  50000761
              (root level 3) Purchasing group2        O  50000762
              (root level 3) Purchasing group3        O  50000763
    The Plant and the Purchasing organization bellows to the Company
    The Purchasing group bellows to the Purchasing organization
    (level A) Position DATA-ENTRY1
    (level B) Central person (employee) DATA-ENTRY1
    (level C) User DATA-ENTRY1
    (level A) Position DATA-ENTRY2
    (level B) Central person (employee) DATA-ENTRY2
    (level C) User DATA-ENTRY2
    All the users can buy for all the purchasing groups
    At what level I have to assign the Positions (levelA)?
    Cheers,
    Marta

    Hello Subram,
    Thank you very much for your help.
    To shop on behalf, I have to fill the attribute REQUESTER at (level A) Position level.
    What I have to put in that attribute? The (root level 2) Purchasing organization O 50000760?
    I have a error when I put 50000760? ...."Object type XX not defined"
    Do you know how to help me?
    Cheers,
    Marta

  • Can we list all the users or groups with there rights on the universe\s

    Can we list all the users or groups with there rights on the universe\s using query builder.
    Can we do the same by using auditor reports.
    PLZ  help

    Thanks ,
    It can be acihived by using secuirty viewer.
    Thanks again

  • For multiple users on a computer, will Firefox Sync synchronize all the users on a computer or only the one logged on?

    For multiple users on a computer, will Firefox Sync synchronize all the users on a computer or only the one logged on? For instance my spouse and I will share a laptop and I want to sync my Firefox when I log on there also but do not want to sync her data.

    Curt
    how do you know if your using the
    Central cache all distributed cache ?
    and are they both stored in the same place ?

  • How can i get all the users from weblogic server?

    how can i get all the users from weblogic server?
    i have configurated a LDAP server using iPlanet and
    in weblogic server console i see those users from LDAP
    server. but how can i get all the users in my program
    from weblogic server instead of LDAP server?
    BTW,how to configure a RDBMSAuthenticator and what should i do
    in Oracle? which tables should i create? and how are their architectures?
    Thanks
    Daniel

    BTW, i use weblogic platform 8.1
    "Daniel" <[email protected]> дÈëÓʼþ
    news:[email protected]..
    how can i get all the users from weblogic server?
    i have configurated a LDAP server using iPlanet and
    in weblogic server console i see those users from LDAP
    server. but how can i get all the users in my program
    from weblogic server instead of LDAP server?
    BTW,how to configure a RDBMSAuthenticator and what should i do
    in Oracle? which tables should i create? and how are their architectures?
    Thanks
    Daniel

  • How to set up same timezone in BI Publisher for all the USERS?

    Hi Experts,
    My OBIEE version is 11.1.1.6.6  and any user can go into the My Account and then preferences  and set the timezone.
    But as an admin, i see they are too many users and wanted to setup common timezone for all of them.
    How do i setup common timezone in BI Publisher for all the users?
    Thanks
    Ashish

    Check
    Time Zone Specification from http://docs.oracle.com/cd/E12844_01/doc/bip.1013/e12187/T421739T481157.htm#4535403
    just in case https://blogs.oracle.com/xmlpublisher/entry/how_to_keep_your_dates_from_go

  • Mapping and Monitoring all the User and the Field exits

    Hello Dears,
    Are possible, with the Solution Manager to map and monitor all the user and the field exists existing in my ECC6 Productivity Environment?
    Anyone has some documentation?
    Regards to all.
    FS.

    Hello Gurus,
    Someone has any information about this question?
    Regards to all.
    FS.

Maybe you are looking for

  • How do I get firefox to let me access my email and favorite web sites?

    Firefox freezes up every other time I log into my gmail account. I also can't see my home page (wall) on facebook. There several games I an unable to keep access to as well, one of which is on facebook. I have tried reloading firefox 3 times. After t

  • Transaction S_PL0_86000030

    hi everyone, i am using tcode S_PL0_86000030 and sometimes i am encountering an error dump. this is a standard transaction and would just like to know your ideas why this is sometimes throws a dumped error. The error was because of fetch statement in

  • How to view object privileges of a user in Oracle10g?

    I try to view the object privileges of a user through the table user_object_privs but it didn't work. I didn't get the correct name of the table or there were some problem with my Oracle. Please help me. Thanks a lot.

  • Mouse cannot open file with double click

    Hi all, Presently using latest iMac. my files or folders on the desktop does not open with 2 left clicks. But it does if from the dock. However It will open only when I right click and mouse over to 'open' from the pull down menu. What setting did i

  • Trouble seeing videos on iMessage on iphone 5

    I try to open a video sent to me by my sister from her blackberry but I can't seem to play it. I believe it should play being a mp4 file . What Cavan be the problem