3.1EA: Spacing broken in SQL Worksheet (worked in 3.0)
I have version 3.1.05.97 - not sure if that's EA1 or EA2 (why doesn't Help > About contain the text EA1 or EA2?)
Run this command:
select * from v$session;
Then scroll to the right. In 3.1, the spacing for the heading doesn't match the column data. The problem starts in the 2nd column: the heading for SID is only 3 characters wide, but the data is 4 characters wide. Every column gets progressively worse.
The same command in 3.0.04.34 looks correct, even when scrolling to the last column.
I have no detailed knowledge of what changed in this area between 3.0 and 3.1, but I would agree it's a bug (Raghu, too?).
I guess Statement Runner (F9) is doing a better job of sizing the column width in 3.1, so maybe it would be easy for the developer to apply that logic to Script Runner (F5) output as well.
In terms of SQL*Plus default column width control for numeric data types, it uses:
set numwidth n
show numwidthPerhaps that could ultimately be an approach for SQL Developer to take, if and when the Worksheet supports that syntax. You might want to add that as a feature request on the SQL Developer Exchange.
-Gary
Similar Messages
-
See [1.1.1.25.14] Backspace key doesn't work in SQL Worksheet
The same problem still applies to build 1.1.2.25.79, only this time, for added fun, the suggested workaround of editing
<sqldeveloper_home>\sqldeveloper\system\oracle.ide.1.1.2.25.79\settings.xml
doesn't work either. I'm well and truly stuck now.
Message was edited by:
user545045Just to add weight to the "it doesn't default to
[0]", on my installation it is [8] and I have never
had problems with the backspace.Interesting, if I do a clean install (just unzipping sqldeveloper-1.1.2.2579-no-jre.zip to a random dir, starting up sqldeveloper.exe, pointing it to my j2sdk and ignoring the 'migrate settings from previous release' dialog) the \sqldeveloper\system\oracle.ide.1.1.2.25.79 remains empty until I shut down SQL Developer.
During shutdown, 8 files are created in this dir, one of which is settings.xml. Low and behold the contents:
<Item class="oracle.javatools.util.Pair">
<first class="java.lang.String">Ide.LAST_EDIT_CMD_ID</first>
<second class="oracle.ide.keyboard.KeyStrokes">
<data>
<Item class="javax.swing.KeyStroke">[0]</Item>
</data>
</second>
</Item>
<Item class="oracle.javatools.util.Pair">
<first class="java.lang.String">delete-previous</first>
<second class="oracle.ide.keyboard.KeyStrokes">
<data>
<Item class="javax.swing.KeyStroke">[0]</Item>
</data>
</second>
</Item>
Message was edited by:
user545045 -
How can I turn off auto formatting whilst working in the SQL Worksheet?
Friends,
Hope you can help with a quick question.
Is it possible to stop the auto formatting of SQL statements in the SQL worksheet?
e.g. When I type select * from dual it auto formats to becomes SELECT * FROM DUAL when I hit return.
I am using SQL Developer 2.1.1.64
Thanks in advancePreferences - Code Editor - Completion Insight - uncheck Change case as you type
Have fun,
K. -
SQL Worksheet doesn't work after reordering a column
SQL Developer 1.1 (1.1.0.23.64)
Sun Java jdk1.6.0
RHEL-4.4
Once a column is reordered in SQL Worksheet Data Grid, it is not possible to receive an output in Results tab (Grid Data) from any consequent query issued after that. The Grid Results panel remains blank (frozen) !!!
AlbertDoesn't happen for me... did you follow the getting started and installation docs?
K -
SQL Worksheet unaccessible for keyboard
Hi,
I have SQL Developer on Ubuntu 8.10
Platform 1.6.0_10
Oracle IDE 1.5.4.59.40
Versioning Support 1.5.4.59.40
Sometimes I'm unable to type in SQL Worksheet area, mouse actions work good (like copy, paste, cut).
Does somebody know how to solve it.
Thanks!
Andrey DmitrenkoHi
Thanks for the response, however even after loading the Default Accelorator preset & then restarting SQLDeveloper, I can't enter anything into the SQL worksheet. Is there anything further I can try (i.e. trashing the prefs etc)?
Thanks for any assistance on this
Simon
P.S. Ubuntu 9.04 -
How to execute procedure in SQL Worksheet ?
Hi, anybody know, how I can execute procedure here?
I try EXEC sec_roles, EXEC security_admin.sec_roles, EXECUTE - there is a SQL statement error. When I use CALL - there is no such procedure (I have execute previleges).
Although in SQLPlus EXEC works, but there are problems with standard SQL commands (all of them returns "2" no matter what content is).
Any ideas?
Regards
Krzysztofexec procedure(parameters) is a sql plus (and a few others) shortcut for
BEGIN
procedure(parameters);
END;So try that then pressing/clicking whatever it is in sql worksheet that makes a statement run.
Note that if your procedure has parameters defined as OUT or IN OUT, you will need to supply a variable to accept the returned value(s).
John -
What happended to "Save As" in the SQL Worksheet?
I am using 14.22 in Windows XP. In the previous version 13.43 I used to:
1) Open a new SQL Worksheet.
2) Type in statements.
3) Press Ctrl-S to save the contents of the SQL Worksheet panel to a new file, an "Open File" dialog appeared.
4) Enter file name for new SQL script file.
Now when I press Ctrl-S I do not get the "Open File" dialog. The Ctrl-S saves the SQL Worksheet contents to a temp file in my user/.sqldeveloper/tmp directory. I have to copy the contents of the SQL Worksheet panel into a text editor and save it to a SQL file. Or I copy the SQL file in my temporary directory to the new file I want.
I saw in another thread that the SQL Worksheet contents is not being saved to a temporary file to help prevent loss of contents if there were a machine outage. This change may have caused this problem.
I use the "Save As" functionality in the SQL Worksheet a lot. That was how I create SQL files.
How do I create a SQL script in SQL Developer now?
MikeIt got dropped by accident but it will be back in for EA7 that we expect to release any day now (just writing the release notes for it now). We have the Save As back in the menu and a right-click Save File from the Worksheet to save your work.
-- Sharon -
Currently using version 1.1.2.25 Build MAIN-25.79
Yesterday I installed updates and extension for using Subversion.
This morning having started SQL Developer up I am unable to use arrow keys, backspace, return key, delete key, home, end keys in SQL Worksheet. All these keys are available in Microsoft Word so its not the keypad.
Can anyone provide an answer as a matter of urgency.
Thanks.I would be amazed it if worked. So many differences between SQL Dev and JDev.. not to mention that SQL Dev is built on an unreleased JDev platform. Uninstall that extension and everything will probably go back to normal. You can setup external tools to mimic (albeit crudely) some of the functionality of the extension.
-
Bug in SQL Developer 1.5 SQL Worksheet
Hello,
did any of you already encounter the following effect in version 1.5's SQL Worksheet?
When I try to execute the following statement in version 1.5:
select (1 +
2 -
3 +
4)
from dual;
I get the error: ORA-00907 missing right parenthesis
With more complex statements I also get an 'unimplemented feature' error.
When I put the operators in front like this:
select (1
+ 2
- 3
+ 4)
from dual;
i get the correct answer '4' as result. Seems to be clearly a bug for me. In version 1.2 both versions work perfectly well.
Does anyone know whether there's already some bug filed for this or whether there's a patch around?
Regards HolgerHi Dieter W.
It looks like the command does work in sqlplus , from what I can see only the first line (and continued first line) has continuation character facility. (I am working on an other related SQLDeveloper bug).
i.e. No continuation character (10.2XE)
SQL> select (1 +
2 -
3 +
4)
from dual;
2 3 4 5
(1+2-3+4)
4
Continuation character:
SQL> select (1 -
1 -
1 -
3)
from dual
2 3 select (1 1 1 3)*
ERROR at line 1:
ORA-00907: missing right parenthesis
I am on the lookout for more information...
-Turloch -
SQL statement works with SQL/Plus - but not with ODBC
Hi all,
I have a rather copmplex SQL statement:
BEGIN
UPDATE ContentDataTable
SET SYMBOLIC_PATH_PARENT = N'/Test',
SYMBOLIC_NAME = N'HAWK01.GIF',
VERSION_NUMBER = 1 +
SELECT MAX(VERSION)
FROM
(SELECT MAX(VERSION_NUMBER) AS VERSION
FROM ContentDataTable WHERE
SYMBOLIC_PATH_PARENT = N'/Test' AND
SYMBOLIC_NAME = N'HAWK01.GIF'
UNION
SELECT MAX(VERSION_NUMBER) AS VERSION
FROM RevisedContentDataTable WHERE
SYMBOLIC_PATH_PARENT = N'/Test' AND
SYMBOLIC_NAME = N'HAWK01.GIF'))
WHERE SYMBOLIC_PATH_PARENT = N'/Test' AND SYMBOLIC_NAME = N'HAWK02.GIF' AND VERSION_NUMBER = 1;
END;
It works fine in SQL/Plus or SQL Worksheet and does what it should do ;-)
But when using it via ADO (ODBC Driver) I get the following error:
PLS-00103 found 'string' but expected one of the following: 'string'"}
Any idaes?
Thanx,
Christian
nullPardon my ignorance, but what's the significance of the N'<string>' construction? That's not one I'm familar with.
Justin -
SQL-Developer 1.5.4 - SQL-Worksheet does not use Table-Owner
In old versions of the sql-Developer you can drop a Table in the Worksheet and a select Query was built. With the new version 1.5.4 the table-owner is missng and you must fill in the table-owner or the query does not work with tables of other users.
Is that a bug or are there the posibility of change settings to drop tables in the SQL-worksheet with table-owners.The drag and drop functionality was updated so that when you use drag and drop the schema is not prefixed for the current user you are connected to. However it is appended if you drag a table form another connection. It appears to have been overlooked for Other Users. We will address this in a future release. In the meantime,a workaround is to create a connection to the other users and then the drag and drop will append the connection name.
Sue -
SQL Developer 31EA1 SQL Worksheet not allowing entry
When select to open a new SQL worksheet or having open a worksheet on connection, the system will bring up a new tab with the blue shading. It stops at that point. I can not enter anything and if I try and do other tasks, even exit Developer, I get a connection busy error message. If I try and click the try again button it just keeps reappearing. If I click the abort and try and do anything els I get the error again. I have to go to task manager and kill the task to get out of SQL developer. I am using Windows XP, JAVA 1.6.0_26 32 bit versions. Everything was working when I was using 3.0.
Hi,
See this post for the likely problem:
Re: SQL Developer 3.1EA1 JAVA Error During Export
Regards,
Gary
SQL Developer Team -
On my system, with win xp pro and jdk 1.5.0_09, completion insights don't work in SQL Worksheet.
I've forced debug mode in sqldeveloper.conf en started up SQL Developer 1.1.1.25.14 via the command prompt, which means stack traces are now dumped to system out.
This is what happens when I type ctrl-space in SQL Worksheet:
13-Feb-2007 15:21:15 oracle.dbtools.raptor.insight.CompletionInsight getDefaultInsightContext
INFO: context = fr
13-Feb-2007 15:21:15 oracle.dbtools.raptor.insight.CompletionInsight getInsightData
INFO: getInsightData: fr
13-Feb-2007 15:21:15 oracle.dbtools.db.DBUtil executeOracleQuery
INFO: Prepared:select object_type,owner,object_name,rank from ( select object_type,owner,object_name,0 rank from all_objects where object_name = :NAME
and UPPER(owner) = nvl(:OWNER,UPPER(sys_context('USERENV', 'CURRENT_SCHEMA'))) and object_type not in ( 'SYNONYM' ) union all select ao.object_typ
,ao.owner,ao.object_name,decode(UPPER(syn.owner), nvl(:OWNER,UPPER(sys_context('USERENV', 'CURRENT_SCHEMA'))),10,20) from all_objects ao,all_synonyms syn
where ao.owner = syn.table_owner and ao.object_name = syn.table_name and syn.synonym_name = :NAME ) where object_type not in ('PACKAGE BODY') order
by rank
13-Feb-2007 15:21:15 oracle.dbtools.db.DBUtil bind
INFO: Bind:NAME:FR
13-Feb-2007 15:21:15 oracle.dbtools.db.DBUtil bind
INFO: Bind:OWNER:null
13-Feb-2007 15:21:15 oracle.dbtools.db.DBUtil executeOracleQuery
INFO: Prepared:select 'SCHEMA' object_type , :OWNER owner , :OWNER object_name from all_users where username = :OWNER
13-Feb-2007 15:21:15 oracle.dbtools.db.DBUtil bind
INFO: Bind:OWNER:FR
13-Feb-2007 15:21:15 oracle.dbtools.raptor.insight.CompletionInsight getInsightData
INFO: Found base Object
13-Feb-2007 15:21:15 oracle.dbtools.raptor.insight.CompletionInsight findAliasedName
INFO: Checking:select * fr
Exception invoking action: completion-insight
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1768)
at oracle.dbtools.raptor.insight.CompletionInsight.getInsightData(CompletionInsight.java:247)
at oracle.javatools.editor.insight.AbstractInsight.showInsight(AbstractInsight.java:777)
at oracle.javatools.editor.insight.AbstractInsight.invokeCompletionTypeAction(AbstractInsight.java:395)
at oracle.javatools.editor.insight.AbstractInsight.invokeAction(AbstractInsight.java:368)
at oracle.javatools.editor.BasicEditorPane.invokeAction(BasicEditorPane.java:1983)
at oracle.ide.ceditor.keymap.IdeKeymapHelper.invokeAction(IdeKeymapHelper.java:185)
at oracle.javatools.editor.keys.MultiKeyHandler.keyPressed(MultiKeyHandler.java:334)
at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:191)
at java.awt.Component.processKeyEvent(Component.java:5446)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2713)
at java.awt.Component.processEvent(Component.java:5265)
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.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:672)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:920)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:798)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:636)
at java.awt.Component.dispatchEventImpl(Component.java:3841)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
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)
Hope this helps...On my system, with win xp pro and jdk 1.5.0_09,
completion insights don't work in SQL Worksheet.
I've forced debug mode in sqldeveloper.conf en
started up SQL Developer 1.1.1.25.14 via the command
prompt, which means stack traces are now dumped to
system out.
This is what happens when I type ctrl-space in SQL
Worksheet:
13-Feb-2007 15:21:15
oracle.dbtools.raptor.insight.CompletionInsight
getDefaultInsightContext
INFO: context = fr
13-Feb-2007 15:21:15
oracle.dbtools.raptor.insight.CompletionInsight
getInsightData
INFO: getInsightData: fr
13-Feb-2007 15:21:15 oracle.dbtools.db.DBUtil
executeOracleQuery
INFO: Prepared:select
object_type,owner,object_name,rank from ( select
object_type,owner,object_name,0 rank from all_objects
where object_name = :NAME
and UPPER(owner) =
nvl(:OWNER,UPPER(sys_context('USERENV',
'CURRENT_SCHEMA'))) and object_type not in (
'SYNONYM' ) union all select ao.object_typ
,ao.owner,ao.object_name,decode(UPPER(syn.owner),
nvl(:OWNER,UPPER(sys_context('USERENV',
'CURRENT_SCHEMA'))),10,20) from all_objects
ao,all_synonyms syn
where ao.owner = syn.table_owner and ao.object_name =
syn.table_name and syn.synonym_name = :NAME ) where
object_type not in ('PACKAGE BODY') order
by rank
13-Feb-2007 15:21:15 oracle.dbtools.db.DBUtil bind
INFO: Bind:NAME:FR
13-Feb-2007 15:21:15 oracle.dbtools.db.DBUtil bind
INFO: Bind:OWNER:null
13-Feb-2007 15:21:15 oracle.dbtools.db.DBUtil
executeOracleQuery
INFO: Prepared:select 'SCHEMA' object_type , :OWNER
owner , :OWNER object_name from all_users where
username = :OWNER
13-Feb-2007 15:21:15 oracle.dbtools.db.DBUtil bind
INFO: Bind:OWNER:FR
13-Feb-2007 15:21:15
oracle.dbtools.raptor.insight.CompletionInsight
getInsightData
INFO: Found base Object
13-Feb-2007 15:21:15
oracle.dbtools.raptor.insight.CompletionInsight
findAliasedName
INFO: Checking:select * fr
Exception invoking action: completion-insight
java.lang.StringIndexOutOfBoundsException: String
index out of range: -1
at java.lang.String.substring(String.java:1768)
at
oracle.dbtools.raptor.insight.CompletionInsight.getIns
ightData(CompletionInsight.java:247)
at
oracle.javatools.editor.insight.AbstractInsight.showIn
sight(AbstractInsight.java:777)
at
oracle.javatools.editor.insight.AbstractInsight.invoke
CompletionTypeAction(AbstractInsight.java:395)
at
oracle.javatools.editor.insight.AbstractInsight.invoke
Action(AbstractInsight.java:368)
at
oracle.javatools.editor.BasicEditorPane.invokeAction(B
asicEditorPane.java:1983)
at
oracle.ide.ceditor.keymap.IdeKeymapHelper.invokeAction
(IdeKeymapHelper.java:185)
at
oracle.javatools.editor.keys.MultiKeyHandler.keyPresse
d(MultiKeyHandler.java:334)
at
java.awt.AWTEventMulticaster.keyPressed(AWTEventMultic
aster.java:191)
at
java.awt.Component.processKeyEvent(Component.java:5446
at
javax.swing.JComponent.processKeyEvent(JComponent.java
:2713)
at
java.awt.Component.processEvent(Component.java:5265)
at
java.awt.Container.processEvent(Container.java:1966)
at
java.awt.Component.dispatchEventImpl(Component.java:39
55)
at
java.awt.Container.dispatchEventImpl(Container.java:20
24)
at
java.awt.Component.dispatchEvent(Component.java:3803)
at
java.awt.KeyboardFocusManager.redispatchEvent(Keyboard
FocusManager.java:1810)
at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(
DefaultKeyboardFocusManager.java:672)
at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEve
nt(DefaultKeyboardFocusManager.java:920)
at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertio
ns(DefaultKeyboardFocusManager.java:798)
at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(Def
aultKeyboardFocusManager.java:636)
at
java.awt.Component.dispatchEventImpl(Component.java:38
41)
at
java.awt.Container.dispatchEventImpl(Container.java:20
24)
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(Ev
entDispatchThread.java:163)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchT
hread.java:157)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchT
hread.java:149)
at
java.awt.EventDispatchThread.run(EventDispatchThread.j
ava:110)
Hope this helps...The Oracle instance I'm connecting to:
Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
PL/SQL Release 9.2.0.7.0 - Production
CORE 9.2.0.7.0 Production
TNS for Solaris: Version 9.2.0.7.0 - Production
NLSRTL Version 9.2.0.7.0 - Production -
Light Grey-Blue highlighting significance in SQL Worksheet - turn it off?
Hi
I've been working with SQLDeveloper for a while, and I'm now intrigued what the significance of the light context sensitive highlighting in the SQL worksheet window might be.
If I have one SQL statement in the window and I execute it with a ctrl-enter then the statement gets a blue-grey highlight.
If there are two statements and you ececute the second then the second one gets the goulish highlight.
I'm sure that this makes good sense to someone.
Is there any way to turn this quirkish thing off?
Thanks
MikeHi Tim
Thanks for the reply.
Apart from turning it off - I can't figure out why you would want it in the first place??
Usually someone spends time coding something they think will add value.
For me it's just clutter especially when I'm editing a long(ish) script of 100+lines - I just prefer a clean interface.
I have enough difficulty working out what I should be coding - let alone having my script switching colours on and off ;(
Anyone else?
Thanks
Mike -
ORA-0911 Errors in SQL Worksheet
Is anyone else getting ORA-0911 errors in the Worksheet when they press F9? It is, of course, not consistent or easily repeatable, but seems to occur when I've got more than about three SQL statements in the worksheet and just typed another at the end.
It's not a problem with my SQL, because I can cut and then paste the statement elsewhere in the worksheet and F9 will work fine. Of course when I then cut and paste it back to the bottom it carries on working as well.
I'm trying to figure out exactly when this happens but of course the behaviour isn't consistent enough to narrow it down. I'm hoping that other people are also seeing this error message a lot and that there is either a known problem or that we can collectively figure out what is going on.The specific error must be in one of the earlier threads that was talking about this problem, but when I have problem with SQL Worksheet not identifying the current statement out of multiple statements, it is almost always the ORA-911.
If the statement runs fine when you select the specific text, then I would say that the problem is the SQL Worksheet statement selection rather than anything to do with the DB version.
As an example - I am connecting to 9.2.0.5 and if my SQL Worksheet contains:
select dummy
from dual
where dummy like '%'
select dummy
from dual
where dummy not like '%'
If I use F9 anywhere in the SQL Worksheet, I get the ORA-911 error.
However if I select the the text of either statement, it runs fine (first returning a record and second not).
If I delete the two where clauses, I don't get the ORA-911 error, even if I don't select the statement text explicitly.
Maybe you are looking for
-
How to display the PK which is it alreday database sequence in a text field
hi alllllllllllllll how to display the PK which is it alreday database sequence in a text field in form instance???
-
Hi : 1) What kind of data do we send as payload in the http cleint. 2) i took the xml from TEST of mapping. 3) Error : java.lang.NullpointerException thrown during application mapping . 4) payload i sent : <?xml version="1.0" encoding="UTF-8"?> <ns0:
-
hi there, I just bought a MSI vox USB tv card and I can't seem to get the audio to work. The video image is ok, but how do I connect the sound since i have no audio line in ??? i tried it with the mic port, but i don't get any sound, just some noise
-
CF 9.01 Upgrade breaks Flex Gateway - Help!!!!
I have an AIR app which is using DataServicesMessaging with subtopics enabled. I can create the Consumer in AIR but when I subscribe, I get the following error: "Error","cfthread-0","08/31/10","21:03:35",,"CATALOG_ATTRIBUTES_831AE0FE-B7D2-90A5-87AD-
-
Keyword "enum" used in package definition of pre 1.5 library
Hello, I want to use a "old" library which defines a package org.pokersource.enum When I try to use it with java 1.5 the word "enum" is rejected because it is reserved now. Is there any simple way to use this old library with java 1.5? Thank you.