Another SQL Developer bug - End of file in comment

I found another SQL Developer bug in version 3.0.0.4.
If I try to compile some package from file (so I open file with package body in SQL Developer and assign it to some connection) with this kind of comment: /* comment */ behind end of package, I get this error
I got Error(1250,28): PLS-00111: end-of-file in commentFunny is, that when the package is compiled directly from the database - it works.
When I try to compile the package from file with this kind of comment --comment behind the end of package, it also works...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Hi, I think I finally got it. This looks like an ugly fat bug :)
First, we are not using the .sql extensions. For package specification - we use .pks. For package body - we use .pkb.
Create this script:
CREATE OR REPLACE PACKAGE TEST_xxx AS
PROCEDURE TEST_PROCEDURE;
END TEST_xxx; /*0123456789*/Now save this as e.g. "TEST.pks" file. Open this file in SQL Developer and compile it. You will get the "Error(3,27): PLS-00111: end-of-file in comment".
Now look at the result in the database -> Open the package specification from the database and you see this:
create or replace
PACKAGE TEST_xxx AS
PROCEDURE TEST_PROCEDURE;
END TEST_xxx; /*0123456789*The last slash is missing...
Now go back to the file with the package specification and delete one letter from the comment. Compile it again... it works now.
It looks like the length of this kind of comment is limited to 9 characters.
The limitation is there only when:
1) Compiling from file with different extension than .sql !!! If you rename the file to "TEST.sql", SQL Developer opens it as a script file and runs it as a script, so there is no problem with it.
2) It has to be this kind of comment: /* */. One line comments are not limited.

Similar Messages

  • SQL Developer bug or database bug?

    This is in SQLPlus,
    SQL> alter session set nls_date_format='YYYY-MM-DD HH24:MI:SS';
    Session altered.
    SQL> select sysdate from dual;
    SYSDATE
    2006-10-12 12:31:20
    SQL> begin
    2 dbms_session.set_nls('nls_date_format','''DD-MON-YY''');
    3 end;
    4 /
    PL/SQL procedure successfully completed.
    SQL> select sysdate from dual;
    SYSDATE
    12-OCT-06
    dbms_session.set_nls works perfectly, however, in SQLDeveloper, when I run the same thing:
    alter session set succeeded.
    SYSDATE
    2006-10-12 12:30:42
    1 rows selected
    anonymous block completed
    SYSDATE
    2006-10-12 12:30:42 <-- Notice how the format is not changed.
    1 rows selected
    I am wondering if this is a SQLDeveloper bug(more likely) or database bug?

    I run the following in SQLDeveloper,
    alter session set nls_date_format='YYYY-MM-DD HH24:MI:SS';
    select * from v$nls_parameters where parameter='NLS_DATE_FORMAT';
    select sysdate from dual;
    begin
    dbms_session.set_nls('nls_date_format','''DD-MON-YY''');
    end;
    select * from v$nls_parameters where parameter='NLS_DATE_FORMAT';
    select sysdate from dual;
    Here's the output from SQL Developer:
    alter session set succeeded.
    PARAMETER VALUE
    NLS_DATE_FORMAT YYYY-MM-DD HH24:MI:SS
    1 rows selected
    SYSDATE
    2006-10-13 12:38:06
    1 rows selected
    anonymous block completed
    PARAMETER VALUE
    NLS_DATE_FORMAT DD-MON-YY <-- This proves it's not the database.
    1 rows selected
    SYSDATE
    2006-10-13 12:38:06
    1 rows selected
    I believe this proves beyond doubt, that it's SQL Developer bug. Perhaps caching NLS settings?

  • SQL Developer generates strange trace files on server

    Hello out there,
    I observed the generation of some strange trace files on the database server (Oracle 11.0.2.0.2 64bit on Win 2008R2).
    Whenever I start SQL Developer (3.2.20.09.87 64bit with JDK 1.7.0_17 64bit on Win7 64bit) for each connection I defined one trace file like this is generated:
    Trace file C:\ORACLE\diag\rdbms\ora\ora\trace\ora_ora_8500.trc
    Oracle Database 11g Release 11.2.0.2.0 - 64bit Production
    Windows NT Version V6.1 Service Pack 1
    CPU                 : 2 - type 8664, 2 Physical Cores
    Process Affinity    : 0x0x0000000000000000
    Memory (Avail/Total): Ph:990M/3959M, Ph+PgF:3743M/7918M
    Instance name: ora
    Redo thread mounted by this instance: 1
    Oracle process number: 23
    Windows thread id: 8500, image: ORACLE.EXE (SHAD)
    *** 2013-03-06 08:04:13.842
    *** CLIENT ID:() 2013-03-06 08:04:13.842
    *** SERVICE NAME:() 2013-03-06 08:04:13.842
    *** MODULE NAME:() 2013-03-06 08:04:13.842
    *** ACTION NAME:() 2013-03-06 08:04:13.842
    Breaking the connection before proto/dty negotiation, error raised 3113I enabled listener log to find out the origin of this and it contains lines like the following:
    06-MRZ-2013 08:04:13 * (CONNECT_DATA=(CID=(PROGRAM=null)(HOST=__jdbc__)(USER=null))(SERVICE_NAME=ora.vu)(CID=(PROGRAM=null)(HOST=__jdbc__)(USER=null))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.36.143)(PORT=49320)) * establish * ora.vu * 0
    06-MRZ-2013 08:04:13 * (CONNECT_DATA=(CID=(PROGRAM=null)(HOST=__jdbc__)(USER=null))(SERVICE_NAME=ora.vu)(CID=(PROGRAM=null)(HOST=__jdbc__)(USER=null))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.36.143)(PORT=49322)) * establish * ora.vu * 0
    06-MRZ-2013 08:04:13 * (CONNECT_DATA=(CID=(PROGRAM=null)(HOST=__jdbc__)(USER=null))(SERVICE_NAME=ora.vu)(CID=(PROGRAM=null)(HOST=__jdbc__)(USER=null))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.36.143)(PORT=49323)) * establish * ora.vu * 0
    06-MRZ-2013 08:04:13 * (CONNECT_DATA=(CID=(PROGRAM=null)(HOST=__jdbc__)(USER=null))(SERVICE_NAME=ora.vu)(CID=(PROGRAM=null)(HOST=__jdbc__)(USER=null))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.36.143)(PORT=49325)) * establish * ora.vu * 0
    06-MRZ-2013 08:04:14 * (CONNECT_DATA=(CID=(PROGRAM=null)(HOST=__jdbc__)(USER=null))(SERVICE_NAME=ora.vu)(CID=(PROGRAM=null)(HOST=__jdbc__)(USER=null))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.36.143)(PORT=49329)) * establish * ora.vu * 0
    06-MRZ-2013 08:04:14 * (CONNECT_DATA=(CID=(PROGRAM=null)(HOST=__jdbc__)(USER=null))(SERVICE_NAME=ora.vu)(CID=(PROGRAM=null)(HOST=__jdbc__)(USER=null))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.36.143)(PORT=49331)) * establish * ora.vu * 0The IP address is mine and I have excatly 6 connections defined for that server. On other servers, similar trace files are generated, one for each connection in my SQL Developer.
    This also occurred with JDK 1.6 so I don't think it's a Java issue.
    Besides the generation of the trace files there seem to be no other problems.
    Any ideas?

    Hi,
    I think Srini is probably correct. The noted bug applies to 11.2.0.1 and up, is fixed in 12c, and included in an 11.2.0.3 patch. However the version of SQL Developer also affects the creation of trace files on product startup (prior to any user initiated db connect attempts).
    For example,
    A. SQL Developer 3.1.07.42 - no such trace files created.
    B. SQL Developer 3.2.20.09.87 - such trace files created for 11.2.0.1 connections, but not 10g XE or 12c connections.
    So I presume an OCIServerAttach call got added in 3.2.2, not sure in support of which feature, but the bug will only impact users of 11.2.0.1, 11.2.0.2, and unpatched 11.2.0.3 DB releases.
    Regards,
    Gary
    SQL Developer Team

  • Fallo en SQL Developer , bugs in SQL Developer

    He detectado que si hacemos clic con el botón derecho sobre una tabla y seleccionamos EXPORT ==> SQL INSERT. la exportación no se lleva a cabo.
    ¿Alguien ha detectado este problema?

    Mucho mas tarde, doy confirmacion del problema en mi sistema Linux SuSE 10.0 con Oracle 10g release 2 y la ultima version de SQL Developer (Build 14.67). No tengo ningun dato en el fichero ni en el "clipboard". Pero si no selecciono todas las columnas, el fichero o el clipboard se rellenan normalement. Eso explica que algunos dicen que funciona y otros que no funciona.
    Como solucion pratica, creo una vista (view) con una columno mas ( *, 1 as nada) y no la selecciono. Solo me queda cambiar el nombre de la tabula en el texto SQL que produce la exportacion.
    A few weeks later, I certify there is a bug (en my Linux SuSE 10.0 system con Oracle 10 g release 2 and Build 14.67 of SQL Developer). I obtain an empty file or nothing in the clipboard. If I don't select all fields, the file or clipboard are full of data. This explains why some assert there is no problem and other say there is one. As a practical solution, I created a view with an extra field ( *, 1 as dummy) and didn't select it. I only have to rename the table in the exported SQL text.

  • Stupid SQL Developer bug

    Hi,
    I have this problem. I open some table in SQL Developer, scroll in the middle, put focus on some cell or entire line. Then I open another table in another tab. Then switch back to the first tab. The focus is still as it was before, however the table is always scrolled to the first line.
    This happens everytime when I switch to another table tab, so I need always to scroll back. When I switch e.g. on another package and then back, the scroll position is correct...
    Is there any workaround or bug fix. It is really annoyng...
    Thanks, Dan

    Well the carret position is preserved even when you scroll down with a mouse and than click some cell or select entire line. Only the table is scrolled back to the top...
    Lets hope they will fix this soon together with dozen of other bugs.
    To mwickham:
    I use pin by default, otherwise new table would open always in the same window...

  • View jobs with SQL Developer and export to file with delimiter

    Hi,
    is there a way to view, create and alter my database jobs with SQL developer?
    And is it possible to export tables, views or simple queries to file delimited different from the CSV standard?
    Diego.

    Hi and Welcome to the Forum!!
    To select data from a table or a view you must use the SELECT sql command. Example to get the data from your view you can
    select ZMATNUM,ZMATCUR,ZMATATTR from ZMATERIALAs you have said you are using SQL Developer just execute the above query in your sql developer and it will show the data. Right click the grid and export the data to excel file.

  • HOW TO: Open SQL Developer from a batch file with specific tables opened

    I use SQL Developer daily as I develop database intensive programs.
    ** Question **
    How can I define a specific configuration of tabs (i.e. tables, procedures, etc) to be opened upon startup of SQL Developer?
    For example, creating a .BAT file to open SQL Developer with a specific set of table tabs already opened. This will save me the time every morning I use to open SQL Developer and configure all the tables I need opened.
    NOTE: I have tried various options of appending a table name to a command line starting sqldeveloper.exe. For example: ..\sqldeveloper.exe mydatabase.mytable. However, this only opens a worksheet tab with the name "mydatabase.mytable" but does not open my actual table.
    Any help will be appreciated.
    - Gary Davis

    what version are you using? Sql Dev 1.5?
    Not an exact answer, but you could try using Table FILTER
    click on your connection
    right button on TABLES
    click apply filter
    as for your question, check out:
    Re: EA1 - Automatically open connection list at startup?
    or
    SQL Developer

  • SQL Developer Bug: NVL() function error when debug/run stored procedure

    Version:
    SQL Developer: 1.5.3 (build main-5783)
    Oracle DB connected: Oracle9i Enterprise Edition Release 9.2.0.6.0
    Stored procedure code like this:
    procedure search(V_STATUS_IN IN CHAR(1)) is
    begin
    declare
    V_STATUS CHAR(1) := NULL;
    begin
    V_STATUS := NVL(V_STATUS_IN, '%'); -- error line
    end;
    end;
    The stored procedure runs well (I mean no oracle exception) when called through Java code (and in TOAD). But when debug/run in SQL Developer, following error at the error line:
    $Oracle.EXCEPTION_ORA_6502:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    --------------------------------------------------*/

    What parameter are you passing in? It is possible you are trying to cram a multibyte character into a singlebyte container. What are the nls settings for the database and for sqldeveloper?

  • Sql developer bug list

    I find the link of sql developer 1.2 bug fix list. Where can I find the place of bug list of sql developer 1.2 so that we can pay attention to the bugs?

    With a Metalink account, users can ask if a bug has been logged and if it is logged to be made public. If there is no bug, a new bug can be logged. Development teams across Oracle use the bug database all the time to track issues. This includes issues between releases and those raised during the development cycle. It does not make sense to publish all bugs.
    While monitoring this forum, the SQL Developer team logs bugs and, when related to a specific thread, provide the bug number and publish the bug. Metalink remains the primary support mechanism for logging and tracking bugs.
    Sue

  • SQL Developer bug? It does not return DATEs if database is only MOUNTED

    I'm logging into a mounted database as SYS to check on things using the V$ views, but any query I do involving DATEs never returns any data. If I remove the DATE column, the query works fine. If the database is OPEN, the query works fine with the DATEs. This is a bit of a problem when I want to check on standby databases for example. Is this the way it's supposed to work?
    Help!

    The original thread appeared to have gone nowhere, so I raised the issue again. If I have violated forum rules, please forgive me.
    I have a choice of using either TOAD or SQL Developer at the site that I have just started at, and I have not used either much. I was leaning towards SQL Developer as its price to functionality ratio is very attractive. However, this issue of not working with a mounted database is a show stopper for me for SQL Developer as I prefer to use a single tool that handles all of the DBA work that I do. So far, TOAD does, and SQL Developer does not.

  • SQL Developer BUG - ORA-00980 Synonym Translation No Longer Valid

    We have a read only database of our Production and when I try to access any data using the SQL Developer, I'm getting the following Error.
    Error at Command Line:1 Column:14
    Error report:
    SQL Error: ORA-00980: synonym translation is no longer valid
    If I access the same from SQL Plus, Toad or SQL Station, It works fine. Seems some error in SQL Developer.
    Any one with Ideas or suggestions.

    we have DB cloned from Prod everynight and is available for us on readonly access. No read /write privs to any user including DBA.
    I think the DB is opened with ALTER DATABASE OPEN READ ONLY;
    Also to mention, all the tables in the db can be accessible only by read only user who was given select permission on synonyms.
    --VB                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Exported CSV files are locked by Oracle SQL Developer 2.1.0.63

    Whenever I export my query result into a CSV file, the resulting file is always locked for editing by Oracle SQL Developer 2.1.0.63.
    Have anybody encountered the same problem? Do you know how can I report this as a bug to Oracle?
    Thanks,
    Adrian Wijasa
    Banner Programmer/Analyst
    College of St. Benedict/St. John's University MN
    [email protected]

    I got it too if I left SQl Developer open then go to Excel to edit my CSV - got message 'table_export.csv is locked for editing by another user'. If I close SQL Developer then open the file, it works. Seems SQL Developer's holding onto the file after creation.
    Bugs are being reported in this forum.
    Evita
    Edited by: Evita on Jan 8, 2010 12:53 PM

  • Oracle SQL Developer - File, Open , File Name Not Accept UNC Path Form

    In Oracle SQL Developer, at least the File, Open (Dialog's), the File Name (if not all File / Directory Name) Text Box(es) is (are) not accepting, at least for me, the UNC Path Form of Folders on Network Servers. The same UNC Path (or UNC Paths in general) works in the File / Directory Name Text Box of every other Windows App I've tried (from Windows 95 to Windows 7). Is there a way to do this? If not, was it intentional and where can I suggest this as a fix / enhancement?
    I'm using Windows XP w/ SP3.

    DUH! I figured out what happened. In my first search, I searched (using "Actions", "Filter", "Column" option) for "Title Contains 'UNC'" which didn't find anything because the single-quotes were considered literals (which isn't consistent with the "Row" option or with the technical SQL syntax one would expect given technical operators like "!=", pffft, "!="??? Really???). Then, all subsequent searches returned nothing, because all previous searches are combined with implied "And" Operators until you select "Actions", "Reset" (which isn't consistent with any Web / Desktop App search feature I've ever seen). Don't get me wrong. The latter is a great feature. It just needs to be documented better.
    It probably wouldn't hurt to: a) include easily visible tips on whether single / double quotes are needed and b) show an "And" Operator in front of each previous search listed so people won't mistake it for simply a Search Criteria History vs. Current Search Criteria, oh and add a heading that labels it as, oh, IDK, "Current Search Criteria", maybe? IDK, call me crazy (or just another stupid user posing as a developer with 16 years experience ;).

  • SQL Developer 1.1.3 refuses to acknowledge TNSNAMES file

    I can't figure out what I'm missing.
    I've created the system variable TNS_ADMIN and pointed it to "C:\orant\NET80\ADMIN".
    I've created the folder "C:\orant\NETWORK\ADMIN" (which should correspond to "$ORACLE_HOME\NETWORK\ADMIN") and placed a duplicate copy of my TNSNAMES.ORA file there.
    My other tools (Benthic's Golden Retriever, SQL*Plus, Oracle Reports 6i, etc.) can all see that my TNSNAMES file is in the right place and can use the connection data it contains, but SQL Developer refuses to acknowlegde its existence.
    What more can I do?
    I'm using Windows XP Pro with SQL Developer 1.1.3. Our database is Oracle 10g.

    I just had the very same problem on linux.
    I had these exports:
    declare -x ORACLE_HOME="/usr/lib/oracle/xe/app/oracle/product/10.2.0/client"
    declare -x TNS_ADMIN="/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/network/admin"
    declare -x TWO_TASK="ORACLEXE"
    My tnsnames.ora file was in the TNS_ADMIN directory.
    After reading your tip I copied the tnsnames.ora-file to /etc and now SQL-Developer suddenly reads the file. I'm happy that I now have a workaround, but this sure is irritating.

  • Add sql files in sql developer

    Hi. I am new at sql developer. My teacher gave me two files both sql file format, and told that i should make a new user in sql developer and add this files to make new tables and then he gave me some exercises to do on this tables. I made new user but i don't know how to use this 2 sql files and how to make tables using them. here you can see that files: http://www.2shared.com/file/BTxqsts0/scott.html . please help
    Edited by: Mateo Falcone on Mar 3, 2011 3:33 AM

    Didn't they teach you how to use this program?
    I suggest you go through the tutorials inside sqldev's help first.
    Basically, you can just open them through File - Open, or through Windows' Explorer. Then assign the connection in the upper right corner, and Run Script (F5).
    Have fun,
    K.

Maybe you are looking for

  • Email Actions with duplicate partners

    HI All,     I am sending out 'automatic' emails using Actions to all partners having a "Z0000134" partner function on creation of a transaction. The other partner functions in the transactions are of the type Employee responsible and Z copy of Activi

  • The HDD LED doesn't work !! Any Idea ?

    Hi everyone .. I have MSI Neo Platinum Mainboard , I installed a S-ATA Harddisk only on the Mainboard , no ATA , but the HDD LED on the Case doesn't work .. There is no Light ... Is this light only for ATA Harddisks wich are installed on IDE ?? Any i

  • How to adjust logical system after coping PRD to QAS in tabels

    Hello I wonder how to adjust logical system after coping PRD to QAS in tabels. I know (the logical system changes) but there is a transaction which adjustes entries in tabeles...

  • Tech Specifications! Doubt!

    Hi!     I want to know technical spec is carried in separate hard copy document or in mail.    Pls reply.

  • Connecting 2720 via bluetooth on toshiba 5100 pc

    Hi! When I use either OVI suite or Pc suite the bluetooth connexion is not available. However I am able to connect directly thru my PC bluetooth service center. On the phone I can see the connexion but I can not use it to synchronise. I have checked