SQL does not index

SELECT DISTINCT eval.match_student_name (a.booking_id,
                                         2059980
                                        ) "Student Name",
                NVL (b.student_email, b.email_address) email_address,
                a.booking_id "Student Registration Number",
                b.customer_name "Company Name",
                DECODE (b.pmt_confirmed,
                        'E', 'Exception',
                        'Y', 'Yes',
                        'N', 'No'
                       ) "Confirmed Commitment ",
                '1' "Edit", a.title "Class Id",
                b.exception_comments "Exception Comments",
                NVL (b.opn_member, 'N') "OPN_Member",
                NVL (b.opn_partner_name, '-') "OPN Company Name",
                a.booking_id "View Attendance",
                DECODE (eval.check_bookingid_push_gsi (a.booking_id),
                        1, apex_item.checkbox (1, a.booking_id, 'Checked'),
                        apex_item.checkbox (1, a.booking_id, 'Disabled')
                       ) "Select",
                DECODE
                   (eval.check_bookingid_push_gsi (a.booking_id),
                    1, 'Ready TO push TO GSI',
                    2, 'In Progress',
                    3, 'Complete',
                    'MANUAL'
                   ) "Booking ID Status"
           FROM ( select * from eval.eattend_student_attendance where title = 2059980 ) a,
                ( select * from eval.eattend_student_info where verified_by IS NOT NULL ) b
          WHERE 
            --AND b.verified_by IS NOT NULL
        a.title = b.title
       AND a.booking_id = b.booking_id
       ORDER BY a.booking_id
Execution plan
----------------------------------------------------------
Hash value of plan: 3921177175

----------------------------------------------------------------------------------------------------
| ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
----------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | 11. 1870 | 353 (3) | 00:00:05 |
| 1. SORT ORDER BY | 11. 1870 | 353 (3) | 00:00:05 |
| 2. UNIQUE HASH | 11. 1870 | 352 (3) | 00:00:05 |
| 3. NESTED LOOPS |
| 4. NESTED LOOPS | 11. 1870 | 351 (2) | 00:00:05 |
|* 5 | TABLE ACCESS FULL | EATTEND_STUDENT_ATTENDANCE | 11. 176. 318 (3) |
|* 6 | INDEX RANGE SCAN | PERF_EATTEND_STUDENT_INFO_N98 | 1 | | 2 (0) | 0
|* 7 | TABLE ACCESS BY INDEX ROWID | EATTEND_STUDENT_INFO | 1. 154. 3 (0) | 0
----------------------------------------------------------------------------------------------------




pls see full access table EATTEND_STUDENT_ATTENDANCE, I have an index in the table for a column that is used in sql. Why index used not?



Thank you


REDA

Because the optimizer's view that the lot is faster.

Can see us some statistics, index, and cardinality columns?

Tags: Database

Similar Questions

  • 'Windows 7 search' does not & "indexing does not work" (on libraries)

    'Windows 7 search' does not & "indexing does not work" (on the libraries).

    How can I correct (get indexing and searching for work) research one of the features of pride & joy MS on Librearies?

    The Indexing Options Control Panel indicates "Indexing does not work" & the library places panel shows Unresponsive.

    The service started Windows search and then stopped.

    Look forward to any suggestions

    Ed.

    Hello EdJarvis,

    Thanks for the return of the response.  Below is a link with the same problem reported.  You did some of the steps listed to try, but there are others listed.

    Windows Search service does not (Windows 7)

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-performance/Windows-Search-service-is-not-running-window-7/3d7858e1-c3d3-4149-9EC1-640f319c0137

    Please let us know status.

  • SQL does not recharge after analysis of the table

    I run DBMS_STATS.gather_table_stats to scan the table but linked SQL does not charge, it still make a bad sql plan.
    When I do a grant on the table, the reloading SQL and make a good plan sql.
    Why not recharge after table SQL analyze?

    If you specify AUTO_INVALIDATE, you tell Oracle expire over time sliders (I think 30 minutes is the default window, but that might just be dependent on version). If you want the sliders to expire immediately, you will need to pass the FALSE value.

    Justin

  • Can generate the file TKPROF without the SQL does not finished?

    Hi all:
    I want to generate the TKPROF to the trace file file, can generate the file TKPROF without the SQL does not finished? The file TKPROF can be used? because the report is too large. My environment is ORACLE 11.5.9





    Concerning
    Terry

    Yes, you can run a tkprof on one incomplete (or currently being created) trace file.

    HTH
    Srini

  • Migration from MySQL to Oracle SQL does not

    Hello everyone,

    I am new to Oracle SQL, but since our MySQL database is more and get more slowly, I would like to test the performance of Oracle SQL.

    So, I downloaded the current Oracle Linux distro and installed Oracle Database 11 g Express Edition.

    I connected with Oracle SQL Developer and started to migrate the MySQL database by following each step of this tutorial.

    I had to abandon all the privileges of the user migration (otherwise the creation and the deleteion of the migration repository did not) and I have disabled the migration of constraints to make migration work.

    Then I proceeded through all of the steps of the tutorial and ended with a "successful migration.

    The last step of the tutorial, it was to connect to the db migrated (using a combination of username/password generated name), it was not possible.

    What do I already checked?

    • Logged on as user system, I see that there is no new user created for the migrated db
    • Looking at the overview in the migration repository I see 3 phases, not knowing if the third displays an error or if it is not necessary at all (I got 58 tables in the db of the source)
      • Capture of 58/58
      • Convert 58/58
      • Compile 0/58

    From here, I don't know where to look for additional errors.

    I still can't use the migrated db and so I can't go forward with my tests.

    I missed something?

    I would appreciate your help.

    Astaldo

    Astaldo salvation,

    First, you must use SQL Developer 4.0.2 If you aren't already. It is available for free on OTN

    http://www.Oracle.com/technetwork/developer-tools/SQL-Developer/downloads/index-098778.html

    There are two ways to convert tables from MySQL to Oracle.

    1) copy to Oracle

    (2) migration to Oracle.

    Copy to Oracle is the simplest method. It does not imply the creation of a repository of migration.  But it only migrates data without constraints or default values or indexes and tables. The set of data to move should be reasonably low as it is moved on JDBC.

    It may suit your purpose to try to Oracle.

    http://dermotoneill.blogspot.co.UK/2010/11/copy-to-Oracle.html

    Migrate Oracle requires the implementation of a migration repository. But he migrate the default settings, constraints, and indexes and can also provide scripts offline data move that can manage the circulation of large data sets.

    Here is a small script to create a new MIGRATIONREPO user, and grant the correct privileges.

    CREATE USER MIGRATIONREPO IDENTIFIED BY oracle.

    ALTER USER MIGRATIONREPO QUOTA UNLIMITED ON USERS;

    GRANT CONNECT, RESOURCE, CREATE VIEW, CREATE MATERIALIZED VIEW to MIGRATIONREPO;

    Then using SQL Developer, create a connection to MIGRATIONREPO, right-click on the connection and choose "associate the Migration repository.

    I hope you have success best creation of migration with the privileges of theses repository.

    Migration Wizard step 8: target database

    Choose Offline Mode.

    This will present you with a build script that you can inspect before the race.

    The build script must be run using the SQL Developer worksheet and choose free user sufficiently privileged in Oracle generally SYSTEM.

    Note that if you would rather work with the repository you must currently you can browse your browser of Migration.

    Access converted database objects, right-click and select "generate the target".

    This will again open the Migration Wizard in step 8. Allowing you to choose Offline Mode so that you can review the build script.

    Hope this helps,

    Kind regards

    Dermot.

    SQL development team.

  • Why this SQL does not work?

    The following code does not work when I try to delete rows from a table of test. The test table has no unique or primary key on it and is defined as test (identification number). Can you explain to me why it doesn't work?


    delete from test a where a.rowid in (select b.rowid from test b where b.id = a.id and b.rowid != a.rowid);




    When I run the subquery (selection) with replacement of the actual values of a.rowid and the table queried a.id (IE.select b.rid from test2 b where b.id = 1 and b.rid != 'XXX'

    ), the subquery returns exactly as expected (that is to say, it gives the rowid is different from that which went from subquery). And as although I know the internal subquery must return the result for each row of the table in the outside circle delete statement, and only after that should execute the delete statement. For example, for the first row of the table in the external suppression, the delete statement must send the ID of the first row in the internal subquery and then wait the result which should return. And then runs the delete statement, in which case the subquery must return the rowid is different from that which went from subquery (ie.

    b.rowid != a.rowid

    ). Am I wrong? What is the error in this statement.


    P.S. The sql is also not working if we replace remove it with the update or select

    in this case, the subquery must return the rowid is different from that which went from subquery (IE.

    b.rowid != a.rowid

    ). Am I wrong? What is the error in this statement.

    You are right that this subquery should return other than past rowid thr. But you used the IN clause as well as below:

    where a.rowid in

    What States remove the line if rowid returned by the subquery contains the identifier for the row whose ID was passed. As the inner query is to return another rowid, therefore, no row is deleted.

    To remove duplicate lines, try the query (Replace tablename/columns with your) below:

    DELETE FROM emp A

    WHERE A.ROWID > ALL (SELECT B.ROWID

    PEM'S B

    WHERE A.empno = B.empno);

  • Developer SQL does not

    Hello

    I use SQL Developer Version 4.0.2.15 Build 15.21.

    When I change some developer packages SQL freezes and get of does not.

    At the same time, he starts using 25% of the CPU and about 500 MB of RAM.

    From what I can tell, the issue seems to occur when you double-click a word in the package editor or after pasting a word at random.

    It seems to be random and I can't find a reason for this except what happens inside packages with more than 1000 lines of code.

    Please find some information of log files:

    SEVERE  4449    0   oracle.ide.controller.IdeAction Error during handleEvent on action 'Thumbnail' (id=150). None of the attached controllers handled the action..
    SEVERE  4449    0   oracle.ide.controller.IdeAction Error during handleEvent on action 'Thumbnail' (id=150). None of the attached controllers handled the action..
    
    SEVERE  24085   0   oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$1    49
    SEVERE  24086   1246    oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$1    49
    SEVERE  24087   10838   oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$1    null
    
    SEVERE  4590    94562849    oracle.ide.controller.IdeAction Error during handleEvent on action 'Compile' (id=374).None of the attached controllers handled the action.
     - oracle.ide.controller.IdeAction$ControllerDelegatingController@abb730a4[oracle.ideimpl.controller.MetaClassController@abb730a4[oracle.dbtools.raptor.plsql.PLSQLController]].
    
    
    SEVERE  4648    3908208 null  
    

    Please help to solve this problem, because it's really frustrating to compile the package all 2-3 rows of written code because you don't know when it's going to crash.

    Currently, I have the sqldeveloper64W.exe process that freezes user 50% of my proc and the only way to close is to kill them from the Task Manager.

    Thank you

    Alex.

    Hi Alex,

    There is a known issue when you use copy/paste via the shortcut keys.  Don't know if this is quite fixed yet - here is the link to more complete discussion I could find:

    copy/paste 4.01 freezes

    Kind regards

    Gary

    SQL development team

  • Developer SQL does not not under win 8.1.1

    Hi, I do not know if I am in the right section, sorry if not.

    I have problem with Oracle SQL developer 4.0.1.14.48 (also SQL developer Data Modeler), which does not load under win 8.1 update 1 (fully implemented win8 to date).

    I get only start screen with about 1 cm bar loading with the message "loading", after seconds, start screen turn off and nothing else happens. There are no related processes in the Manager of tasks, no error message, nothing. My friend has the same problem. Both PC's are laptops.

    Pls help.

    I just noticed new version has been published, (4.0.2.15.21) and his work with my windows 8.1.1

    Thank you.

  • Importing APEX app with PL/SQL does not change the id as requested app

    Oracle DB XE 11 GR 1 material

    APEX 4.2.2

    RHEL 6.3

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

    The following code segment any an APEX application which has been exported successfully.  However, even when given a 'new' id of the application, the 'old' within the export application id is still used.

    What could be wrong? In other words, how can I make sure that the 'new' id of the application is used and it overrides the 'old' id of the application that comes with the APEX app export file?

    declare...

    wwv_flow_api.set_security_group_id (p_security_group_id = > v_secgrp_id);
    apex_application_install.set_application_id (t_new_app);  # does not change the new app app ID id
    ....

    exception
    while others
    .....
    end;
    /

    @APEX_export.sql;

    commit;

    Thank you.

    It turns out that the code above (6) works very well.  My development environment has a problem with the workspace is not found.  Tried the code in a test environment and it worked.

    Thank you.

  • reset_image_prefix. SQL does not work

    Hello

    My DB has two instances with two different versions of the top charge. One is the version 4.1.1 (works well) and I decided to upgrade the other 4.1.1 to 4.2. I created a new location in the httpd.conf file entry in my case of OSH to point to the new instance 4.2 referencing a new Alias image on the server. When I installed APEX 4.2 I showed the images the New Alias directory setting "i42' but it does not work. Applications always refer to is

    I ran the script reset_image_prefix.sql with /i42/ as an input parameter, but the applications are always reference/i /.

    There was a similar discussion in October 2012 and Patrick Wolf wrote on bug # 14785456.

    But the BUG seems to be fixed?

    After executeing the script Iget:

    SQL > select text from dba_source where owner = 'APEX_040200' and lower (name) = "wwv_flow_image_prefix";

    TEXT

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

    package wwv_flow_image_prefix

    is

    constant g_image_prefix VARCHAR2 (255): = ' / i42 / ";

    end wwv_flow_image_prefix;

    4 selected lines.

    Is there a solution?

    Kind regards

    Carola

    Hi Carola,

    What exact version of APEX 4.2 do you use? Are you using the latest 4.2.2? Because it includes the hotfix that you referenced. After installation of this version or the patch installed, it will automatically erase all the prefixes image-level asks if they are identical to the current instance image prefix. So in your case, you should set the prefix image back to / i /, install the hotfix and then reset_image_prefix again to set the parameter instance/i42.

    Joel has some useful information on this blog (YABAOAE) yet another Blog about Oracle Application Express: prefix of Image Exchange in Oracle Application Express 4.2.2

    Some background info on reset_image_prefix.sql. Who has never changed the image prefix used in applications, only the prefix of image for our application Builder.

    Concerning

    Patrick

    Member of the APEX development team

    My Blog: http://www.inside-oracle-apex.com

    APEX Plug-Ins: http://apex.oracle.com/plugins

    Twitter: http://www.twitter.com/patrickwolf

    Post edited by: PatrickWolf

  • PL/SQL does not

    Nice day

    I can't get all the commands to run in a sheet of SQL PL/SQL. I use SQL Developer Oracle 11g Express and can execute General SQL statements. I need to run PL/SQL in a different form? I here copy schema HR queries:

    http://www.srikanthtechnologies.com/Oracle/Dec9/hrqueries.html

    None of them work, and I'm guessing that I need to change a setting.

    Thanks for your help,

    J

    Hello J,

    There's a specific forum for the SQL Developer: {forum: id = 260}
    If please mark this question as answered and post your question there.
    This forum is just for SQL and PL/SQL related questions.

    As a suggestion, you should also post what you are trying to run and does not get executed with any possible error/output.

    Kind regards.
    Al

  • Buffer SQL commands (get, run, save, etc.) in Developer SQL does not?

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

    I have c:\test.sql that contains
    PROMPT Working
    and c:\testscript.sql that contains
    set echo on
    set serveroutput on
    /
    GET c:\test.sql
    SAVE c:\test_working.sql
    LIST 1 LAST
    RUN
    If I open a new worksheet and type:
    @\testscript.sql
    then press F5, I get:
    @\testscript.sql
    set serveroutput on
    /
    GET c:\test.sql
    SAVE c:\test_working.sql
    LIST 1 LAST
    RUN
    If the c:\test_working.sql is not created and the content of the script is not executed.

    What I am actually trying to do here (and maybe you guys have a better idea) is to capture the output of the sql command that appears on the client, send it to the server, treat it somehow and then do everything with her (she log in my case).

    For example (a very simple example from my scripts).
    spool c:\temporary.tmp
    create table test();
    spool off;
    
    get c:\temporary.tmp
    0 begin insert into logtable (msg) (trim('
    100 ')); end;
    
    save logit.sql
    
    @'logit.sql'
    the idea is to be able to save the output of any control block / anonymous plsql in a way that can be sent to the server for processing (this is for most mistakes, of course).
    I can intercept DBMS_OUTPUT turning SERVEROUTPUT then a DBMS_OUTPUT. ACTIVATE and finally using DBMS_OUTPUT. GET all the lines and the process/log them, but I have not found a way yet to catch the rest of the "TERMOUT' of treatment other than the queue, but even then, I couldn't find a way to get the local file (content) on the server; and this idea GET/SAVE/RUN appeared to be feasible but its does not work (I even tried interactively, but maybe I'm doing something wrong).

    Any ideas/suggestions on the topic are welcome.

    Thank you.

    Hello

    According to the 3.1.04.72 SQL Developer documentation, the "get" command (among others) is not supported:
    Help | Table of contents | SQL Developer concepts and use. With the help of the SQL worksheet | SQL * more supported and unsupported statement...

    If the options are limited. If sqlplus is available and use it as an "external" tool will not conflict entirely with local policy, these links may interest you:
    Re: sqlplus vs sqldeveloper
    Easy Connect and sqldev.conn issues

    Otherwise, you can add a feature request for this on the SQL Developer and see if such an improvement is a priority for the community.

    Kind regards
    Gary
    SQL development team

  • Function standard SQL does not compile in formula

    I get an error when trying to use nvl2 within a formula. It returns an error "nvl2 identifier must be declared. I am connected to a database while trying to compile. What could be the problem?

    BTW, I tried this in the database (10g, 11 g have), and it does not work either. Pl/sql v10 just does not support the nvl2.

    declare
       mynumber  number(1);
    begin
       mynumber := nvl2(null, 1, 2);  -- this gives a compilation error
       dbms_output.put_line(mynumber);
       mynumber := nvl(null, 1);  -- this works
       dbms_output.put_line(mynumber);
    end;
    
  • SQL does not work

    I posted this already, but I can't so I'm posting again so apologies...

    I downloaded Oracle Express. I used the utilities tab and downloaded a file. I can see the file with "select * from all_tables ' and I can't
    see that I am the owner. I have s/n privs, and using the object browser, I can see the data and and I have granted all privileges to the public.
    Although I can see the table of the dictionary with SQL, and object browser, I am the owner; but, SQL will not allow me
    describe the table
    Select from the table
    even remove the table, so I can recreate another way.

    All I get never the SQL tab or BACK SQL command line is "ORA-00942: table or view does not exist '- but it does not exist under my ownership and all privileges have been granted on the table. What's wrong? Thank you... Richard ([email protected])

    You need to learn how to CUT & PASTE

    Select * from 'Movie '.

    has provided previously you & you still ignore it.

  • Cold Fusion Sql does not properly

    When running the code through this function, it does not give me a syntex error and not actually delete all records either. There could be the option to remove anywhere from 1 plug up to several hundred... form.chk_email is a checkbox from the form of presentation to access this page. I want to click the box to say that automatically sends to remove from the db. Here's the code for the checkbox as well.

    I just found the problem, it is with the checkbox on the form:

    It should have been:

    Instead of

Maybe you are looking for

  • Family sharing and iCloud iOS 10?

    Hello I'm after some tips on iCloud and sharing of the family. (devices have been upgraded to iOS 10) I used to have several devices (2 iPhones and iPads 2) 1 Apple ID. Because of mixed text, etc. messages and cross the composition, I enabled sharing

  • Update BIOS - black screen now on Satellite C660

    First of all Hello first post. I have 2 laptops computers C660 girls 1 satellite crashed a while a go so she began using mines. Mine C665D now broke screen can see some of the screen. Decided to try first permutation screen not switch different conne

  • I deleted all of my hard drive and there always 219 GB of the 'other' listed.  How can I find on that fits all that space?

    Old MacBook Pro.  250 GB drive is full.  I have deleted or moved the docs, photo and music on an external drive and in ' on the Mac - memory "it says I 219 GB of"other ".  How can I know what 'other' is and delete the useless/applications/etc?

  • Use the ipad as a second monitor for Mac

    I remember using my iPad as a second monitor a couple of years, just as an exercise of "isn't this cool? Now, I really need, everyone remember this feature, or it was just a dream? Thank you in advance for your help! STF

  • Loops Parallels and Structure of the event

    Hello Is attached a valid way to the use of the structure of the event?  I keep hearing that the case of the event should include control of the event.  Can the control be placed elsewhere?  For example, if I have 2 loops, I placed a structure of the