DBMS Output - Oracle SQL Developer 3.0 Early Adopter 2 (3.0.02.83)
The DBMS output is not working in 3.0.02.83. Whenever i turn on the DBMS Output for a DB connection nothing happens. I run the same script in older versions and it works. The script could be as simple as a small anonymous block with a print statement (dbms_output.put_line)
Currently it's broken but you have a workaround
30EA2 dbms_output.put_line not working
Hope it helps,
Dani
Similar Messages
-
Can SQL Developer 3.1 Early adopter be used on production ?
Can SQL Developer 3.1 Early adopter be used on production ?
Can , sure. Advisable , not officially.
Your call...
Regards,
K. -
When I edit PL/SQL packages or sql queries in SQL Developer 4.0 Early Adopter 2,
when i copy/paste SQL code, sometimes "Please amend your code to something like this: "select * from when", or "begin when; end;" appears.
Sometimes SQL Developer freezes.
Can I avoid that message (turn off some kind of checks in SQL Developer properties)?This has been raised/documented fixed in future releases here:
EA42 - Ambiguous Context Pop-up -
Issue with SQL Developer 4.1 Early Adopter 2 - start sql-script by "@"
Hi,
today i realized, that starting a sql-script by writing @scriptname.sql in a sql worksheet and press F9 to start the script, does not work anymore.
With EA2 there is always an error message shown like "unkown command" with some strange characters "�������������������������������" in the script logging window.
The sql-scripts are located in a filesystem folder the os environment variable SQLPATH points to.
In Version 4.0.x this worked perfect! Is this a planned "feature" or just a bug in EA2 fixed in later EA versions?
In addition, when i open such a sqlscript with the file open menu in sqldeveloper the content of the sqlscript is not shown in the script window. There are only some none printable characters "�����" displayed in the sqlworksheet, and not the "select ..." a normal texteditor shows.
Thanks in advance
MatthiasHi,
with encoding set to utf8 it does not work. Don't know why. After setting the encoding to "cp1252" everything works fine again! Thank you very much!
Matthias -
SQL Developer 3.1 Early Adopter 3 Available
Hi,
See announcement posting:
https://forums.oracle.com/forums/ann.jspa?annID=1730
Thanks, MarkCan , sure. Advisable , not officially.
Your call...
Regards,
K. -
PL/SQL and Oracle SQL Developer
I just downloaded the latest version of Oracle SQL Developer, because I heard that it is free and comes with a debugger.
So I have it all setup, I am connected to my database, but I wanted to execute a simple example:
I selected to create a new Procedure and a new tab opened up, I pasted this code and under DBMS Output, I clicked the + to: set serveroutput on
CREATE OR REPLACE PROCEDURE TEST1 As
DECLARE
mytext varchar2(100) := 'Hello world!' ;
BEGIN
dbms_output.put_line(mytext) ;
dbms_output.put_line(mytext) ;
END TEST1;yet, I get an error:
Source does not have a runnable target.
So, is this made to only work with the database objects ? Tables ? I can't execute a simple Hello World ?
Please help, thanks!
Edited by: Kodiak_Seattle on Mar 7, 2011 12:06 PMKodiak_Seattle wrote:
wow, you are the rudest person I have ever encountered here on Oracle forums, you work for Oracle ?Most people on these forums do not work for Oracle, it is a public forum.
http://www.oracle.com/html/terms.html
You post here for free and people are free to respond in any way they see fit within reason. You do not get to choose the demeanor of the responses like you would if you were paying somebody.
I just want to make sure my dollars will not go there anymore...If you paid someone to use this forum you were robbed.
have a nice life under that rock! - don't bother to reply.Don't bother to tell others what they can or should do on here, it will just just disappoint you. You will be happier with these people they will do as they are told.
http://www.google.com/search?q=oracle+consultant
The responses you received accurately identified the problems you were having were a result of attempting to debug a procedure before you had compiled it. For free. And you complain.
Now that is rude. -
I recently started working on the Oracle SQL developer. I have 'select' privileges on the QA schema and when tried to execute proc in QA. It is giving the error as 'The file-based source <procedure Name> is not present in the database. Was it compiled?'
instead 'you do not have sufficient privileges to execute this procedure'. Did research on internet but with no luck.What configuration changes needed to be done to make it work.Guide me.Sounds like you do not have the correct privileges. What should have been granted to you by the QA user, or some other user with appropriate privileges, is...
grant EXECUTE on "QA"."<PROCEDURE_OF_INTEREST>" to "<YOUR_USERID>" ;
Note that a grant of execute on a procedure has nothing to do with grants of select on some or all of QA's tables and views.
So, as Vadim suggests, from your connection node in SQL Developer's Connections view, if you expand the Other Users node, then expand QA and look in the Procedures node, do you see the procedure of interest? If not, you cannot expect to be able to execute it from your userid's connection. And even if you do see it, you may have some other privilege that permits viewing but not executing, like...
The role SELECT_CATALOG_ROLE
The system privilege SELECT ANY DICTIONARY
And even if you do not see it there, then having certain other privileges granted to you could permit executing it in general, like...
The role EXECUTE_CATALOG_ROLE
The system privilege EXECUTE ANY PROCEDURE
Also, note that the 3.0 release is a bit dated nowadays. Upgrading to 4.0.3 production or even the 4.1 EA2 (early adopter) release will, in general, give you a better experience.
Best wishes,
Gary -
If you haven't been paying attention to early adopters of Project Raptor there it is - production release of Oracle SQL Developer, outstanding database development tool. It works very well with XE and if you're somehow reluctant to web interface or too ascetic sqlplus, you shall certainly like it. Very useful and at no charge.
Oracle SQL Developer is a new, free graphical tool that enhances productivity and simplifies database development tasks. With SQL Developer, you can browse database objects, run SQL statements and SQL scripts, and edit and debug PL/SQL statements. You can also run any number of provided reports, as well as create and save your own.
http://www.oracle.com/technology/products/database/sql_developer/index.htmlI use SQL Developer for SQL and PL/SQL and only use SQL*Plus for the few commands that don't work in SQL Developer.
SQL Developer has a forum, too. -
Oracle SQL Developer 1.1.1.25.14, I rror ORA-01722 Invalid Number
I have installed the new version of Oracle SQL Developer 1.1.1.25.14, I use Oracle 9.2. When I browse in the tree of the stored procedures and compile I obtain Error ORA-01722 Invalid Number. The previous version does not give this error. I have tried to change the decimal separator to comma ',' and point '.' but this error always appears.
create or replace
PROCEDURE getAge (
dtmDataStart_in IN DATE,
dtmDataEnd_in IN DATE,
intYears_out OUT NUMBER,
intMonths_out OUT NUMBER,
intDays_out OUT NUMBER) AS
-- Calcola il numero di anni, mesi, giorni intercorsi
-- dalla data iniziale alla data finale.
-- Se la data iniziale è > della data finale, le due date
-- vengono scambiate e le variabili di output vengono ritornate
-- con segno negativo.
--==================================================
-- Data Ultima Modifica: 31/07/98
-- Aggiunta procedura per il calcolo della differenza tra
-- due date dello stesso anno.
--==================================================
-- DICHIARAZIONE VARIABILI INIZIO --------------------------------------------------------
intYMDStart NUMBER(10);
intYMDEnd NUMBER(10);
intYMD NUMBER(10);
intDiffAnni NUMBER(5);
intDiffMesi NUMBER(5);
intDiffGiorni NUMBER(5);
intMeseStart NUMBER(5);
intAnnoStart NUMBER(5);
intTotGiorniMeseStart NUMBER(5);
ysnNegativo NUMBER(5);
-- DICHIARAZIONE VARIABILI FINE ----------------------------------------------------------
BEGIN
intYMDStart := TO_NUMBER( TO_CHAR(dtmDataStart_in,'YYYYMMDD'));
intYMDEnd := TO_NUMBER( TO_CHAR(dtmDataEnd_in,'YYYYMMDD'));
ysnNegativo := 0;
IF intYMDStart = intYMDEnd THEN
intYears_out := 0;
intMonths_out := 0;
intDays_out := 0 ;
ELSE
IF intYMDStart > intYMDEnd THEN
intYMD := intYMDStart;
intYMDStart := intYMDEnd;
intYMDEnd := intYMD;
ysnNegativo := -1;
END IF;
intDiffAnni := TO_NUMBER(TO_CHAR(dtmDataEnd_in,'YYYY')) - TO_NUMBER(TO_CHAR(dtmDataStart_in ,'YYYY'));
intDiffMesi := TO_NUMBER(TO_CHAR(dtmDataEnd_in,'MM')) - TO_NUMBER(TO_CHAR(dtmDataStart_in ,'MM'));
intDiffGiorni := TO_NUMBER(TO_CHAR(dtmDataEnd_in,'DD')) - TO_NUMBER(TO_CHAR(dtmDataStart_in ,'DD'));
-- I valori cosi' calcolati di intDiffAnni, intDiffMesi e intDiffGiorni vanno bene
-- ad eccezione dei seguenti casi:
-- Sistemo intDiffAnni
IF (intDiffMesi > 0 OR (intDiffMesi = 0 AND intDiffGiorni >= 0)) THEN
-- intDiffAnni e' OK
intDiffAnni := intDiffAnni;
ELSE
-- non e' ancora arrivato il giorno del compleanno
intDiffAnni := intDiffAnni-1;
END IF;
-- Sistemo intDiffMesi
IF (intDiffMesi > 0 AND intDiffGiorni < 0) THEN
intDiffMesi := intDiffMesi-1;
ELSIF (intDiffMesi < 0 ) THEN
if(intDiffGiorni<0) THEN
intDiffMesi := intDiffMesi+11;
else
intDiffMesi := intDiffMesi+12;
END IF;
ELSIF (intDiffMesi=0 AND intDiffGiorni<0) THEN
intDiffMesi:=11;
END IF;
-- Sistemo intDiffGiorni
-- Calcolo i giorni come (TotGiorniMeseIniziale - GiornoIniziale) + (GiornoFinale - 0)
-- che e' uguale a fare TotGiorniMeseIniziale + (GiornoFinale-GiornoIniziale)
IF intDiffGiorni < 0 THEN
intMeseStart := TO_NUMBER(TO_CHAR(dtmDataStart_in ,'MM'));
IF intMeseStart IN (1,3,5,7,8,10,12) THEN
intTotGiorniMeseStart := 31;
ELSIF intMeseStart = 2 THEN
-- Da enciclopedia: sono bisestili gli anni multipli di 4
-- esclusi i secoli che non sono multipli di 400 (Parte commentata).
intAnnoStart := TO_NUMBER(TO_CHAR(dtmDataStart_in ,'YYYY'));
if (intAnnoStart MOD 4) = 0
-- AND NOT ((intAnnoStart MOD 100) = 0 AND (intAnnoStart MOD 400) <> 0)
Then
intTotGiorniMeseStart := 29;
else
intTotGiorniMeseStart := 28;
end if;
ELSIF intMeseStart IN (4,6,9,11) THEN
intTotGiorniMeseStart := 30;
END IF;
intDiffGiorni := intDiffGiorni + intTotGiorniMeseStart;
END IF;
IF ysnNegativo = 0 THEN
intDays_out := intDiffGiorni;
intMonths_out := intDiffMesi;
intYears_out := intDiffAnni;
ELSE
intDays_out := intDiffGiorni * (-1);
intMonths_out := intDiffMesi * (-1);
intYears_out := intDiffAnni * (-1);
END IF;
END IF;
EXCEPTION
WHEN OTHERS THEN
RAISE;
END getAge;
The output result of compilation is "GETAGE Compiled", I think the 01722 error is not caused from an sql syntax error, but probably caused from an invalid or unsupported or 'strange' configuration on nationalization... the fact surprises me that the previous version did not give problems
THANKS SO MUTCH
*/ -
Oracle SQL Developer 1.1 Patch 2 (1.1.2.25.79) Browsing
Dear All
I download Oracle SQL Developer 1.1 Patch 2 (1.1.2.25.79) ,and install it but
it refuse to browse any schema , knowing that it accept the connection and keep the massage loading appearing all the time
Thanks
SulimanMore detailed output below (Ctrl+break and running as sqldeveloper -J-Dide.extension.log.to.console=true)
I've also only got Oracle.* files in my two extensions directories
C:\Program Files\SQLDeveloper\ide\extensions
C:\Program Files\SQLDeveloper\jdev\extensions
C:\Program Files\SQLDeveloper\sqldeveloper\bin>sqldeveloper.exe
WARNING: Unknown directive: SetSkipJ2SDKCheck
Using oracle.home=C:\Program Files\SQLDeveloper
Using ide.user.dir=null
Full thread dump Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode):
"TimerQueue" daemon prio=6 tid=0x04635270 nid=0xff4 in Object.wait() [0x04d3f000
..0x04d3fd68]
at java.lang.Object.wait(Native Method)
- waiting on <0x12879928> (a javax.swing.TimerQueue)
at javax.swing.TimerQueue.run(TimerQueue.java:233)
- locked <0x12879928> (a javax.swing.TimerQueue)
at java.lang.Thread.run(Thread.java:595)
"AWT-EventQueue-0" prio=6 tid=0x04610e50 nid=0xf50 in Object.wait() [0x04c3f000.
.0x04c3f9e8]
at java.lang.Object.wait(Native Method)
- waiting on <0x12832040> (a java.awt.EventQueue)
at java.lang.Object.wait(Object.java:474)
at java.awt.EventQueue.getNextEvent(EventQueue.java:345)
- locked <0x12832040> (a java.awt.EventQueue)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:189)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
"Image Fetcher 0" daemon prio=8 tid=0x04611160 nid=0x234 in Object.wait() [0x04b
3f000..0x04b3fa68]
at java.lang.Object.wait(Native Method)
- waiting on <0x12860f78> (a java.util.Vector)
at sun.awt.image.ImageFetcher.nextImage(ImageFetcher.java:114)
- locked <0x12860f78> (a java.util.Vector)
at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:167)
at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)
"AWT-Windows" daemon prio=6 tid=0x045fbd28 nid=0xb7c runnable [0x04a2f000..0x04a
2fae8]
at sun.awt.windows.WToolkit.eventLoop(Native Method)
at sun.awt.windows.WToolkit.run(WToolkit.java:269)
at java.lang.Thread.run(Thread.java:595)
"AWT-Shutdown" prio=6 tid=0x045fb8b0 nid=0xe4c in Object.wait() [0x0492f000..0x0
492fb68]
at java.lang.Object.wait(Native Method)
- waiting on <0x128345c8> (a java.lang.Object)
at java.lang.Object.wait(Object.java:474)
at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259)
- locked <0x128345c8> (a java.lang.Object)
at java.lang.Thread.run(Thread.java:595)
"Java2D Disposer" daemon prio=6 tid=0x044de4a8 nid=0x688 in Object.wait() [0x048
2f000..0x0482fbe8]
at java.lang.Object.wait(Native Method)
- waiting on <0x12834650> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
- locked <0x12834650> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
at sun.java2d.Disposer.run(Disposer.java:107)
at java.lang.Thread.run(Thread.java:595)
"Low Memory Detector" daemon prio=6 tid=0x01015278 nid=0x90c runnable [0x0000000
0..0x00000000]
"CompilerThread0" daemon prio=6 tid=0x01012d38 nid=0xed0 waiting on condition [0
x00000000..0x03e6fa4c]
"Signal Dispatcher" daemon prio=6 tid=0x010120b8 nid=0x7dc waiting on condition
[0x00000000..0x00000000]
"Finalizer" daemon prio=8 tid=0x01008fd0 nid=0xd28 in Object.wait() [0x03c6f000.
.0x03c6fae8]
at java.lang.Object.wait(Native Method)
- waiting on <0x1279ffa0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
- locked <0x1279ffa0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
"Reference Handler" daemon prio=6 tid=0x01008518 nid=0x624 in Object.wait() [0x0
3b6f000..0x03b6fa68]
at java.lang.Object.wait(Native Method)
- waiting on <0x127a0020> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:474)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
- locked <0x127a0020> (a java.lang.ref.Reference$Lock)
"main" prio=6 tid=0x00849390 nid=0xf4c runnable [0x0012d000..0x0012fb78]
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.<init>(Throwable.java:218)
at java.lang.Exception.<init>(Exception.java:59)
at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:6
5)
at java.lang.ClassLoader.findBootstrapClass(Native Method)
at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:891)
at java.lang.ClassLoader.loadClass(ClassLoader.java:301)
- locked <0x127a2fd0> (a sun.misc.Launcher$ExtClassLoader)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
- locked <0x127a0058> (a sun.misc.Launcher$AppClassLoader)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
- locked <0x127a0058> (a sun.misc.Launcher$AppClassLoader)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at oracle.classloader.SearchPolicy$FindMain.getClass(SearchPolicy.java:3
07)
at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:648)
- locked <0x127af080> (a oracle.classloader.PolicyClassLoader)
at oracle.classloader.PolicyClassLoader.askParentForClass(PolicyClassLoa
der.java:1308)
at oracle.classloader.SearchPolicy$AskParent.getClass(SearchPolicy.java:
68)
at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoa
der.java:1693)
- locked <0x127adf48> (a oracle.classloader.PolicyClassLoader)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java
:1654)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java
:1639)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
- locked <0x127adf48> (a oracle.classloader.PolicyClassLoader)
at javax.ide.model.spi.DocumentHook.$init$(DocumentHook.java:66)
at javax.ide.model.spi.DocumentHook.<init>(DocumentHook.java:27)
at javax.ide.extension.spi.DefaultHookVisitorFactory.createDocumentHook(
DefaultHookVisitorFactory.java:157)
at javax.ide.extension.spi.DefaultHookVisitorFactory.registerStandardVis
itors(DefaultHookVisitorFactory.java:81)
at javax.ide.extension.spi.DefaultHookVisitorFactory.<init>(DefaultHookV
isitorFactory.java:53)
at oracle.ideimpl.extension.ExtensionManagerImpl$1.<init>(ExtensionManag
erImpl.java:153)
at oracle.ideimpl.extension.ExtensionManagerImpl.createHookVisitorFactor
y(ExtensionManagerImpl.java:152)
at javax.ide.extension.ExtensionRegistry.loadExtensions(ExtensionRegistr
y.java:259)
at oracle.ideimpl.extension.ExtensionManagerImpl.loadExtensions(Extensio
nManagerImpl.java:376)
at javax.ide.extension.ExtensionRegistry.loadExtensions(ExtensionRegistr
y.java:171)
at javax.ide.extension.ExtensionRegistry.initialize(ExtensionRegistry.ja
va:382)
at oracle.ideimpl.extension.ExtensionManagerImpl.initialize(ExtensionMan
agerImpl.java:875)
at javax.ide.Service.getService(Service.java:68)
at javax.ide.extension.ExtensionRegistry.getExtensionRegistry(ExtensionR
egistry.java:401)
at oracle.ide.ExtensionRegistry.getOracleRegistry(ExtensionRegistry.java
:140)
at oracle.ide.IdeCore.startupImpl(IdeCore.java:1122)
at oracle.ide.Ide.startup(Ide.java:642)
at oracle.ideimpl.DefaultIdeStarter.startIde(DefaultIdeStarter.java:35)
at oracle.ideimpl.Main.start(Main.java:90)
at oracle.ideimpl.Main.main(Main.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at oracle.ide.boot.PCLMain.callMain(PCLMain.java:45)
at oracle.ide.boot.PCLMain.main(PCLMain.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at oracle.classloader.util.MainClass.invoke(MainClass.java:89)
at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:
218)
at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:90)
at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:66)
at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at oracle.ide.boot.Launcher.invokeMain(Launcher.java:508)
at oracle.ide.boot.Launcher.launchImpl(Launcher.java:106)
at oracle.ide.boot.Launcher.launch(Launcher.java:60)
at oracle.ide.boot.Launcher.main(Launcher.java:49)
"VM Thread" prio=6 tid=0x010058e0 nid=0xde8 runnable
"VM Periodic Task Thread" prio=6 tid=0x01011ff8 nid=0xeb8 waiting on condition
Product extension oracle.sqldeveloper could not be loaded. The product cannot st
art.
Disabled extensions:
oracle.ide.xmlef: Missing dependencies: oracle.ide.daf, oracle.ide.palette2
C:\Program Files\SQLDeveloper\sqldeveloper\bin>sqldeveloper -J-Dide.extension.lo
g.to.console=true
WARNING: Unknown directive: SetSkipJ2SDKCheck
Using oracle.home=C:\Program Files\SQLDeveloper
Using ide.user.dir=null
Product extension oracle.sqldeveloper could not be loaded. The product cannot st
art.
Disabled extensions:
oracle.ide.xmlef: Missing dependencies: oracle.ide.daf, oracle.ide.palette2
C:\Program Files\SQLDeveloper\sqldeveloper\bin> -
Unable to display results of multiple query in grid in Oracle SQL Developer
Hi, I am a newbie to this forum and couldn't find the Oracle SQL Developer forum so posting it here.
My question: How to display multiple query results in grid in Oracle SQL Developer.
Example:
select * from Employee;
select * from Department;
- when I select both the queries and hit F5 in Oracle sql developer. By default it displays in output window.
- How to display result of both the queries in Grid.
Any thoughts on this would be really helpful.
Thanks in advance.
HarshHi Harsh,
I'd say that the Results grid is designed to only show the results of 1 query at a time. I don't know/can't see how it would display multiple queries at a time.
I would suggest either joining your tables to create a single query or opening another SQL Worksheet for one of the queries so that you can display the results side-by-side.
Maybe you could explain what you're trying to do. Why are you trying to display multiple results in the same query grid? -
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
- - ---------- -------------------- -------------------- -------------------------------------------------- -
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. -
Running/Compiling *.java file in Oracle Sql Developer
I want to compile/run java 5.0 files in Oracle sql developer1.1.2.25 on Fedora 5 platform.
I have added javac as an enternal tool to compile java programs. Tools-->External Tools-->New
I have also added java: /usr/java/jre1.5.0_10/bin/java as an external tool to run the complied programs
I am able to compile the java programs, but i am not able to run them.
I am providing ${file.name.no.ext} as an argument to java.
Java-Log Output is:
/usr/java/jre1.5.0_10/bin/java Writer2
Exception in thread "main" java.lang.NoClassDefFoundError: Writer2
However, if i run the same program in Linux terminal, i get the correct output:
[root@localhost java]# which java
/usr/java/jre1.5.0_10/bin/java
[root@localhost java]# /usr/java/jre1.5.0_10/bin/java Writer2
12
howdy
folks
How can i make Oracle Sql Developer run the java program?I will echo the use jdev comment..
Regardless, you may want to check the execute in directory.. or add a -cp parameter.
Eric -
Debugging in Oracle SQL Developer
I would like to know how to debug my PL / SQL programs in the Oracle SQL Developer program using breakpoints and such. I've never known how to use debugging tools like this and since this program provides this kind of feature, I was wondering if anyone on here might be able to shine some light on this for me. How are these used? How could I use them to say, figure out what the value of a given variable might be on line whatever? Etc.
One reason I'm setting out to learn this is because I'm tired of typing DBMS_OUTPUT.PUT_LINE all the time. I would think that there must be a better way than this.
Lastly (and while we're on that subject), what would cause SQL Developer to not output a DBMS_OUTPUT.PUT_LINE line? I've given this a string of text to output to the monitor and it's not working. It's in the DECLARE section (thinking I could place these almost anywhere my tiny little heart desired, but apparently, I'm wrong?)
Again, any insight is appreciated.- K - :
Oh, I get it... We had another pesky drop-out fishing for homework cheats again, right?
Here's a suggestion to make this forum (you know, a place where people come together who all think differently about things both deep and shallow) somewhat more accepting and useful a place for idiots like me who might happen to overlook an apparently obvious "Help" menu item with the glowing neon-colored label heading of "Table of Contents": instead of wasting your own time (let alone, others) by posting silly responses that serve arbitrary agendas for the sake of inflating one's ego and online rep points due to having a bad high school experience, why not just instead take a high road (all the real Oracle kings around here hopefully take) and either ignore the response altogether or post something at least 1% useful. Sound like a plan? Great! For instance, why not inquire about why someone posted something that might not make sense to you? It's an amazing concept...
Because after all...
"+I'm often perplexed about the "answers" we get. Seems like you never posted your suggestions.+"
...doesn't do a lot for people who come across this thread in similar straights or perspective I was in at the time of creating it.
That said, something like...
"+Since you're using Oracle SQL Developer, you should have a 'Help' menu item near the top of the window. Click on it and then click on 'Table of Contents'. Proceed to do as Jim suggested by locating the topic 'Running and Debugging Functions and Procedures'. In that section of the contents, you will find more information about debugging your program, tips and tricks, etc. If this doesn't help you or if you're unsure about something in general, feel free to post back and we'll try to help you further.+"
...is much more helpful and succinct. It's welcoming, objective, and very informative (not that Jim's response wasn't).
On that note, Jim, I do appreciate your response. When I first read your suggestion, I had misinterpreted what you proposed in the heat of the moment. Above all else, I also had some things going on around me that were distracting me. Thanks again. I'm reading the topic right now...
Maybe you are looking for
-
HP Officejet Pro 8500A Plus printing issues
I have been having two new issues suddenly (within the past 2 weeks) with my HP Officejet Pro 8500A Plus. I am trying to print from my iMac 27 inch running OS.X 10.8.4 Both the mac and the printer are connected to a wireless network via an Xfinity Wi
-
Remote app: using thumbs from iBooks documents for cover art??
In iTunes on my Mac, I have a playlists where I've dragged in my favourite radio stations. If I connect to it with Apple's Remote.app and play any of them, though, it is using as cover art the covers of PDFs I have in the iBooks.app! Seems minor, but
-
I'm trying to recover a file and the app company said to restore from an earlier backup. My iPhone only shows the most recent backup. I've been searching the net for answers - I found the back up file and date sorted them (over 6mb of files). How
-
Copying to TC drive results in "network name is no longer available" error
Hi -- We have a Western Digital MyBook hooked up to Time Capsule and are using it as shared storage. I can view the drive and copy down files with no problem. However, I am now having trouble copying large files (e.g. videos) to that connected drive.
-
Problems with Automate Batch tasks in Photoshop CS2
"Could not complete the action, since the destination folder does not exist" message appears when I Automate a task that I have previously recorded and successfully used. When I choose Automate, then Batch, then select action, then select a source fo