Oracle SQL Developer and Errors (Line Number Incorrect)

First, I wanted to state that Oracle SQL Developer 2 is a standout job.
I wanted to report, though, that when Oracle SQL Developer 2 can't compile a block of code or a simple SQL statement has invalid syntax, it does not have an option to accurately go to the line of code in question. GOING TO the erroneous line of code doesn't need to be a feature, but often times the line no. REPORTED by Oracle SQL Developer is incorrect by 50+ lines.
Is this something I could fix on my end? I have five other developers griping about this.
Thank you!

I don't know if this is the situation you are talking about, but line numbers for errors in SQL in a SQL Worksheet are not line numbers within the statement but rather line numbers in the worksheet. For example, with the following SQL in the worksheet:
select * from dual;
select * from dual;
select * from dual;
select from dual;Running the "select from dual;" statement (as either statement based on cursor position, selected statement or as script), the error is reported on Line 4, Column 7. As I show line numbers (Tools | Preferences | Code Editor | Line Gutter | Show Line Numbers), this makes sense. Without line numbers showing or having the option to go to the error and with more realistic examples with SQL statements scrolling off the page, I can see that the line number in the errors wouldn't be helpful.
I think -K- is talking about the PL/SQL code editors not reporting the correct line number based on the error line not counting the "create or replace" line at the start of a package (and more for triggers).
theFurryOne

Similar Messages

  • Oracle sql developer connection error

    Hello everyone;
    i have recently installed oracle sql developer on linux, i have been using oracle sql plus tool to access oracle; but when i am tryin to connect to oracle with sql developer its giving errors,
    Error says:
    an error was encountered performing the requested operation;
    io exceprion: The network Adapter could not establish the connection
    vendor code 17002
    now i dont know what to do? Is there who can help me pls, i think i am close: is there any .xml file anywher in my database which i have to get connection details from? If yes pls lemme know. Thanks.

    This typically indicates that the connection to the database was unsuccessful (incorrect values in client tnsnames.ora). Are you able to tnsping the database successfully from the client ?
    lo exception: The Network Adapter could not establish the connection
    HTH
    Srini

  • Oracle SQL Developer Tool Error:

    Hi,
    i have installled Oracle 11g in Win2003 Server. When create new connection in Oracle SQL Developer its throwing following error
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor. The Connection Descriptor used by the client was localhost:1521/orcl
    listener.ora:
    # This is a sample listener.ora that contains the NET8 parameters that are
    # needed to connect to an HS Agent
    LISTENER =
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=dg4odbc)
    (ORACLE_HOME=E:\app\XXXXX\product\11.2.0\dbhome_1)
    (PROGRAM=dg4odbc)
    #CONNECT_TIMEOUT_LISTENER = 0
    can any one help me ASAP.
    Thanks!

    933663 wrote:
    Hi,
    tnsnames.ora
    %s_gtwSID% =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    (CONNECT_DATA=(SID=%s_gtwSID%))
    (HS=OK)
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1522)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production
    Start Date 13-JUL-2012 17:46:51
    Uptime 0 days 0 hr. 29 min. 1 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Log File e:\app\XXXXXXX\diag\tnslsnr\YYYYYYYY\listener\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1522ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mysystemname)(PORT=1522)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl.mysystemname" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB.mysystemname" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Thanks!you listener port on 1522 , but on your tnsnames.ora on 1521
    Check your hostname on listener and tnsnames.ora
    after do this changes please reload the listener
    PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding

  • Oracle sql developer and access db

    Hi All,
    I have connection to oracle and Access dbs’ on my oracle sql developer.
    When i try to create a database link from oracle db to access db i have to add Host Name.
    Connection details to access looks like this :
    @jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=C:\ list.mdb;DriverID=22;READONLY=false}
    I tried different variants, but it doesn’t work.
    Is this possible to create database link to access db, and if yes, what i have to add for a host name and what is the syntaxes for cross table ?
    Thank you

    Good documentation here... http://www.orafaq.com/node/60
    TimS

  • ORACLE SQL DEVELOPER and SQLPLUS

    How can I run the sqlplus command inside of ORACLE SQL DEVELOPER?
    Whe I try to run show SGA command , I get "SQLPLUs command skipped"

    jung1975,
    I have SQL Developer version 1.0.0.14 installed on my PC.
    Under the "Tools" menu, there is a "SQL*Plus" item.
    However, you need to have access to the "SQL*Plus" executable.
    Since my database server is on a different machine (to my PC), that means I need to have Oracle Client also installed on my PC.
    Good Luck,
    Avi.

  • Added jTDS as third party DB connector to Oracle SQL Developer and connecti

    I have followed the directions for adding a third party db connector to SQL Developer however as soon as I do the connection manager form doesn't come up for both adding a new connection and editing an exisitng one. I have posted here as I am having issues finsing information or getting help through Oracle forums.

    Two things:
    1 - Confirm you got the jTDS we recommend from here http://www.oracle.com/technetwork/database/migration/omwb-getstarted-093461.html#conf
    2 - Confirm you added the entry in the preferences and pointed to the actual JAR file, not just the directory

  • Oracle SQL Developer and Application Express

    Hi all,
    I have a SQL Developer 1.5.4.59.40 and have an application developed in Application Express 10G XE with APEX 3.1.2. I have successfully opened my schema which owns an application, but to my surprise there is no node for viewing my application????? How can i view my application?
    With Regards,
    Sunil Bhatia - Programmer
    Eon Technologies Pvt Ltd
    Edited by: Sunil Bhatia on Mar 26, 2009 9:39 AM

    Hello,
    If you go to your parsing scheme in SQL Developer for ex. SCOTT you'll see a node Application Express.
    That should list all the applications that have the SCOTT parsing scheme defined in your APEX application.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/
    REWARDS: Please remember to mark helpful or correct posts on the forum

  • Oracle sql developer and  oracle express

    I am new in PL/SQL
    I just wonder for run the pl/sql , why has the different result for two tools
    for the following example I get out put on the express
    Employee 145 commission .4 which is High
    Statement processed.
    on sql developer I get
    anonymous block completed why???
    DECLARE
      n_pct employees.commission_pct%TYPE;
      v_eval VARCHAR2(10);
      n_emp_id employees.employee_id%TYPE := 145;
    BEGIN
      -- get commission percentage
      SELECT commission_pct
      INTO n_pct
      FROM employees
      WHERE employee_id = n_emp_id;
      -- evalutate commission percentage
      CASE n_pct
      WHEN 0 THEN
        v_eval := 'N/A';
      WHEN 0.1 THEN
        v_eval := 'Low';
      WHEN 0.4 THEN
        v_eval := 'High';
      ELSE
        v_eval := 'Fair';
      END CASE;
      -- print commission evaluation
      DBMS_OUTPUT.PUT_LINE('Employee ' || n_emp_id || ' commission ' || TO_CHAR(n_pct) || ' which is ' || v_eval);
    END;
    /

    Hjava wrote:
    I just wonder for run the pl/sql , why has the different result for two tools
    for the following example I get out put on the express
    Employee 145 commission .4 which is High
    Statement processed.
    on sql developer I get
    anonymous block completed why???Nothing to do with the database or PL/SQL.
    The client makes the call (e.g. passing the PL/SQL anon block to the server to be parsed and executed).
    This is successful. The server returns a zero return code to that client call. This means successful completion of that database call.
    The client can now choose to display any message it wants to inform the user of that - from "+hey dude, it worked!+" to "+command completed successfully+" or whatever.
    The database does not return a message string in response to that call - only a return code. What the client can do is make another call and request the associated message from the client driver for that return code. In this case, an English language message file (as queried by the driver) will return the message string, "+normal, successful completion+".

  • Oracle SQL Developer and commit

    I have the auto commit in SQL Worksheet unchecked and disconnect a worksheet with open transaction and the data is commited !!
    I have to set another option??
    When I close the SQL Developer no questions if I'm sure to close or i want to perform a commit (like toad).
    Thanks.

    you may want to try this forum:
    SQL Developer

  • How to connect database using oracle SQL developer

    Hello
    I am newbie in EBS R12
    I downloaded Oracle SQL Developer
    and create new database conenction
    Connection name: ebs demo db connection
    username:
    password:
    Role: Default
    Connection type: Basic
    Hostname: ebstailin.demo.com
    Port: 1521
    SID: clone
    when i try this there is an error
    Status: Failure-Test failed: lo exception: The Network Adapter could not establish the connection
    no idea about this
    but i used the apps/apps as username and password
    please help
    thanks
    Edited by: cheesewizz on Jul 16, 2010 11:35 PM

    Hello
    Thanks for your reply
    I tried to connect and here is the result: see below
    [oracle@ebstailin 11.1.0]$ sqlplus / as sysdba
    SQL*Plus: Release 11.1.0.7.0 - Production on Sat Jul 17 15:35:31 2010
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> CONNECT apps/apps
    Connected.
    SQL>
    But still cannot connect using ORACLE SQL Developer
    thanks

  • Issue during migrating from Sybase to Oracle using Oracle SQL Developer

    I am using SQL Developer v 3.2.20.09 to migrate from Sybase to Oracle Pl/SQL 12c
    While migrating the stored procedure the following block did not convert. I got NULL instead of object_id:
    Sybase Block:
    IF OBJECT_ID(‘dbo.CheckEst’) IS NOT NULL
    BEGIN
    DROP PROCEDURE dbo.CheckEst
    IF OBJECT_ID(‘dbo.CheckEst’) IS NOT NULL
    PRINT ‘<<>>’
    ELSE
    PRINT ‘<<>>’
    END
    Oracle Block after conversion:
    BEGIN
    IF NULL/*TODO:OBJECT_ID(‘dbo.CheckEst’)*/ IS NOT NULL THEN
    BEGIN
    DROP PROCEDURE CheckEst;
    IF NULL/*TODO:OBJECT_ID(‘dbo.CheckEst’)*/ IS NOT NULL THEN
    DBMS_OUTPUT.PUT_LINE(‘<<>>’);
    ELSE
    DBMS_OUTPUT.PUT_LINE(‘<<>>’);
    END IF;
    END;
    END IF;
    END;
    Lines 1 & 4 got converted to NULL. I have many places where such code is written.
    Is there any quick way to overcome such an issue? or what needs to be done in such case?

    Hi,
      You are using an older version of SQL*Developer.  Could you download the latest 4.0.2 version available from here -
    Oracle SQL Developer
    and check if you still have the problem ?
    Regards,
    Mike

  • Oracle SQL Developer Connection Help

    Hi,
    I'm a complete Oracle newbie, so please bear with me. I've been doing research on protein clustering and at my lab the SQL developer has been running queries that I can then do statistics on. I have the query that I need to run, and was told to download Oracle SQL Developer and Oracle Client.
    I was also given a username and password, a hostname, a port and a SID. I'm a bit confused, do I still need to install Oracle Client? And if so, I can't quite find what it is on the website? I have SQL Developer installed but when I click connect I get:
    "Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection"
    I'm pretty computer literate outside the world of databases so if someone can offer some explanations and guidance, it would be appreciated!
    Thanks!

    933874 wrote:
    Hi,
    I'm a complete Oracle newbie, so please bear with me. I've been doing research on protein clustering and at my lab the SQL developer has been running queries that I can then do statistics on. I have the query that I need to run, and was told to download Oracle SQL Developer and Oracle Client.
    I was also given a username and password, a hostname, a port and a SID. I'm a bit confused, do I still need to install Oracle Client? And if so, I can't quite find what it is on the website? I have SQL Developer installed but when I click connect I get:
    "Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection"
    I'm pretty computer literate outside the world of databases so if someone can offer some explanations and guidance, it would be appreciated!
    Thanks!If you have SQL Developer installed & need to connect to some Oracle DB,
    then you do NOT need Oracle client.
    FWIW - SQL Developer is written in Java & uses JDBC (thin) to connect to the DB
    Is the DB Server on a subnet local to your system?

  • Bug in Oracle SQL Developer

    I had Oracle SQL Developer 1.5.0.53 and when I did a "Check for Update" it said no updates found, even though SQL Developer 1.5.1 was released on June 9, 2008. So obviously this is a bug you need to fix.
    OK - So I downloaded the latest Oracle SQL Developer and installed it and when I opened it up, all my connections were gone!!!
    That's another bug you need to fix.

    See Does check for updates install 1.5.1 for some suggestions for Check for Update.
    For installing 1.5.1 and then losing your connections, did you install in a new directory or over the top of 1.5.0? If yes, then reinstall again into a new directory. If not, did migrate your settings from 1.5.0? Without doing that 1.5.1 won't find your existing connections.
    theFurryOne

  • Help how to connecting Oracle SQL Developer 3.0  with Oracle Database 11g

    Hello,
    I'm new in oracle developer yesterday i setup in my laptop database 11g the last version (11.2.0.1.0), well i follow steps still i got succeed to install, and i got my local host URL and i test my user name and password work very well, my problem now is i try to connect database 11g using Oracle SQL Developer 3.0 (3.0.04.34) but always filed and with my little experience i don't know where the wrong. as i said i test database after finish install is work fine the my URL is https://Ahmed-HP:1158/em and i test my username and password that i already set before is enter normal in my local database, please i need help to know how i connect database with Oracle SQL Developer 3.0 (3.0.04.34).
    Thanks,

    885173 wrote:
    EdStevens, thanks for your quick answer, sorry for my explain was doesn't clear, i open oracle sql developer and choose new connection i set connection name system_orcl username:system password:*i set my password that i create when i setup database*
    -Now the link that i got after finish install database is https://Ahmed-HP:1158/em so i have question about this point Hostname and port if the link to access database is this https://Ahmed-HP:1158/em so this mean i typing at Hostname:localhost and port:1158 ?
    because the message when i test connection always is filed and I'm sure i typing username and password and SID:orcl as i set when install database.port 1158 is what the dbcontrol (Oracle Enterprise Manager) is listening on. OEM is NOT the database. As far as the database is concerned, OEM is "just another client".
    Actually, the database doesn't listen for requests on any port. There is another process, the "listener" that listens for requests to connect to the database. Typically, it listens on port 1521. You should have a tnsnames.ora file set up to resolve a connection request to the correct host. You can read more on this at http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/

  • Editing views in Oracle SQL Developer

    Hi All,
    I have only just downloaded Oracle SQL Developer and have vreated a view. Now I want to be able to go back to that view and edit. When I right click on the view, it gives the option to edit but my scripts to edit isn't there, morre or less telling me to start all ove r again.
    Can some one help on this or am I just to new to the program.
    Many thanks
    Cube60

    Hi,
    I don't seem to get waht you mean. When I right click on my view, then I choose edit, then on the first tab, Entire SQL query, mine comes up as blank.
    When inserting new records on a table with its primary keys based on sequence numbers, it does not automatically pick the nextval in the sequencce.
    For example, before downloading SQL Developer, I used to work in SQLplus and I have created records and have now moved them from that table to history table for records purpose. Lets say I have moved or deleted records with empid 8 -101 to a history table without a link between my source table and my destination table. The next record I should be allowed to enter in SQL Developer should be 102 and not empid 9 as it presently does.
    SQL> select seq_empid.currval from dual;
    CURRVAL
    101
    Any comments or way round this?
    Thanks

Maybe you are looking for

  • Can't connect to Windows 7 Machine

    Hello All, I'm getting increasingly frustrated with this issue! I have a Mac Pro running 10.8.4 that I'm trying to connect to a Windows 7 machine. I need to transfer lots of files from this Mac to the Windows 7 machine as it will be replacing it even

  • Best practice to create multi tier (atleast 3 level) table

    What is the best practice to create multi tier (minimum 3 levels) of table?. Could any one provide a sample structure?. Thanks.

  • What is IS NULL doing in replacing NOT EXISTS operator with an outer join?

    DB version:10gR2 An example from searchoracle.target.com The query which contains a NOT EXISTS operator SELECT M.ModulId, M.Modul FROM MODULE M WHERE NOT EXISTS ( SELECT PROJEKTMODUL.IdModul   FROM PROJEKTMODUL   WHERE M.ModulId = PROJEKTMODUL.IdModu

  • ATV and Denon AVR

    Just got an Apple TV. I've hooked it up to my home theater (to a denon AVR-4806) receiver via component and optical cables. I hooked the component cables into my DBS ports. The ATV works fine as long as I select Pure Direct as the sound mode and I ge

  • MacPro does not react to Clear RAM Preview

    In order to see the movie fluently I make a RAM Preview. That works fine. But I cannot erase the RAM-Preview. Only after restart of motion, the RAM is free again. When I check with "istat pro"-Widget, I can see that the RAM is full and clicking on "c