BUG in Oracle SQL Developer 3.0.04 on the "generating DLL" with comments?
I'm newbie on oracle, but I think that I found out a bug in Oracle SQL Developer version 3.0.04 on the "generating DLL" tool using "comments".
I will describe the steps that I gave:
I created a view, but after I test it I had to change my “where” condition, so I comment the old code and then I wrote the new “where” condition below. After I done that I tried to look at the sql code of my view using “generating DLL” tool, but oracle sql developer only shown me half of the code, a lot of code were missing. Then I began with some test trying to understand what happen and I notice that if I put an invalid sql code in my comment the generating DLL start working with no problems, for example(pseudo-code):
(COMMENT WITH VALID SQL CODE the "Generating SQL" don't work:)
CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
AS
SELECT column1, column2
FROM table1
INNER JOIN
(SELECT
FROM table2
INNER JOIN .....
INNER JOIN ....
--where time_stamp = (select max(time_stamp) from .....)
WHERE time_stamp >= TRUNC(sysdate)
) t1 ON t1.ID = ....
AND ..... >= TRUNC(sysdate)
ORDER BY ....
Generating DLL returns this(when the error occurs):
CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
AS
(COMMENT WITH VALID SQL CODE the "Generating SQL" work with no problems:)
CREATE OR REPLACE VIEW <user>.<view_name> ( <column1>,<column2> )
AS
SELECT column1, column2
FROM table1
INNER JOIN
(SELECT
FROM table2
INNER JOIN .....
INNER JOIN ....
--where
WHERE time_stamp >= TRUNC(sysdate)
) t1 ON t1.ID = ....
AND ..... >= TRUNC(sysdate)
ORDER BY ....
I believe that "Generating DLL" tool have some problem with the comments, I also used /*...*/ to comment but the problem is still active.
I notice as well that if I started to add some more comments along the code, the conditions migth change, so I think the problem is related with "comments" code.
Would you mind telling me if this is a real bug or if I'm doing anything wrong.
Thank you in advance,
Rodrigo Campos
Edited by: 894886 on 3/Nov/2011 5:29
Hi Rodrigo,
Thank you for reporting this. The only bug I see currently logged on a comment affecting the generated View DDL involves ending the last line of the definition with a comment, which treats the ending semi-colon (even if on a different line) as part of the comment. That is actually related to a low-priority bug against an Oracle database API.
Unfortunately, your pseudo-code is a bit complex. Trying a few quick, simpler tests against the standard HR schema did not reproduce the issue. I tried INNER JOIN, and nested SELECTs. It would help greatly if you could provide a test case compilable against one of the standard schema, like HR or SCOTT.
Regards,
Gary
SQL Developer Team
Similar Messages
-
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 -
Hi,
Every single time I try and browse data in one of my tables, I get the annoying "Connection is currently busy. Try Again?" pop-up alert message with "Try Again" and "Abort" options.
This is very annoying and I dont know how to stop it happening.
Is this a bug or can someone suggest a setting I can try to get around it?
Cheers,
JulianI don't know if it's worthwhile raising issues with v3 as the developers are now working on v4. You can download an Early Adopter version available on OTN I think.
If you're new to SQL Developer, it's worth knowing that a single click on an item in the navigator tends to do what you would expect a double-click to do. I think a double click can cause the same action to be started twice. -
Using bind variables in Oracle SQL developer
Hi all,
i am using Oracle SQL developer. i want to use the bind variable in my sql.
variable myid number :=1;
select * from mds_3618_request where id = :myid;
but i am getting the below error.
Error starting at line 2 in command:
select * from mds_3618_request where id = :myid
Error report:
SQL Error: Missing IN or OUT parameter at index:: 1
Does Oracle SQL developer support bind variables in the SQL statements?
thanks in Advance
Vali ShaikYou are probable going to get a quicker answer on this forum : SQL Developer
-- Andy -
Oracle SQL Developer 3.0: PL/SQL debugging of anonymous blocks: ISSUES
Hello,
I just downloaded the Oracle SQL Developer 3.0. I have been using the EA releases as they came into existence and was happy to see the released version. So I immediately tried to debug an anonymous block (something I did not try to do in the EA releases), and nothing happened.
The "Debug" was grayed out and the key-chord "ctrl-shift-F10" did nothing. I found this forum:
Re: 30EA1: anonymous block debugging?
and followed Vadim Tropashko's advice. This did nothing for my anon. block but worked fine for the simple example.
So I started to whittle my anon. block down to find the culprit, here is a repeatable breaking point for me:
declare
stmt1 long;
stmt2 long;
stmt3 long;
stmt4 long;
p_data varchar2( 500 );
i varchar2( 10 );
BEGIN
STMT1 := 1;
STMT2 := 1;
STMT3 := 1;
STMT4 := 1;
--the moment this is in the block "Debug" is no longer an option
select
SendDocumentResult
into
p_data
from
XMLTABLE( '/data'
PASSING
xmltype.createxml( '<?xml version="1.0" encoding="utf-8"?><data><SendDocumentResult>test</SendDocumentResult></data>' )
COLUMNS SendDocumentResult varchar2( 1000 ) PATH 'SendDocumentResult' ) ;
end;The moment I have the SELECT INTO ... XMLTABLE() it fails (a normal SELECT INTO works just fine).
Is this a problem with my environment or is a problem with SQL Developer 3.0.04. Looking over K's comments, it seems the debug worked for 'simple' blocks, so I wonder if this is just out-of-scope...
My environment:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
and Oracle SQL Developer
3.0.04 (Buld Main 04.34 with bundled Java) on a Window's XP box.Thanks, I'll survive. Just my luck, the first item I try to anon. debug didn't work! :)
thanks, hopefully this problem will be few and far between -
How to create databse in oracle sql developer
Hi am using oracle sql developer but while connecting to the database i am getting error of network adapter
if any buddy has a solution then fill free to post
Thanx and Regards
UmeshCan you be a little more specific with the error? The "network adapter" errors I've seen myself have been because SqlDeveloper can't connect to the database, either because the wrong host/port was given, or because a firewall was blocking the port.
-
IO Error 17002 in Oracle SQL Developer
Hi,
I am trying to connect to the test database using the Oracle SQL developer but I am getting the below error
IO Error: The network adapter could not establish the connection vendor code 17002
I used to connect to the test server fine 2 weeks ago (the test server is on another network and i connect to it using the VPN).
I am able to connect the the Production Database through the Oracle SQL developer (without VPN) but when I try to connect to the test i am getting the error.
I have checked the service name and ports and everything is fine and. So what could be the problem?I am not able to connect through sql/plus as well
However, I am able to ping the test server -
i, I’m using Oracle Sql Developer write some queries in the PoepleSoft data base, and I need to count number of guests ( Field name: NA_GUEST_USER_SEEL) attended in the event and extracts from the record( table name: NA_CR_TEST_SEEL ).
Also, please suggest me a query to write that can pull the data from the metrics. All guests are brought in by each seater. The fields are as follows...
Table name: NA_CR_TEST_SEEL
Seater’s filed name: NA_RAE_SEATING_CHR
Guest Field name: NA_GUEST_USER_SEEL
PeopelSoft Campus Solutions, CRM
An early response would help me to take it forward the work
Thanks
Reddy,Hi, I would like to send an attachement that has screens of PeopleSoft Campus Solutions CRM for a). Participants for an Event that has the fileds like Seating, Guest User
and other screen b). Performance Metrics screen
1. We need to find out the ‘Total Guests registered for the Events.
2. Total Guests registered for Roll-up
please assit me how I can send you the document that I'm facing the problem. -
Oracle SQL Developer O/P and Toad O/P is Different for Same QUERY.
Hi,
can any one calrify me why i'm getting different result when i run the same QUERY in Oracle Developer and TOAD.
When i Ran a Query in TOAD i could see Null&Data in a column called Customer_Category but when i Ran the same Query in Oracle SQL Developer i'm getting all Null N i couldnt see any data in the column.
i have not performed any DDL r DML statement, just i got the Query and i Ran it in TOAD & Oracle SQL Developer.
I found that the OUT PUT is different for perticular column.
Thanks in Advance....> I found that the OUT PUT is different for perticular column.
The RENDERING of data from Oracle (or any other server such as a POP3 server, web server, etc) IS DONE BY THE CLIENT.
So to repeat - RENDERING IS DONE BY THE CLIENT.
If one client selects to display the output received from the server differently than another client, it is a CLIENT ISSUE.
It is not a server issue. It is not a SQL issue. It is not a PL/SQL issue.
In other words, wrong forum for this question. You have a pure client side rendering problem which has absolutely nothing to do with SQL and/or PL/SQL. -
Oracle SQL Developer Data Modeler start up error
Hi All,
I just downloaded Oracle SQL Developer Data Modeler (2.0.0.57.0) [Released 1 July 2009] by selecting the option "Oracle SQL Developer Data Modeler for Windows (This zip file includes the JRE)"
After I installed the same and tried to run it by clicking datamodeler.exe, I get the following error message
"unable to create an instance of the Java virtual machine located at path:..\jdk\jre\bin\client\jvm.dll"
On the same machine I can successfuly run the Oracle SQL Develper with no errors. My machine is having Windows XP Professional SP3.
Any ideas? If there was a problem with Java, than the Oracle SQL Developer should also not run. But as stated it runs with out any error but the Oracle SQL Developer Data Modeler gives the above error.
Regards,
JAA1491 - The above problem has nothing to do with the memmory. I tried on a 400 MB RAM, 900 MB RAM, 1.5 MB RAM & 2 MB RAM with the same arror.
"unable to create an instance of the Java virtual machine located at path:..\jdk\jre\bin\client\jvm.dll"
http://i30.tinypic.com/9vkwf6.jpg
2 - There are two "datamodeler.exe: files
One is at D:\datamodeler\datamodeler.exe
2nd is at D:\datamodeler\bin\datamodeler.exe
The same error occurs with both the files.
3 - The Oracle SQL Developer Data Modeler version is "Oracle SQL Developer Data Modeler (2.0.0.57.0) [Released 1 July 2009]" and the file I downloaded is "Oracle SQL Developer Data Modeler for Windows (This zip file includes the JRE) - (57M)"
If I look in "D:\datamodeler\jdk\jre\README.txt" I find
"Java(TM) Platform, Standard Edition Runtime Environment Version 6"
If I run "D:\datamodeler\jdk\jre\bin\javacpl.exe" I get
http://i30.tinypic.com/mt8ocn.jpg
If I run "D:\datamodeler\jdk\jre\bin\jureg.exe" I get
http://i28.tinypic.com/30boiyo.jpg
If i check at the control panle add/remove program
http://i30.tinypic.com/1428tba.jpg
If I go to "http://www.java.com/en/download/manual.jsp" and download "jre-6u16-windows-i586-s.exe" and run it.
If I go to "C:\Program Files\Java\jre6" I find the same files as in "D:\datamodeler\jdk\jre"
I am able to run Oracle SQL Developer with out any kind of error let alone the above one. But with Oracle SQL Developer Data Modeler I get the above mentioned error no matter what I try.
As the error states "unable to create an instance of the Java virtual machine located at path:..\jdk\jre\bin\client\jvm.dll". The file "jvm.dll" is located at two places. One at "D:\datamodeler\jdk\jre\bin\client\jvm.dll" and the second at "D:\datamodeler\jdk\jre\bin\server\jvm.dll"
A similiar problem occurs with JDeveloper with the fllowing solution
http://forums.oracle.com/forums/thread.jspa?threadID=506339&start=0&tstart=0
Which states the following
"hello!
in the problem with JDeveloper i have a solution. The jdk have a file jvm.dll in the path: jdk/jre/bin/client/jvm.dll this is the problem ... now in the path:jdk/jre/bin/client/ojvm has a file with the same name if you copy and paste this file to the another path, now its works fine your Jdeveloper.
Jdeveloper use two files to jvm.dll to work one in the folder /client and other in /server copy the same file to the two locations for precaution
for me work fine thanks..."
I tried to do the same (Copy from client folder to server folder)
D:\datamodeler\jdk\jre\bin\client\jvm.dll
COPIED THIS FILE TO
D:\datamodeler\jdk\jre\bin\server\jvm.dll
Nada. So I reversed it (copied from server folder to client folder)
D:\datamodeler\jdk\jre\bin\server\jvm.dll
COPIED THIS FILE TO
D:\datamodeler\jdk\jre\bin\client\jvm.dll
Does not work. So I tried another solution stated at the same forum entry
"Well,
i solved the problem by this way :
<SQLDEVELOPER>/jdev/bin/ide.conf
In this file, change this line :
AddVMOption -Xmx512M
by
AddVMOption -Xmx256M
Now, the executable is lauching correctly. No more errors with Java Virtual Machine.
But is it a good thing to solve it like that ?"
But the ide.conf file is only at "D:\sqldeveloper\ide\bin\ide.conf" which is for the SQL Developer and not the SQl Developer Data Modeler
Correct me if I am wrong but
JRE = Java Run Time Envoirment
JDK = Java Development Kit
And Oracle SQL Developer Data Modeler needs JRE and not JDK. In any case I download JDK
jdk-6u14-javafx-1_2-windows-i586.exe (121,306 KB) and installed it but no succcess.
I tried every thing except completely re-install my whole PC.
Any help will be much appreciated.
Cordially,
Jawad -
How to hide system tables when using the Oracle SQL Developer?
Hi,
I would like to know how can I show only the tables that I created under the Tables tree? I didnt find a way to create a separate database using the Oracle Sql Developer. I see all the tables together, and would like to differentiate between different databases.
Can anyone explain to me how to do these things?
Thanks,Hi,
I would like to know how can I show only the tables that I created under the Tables tree? Your posting is not clear,again tell something more on tables tree,what u want to achieve with it.
How to hide system tables when using the Oracle SQL Developer? if u connected with sys, system or user with dba role then u have a privilege to see these tables,so revoke the privilege/role from ur user to view this tables if ur connected other then sys,system,
I didnt find a way to create a separate database using the Oracle Sql Developer. DBCA is a tool for creating the new database.
Kuljeet -
Oracle SQL Developer Data Modeler 3.0 Bugs, Resolution and workarounds
The purpose of this thread is to list bugs discovered while using ORACLE SQL Developer Data Modeler 3.0
Mainly with SQL SERVER 2005 and ORACLE 10g models.SQL Server Physical model doesn't save table identity column.
here are the steps to get this bug:
1. create a table in relational model with a column as an integer to be used as an identity.
2. create or open a physical model for SQL-SERVER 2005
3. open the table in the physical model
4. edit the integer column property dialog
5. tick the identity check box and close the property dialog
6. save the model and close it
7. open it again, you will find the identity check is removed! (probably not saved from the start) -
Oracle SQL Developer 3.2, SQL*Plus COLUMN FORMAT bug
SQL*Plus command COLUMN truncates output result in SQL Developer.
Script in Worksheet:
column nn format 999
select level nn from dual connect by level<=10;The Run Script (F5) result contains only 8 lines in Script Output window:
NN
1
2
3
4
5
6
7
8
Changing column alias:
select level nn2 from dual connect by level<=10NN2
1
2
3
4
5
6
7
8
9
10
10 rows selected
The output can contain no data for more formatted columns.
===============================================================
About
Oracle SQL Developer 3.2.09
Version 3.2.09
Build MAIN-09.30
Copyright © 2005, 2012 Oracle. All Rights Reserved.
IDE Version: 11.1.1.4.37.59.48
Product ID: oracle.sqldeveloper
Product Version: 11.2.0.09.30
Version
Component Version
========= =======
Java(TM) Platform 1.7.0_02
Oracle IDE 3.2.09.30
Versioning Support 3.2.09.30sqldeveloper64-3.2.09.30-no-jre.zip.
My jdk now is 1.7.07 x64, Windows 7 x64.
C:\Java\jdk17\bin>java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
Gary Graham wrote:Also, I don't understand what you mean by
The output can contain no data for more formatted columns.
Sript:
col owner format a10
col table_name format a20
col column_name format a20
col comments format a50
select
row_number() over(order by column_name) r11,
count(*) over() c11,
owner ow,
table_name tn,
column_name cn,
comments co
from all_col_comments t
where owner='SYS' and table_name='INDEX_STATS';
select
row_number() over(order by column_name) r,
count(*) over() c,
owner,
table_name,
column_name,
comments
from all_col_comments t
where owner='SYS' and table_name='INDEX_STATS';
select 1 from dual;
prompt abcThe output truncated after headers of second queryR11 C11 OW TN CN CO
1 25 SYS INDEX_STATS BLKS_GETS_PER_ACCESS Expected number of consistent mode block gets per row. This assumes that a row chosen at random from the table is being searched for using the index
2 25 SYS INDEX_STATS BLOCKS blocks allocated to the segment
3 25 SYS INDEX_STATS BR_BLKS number of branch blocks in the b-tree
4 25 SYS INDEX_STATS BR_BLK_LEN useable space in a branch block
5 25 SYS INDEX_STATS BR_ROWS number of branch rows
6 25 SYS INDEX_STATS BR_ROWS_LEN sum of the lengths of all the branch blocks in the b-tree
7 25 SYS INDEX_STATS BTREE_SPACE total space currently allocated in the b-tree
8 25 SYS INDEX_STATS DEL_LF_ROWS number of deleted leaf rows in the index
9 25 SYS INDEX_STATS DEL_LF_ROWS_LEN total length of all deleted rows in the index
10 25 SYS INDEX_STATS DISTINCT_KEYS number of distinct keys in the index
11 25 SYS INDEX_STATS HEIGHT height of the b-tree
12 25 SYS INDEX_STATS LF_BLKS number of leaf blocks in the b-tree
13 25 SYS INDEX_STATS LF_BLK_LEN useable space in a leaf block
14 25 SYS INDEX_STATS LF_ROWS number of leaf rows (values in the index)
15 25 SYS INDEX_STATS LF_ROWS_LEN sum of the lengths of all the leaf rows
16 25 SYS INDEX_STATS MOST_REPEATED_KEY how many times the most repeated key is repeated
17 25 SYS INDEX_STATS NAME name of the index
18 25 SYS INDEX_STATS OPT_CMPR_COUNT optimal prefix compression count for the index
19 25 SYS INDEX_STATS OPT_CMPR_PCTSAVE percentage storage saving expected from optimal prefix compression
20 25 SYS INDEX_STATS PARTITION_NAME name of the index partition, if partitioned
21 25 SYS INDEX_STATS PCT_USED percent of space allocated in the b-tree that is being used
22 25 SYS INDEX_STATS PRE_ROWS number of prefix rows (values in the index)
23 25 SYS INDEX_STATS PRE_ROWS_LEN sum of lengths of all prefix rows
24 25 SYS INDEX_STATS ROWS_PER_KEY average number of rows per distinct key
25 25 SYS INDEX_STATS USED_SPACE total space that is currently being used in the b-tree
25 rows selected
R C OWNER TABLE_NAME COLUMN_NAME COMMENTS
- - ---------- -------------------- -------------------- -------------------------------------------------- -
Hi, i am new to oracle, SQL DEVELOPER:- ERROR:- ORA-01918
Hi,
I am new to oracle, and i have installed Oracle database 12c enterprise edition, and oracle jdeveloper 12c for adf web application development,
I created a database and a new connection in it using sql developer, however while trying to create new user with the name db1 by right clicking on other users. by following the instructions in oracle documentation site. i get the error that new user db1 doesnt exist, and gives error:- ORA-01981. i even tried by changing the username as i thought may be it doesnt support alphanumeric name, but still i get the same error.
So please tell me how to create a new user. is there any way to get out of this ora:-01918, as i googled and it says this is a bug.
My os is win 7 x64(amd processor ).
Thank you
BaldwinA new user (called a schema in Oracle) is created using the CREATE USER SQL command. You need to be signed in as the SYS schema/user or as a schema that has been granted the rights to create schemas.
12c database comes in two basic flavours. Container database (containing pluggable databases). Standard database. If connected to a container database, you cannot create standard user schemas - you need to be connected to a pluggable database.
Also, your question has no relevance to either the SQL or PL/SQL languages - the subject matter of this forum. Please repost your question to a more appropriate forum dealing with SQL-Developer issues. -
Set indention / tab size in Oracle SQL Developer
I've been poking around for an hour. Can't figure this out.
Where, either on the app's UI or in the "product-preferences.xml" file, can I change SQL Developer's indention (tab) size to 3? My organization uses PowerBuilder, and when I copy+paste our PB SQL (which uses leading tabs) into Oracle SQL Developer, it looks like crap. It would really help if I could change the code editor to a tab size equivalent to three spaces.
And no, we can’t use spaces. :-)
Thanks!
(maybe SQL Developer 2 could have a tab size field in “Preferences”)In 1.5.x, it's under Preferences - Database - SQL Formatter - Alignment and Indentation .
However, at least in the current 1.5.3, a bug ignores the tab preferences completely, so you're stuck with the 2 spaces. If you can't wait until this gets fixed (with luck in the upcoming 1.5.4 or else maybe by 2.0), revert to an earlier version.
Regards,
K.
Maybe you are looking for
-
Can u buy the iphone 5S unlocked in america
Can u buy the iphone 5S unlocked in america?
-
Premiere Pro CS4 crashes and system shuts down while rendering
Hi All, Good morning everyone, my system shuts down while rendering using Adobe media encoder from premiere pro. I have tried the following: 1.Completely removing CS4 and reinstalling. 2. Updating all the video drivers. 3. Re installing the Operating
-
Spry XML Dataset Video Gallery Question
Hi there, We are trying to create a video gallery using a Spry XML Dataset. It's currently working in FF and Safari, but not working in IE6-7 or Opera. Here is a link... http://www.rightsidedesign.com.au/test/tv.html IE seems to display the content f
-
How can i make a report in APEX that would make a 3 column table as follows: <table> <tr> <td><img href="picture for object 1">Name: Object1</td> <td><img href="picture for object 2">Name: Object2</td> <td><img href="picture for object
-
New BPEL project with CLI?
Hi, for building java webservices i can use the Wizard from JDev or as CLI the wsa.jar. Is there a way to build new BPEL projects via command line? Thanks