Sqldeveloper EA3 dbms_output problem
Hello
The code:
begin
dbms_output.put_line('ok');
end;
displays nothing in window created via menu view/dbms output
I need to explicite run set serverouput on in worksheet using F5 or F9 to see results in "script output" window or "dbms output" window
For "script output" it seems to be normal
but for view/dbms output it was working different in previous releases set serverouput on was not required
This is how I get dbms_output.put_line to work;
-- test dbms_output.put_line
-- output shows in script output region
-- if dbms output view is on then clicking the green '+' and enabling the correct connection
-- may show the ouput in the dbms output region also
SET SERVEROUTPUT ON;
DECLARE
l_nbr NUMBER;
BEGIN
l_nbr := dbms_random.VALUE(1,999);
dbms_output.put_line(to_char(l_nbr,'999'));
END;
I cant get the 'insert link' button to work but here is the URL for the original workaround;
30EA2 dbms_output.put_line not working
Similar Messages
-
Base64 and dbms_output problem
Hello,
I'm trying to write a function that generate HTML content for sending inside a mail. This HTML content needs to have some picture inside it. To do so I'm using some conversion function from blob to base 64 encoding. To be sure that my function is working properly, I'm trying to execute it inside Oracle SQL developer.
The problem is that whenever I'm tying to show up any base64 content via dbms_output.put_line I got:
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at line xxx
06502. 00000 - "PL/SQL: numeric or value error%s"
Here is the part of the code where I'm trying to open file and convert it inside base64 content
With those variable:
-- locale variables
vc_mail_content CLOB;
vc_file_folder VARCHAR2(100);
vb_lFile BFILE;
vc_image_content CLOB;
vb_image_content BLOB;Code:
FOR c_file_name IN
( SELECT filename, folder
FROM MO_ITEM_IMAGES
WHERE item_id = R_lots.item_id)
LOOP
dbms_output.put_line('attachement '||c_file_name.fileName);
vb_image_content := NULL;
DBMS_LOB.CREATETEMPORARY(vb_image_content,true);
vb_lfile := BFILENAME('MO_DIR', 'webdav/'||c_file_name.folder||'/'||c_file_name.fileName);
DBMS_LOB.OPEN(vb_lfile, DBMS_LOB.LOB_READONLY);
DBMS_LOB.OPEN(vb_image_content, DBMS_LOB.LOB_READWRITE);
DBMS_LOB.LOADFROMFILE( DEST_LOB => vb_image_content,
SRC_LOB => vb_lfile,
AMOUNT => DBMS_LOB.GETLENGTH(vb_lfile));
DBMS_LOB.CLOSE(vb_lfile);
vc_image_content := zzz_mails.getbase64String(vb_image_content);
--/!\ This DBMS output creates the error /!\
dbms_output.put_line(vc_image_content);
DBMS_LOB.CLOSE(vb_image_content);
vc_mail_content := vc_mail_content||vc_image_content;
END LOOP; Whenever it reach the DBMS_output.put_line, I got the error.
The getbase64String function is a function that translate from blob to base64 clob
Can someone help me to solve this problem?
Thank you
Edited by: user13444434 on 3 juil. 2011 08:42DBMS_OUTPUT can not print CLOB in thay way. YOu can use a function like this:
PROCEDURE print_clob(p_clob in clob) as
l_offset number default 1;
BEGIN
loop
exit when l_offset > dbms_lob.getlength(p_clob);
dbms_output.put_line(dbms_lob.substr(p_clob, 255, l_offset));
l_offset := l_offset + 255;
end loop;
END print_clob;and call that in your original procedure. -
I am running oracle 8i on linux (mandrake 6) and have applied the
patch.
While playing around with some simple triggers etc I attempted to
use the dbms_output.put_line('stuff here') to keep track of, and
report on events as they happened.
The problem is that I do not get any output from these
statements.
for example I found this script elsewhere in the discussion group
(posted by someone using oracle on redhat 6):
declare
csr integer :=-1;
begin
csr:=dbms_sql.open_cursor;
if (csr = -1) then
dbms_output.put_line('Does not work!');
else
dbms_output.put_line('Works!');
end if;
end;
The output should be:
Works!
PL/SQL procedure successfully completed.
but on my system all I get is the second line, not the first.
Anyone have any ideas on why this would be so, and how to change
it.
Thanks
nullExecute 'set serveroutput on' before executing PL/SQL.
fintan (guest) wrote:
: I am running oracle 8i on linux (mandrake 6) and have applied
the
: patch.
: While playing around with some simple triggers etc I attempted
to
: use the dbms_output.put_line('stuff here') to keep track of,
and
: report on events as they happened.
: The problem is that I do not get any output from these
: statements.
: for example I found this script elsewhere in the discussion
group
: (posted by someone using oracle on redhat 6):
: declare
: csr integer :=-1;
: begin
: csr:=dbms_sql.open_cursor;
: if (csr = -1) then
: dbms_output.put_line('Does not work!');
: else
: dbms_output.put_line('Works!');
: end if;
: end;
: The output should be:
: Works!
: PL/SQL procedure successfully completed.
: but on my system all I get is the second line, not the first.
: Anyone have any ideas on why this would be so, and how to
change
: it.
: Thanks
null -
Sql developer - dbms_output problem
Hi
I am not getting any output using sql developer.
set serveroutput on;
begin
dbms_ouput.enable(10000);
dbms_output.put_line('abc');
end;
anonymous block completedI saw some threads ..with same problems. but I am not understanding where is that dbms_output tab in my sql developer ?
Tried alot .. but no use.
Please advise....!!!
Regards
RekhaIn your SQL Developer (usually at the bottom) there should be a tab "Dbms Output".
If there is not, then you probably have closed that tab at some point by accident - then you can get it back by going in the View menu and clicking Dbms Output.
In that tab is a green plus sign - if you hover over it you will see the tool tip "Enable DBMS OUTPUT for connection".
Clicking that green plus sign is similar to doing "set serveroutput on" in SQL*PLUS.
When I try it, somehow it only seems to work if I run my script using F5 rather than F9?
I think a good place to get further answers is in the SQL Developer forum - some of the people who write SQL Developer are helping out there ;-) -
Newbie: DBMS_OUTPUT problem.
Hi all,
I have a very basic question...
I wrote the code for the procedure as this
SQL> create or replace procedure looptest as
2 begin
3 for idx in 3..1 loop
4 dbms_output.put_line('a');
5 dbms_output.put_line (idx);
6 for idx1 in 1..3 loop
7 dbms_output.put_line('b');
8 dbms_output.put_line (idx1);
9 end loop;
10 end loop;
11* end;
SQL> /
Procedure created.
SQL> exec looptest;
PL/SQL procedure successfully completed.
SQL> set serveroutput on;
SQL> commit;
Commit complete.
SQL> exec looptest;
PL/SQL procedure successfully completed.I wanted to see the result of running this procedure...
a.k.a some output like 3, 1, 2, 3, 2, 1, 2,... etc
question 1 : Why am i not able to see the result??
question 2: What should be done to see the result
Thanks in advance..DBMS_OUTPUT is a server-side API (PL/SQL package). It allows PL/SQL code to write into a session static/persistent buffer in PL/SQL.
A client, like SQL*Plus, can then display the contents of this buffer after the PL/SQL code has completed execution.
The SQL*Plus command to enable this client feature (of displaying the buffer) is SET SERVEROUTPUT ON.
SQL> set serveroutput on
SQL> begin
2 for i in 1..10
3 loop
4 DBMS_OUTPUT.put_line( 'inside loop | counter='||i );
5 end loop;
6 end;
7 /
inside loop | counter=1
inside loop | counter=2
inside loop | counter=3
inside loop | counter=4
inside loop | counter=5
inside loop | counter=6
inside loop | counter=7
inside loop | counter=8
inside loop | counter=9
inside loop | counter=10
PL/SQL procedure successfully completed.
SQL> -
Start with java stored procedure in SQLDeveloper
Hi,
i'm a newbe in writing PL/SQL stored procedures. Thats the reason to wont to write some java stored procedures for an ORACLE 10g. I'm using the SQLDeveloper. My Problem is: how can i start to write java stored procedures. Where have i to put them?
Can somebody help me?
10x
cu nanostructFor Java Stored procedures you'll need to use JDeveloper. For SQL Developer, there is a viewlet and a tutorial on this page:
http://www.oracle.com/technology/products/database/sql_developer/index.html
Sue -
SQL Developer EA3 hangs after start up in MacOS
Does anyone experience this issue? After I install SQLDeveloper EA3 for Mac OS, when I click on the app to start. SQLDeveloper starts up fine and it will present the start-up page. But once it is in the Start-up page, then it hangs with a spinning wheel or hour glass in Windows term. It looks like it is doing something. But it just won't work and it hangs. I have to force kill the job to get out of it.
Does anyone know if there is any issue like this on the MacOS side? I have Java JDK 1.7.45 on my Mac. SQLDeveloper 3 works fine when I uninstall SQL Developer 4 EA3 and put the SQL Developer 3 back. I don't think that this is a java related. But it may be configuration related where SQL Developer appears to go to la la land after it starts up.
So any idea will be greatly appreciated. Thanks.I did run this from the terminal. I run it from /Applications/SQLDeveloper.app/Contents/Resources/sqldeveloper/sqldeveloper/bin and simply run it with ./sqldeveloper.
I have also updated the sqldeveloper.conf to use debug.conf option.
IncludeConfFile sqldeveloper-debug.conf
When I run it, I receive the following and then it hangs and the spinning wheel happens...
Oracle SQL Developer
Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
Java asserts are enabled!
LOAD TIME : 315
The following lists the dump when I issued kill -3 <pid>:
Full thread dump Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode):
"status-0" prio=5 tid=0x00007ff974d84800 nid=0x13c0b waiting on condition [0x00000001150a6000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000007f68ee7a0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
at java.util.concurrent.DelayQueue.take(DelayQueue.java:209)
at oracle.ide.status.StatusExecutor$StatusQueue.take(StatusExecutor.java:338)
at oracle.ide.status.StatusExecutor$StatusQueue.take(StatusExecutor.java:300)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
"IconOverlayTracker Timer: null-jdbcNodeInfoType" prio=5 tid=0x00007ff976848000 nid=0x13913 in Object.wait() [0x00000001200a4000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007f69a1e80> (a java.util.TaskQueue)
at java.lang.Object.wait(Object.java:503)
at java.util.TimerThread.mainLoop(Timer.java:526)
- locked <0x00000007f69a1e80> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:505)
"WaitCursor-Timer" prio=5 tid=0x00007ff974e0a000 nid=0x11d03 in Object.wait() [0x000000011bca5000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007f670c360> (a java.util.TaskQueue)
at java.lang.Object.wait(Object.java:503)
at java.util.TimerThread.mainLoop(Timer.java:526)
- locked <0x00000007f670c360> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:505)
"WeakDataReference polling" prio=5 tid=0x00007ff97b325800 nid=0x11b03 in Object.wait() [0x000000011bba2000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007f674cd10> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
- locked <0x00000007f674cd10> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:151)
at oracle.ide.util.WeakDataReference$Cleaner.run(WeakDataReference.java:88)
at java.lang.Thread.run(Thread.java:744)
"pool-2-thread-1" prio=5 tid=0x00007ff97e1f6800 nid=0x11903 waiting on condition [0x000000011b18a000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000007f62b07d0> (a java.util.concurrent.SynchronousQueue$TransferStack)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:458)
at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:359)
at java.util.concurrent.SynchronousQueue.take(SynchronousQueue.java:925)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
"Scheduler" daemon prio=5 tid=0x00007ff97e621000 nid=0x11707 in Object.wait() [0x0000000117986000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007f62f3f08> (a oracle.dbtools.raptor.backgroundTask.TaskLinkedList)
at java.lang.Object.wait(Object.java:503)
at oracle.dbtools.raptor.backgroundTask.TaskLinkedList.takeNextTask(TaskLinkedList.java:47)
- locked <0x00000007f62f3f08> (a oracle.dbtools.raptor.backgroundTask.TaskLinkedList)
at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$SchedulerThread.run(RaptorTaskManager.java:479)
"DestroyJavaVM" prio=5 tid=0x00007ff9798c8000 nid=0x1903 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Thread-9" daemon prio=5 tid=0x00007ff97bac2000 nid=0x11303 in Object.wait() [0x000000011b087000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007f5225358> (a java.util.LinkedList)
at java.lang.Object.wait(Object.java:503)
at java.util.prefs.AbstractPreferences$EventDispatchThread.run(AbstractPreferences.java:1476)
- locked <0x00000007f5225358> (a java.util.LinkedList)
"Log Poller" prio=5 tid=0x00007ff97b048800 nid=0x11007 waiting on condition [0x000000011a9ca000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000007f55b3160> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
at oracle.ide.log.QueuedLoggingHandler.take(QueuedLoggingHandler.java:60)
at oracle.ideimpl.log.TabbedLogManager$4.run(TabbedLogManager.java:321)
at java.lang.Thread.run(Thread.java:744)
"JarIndex Timer" daemon prio=5 tid=0x00007ff97b80d800 nid=0x10407 in Object.wait() [0x000000011b474000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007f4aaf6f0> (a java.util.TaskQueue)
at java.util.TimerThread.mainLoop(Timer.java:552)
- locked <0x00000007f4aaf6f0> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:505)
"TimedCache-Timer" daemon prio=5 tid=0x00007ff97b099000 nid=0x1060b in Object.wait() [0x000000011af84000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007f4891358> (a java.util.TaskQueue)
at java.lang.Object.wait(Object.java:503)
at java.util.TimerThread.mainLoop(Timer.java:526)
- locked <0x00000007f4891358> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:505)
"Framework Event Dispatcher" daemon prio=5 tid=0x00007ff975b08800 nid=0x10203 in Object.wait() [0x0000000117f48000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007f41f4ac0> (a org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
at java.lang.Object.wait(Object.java:503)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
- locked <0x00000007f41f4ac0> (a org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:336)
"Framework Active Thread" prio=5 tid=0x00007ff9741b6000 nid=0xfe17 in Object.wait() [0x0000000117d42000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007f4059920> (a org.eclipse.osgi.framework.internal.core.Framework)
at org.eclipse.osgi.framework.internal.core.Framework.run(Framework.java:1863)
- locked <0x00000007f4059920> (a org.eclipse.osgi.framework.internal.core.Framework)
at java.lang.Thread.run(Thread.java:744)
"CLI Requests Server" daemon prio=5 tid=0x00007ff974975000 nid=0xf103 runnable [0x00000001168f9000]
java.lang.Thread.State: RUNNABLE
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at java.net.ServerSocket.accept(ServerSocket.java:498)
at org.netbeans.CLIHandler$Server.run(CLIHandler.java:1100)
"Active Reference Queue Daemon" daemon prio=5 tid=0x00007ff974974800 nid=0xef03 in Object.wait() [0x00000001165c5000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007f3ea0180> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
- locked <0x00000007f3ea0180> (a java.lang.ref.ReferenceQueue$Lock)
at org.openide.util.lookup.implspi.ActiveQueue$Daemon.run(ActiveQueue.java:180)
- locked <0x00000007f3ea0180> (a java.lang.ref.ReferenceQueue$Lock)
"TimerQueue" daemon prio=5 tid=0x00007ff9748c3800 nid=0xd703 waiting on condition [0x000000011220c000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000007f3f10eb8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
at java.util.concurrent.DelayQueue.take(DelayQueue.java:209)
at javax.swing.TimerQueue.run(TimerQueue.java:171)
at java.lang.Thread.run(Thread.java:744)
"Java2D Disposer" daemon prio=5 tid=0x00007ff97489a000 nid=0xd307 in Object.wait() [0x0000000111fc1000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007f3f264b8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
- locked <0x00000007f3f264b8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:151)
at sun.java2d.Disposer.run(Disposer.java:145)
at java.lang.Thread.run(Thread.java:744)
"Java2D Queue Flusher" daemon prio=5 tid=0x00007ff975884000 nid=0xc207 in Object.wait() [0x0000000110cab000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007f3e85998> (a sun.java2d.opengl.OGLRenderQueue$QueueFlusher)
at sun.java2d.opengl.OGLRenderQueue$QueueFlusher.run(OGLRenderQueue.java:208)
- locked <0x00000007f3e85998> (a sun.java2d.opengl.OGLRenderQueue$QueueFlusher)
"AWT-EventQueue-0" prio=5 tid=0x00007ff974883000 nid=0xbb03 waiting on condition [0x0000000110ba8000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000007f3f0f658> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
at java.awt.EventQueue.getNextEvent(EventQueue.java:543)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
"AWT-Shutdown" prio=5 tid=0x00007ff975879000 nid=0x750b in Object.wait() [0x000000010e088000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007f3f13b80> (a java.lang.Object)
at java.lang.Object.wait(Object.java:503)
at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:287)
- locked <0x00000007f3f13b80> (a java.lang.Object)
at java.lang.Thread.run(Thread.java:744)
"AppKit Thread" daemon prio=5 tid=0x00007ff975881800 nid=0x507 runnable [0x00007fff5c5bd000]
java.lang.Thread.State: RUNNABLE
at sun.lwawt.macosx.LWCToolkit.doAWTRunLoop(Native Method)
at sun.lwawt.macosx.LWCToolkit.invokeAndWait(LWCToolkit.java:549)
at sun.lwawt.macosx.LWCToolkit.invokeAndWait(LWCToolkit.java:489)
at sun.lwawt.macosx.CAccessibility.invokeAndWait(CAccessibility.java:75)
at sun.lwawt.macosx.CAccessibility.getFocusOwner(CAccessibility.java:521)
"Service Thread" daemon prio=5 tid=0x00007ff97380e000 nid=0x5303 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"C2 CompilerThread1" daemon prio=5 tid=0x00007ff975823800 nid=0x5103 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"C2 CompilerThread0" daemon prio=5 tid=0x00007ff97401a000 nid=0x4f03 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Signal Dispatcher" daemon prio=5 tid=0x00007ff97401f000 nid=0x4d03 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Finalizer" daemon prio=5 tid=0x00007ff974843800 nid=0x3903 in Object.wait() [0x000000010bef2000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007f3bdf128> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
- locked <0x00000007f3bdf128> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:151)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:189)
"Reference Handler" daemon prio=5 tid=0x00007ff974010800 nid=0x3703 in Object.wait() [0x000000010bdef000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007f3f24e00> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:503)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)
- locked <0x00000007f3f24e00> (a java.lang.ref.Reference$Lock)
"VM Thread" prio=5 tid=0x00007ff974843000 nid=0x3503 runnable
"GC task thread#0 (ParallelGC)" prio=5 tid=0x00007ff974814800 nid=0x2503 runnable
"GC task thread#1 (ParallelGC)" prio=5 tid=0x00007ff974815000 nid=0x2703 runnable
"GC task thread#2 (ParallelGC)" prio=5 tid=0x00007ff974815800 nid=0x2903 runnable
"GC task thread#3 (ParallelGC)" prio=5 tid=0x00007ff974816000 nid=0x2b03 runnable
"GC task thread#4 (ParallelGC)" prio=5 tid=0x00007ff974817000 nid=0x2d03 runnable
"GC task thread#5 (ParallelGC)" prio=5 tid=0x00007ff974817800 nid=0x2f03 runnable
"GC task thread#6 (ParallelGC)" prio=5 tid=0x00007ff974818000 nid=0x3103 runnable
"GC task thread#7 (ParallelGC)" prio=5 tid=0x00007ff974818800 nid=0x3303 runnable
"VM Periodic Task Thread" prio=5 tid=0x00007ff975834800 nid=0x5503 waiting on condition
JNI global references: 1152
Heap
PSYoungGen total 46080K, used 17363K [0x00000007fbd00000, 0x0000000800000000, 0x0000000800000000)
eden space 23552K, 42% used [0x00000007fbd00000,0x00000007fc6c8250,0x00000007fd400000)
from space 22528K, 32% used [0x00000007fd400000,0x00000007fdb2caf8,0x00000007fea00000)
to space 22528K, 0% used [0x00000007fea00000,0x00000007fea00000,0x0000000800000000)
ParOldGen total 131584K, used 73062K [0x00000007f3800000, 0x00000007fb880000, 0x00000007fbd00000)
object space 131584K, 55% used [0x00000007f3800000,0x00000007f7f59820,0x00000007fb880000)
PSPermGen total 92160K, used 67536K [0x00000007e3800000, 0x00000007e9200000, 0x00000007f3800000)
object space 92160K, 73% used [0x00000007e3800000,0x00000007e79f40d0,0x00000007e9200000) -
Errors when browsing same table name in a different schema.
I have two separate schema in a database and each has a table with the same name but different columns. I used the GUI to change the column order while looking at the data on one table. Now I can't see data in the other table and I get the error message ORA-00904: "DAY_DT": invalid identifier. I have tried to clear the persisted settings on both tables and I have disconnected and logged out SQLDeveloper and the problem still persists. How can I fix this.
Edited by: user507794 on Apr 14, 2010 8:51 AMI had another user try to look at data in the table from his account on his PC and he saw the same error. So I looked a little deeper. The situation seems to be this
user_a creates a table and a public synonym of the same name. user_a grants select on the table to user_c
user_b creates a table using the same name as user_a's table with different columns. user_b grants select on the table to user_c
user_c can use the GUI to see the the data in user_a's table.
user_c cannot use the GUI to see user_b's table data. The GUI returns an error ORA-00904: "XXX": invalid identifier where XXX is a column on user_a's table. -
After Installation Errors in EM
Hello,
I have installed personal edition of 10g database.
After installation when I use my EM to manage database I get the error:
java.lang.Exception: Exception in sending Request :: null
When I click Perfomance link in EM and try to connect, it asks for authentication. Once I submit after providing all the necessary information I get the error :
Io exception: Unknown host specified.
What could be the reason for this?
I could connect to the same db using SQLDeveloper without any problems.
Any help would be highly appreciable.
ThanksThanks a lot for the information, however I have one doubt.
I already configured the database while installing the db. So should I do it again?
Here is the details when I ran the command.
Enter the following information:
Database SID: orcl
Database Control is already configured for the database orcl
You have chosen to configure Database Control for managing the database orcl
This will remove the existing configuration and the default settings and perform
a fresh configuration
Do you wish to continue? [yes(Y)/no(N)]: -
Missing alias of tnsnames.ora
today i discovered a problem with my tnsnames.ora file.
With my free old Toad, there is no way to define the "name" of the connection. I only have the network alias and the user. So i used alias names like customer-project(PRODUCTION) and customer-project(DEVELOPMENT) for old oracle 8i connections, where i can not use SQLDeveloper. What a bad idea...
Tnsping and SQL*Plus work fine, Toad works fine, but SQLDeveloper has a problem. Many (random?) network aliases are missing.
In the future i will avoid special characters in my network aliases, but its intersting to know that the common way to use tnsping to test tnsnames.ora will not be significant in combination with SQLDeveloper.So the problem with SQL Developer is that it stops reading the tnsadmin.ora file when it gets to one of these tns aliases with ()s.
I was able to confirm this with 3.0EA1, trying both TEST(1) and "TEST(1)", and probably most significantly in being able to identify this, no error is reported in the UI, the console or the Loggnig Pane (even with logging set to finest).
However, I was unable to use either form of tns alias with ()s with either tnsping or sql*plus, which is what I thought you were saying worked for you. Unlike SQL Developer, though, I was able to use tnsping and sql*plus with tns aliases defined after the tns alias with ()s.
Your workaround of moving the tns aliases with ()s to the bottom of the file would avoid the problem in SQL Developer, but I would think it would be best if SQL Developer actually reported a warning/error in some way when it finds a tns alias it cannot interpret.
theFurryOne -
3.1EA1: Query results do not display
The results of any query I run in 3.1EA1 do not show in the Query Result tab. When I run sqldeveloper.exe from the command prompt, there are no errors. Sqldeveloper 3.0 is fine.
Oracle Database: 10.2.0.4.0
Java version: 1.6.0_26
Operation System: Windows XP Prod sp3Hi Raghu,
Yes, you are correct. It seems to be related to SQLHistory. This is what I did.
-- Deleted everything in the SQLHistory folder as suggested.
-- Started SQLDeveloper and ran query from worksheet
-- Got results fine, but then immediately got a dialog box saying Migrating SQL history.
-- This produced an error
source: o.d.worksheet.sqlhistory
message: sun.nio.cs.StreamDecoder.forInputStreamReader (StreamDecoder.java:52)
-- After it finished, sql history was filled again with all the files.
-- Restarted SQLDeveloper and the problem was back.
-- Discovered in the SQLDeveloper directory (at same level as the SQLHistory folder) another file called SQLHistory.xml (presumably from a previous version which was the one being migrated)
-- Renamed the previous sqlhistory.xml file and the issue seems to have gone away since only my new SQL in the history folder now.
However, I assume that over time, the problem will come back when history gets to a certain size ? I did have about 1200 entries in my folder before deleting.
Will there be a fix for this, as I use sql history quite often ?
Hope this helps track down the problem.
Thanks,
Mark -
Can't view connection properties
Hi,
I am unable to view my connection properties after upgrading to version 1.1.2.25. I've tried deleting ~/.sqldeveloper/ but the problem persists.
If I right click on a connection and select 'Properties...' I get...
Exception while performing action Properties...
java.lang.AbstractMethodError: oracle.dbtools.raptor.connections.IConnectionPanel.setDefaultPrompts()V
at oracle.dbtools.raptor.connections.ConnectionDialog.setActivePanel(ConnectionDialog.java:325)
at oracle.dbtools.raptor.connections.ConnectionDialog.setConnectionName(ConnectionDialog.java:685)
at oracle.dbtools.raptor.connections.ConnectionDialog.launch(ConnectionDialog.java:517)
at oracle.dbtools.raptor.explorer.jdev.ConnectionEditorImpl.runConnectionEditor(ConnectionEditorImpl.java:34)
at oracle.jdeveloper.cm.dt.ConnectionEditor.runConnectionEditor(ConnectionEditor.java:156)
at oracle.dbtools.raptor.navigator.DatabaseNavigatorController.runNewConnectionDialog(DatabaseNavigatorController.java:1053)
at oracle.dbtools.raptor.navigator.DatabaseNavigatorController.handleEvent(DatabaseNavigatorController.java:302)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:551)
at oracle.ide.controller.IdeAction$2.run(IdeAction.java:804)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:823)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:521)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.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)
I'm not sure if it is related, but I do get an exception on startup due to...
Missing class: oracle.dbtools.logging.ILoggingPage
Any help would be appreciatedThanks for your reply. Here it goes:
reloadBuffers(): 50 nodes checked in 8.88381E-4 second(s)
oracle.ide.natives.registry.RegistryException: Impossibile trovare il file speci
ficato.
at oracle.ide.natives.registry.RegistryKey.openKey(Native Method)
at oracle.dbtools.raptor.timesten.connection.TTConnectionPanel.init(TTCo
nnectionPanel.java:68)
at oracle.dbtools.raptor.timesten.connection.TTConnectionPanel.<init>(TT
ConnectionPanel.java:35)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.dbtools.raptor.connections.ConnectionTypeRegistry.getPanelFor(
ConnectionTypeRegistry.java:30)
at oracle.dbtools.raptor.connections.ConnectionDialog.<init>(ConnectionD
ialog.java:209)
at oracle.dbtools.raptor.connections.ConnectionDialog.launch(ConnectionD
ialog.java:515)
at oracle.dbtools.raptor.explorer.jdev.ConnectionEditorImpl.runConnectio
nEditor(ConnectionEditorImpl.java:34)
at oracle.jdeveloper.cm.dt.ConnectionEditor.runConnectionEditor(Connecti
onEditor.java:156)
at oracle.dbtools.raptor.navigator.DatabaseNavigatorController.runNewCon
nectionDialog(DatabaseNavigatorController.java:1053)
at oracle.dbtools.raptor.navigator.DatabaseNavigatorController.handleEve
nt(DatabaseNavigatorController.java:302)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:551)
at oracle.ide.controller.IdeAction$2.run(IdeAction.java:804)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:82
3)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:521)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
49)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
a:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1
000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMen
uItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:242)
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)
Exception while performing action Properties...
java.lang.AbstractMethodError
at oracle.dbtools.raptor.connections.ConnectionDialog.setActivePanel(Con
nectionDialog.java:325)
at oracle.dbtools.raptor.connections.ConnectionDialog.setConnectionName(
ConnectionDialog.java:685)
at oracle.dbtools.raptor.connections.ConnectionDialog.launch(ConnectionD
ialog.java:517)
at oracle.dbtools.raptor.explorer.jdev.ConnectionEditorImpl.runConnectio
nEditor(ConnectionEditorImpl.java:34)
at oracle.jdeveloper.cm.dt.ConnectionEditor.runConnectionEditor(Connecti
onEditor.java:156)
at oracle.dbtools.raptor.navigator.DatabaseNavigatorController.runNewCon
nectionDialog(DatabaseNavigatorController.java:1053)
at oracle.dbtools.raptor.navigator.DatabaseNavigatorController.handleEve
nt(DatabaseNavigatorController.java:302)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:551)
at oracle.ide.controller.IdeAction$2.run(IdeAction.java:804)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:82
3)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:521)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
49)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
a:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1
000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMen
uItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:242)
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)Alessandro
[EDIT]Sorry, I posted the startup messages, not what you were actually asking. Corrected now.
Message was edited by:
archimede -
REG: Split data on CRLF and Length of 10 characters
Dear All,
Oracle Database 11g R2 11.2.0.1 SE1
Consider the below table which has 3 rows
ADDRESS
aaaaaaaaaaaaaaaaaaaaaaaaaCRLFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbCRLFcccccccccccccccCRLFddddd
eeeeCRLFffffffffffffgggggggghCRLF
iiCRLFjjjjjjjjjjkkkCRLF
I need to split the string based on the below conditions
Condition 1: Split string up-to CRLF.
Condition 2: If length of the split string is greater than 10, then split that string by length of 10 characters.
The length of a data is not fixed.
RESULT:-
ADDRESS
aaaaaaaaaa
aaaaaaaaaa
aaaaaCRLF
bbbbbbbbbb
bbbbbbbbbb
bbbbbbbbbb
bbCRLF
cccccccccc
cccccCRLF
ddddd
eeeeCRLF
ffffffffff
ffgggggggg
hCRLF
iiCRLF
jjjjjjjjjj
kkkCRLFIt can be done the obvious way, write your own PL/SQL function/procedure/package with cursor looping through your table, combining instr and substr with necessary conditions, and chopping your string down until it becomes empty, inserting the results into a separate table. If you need to do that in a single query or if you have trouble writing that code, you should go to SQL community - this forum is for SQLDeveloper tool related problems only.
-
SQL Developer 3.2.20.09
I feel so dumb ...
I modified a package, now it won't compile. When I run the sql-File that holds package specification and body it rightly complains that there are errors. I tells me to check the compiler log. First question: where to I find the log?
Ok, than I navigate in the connection browser to the package body itself which is marked as erroneous. ok. I open it. I right click and choose "compile" in the context menu. I would expect now that it shows me a list of syntax errors. But it does not. Nothing happens.
How am I suppose to debug this now? Should I switch back to sql-plus?
thanks for any help!
stephanThanks for your help - but this seems to get even more tricky:
I've tried to do the same thing on a windows machine, and there it works without problems.
The instance of sqldeveloper I have problems with is on ubuntu linux, I have downloaded and installed Sql Developer 3.2.2 for other platforms.
Apart from not being able to compile the package I also miss all the usual icons in the code editor view. See https://dl.dropboxusercontent.com/u/8595447/img86.png
Any ideas how to solve this?
Thanks!
Stephan
Edited by: steph0h on 24.04.2013 12:05 -
Problem in Stored Procedure with DBMS_OUTPUT statement
Hi All,
I am facing a problem in the stored procedure.
In the stored procedure I am picking records from the table and displaying them in the screen using dbms_output.put_line statement. This works fine if my query fetches few records but in case of many records(84000 records) then the oracle application gets hanged.1) How (if at all) does this relate to SQLJ/JDBC? I assume there is some relationship because of the forum you're posting to, so I'm trying to understand whether that relationship is germane to the problem you are having.
2) Why are you writing 86,000 rows of output to the dbms_output buffer? Why wouldn't your stored procedure return a REF CURSOR to your Java application and just have the Java application iterate through those rows?
Justin
Maybe you are looking for
-
Size of sender's name in email messages
When an email is open in Outlook 2013, the sender's name is in a very large font, much bigger than the subject. How can the font size be reduced? thanks.
-
When i am posting material in mb1c getting error 'posting done automatic.'
Hi, when am posting material in mb1c T.code getting error posting can done automatically.... so forthat we need to do that account determination... so i want to know the T.code it's asking some Bsx and Gbb is missing
-
Statement not in an executed state. ?
Hi All, I am getting the following error: Exception: verifyPassword=java.sql.SQLException: [Microsoft][SQLServer 2000 Driv er for JDBC]Invalid operation. Statement not in an executed state.What could be the problem ? Thanks Harish Pathak
-
Can't transfer tv shows to iphone in itunes 9
I've just upgraded itunes to version 9, and updated my iphone to version 3.1. Also have snow leopard 10.6.1. I have itunes set to manually sync content. Before it was just a matter of dragging the selected tv shows over to the iphone icon when it was
-
ITunes (10.7) not showing all duplicates
I have a few duplicate songs on iTunes, some are longer versions of the same song but I found that when searching for duplicates in iTunes and searching for duplicates with Spotlight in Finder there are differences. Spotlight found two copies of a so