Can not see the package body in SQL Developer version 3.1

Hello

Have walked the boards and google for that matter for some time now. I think I found the problem, but would like to if there is a work around.

Problem:
I'm unable to view packages, procs, VIEWS DOF, etc. of other users. When one of my colleagues use Toad, with the EXACT same connection ID and the parameter, they are indeed able to see all the source code...

What I found:
Looking around, apparently Toad and SQL Dev work in different ways. Toad a use apparently DBA_SOURCE and DBA_OBJECTS to generate everything.
SQL Dev using package META_DATA to retrieve everything. In addition, in order to use the package meta_data, I need the catalog of grant role, or something like that.


Is it possible to set up the SQL Developer to use the same method as the toad to get the code? It is a fact that I WILL NOT receive the catalogue by the DBA permission... I can write the
Select the text from DBA_SOURCE where OWNER = 'OWNER' and NAME = 'OBJECT NAME';

But I would rather just be able to use the nodes in the tree and click on the objects to generate all this. Anyone know of any setting for this?

Hello

No doubt Developer SQL wants to be competitive with the Toad, but in terms of raising red flags on the inconsistencies in the basic features, any difference from SQL * Plus would be more surprising than Toad.

DBA_SOURCE and DBA_OBJECTS are synonymous publicly available in any standard Oracle installation, but you also get to PICK ANY DICTIONARY to get the maximum benefit from them. Which will display the code in the schema of another user without having a privilege explicit (such as EXECUTE) on a function/procedure/package.

If you already have privileges (SELECT ANY DICTIONARY, or EXECUTE or DEBUG on specific executable objects), and the Code tab is empty, you will need to provide a test case, according to Vadim.

With respect to cases where the SQL Developer uses DBMS_METADATA, my understanding is that the API relies on the SELECT_CATALOG_ROLE privilege, if a user has or otherwise have a granted privilege explicitly on an object. Developers like to use this API in the extent possible instead to write a script that could break or need maintenance to deal with future versions of the Oracle database.

I have no idea how works the Toad, and probably I should not speculate, but here's a scenario that might explain the case you mention without that user of connection with one of the above privileges. Let's say that the client software of Toad calls a PL/SQL package that selects from DBA_SOURCE and is installed in a pattern that has the privilege to CHOOSE ANY DICTIONARY. All users of Toad are granted EXECUTE on this package and therefore inherit SELECT ANY DICTIONARY in the execution of the package. It will work, but at the cost of complicating the installation of Toad. Also, he is not giving them a precise control of metadata security administrator.

Kind regards
Gary
SQL development team

Tags: Database

Similar Questions

  • Database trigger can not see the package global variable after assign in my form

    Hello

    I faced the problem with the trigger and the package variable global using the form designer

    first of all, I get the local IP address machine using WEBUTIL in triggering of the PREFORM and initialize my global package variable by ' Client_Info_Pkg.Set_IP_Address (WEBUTIL_CLIENTINFO.» GET_IP_ADDRESS); ", then I tried to make the DML operation in my form and at the same time I trigger database also uses the package global variable of" Client_Info_Pkg.Gand_IP_Address; "to read in the package, and then insert it into the audit table


    The question this database trigger may not feel the initialization "Client_Info_Pkg.Set_IP_Address (WEBUTIL_CLIENTINFO. GET_IP_ADDRESS)' I did in triggering of the PREFORM and I used to wonder if oracle create new session to run this trigger so he can't see my boot or what?!. .

    the package

    CREATE OR REPLACE PACKAGE Client_Info_Pkg

    Global_IP_Address VARCHAR2 (100);

    FUNCTION Get_IP_Address RETURN VARCHAR2;

    PROCEDURE Set_IP_Address (p_Machine_Name IN VARCHAR2);

    END Client_Info_Pkg;

    /

    CREATE OR REPLACE PACKAGE BODY Client_Info_Pkg

    FUNCTION Get_IP_Address RETURN VARCHAR2 IS

    BEGIN

    RETURN Global_IP_Address;

    END;

    PROCEDURE Set_IP_Address (p_IP_Address IN VARCHAR2) IS

    BEGIN

    Global_IP_Address: = p_IP_Address;

    END;

    END Client_Info_Pk

    relaxation

    --------------

    CREATE OR REPLACE TRIGGER RUNERP.FO_DOC_TYPES_L_T

    BEFORE INSERT OR UPDATE OR DELETE ON FO_DOC_TYPES

    REFERRING AGAIN AS NINE OLD AND OLD

    FOR EACH LINE

    BEGIN

    IF THE INSERTION

    RUN IMMEDIATELY ' INSERT INTO FO_DOC_TYPES_LOG

    VALUES ("I",: DOC_TYPE_ID,: DOC_TYPE_VALUE,: DOC_TYPE_NAME,: Vip_Address' HELP: NEW.) DOC_TYPE_ID,: NEW. DOC_TYPE_VALUE,: NEW. DOC_TYPE_NAME, Client_Info_Pkg.Get_IP_Address;

    END IF;

    IF THE UPDATE CAN

    RUN IMMEDIATELY ' INSERT INTO FO_DOC_TYPES_LOG

    VALUES ("U",: DOC_TYPE_ID,: DOC_TYPE_VALUE,: DOC_TYPE_NAME,: Vip_Address) "USING: NEW." DOC_TYPE_ID,: NEW. DOC_TYPE_VALUE,: NEW. DOC_TYPE_NAME, Client_Info_Pkg.Get_IP_Address;

    END IF;

    IF REMOVE THEN

    RUN IMMEDIATELY ' INSERT INTO FO_DOC_TYPES_LOG

    VALUES ("D",: DOC_TYPE_ID,: DOC_TYPE_VALUE,: DOC_TYPE_NAME,: Vip_Address) "USING: NEW." DOC_TYPE_ID,: NEW. DOC_TYPE_VALUE,: NEW. DOC_TYPE_NAME, Client_Info_Pkg.Get_IP_Address;

    END IF;

    END;

    /

    Thanks in advance

    I solved my problem by using the CONTEXT object, Michael thank you for your interest.

  • Hi, just sign for a package monthly, received a message from the Bank that I already paid with my credit card for the first month, but I received no email / can not see the plan when I connect.

    Hi, just sign for cloud of plan monthly photoshop, has received a message from the Bank that I already paid with my credit card for the first month, but I received no email / can not see the plan when I open a session.

    There is no serial numbers for products Creative cloud,

    Sign out of Creative Cloud App and sign in the back once

    http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html

    If the trial warning still appears, then make sure your hosts file once entries

    Log, activation, or connection errors. CS5.5 and later versions

  • in Firefox can not see the window of downloads, specialist of the jump in the trunk to be saw - the speed downloaded a lot and now can not see how to fix it?

    in Firefox can not see the downloads window, specialist of the jump in the trunk to see - the download speed
    Downloaded a lot and now can not see how to fix it?

    The download Panel has been moved to the upper right corner with a circle arrow down. You can also visit on: downloads of your browser to visit all your downloads.

  • Can not see the images of the patent (i.e., D/359 691) on research of patent USPTO.gov, it tells me I need a plugin (7.7.1.0 Quicktime) that I've already updated.

    Can not see the images of the patent (that is, D/359 691) on USPTO.gov patent search, it tells me I need a plugin (Quicktime) that I've already updated.
    In the 'quick search' I give terms & it compiles a list. I have then cross to every doc and look to see the doc and associated drawings. I don't know what to say at this stage.

    Thank you.

    QuickTime cannot handle images in TIFF format.

    You can watch AlternaTIFF - http://www.alternatiff.com/

  • Hi I can not see the App health or my pulse in the looks on my watch even if she is selected to appear on eyes on my phone?

    Hi I can not see the App health or my pulse in the looks on my watch even if she is selected to appear on eyes on my phone?

    Hello

    Slide your finger left or right on the screen.

    Also go to ibooks on the user guide iphone download Apple Watch is free.

    See you soon

    Brian

  • Import photos no problem can not see the photos on iPhone

    I upgraded my MacBook Pro to El Capitan.  Since moving from iPhoto to Photos (even before I updated the operating system) when I plug my iPhone 5 to import pictures in the selected library I do not see the photos appear in the import window so that I can select for imports.  I literally had to email it to myself, and then import it into the e-mail.  I work with different libraries within pictures, so I excluded it only love the library system.  Same result, can not see the photos.  Also, I have unplugged and replugged in and tried the other USB port to rule out hardware, while the Photos could force them to see the device as new, and that does not work either.  I tried something another user who had to open Image Capture to see if she could see all the pictures on my phone and it doesn't work, I found (theory was that opening would make Photos recognize as well).  However the Image Capture wouldn't add a USB scanner so I think it's not worthy of trust.  Photos only setting I have enabled is the automatic update to iCloud.  Otherwise, I don't know what another parameter to seek that could block it.

    When the phone is connected USB the phone reboot - many have found this will clear this problem

    LN

  • can not see the BTH003 on my Qosmio laptop bluetooth headset

    can not see the BTH003 on my Qosmio laptop bluetooth headset

    Hi koko,.

    Welcome to the Microsoft Community Forums.

    According to the description, it seems that you are facing problems that Bluetooth headphones are not detected. I'll be happy to help you with this problem.

    (1) what is the exact error message / complete you receive?

    (2) what operating system is installed on your computer?

    (3) what is the brand and model of the Bluetooth headset?

    (4) have you made changes on the computer before this problem?

    I suggest you to follow the steps from the links and check if it helps.

    Add a Bluetooth device to your computer

    http://Windows.Microsoft.com/en-us/Windows7/add-a-Bluetooth-enabled-device-to-your-computer

    Change settings for a Bluetooth compatible device

    http://Windows.Microsoft.com/en-us/Windows7/change-settings-for-a-Bluetooth-enabled-device

    I hope it helps. If you have any questions about Windows in the future, please let us know. We will be happy to help you.

  • WRT1200ac and WRT1900ac OPENVPN can connect but can not see the network

    I can connect but can not see the computers on the network. I've tried everything. Any help would be great. Thank you

    Firewalls are disabled on remote computers?

  • Microsoft Visual C ++ Runtime Error - can not see the path of the file.

    When I get the runtime at startup error, I don't see the destination of the file. It is very annoying that I can not see the program that gives me the problem.

    All it says, this is:

    Runtime error!

    Program: C:\Program F...

    How can I extend the above so I can see the path of the actual file?

    Also going to go for a 2 for 1 here...

    Immediately after the closure of the runtime error box, I get the message that search settings stopped working.  I close who and everything is fine until I reboot (by making the error happen) but I'd rather not have the problem in the first place.  I run Windows 7 Ultimate.

    Error information:

    Signature of the problem:
    Problem event name: APPCRASH
    Application name: SearchSettings.exe
    Application version: 4.5.0.2
    Application timestamp: 4e04ab86
    Fault Module name: MSVCR90.dll
    Fault Module Version: 9.0.30729.4940
    Timestamp of Module error: 4ca2ef57
    Exception code: 40000015
    Exception offset: 0005beae
    OS version: 6.1.7601.2.1.0.256.1
    Locale ID: 1033
    Information additional 1:9956
    More information 2: 995611374799875ff43c42d4b1b84d70
    3 more information: 3d4b
    Additional information 4: 3d4b4db0455ea2295d172b959897673c

    Maybe just download a new MSVCR90.dll but I would like to hear what you have to say.

    Hello

    ·         Did you the latest changes on the computer?

    We must first identify to identify the program that is causing startup problems.

    Step 1:

    Check if the problem persists in safe mode.

    Start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    Restart the computer to return to normal mode.

    If the problem does not persist in safe mode, then it is possible that some third-party programs installed on the computer is causing the problem.

    Step 2:

     

     

    I suggest that you put the computer in a clean boot state and check.

    To help resolve the error and other messages, you can start Windows Vista or Windows 7 by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See section to learn more about how to clean boot.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    (a) click Start, type msconfig in the search box and press ENTER.

    (b) If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    (c) under the general tab, click the Normal startup option, and then click OK.

    (d) when you are prompted to restart the computer, click on restart.

  • BlackBerry smartphones can not see the maps on my "BOLD"?

    Hello

    I just theBold on Orange in the United Kingdom and I do not see the maps app anywhere.  I can see it listed as version 4.6.0 under the list of Applications but can not see the software somewhere?

    I'm mean't to enable it somehow?  Also can not get the GPS function works as it says "failed to update GPS location" when I click on refresh?

    Any help would be really welcome

    If your provider blocks the passage of the icon (like AT & T) to another theme (Options-> themes) and see if you can find it. You may also download. Check mobile.blackberry.com from your BB browser.

  • I get an error message of complete storage - please backup and remove your something online (can not see the full error message) when converting PDF reader to point rower inacrobat DC. Help, please

    I get an error message of complete storage - please backup and remove your something online (can not see the full error message) when converting PDF reader to point rower inacrobat DC. Help, please

    Hi debg25514049,

    You will not be able to export your PDF to PPT using the service Adobe export in PDF format.

    You'll need subscription to pack Adobe PDF or the Acrobat application to convert PDF to PPT.

    Kind regards
    Nicos

  • I tried several times also can not cancel the package Dreamweaver CC.

    I tried several times also can not cancel the package Dreamweaver CC.

    Can I try all thinking to cancel the service plan CC Dreamweaver?

    Contact customer service.

    Contact the customer service

  • When you try to crop an image in Lightroom develop I get a blue screen of overlay and can not see the image

    When you try to crop an image in Lightroom develop I get a blue screen of overlay and can not see the image. I uninstalled and reinstalled but same result. How can I get this reset to display the selected image and handles of the crop?

    Go to your Lightroom preferences, the performance tab and uncheck the box "use GPU processor."

  • Can not see the Spot Healing Brush Touch tab. Shows only the tab for the corrector.

    Can not see the Spot Healing Brush Touch tab. Shows only the tab for the corrector.

    Try right-clicking on the Healing Brush tool in the bar of the tool or SHIFT + J to switch tools...

Maybe you are looking for