SQL developer 3.1 in schema browser doesn't show package body

Hi,
When i search a package with schema browser, i can't see the package body of other owner, the menu "edit body" is disabled.
My user as select any dictionary et select_catalog_role
When i connect with a DBA's user, i can see all.
I'am on windows with sqldev 3.1
Thanks

Hi erifet,
This one seems to go back and forth. It was originally fixed in Schema Browser for 3.0. The "Edit Body" was greyed out, but an "Open Body" icon in the code editor toolbar for Package Spec was enabled. Here is the forum reference:
30EA1 package bodies missing in schema browser still not fixed
In 3.1, both "Edit Body" and "Open Body" are greyed out, and that applies both to Schema Browser and Connection Navigator for Other Users packages, so at least 3.1 is consistent. The difference between the Browser and the Navigator is Schema Browser has no option to display a Package Body type (must go through Package Spec type), while the Connection Navigator displays a Package Body node type in the tree beneath the Spec node. In the forum thread AM references, Vadim explains what 3.1 does: it uses the ALL_OBJECTS view, which apparently does not include package bodies. Off-hand I'm not sure why it does not include them, and the following link doesn't shed any light:
http://docs.oracle.com/cd/B19306_01/server.102/b14237/statviews_1001.htm
Adding the execute privilege on the package does not help either. At least you have the workaround of using the Connection navigator to view the package body metadata (code) of Other Users if you have been granted either SELECT_CATALOG_ROLE or SELECT ANY DICTIONARY. As for returning to the 3.0 Schema Browser behavior, perhaps Vadim will notice your post and have some explanation as to why or why not that may be possible.
Regards,
Gary
SQL Developer Team

Similar Messages

  • SQL Developer 3.2 : Unable to browse java source in the db

    Hi:
    I noticed a regression in SQL Developer 3.2 in respect to 3.1 (on windows).
    as of SQL Developer 3.1.7.7.42 I was able to browse java sources stored and compiled in the database.
    The tabs "Details", "Source", "Policies" were correctly populated. If I had to complain about something, the names of the classes were "shortened" so that I saw "c932e55e_PrintDebug" instead of "my/company/application/package/PrintDebug".
    I have tested the 3.2 release.
    Now, the class names are complete, but the tabs are empty. I am also unable to retrieve the source of a class (as it was possible in 3.1)
    Does this happen to other people?
    Thanks,
    Andrea

    Thanks for the feedback, it is good to know I am not alone :-)
    I did some further tests.
    I enabled logging in sqldeveloper.conf, and found this query I believe to be the culprit:
    Prepared:with src_name as (select source n from Dba_java_classes
    where lower(name)=lower(:NAME) and rownum = 1)
    select text||decode(substr(text,length(text)),chr(10),null,chr(13),null,chr(10)) source
    from Dba_source
    where owner= :OWNER
    and type = 'JAVA SOURCE'
    and (name in (select n from src_name) or name in (select owner || '/' || n from src_name)
    or lower(name) = lower(:NAME))
    order by line
    Previously :NAME was populated with the java short name, while now it has the java long name.
    In fact, if I compile a class where short name and long name are the same, it works.
    In DBA_JAVA_CLASSES name is the long name, while in DBA_SOURCE it is the short name (at least this is what I observed).
    So I believe that this is truly a regression.
    Anyone (from dev) can confirm this?
    Thanks,
    Andrea

  • SQL Developer 1.5.4.59.40 doesn't display any data or only nulls

    Hi All,
    I've got a problem with SQL Developer after I downloaded the latest version *1.5.4.59.40*. SQLDev doesn't display any data or displays only few lines of nulls within information tabs: Column, DATA, Constraints, Grants, Stats, triggers and so on....
    Please see below screen shoots for details:
    !http://www.emarcel.com/%7Eemarcelc/emarcel/SQLDEV1.gif!
    And exception scratch:
    !http://www.emarcel.com/%7Eemarcelc/emarcel/exception1.gif!
    Note:
    When I'm using an old version 1.5.0.51 everything works fine. But you know I would like to upgrade to the latest build.
    Many Thanks for any help.
    Cheers!!

    The problem is solved by upgrading an oracle client_1 to 11g version,
    Apparently these are the files which have caused the problem in old version of the oracle client (10.2.0..):
    SQL Developer is using client's libs by default when it's installed for ex.:
    jdbc.driver.home     /D:/oracle/product/10.2.0/client_1/
    jdbc.library     /D:/oracle/product/10.2.0/client_1/jdbc/lib/ojdbc5.jar
    AND:
    orai18n.library     /D:/oracle/product/10.2.0/client_1/jlib/orai18n.jar
    above libs are not compatible with the latest version of SQLDeveloper.
    That's why the problem occurs.
    Jim,
    thanks for pointing me in the right direction. Cheers mate!!

  • SQL Developer generating an XML Schema for a table

    I hope I've put this question in to correct area of the forum!
    My question is how do you generate an XML schema of a table layout in SQL Developer?
    You can generate an XML schema for the DATA, but I just want to generate one with all the column definitions etc.
    The annoying thing is I managed to do this the other day, but after attempting again for several hours I've forgotten how to do it :-(
    Thanks and regards, Adrian

    A more specific answer, using SqlDeveloper itself, can be found at
    Re: Generating an XML schema for a TABLE

  • DB2 to Oracle conversion using SQL Developer Migration Wizard - different schemas

    I am performing a conversion between DB2  to Oracle 11 XE, using the SQL Developer Migration Wizard. Specifically I am trying to migrate the DB2User schema over to Oracle.
    Using the migration wizard, when I pick the Oracle target connection to be the same schema ( DB2User schema ) the migration is successful and all data is converted.
    However if I pick a different Oracle target connection ( say OracleUser ) , I run into issues.
    Firstly , the table schema is not created. When I check the project output directory, the .out file has the following errors:
       CREATE USER DB2User IDENTIFIED BY DB2User DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP
            SQL Error: ORA-01031: insufficient privileges
            01031. 00000 -  "insufficient privileges"
        connect DB2User/DB2User
        Error report:
        Connection Failed
        Commit
        Connection created by CONNECT script command disconnected
    I worked around this by manually executing the .sql in the project output directory using the OracleUser id  in the new DB.
    Then I continue with the migration wizard and perform the Move Data step.
    Now - the message appears as succuessful, however, when I review the Migrationlog.xml file, i see errors as follows:
    <level>SEVERE</level>
      <class>oracle.dbtools.migration.workbench.core.logging.MigrationLogUtil</class>
      <message>Failed to disable constraints: Data Move</message>
      <key>DataMove.DISABLE_CONSTRAINTS_FAILED</key>
      <catalog>&lt;null&gt;</catalog>
      <param>Data Move</param>
      <param>oracle.dbtools.migration.workbench.core.logging.LogInfo@753f827a</param>
      <exception>
        <message>java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist</message>
      <level>WARNING</level>
      <class>oracle.dbtools.migration.datamove.online.TriggerHandler</class>
      <message>ORA-01031: insufficient privileges
    </message>
    I think what is happening is that the wizard is attempting to perform the 'move data' process using the DB2User id.
    How do I tell the wizard that the target schema is different than my source schema.
    My requirement is that I need to be able to migrate the DB2User schema to different schemas in the same Oracle database
    ( since we will have multiple test environments under the same database ) .
    Thanks in advance .
    K.

    Perhaps the following from the SQL Developer documentation is helpful for you:
    Command-Line Interface for Migration
    As an alternative to using the SQL Developer graphical interface for migration operations, you can use the migration batch file (Windows) or shell script (Linux) on the operating system command line. These files are located in the sqldeveloper\sqldeveloper\bin folder or sqldeveloper/sqldeveloper/bin directory under the location where you installed SQL Developer.
    migration.bat or migration.sh accepts these commands: capture, convert, datamove, delcaptured, delconn, delconverted, driver, generate, guide, help, idmap, info, init, lscaptured, lsconn, lsconverted, mkconn, qm, runsql, and scan. For information about the syntax and options, start by running migration without any parameters at the system command prompt. For example:
    C:\Program Files\sqldeveloper\sqldeveloper\bin>migration
    You can use the -help option for information about one or more actions. For the most detailed information, including some examples, use the -help=guide option. For example:
    C:\Program Files\sqldeveloper\sqldeveloper\bin>migration -help=guide
    Regards
    Wolfgang

  • SQL Developer takes 7 minutes to bring back list of packages

    The database is 11g R2 on 64bit Linux.
    Instance has multiple schemas
    SQLDev is v3.1.07 (download with JDK)
    SQL Dev connects without a problem.
    Click the "+" next to Functions, in a few seconds I get the list of functions.
    Click the "+" next to Procedures, in a few seconds I get the list of procedures.
    Click the "+" next to Packages, between 5 and 10 MINUTES later the list will display.
    The exact objects I choose to explore, or the order does not seem to matter.
    After 2 or 3 objects, the next load takes an unacceptable length of time.
    What is going on here?

    You can try to find out if the underlying query, that the sql developer issues against the data dictionary is slow.
    To do so first find the query, then issue the same query inside sql developer and check out the execution time and explain plan from there.
    To find the query you can connect with a DBA account. Use "Tools/Sessions .. " to monitor the sessions. Find the appropriate connection (check for the correct db user, and the module should be SQL Developer). Then start the slow action in the different session. Switch back to the session monitor and refresh it. Check out the SQL that is shown on "Active SQL" Tab.
    If this query is slow, then it is not a problem opf the sql developer but of your database installation. Maybe the dictionary cache is to small or the database did not apply statistics to the system tables. In such a case report the problem to your DBA.
    it could also be a problem of the connection. Do you use an oracle client to open the connection or something like a thin jdbc driver? try with the oracle client if you don't have that already.

  • I am using Firefox 7.When I tried to open a player the install instructions from the website says, download the widevine plugin from the automatic download pop-up,but my Firefox browser doesn't show me the automatic download pop up to download the plugin.

    The automatic download pop up for downloading the plugin was not showing in my firefox 7 browser.

    Hi and thanks to not leaving the firefox user alone.
    Cor-el your answer is right as the madperson is and I already knew all these
    answer and I said that before I don’t use any antivirus and I always turn off my firewall from the moment I installed my Windows.
    I even turn off any automatic update for any of my software and I never let any unknown plugins or any thing like that be install without informing me. And if you know some things like Offline Storage and cookies must be to much more than usual and you have to clear them and delete them and I know so much more
    And if you want to know it fixed now. But I don’t know how?
    For understanding my problem read and research about Ixplorer.exe virus it is the same problem about the speed but the different is it doesn’t show any process in task manager like Ixplorer.exe virus
    Bt I have done some things but still I don’t know that’s why it is fixed or not
    First: I searched my system and removed any files have been crated on my system from two days ago since the problem happened.
    And then I used to go about the article in this page and did like this:
    http://answers.yahoo.com/question/index?qid=20080910101846AAazxN5
    but still I don’t know any thing about the problem.
    I can do so many things to fix but I am just curios if that is a virus why it just cut the speed when I am using the browser.
    Please if any one found the reason send me your information I like to know it will improve my knowledge however my problem is solved fro now.

  • Oracle SQL Developer for OSX not able to compile/execute/handle packages?

    Hi,
    Have been stuck with this for quite some mins now,
    When I execute this simple -valid- create package statement in Oracle SQL Developer:
    http://www.pastebin.ca/757859
    It shows it's not compiled and has errors, when I check the Packages part in Oracle SQL Developer I see this:
    http://www.pastebin.ca/757860
    The ; after end has been removed by the application. In fact this means I can't do anything with packages in Oracle SQL Developer for OSX?
    Is this a known bug?
    Or am I doing something wrong?
    Any resolving response to this matter would be really appreciated.

    Yeah, that bug is in there since stoneage, and is really a no-brainer to fix. Until they don't, we'd be losing time recompiling.
    FWIW, everything works fine using the procedure editor for creating, editing and compiling.
    Regards,
    K.

  • Browser doesn't show up

    Hi,
    I'm using iPhoto version '09 (8.1.2) and for months now I've had an issue with it that's an annoyance.  I can open the application fine and it seems to work no problem.  However, when I use other applications and then come back to iPhoto sometime later, it doesn't always shower the browser window with all the photos.  The top bar will be there but I can't find any way to reveal the picture browser without quitting the application and re-starting it, which is a tad annoying.  When I quit the program, it briefly shows the browser with the pictures as if it was just taking a long time to load, but it doesn't matter how long I wait for the window to show up - it'll only pop up as the application shuts down!  If anyone knows why it does this and can offer any advice on how to stop it from doing that, I'd appreciate it.
    Thanks!

    Delete the following two files from your Home/Library/Preferences folder:
    com.apple.iApps.plist
    com.apple.iApps.lockfile
    Reboot and try accessing the library from those apps again.
    NOTE: In Lion and Mountain Lion the Home/Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and press the Return key
    OT

  • CAF Service browser doesn't show any available services

    Hi All,
      I have developed a small application using CE 7.1 SP03.I want to test my Business Object services and application services using CAF ServiceBrowser. I have build and deployed the application and got a status that deployement had happend sucessfully. But the moment I start ServiceBrowser, I can see that Application Services list is empty. Could you please tell me why it is so?Am I missing any configuration or something like that?
    Regards,
    Prajesh

    Hi,
    Application service methodes can be devided in to two types:
    1) Methodes with return values.These will be shown in the available services part.
    2) Methodes without  return values.These will be shown in the Available actions for result service filed.
    If your method is not shown in these two areas, I think you have not generated and bulit your application properly.Once again generate, build and deploy it.
    Go through this help doc.Te[Testing services with Service Browser |http://help.sap.com/saphelp_nwce10/helpdata/en/4a/f707411c5ad349e10000000a1550b0/content.htm]
    Sampath

  • Safari browser doesn't show phonenumbers on my webpage. Why?

    If I look at our webpage on Safari the phonnumbers is not there, not in iPad and not in my iPhone but if I change to another browser for ex Mercury , it works!
    Is there anything I can do to make it work with Safari ?

    I can verify that your phone numbers are not visible in Safari. The strange thing is that they are there and can be selected and copied and pasted, etc. Note that when you touch one of your phone numbers Safari gives you a choice of Send Message, Add to Contacts, or Copy.
    The iCab mobile bowser does not have this problem. iCab does not treat the phone number specially when iit is touched.
    All I can suggest is to report this bug to Apple. Http://www.apple.com/feedback
    You might try the developer forums to get some advice on how to work around this problem.

  • Labview web browser doesn't show display

    Hi! l am having problem displaying the web page in my labview front panel. Anyone got solution to it?
    Attachments:
    frontpanel.PNG ‏20 KB
    blockdiagram.PNG ‏7 KB

    Are you trying to launch IE in a separate window or display it on LabVIEW front panel? Your code seems to do the former. Just make sure that the reference wired to the Invoke Node is correct. You can download and try this example for reference.
    For the later case, you can use the ready-made ActiveX Container for Web Browser in the .NET & Active X pallette, as seen below.
    Then on the block diagram simply use the property or invoke node you need. Here is an example to simply navigate to a URL:
    There is also a downloadable example for this method. Complete description of the properties and methods you can use is available in MSDN.
    Finally, ensure that you have internet connection
    Regards,
    A. Yodha
    NI Singapore

  • Photo browser doesn't show new photos loaded in iPhoto today

    I tried to find some photos in photo browser to attach to an email. The photos were in an iPhoto event I added today, but they didn't appear in that event via the photo browser in iMail.
    For background, I used a new SDHD card in my Nikon D80 and found my card reader didn't support the HD function of the card (I have loaded photos from this camera using the same card reader with an SD - not HD though- card for a year with no problem). Instead of using the card reader, I loaded the photos using a USB cable from my camera to my iMac, just as I had always done previously with the card reader. That is the only difference in loading today's photos from any other photos loaded previously
    So, I don't know why the photo browser didn't see the new photos and don't understand how loading them directly from the camera versus from a card reader should make a difference. Any ideas about the failure to find the photos via the photo browser even though they are there in the event in iPhoto. Please help!

    Unfortunately, it did not. I had tried that several times, and today when I rebooted I thought it might be resolved. I also checked the number of pics in iPhoto and Photo Browser, and the numbers do not match (more pics in iPhoto than Photo Browser by the number I added to iPhoto yesterday).
    I also checked for any software updates, but didn't find any. I am current with all the Apple software updates that I get prompted to download.
    Any more suggestions greatly appreciated.

  • File Browser doesn't show files

    I am trying to pull some of my pictures from my Media Hub but can't seem to do it.
    All of the pictures show in the Home view but when I go the the File Browser...no files show up in the folders. The folders are on the left but when I click to open any of them there is nothing in them. 
    I have checked my settings but can't figure out what I am doing wrong....

    Check under the "import" folder in the file browser, your pictures might be stored there if you used the import tool.
    Cheers.

  • Media browser doesn't show Aperture but shows long-uninstalled iPhoto?!?

    hi,
    Now that 3.0.1 seems to have solved most of my problems I can finally concentrate on the details.
    My media browser in iLife, iWork and mail.app gives me a choice between photos from Photo Booth and iPhoto. The weird thing is, when I select iPhoto it tells me that iPhoto 5 or higher should be installed, which it isn't as I haven't used iPhoto for years (and never on this computer). And, more importantly, Aperture is missing.
    I have already deleted the iApps plist, restarted a couple of times, repaired permissions a quarter of a million times in the last few days, and none of it helped.
    I know this is an issue that has popped up more often in this forum and for which a definite solution hasn't yet been found, but I'm hoping the iPhoto part may shine a new light on it allowing somebody smarter than I to solve this.
    Thanks in advance. Oh, and thanks to the entire forum for what they did in the last few days. So many great tips and solutions were given by so many people.

    This worked:
    I created a new library by selecting >file, >>switch to library, >>>other, selected New Library. Then Quit Aperture (have to do this because it did not take until I quit). Restarted Aperture and switched back to my normal library.
    Access to my Aperture library in the Media Browser came back right away. Desktop Background also returned. I had to restart the Mac to get the Screen Saver to come back.

Maybe you are looking for