1.5.4 - SQL-spreadsheet SQL-Developer does not use the owner of the Table

In older versions of the sql developer, you can remove a table in the spreadsheet and was built a select query. With the new version 1.5.4 - owner of the table is ' % s ' and you must inform the owner of the table or the query does not work with tables of other users.

Is this a bug or is there the possibility to change the settings to delete tables in the SQL-worksheet with the owners of the table.

You're DND from the node of the Table under the node of the other user? If so, I'm able to reproduce the problem you're talking about. Otherwise I still not got you problem clearly.

Tags: Database

Similar Questions

  • my SQL Developer does not work properly! Help

    Hello!!

    My problem here is not like I can't live or work, but it's REALLY annoying, see my SQL Developer does not take any different key of letters and the space bar, I mean, if I use the Enter key, does not alter the line, if I use the return key back isn't clear if I use F5/F9 does not execute the msec! and if the keys don't work!

    any ideas why this is happening? and if yes how do fix this problem?

    There is a well known bug but still not solved, causing this type of behavior, if you are a developer SQL 1.5.X you can work around the problem by loading the accelerators by default:

    Tools-> accelerators-> load Preset-> by default

    If you're on 2.1.X preset may be responsible for

    Tools-> preferences->-> others-> load keyboard accelerators

    2.1 this problem has not been reported so far, so if you are in 1.5.X you can consider upgrading.

  • part of the screen lack sound as if all type of himself downplayed a little and does not use the entire screen

    I have a dell studio with vista, I shot it today and the far right 1/4 of my screen has disappeared, its like everything kind of himself downplayed a little and does not use the entire screen. I didn't change anything or add programs. someone has an idea?

    Hi musicwatkins


    Did you the latest changes on the computer?

    You can check if changing the resolution of the screen helps you solve the problem. See below for links-

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-screen-resolution

    http://Windows.Microsoft.com/en-us/Windows-Vista/getting-the-best-display-on-your-monitor

     

    You can also check if the setting parameters of monitor, referring to the manual of the monitor will help you.

     

    I hope this helps.

  • My pl/sql codes does not in the express edition, which can do?

    pls help me my pl/sql codes does not work in oracle 10g express edition, which can do? pls help me.

    You must open a window for cmd.exe with Windows Start menu, then run, and type: cmd.exe. The rest is in my previous message.

  • commands of MySQL with Sql developer does not

    I use sqldeveloper 3.1.07 and trying some selects a mysql 5.1 database.

    SELECT SYSDATE(); works fine, but if I try to

    Use mysql;
    Select in the mysql database;
    -> and user table there is a mistake cause no database is selected.

    How to use sqldeveloper correctly for this task.
    How/where can I run the command mysql with the sqldeveloper?

    Any help is appreciated.

    Hey Cracker Jack,

    Analyzers of SQL Developer the text in a worksheet SQL to identify each statement and its type.
    Current SQL Developer has only one Oracle SQL, SQL * Plus, PL/SQL Analyzer.
    This means that the spreadsheet recognizes that SQL which is similar to Oracle SQL (SELECT, INSERT, UPDATE, DELETE,...).

    No connection to MySQL or other databases Oracle, the spreadsheet should work fine with standard SQL (as your selection), but when the command executes a particular MySQL (or not Oracle), the worksheet does not know how to interpret it.

    You can explicitly provide the information to the SQL needs worksheet using a hint.
    http://dermotoneill.blogspot.com/2010/11/workheet-hints.html

    MySQL example:
    / * sqldev:query * / show databases;
    / * sqldev:stmt * / use dermot;
    Select database();
    / * sqldev:stmt * / use information_schema;
    Select database();

    Kind regards
    Dermot.
    SQL development team.

  • Queue in sql developer does not take into account the VALUE ECHO OFF

    I am a developer SQL 3.1.07.42 Windows 7 64 bit with java 1.7

    I have the following script very simple just to show the problem:
    SET ECHO OFF;
    SET FEEDBACK OFF;
    SET SERVEROUTPUT ON;
    SET VERIFY OFF;
    SET PAGES 0;
    SET HEAD OFF;
    
    SPOOL c:\test.sql
    SELECT 1, 2, 3 FROM DUAL;
    SPOOL OFF;
    /
    If I run into a FROG 10.6.0.42 it creates the file with
             1          2          3
    This is as expected (by me)
    If I run the same exact query in SQL Developer 3.1.07.42, it creates the file with:
    < SELECT 1, 2, 3 FROM DUAL
    1 2 3
    (the < above is actually ">" but software formatting CODE is screwing ' > ')
    but I don't want the ECHOed command to be wound. For the life of me, I can't find a way to turn off the ECHO of the queue in sql developer.
    Tried the same thing in 3.0.4 and 2.1.1 with the same (bad) result (more a few warning on some unsupported SET commands).

    Am I missing something obvious? Cause like that, control of the coil cannot be used in sql developer to generate a CSV file, for example, due to the echo command. And windows does not come with default SED so it's on. (more than my original script is integrated into a whole much broader and complex scripts and the main script, their use is run from Developer SQL as a company policy (so that everyone uses the same tool and the code runs the same for everyone))

    Any ideas/suggestions are welcome
    Thank you.

    Hello

    If you save your code

    SET ECHO OFF;
    SET FEEDBACK OFF;
    SET SERVEROUTPUT ON;
    SET VERIFY OFF;
    SET PAGES 0;
    SET HEAD OFF;
    
    SPOOL c:\testscript.log
    SELECT 1, 2, 3 FROM DUAL;
    SPOOL OFF;
    

    as a script, say C:\testscript.sql, then run from a worksheet like

    @\testscript.sql

    the output in C:\testscript.log will be

    1 2 3

    Kind regards
    Gary
    SQL development team

  • Objects SQL Developer does not appear DDL

    Greetings! First time poster here on Oracle forums, so I hope I can be as precise as possible :)

    I'm having a problem with the display the SQL that makes up an object, more specifically a VIEW.

    Here's the scenario:

    I log in as a user of TI - WDSQUERY (this account can be used my multiple people to perform queries in different schemas). I navigate to other users and expand this node. I find the schema that I want to use, ALCHEMY, and expand the node.

    It now puts me in the realm of ALCHEMY we'll call it. I should be able to see all the different objects belonging to this scheme (assuming that permissions are implemented). I click on the node "VIEWS" to develop all objects from view. I can see the data and the columns. What I can't see is the SQL that generates that view, and I have no idea why.

    Colleague of mine use Toad, and he can do the same exact scenario (even ID, go to the same schema, etc.), but when he clicks on the "Script" tab, it will generate the SQL code that generates that view. Which leads me to believe this is not a permission problem, because it is on the exact same user_ID.

    Is there an option I did not check somewhere in SQL Developer? The current work around because it's that I simply ask the DBA_VIEWS where owner = "ALCHEMY" and then pull on the text of the name / the view I want. But... still, it's just one of those things that I want to know why it does not work.

    Here are the codes ORA bit that I get when trying to view the SQL code of the VIEW:

    ORA-31603: object "PO_LINE" of type VIEW not found in the schema "ALCHEMY".
    ORA-06512: at "SYS." DBMS_SYS_ERROR', line 105
    ORA-06512: at "SYS." Dbms_metadata", line 2806
    ORA-06512: at "SYS." Dbms_metadata", line 4333
    ORA-06512: at line 1

    Any help would be appreciated GREATYLY!

    Hello

    If you can see the objects in the schema "Other users", then I guess your user_ID the system privilege to SELECT ANY DICTIONARY. See the DDL and data requires additional privileges, however. I haven't looked enough deep to be absolutely sure, but there are two or three methods using SQL Developer:

    (1) If you SELECT ON . object privilege, then you can see the data and the DDL.
    (2) otherwise, if you need to EXECUTE ON DBMS_METADATA you can see the DDL (except it may depend on other privileges too (?)).

    Sorry I don't have the time to dig deeper into the DBMS_METADATA. It works on some of my users to login, but not others. And, of course, privileges such as SELECT ON DBA_VIEWS you always give an unfair advantage.

    Hope this helps,
    Gary Graham
    SQL development team

  • 4.0.2.15.21 - x 64 SQL Developer does not start.  Only ends about 20% at startup.

    Hello

    I've seen a number of discussions on this issue but did not answer that worked for me.

    I use the latest version of SQL Developer 4.0.2.15.21 - x 64 on Win7 x 64.

    It is unziped to c:\oracle\sqldeveloper. (I don't have a d: drive install on).

    It fails to start, is 20% then stops.

    I still have an old 4.0.0 version which works, but would like to make use of the latter.

    All the answers about why it's a failure and how to fix it?

    Thank you!

    Owen.

    Nuke SQL Developer Directory for this version in your directory of Application data for the user of your operating system - should be under roaming profiles and start the SQL Developer.

  • Unable to start SQL Developer - does not recognize Java JDK

    After the attempt to launch SQL Developer for the first time, I get a dialog box asking for the "full path to the Java executable. I use the feature navigate to point to my local java.exe Java JDK 7, and nothing happens. No error message, no guest or suspicion (typical Oracle applications, I'm discovery) - the dialog box clears itself and wil not accept all java.exe I point him to.
    SQL> SELECT 'SQL Developer Forum' "Where to look..." FROM DUAL;
    
    Where to look...
    --------------------------------
    SQL Developer Forum
    
    SQL> L
      1* SELECT 'SQL Developer Forum' "Where to look..." FROM DUAL
    SQL> 
    
  • AWR SQL Report does not report the stats

    AWR report only stats beyond a certain level? I have a statement select simple I know is running (executions of v$ sql increases), but when I run a report AWR SQL (awrsqrpt), it says "no data exists for this section of the report.

    Snap Id Snap time Sessions Curs/Sess

    --------- ------------------- -------- ---------

    BEGIN Snap: 370936 10 June 15 07:00:24 856 36.1

    End Snap: 370937 10 June 15 07:20:26 881 38.9

    Elapsed time: 20.02 (mins)

    DB time: 754.82 (min.)

    Summary of SQL DB/Inst: CAMPRD/camprd snaps: 370936-370937

    There is no data for this section of the report.

    -------------------------------------------------------------

    SQL ID: 84kfv4p500pgh DB/Inst: CAMPRD/camprd Snaps: 370936-370937

    There is no data for this section of the report.

    -------------------------------------------------------------

    Full text of SQL

    There is no data for this section of the report.

    I ran the report on the last 4 days and reports

    ORA-20025: SQL 84kfv4p500pgh ID does not exist for this database instance.

    and yet, the executions of V$ SQL continues to increase

    Thank you

    Ian

    CWA only captures statements considered to be Top N (DBA_HIST_WR_CONTROL. TOPNSQL)

    You can use DBMS_WORKLOAD_REPOSITORY. ADD_COLORED_SQL sort AWR it will include

  • Case in SQL condition does not return the values as expected

    Hello gurus of PL/SQL,.

    SELECT amd.brkr_nm, amd.brkr_sym, AMD.MINORITY_FLG, atdf.comm_brkr_dim_key, atdf.exec_brkr_dim_key,
    WHEN atdf.COMM_BRKR_DIM_KEY = AMD.ACCESS_METHOD_DIM_KEY - CASE THEN
    WHEN AMD BOX. MINORITY_FLG = 'Y' THEN
    CASE WHEN atdf.EXEC_BRKR_DIM_KEY = atdf.COMM_BRKR_DIM_KEY THEN 'Done' ELSE 'InDirected.
    END
    ANOTHER "NA".
    END
    ELSE ' 0'
    END
    AS Direction_Method
    Of
    alloc_tran_det_fact atdf,
    ACCESS_METHOD_DIM AMD

    But it returns me the 0 value in the Direction_Method field. But when I checked the values in DB then my first condition (atdf.COMM_BRKR_DIM_KEY = AMD.ACCESS_METHOD_DIM_KEY)
    second condition (AMD. MINORITY_FLG = 'Y') and third (atdf.EXEC_BRKR_DIM_KEY = atdf.COMM_BRKR_DIM_KEY) condition of all them have passed, then it should show the value as indicated, but it is shwoing the '0' value only in the Direction_Method column.

    Kindly help me.. .am I missing something?
    I use Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production. I can't create the test data in the database, I did not have the required privileges to make :(

    Kindly help me, thnanks in advance for your time and your comments

    Published by: user555994 on May 24, 2012 02:00

    could be a space or case (upper or lower case). Try:

    /* Formatted on 2012/05/24 16:00 (Formatter Plus v4.8.8) */
    SELECT amd.brkr_nm, amd.brkr_sym, amd.minority_flg, atdf.comm_brkr_dim_key, atdf.exec_brkr_dim_key,
           CASE
             WHEN trim(upper(atdf.comm_brkr_dim_key)) = trim(upper(amd.access_method_dim_key))
               THEN CASE
                     WHEN trim(upper(amd.minority_flg)) = 'Y'
                       THEN CASE
                             WHEN trim(upper(atdf.exec_brkr_dim_key)) = trim(upper(atdf.comm_brkr_dim_key))
                               THEN 'Directed'
                             ELSE 'InDirected'
                           END
                     ELSE 'NA'
                   END
             ELSE '0'
           END AS direction_method
      FROM alloc_tran_det_fact atdf, access_method_dim amd
    
  • Performance problem on the SQL query that does not use the primary key index

    Hello!

    I have some performance issues on a single SQL query (Oracle 10 g).
    I could solve the problem by using the INDEX indicator, but I would like to know WHY this is happening.

    * Tables *.
    create table jobs)
    ID number (5) not null,
    name varchar2 (100),
    primary key constraint Job_PK (id)
    )
    /
    -Record count: 298

    create table Comp)
    integer ID not null,
    name varchar2 (100),
    primary key constraint Comp_PK (id)
    )
    /
    -Record count: 193

    -Relation m: n
    create table JobComp)
    integer ID not null,
    id_job integer not null,
    id_comp integer not null,
    primary key constraint JobComp_PK (id),
    unique key constraint JobComp_UK (id_job, id_comp),
    Constraint JobComp_FK_Job foreign key (id_job) refers to Job (id),
    Constraint JobComp_FK_Comp foreign key (id_comp) makes reference Comp (id)
    )
    /
    create index JobComp_IX_Comp on JobComp (Cod_Comp)
    /
    create index JobComp_IX_Job on JobComp (Cod_Job)
    /
    -Record count: 6431

    * Ask *.

    When I run this query, the execution plan shows the index using (JobComp_PK and JobComp_IX_Comp).
    No problem.

    Select JobComp.*
    of JobComp
    Join jobs
    on Job.id = JobComp.id_job
    where JobComp.id_comp = 134
    /
    -runs in 0.20 sec

    But when I add the field 'name' of the work table the plan uses full access table to the table of work

    Select JobComp.*, Job.name
    of JobComp
    Join jobs
    on Job.id = JobComp.id_job
    where JobComp.id_comp = 134
    /
    -runs in the 2.70 dry

    With the help of the index

    Select / * + INDEX (Job Job_PK) * /.
    JobComp.*, Job.name
    of JobComp
    Join jobs
    on Job.id = JobComp.id_job
    where JobComp.id_comp = 134
    /
    -runs in 0.20 sec

    * Doubt *.

    This behavior is correct?

    PS. : I tried to recalculate the statistics, but nothing changes:

    analyze the job calculation table statistics.
    /
    change the statistical calculation of index Job_PK reconstruction;
    /
    Start
    dbms_utility.analyze_schema (sys_context ('userenv', 'current_schema'), 'CALCULATE');
    end;
    /

    [of]
    Gustavo Ehrhardt

    Gus.EHR wrote:
    Hello.
    I'm sorry for the plan unformatted.
    The execution time of the querys "without field name' and 'with the field name with suspicion" are equal.
    He has no problem caching, because I get the plans of the sequence different from the querys and repeated the performance. The result is always the same.

    I don't think that there is no problem with oracle crossing LOOP IMBRIQUEE to the HASH JOIN when you include the field name and this should be the expected behavior. But it seems that your WORKING table has a degree of parallelism set against what is causing the query to run in parallel (as JOB table is now available with full table scan, instead of indexed access earlier). It could be that the parallel execution is contributor to extra Runtime.
    (a) do you know why the degree of parallelism on the WORK table has been defined? Do you need it?

    You can see if the following query provides a better response time?

    select /*+ NOPARALLEL(JOB) */ JobComp.*, Job.Name
      from JobComp
      join Job
        on Job.id = JobComp.id_job
     where JobComp.id_comp = 134
    
  • Database will return no error, but does not delete the table

    Hello

    I'm developing an application that uses a database (SQLite). I would like to delete and re-create a table in the database (this table is the kind of a cache).

    When I run the following code, I get no error but chrome / ripple-> resources-> "Web SQL", I still see the old structure of the table.

    Do you have any idea what the problem might be or how I can solve it?

           db.transaction(
                function (tx) {
                    tx.executeSql('DROP TABLE IF EXISTS users',[],function (tx, res) {}, function (tx, err) {alert(err.message)});
                    tx.executeSql('CREATE TABLE users (firstname, lastname, phonenumber, emailadd, company)',[],function (tx, res) {}, function (tx, err) {alert(err.message)});
                    for (var i = 0; i < oPerson.length; i++) {
                        tx.executeSql('INSERT INTO users (firstname, lastname, phonenumber, emailadd, company) VALUES ("' + oPerson[i].Firstname + '", "' + oPerson[i].Lastname + '", "' + oPerson[i].Phonenumber + '", "' + '", "' + oPerson[i].Emailadd + '", "' + oPerson[i].Company + '")');
                        iUsers = iUsers + 1;
                    }
                }
    
            );
    

    Thank you very much

    Roberto.

    Hello Roberto,

    There was a problem with your INSERT INTO string where you have provided additional value which did not exist as a database column. Change

     oPerson[i].Phonenumber + '", "' + '", "' + oPerson[i].Emailadd
    

    TO

     oPerson[i].Phonenumber + '", "' +  oPerson[i].Emailadd
    

    Here's a complete code that must run:

    var db = openDatabase('mydb', '2.0', 'Test DB', 4 * 1024 * 1024);
    var iUsers = 0;
    var oPerson = [{Firstname: 'Joe',
        Lastname: 'Smith',
        Phonenumber: '1800CALLJOE',
        emailadd: '[email protected]',
        Company: 'Photojam'},
        {Firstname: 'Jack',
        Lastname: 'Smith',
        Phonenumber: '1800JACK999',
        emailadd: '[email protected]',
        Company: 'Photojam'}
        ];
    db.transaction(
                function (tx) {
                    tx.executeSql('DROP TABLE IF EXISTS users',[],function (tx, res) {}, function (tx, err) {alert(err.message)});
                    tx.executeSql('CREATE TABLE users (firstname, lastname, phonenumber, emailadd, company)',[],function (tx, res) {}, function (tx, err) {alert(err.message)});
                    for (var i = 0; i < oPerson.length; i++) {
                        tx.executeSql('INSERT INTO users (firstname, lastname, phonenumber, emailadd, company) VALUES ("' + oPerson[i].Firstname + '", "' + oPerson[i].Lastname + '", "' + oPerson[i].Phonenumber + '", "' + oPerson[i].Emailadd + '", "' + oPerson[i].Company + '")');
                        iUsers = iUsers + 1;
                    }
                }
    
            );
    

    Let me know if there are problems!

    See you soon,.

    James

  • Setting the query: optimizer does not use the index function

    Hello

    I have a request written by a developer that I can't change.

    It is here that the condition:

    (   UPPER(TRIM (CODFSC)) = UPPER (TRIM ( '01923980500'))

           OR UPPER(TRIM (CODUIC)) = UPPER (TRIM ( '01923980500')))

    There is an index on CODFSC and on CODUIC1.

    the plan is:

    Plan

    INSTRUCTION SELECT ALL_ROWS cost: 9 194 bytes: 3 206 502 cardinality: 15 054

    ACCESS FULL ANAGRAFICA cost TABLE TABLE 1: 9 194 bytes: 3 206 502 cardinality: 15 054

    So I created two new index on SUPERIOR (TRIM ()CODFSC)) and SUPERIOR (TRIM ()CODUIC)) but the plan

    complete analysis of STIL.

    Modifing where condition in:

    (   CODFSC = UPPER (TRIM ( '01923980500'))

           OR CODUIC = UPPER (TRIM ( '01923980500')))

    the plan is:

    SELECT STATEMENT ALL_ROWSCost: 157 bytes: 426 cardinality: 2

    CONCATENATION OF 5

    TABLE ACCESS BY INDEX ROWID ANAGRAFICA cost TABLE 2: cardinality of 5 bytes: 213: 1

    1 INDEX RANGE SCAN INDEX ANAGRAFICA_IDX01 cost: cardinality 3: 1

    TABLE ACCESS BY INDEX ROWID ANAGRAFICA cost TABLE 4: cardinality 152 bytes: 213: 1

    3 INDEX SKIP SCAN INDEX ANAGRAFICA_IDX02 cost: cardinality 1: 151

    Why optimizer not use my funct index?

    Thank you.

    Franck,

    I always forget that the default value for the GOLD expansion depends on a path indexed for each branch.

    2 in your use of or_predicates (2) depends on the position of complex predicate which must be expanded.  If you change the order of predicate 'State = 0' to display AFTER the complex predicate, you must change the indicator of "or_predicates (1).

    Outside of the current state of undocumented indicator, it also introduces the disturbing thought that, for a more complex query, a change in the transformation may result in another set of query blocks generated with a different ranking of the predicates. Yet another case to ensure that if you suggest anything suggest you (or create a SQL database).

    Concerning

    Jonathan Lewis

  • does not use the INDEX

    I have problem with a query as follows. It does not index when I keep a function on the left side of the comparison in which the condition.

    But when I remove the function is using the index.

    With BLC AS 
    Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     ID                                        NOT NULL NUMBER
     MASTER_VALUE               NOT NULL NUMBER(8)
     DESC_TEXT_ID                                    NUMBER
     GVM                                                     VARCHAR2(50)
     MASTER_LOOKUP_ID    NOT NULL  NUMBER
     WORK_SECTION_ID                          NUMBER
     AUDIT_TRAIL_NO                              NUMBER
     
    
    SQL> SELECT COUNT(*) FROM BLC;
      COUNT(*)
    ----------
          7769
    
    SQL> SELECT COUNT(DISTINCT(GVM)) "distinct" FROM BLC;
      distinct
    ----------
          1350
    
    SQL> SELECT COUNT(*) "nulls" FROM BLC WHERE GVM IS NULL;
    
         nulls
    ----------
          6419
    
    SQL> SELECT COLUMN_NAME,INDEX_NAME FROM DBA_IND_COLUMNS WHERE TABLE_NAME='BLC';
    
    COLUMN_NAME                              INDEX_NAME
    ---------------------------------------- ------------------------------
    MASTER_LOOKUP_ID      LKPCDE_MSTLKP_FK_I
    WORK_SECTION_ID        LKPCDE_WRKSEC_FK_I
    GVM                                   LKPCDE_UK
    MASTER_VALUE              LKPCDE_MASTERID_VALUE_UK
    MASTER_LOOKUP_ID     LKPCDE_MASTERID_VALUE_UK
    ID                                       LKPCDE_PK
    
    SQL> EXPLAIN PLAN FOR SELECT ID FROM BLC WHERE UPPER ( GVM) = 'MAIN_ORG';
    Explained.
    SQL> SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------
    Plan hash value: 3196655606
    --------------------------------------------------------------------------------------
    | Id  | Operation         | Name             | Rows  | Bytes | Cost (%CPU)| Time|
    --------------------------------------------------------------------------------------
    
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT  |                  |    78 |   624 |    18   (0)| 00:00:01 |
    |*  1 |  TABLE ACCESS FULL| BLC |    78 |   624 |    18   (0)| 00:00:01 |
    --------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    PLAN_TABLE_OUTPUT
    -----------------------------------------------------------------------------------------------------------------------------------
       1 - filter(UPPER("GVM")='MAIN_ORG')
    13 rows selected.
    
    
    SQL> EXPLAIN PLAN FOR SELECT ID FROM BLC WHERE GVM
      = 'MAIN_ORG';
    Explained.
    SQL> SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------
    Plan hash value: 1620245961
    --------------------------------------------------------------------------------
    ----------------
    | Id  | Operation                   | Name             | Rows  | Bytes | Cost (%
    CPU)| Time     |
    --------------------------------------------------------------------------------
    ----------------
    
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT            |                  |     1 |     8 |     2
     (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| BLC |     1 |     8 |     2
     (0)| 00:00:01 |
    |*  2 |   INDEX UNIQUE SCAN         | LKPCDE_UK        |     1 |       |     1
     (0)| 00:00:01 |
    --------------------------------------------------------------------------------
    ----------------
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
       2 - access("GVM"='MAIN_ORG')
    14 rows selected.
    
    SQL> EXPLAIN PLAN FOR SELECT /* INDEX(LKPCDE_UK) */ ID FROM BLC WHE
    RE UPPER ( GVM ) = 'MAIN_ORG';
    Explained.
    SQL> SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------
    Plan hash value: 3196655606
    --------------------------------------------------------------------------------
    ------
    | Id  | Operation         | Name             | Rows  | Bytes | Cost (%CPU)| Time
         |
    --------------------------------------------------------------------------------
    ------
    
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT  |                  |    78 |   624 |    18   (0)| 00:0
    0:01 |
    |*  1 |  TABLE ACCESS FULL| BLC |    78 |   624 |    18   (0)| 00:0
    0:01 |
    --------------------------------------------------------------------------------
    ------
    
    Predicate Information (identified by operation id):
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------
    ---------------------------------------------------
       1 - filter(UPPER("GVM")='MAIN_ORG')
    13 rows selected.
    

    Please let me know how I can force it to use an index as it is causing the CPU usage.

    I can't change the query in the application it is used in several places.

    Thank you

    And/or read: ORACLE-BASE - Oracle function index

Maybe you are looking for

  • Error Code 8E5E03FA

    When you try to install, update KB2141007 I get error code 8E5E03FA

  • Global functional table uses 2 x initialized space?

    I had a thread going on the reduction of the memory allocation on our LabView RT system located here for reference http://forums.ni.com/ni/board/message?board.id=170&thread.id=413552 . I use a global functional / Action engine to add to a U32 table t

  • Qualcomm, atheros AR9285 802.11b/g/n wifi adapter problem

    Hi, if I can connect to the internet, but after a bit, I'm disconnected from the network. When I have the Troubleshoot, it indicates that there is a problem with my card. It is not a problem with my network as all other devices work correctly. I use

  • 3F0 error is displayed when the UEFI is activated [please reply Urgent]

    Hello I got this error of 3F0 even if my HARD disk is healthy not defective. I brought this PC about a month ago * If I boot in traditional Mode, I don't get this error and the system boots normally * If I boot UEFI mode, I get the error of 3F0 Pleas

  • Loading image file system

    Hello I want to load the special position of my file system image but image is not loaded and I am not able to see the image on siumulator. Here is my code for the same thing. Image image = Image (QUrl("D:\Megha\linux.png"));) ImageView * ImageView =