Preferences - SQL*Plus: crash in 1.2.1.32-13 / Java 1.6.0_02
I have the following crash when trying to access the SQL*Plus item in the Preferences menu:
java.lang.NullPointerException
at oracle.jdevimpl.db.sqlplus.SqlPlusOptionsPanel.load(SqlPlusOptionsPanel.java:89)
at oracle.jdevimpl.db.sqlplus.SqlPlusOptionsPanel.onEntry(SqlPlusOptionsPanel.java:72)
at oracle.ide.panels.MDDPanel.enterTraversableImpl(MDDPanel.java:921)
at oracle.ide.panels.MDDPanel.enterTraversable(MDDPanel.java:894)
at oracle.ide.panels.MDDPanel.mav$enterTraversable(MDDPanel.java:104)
at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1343)
at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1211)
at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1205)
at javax.swing.Timer.fireActionPerformed(Timer.java:271)
at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
at java.awt.Dialog$1.run(Dialog.java:1039)
at java.awt.Dialog$3.run(Dialog.java:1091)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1089)
at java.awt.Component.show(Component.java:1419)
at java.awt.Component.setVisible(Component.java:1372)
at java.awt.Window.setVisible(Window.java:801)
at java.awt.Dialog.setVisible(Dialog.java:979)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:202)
at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:795)
at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:580)
at oracle.ide.cmd.IdeSettingsCommand.doit(IdeSettingsCommand.java:47)
at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:265)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:571)
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:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1216)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1257)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)Not sure if this is related to the times ten extension I blindly applied (quite stupid, as I don't need it, I know... - though currently it's not listed under Preferences - Extensions).
Alessandro
How do I make a more lasting change to the path?This is not really a Java-related question. Setting environment variables (PATH is one of them of course) is an operating system-specific thing.
I haven't installed Windows Vista (yet) but imagine it's comparable to XP. If so, right-click the "My Computer" icon on your desktop and click "Properties". Find somewhere on the dialog box where it lets you set environment variables.
Similar Messages
-
SQL*Plus crash due to PL/SQL package compilation
The problem:
SQL*Plus crash due to creation large PL/SQL with windows dump error.
But if insert that package using for example ToAD it works fine.
The solution:
I have increased processes parameter in spfile from 40 up to 400. I think it is no need to increase the parameter to such large value, but this value is works.emss wrote:
Can a .sql sql*plus script be called from a pl/sql package? I so, can someone provide a brief example?Not really - there is no easy interface.
There are interfaces that are not easy. You could instead
* use DBMS_SCHEDULER to create a host call to execute an OS script to execute the SQL*PLUS script
* use a java stored procedure to do the same thing
Do a web search to find examples -
If I mistype a query in the SQL Plus window (say a wrong column name) it crashes.
This is happenning with my new installation of Oracle8i 8.1.7 EE on Windows 2000 Pro.
Any Ideas?
Thanks.It's not possible to connect from 10g to 7.3.4, but it works until client version 9.2.0.
Client / Server / Interoperability Support Between Different Oracle Versions
Doc ID: Note:207303.1
Werner -
hi all
we have 2 oracle database
one database ( A) is having database policies & triggers associated with the policies and other is a standard database (B) no policies and triggers
we have db links established between B and A ie. from B to A
when we are running a sqlplus session sqlplus session is terminating ?
any suggestions
regards
kedari am able to successfully connect to database
here is the scenario
there are 2 database newimm and devtest
database links are created on newimm databsae pointing to devtest
devtest database has got database policies, triggers on it ( it is sectorised ) while newimm is a database which is not sectorised which has not got database policies triggers
we are running foll sql
SELECT DISTINCT(a.CLIENT_ID), a.INVALID
FROM [email protected] a ,[email protected] b
WHERE
a.CLIENT_ID = b.CLIENT_ID AND (b.CURRENT_STATUS not in( 4 ,2)
AND b.IMMUNISATION_STATUS != 2
AND b.EXAMINATION_STATUS != 2)
by connecting to newimm database
when the statement is executed the sqlplus session crashes -
Bug in SQL*Plus 9.2.0.1.0 with 8.1.6 instance.
WARNING !!!!
I just installed the client 9.2.0.1.0 but we are still using 8.1.6.3.8 databases on NT.
There is a major BUG in SQL*Plus 9.2.0.1.0. If you do a select on a sys table that have a LONG column, SQL*Plus exits immediately !!!
For example if you try the following "select * from dba_views where rownum = 1;" SQL*Plus crash immediately with no error message.
I could not reproduce this bug with our Unix databases.Hi,
Ok this is defenitly a bug and it can be reproduce with a 9.2.0 client with a 8.1.7 database if and only if the database national character set is WE8ISO8859P1.
A workaround is to change the national character set from WE8ISO8859P1 to WE8DEC. If you use the regular expression "alter database national character set WE8DEC" you will get an error because WE8DEC is not a superset of WE8ISO8859P1. You will have to use the "INTERNAL_USE" clause as in "alter database national character set INTERNAL_USE WE8DEC".
The magic INTERNAL_USE clause is not documented anywhere !
Thanks -
Preference equivalents for relevant SQL*Plus set commands?
I know that the SQL*Plus set command is not supported in Raptor (as per http://www.oracle.com/technology/products/database/project_raptor/sql_worksheet_commands.html), but there are a number of set options that are relevant.
For example, set define (for which "set define off" is covered in Ampersand in scripts We have a number of existing SQL scripts where we have set the define character to something apart from & to avoid issues where this is a required value in the code.
Setting server output size is another option - as per set serveroutput on size unlimited .
Is there any proactive plan to provide preferences equivalent to the set options that are relevant (to either SQL scripts or the various output tabs)? Or is the exclusion of the SQL*Plus set command only for the current version and it will be included later? From the discussion on the forums so far, it seems as though you are looking at each set option as it is raised, rather than being proactive about it.
Even if Raptor does provide preferences, it would still be useful for the equivalent set commands to work. Lets say that we do get a preference for the define character - 99% of the time, scripts want this to be & - however there are some where the script wants it to be $ (or whatever). With a preference, I need to know what the script wants and change the preference before running the script and then change it back afterwards.Hi Turloch,
When is this script executed ?
In 3.1EA2 I created a sql script where a variable is defined and set this script as you suggested.
Script:
define varname=abc
When I open a connection, a worksheet is automatically opened. I run this statements:
select '&varname' from dual;
define varname=xyz
select '&varname' from dual;
Running the first select statement results in a popup window for entering a value for the substitution variable, while I was expecting the value abc as the result of the query.
See also this blog where the login script is explained.
But in my SQL Developer 3.1EA2 64-bit on Windows 7 it doesn't work like that.
Is this a bug?
Dennis -
How to cancel a search in SQL*Plus
Once a search is initiated in SQL*Plus Worksheet, how can you stop it? I am on Windows NT. The normal Ctrl-C, Ctrl-Break, Esc don't work. I found an obscure reference in the SQL*Plus documentation about a cancel function, but it didn't give the keystrokes.
I actually managed to crash an 8.0.5 database by hitting Ctrl-C in the middle of a query.
Oracle Support advised me that this was a known bug. The solution?
Don't hit Ctrl-C in the middle of a query!
null -
GPF in SQL*PLUS Copy Command?
Hello,
I'm getting a GPF and crash of SQL*Plus when I use the copy command. Seems like I used to be able to make it work if I tried logging on to the source database before the copy, but now even that won't work. I issue the command, it looks out over the modem for the remote database, then the GPF occurs.
copy from me/[email protected] to me/me@LocalDB -
insert ARRG_BNDRY_OBJECT -
using -
SELECT * FROM ARRG_BNDRY_OBJECT WHERE ARRG_BNDRY_KEY IN -
(80169);
Ideas?
Thanks,
DaleYou might also want to try the same command using SQL*Plus command line (DOS version). If you haven't used it before, enter SQLPLUS at the command prompt, eg:
c:\sqlplus
Alison -
Sql*plus, instant client problems
I want to connect a linux machine x86 to a server with oracle 9i. So first I wanted to install instant client and I did as is said in the page for basic, sql*plus and SDK packages, but it doesn't work. When I executed ./sqlplus user/pass@connectionchannel in the linux machine, it crashes, without error message.
If I install the windows version and try the connection from a windows machine it works, so the oracle server is working, and there is no problem with the firewalls and so.
I have tried to execute fftrace (to have a kind of log of what programs does)fftrace ./sqlplus user/pass@conn and i saw a lot of lines I paste bellow. I think the last one is read from socket, but I'm not sure and i don't know what to do. I don't know if I can connect without the instant client. I will be very thankfull for any idea you can give me, i don't know what to try.
write(3, "[13-APR-2007 12:49:34:037] nspre"..., 36) = 36
write(3, "reading from transport...\n", 26) = 26
gettimeofday({1176461374, 37784}, NULL) = 0
llseek(3, 0, [63276], SEEKCUR) = 0
write(3, "[13-APR-2007 12:49:34:037] nttrd"..., 34) = 34
write(3, "entry\n", 6) = 6
read(5,I thank you your help, but even with the trc file I don't know what can cause the problem, I don't understand what does it mean. I will thank more help. This is the last lines of the trace file related to my problem:
[24-APR-2007 09:18:37:759] nspsend: 00 2F 00 00 06 04 00 00 |./......|
[24-APR-2007 09:18:37:759] nspsend: 00 00 01 06 05 04 03 02 |........|
[24-APR-2007 09:18:37:759] nspsend: 01 00 4C 69 6E 75 78 69 |..Linuxi|
[24-APR-2007 09:18:37:759] nspsend: 33 38 36 2F 4C 69 6E 75 |386/Linu|
[24-APR-2007 09:18:37:759] nspsend: 78 2D 32 2E 30 2E 33 34 |x-2.0.34|
[24-APR-2007 09:18:37:759] nspsend: 2D 38 2E 31 2E 30 00 |-8.1.0. |
[24-APR-2007 09:18:37:759] nspsend: 47 bytes to transport
[24-APR-2007 09:18:37:759] nspsend: normal exit
[24-APR-2007 09:18:37:759] nsdofls: exit (0)
[24-APR-2007 09:18:37:759] nsdo: nsctxrnk=0
[24-APR-2007 09:18:37:759] nsdo: normal exit
[24-APR-2007 09:18:37:759] nsdo: entry
[24-APR-2007 09:18:37:759] nsdo: cid=0, opcode=85, bl=0, what=0, uflgs=0x0, cflgs=0x3
[24-APR-2007 09:18:37:759] nsdo: rank=64, nsctxrnk=0
[24-APR-2007 09:18:37:759] nsdo: nsctx: state=8, flg=0x100400d, mvd=0
[24-APR-2007 09:18:37:759] nsdo: gtn=127, gtc=127, ptn=10, ptc=2011
[24-APR-2007 09:18:37:759] nsdo: switching to application buffer
[24-APR-2007 09:18:37:759] nsrdr: entry
[24-APR-2007 09:18:37:759] nsrdr: recving a packet
[24-APR-2007 09:18:37:760] nsprecv: entry
[24-APR-2007 09:18:37:760] nsprecv: reading from transport...
[24-APR-2007 09:18:37:760] nttrd: entry -
A query runs in under 1 minute is sql plus, but takes 15 in Discoverer
I have a query that runs in under 1 minute is sql plus, but takes 15+mins in Discoverer. I use 3 parameters in discoverer which i specify as conditions in sql plus query. Any ideas on how to make it run faster??? BTW the query returns 10,000+ records. There is no formatting or sorting involved. Any ideas??? Seems the query execution plan is wrong...
Hi,
I agree with Michael to check your preference settings. Particulary since Plus/Viewer reads the pref.txt on the middle-tier and Desktop reads each individual PC registry.
I would start with checking Query Prediction setttings.
Try turning off Query Prediction. If it is not setup properly it can cause a delay. This is one difference between Discoverer and SQL*PLUS
See forum post:
Re: 20 mins and still predicting!!
Re: Different Performance between Desktop-Query and SQL-Plus
Hope that helps,
Steve. -
Select AR_LOOKUPS retrieved no record while in pl/sql plus record exist
I ran "select * from ar_lookups" no record retrieved while when I run the same script in TOAD or pl/sql plus there are records retrieve.
Sorry for the very late response, but the problem is probably related to AR_LOOKUPS being an eBusiness Suite language specific view, which means the conditions in the view include:
LV.LANGUAGE = userenv('LANG')SQL Developer defaults the NLS settings based on the Regional Settings (assuming you are on Windows) and not the Oracle registry entries (what is typically used by other tools), although you can change this by explicitly setting your NLS preferences via Tools > Preferences > Database > NLS Parameters.
If your only installed transaction for the eBusiness Suite is US (for example), but your SQL Developer NLS settings are such that userenv('LANG') doesn't return US, you will not get any records returned by the AR_LOOKUPS view (or any of the other many language specific views). To get SQL Developer to match the NLS behaviour of other tools, set your NLS parameters to match what you have set in the Oracle registry entries.
theFurryOne -
IF statement in SQL*Plus - how to do it
Hi,
In SQL*Plus script, I would like to keep conditional checking (IF statement) and proceed. For example, whatever is done in PL/SQL block below, want to do the same in SQL*Plus script, I know partly it can be done using VARIABLE keyword, conditional checking can be done using DECODE in SELECT statement, but I want to carry out a more complex requirement, hence I want to use IF statement somehow in SQL*Plus.
Another question, how to do spooling in PL/SQL script, it can be done using UTL_FILE, any other option is there to achieve this.
declare
v_ind_count int;
begin
select count(1) into v_ind_count from user_indexes where index_name = 'index_object_name';
IF v_ind_count > 0
THEN
dbms_output.put_line('index found');
ELSE
dbms_output.put_line('index does not exist');
END IF;
end;
/Hello,
SQL*PLUS has no scripting language. It can only execute SQL and PL/SQL scripts. There are some commands like SPOOL or SET but no commands for conditional statements. You should describe your requirements, maybe we can find a way.
Or you can search the forum, maybe your question has already been answered
[Google for SQL*PLUS + condition|https://www.google.de/search?q=site%3Aforums.oracle.com+"SQL*PLUS"+condition]
# {message:id=4189517}
# {message:id=4105290}
how to do spooling in PL/SQL scriptFrom within PL/SQL you can use dbms_output, the spool has to be started by the calling SQL script when it is executed in SQL*PLUS. Or you can use utl_file, but then you can only write to a server directory, not into a client file. To give an advice we need more information about what you want to do.
Regards
Marcus -
Apex 4.0 - Can see view data in SQL*Plus but no data in Object Browser
Hi There,
I have just started using Apex 4.o and migrated some apps. I have an issue with a report, but see the same issue with Object browser, which is easier to describe.
I have a view:
create or replace view V_PLJ_USERDEF_CODES (
CODE_SET_ID,
CODE_SET_CODE,
CODE_SET_DESC,
CODE_ID,
CODE_SYS_CODE,
CODE_VALUE,
CODE_DESC,
DISPLAY_SEQ,
DISPLAY_FLAG,
LANGUAGE_CODE) as
select CS.CODE_SET_ID,
CS.CODE_SET_CODE,
CS.CODE_SET_DESC,
C.CODE_ID,
C.CODE_SYS_CODE,
C.CODE_VALUE,
C.CODE_DESC,
C.DISPLAY_SEQ,
C.DISPLAY_FLAG,
C.LANGUAGE_CODE
from PLJ_CODES C,
PLJ_CODE_SETS CS
where C.CODE_SET_ID = CS.CODE_SET_ID
and CS.CODE_SET_TYPE_CODE = SYS_CONTEXT('PLJUMPSTART','C_USERDEF_CODE_SET');This returns data in SQL*Plus, but no data in Object Browser OR report region based on this view.
Workspace parses in the same schema as tested in SQL*Plus.
If, in report, I swap out view, and use underlying table - no problem.
Any ideas -
thanks
PHi all,
Thanks for getting back so promptly.
It just seems weird to me, as tables are just fine, but not views.
In the underlying schema:
SQL> sho user
USER is "ICSREPORTING"
SQL> select count(*) from plj_codes;
COUNT(*)
107
SQL> select count(*) from v_plj_userdef_codes;
COUNT(*)
29And in the APEX schema
SQL> sho user
USER is "APEX_040000"
SQL> select count(*) from icsreporting.plj_codes;
select count(*) from icsreporting.plj_codes
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> select count(*) from icsreporting.v_plj_userdef_codes;
select count(*) from icsreporting.v_plj_userdef_codes
ERROR at line 1:
ORA-00942: table or view does not exist
SQL>However, in SQL browser, I can see the data in PLJ_CODES but in V_PLJ_USERDEF_CODES, just the message "This view has no data". Indeed, it is like this for all views.
I even explicitly granted access to APEX_040000 but no good.
In fact, I would like to know more about how Apex gets access to do DML against the underlying parsing schema(s).
This is a little frustrating though. It worked just fine in lots of apps in version 2.1 to 3.2
Am I missing something
paul
p.s I knew there would be a question about the context, but I had already checked that. :)
Edited by: PJ on Nov 19, 2010 4:09 AM -
Can not query PQH_BUDGET_DETAILS in SQL*Plus
Hi!
I can see the Positions in the Forms-Mask within EBS.
I want to write a concurrent Programm which queries some data form the positions-table.
If i klick on "Help > Diagnostics > Examine" and select "system.last_query" i can see, that the data comes from a view called: "PQH_POS_BUDGETS_V".
But if i try to query this view in SQL*Plus, it is empty.
So i had a look at how this view is build, and i found, that the base tables should be PQH_BUDGETS and PQH_BUDGET_DETAILS.
How can i query the position_id in PQH_BUDGET_DETAILS in a concurrent program or an self-writen BI Publisher Report?
If i try to query in SQL*Plus it's empty.
Who can help me with this issue?
Thank you for your help!
Best regards,
ThomasHi!
Thats great!
Thank you very much!
Best regards,
Thomas -
SQL*Plus - how to suppress the SQL in a spool file
This is my SQL*Plus script. I thought I had solved the problem, but it is back now and I don't know what I am missing. But I don't want the query at the top of the file.
SET SERVEROUTPUT ON
SET MARKUP HTML ON -SILENT
SET ECHO OFF
SET PAGESIZE 33
SET TERMOUT OFF
Spool C:\DuaneWilson.xls
SELECT *
FROM RPT_DS1_CNT_CAT_vw
WHERE ROWNUM <=100
ORDER BY CVBI_KEY;
SET MARKUP HTML OFF
SET ECHO ON
SET PAGESIZE 20
SET TERMOUT ON
SET SERVEROUTPUT OFFIt turns out when I run the script with the @ or Start with the file name, there is no SQL put out to the file. But when I just copy the text out of the file and run it at the prompt, the SQL appears in the output file. In reference to the -SILENT, I put that in after the MARKUP statement and got an error. Maybe I don't know where that goes. And I am not sure why there is a difference if it is run as a script or just pasted to the buffer. At least it should be the same in the output file, I would think.
Maybe you are looking for
-
In private browsing not working in Firefox 3.6.12 If I open yahoomail one session for one account and if I open other session for yahoomail, it automatically opens the earlier mail account. But if I want to use more than one yahoomail accounts, in pr
-
Hi All, Can any one explain what steps needs to be taken for archiving PR_ORDER. I am looking for below scenario: 1) Setting up of Residence time for process order and how it works? 2) If any additional steps needs to be taken care to archive Process
-
Unable to view logs in SM21 older than one day
I am unable to view any logs in SM21 older than one day. What parameters need to be checked that would cause this? Thanks!
-
Black Screen on switch to tty after install proprietary catalyst-hook
After Install the latest version of : catalyst-total 14.9-1 from AUR I can startx and login to x sessions, But I can'nt switch to tty right after that executing startx and entering into X Also after suspend. When i pressing C+M+F2 or even logout from
-
Adobe Raw 7.1 for Mac and CS 5
RE: Adobe Raw 7.1, I have CS 5 Adobe RAW 6.7.0.339, OS 10.6.8. When I check CS 5 for updates it says that there are non availible. When I download 7.1 from Adobe site it says it is not for me. What is happening? Is CS5 not being supported anymore?