Empty window on executing SQL Developer

Hi,
I have downloaded the latest SQL Developer, and version 1.5.0 rel 10 of the JDK. When I execute SQL Developer, I get the splash screen with its progress bar, and then an empty window. No menu's - nothing. I do get a message on my console window ...
steve@au-stb-mobile:sqldeveloper$ sh sqldeveloper.sh
Oracle SQL Developer
Copyright (c) 2006 Oracle. All Rights Reserved.
Using oracle.home=/home/steve/Desktop/sqldeveloper
Using ide.user.dir=/home/steve/.sqldeveloper
Addin: Translator PlSql is trying to register a input type (.plsql) which conflicts with translator PlSql who already using this input type
My OS is Ubuntu 6.10 (Edgy). I have Oracle XE 10.2.0.1.0 installed (not that I get a login window) which is working just fine.
Here's the jdk info ...
steve@au-stb-mobile:sqldeveloper$ java -version
java version "1.5.0_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
Java HotSpot(TM) Server VM (build 1.5.0_10-b03, mixed mode)
Any clues as to what I've done wrong?
Thanks.

Hi Steve,
If you do:
cat > Test.java
import javax.swing.*;
public class Test
  public static void main( String[] args )
    JFrame f = new JFrame();
    f.setContentPane( new JLabel( "Hello World" ) );
    f.pack();
    f.setDefaultCloseOperation( JFrame.DISPOSE_ON_CLOSE );
    f.setVisible( true );
^D
javac Test.java
java -cp . TestDo you see a small window containing the text "Hello World"?
Thanks,
Brian

Similar Messages

  • Can't create a function in SQL windows of PL/SQL Developer.

    The function is :
    create or replace function Xgyh
    (pvc2Czy in varchar2,
    pnumYhid in number,
    pvc2Lfid in varchar2,
    pvc2Grzid in varchar2,
    pvc2Zbmid in varchar2,
    pvc2Bmid in varchar2)
    return number is
    intZxbz integer:=1;--返回值(1:正确,0:错误);
    numDxlb number;
    numGx number;
    begin
    --判断指定用户是否合法
    if pvc2Czy is null then
    intZxbz:=0;
    end if;
    if pnumYhid is not null then
    if pvc2Lfid+pvc2Grzid+pvc2Zbmid+pvc2Bmid is null then
    intZxbz:=0;
    end if;
    elsif pvc2Lfid is not null then
    if pvc2Grzid+pvc2Zbmid+pvc2Bmid is null then
    intZxbz:=0;
    end if;
    elsif pvc2Grzid is not null then
    if pvc2Zbmid+pvc2Bmid is null then
    intZxbz:=0;
    end if;
    elsif pvc2Zbmid is not null then
    if pvc2Bmid is null then
    intZxbz:=0;
    end if;
    elsif pvc2Bmid is null then
    intZxbz:=0;
    end if;
    --取当前登陆操作员在数据权限表中权限并判断是否允许更新当前用户
    if intZxbz=1 then
    select t.更新,
    decode(t.对象类别,'用户',0,'楼房',1,'供热站',2,'子部门',3,'部门',4,'集团',5)
    into numGx,numDxlb
    from 系统_数据权限_表 t
    where t.用户=pvc2Czy
    and (t.对象类别,t.对象识别码) in
    (('集团',0),('部门',pvc2Bmid),('子部门',pvc2Zbmid),('供热站',pvc2Grzid),('楼房',pvc2Lfid),('用户',pnumYhid))
    and rownum=1
    order by 2,1;
    end if;
    --返回信息
    return(numGx);
    end Xgyh;
    If get rid of the where condition
    'and (t.对象类别,t.对象识别码) in
    (('集团',0),('部门',pvc2Bmid),('子部门',pvc2Zbmid),('供热站',pvc2Grzid),('楼房',pvc2Lfid),('用户',pnumYhid))',
    this function can be created fast.
    Thanks for you help!

    This is duplicated question.
    Can't create a function in database
    William Robertson and I have described some advices for you.
    Is my English poor?
    If you couldn't get theirs (mikerault, William Robertson et al.) and my advices,
    You can ask that on ITPUB (this is Chinese site).
    Here it is. http://www.itpub.net/
    And this site is not only for Oracle.
    I think they can help you in Chinese words.
    PS.
    I learn that
    'Gongrezhan' means the center of supplying heating to building,
    and this center is the characteristic systems in Beijing or more cold district.
    PS.2
    Your script includes simplified Chinese character-set.
    Even if you were not Chinese person,
    we all think you can understand Chinese words.

  • [SQL Developer 3.0.04] Cannot Drill Down

    In my connections tab, once I can connect, I see a list of database objects with expandable plusses. However, when I click on a plus, I don't get anything under it (e.g., a list of tables). I'm going against an Oracle 11 normal database.
    Is there a setting I've missed in the tool, or is this my security access. I seem to be able to execute the SQL I need.

    Hi Gary,
    You have described a variation on theme that can be found in many posts on this forum. You may want to try out the most common fixes:
    1. Make sure you are not pointing to a Java 7 jdk in your sqldeveloper.conf file. Using the latest jdk1.6.0_xx update is recommended.
    2. Try restarting SQL Developer after removing its system directory (but only after first backing up your connection information!).
    3. Rather than (2), alternately you could download the latest SQL Developer (3.2.09.30), unzip it into an empty directory, and start it up.
    If you decide to go with (2)
    A. Back-up the connections by right-clicking on the Connections node, select Export Connections..., then follow the Export dialog.
    B. Exit SQL Developer.
    C. Either delete or rename the system directory. On Windows 7 for SQL Developer 3.0.04.34, for example, it can be found at:
    C:\Users\<username>\AppData\Roaming\SQL Developer\system3.0.04.34D. Launch SQL Developer and import your connections.
    If you decide to go with (3), you can either migrate settings from an earlier SQL Developer install or not. If not, doing (2A) may be convenient if you prefer to import connections rather than re-enter them manually.
    One of these approaches usually resolves the issue.
    Regards,
    Gary Graham
    SQL Developer Team

  • SPEEDING UP YOUR PL/SQL DEVELOPMENT

    제품 : SQL*PLUS
    작성날짜 : 1997-01-09
    =================================
    Speeding up your PL/SQL development
    =================================
    By Jeff Warner
    If you're doing Oracle database or application development, then you're probably using PL/SQL. Every PL/SQL programmer is familiar with
    using SQL*Plus to develop PL/SQL programs. Developer/2000 offers a better way: Procedure Builder. In this article we'll explore how
    Procedure Builder can improve your PL/SQL development.
    It has a GUI
    ==========
    The first feature you'll notice in Procedure Builder is the graphical user interface (GUI). Procedure Builder provides separate windows for the
    Object Navigator, the PL/SQL interpreter, and the program unit editor. By the way, if you think the program unit editor looks familiar, you're
    probably right. Oracle uses it inside the other tools in Developer/2000 (Forms, Reports, and Graphics). Using the Object Navigator, you can
    view the relationship between your code and the library and packages. Object Navigator also provides the references and referenced-by
    information, as well as giving you the ability to examine the procedures and functions that make up packages and libraries. This makes it very
    easy to take advantage of existing code.
    The PL/SQL interpreter is just what you'd expect. You can use normal SQL and PL/SQL commands and see the results in the output
    window. You create your PL/SQL in the program unit editor window. As with any text editor, you can cut, copy, and paste as well as search
    and replace text. You can also use the editor to import and export source files. However, the editor's best feature is the Compile button. Click
    the Compile button, and Procedure Builder will compile your code and display any errors in the bottom of the window. Click on the error,
    and your cursor will move to the offending line. This will radically improve the compile-debug-run sequence. Speaking of debugging,
    Procedure Builder has something that will really make life easier for you.
    A PL/SQL debugger
    ================
    Yes, Procedure Builder includes a real debugger for PL/SQL. Its features include breakpoints, triggers, variable inspection, variable
    modification, step into, step over, and step out.
    Having a graphical and easy-to-use debugger can dramatically improve code development. For example, to set a breakpoint in your code,
    simply bring the PL/SQL interpreter window to the front and double-click on the line where a breakpoint is needed.
    Once you've set a breakpoint and executed the code, the debugger will stop the program at the breakpoint. From here, you can use Object
    Navigator to view and change the variables in the program. To resume execution, you can use Procedure Builder to step into, step over, or
    step out of a routine. Procedure Builder also provides an option to simply continue execution.
    A powerful feature of Procedure Builder's breakpoints is the capability of adding trigger code. Trigger code is a piece of PL/SQL that
    executes when the breakpoint is hit. You can use this feature to log the value of a variable to the screen or a file.
    If you need a conditional breakpoint, you can use a trigger. For example, let's say you want to stop execution only if the local variable i is
    greater than zero. First, select the line where you want the check to occur and create a trigger by clicking the right mouse button on the line
    and selecting Trigger. This will open the PL/SQL Trigger window. In the Trigger Body area, enter the following command to halt execution:
    if debug.geti('i') > 0 then
    raise debug.break;
    end if;
    Now the program will stop execution only when this condition is valid. You can also use the Trigger Body of a trigger to log information to a
    file or a screen.
    Debugging server-side programs
    ===========================
    The version of Procedure Builder shipped with version 1.2 of Developer/2000 is V1.5.5.7.0. Unfortunately, it doesn't allow you to directly
    debug programs on the server (this is planned for a future version). However, with the click-and-drag partition feature of Developer/2000,
    you can use Object Navigator to drag the program unit from the server to the local program unit and debug it there.
    Lots of help
    =========
    Procedure Builder includes extensive help under Windows. In addition to the normal help available on program features, Procedure Builder
    provides help on the built-in packages as well as the PL/SQL commands to maintain libraries, program units, and packages. Also, version 1.2
    or later of Developer/2000 provides the Cue Cards and Quick Tour.
    Conclusion
    =========
    As you can see, Procedure Builder is a very powerful tool for development. The debugger is first-rate and the extensive help is a great
    addition. One other nice feature of Procedure Builder is that Oracle will license it separately from Developer/2000 if you have users who don't indeed the other parts of Developer/2000. If you're doing PL/SQL programming, you should take advantage of what Procedure Builder has to
    offer.

    micwic --
    I logged bug6508875 for this.
    One suggestion in the meantime until we can get compile errors directed to the log window for offline objects...
    You can open the Database Navigator to point to the same db connection. After generating the offline PL/SQL to the db, refresh the connection in the DB navigator. You will see any invalid objects flagged with an error icon. Then you can right-click on the PL/SQL with the error, and "Make" it. This will display the errors in the log window, similar to SQL Developer.
    -- Brian

  • 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 - No Compiler - Log

    Hi,
    We are being asked to use SQL Developer instead of another app and finding it very tough going.
    I have Windows 7 64bit, SQL Developer 3 64bit and JDK 64bit
    I have just installed version 3 and I am having a problem.
    I open a new SQL worksheet and I type the following:
    begin
    dfsljk
    end;
    I then press either the run statement button or the run script button hoping to see the compiler - log window appear with the error.
    The last version used to do this.
    Instead all I get is a text dump in the script output.
    What has happeend to compiler - log?
    How do I get it backl?
    I have tried ctrl-alt-l but nothing happens
    Robert
    Edited by: RobertMetcalf on May 13, 2011 2:35 PM

    If Sue has had the time to follow up, it apparently did not manifest as a new bug. I did not check for any old bugs.
    Anyway, the change in behavior was probably intentional to improve internal consistency in the tool. For errors in anonymous blocks in a worksheet, neither 2.1 nor 3.0 brings up the compiler log. Any error message displays only in the script or statement output tabs.
    As for package, function, and procedure definitions, the first attempt to execute the DDL in a worksheet results in a new node of the appropriate name and type appearing in the Connections tree view (whether the compile succeeds or fails). This may require a "Refresh" for the object to display in the tree. If there is some issue during compilation, the 2.1 output tab shows, for example,
    PROCEDURE XYZ compiled
    Errors: check compiler log <--- implying an intent to display details in the compiler log
    whereas the 3.0 output tab shows
    PROCEDURE xyz compiled
    Warning: execution completed with warning <--- implying no intent to display details in the compiler log
    Subsequent create invocations (without the "or replace" syntax) results in a "ORA-00955: name is already used by an existing object" error, hinting that opening the PL/SQL editor on the object from the Connections tree view is really the appropriate action to take.
    Notice also, in the 2.1 compiler log, that right clicking on the error and selecting "Go to Source" does nothing for PL/SQL code executed from the worksheet. It only goes to the proper source line for code compiled from the PL/SQL editor.
    The tool, by pushing you toward use of the PL/SQL editor, is probably doing you a favor. The PL/SQL environment is a superior development environment as compared to the worksheet trying to emulate SQL*Plus. For example, some SQL*Plus features (such as variable declarations for use as bind variables) are not fully implemented in SQL Developer. The implementation of the PL/SQL context seems much more solid.
    Gary Graham
    SQL Developer Team

  • SQL Developer 2.1.0.63.73 exports DATE as TIMESTAMP

    I believe this is a bug. When I export a table to an XLS file, the values contained in DATE columns are saved as if they were TIMESTAMP:
    eg. 31-DEC-09 12:00:00 AM would export as 31-DEC-09 12.00.00.000000000 AM
    Not really a huge deal until you try to import it back in, in which case you can't import a TIMESTAMP into a DATE column. First, you'll get an error about the AM/A.M. or PM/P.M. missing. You can't explicitly specify the date format during the import either as Oracle rejects it since it's not supported. The proper way is to cast it back to a date, but you can't do that through the import function.
    Regardless, I think the export function should export DATEs according to the Date Format NLS settings but it is not.
    If it makes any difference, I'm using the 64-bit Windows version of SQL Developer on Windows 7 64-bit with the Oracle 64-bit client.

    Hi,
    Not sure if this is something related to my previous problem.
    My SQL Dev gives the correct date format on exporting to Excel, but fails on export INSERT statement
    Vasan, one of the sql dev's team member, gave this workaround which solved my problem
    >
    You can add the following in the sqldeveloper.conf to ensure that the driver doesn't report the column type of a DATE column as TIMESTAMP.
    AddVMOption -Doracle.jdbc.mapDateToTimestamp=false
    >
    as suggested in this thread
    Re: 2.1 EA1: Problems on Date type columns
    Hope this help,
    Buntoro

  • PL/SQL development with JDeveloper

    We are using Toad and JDeveloper to maintain our legacy IS that count thousands of PL/SQL code object (Packages, Package Bodies, Triggers).
    I'm using JDeveloper and SQL Developer in the perspective to verify if it is possible and effective to use only Oracle tools in the project.
    I like to work with JDeveloper to edit pl/sql code and i like to have my code in database offline object maintained into subversion.
    I'm able to compile these sources in my different platform (development system, test alpha, test beta and final testing instance directly from JDeveloper.
    That's fine except JDeveloper didn't return a compile status or a list of compile errrors like in SqlDeveloper. So I need to use SqlDeveloper in parallel of JDeveloper.
    This is the beginning of my problems.
    SqlDeveloper may have some editor open with source code into I updated into JDeveloper (depends on the change to do, some changes a done in SqlDeveloper to correct some errors and the code is refreshed from the instance into JDeveloper, and more important changes are done in JDeveloper and compiled (loaded) in the instance) and loaded (compiled) into my instance.
    When the packages tree is already displayed in SqlDeveloper, the status of the package (valid, invalid) didn't change immediately. That is normal because SqlDeveloper don't know i change it from JDeveloper. I think it check it when i click on the package or the body node. The problem is that the code is not reloaded into the editor if it is opened and i you recompile your package without refreshing all the packages list you will recompile the older version and search sometimes a long time why your package didn't compile after the changes you done in JDeveloper (mainly after 6pm and a day of developing and compiling ) !!!!
    The only reason to use both JDeveloper and SqlDeveloper in this phase is the fact that JDeveloper didn't return compile status and a compile error list.
    With theses features I will no more use SqlDeveloper for such developing purposes (still using it to debug, obtain object definition, customize database object for some physical properties, etc) and avoid those bad manipulations.

    micwic --
    I logged bug6508875 for this.
    One suggestion in the meantime until we can get compile errors directed to the log window for offline objects...
    You can open the Database Navigator to point to the same db connection. After generating the offline PL/SQL to the db, refresh the connection in the DB navigator. You will see any invalid objects flagged with an error icon. Then you can right-click on the PL/SQL with the error, and "Make" it. This will display the errors in the log window, similar to SQL Developer.
    -- Brian

  • ODM within Oracle SQL Developer 3.0 , no progress during Workflow creation

    Hi,
    I am trying to follow the instructions mentioned at http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/prod/bidw/datamining/ODM11gR2.htm
    In the "Create a Workflow and Add a Data Source" section when i try to create a new New Workflow from the menu, the Oracle SQL Developer 3.0 just shows a progress bar pop up with message "Validating and Updating Workflow". The workflow does not gets created even after 6 hours while the progress bar keeps moving. I tried it several times but no luck and hence not able to move further.
    Thanks in advance for the help.

    Hi,
    Are you using the SQL Developer 3.0 Production Release?
    Can you try again, but this time launch SQL Developer using the following file:
    C:\<SQLDEVELOPER INSTALL DIRECTORY>\sqldeveloper\sqldeveloper\bin\sqldeveloper.exe
    This will display a console window prior to SQL Developer UI being displayed.
    There may be some unexpected exception that is being thrown.
    It should display in this console window and give us more information to go on.
    It sounds like you were able to create a Project ok.
    Did you have any issues during the install of the repository?
    Did you happen to save the log?
    If so, can you paste it in this thread?
    THanks, Mark

  • How input korea in pl/sql developer

    I input korea in "the sql edit windows" of pl/sql developer 7 ,but it show "??"
    Could you tell me how to resovle this problem
    my os is windows XP ,oracle is 10.2.0.3
    my NLS_LANG=ZHS16CGB231280
    it should be store korea character.

    I had never heard of this either, but I think this is the web site: http://www.allroundautomations.nl/plsqldev.html.
    Perhaps you should review the product docs or contact support.
    Greg

  • NullPointerException when opening a script in SQL Developer 4.0.0.12

    I recently upgraded to SQL Developer v.4.0.0.12 64 bit, and am running into some issues.
    I am running this on 64 bit Windows 7. I have a 64 bit Oracle 11, and in addition have the 32 bit oracle client installed.
    I made an association between the .sql file extension and sqldeveloper64W.exe.
    However I frequently get a nullpointerexception when clicking on a script in the file explorer.
    It seems to occur mostly if I loaded scripts into SQL Developer before.
    If I close all the windows before closing SQL Developer and then click on a script in the file manager, things work (startup is arguably slower than v.3).
    But in most cases either nothing happens, or I get the NullPointerException below.
    What am I doing wrong?
    Regards,
    Wim
    java.lang.NullPointerException
      at oracle.dbtools.raptor.plsql.FindHighlightListener.editorDeactivated(FindHighlightListener.java:63)
      at com.oracle.jdeveloper.nbwindowsystem.NbEditorManager.fireEditorEvent(NbEditorManager.java:1315)
      at com.oracle.jdeveloper.nbwindowsystem.NbEditorManager.handleEditorEvent(NbEditorManager.java:1294)
      at com.oracle.jdeveloper.nbwindowsystem.NbEditorManager.whenCurrentEditorChanges(NbEditorManager.java:1556)
      at com.oracle.jdeveloper.nbwindowsystem.editor.TabGroup.whenCurrentEditorChanges(TabGroup.java:1026)
      at com.oracle.jdeveloper.nbwindowsystem.editor.TabGroup.setCurrentTabGroupState(TabGroup.java:847)
      at com.oracle.jdeveloper.nbwindowsystem.editor.TabGroup.addTabGroupState(TabGroup.java:129)
      at com.oracle.jdeveloper.nbwindowsystem.NbEditorManager.createEditor(NbEditorManager.java:534)
      at com.oracle.jdeveloper.nbwindowsystem.NbEditorManager.createEditor(NbEditorManager.java:511)
      at com.oracle.jdeveloper.nbwindowsystem.NbEditorManager.openEditor(NbEditorManager.java:379)
      at oracle.ide.cmd.OpenCommand.openWithNoProject(OpenCommand.java:337)
      at oracle.ide.cmd.OpenCommand.access$100(OpenCommand.java:62)
      at oracle.ide.cmd.OpenCommand$1.run(OpenCommand.java:266)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
      at java.awt.EventQueue.access$200(EventQueue.java:103)
      at java.awt.EventQueue$3.run(EventQueue.java:694)
      at java.awt.EventQueue$3.run(EventQueue.java:692)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
      at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
      at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

    Please refer to this White paper for how to generate PL/SQL package for workflow deployment:
    Oracle Data Miner (Extension of SQL Developer 4.0)
    Generate a PL/SQL script for workflow deployment
    http://www.oracle.com/technetwork/database/options/advanced-analytics/odmrcodegenwhitepaper-2042206.pdf

  • SQL Developer 3.0/3.1 64 Bit Memory Setting

    Hi,
    To avoid hitting memory setting issues with SQL Dev 3.0/3.1 64 bit clients, you can make the following changes:
    1) Close SQL Developer
    2) Locate the sqldeveloper.conf file
    Found in directory:
    C:\<SQLDeveloper32\sqldeveloper\sqldeveloper\bin
    3) Change the following line
    Before:
    AddVMOption -XX:MaxPermSize=128M
    After:
    AddVMOption -XX:MaxPermSize=256M
    4) Launch SQL Developer
    A memory issue of this sort will generally result in non-responsive UI behavior.
    You can verify that you are hitting this issue by launching the console window version of SQL Developer and checking for memory exceptions.
    C:\SQLDeveloper30-64RTMPatch1\sqldeveloper\sqldeveloper\bin\sqldeveloper.exe
    A bug has been filed change this setting.
    Thanks, Mark

    SQL Developer itself will work with a 64-bit JDK. It is possible that the data modeler still requires a 32-bit JDK.
    You may get better answers in the dedicated Data Modeller forum.

  • Help using test in alround automations PL/SQL Developer

    hi sory if this is a bit of a beginer question, Im trying to test the folowing package using the test window in pl/sql developer.
    I was expecting to give the test a value for var_detail_id which it askes for so is good :) , and the test to return the value of v_Media_Object_Name. which it dosent.
    and i dont know enough to know if there is a fault in the code or a fault in the way i am using the test utility. ive put the select on to a sql worksheet, and it returns a sensable name for the detail_id i give it.
    any thoughts on why the test utility dosent return the value of v_Media_Object_Name?
    thanks
    james
    ------------spec-------------------------
    create or replace package Enhanced_Pharos_Report
    AS
    TYPE result_set_type IS REF CURSOR;
    PROCEDURE run_report
    (var_detail_id NUMBER);
    end;
    -------------body----------------------------
    create or replace package body Enhanced_Pharos_Report as
    v_Media_Object_Name varchar2(300);
    function Media_Object_Name(var_Detail_id Number) return varchar2 as
    Result varchar2(300);
    begin
    SELECT promo_name
    INTO Result
    FROM promo
    WHERE promo_id = (SELECT promo_id
    FROM promo_plan
    WHERE promo_plan_id = (SELECT promo_plan_id
    FROM event_promotion
    WHERE detail_id = var_Detail_id));
    return(Result);
    end Media_Object_Name;
    PROCEDURE run_report
    (var_detail_id NUMBER)
    is
    begin
    v_Media_Object_Name := Media_Object_Name (var_detail_id);
    end;
    end;

    Your run_report procedure returns nothing to the caller. You must either have an out parameter return the value selected or make it a function that returns the value expected by the caller.
    As it is, there is nothing that is returned. So, no client, including PL/SQL Developer, will be able to display any results.

  • How to compile all invalid objects in SQL Developer

    Hi
    I am used to PL\SQL Developer and currently I am testing SQL Developer (version 2.1). I have question where can I find in SQL Developer functionality (or how to invoke those functions) like:
    1 ) To list all invalid objects and then compile them.
    2) Invoke window similar to “Command window” in PL\Sql Developer
    Thanks for help
    Groxy

    Could I please revive this and ask how do I use UTL_RECOMP?
    Also, I could not find a description of the icons in SQL Developer. Some procedures are shown with a green plus sign (I am guessing here since I can't make out what it is) on them and the ones that I right-click and compile have this green go away. Can you explain?
    Thanks a lot.

  • Store result in file in SQL Developer

    Hi,
    Is there any way to store results from query or SP in physical file ?
    I could not find any option for that, I'm running it from Windows machine using SQL Developer,
    then I expect output file will be stored on Ora server machine, right ? There is probably no option for Oracle to store it on local W machine.
    Tx All
    TRent

    A few remarks:
    - This is not the SQL Developer forum
    - SQL Developer comes with online help
    - Did you see the print and the disk icon in the upper left hand corner of the output window
    Could you please avoid this type of question in the future? It makes you look very silly.
    Thank you in advance
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for