Alter session set NLS_DATE_FORMAT and to_date not working

Hey folks,
for the sake of simplicity let's assume i want to get the current system time from the table dual in a certain format, e.g. 'YY.MM.DD'.
Currently the query
select sysdate from dual;
yields:
07-JAN-08
The desired output should look like this:
08.01.07
So, according to the manual, i tried the following:
alter session set NLS_DATE_FORMAT = 'yy.mm.dd';
No effect, date is still displayed as
07-JAN-08
Even the following query:
select TO_DATE (sysdate, 'yy.mm.dd') from dual;
yields
07-JAN-08
What am i doing wrong here?
Additional information:
-> DB is Oracle 9
-> I am using the Oracle SQL Developer under Ubuntu Gutsy
-> No, i did not forget to commit my commands....:-)
Any ideas?

select TO_CHAR (sysdate, 'yy.mm.dd') from dual;However the alter session command should work:
SQL*Plus: Release 9.2.0.2.0 - Production on Mon Jan 7 14:32:26 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
SQL> alter session set NLS_DATE_FORMAT = 'yy.mm.dd';
Session altered.
SQL> select sysdate from dual;
SYSDATE
08.01.07
SQL> Note: There is nothing to commit here. Only selects, no DML.
Message was edited by:
Sven W.

Similar Messages

  • Ability to perform ALTER SESSION SET SQL TRACE but not all alter clauses

    I see that in order to run the ALTER SESSION SET SQL TRACE command, the user should be explicitly granted alter session privilege as the CREATE SESSION privilege alone is not enough. Is there a way to grant the ability to perform ALTER SESSION SET SQL TRACE but not the other clauses such as GUARD, PARALLEL & RESUMABLE?.
    Thanks
    Sathya

    If you are using Oracle 10g and above, you can use DBMS_SESSION.session_trace_enable procedure,
    it doesn't require alter session system privilege.
    Simple example:
    SQL> connect test/test@//192.168.1.2:1521/xe
    Connected.
    SQL> alter session set tracefile_identifier='my_id';
    Session altered.
    SQL> alter session set sql_trace = true
      2  ;
    alter session set sql_trace = true
    ERROR at line 1:
    ORA-01031: insufficient privileges
    SQL> execute dbms_session.session_trace_enable;
    PL/SQL procedure successfully completed.
    SQL> select * from user_sys_privs;
    USERNAME                 PRIVILEGE                    ADM
    TEST                      CREATE PROCEDURE                NO
    TEST                      CREATE TABLE                    NO
    TEST                      CREATE SEQUENCE                    NO
    TEST                      CREATE TRIGGER                    NO
    TEST                      SELECT ANY DICTIONARY               NO
    TEST                      CREATE SYNONYM                    NO
    TEST                      UNLIMITED TABLESPACE               NO
    7 rows selected.
    SQL> execute dbms_session.session_trace_disable;
    PL/SQL procedure successfully completed.
    SQL> disconnect
    Disconnected from Oracle Database 10g Release 10.2.0.1.0 - Productionand here is result from tkprof:
    TKPROF: Release 10.2.0.1.0 - Production on So Paź 23 00:53:07 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Trace file: xe_ora_176_my_id.trc
    ( ---- cut ---- )
    select *
    from
    user_sys_privs
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.08       0.08          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        2      0.01       0.01          0         15          0           7
    total        4      0.09       0.09          0         15          0           7
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 61 
    Rows     Row Source Operation
          7  HASH GROUP BY (cr=15 pr=0 pw=0 time=11494 us)
          7   CONCATENATION  (cr=15 pr=0 pw=0 time=4913 us)
          0    MERGE JOIN CARTESIAN (cr=4 pr=0 pw=0 time=1169 us)
          0     NESTED LOOPS  (cr=4 pr=0 pw=0 time=793 us)
          0      TABLE ACCESS FULL SYSAUTH$ (cr=4 pr=0 pw=0 time=592 us)
          0      INDEX RANGE SCAN I_SYSTEM_PRIVILEGE_MAP (cr=0 pr=0 pw=0 time=0 us)(object id 312)
          0     BUFFER SORT (cr=0 pr=0 pw=0 time=0 us)
          0      TABLE ACCESS FULL USER$ (cr=0 pr=0 pw=0 time=0 us)
          7    NESTED LOOPS  (cr=11 pr=0 pw=0 time=3429 us)
          9     HASH JOIN  (cr=9 pr=0 pw=0 time=2705 us)
          9      TABLE ACCESS FULL SYSAUTH$ (cr=4 pr=0 pw=0 time=512 us)
         63      TABLE ACCESS FULL USER$ (cr=5 pr=0 pw=0 time=914 us)
          7     INDEX RANGE SCAN I_SYSTEM_PRIVILEGE_MAP (cr=2 pr=0 pw=0 time=510 us)(object id 312)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                       2        0.00          0.00
      SQL*Net message from client                     2       20.64         20.65
    BEGIN dbms_session.session_trace_disable; END;
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.01       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           1
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.01       0.00          0          0          0           1
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 61 

  • How to execute the ' alter session set NLS_DATE_FORMAT='YYYYMMDD'  in the procedure??

    hi,
    i programme a procedure which include some requirements that
    should execute the command like ' alter session set
    NLS_DATE_FORMAT='YYYYMMDD' '.
    but the sqlplus error is
    PLS-00103: Encountered the symbol "ALTER" when expecting one of
    the following:
    begin declare end exit for goto if loop mod null pragma
    raise
    return select update while <an identifier>
    <a double-quoted delimited-identifier> <a bind
    variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall
    <a single-quoted SQL string>
    The symbol "update was inserted before "ALTER" to
    continue.
    help me please.

    you can set that parameter in 2 ways from stored procedures.
    1) execute immediate 'alter session...'
    remember, Oracle gives commit while executing above command.
    2) use dbms_session.set_nls procedure.
    dbms_session.set_nls('nls_date_format','mm/dd/yyyy');
    Suresh Vemulapalli

  • Set time and date not working

    Set up time and date is not working, since I changed settings from Saudi Arabia to USA...want time and date from USA?!

    You need to set your location to where you are, not where you might like to be.

  • Execute sql command "ALTER SESSION SET..."

    How can i execute command "ALTER SESSION SET NLS_DATE_FORMAT ='MM/DD/YYYY'" with JDBC
    api.
    And by default?
    Bye
    Ste

    I'm not sure that you want to do this in Java. I would imagine that the NLS_DATE_FORMAT would be set by the Oracle DBA, and shouldn't be changed by a Java app via JDBC.
    Besides, when you query the database for a date it's returned as a java.sql.Date, regardless of the settings in the database. Once you have that, you can format it according to your wishes by using java.text.DateFormat and java.text.SimpleDateFormat.
    I thought the point was that the JDBC driver took care of ensuring that you got java.sql.Date objects back from queries, regardless of the NSL_DATE_FORMAT setting in the database.

  • How do you get firefox 4 to save tabs and windows and restore them? Don't say set preferences to open them on startup or use restore previous session under history; those do not work. Or is it no longer possible to save windows and tabs?

    Question
    How do you get firefox 4 to save tabs and windows and restore them? Don't say set preferences to open them on startup or use restore previous session under history; those do not work. Or is it no longer possible to save windows and tabs?

    '''IT'S A EASY AS IT SHOULD BE.'''
    This is essentially paulbruster's answer, but I've added the steps some might assume, but which aren't so obvious to those of us who are new at this, like me.
    This solution might ''appear'' to be long and complicated, but after you follow the directions once, you'll find it's quick, clean, and simple. Almost like they designed it this way.
    # If you haven't already, open a bunch of tabs on a few different subjects.
    # Click the List All Tabs button on the right side of the tab strip.
    # Select Tab Groups.
    # Create a few groups as described [http://support.mozilla.com/en-US/kb/what-are-tab-groups#w_how-do-i-create-a-tab-group here] , i.e. just drag them out of the main thumbnail group into the new groups they create.
    # Now click on any thumbnail in any new group, but not the original big default group you may have left some tabs in.
    #A regular Firefox window will open, but'' only the tabs in that group will be visible.'' You also now have the Tab Groups button in the tab strip.
    # Right click on any tab, and there it is: Bookmark All Tabs. Click on it in the list of options. Or you can hit Ctrl+Shift+D instead and go straight to the dialogue box from the tab without any clicks. But don't go looking for this familiar option anywhere else, 'cause it's not there.
    # Now pick an existing folder or create a new one just like you would have before and '''shlpam!''' there they are. New folders are supposed to end up in the Unsorted category all the way at the very bottom, but for some reason mine show up at the bottom of my last sorted category.
    # DO NOT CLICK THE UPPER-RIGHTMOST X to close this group of tabs. This will close ALL of your tabs in all groups, currently visible or not. At least it asks if you're sure first. Instead, click your new Tab Groups button to return to the Boxes 'O Thumbnails window, and click the X in the group box you just bookmarked.
    # Click on another thumbnail to repeat the process with another group, or click on a thumbnail in the big default box to return to the original FF window. You can also click the Tab Groups button at the upper right, or Ctrl+Shift+E, which will also get you ''into'' the Boxes 'O Nails window ''from'' FF.
    # So now when you reopen FF after shutdown, simply select your folder from your Bookmarks and Open All in Tabs. '''Just like paulbruster said. '''

  • "alter session set sql_trace true"  in my pakage is not working

    Hi
    I have a package with some procedures..in one of my procedure which is executed in the first step i run the :
    execute immediate 'alter session set sql_trace true';
    this command is executed in debug mode and generate trace file(GOOD) but in running mode i haven't trcce file.
    what is wrong in my code ?

    http://download.oracle.com/docs/cd/E11882_01/server.112/e26088/statements_2013.htm#SQLRF00901 says parameter_name = parameter_value
    Regards
    Etbin

  • I have an ipod touch it is either a second or third edition and i have just had to restore it to factory setting as it was not working and now the wifi on the device is no longer working. Is there anything i can do about this?

    i have an ipod touch it is either a second or third edition and i have just had to restore it to factory setting as it was not working and now the wifi on the device is no longer working. Is there anything i can do about this?

    Is it this:
    iOS: Wi-Fi or Bluetooth settings grayed out or dim
    One user reported that placing the iPod in the freezer fixed the problem. A trick that works frequently with iPhones:
    Settings > AirPlane Mode ON, Do Not Disturb ON
    Power down and wait 5-10 minutes
    Power up
    Settings > AirPlane Mode OFF, Do Not Disturb OFF
    If not successful, an appointment at the Genius Bar of an Apple store is usually in order.
    Apple Retail Store - Genius Bar
    Otherwise:
    Does the iOS device connect to other networks?
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect before?
    Try the following to rule out a software problem:                 
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • I just got the iPhone 5 and noticed that the message alerts will only alert once . I have it set up as 3 times and its not working . Please help. I'm running 6.0.2 and I really starting to get ****** off with apple products

    I just got the iPhone 5 and noticed that the message alerts will only alert once . I have it set up as 3 times and its not working . Please help. I'm running 6.0.2 and I really starting to get ****** off with apple products

    Instead of getting annoyed, read the User's Guide and try basic troubleshooting.

  • My iCloud is set up and seems to work. However, a newly added contact does not sync from the Macbook to the iphone and iPad. What am I doing wrong?

    My iCloud is set up and seems to work. However, a newly added contact does not sync from the Macbook to the iphone and iPad. What am I doing wrong? Thanks, txstan

    Apparantly it is, On My Mac contacts don't appear in iCloud, anywhere.
    Put all your contacts on all of your devices in iCloud (assuming that's where you want them to be)
    Go to www.icloud.com, login and see what you actually have in the account.

  • Execute immediate 'alter session set current_schema = ' failed in PL/SQL

    Hi
    I am trying to run
    EXECUTE IMMEDIATE 'ALTER SESSION SET CURRENT_SCHEMA = TEST ' ;
    in a pl/sql block but it is failing.Can anyone update me on this.
    CREATE OR REPLACE PROCEDURE test3
    IS
    A_COUNT NUMBER(15);
    BEGIN
    EXECUTE IMMEDIATE 'ALTER SESSION SET CURRENT_SCHEMA = TEST ' ;
    SELECT COUNT(*) INTO A_COUNT FROM (
    select id from solutions );
    END;
    /

    The user who owns the procedure needs to be granted direct select rights on table test.solutions (not via a role). Still will not help. Look what OP is trying to do. In a stored procedure owned by some user (other than TEST) OP is trying to reference user TEST owned table solution without prefixing it with owner. Something like:
    SQL> create table u1.test_tbl(x number);
    Table created.
    SQL> select * from test_tbl;
    select * from test_tbl
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> alter session set current_schema = U1;
    Session altered.
    SQL> select * from test_tbl;
    no rows selected
    SQL> However, OP tries to do it in a SP using dynamic SQL to change current schema to test. Such change will occur when SP will be executed, not when is it compiled. At compile time we are still under SP owner's schema and therefore select from solutions implies table solutions owned by SP owner, not by TEST. The only way to make SP compile and work OK is to select from solutions also dynamically:
    SQL> select sys_context('userenv','current_schema') from dual
      2  /
    SYS_CONTEXT('USERENV','CURRENT_SCHEMA')
    SCOTT
    SQL> CREATE OR REPLACE PROCEDURE test3
      2  IS
      3  A_COUNT NUMBER(15);
      4  BEGIN
      5  EXECUTE IMMEDIATE 'ALTER SESSION SET CURRENT_SCHEMA = U1' ;
      6  SELECT COUNT(*) INTO A_COUNT FROM (
      7  select x from test_tbl );
      8  END;
      9  /
    Warning: Procedure created with compilation errors.
    SQL> sho err
    Errors for PROCEDURE TEST3:
    LINE/COL ERROR
    6/1      PL/SQL: SQL Statement ignored
    7/15     PL/SQL: ORA-00942: table or view does not exist
    SQL> set serveroutput on
    SQL> CREATE OR REPLACE PROCEDURE test3
      2  IS
      3  A_COUNT NUMBER(15);
      4  c sys_refcursor;
      5  BEGIN
      6  EXECUTE IMMEDIATE 'ALTER SESSION SET CURRENT_SCHEMA = U1' ;
      7  OPEN C FOR 'SELECT COUNT(*) FROM (select x from test_tbl )';
      8  FETCH c INTO A_COUNT;
      9  dbms_output.put_line(a_count);
    10  CLOSE c;
    11  END;
    12  /
    Procedure created.
    SQL> insert into u1.test_tbl select rownum from emp;
    14 rows created.
    SQL> exec test3
    14
    PL/SQL procedure successfully completed.
    SQL> Obviously, as you noted SP owner must have directly granted select on test3.solutions.
    SY.

  • Is it risky to use statement : "alter session set events"

    Hi guys,
    I am extracting data from cxml documents.
    I had to run the following code "EXECUTE IMMEDIATE ('alter session set events ''31156 trace name context forever, level 2'''); " to disable the DTD validation...b4 running any xml extract function on it.
    Example:
    CREATE OR REPLACE FUNCTION f_test (
    p_cxml IN CLOB
    RETURN BOOLEAN
    AS
    l_payload varchar2(100);
    l_cXML sys.xmltype := sys.xmltype.createXML(p_cxml);
    BEGIN
    EXECUTE IMMEDIATE ('alter session set events ''31156 trace name context forever, level 2''');
    SELECT EXTRACTVALUE(l_cXML,'/cXML/@payloadID')
    INTO l_payload
    FROM DUAL;
    RETURN TRUE;
    DBMS_OUTPUT.PUT_LINE (l_payload);
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.PUT_LINE (SQLCODE || ' - '||SQLERRM);
    RETURN FALSE;
    END;
    The vlaue of the parameter p_cxml could be
    p_cXML clob:=
    '<?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.021/Fulfill.dtd">
    <cXML payloadID="[email protected]"
    timestamp="2000-10-12T18:39:09-08:00" xml:lang="en-US">
    <Request deploymentMode="test">
    <OrderRequest>
    <OrderRequestHeader orderID="DO1234" orderDate="2000-10-12T18:41:29-08:00"
    type="new">
    <Total>
    <Money currency="USD">187.60</Money>
    </Total>
    <ShipTo>
    <Address>
    <Name xml:lang="en">Acme</Name>
    <PostalAddress name="default">
    <DeliverTo>Joe Smith</DeliverTo>
    <DeliverTo>Mailstop M-543</DeliverTo>
    <Street>123 Anystreet</Street>
    <City>Sunnyvale</City>
    <State>CA</State>
    <PostalCode>90489</PostalCode>
    <Country isoCountryCode="US">United States
    </Country>
    </PostalAddress>
    </Address>
    </ShipTo>
    </OrderRequestHeader>
    </OrderRequest>
    </Request>
    </cXML>';
    It is seems to be working.......................
    MY QUESTION IS...
    Is there any risk Involved to Using the
    EXECUTE IMMEDIATE ('alter session set events ''31156 trace name context forever, level 2'''); statment.
    Any Help will be greatly appreciated.
    Thanks.

    Most "set events" are workarounds or needed for Oracle support to do some debugging. Using them is at your own risk, and probably not supported by Oracle if you get into trouble.

  • While Compile the Package it shows "alter session set plsql_trace=false"

    Hi,
    My package was working fine and suddenly the status is invalid
    so i tried compiling the package that time sql developer got hanged, package also not getting compiled.
    i asked DBA to find out the status, they said the following query is running from your machine.
    "Alter session set plsql_trace=false". once they kill the session, sql developer got released.
    What could be the reason for this?? please help me to resolve this.......
    Thanks,
    G

    Most "set events" are workarounds or needed for Oracle support to do some debugging. Using them is at your own risk, and probably not supported by Oracle if you get into trouble.

  • APEX Maps - ALTER SESSION set nls_numeric_characters

    How alter session only for nls_numeric_characters in one page. I found problem in apex maps. Not working (marker and Bubles) if I use Polish Application Primary Language
    I'm tryied it, but without success
    begin
    EXECUTE IMMEDIATE 'ALTER SESSION set nls_numeric_characters=". "';
    end;
    Can you help me ?

    I do an execute immediate but it doesn't work. Is it something like that?
    EXECUTE IMMEDIATE ('alter session set nls_numeric_characters=",."')

  • Help needed w/ JDeveloper and Raptor not working for me in 10.4

    Well, I've been successfully running the previous version of JDeveloper, 10.1.2.0.0 (Build 1811) for a few months on my OS X, Tiger (10.4) laptop. I recently tried to get Project Raptor running. I'm using Apple's version of Java from Software Update, J2SE 5.0 Release 3 which is the most up-to-date version I can find anywhere.
    My problem is this. I can do most anything fine, but as soon as I try to Debug an PL/SQL function in either Raptor, or the JDeveloper 10.1.3 build I get an error "Unsupported feature Vendor Code 17023" when I click OK in the Debug PL/SQL dialog box.
    Thing is that this works just fine in JDeveloper 10.1.2.0.0 (Build 1811). The thing that is interesting is the 10.1.2 JDeveloper uses the Java 1.4.2 where Raptor and JDeveoper 10.1.3 use the Java 1.5, I'm guessing it's a problem in Apple's Java 1.5 but can anyone else verify this or offer help to how I can make it work?
    tks

    I fail to get the error message you describe. What I get is:
    ===========================
    Connecting to the database test10.
    Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
    Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '10.0.1.103', '52221' )
    Debugger accepted connection from database on port 52221.
    Processing 59 classes that have already been prepared...
    Finished processing prepared classes.
    ===========================
    Is this ok ?
    In the console log I got:
    sh ./raptorOracle Raptor 1.0
    Copyright (c) 2005 Oracle Corporation. All Rights Reserved.
    Working directory is /Users/ronr/Desktop/raptor/jdev/bin
    Initializing.. oracle.dbtools.raptor.explorer.jdev.ConnectionDialogAddin@1972bf
    Assert: Unknown Node:8: USER
    Assert: Unknown Node:8: SHARED QUERIES
    Assert: Unknown Node:8: TABLE EDITORS
    Assert: Unknown Node:8: VIEWS
    Assert: Unknown Node:8: MVIEWS
    Assert: Unknown Node:8: SYNONYM
    Assert: Unknown Node:8: SEQ
    Assert: Unknown Node:8: Recycle Bin
    Assert: Unknown Node:8: DB Link
    Assert: Unknown Node:8: MVIEW LOG
    Assert: Unknown Node:8: PLSQL
    Assert: Unknown Node:8: TRigger
    Assert: Unknown Node:8: INDEX
    Assert: SQLView initedException in thread "JPDA Event Processor" java.lang.IllegalAccessError: tried to access class com.sun.tools.jdi.VirtualMachineImpl from class com.sun.tools.jdi.OracleReferenceTypeImpl
    at com.sun.tools.jdi.OracleReferenceTypeImpl.<init>(OracleReferenceTypeImpl.java:60)
    at com.sun.tools.jdi.OracleReferenceTypeImpl.convert(OracleReferenceTypeImpl.java:203)
    at com.sun.jdi.OracleExtension.convert(OracleExtension.java:38)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.getOracleReferenceType(DebugJDI.java:559)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.addClass(DebugJDI.java:626)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.addClassForReferenceType(DebugJDI.java:549)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.run(DebugJDI.java:2651)
    at java.lang.Thread.run(Thread.java:613)
    Assert: Finding Context Menu for:FUNCTION_FOLDER
    Exception in thread "JPDA Event Processor" java.lang.IllegalAccessError: tried to access class com.sun.tools.jdi.VirtualMachineImpl from class com.sun.tools.jdi.OracleReferenceTypeImpl
    at com.sun.tools.jdi.OracleReferenceTypeImpl.<init>(OracleReferenceTypeImpl.java:60)
    at com.sun.tools.jdi.OracleReferenceTypeImpl.convert(OracleReferenceTypeImpl.java:203)
    at com.sun.jdi.OracleExtension.convert(OracleExtension.java:38)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.getOracleReferenceType(DebugJDI.java:559)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.addClass(DebugJDI.java:626)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.addClassForReferenceType(DebugJDI.java:549)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.run(DebugJDI.java:2651)
    at java.lang.Thread.run(Thread.java:613)
    Exception in thread "JPDA Event Processor" java.lang.IllegalAccessError: tried to access class com.sun.tools.jdi.VirtualMachineImpl from class com.sun.tools.jdi.OracleReferenceTypeImpl
    at com.sun.tools.jdi.OracleReferenceTypeImpl.<init>(OracleReferenceTypeImpl.java:60)
    at com.sun.tools.jdi.OracleReferenceTypeImpl.convert(OracleReferenceTypeImpl.java:203)
    at com.sun.jdi.OracleExtension.convert(OracleExtension.java:38)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.getOracleReferenceType(DebugJDI.java:559)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.addClass(DebugJDI.java:626)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.addClassForReferenceType(DebugJDI.java:549)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.run(DebugJDI.java:2651)
    at java.lang.Thread.run(Thread.java:613)
    Exception in thread "JPDA Event Processor" java.lang.IllegalAccessError: tried to access class com.sun.tools.jdi.VirtualMachineImpl from class com.sun.tools.jdi.OracleReferenceTypeImpl
    at com.sun.tools.jdi.OracleReferenceTypeImpl.<init>(OracleReferenceTypeImpl.java:60)
    at com.sun.tools.jdi.OracleReferenceTypeImpl.convert(OracleReferenceTypeImpl.java:203)
    at com.sun.jdi.OracleExtension.convert(OracleExtension.java:38)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.getOracleReferenceType(DebugJDI.java:559)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.addClass(DebugJDI.java:626)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.addClassForReferenceType(DebugJDI.java:549)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.run(DebugJDI.java:2651)
    at java.lang.Thread.run(Thread.java:613)
    In jdev/bin/raptor.conf I had to set:
    SetSkipJ2SDKCheck true
    I use:
    /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/
    Ronald.

Maybe you are looking for