SQL Developer find-replace in selection replaces everywhere when using scope Prompted

SQL Developer version: 4.0.0.12
I didn't test this in 3.x, might be interesting to do so.
How to reproduce:
- copy paste the the following example text to your SQL Developer worksheet
     test
     test
     test
- Select the first line
- open the find and replace dialog
     - Text to search for: "test"
     - Select replace with, and fill out "example"
     - select "Selected Text only"
     - select Scope "Prompted" <- this step is essential for this bug, Scope "All" and "single" work fine
     - Click OK
- In the hover-dialog you will get an option to choose "yes" "no" or "all"
     - If you select "all", all three instances of "test" will be replaced, not just the one that was selected.
     - If you click "yes" multiple times, it will also go over the non-selected instances.
How to fix:
My guess is that once the find-replace dialog closes to show the hover-dialog, the selection is lost since the worksheet lost focus.
So, store in memory what lines where selected, don't re-read that information from the worksheet.

SQL Developer version: 4.0.0.12
I didn't test this in 3.x, might be interesting to do so.
How to reproduce:
- copy paste the the following example text to your SQL Developer worksheet
     test
     test
     test
- Select the first line
- open the find and replace dialog
     - Text to search for: "test"
     - Select replace with, and fill out "example"
     - select "Selected Text only"
     - select Scope "Prompted" <- this step is essential for this bug, Scope "All" and "single" work fine
     - Click OK
- In the hover-dialog you will get an option to choose "yes" "no" or "all"
     - If you select "all", all three instances of "test" will be replaced, not just the one that was selected.
     - If you click "yes" multiple times, it will also go over the non-selected instances.
How to fix:
My guess is that once the find-replace dialog closes to show the hover-dialog, the selection is lost since the worksheet lost focus.
So, store in memory what lines where selected, don't re-read that information from the worksheet.

Similar Messages

  • SQL Developer 3.2 crashes with java error when using OCI/Thick Driver

    I just installed SQL Developer 3.2 on my linux desktop. SQL Developer crashes with a java error when I select a database from the object tree.
    When I check Use OCI/Thick driver the application will crash when I navigate to the tree and open a database.
    The app does not crash then I have Use OCI/Thick driver unchecked.
    Here are some details of my environment:
    Desktop OS: Fedora 17 Linux
    $ uname -a
    Linux 3.5.1-1.fc17.x86_64 #1 SMP Thu Aug 9 17:50:43 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
    Java:
    $ java -version
    java version "1.6.0_34"
    Java(TM) SE Runtime Environment (build 1.6.0_34-b04)
    Java HotSpot(TM) 64-Bit Server VM (build 20.9-b04, mixed mode)
    Oracle instant client:
    $ sqlplus -V
    SQL*Plus: Release 11.2.0.3.0 Production
    Here are the error messages:
    $ sqldeveloper
    Oracle SQL Developer
    Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
    # A fatal error has been detected by the Java Runtime Environment:
    # SIGSEGV (0xb) at pc=0x00007f6de7157664, pid=3049, tid=140109371119360
    # JRE version: 6.0_34-b04
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.9-b04 mixed mode linux-amd64 compressed oops)
    # Problematic frame:
    # V [libjvm.so+0x516664] unsigned+0xd4
    # An error report file with more information is saved as:
    # /tmp/hs_err_pid3049.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    /opt/sqldeveloper/sqldeveloper/bin/../../ide/bin/launcher.sh: line 544: 3049 Aborted (core dumped) ${JAVA} "${APP_VM_OPTS[@]}" ${APP_ENV_VARS} -classpath ${APP_CLASSPATH} ${APP_MAIN_CLASS} "${APP_APP_OPTS[@]}"

    I also had the problem of SQL Developer crashing when using OCI/Thick driver but I've managed to solve it. My configuration is:
    - Windows 64-bit
    - Java 64-bit (1.6.0.34)
    - SQL Developer 3.2.09 64-bit
    - OCI Instant client 11.2.0.3 64-bit (without installation).
    The thing that solved the problem was copying two files, ojdbc5.jar and ojdbc6.jar, from Instant client installation folder to JAVA_HOME/lib/ext folder+.
    After that, I haven't had a single crash or error message.
    The same trick that solved the problem on 64-bit installation also solved the problem on another windows computer with 32-bit SQL Developer installation.

  • How to select installation language when using silent install

    Hi,
    How can i select installation language when using silent install.
    Power management
    Presentation_Director
    System_Update
    EasyEject_Utility
    When i install those programs with silent install string it will install language i have select at windows regional options. I want thinkvantage software to be installed in english but now its finnish.
    So how to set default language EN with silent install?
    Cannot change windows regional options.

     No solution yet....?

  • Photoshop CC. Colour selection not working when using alt and brush.

    Hi, Photoshop CC. Windows 8.1 64 bit. Colour selection not working when using alt and brush. I have tried rebooting and other things like closing swatch panel etc.
    The alt key is otherwise OK.  It's not the recent upgrade from Win 8 to 8.1 (5 days ago) because the colour selection facility was working yesterday. Any ideas.

    I'd say things sound desperate enough to try resetting Preferences
    Reset Preferences
    Windows — Hold down Shift Ctrl Alt immediately after starting Photoshop
    Mac — Hold down Shift Cmd Opt immediately after starting Photoshop
    If that fails, we need to know your operating system?
    Do you have a full CC subscription, or by apps do you mean Photoshop, Bridge and Lightroom?
    Another other information that might pertain ?

  • SQL DEVELOPER 1.5.3: Export Data options for using SQL to write SQL?

    I write a lot of SQL that generates SQL. In a competitor's product, I can export query results (Export > Save As > Tab Delimited) to the clipboard, paste the generated SQL into a new window, then execute the generated SQL.
    In SQL Developer, using Export Data > Text to the clipboard, it's delimiting each row with double-quotes. Is there any way to turn this behavior off to achieve what I want? Or should I be choosing a different export format?
    For now, I can do a search/replace to eliminate the double-quotes,
    Thanks.
    Dana

    Dana,
    I probably haven't done this with generating thousands of SQL lines, but I have certainly used the Ctrl-A, Ctrl-C (or Ctrl-Shift-C to get headers) to copy thousands of records of result data. Note that the Ctrl-A forces a fetch of all remaining records that have not yet been fetched, which may add to the time taken by the process - for example, running the query fetches the first 50 records and then Ctrl-A will fetch the remaining records as well as selecting them all, however long that takes. Also, there is a noticeable delay with the Ctrl-C for thousands of records - only rough counting but I was seeing a UI freeze for ~ 4 seconds when copying 10000 records from a query with around 30 columns in it (pasting the clipboard into a file produced a file just under 4MB).
    theFurryOne

  • Oracle SQL Developer 1.0 is easy to install and use, and is portable

    I have tried the latest version of Oracle SQL Developer 1.0 and would like to share my experience of using it.
    Installation of Oracle SQL Developer 1.0
    Download from
    http://www.oracle.com/technology/software/products/sql/index.html?_template
    Unzip the Oracle SQL Developer for Windows (55.8 MB) to C:\sqldeveloper (103MB)
    Advantages: The unzip folder can be your removable disk and you can access Oracle
    anywhere provided that there is an Internet connection to Oracle Server.
    Unzip sqldeveloper-1557.zip to C:\ with folder name;
    double-click on sqldeveloper.exe in c:\sqldeveloper
    Click on [No]
    Tick all check boxes
    Click on [OK]
    Right-click on Connections, New
    Database Connection…
    Enter User name: SCOTT
    Password: TIGER
    Hostname: 127.0.0.1 (or IP of your Oracle Server on the Internet)
    SID: orcl
    If you want to connect to local Oracle user SYS,
    Enter User name: sys
    Password: ora10g_manager_password
    Hostname: 127.0.0.1
    SID: orcl
    Select Role: SYSDBA
    Click on [Connect]
    Right-click on Tables, Create Table
    Click on [Add Column]
    Select Type: NUMBER for COLUMN2
    Click on [OK]
    Table1 is created
    Click on TABLE1, click on “Data” tab
    Click on the “Green Plus” icon to insert record
    Click on “Commit Changes” icon
    Click on “DBConnection1” tab
    Enter: select * from table1;
    Click on “Execute Statement (F9)” icon
    To exit: Click on File, Exit

    Have you noticed that there's a forum dedicated to SQL Developer?
    C.

  • SQl developer v1.1 doesn't show synonyms that use dblinks.

    Sql developer v1.1 doesn't show in the list of synonyms those whose destiny is accesed through dblink. It only shows the synonyms of local objects.

    I found SQL Developer support for SQL Server too limited for anything other than simple queries on tables/views.
    Squirrel SQL client (open source, free and also java based) may prove a better tool.
    http://squirrel-sql.sourceforge.net/

  • SQL Developer:Problem with multi byte size after import using excel format

    Hi,
    Need your help. I am trying to export multibyte characters from our China instance(r11i instance) using SQL Developer's export data via Excel format into an R12 Vision instance. I have a staging table with exactly the same structure in both instances. Prior to export to excel, I check the byte size of the sample data below using LENGTH and LENGTHB sql functions and these are the results:
    Sample data = 材料LI(USD)
    LENGTH=9
    LENGTHB=13
    Then, I exported the table as excel file. Afterwards, I used SQL Developer to import the excel file into the table of the target instance. I check the bytesize again and here are the results:
    Sample data = 材料LI(USD)
    LENGTH=9
    LENGTHB=17
    The byte size increased from 13 to 17. I did not change anything on the excel file. Just straight forward export to excel file then imported it to the target instance. How come there is an increase in byte size? Has anyone encountered this in SQL Developer? We really need to export the files as excel.
    Source:
    Database version = 9.2.0.5.0
    Target:
    Database version = 11.1.0.7.0
    Regards,
    Wendell
    Edited by: user13038177 on May 13, 2010 9:05 PM
    Edited by: user13038177 on May 13, 2010 9:06 PM

    Wendell,
    This forum is for handling issues migrating from non-Oracle databases to Oracle databases.
    As this is an Oracle to Oracle issue using SQL*Developer export it would be better to open a new thread in the SQL*Developer forum -
    SQL Developer
    There will be more people there who can help with this problem.
    Regards,
    Mike
    Edited by: mkirtley on May 14, 2010 10:16 AM

  • PL/SQL: ORA-22806: not an object or REF  when Using Record in Package

    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0
    I have declared a record type in my package
    create or replace
    PACKAGE MYPKG AS
      TYPE MYREC IS RECORD (VAL1 varchar2(20), val2 date);
      PROCEDURE display_error (pSQLERRM number);
      PROCEDURE P_LOAD_DATA (pStartDate Date, pEndDate Date);
      FUNCTION  F_EPI(refno1 in NUMBER,  refno2 in NUMBER) return MYREC;
    END MYPKG;
    --In My Package Body
    FUNCTION  F_EPI(refno1 in NUMBER,  refno2 in NUMBER) return MYREC is
            F_param MYREC;
            BEGIN
            select myvarchar2, mydate into MYREC from MYTable
              where myrefno1 = refno1
              and myrefno2 = refno2
            Exception
              when others then
              display_error(SQLERRM);
              RETURN F_param;
            END F_EPI ;
      PROCEDURE P_LOAD_DATA (pStartDate Date, pEndDate Date) IS
    insert into atable(myvarchar, mydate)
    select F_EPI(refno1,refno2).val1,F_EPI(refno1,refno2).val2 from tab2;
    END P_LOAD_DATA;
    I get errors
    Error(187,7): PL/SQL: SQL Statement ignored
    Error(225,7): PLS-00382: expression is of wrong type
    Error(225,7): PL/SQL: ORA-22806: not an object or REF
    When I compile the package.
    When I try to call the function from SQL I get an Invalid datatype error.

    Hi,
    Before posting any query/plsql blocks, please ensure that you have written it clean and complete with less syntax errors. ( at least general syntax errors, you can avoid). Then somebody can have an interest to check your logical error.
    About your posting, refer below solution step-by-step. It may help you, about what you are looking for? By the way, you must be knowing, what you are going to to do with. I haven't concentrated about your requirement; as it was not missing in your posting.
    drop table test;
    create table test(myvarchar varchar2(20), mydate date);
    create or replace
        package mypkg as
          type myrec is record (val1 varchar2(20), val2 date);
          --procedure display_error (psqlerrm in number); -- if you are passing sqlerrm, then parameter needs to be string type
       procedure display_error (psqlerrm in varchar2);
          procedure p_load_data (pstartdate in date, penddate in date);
          function  f_epi(refno1 in number,  refno2 in number) return myrec;
       end mypkg;
    Package created.
    --in my package body
    create or replace 
    package body mypkg as -- added
    procedure display_error (psqlerrm in varchar2) -- if you are declared a proc/func in spec, it needs to define in pkg body
    is
    begin
         null; -- you should know, what to do here
      dbms_output.put_line('Err -'||sqlerrm);
    end display_error;
    function  f_epi(refno1 in number,refno2 in number)
    return myrec
    is
    f_param myrec;
    begin
       -- select myvarchar2, mydate into MYREC from mytable
      --  where myrefno1 = refno1
      --  and myrefno2 = refno2;
        select ename, hiredate into f_param from emp -- added demo logic by using emp
        where empno = refno1
         and  mgr  = refno2;
        return f_param;  -- added
    exception
       when others then
         raise; -- if you are using OTHERS then, just raise it
       display_error(sqlerrm);  
       --return f_param; -- what is this?
    end f_epi;
    procedure p_load_data (pstartdate in date, penddate in date) -- you must be knowing the use of 2 params ???
    is
        v_rec myrec; -- added
    begin -- Added
       --insert into atable(myvarchar, mydate)
      -- select f_epi(refno1,refno2).val1,f_epi(refno1,refno2).val1 from tab2;
       -- demo logic added with static params to call f_epi
       v_rec:= f_epi(7499,7698);
       insert into test values v_rec;
        --null; 
    end p_load_data;
    end mypkg;
    Package body created.
    SQL> exec mypkg.p_load_data(null,null);
    PL/SQL procedure successfully completed.
    SQL> select * from test;
    MYVARCHAR            MYDATE
    ALLEN                20-FEB-81
    Thanks!

  • Selection screen validation when using PNP LDB

    Hi guys,
    I want to validate my selection screen parameters.Thats is if somebody wants to run the program without giving any input parameters to the selection screen(trying to run the report with a blank screen) I want to pop up an error/information message so that it will return the selection screen.I am using PNP Logical database for my selection screen.Please help.Thanks in advance.
    Thanks,
    Karthik.

    Welcome to SDN.
    If you are using PNP logical data base then validating the fields will be little tricky...
    You canc check all the other fields in START-OF-SELECTION and if they are empty return eroor. Remember all the field s on the scree... so I will suggest you to choose HR report Category accordingly.
    Also,when it comes to date field then you need to check for the start and end dates rather than blank fields as SAP defaulted them to system start and end date.
    Still, I will prefer to create a HE Report Category for the PNP database and use the screen while validating....that will be easy...

  • Does verizon selects collect data when using wifi ?

    When signing up for verizon selects is states it collects data when using wireless service but does it collect data when using home wifi which is not verizon?

    I'm not sure why one would want to participate in this program but if one is weary about it I for sure wouldn't use it.

  • Freeze Frame Duration Selection Is Incorrect When Using PAL Projects ?

    I have done a search of the FCE and FCP forums but can find no information. This was originally posted in the FCP forum but is equally applicable to FCE.
    Over here in Europe an apparent bug has been noticed connected with FCP 5.1 and FCE 3.5 (which is based on it) when using PAL projects.
    To begin with, the default Freeze Frame time in the User Preferences is 12 seconds yet when stills appear in the Browser they are the normal 10 seconds.
    If the duration in the Preferences is altered, the actual time of the picture in the Browser or Timeline is always five sixths of the time set.
    This curiously is the same figure you get if you compare NTSC and PAL frame rates. PAL has five sixths the number of fps as NTSC.
    So if in the preferences I set 6 seconds, I get 5 seconds in the Browser. Three seconds gives an actual time of around two and a half seconds and so on.
    I must stress that it is only FCP 5.1 and FCE 3.5 that appear to be affected.
    Earlier versions eg. FCE 1.0.1 and FCE 3.0 behave perfectly.
    We don't know the situation with FCP 6 as we have not yet had the opportunity to test it.
    You can replicate the problem by altering your Easy Setup to DV-PAL and look at the Freeze Frame Duration in the preferences.
    Then import a photo into the Browser.
    Alter the duration in the preferences and import another photo.
    I am sure you will see that there is a large discrepancy between the chosen duration and the actual.
    Is this a known problem and is there a simple way around it ?
    Ian.

    CORRECTION !
    It has been pointed out that the Freeze Frames are NOT affected by this bug - only the IMPORTED STILL PICTURES.
    Incidentally, for any PAL user whose maths is not too good (like mine), here is a table of corrections:-
    Freeze Frame Discrepancy.
    From Final Cut Pro 5.1 and Final Cut Express 3.5 onwards there is a bug that makes the chosen Freeze Frame time WHEN IMPORTING STILL PICTURES differ from the actual time when using PAL settings.
    This table tells you what time (in seconds and frames) to set your preferences in order to achieve an actual time:-
    Desired Time.......... Set Preferences
    01:00.......... 01:05
    02:00.......... 02:10
    03:00.......... 03:10
    04:00.......... 04:15
    05:00.......... 06:00
    06:00.......... 07:00
    07:00.......... 08:10
    08:00.......... 09:10
    09:00.......... 10:15
    10:00.......... 12:00
    Ian.

  • CRViewer XI R2 Select Expert error when using dates

    I am using RDC.  CR XI R2 w/ SP2/3.  When I open any report with dates in the output and then use Select Expert and choose a date from the browse or dropdown list I get an error.
    "Error - the ) is missing"
    -Thanking you in advance.... Brent
    Edited by: Brent Lawrence on Jun 11, 2008 2:15 PM
    Edited by: Brent Lawrence on Jun 11, 2008 2:18 PM

    Hello Brent,
    I'm sorry the RDC viewer and the Select Expert do not meet your expectations.  The RDC was deprecated with the release of Crystal Reports 10.  Once the RDC was deprecated it stopped receiving development focus for issues like this.  The RDC remained available for two more versions (XI / XI R2) but it has now been retired with the release of CR 2008 a few months ago.
    I'm surprised to hear that the Select Expert wasn't showing this issue in CR XI (v11.0), unfortunately I won't be able confirm this.
    If you want to roll back to the viewer for CR XI (v11.0) you have to roll back entirely to work with CR XI (v11.0).  You should not mix versions of DLLs (e.g crviewer.dll v11.0 and craxdrt.dll v11.5).  This may work, but it would not be supported for any issues you might encounter.  You indicated in your post that you moved to CR XI R2 (v11.5) to get past another issue that was resolved in CR XI R2, so rolling back entirely won't be a solution.
    With the retirement of the RDC the recommended upgrade path for Windows application development is to move to the Crystal Reports .NET SDK.  The Crystal Reports .NET SDK is available in CR XI R2 so if you want to explore this SDK as well you can visit the online developer library for additional information.  Here's the link:
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    Sincerely,
    Dan

  • SQL Tab in Object Browser does not scroll when using a mouse.

    In the Navigator tree on the left pane, when I expand the Table node under my connection and click on a table name, the object details tabs appear on the right. This is really neat and I like it.
    One thing I noticed is that when I click on the SQL tab to retrieve the table creation script, the CREATE TABLE script appears in the read-only editor. When I try to use the mouse to select the text (hold down the left mouse button and drag down), that editor does not scroll, so that I can reach the end of the script.

    Thanks I missed this. The issue is the double scrollbars. I checked in a fix but it will not in the new update later today but the next one.
    -kris

  • Tableview selection looks different when using iterator

    One more litte question about the htmlb:tableView (Design2003, content-style = "tradeshow", selectMode = "MULTISELECT").
    When you select a table line, the line is displayed with an orange background. However, if you use a tableView Iterator where you use a textView as the replacement_bee to display some text, this text is not displayed with an orange background, but with only an orange border and a white bacground.
    Is there anything I can do?

    I'm currently working on SP-Upgrade-Checks (47 to 54) for our web applications, and this is one of the things I've noticed.
    Got hold up because of some more urgent duties, but as far as I remember I dealt with part of it already successfully. There are still some open questions I have though, and I hope to get back to this thread as soon as I can make some clear statements about it.
    cheers,
    Max

Maybe you are looking for