Some more points on sql developer

Starting to use sql developer more and more now. There are a few reasons
why I end up back on sqlplus etc.
1) If you run a sql query in sqlplus and there is an error it tells you the line number. In sql developer you just get a pop up error message with the ORA number but it doesn't tell you where the problem is.
2) Can we specify a default path to run scripts from so @script.sql knows to
run script.sql from our default scripts folder?
3) When you double click a table to get a tab with all the details it goes away as soon as you double click a trigger within the table to change the trigger or when you click onto a package etc. Can the table tab stay until we close it?
4) I know you can refresh the package etc but a revert option would be nice when editing code.
thanks

The issue with 1 is that when you get that in sqlplus
it's an OCI call which is pointing to the error.
Since we are in java, there is no similar method
d call. I'm still looking for an answer it is
something I miss as well.I have posted possible solution already, but can do it once more- If statment failed on parse (and this is a only situation when you can obtain line/column númbers) you can reparse this statement using dbms_sql. I have implemented this solution (on suggestion from Tom Kyte) ~4 years before in one of my products. Solution works Ok and is not complicated. And, because you do second parsing if and only if statement has failed this second parsing does no harm.
The only other possible solution is to fix JDBC driver to provide more rich set of error information, but I'm not sure if it is realistic.
BTW - it is completely ridiculous that amount of error information presented by Oracle differs drastically depending on type of connection. OCI is one thing, PL/SQL completely another, thin JDBC third, server (built-in) JDBC forth. Do not remember if "thick" JDBC driver differs in this aspect from thin.

Similar Messages

  • Decimal points - geometry - sql developer georapter

    Hi
    I have loaded shape files with SQL developer Georaper and limited number of decimals to 8. There is option to limit number of decimals in georapter.
    But there are some X, Y with many decimals. This may create problem in spatial functions in which geometries are compared and filtered.
    Please suggest me how to control the decimal points of X,Y to be loaded in geometry column.
    -0.4695623500000000172249770002963487058878                    51.47160360000000167701728059910237789154
    -0.4702653600000000211345252409955719485879                    51.47174944999999723904693382792174816132
    -0.4713475400000000092859409051015973091125                    51.47330664999999783049133839085698127747
    -0.4717886499999999760923685698799090459943                    51.47432505999999818868673173710703849792
    -0.4727564499999999947377204989606980234385                    51.47439456000000035373886930756270885468
    -0.4710064700000000104118669241870520636439                    51.4703249599999992369703250005841255188
    -0.4713933299999999992913046753528760746121                    51.4707325999999980581378622446209192276
    -0.4708402500000000157065471739770146086812                    51.46869396999999679565007681958377361298
    -0.48199913                            51.47069623
    -0.48186682                            51.47069561
    -0.48186696                            51.47070972
    -0.48186738                            51.47073525
    -0.48186786                            51.47076416
    -0.48204026                            51.47076313
    -0.48205911                            51.47077464
    -0.44306117                            51.45944246
    -0.44311694                            51.45944362
    regards

    Don,
    Search is your friend. Simon has a function to do this, please see this thread:
    https://forums.oracle.com/thread/2378661
    Bryan

  • Want to get some more points draw by curveTo() method of PATH2D

    I draw a curve using curveTo() method of Path2D. Is there any way to find some points on that curved path except start, end and control points. The start, end and control points I am having with me on which basis I am drawing the curve.
    Thanks & Regards

    Note: This thread was originally posted in the Swing forum, but moved to this forum for closer topic alignment.

  • Why does SQL Developer sometimes not allow me to "Disconnect"?

    Sometimes when I'm ready to close SQL Developer, I try to get out gracefully, but the "Disconnect" option for the only connection I have open is greyed out. Why? The only option I know then is to close SQL Developer by clicking the "x" in the upper, right corner.
    My version of SQL Developer is a bit old: I have SQL Developer 2.1.0.63. We have an Oracle11.1.0.7 database. I have a 64-bit Windows7 desktop. I think my Java version is also a bit old, but it seems to be compatible with the EBS R12.0.6 application that I need to support. I'm not a Java expert. If I go to a C:\ prompt, and type: "java -version", It returns: "1.4.2_04".

    Actually, I think the link Alessandro posted is helpful. I cannot reproduce the behavior on Win XP, but can on Linux (somewhat). That is, Properties gets greyed out at times, but not Disconnect or Apply Filter. Retrying the right-click resolves the problem, as he notes.
    So I assume my point (1) would be more nearly correct if restated as "Bug or timing issue".
    As for (3), I really cannot give a good example. If I open a Tool menu item like Monitor SQL or Monitor Sessions on, say, the SYSTEM user, the Disconnect option is not greyed out and if used will close all the open windows for that connection. If I run Debug on a package/procedure/function, Disconnect also remains enabled. Clicking on it produces a "Cannot Disconnect" dialog warning with this text: "The database connection cannot be closed while an active debugging session exists". Perhaps I'm mistaken entirely, or just confused after seeing that behavior on some older version of SQL Developer
    -Gary

  • SQL developer not showing compiler warnings

    I'm just testing out the new compiler warning contained in 11g related to the "when others" exception handler when it does not have a subsequent raise or raise_application_error.
    in SQL plus, this works fine:
    SQL> alter session set plsql_warnings='enable:all';
    Session altered.
    SQL>
    SQL> create or replace function do_stuff
      2  return number
      3  as
      4     v_return number;
      5  begin
      6
      7     v_return := 3;
      8     return v_return;
      9
    10  exception
    11  when others then
    12     return null;
    13  end;
    14  /
    SP2-0806: Function created with compilation warnings
    SQL> show errors;
    Errors for FUNCTION DO_STUFF:
    LINE/COL ERROR
    1/1      PLW-05018: unit DO_STUFF omitted optional AUTHID clause; default
             value DEFINER used
    11/6     PLW-06009: procedure "DO_STUFF" OTHERS handler does not end in
             RAISE or RAISE_APPLICATION_ERRORbut in SQL developer the output is:
    BANNER                                                                          
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production    
    PL/SQL Release 11.2.0.3.0 - Production                                          
    CORE     11.2.0.3.0     Production                                                        
    TNS for Linux: Version 11.2.0.3.0 - Production                                  
    NLSRTL Version 11.2.0.3.0 - Production                                          
    session SET altered.
    FUNCTION do_stuff compiled
    No Errors.Anyone experience this issue? is there some setting that makes SQL developer behave differently?

    it must be something I'm doing wrong, above, I was running under windows 7 pointing at the version above.
    I just tried it under an Enterprise Linux pointing at
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production          
    PL/SQL Release 11.2.0.2.0 - Production                                          
    CORE     11.2.0.2.0     Production                                                        
    TNS for Linux: Version 11.2.0.2.0 - Production                                  
    NLSRTL Version 11.2.0.2.0 - Production                                           and I get exactly the same script output and no compiler window....
    actually...... if I go into a procedure window from the schema browser and compile it there, then I get the correct warning messages..... the problem is I mostly develop from .sql files extracted from source control rather than directly from the schema browser, I just want the sql worksheet to be able to show me the same compiler log window.....

  • SQL Developer Blocked and is not allowed to connect to database ORA-200001

    SQL Developer Blocked and is not allowed to connect to database gives ORA-200001.
    i found on net that DBA can write triggers which can deny connection to database from certain appplication.
    so i want a way to change application name so that when it connects to database
    the V$SESSION will have different value (other than SQL Developer) in column PROGRAM and/or MODULE (which i think is used by dba to restrict the connection).
    one more way is
    i am using jdbc url to connect to database
    in java we can change properties of connection to change the PROGRAM in V$SESSION.
    but i am not java expert so dont know how and where to make the changes
    either way my aim is to connect to database such that V$SESSION will have different value (other than "SQL Developer") in column PROGRAM and/or MODULE

    This is not system configration or credential issue.
    This is a check which is put DBA using logon trigger
    to check certain user loging in using certain application.
    only some users using particular username are getting this error when they try to logon using oracle sql developer
    the same users when uses different username(some generic user names created to access database) to access the same database then they are able to login.
    similarly if they login using SQL navigator they are able to login with both their own and the generic user name
    more over of all the database instances this is only happening on some of the instances and all of them are development instances.
    following will help you understand
    USER | DBUSERNAME | DATABASE | APPLICATION | ACTION
    X | X | DB1 | Oracle Sql Developer | Blocked
    X | G(Genric) | DB1 | Oracle Sql Developer | Login Success
    X | X | DB1 | Sql Navigator/SqlPLus | Login Success
    X | G(Genric) | DB1 | Sql Navigator/SqlPLus | Login Success
    X | X | DB2 | Oracle Sql Developer | Login Success
    X | G(Genric) | DB2 | Oracle Sql Developer | Login Success
    X | X | DB2 | Sql Navigator/SqlPLus | Login Success
    X | G(Genric) | DB2 | Sql Navigator/SqlPLus | Login Success
    I just want to bypass this check which i think uses V$SESSION and columns PROGRAM and/or MODULE to check the application used by particular user.
    if i can override these values some where in oracle sql developer before loging in the DB then i can clearly pass this check and login to database.
    Edited by: user13430736 on Jun 21, 2011 4:05 AM
    Edited by: user13430736 on Jun 21, 2011 4:12 AM

  • How to view complete date stamp in query result view in sql developer?

    Hi,
    In the query result, the date present in db is shown as DD-MM-YYYY format but I want to view the complete date stamp. When I view the same data in aqua data studio, I see the complete time stamp. Please let me know if I need to do some settings in Oracle SQL Developer so that complete date is shown?
    How to view complete date stamp in query result view in sql developer?
    Thanks in advance,
    Vineet

    864793 wrote:
    Hi,
    In the query result, the date present in db is shown as DD-MM-YYYY format but I want to view the complete date stamp. When I view the same data in aqua data studio, I see the complete time stamp. Please let me know if I need to do some settings in Oracle SQL Developer so that complete date is shown?
    How to view complete date stamp in query result view in sql developer?
    Thanks in advance,
    VineetAlternatively you can execute below
    set nls_date_format='DD-MM-YYYY HH24:MI:SS';Regards,
    Achyut K

  • Reconnecting in SQL Developer issue

    Every time there is a change in my computers connection (unplugging from dock and connecting to wifi and vice versa, putting computer to sleep and wake up again, etc.) the schema connections in the Oracle SQL Developer are lost.
    1. I can choose to reconnect so I can execute queries but if I try to open tables/view/etc. I get a connection error.
    2. I can then disconnect and connect again to reset the connection and everything works fine.
    This can become quite annoying after a while. I have seen older posts about the same/similar problem. Am I right to assume that this is a problem that has yet to be addressed or are there some hidden options in SQL Developer (v3.1.07) that I don't know about? I have tried the ALT + F10 method, but I'm looking for a solution, not a workaround :)
    Regards,
    Gunnar

    Gunnar.Osk wrote:
    Every time there is a change in my computers connection (unplugging from dock and connecting to wifi and vice versa, putting computer to sleep and wake up again, etc.) the schema connections in the Oracle SQL Developer are lost.
    1. I can choose to reconnect so I can execute queries but if I try to open tables/view/etc. I get a connection error.
    2. I can then disconnect and connect again to reset the connection and everything works fine.
    This can become quite annoying after a while. I have seen older posts about the same/similar problem. Am I right to assume that this is a problem that has yet to be addressed or are there some hidden options in SQL Developer (v3.1.07) that I don't know about? I have tried the ALT + F10 method, but I'm looking for a solution, not a workaround :)
    Regards,
    Gunnaran actual error message (ORA-nnnn) would be helpful.

  • New SQL Developer 1.5 extension is available

    Hello,
    I would like to introduce the new release 2.0.1 of:
    Schema Version Control for Oracle (SVCO)
    It's the integrated version control solution for Oracle database server schema objects! It will track all schema objects changes direct within Oracle database fully automatically! No extra version control tool is required. You can go on and use your favourite IDE for Oracle or even mix different tools. You can also integrate Schema Version Control for Oracle in your own development process. SVCO consists of version control repository and packages. Both are created during installation under SVCO user inside your Oracle database. Please, also have a look at front-end interface for SVCO Plug-In for PL/SQL Developer and SVCO Extension for Oracle SQL Developer. SVCO supports Oracle 11g. Because it's written completely on Oracle PL/SQL it works on any platform supported by Oracle. Schema Version Control for Oracle is the right version control solution for Oracle database server development projects.
    Extension for Oracle SQL Developer: the complete SVCO functionality and much more inside Oracle SQL Developer!
    Please visit us at:
    <SUMsoft Solutions>
    web: http://www.sumsoftsolutions.com/

    Those versions are ancient, older than SS2008 even.
    Go get version 4.0.3 and a jTDS 3.1 driver.
    Details here

  • AddVMOption command in SQL developer configuration files

    Greetings developers,
    I'm a newbie in database and Java world trying to understand what the Oracle sql developer configuration files do by executing AddVMOption commands. I'm guessing this command is something to do with Jdeveloper. Please enlighten me what the command does.
    Regards,
    Valerie

    Valerie,
    Nothing to do with JDeveloper at all.
    SQL Developer (and JDeveloper incidentally) are created using Java - the AddVMOption's that you are referring to are arguments passed to the Java Virtual Machine that is used to run SQL Developer. For example, you can use AddVMOption to give more memory to SQL Developer.
    Hope this clarifies,
    John

  • SQL Developer 2.1rc1 - some bugs

    Hi!
    I'd like to report some bugs I've encountered with the RC1 version of Oracle SQL Developer (Version 2.1.0.63 build MAIN-63.41).
    - The syntax error highlighting is not very good - I've successfully executed queries almost completely underlined with pink wavy lines
    - something strange happens when I hit <Enter> while the cursor is at the end of a row that reads " union all" - a new line does not get inserted, and the cursor disappears. <Backspace> and <Enter> again, and it works ok.
    - query execution - the command I entered gets modified, stripped of comments, as far as I can tell, and if I get an error report, the line number reported is off by a couple of lines. I remember this working better in 1.5.

    I found a few bugs in the first ten minutes of use:
    - The main one was that my backspace key didn't work, no idea why this was as my keyboard is pretty standard?
    - The search/highlight window changes size when adding a new highlight, and the close button then disappears until it's re-sized
    - Editing xmldata in a window works, if it's not syntax highlighted or able to be pretty printed, but clicking ok does not change the value? Should either work or warn that it doesn't work.
    - In the query result window is 'SQL' in blue, not easy to notice that it's a button'y thing to click and see the SQL that was executed. Also, why does the little bubble with the code just float in the middle and not point to anything in particular? Surely it could point to the 'SQL' button or similar?

  • Where can I find more OBE like the one for Database xE and SQL Developer?

    Hi,
    I tried to post on the OBE forum but it is expired.
    I found the downloadable OBE, or tutorial, very good resources for me to learn Oracle, like the one for XE and SQL developer, which you can download, not just read online, and see as many times as you can, with flash stuffs inside,
    Will you make more this kind of OBE?
    Where can I find them?
    Peter

    Hi Hans,
    I know the above address you offered but those are
    not downloadble.So do what I do .... CTRL-S (save page)
    As an Oracle trainer, I consider the OBEs to be very important. I doubt that Oracle will get rid of them.
    However, it takes time to make them. I suspect that they are created when a new feature needs to be demonstrated and the product management has the resources available.
    I just wish they would make the original set from Oracle8i available. They provided some very important basics which have long since hit the archive pile.
    I'm sure that some of the ACEs would be happy to upgrade them to Oracle10g/11g level. I know I would be willing to contribute to that effort.

  • Using SQL developer, how to show more then 1 table at at time ?

    Hi, everybody
    I am able to open more then 1 procedures/functions for editing.
    However i am not able to open more then 1 table for seeing the data and columns.
    1) how do i open more then 1 table tab in sql developer or i am not allow to do so ?
    2) is it possible to see what column is the foreign key of a table in sql developer ?
    thanks once again :)

    use freeze view button
    and drop table below from tabs
    http://www.oracle.com/technology/products/database/sql_developer/files/viewlets.html
    watch this viewlet
    Useful Features of SQL Developer (July '07)
    it can show u how u can see more than one table at a time

  • Bug report: SQL Developer 3.2.09 Crashes for some Replace Regexp

    Hi,
    SQL Developer 3.2.09 (tested on Win XP with SQL Developer built-in Java) crashes for some Replace Regexp.
    Try the following:
    New SQL-sheet
    CTRL-R for Replace
    Enter "||" (two chars) as search-expression
    Enter "" (nothing) as replace-with-expression
    Check Regular Expressions Check Box
    Hit OK
    -->100% CPU usage, no reaction.
    Can you confirm the bug?
    Edited by: blama on Sep 4, 2012 3:48 PM

    I believe the pipe character is a regexp meta character and your regexp probaby matches everything repeatedly. If you want to replace the concatenation operator you don't need a regexp.
    Having said that, I am using SQL Developer on Linux with Java 1.6.0_33 and I don't get the hang, just replacing the same thing again and again.
    On windows with 1.6.0_24, I do get the hang. It may be a java issue.
    Edited by: Jim Smith on Sep 4, 2012 5:39 PM

  • Oracle SQL Developer needs some work

    I just downloaded a copy today (1557) for Oracle 9.2i / Windows XP Pro
    Oracle SQL Developer has a few glitches...
    A compiled and working package (compiled in SQL*Plus and TOAD) opens and shows 2 errors in a SQL Query involving a CASE statement. Invalid CASE clause on an ELSE and unexpected token on an alias at the end of the case.
    Compiling a package should display a message saying successfully compiled and the state of a package should always be on display!
    Opened an SQL script but could not execute it as the icon's didn't become active.
    Couldn't then run the script.
    These basic problems would put any serious developer off using Oracle SQL Developer.
    Also background color scheme should be gray and NOT white. White is hard on the eyes. This is just basic UI stuff.
    Oracle, you need more senoir developers!

    Justified to the top left of the sql window, you see the execute buttons. On the top right, you will see a drop down list box. After opening a file, this drop down list box is not selected. Select your connection and the execute buttons on the top left will enable.
    For PL/SQL use a slash / at the end for it to execute.

Maybe you are looking for

  • "RFC system error for destination GTADIR_SERVER",why?

    RFC system error for destination GTADIR_SERVER Hi AlL, We are working in CRM 6.0. While creating the Components and Views,i am encounter this Error. << "RFC system error for destination GTADIR_SERVER" Message no. SGSUB104 Diagnosis Access to destinat

  • I am unable to enable a device that was disabled through my account.

    I am trying to re-enable a device that I previously disabled through the members center. When I go the the list of devices I have added to my account I can see all of them. The device I am trying to enable again is greyed out indicating it is disable

  • Audio CD not appearing in source list

    Since installing the latest version of Itunes I have not been able to get audio cd's to show up in the source list. I am able to eject the disc with the icon in the lower right hand corner and the songs will play if I manually open them in My Compute

  • Openbox issues: URxvt and Trash

    Hi folks, I am migrating from XFCE to Openbox, and I have a couple of issues bugging me. 1) URxvt does not load .Xresources automatically as it does with XFCE. I have worked it around by adding xrdb -merge ~/.Xresources & to my autostart. Is there an

  • My friend made a DVD.  I want to copy it.  How do I do that?

    My friend made a cool DVD.  I would like to make a copy of it.  Can anyone help me?