Code Templates/Completion Insight SQL Developer 3.2.2

Hello, today I got the version 3.2.2. During the first start all setting from my previous version were imported and all work perfect, except the completion insight.
If I write
ssf +[CTRL + Space]
the result in the previous version is
select * from
In the new version, for the same input is:
ssfselect * from
For other code template it is the same, the id for the code template will not be delete while setting the code template.
Is this a bug or is there somethin wrong with my enviroment?

It's a bug that's been fixed for version 4.0.

Similar Messages

  • BUG: EA 2.1 code editor: completion insight doesn't work in opened files

    I just migrated from SQLDEV 1.5.5 to EA 2.1. It's nice that I colud find so many of my suggestions implemented in this new version. THANKX :-)
    code editor:
    When I'm working in SQL Worksheet the "completion insight" feature is working well, but when I try to use it in an opened file, it doesn't work.
    Is there a special preference to turn on for use with files?
    Edited by: @chris on 12.11.2009 10:57

    Correct it did work in 1.5. on .sql files, when connected, so I have updated the ER to bug. We also need to expand this to support PL/SQL files.
    Sue

  • BUG?: Code Editor – Completion Insight  - Autogenerate GROUP BY clause

    With the “Autogenerate GROUP BY clause” enabled the following problem occurs:
    Coding an inline select in an aggregate query:
      SELECT   (SELECT   DEPARTMENT_NAME
                  FROM   departments d
                 WHERE   d.department_id = e.department_id) dep
            , JOB_ID
            , SUM (salary)
        FROM   employees e
    GROUP BY   department_id, job_idCode group-by-autogenerate transforms this from time to time into:
      SELECT   (SELECT   DEPARTMENT_NAME
                  FROM   departments d
                 WHERE   d.department_id = e.department_id) dep
                 , JOB_ID
                 , SUM (salary)
        FROM   employees e
        GROUP BY (SELECT   DEPARTMENT_NAME
                  FROM   departments d
                 WHERE   d.department_id = e.department_id), JOB_IDWhich results in:
    ORA-22818. 00000 - "subquery expressions not allowed here"
    *Cause:    An attempt was made to use a subquery expression where these
    are not supported.
    *Action:   Rewrite the statement without the subquery expression.
    when trying to run it.
    (version 2.1.0.6.3; build MAIN-63.73; Windows XP)

    Duplicate of
    2.1 EA1 - Auto Group By inserted when unwanted/expected

  • Code completion(insight) not working in SQL Developer Version 2.1.1.64

    I recently downloaded SQL developer Version 2.1.1.64. However the code completion feature is not working automatically. I have checked the Automatically complete code in SQL worsheet checkbox under Tools->Preferences-> Code Editor-> Completion Insight.
    Strangely, I get the code completion pop up window when I explicitly press the completion insight shortcut(Ctrl + Space).
    Please help.
    Thanks and Regards.

    Hi, I am getting the following logs :
    Code completion time = 1015
    *...?aux tok2?, parse time = 63
    InsightableOracleDatabase.fetch() time = 360
    Code completion time = 844
    Finished parsing = 0
    *...?aux tok2?, parse time = 62
    InsightableOracleDatabase.fetch() time = 344
    Code completion time = 812
    Finished parsing = 0
    *...?aux tok2?, parse time = 63
    InsightableOracleDatabase.fetch() time = 359
    Code completion time = 891
    Finished parsing = 0
    Thanks

  • How stop case changing in SQL developer editor

    Dear Friends,
    When I start editing in SQL developer(version 1.6), case i.e. formatting of words gets changed automatically.
    Is there any option to stop case changing.
    Thanking in advance
    Sanjeev

    Assuming you are on SQL Developer 2.1.X try unsetting
    Tools -> Preferences -> Code Editor -> Completion Insight -> change case as you type

  • Completion Insight on Mac

    Hi -
    Version 3.2.20.09.
    Code Editor>Completion Insight All check boxes checked.
    Does this functionality work on a Mac (Os X 10.8.2) connection to Sql Server using the 3rd party tools as referenced in the documentation.
    I would love to use SD but not having the auto complete makes it unusable.
    It never works. Ever. Not automatically, not by trying to invoke it using ctr+spacebar or any other shortcuts I've created and tried.
    Doesn't work for table/view population or sql functions.
    Is there something additional I need to do or am I barking up the wrong tree?
    thanks

    For Oracle, yes.
    For SQL Server, no.
    SQL Server support is primarily for migrations to Oracle. I know many folks like to run SQL Developer for SQL Server b/c it will run on a Mac, but it's not intended to be a fully featured IDE for any database platform other than Oracle database.

  • SYS_REFCURSOR in SQL Developer

    Hello! I'm trying to execute function which returns sys_refcursor. Code is generated by Sql Developer Run command
    DECLARE
    P_DATE_FROM DATE;
    P_DATE_TO DATE;
    P_OUT_ERROR_CODE VARCHAR2(200);
    v_Return SYS_REFCURSOR;
    BEGIN
    P_DATE_FROM := SYSDATE - 10;
    P_DATE_TO := SYSDATE;
    v_Return := MONITORING.GET_MONITORING_DATA(
    P_DATE_FROM => P_DATE_FROM,
    P_DATE_TO => P_DATE_TO,
    P_OUT_ERROR_CODE => P_OUT_ERROR_CODE
    :P_OUT_ERROR_CODE := P_OUT_ERROR_CODE;
    :v_Return := v_Return; --<-- Cursor
    END;
    Function body:
    FUNCTION get_monitoring_data
    ( p_date_from IN DATE
    , p_date_to IN DATE
    , p_out_error_code OUT VARCHAR2
    RETURN SYS_REFCURSOR
    IS
    v_cursor SYS_REFCURSOR;
    BEGIN
    OPEN v_cursor FOR
    SELECT * FROM person_case;
    RETURN v_cursor;
    END get_monitoring_data;
    Unfortunately I'm receiving error every time:
    ORA-06550: line 18, column 20:
    PLS-00382: expression is of wrong type
    Line 18 is: :v_Return := v_Return;
    Everything works fine in VS Developer Tools and PL/SQL Developer
    What I'm doing wrong? Thanks in advance!

    I don't use SQL Developer, though I'm sure it must have a way of handling ref cursors.
    In SQL*Plus you would do something like...
    SQL> ed
    Wrote file afiedt.buf
      1  CREATE OR REPLACE
      2  FUNCTION get_monitoring_data(p_date_from IN DATE
      3                              ,p_date_to IN DATE
      4                              ,p_out_error_code OUT VARCHAR2
      5                              ) RETURN SYS_REFCURSOR IS
      6    v_cursor SYS_REFCURSOR;
      7  BEGIN
      8    OPEN v_cursor FOR
      9      SELECT * FROM emp;
    10    RETURN v_cursor;
    11* END get_monitoring_data;
    SQL> /
    Function created.
    SQL> var p_out_error_code varchar2;
    SQL> var v_return refcursor;
    SQL> ed
    Wrote file afiedt.buf
      1  DECLARE
      2    P_DATE_FROM DATE;
      3    P_DATE_TO DATE;
      4    P_OUT_ERROR_CODE VARCHAR2(200);
      5    v_Return SYS_REFCURSOR;
      6  BEGIN
      7    P_DATE_FROM := SYSDATE - 10;
      8    P_DATE_TO := SYSDATE;
      9    v_Return := GET_MONITORING_DATA(
    10                  P_DATE_FROM => P_DATE_FROM,
    11                  P_DATE_TO => P_DATE_TO,
    12                  P_OUT_ERROR_CODE => P_OUT_ERROR_CODE
    13                 );
    14    :P_OUT_ERROR_CODE := P_OUT_ERROR_CODE;
    15    :v_Return := v_Return;
    16* END;
    SQL> /
    PL/SQL procedure successfully completed.
    SQL> print v_return;
         EMPNO ENAME      JOB              MGR HIREDATE                    SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-1980 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-1981 00:00:00       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-1981 00:00:00       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-1981 00:00:00       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-1981 00:00:00       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-1981 00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-1981 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 19-APR-1987 00:00:00       3000                    20
          7839 KING       PRESIDENT            17-NOV-1981 00:00:00       5000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-1981 00:00:00       1500          0         30
          7876 ADAMS      CLERK           7788 23-MAY-1987 00:00:00       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-1981 00:00:00        950                    30
          7902 FORD       ANALYST         7566 03-DEC-1981 00:00:00       3000                    20
          7934 MILLER     CLERK           7782 23-JAN-1982 00:00:00       1300                    10
    14 rows selected.
    SQL>So that SQL*Plus has the variables that the returned values are going to be bound to (the ones signified by the ":")
    SQL Developer should have something similar I would guess to allow the returned values to be bound out so that it can then fetch and display the contents of the ref cursor itself.

  • How To version a Schema in SQL Developer?

    How To version a Schema in SQL Developer? Is there any open source tool for windows? I used a trial version of Source Control for Oracle by Red Gate. But i am looking for a free tool or way around? Like we do versioning in Jdeveloper?Any help in this regard would be much appreciated.

    SQL Developer supports e.g. Subversion out of the box.
    Open Sql Developer Help and search for "Versioning"
    Using Versioning
    SQL Developer provides integrated support for the Subversion and Git versioning and source control systems, and you can add support for other such systems as extensions by clicking Help, then Check for Updates. Available extensions include CVS (Concurrent Versions System) and Perforce.
    This is the part about support for versioning. The next step would be how you organize your workflow so every source is available in your repository.
    Maybe an online tutorial can help you: Using Source Code Control in Oracle SQL Developer 3.0
    Regards
    Marcus

  • SQL Developer load Java error

    Hello, I'm trying to load Java code to my Oracle SQL developer. On Load java, I choose Java source from my hdd (from NetBeans destination folder) and I get the below error. Any help?
    error code:
        Error in Source Code 
        &Exception in Stack Trace 1 of 1 
        java.sql.SQLSyntaxErrorException: ORA-24344: success with compilation error 
        ORA-06512: at line 1 
            at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447) 
            at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396) 
            at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879) 
              ......  here is the code. It works well in NetBeans and I'm trying to load it in SQL Developer in .java file
    package c2_01_signhelloworld;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.security.GeneralSecurityException;
    import java.security.KeyStore;
    import java.security.PrivateKey;
    import java.security.Security;
    import java.security.cert.Certificate;
    import org.bouncycastle.jce.provider.BouncyCastleProvider;
    import com.itextpdf.text.DocumentException;
    import com.itextpdf.text.Rectangle;
    import com.itextpdf.text.pdf.PdfReader;
    import com.itextpdf.text.pdf.PdfSignatureAppearance;
    import com.itextpdf.text.pdf.PdfStamper;
    import com.itextpdf.text.pdf.security.BouncyCastleDigest;
    import com.itextpdf.text.pdf.security.DigestAlgorithms;
    import com.itextpdf.text.pdf.security.ExternalDigest;
    import com.itextpdf.text.pdf.security.ExternalSignature;
    import com.itextpdf.text.pdf.security.MakeSignature;
    import com.itextpdf.text.pdf.security.MakeSignature.CryptoStandard;
    import com.itextpdf.text.pdf.security.PrivateKeySignature;
    public class C2_01_SignHelloWorld {
        public static final String KEYSTORE = "C:/Users/myFile/Documents/itext/2/ks";
        public static final char[] PASSWORD = "password".toCharArray();
        public static final String SRC = "C:/Users/myfile/Documents/itext/2/unsigned1.pdf";
        public static final String DEST = "C:/Users/myfile/Documents/itext/2/unsigned1_signed.pdf";
        public void sign(String src, String dest,
                Certificate[] chain,
                PrivateKey pk, String digestAlgorithm, String provider,
                CryptoStandard subfilter,
                String reason, String location)
                        throws GeneralSecurityException, IOException, DocumentException {
            // Creating the reader and the stamper
            PdfReader reader = new PdfReader(src);
            FileOutputStream os = new FileOutputStream(dest);
            PdfStamper stamper = PdfStamper.createSignature(reader, os, '\0');
            // Creating the appearance
            PdfSignatureAppearance appearance = stamper.getSignatureAppearance();
            appearance.setReason(reason);
            appearance.setLocation(location);
            appearance.setVisibleSignature(new Rectangle(36, 748, 144, 780), 1, "sig");
            // Creating the signature
            ExternalDigest digest = new BouncyCastleDigest();
            ExternalSignature signature = new PrivateKeySignature(pk, digestAlgorithm, provider);
            MakeSignature.signDetached(appearance, digest, signature, chain, null, null, null, 0, subfilter);
        public static void main(String[] args) throws GeneralSecurityException, IOException, DocumentException {
            BouncyCastleProvider provider = new BouncyCastleProvider();
            Security.addProvider(provider);
            KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());
            ks.load(new FileInputStream(KEYSTORE), PASSWORD);
            String alias = (String)ks.aliases().nextElement();
            PrivateKey pk = (PrivateKey) ks.getKey(alias, PASSWORD);
            Certificate[] chain = ks.getCertificateChain(alias);
            C2_01_SignHelloWorld app = new C2_01_SignHelloWorld();
            app.sign(SRC, String.format(DEST, 1), chain, pk, DigestAlgorithms.SHA256, provider.getName(), CryptoStandard.CMS, "Test 1", "Ghent");
            app.sign(SRC, String.format(DEST, 2), chain, pk, DigestAlgorithms.SHA512, provider.getName(), CryptoStandard.CMS, "Test 2", "Ghent");
            app.sign(SRC, String.format(DEST, 3), chain, pk, DigestAlgorithms.SHA256, provider.getName(), CryptoStandard.CADES, "Test 3", "Ghent");
            app.sign(SRC, String.format(DEST, 4), chain, pk, DigestAlgorithms.RIPEMD160, provider.getName(), CryptoStandard.CADES, "Test 4", "Ghent");

    Hi,
    This could be one of those cases where using Java 7 versus Java 6 makes a difference, or perhaps there is some conflict with the JDBC driver version. So, a few things to try...
    1. Make sure your installation's SetJavaHome line in ...\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf points to a Java 6 JDK.
    2. If (1) does not work, also uncheck the Use OCI/Thick driver box in Tools -> Preferences -> Database -> Advanced.
    3. If (1) and (2) do not work, also copy the ojdbc6.jar from any Oracle client you might have installed to your installation's ...\sqldeveloper\jdbc\lib directory
    I would think doing just (1) should be sufficient. If on Mac OS, use sqldeveloper-Darwin.conf instead.
    Hope this helps and please post back here and let us know, one way or the other,
    Gary
    SQL Developer Team

  • Completion Insight changes since v1.5.5

    The completion insight is dramatically less useful in versions since 1.5.5. In that version the pop up completions were very fast, and the focus was always on the "best match" for the table in question. Also, common keywords such as FROM, WHERE, etc. popped up quickly. There current version is so slow that it isn't really useful, and it seems to stop working (3.2.20.09. but also 3.1.07) often.
    When pounding out a lot of code, the completion insight for 1.5.5 is really a productivity tool. Is there any chance that a future version will get back to that level of excellence?

    Previously, when I turned on my computer, a Safari browser window would automatically open on my screen. I didn't have to touch anything and I liked this. Now, however, the Safari application "starts" (as evidenced by the little blue dot under the dock icon) but no window opens...
    Others have reported this. It seems to be a bug. The workaround is to remove Safari from your login items and replace it with a webloc file pointing to the site you want opened at login. To create the file, load the site and drag the URL from the address bar to the Desktop. Rename the file if you wish, then put it anywhere in your home folder. Add it to your login items.
    I seem to have lost some auto-fill or predictive text functionality.
    Also reported, also apparently a bug, or perhaps an intentional change. I don't know of a workaround.
    ...in Safari's preferences I have checked the box which reads "Open 'safe' files after downloading."  Previously, whenever I would download a document from my email, it would open automatically. I liked this. Now, however, the files download and are saved in my downloads folder but do not open.
    I've never used this feature myself, because I think it's dangerous, so I don't know how it's changed. In the past it has caused security problems. It has always been true that Safari would only open downloaded files that were considered "safe," according to their type. Some file types that were formerly considered safe may no longer be -- at least, I hope that's the case.

  • Installed Oracle Warehouse Builder which broke SQL Developer

    Version 1.5.4 build MAIN-5940
    SQL Developer worked fine. I installed Oracle Warehouse Builder and now SQL Developer cannot make a connection when I click on a connetion in the connectons window. When I look at the properties of the connection they look fine and when I click the "test" button I get a success message. When I click the "connect" button it appears to connect. However, When I click a connection on the navigator window I get this error message
    Invalid connection information specified.
    Verify the URL format for the speicified driver.
    Vendor Code 0
    I reinstalled SQL Developer but no help.

    Don't know OWB, but I asume it installs some version of client, which could be picked up by sqldev.
    If the problem really is that client, here's something that usually does it: trick sqldev by changing your ORACLE_HOME within a batch file inside sqldev's folder. This would force using the supplied thin driver:
    set ORACLE_HOME=%CD%
    start sqldeveloper.exeHope that helps,
    K.

  • SQL DEVELOPER 3EA1 -- Doesn't show my Code Template ?

    Hi
    I wander if someone could help to workout with Code template in SQL Developer 3.0EA1 (0.5.97)
    I have many code template in my previous release 3.0 ( Tools --> Preferences --> Database --> SQL Editor Code Template ). When I was typing first word of Code Template, It was appearing but this is not the case in 3.0EA1 , It shows me default Code Template not the one I am looking for.
    Thanks
    Hemesh.

    They have been removed:
    http://vadimtropashko.wordpress.com/2011/10/11/documentation-code-snippets/
    Here is how you get your programed code template back. In the worksheet invoke your code template the "official" way, that is via abbreviation. Run the statement. Now it's in SQL History and should be shown in code insight.

  • Code Templates in SQL Developer 2.1

    Hi all!
    Looks like this feature does not work at all. Even followed the instructions from Sue's book page 99:
    In SQL Developer 2.1, simply start typing the code from the
    template, and the full code is displayed in the code insight drop list. Select the code
    to add it to the SQL Worksheet.
    Any ideas?
    Thanks,
    Radu

    Hi,
    Really disappointed to see that code template dont work in v 2.1. If it is considered that code insight can replace ctr + shift + T than this is wrong assumption.
    ctr + shift + T was so easy to use. Also the code insight dont pop up for templates having PL/SQL blocks. For examples
    If a template T1 is like
    BEGIN
    <Some processing statements>
    END;
    than T1 can not be used as template in 2.1 unlike 1.5.
    Hope the issue is fixed very soon else users would prefer to use 1.5.
    Regards,
    Sandeep G
    Edited by: [email protected] on Jan 28, 2010 3:37 AM

  • Code insight not working in sql developer 1.1.0.23

    i just downloaded today. insight options all checked in preferences section. popup time set to less than a second. i get nothing to work in sql worksheet or while modifying a package body.

    Hello,
    You should see things from this side sometimes ;-) It's a small team, working hard, very focused! Yes, there is indeed a sense of urgency and we are testing a patch SQL Developer 1.1 at the moment. There is always the battle between wanting to get an updated release to you, the community, quickly, and delaying to ensure what you get is good.
    Code insight, performance and many other issues have been addressed in this patch.
    As for your other point, we want the tool to be lightweight, easy to install, easy to use with a clear user interface. Perhaps there'll be a new battle when adding features, but that's the goal.
    Regards
    Sue

  • SQL Developer 2.1.1.64 - code template does not work in Windows Vista

    I have been trying to import a code template in SQL Developer 2.1.1.64 / Windows Vista using the following steps:
    1. Import template (xml) file using "Preferences > Database > SQL Formatter > Import..." option. Pressed "OK" button.
    2. Clicked on "Preferences > Database > SQL Formatter > Oracle Formatting".
    I expected to see the new profile under "Profile" drop-down-list-box, but it does not appear there.
    I tried putting the template (xml) file under various locations, including:
    (a) C:\Users\<user_name>\
    (b) C:\Users\<user_name>\AppData\Roaming\SQL Developer\
    Please let me know any suggestions that you may have.
    Thanks in advance.

    I got it to work. In step 1 that I mentioned, "OK" button should not be pressed; go to step 2 without pressing "OK" button.

Maybe you are looking for

  • Dual boot Solaris 10 / Windows 2003

    Hi, I have a computer with Windows 2003 installed and free disk space for more partitions. My question is that if Solaris after being installed will recognise Windows and create entry for it in the boot system. Any help would be apreciated. Warm Rega

  • Find multiple tags in PE 4.0

    I am using Photoshop Elements 4.0 in Windows XP pro to organize a large collection of photos. It's working great, with one exception. I have tagged all 3000+ photos by location, event, people present and a couple of other classes of tags. I am trying

  • Modify Batch Sequence to generate two reports per UUT with different names.

    I have a special situation for the batch model. Each UUT consist of two separate products that must be tested as a single unit. I can run each UUT and generate a test report for each.  - aka. The standard use case works great. However we are keeping

  • JavaScript-File and Caching

    Hi all, i use version 3.1.0.00.32 an have a problem/question. I save a javascript-file in SharedComponents and put a reference to this file in a Page (Header-Text of page attributes, <script src="#WORKSPACE_IMAGES#tooltip.js"></script>. This works fi

  • WLC 2504 client only connects at 5.5Mbps for Single SSID

    Hi, I have a WLC2504 with three SSIDs configured and I have noticed that when my laptop connects to the main one it will only connect at 5.5Mbs. When I connect to the other two I get the full 72Mbps that my wireless card will allow. I have checked th