list of sql-operators, who use the database indexes.

Give a list of the sql operators, who use the database indexes.

I'm interested to know if ' group by '-operator uses indexes.

why it has not been used here?

because there is no general rule to that: as stated it depends on table and index layout if the optimizer decides to go to index or not.

Tags: Database

Similar Questions

  • How to determine the user who uses the database object

    Hello
    Currently, we are consolidating our databases. One of the steps is to understand that the user connects to the database at all. It's easy, we have implemented a logon trigger and save the information in a separate table.
    If a user with objects (tables, views, procedures) are - but that this user never connects to the database - which automatically means that these objects are not at all? Needless to say that's not true. But how do know us if a user has selected an object to this user?
    Our problem is that we have a lot of patterns in our database-, but the developers do not know if this schema is not used by an application or not (sad but true).
    To enable the audit would be a choice about whether or not an object is already used.
    Are there other possibilities?
    Any help would be appricated

    Rgds
    Jan

    VivaLaVida wrote:
    Hello
    Currently, we are consolidating our databases. One of the steps is to understand that the user connects to the database at all. It's easy, we have implemented a logon trigger and save the information in a separate table.

    It could be even easier by turning on auditing functionality.

    If a user with objects (tables, views, procedures) are - but that this user never connects to the database - which automatically means that these objects are not at all? Needless to say that's not true. But how do know us if a user has selected an object to this user?

    verification would be a good choice.

    Our problem is that we have a lot of patterns in our database-, but the developers do not know if this schema is not used by an application or not (sad but true).

    Don't know this that developer will be used/not used with the application.

    To enable the audit would be a choice about whether or not an object is already used.

    What is the problem in the audit?
    Even if the audit may have a footprint on the performance, which would be probably cheaper than any customized solution.

    Nicolas.

  • Newbie: Are there members who use the database of Sungard banner w / discoverer

    Hi all

    I'm new to the discoverer...

    I was wondering if anyone here use discoverer with banner?

    THX, Sandra

    Hi, Sandra
    My company, Armstrong - Smith Consulting (http://ascbi.com), is an Oracle partner and partner of SunGard. In fact, we designed a large part of the EUL SunGard to provide when you use their ODS. In recent months, I've also designed and created a EUL built around the EDW SunGard. We are approved with SunGard to consultancy and training on their behalf for discoverer, and in fact, we have a solution for comprehensive training based on the model of SunGard Higher education.

    It is also the list servers managed by SunGard themselves who have a lot of help with the discoverer and of course, there are several people here who come from universities who know too much.

    Drop me a line if you want more information on what we offer.

    Best wishes
    Michael Armstrong-Smith

    Principal consultant
    Armstrong-Smith Consulting

  • How s/n know when and what account perform a function using the database link?

    Dear,

    My application of the CIM team asked DBA to create new function and run it. Function must use the database link for remote database data. So I need to create a new database to their licensing link. Cause we guess we'll experience the performance issue after the user performs this function, or another question and errors may occur. So we want to know when and who use this feature that connects to a remote database through the new database connection in advance. And I also need to know when and which connect to the remote database using this new database link. We have no idea to get this information?  Can anyone recommend how do? Thank you very much.

    Best reqards, Otis.

    Check what business purpose, it will solve.  If the function is so safe, why everyone will use. Only admin people should access.

    All of these additional controls of this kind must be avoided as much as possible to improve the overall performance of the application.

    Still if you need, see the database audit mechanism, specifically designed for this type of activity.

    Kind regards

    Harman

  • Having problems with SQL Developer connection to the database on a LINUX machine

    Having problems with SQL Developer connection to the database on a LINUX machine
    Hello
    I am trying to connect my machine to windows 7 Home premium to an oracle database 11 g on RedHat 5 machine using SQL Developer. I got this error on SQL Developer
    Status: Failed - Test has failed: the network adapter could not establish the connection


    on Linux
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                03-APR-2013 16:13:13
    Uptime                    7 days 22 hr. 16 min. 41 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/product/11.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.X.X.X)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orc11g" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    Service "orc11gXDB" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    Service "orc11g_XPT" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL>
    and TNSPING
    tnsping 172.x.x.x
    
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 11-APR-2013 14:32:17
    
    Copyright (c) 1997, 2005, Oracle.  All rights reserved.
    
    Used parameter files:
    /u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
    
    Used EZCONNECT adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=172.x.x.x))(ADDRESS=(PROTOCOL=TCP)(HOST=172.x.x.x)(PORT=1521)))
    OK (0 msec)
    [oracle@ltebilling ~]$
    Tnsnames.ora on Linux,
    ORC11G =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.x.x.x)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orc11g)
    )
    )
    Listner on Linux,
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
    (PROGRAM = extproc)
    )
    )
    
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.x.x.x)(PORT = 1521))
    )
    )
    hosts/ect/Linux,
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1               localhost.localdomain localhost
    172.x.x.x             LTEBilling
    and there is no problem to ping linux from windows

    Published by: user11309581 on April 11, 2013 15:16

    user11309581 wrote:
    as I have already desciped earlier, I can't connect to the server throw Linux my Windows SQL Server, with error message below.
    tatus: failed - Test has failed: the network adapter could not establish the connection

    It's too generic to mean anything. The application is hidden the real error message. You got when you did the tnsping and obtained "TNS-12535: TNS:operation has expired. Now THAT's an error.

    This indicates a problem firewall and routing. You said earlier you could ping the server, but now we see tnsping fails. Two different protocols of usage, so that both the successful ping turns out a valid physical path, it guarantees not that all traffic will pass. What happens with

    c:\ telnet 172.x.x.x 1521
    
  • I can't get a list of bullited when you use the synchronized text feature.

    I can't get a list of bullited when you use the synchronized text feature. The option is grayed out and no assets. Any tips? I'm doing something wrong?

    It is by default, the synchronized text does not change any style and other visual attributes associated with the instance.

    Thank you

    Sanjit

  • Loding data using the database link.

    Dear all,

    I am new to Oracle GoldenGate...

    How to use the database connection in GG?

    below is the script...


    I have a source table in the client machine (. 28) and I have Norman to laod given in the target computer (. 149) per database connection.

    I run application GG in (. 28) and create the link of database called docqvoice_db alos.

    I used below extracted code also

    REPLICAT load6
    Username, PASSWORD sh
    ASSUMETARGETDEFS
    CARD sh.products, TARGET products@docqvoice_db;

    I have created the structure of the source in the target also.
    I got the error

    WARNING OGG - 01194 Oracle GoldenGate for Oracle, LOAD5.prm Capture: EXTRACT task LOAD6 added: Table PRODUCTS@DOCQVOICE_DB does not exist in the target database.


    Please advice...
    Thanks in advacne...
    Amina Hussain
    [email protected]
    No cell + 91-9886006549

    Amina,

    You have two choices. First choice, that's what you do, but your syntax is off. It should be:

    REPLICAT load6
    Sh@docqvoice_db username, PASSWORD sh
    ASSUMETARGETDEFS
    CARD sh.products, sh.products of the TARGET.

    Second choice is to create a view on the source using the link from the target database and map display just as in:

    REPLICAT load6
    Username, PASSWORD sh
    ASSUMETARGETDEFS
    CARD sh.products, sh.view_on_products of the TARGET.

    Good luck
    -joe

  • I want to use the database to 10g control

    Hello

    I installed oracle 10g on Windows client. He installed Oracle Enterprise Management Console.

    I created all of my databases by using create database on a UNIX server instructions.

    Now, I want to use the database to monitor these databases. How can I do this? I don't see a link or the icon of the database command console.

    Thank you

    OracleGuy777 wrote:
    Hello

    I installed oracle 10g on Windows client. He installed Oracle Enterprise Management Console.

    How did you do that?

    If you talk about the control of database (http), once to create the DB control repository (which should be on the UNIX server), and then use the URL and the Port number that you learned at the end of the installation to access it from the Windows machine. This should be in the format:

    http://yourunixservername:port / em

    for example

    http://dbmsdirect01:1158 / em

    or

    https://dbmsdirect01:1158 / em



    Oracle database FAQ

  • Can I call a function using the array index?

    I defined a table that stores the name of the function, like this:

    var aresetButtonTop:Array = new Array(resetTop1,resetTop2,resetTop3,resetTop4,resetTop5);

    Then I have a button named "btnresetTop" which, once clicked will be called one of the five functions stored in the array (aresetButtonTop) above. Functions are called at runtime depending on certain conditions. I need to figure out how I can call these functions using the array index. I use the following code to call the function. The value of i has already been calculated.


    btnresetTop.addEventListener (MouseEvent.CLICK, aresetButtonTop [i]);

    After doing this, I get the following error when I click on the button:

    TypeError: Error #2007: parameter listener must be non-null.
    at flash.events::EventDispatcher/addEventListener()
    at gallerytest_fla::MainTimeline/thumbTopClick()

    Note: thumbTopClick() is a function within which all these codes are written.

    I need to know if it is posible in AS3 to call a function name using array index or not. If so, could you afford ehelp me out.

    You can certainly do.

    In your case, it looks like i is out of range. Show your loop.

  • SQL to get who uses the UNDO segments

    Hello I need to enter SQL which uses the UNDO segments. Is there anything out there for me to do. We want to track down the user who runs our database UNDO segments upwards. We think we know who did this by monitoring sql albums but management wants more evidence as usual. Any help would be great.
    SELECT TO_CHAR(s.sid)||','||TO_CHAR(s.serial#) sid_serial,
    NVL(s.username, 'None') orauser,
    s.program,
    r.name undoseg,
    t.used_ublk * TO_NUMBER(x.value)/1024||'K' "Undo"
    FROM sys.v_$rollname    r,
    sys.v_$session     s,
    sys.v_$transaction t,
    sys.v_$parameter   x
    WHERE s.taddr = t.addr
    AND r.usn   = t.xidusn(+)
    AND x.name  = 'db_block_size';
    

    -André

  • Refresh the report area of PL/SQL (not Page) using the value of the select list

    Hello

    I have a report region based on a "body of the PL/SQL function returning a query'which SQL is generated on the selection of a value of an element from the selection list, select action list is"Redirect and set", but this causes the entire page refresh rather than just the region report." I tried to update the report using only a dynamic action on the item list select (Action now reset to 'None'), but now the report does not appear on the choice of the list. Can someone suggest a solution that will allow me to update this report without refreshing the page? I use APEX 4.2.2 and the syntax of the statement is as follows:

    DECLARE

    v_statement VARCHAR2 (500);

    BEGIN

    SELECT query_text
    IN v_statement
    OF sql_queries
    WHERE query_id =: P2_QUERY;

    RETURN v_statement;

    END;

    where P2_QUERY is Select list item,

    Kind regards

    Kevin.

    KevinFitz wrote:

    The displayed report region is subordinate to the point P2_QUERY is NOT NULL. I guess that the region appears not is because the Action for the select list item is set to None, and so P2_QUERY is always NULL.

    No, the region does not appear because it is subordinated to the P2_QUERY being NOT NULL. This means that the region of report never exists on the page displayed in the browser, so it cannot be updated dynamically. (Dynamic updating is not to evaluate the conditions of the region, and she makes only the content of the report, not the whole region again).

    Remove the condition on the region to report, check the update works and then go back on what exactly are the requirements here. If you want to the area appear only when P2_QUERY has a value, and you want it to be regenerated without submitting and reposting of the page, the region must then be hidden rather than conditionally restored and shown via dynamic when action P2_QUERY Gets a value.

    I tried to add a further Action for the event real value DA but has been a mistake, as stated above,

    All irrelevant if Page to submit items on the region is used correctly.

  • SQL statement by using the min aggregate function result extract a line - how?

    Need help, try to do something seemingly simple. I'll give a simple example to illustrate the problem.

    I'll use a simple table of addresses with 4 fields.

    Create the table:
      CREATE TABLE "ADDRESSES" 
       (     "OWNER_NAME" VARCHAR2(20 BYTE), 
         "STREET_NAME" VARCHAR2(20 BYTE), 
         "STREET_NUMBER" NUMBER
       ) ;
    complete with 6 rows
    Insert into ADDRESSES (OWNER_NAME,STREET_NAME,STREET_NUMBER) values ('FRED','MAIN',1);
    Insert into ADDRESSES (OWNER_NAME,STREET_NAME,STREET_NUMBER) values ('JOAN','MAIN',2);
    Insert into ADDRESSES (OWNER_NAME,STREET_NAME,STREET_NUMBER) values ('JEAN','MAIN',3);
    Insert into ADDRESSES (OWNER_NAME,STREET_NAME,STREET_NUMBER) values ('JACK','ELM',1);
    Insert into ADDRESSES (OWNER_NAME,STREET_NAME,STREET_NUMBER) values ('JANE','ELM',2);
    Insert into ADDRESSES (OWNER_NAME,STREET_NAME,STREET_NUMBER) values ('JEFF','ELM',3);
    We now have this:
    Select * from addresses
    OWNER_NAME           STREET_NAME          STREET_NUMBER          
    -------------------- -------------------- ---------------------- 
    FRED                 MAIN                 1                      
    JOAN                 MAIN                 2                      
    JEAN                 MAIN                 3                      
    JACK                 ELM                  1                      
    JANE                 ELM                  2                      
    JEFF                 ELM                  3                      
    
    6 rows selected
    Now, I want to group by street name and obtain a number of houses. At the same time, I would like to know the number of the first and the last House
        select
        street_name,
        count(*) "NBR HOUSES",
        min(street_number) "First Number",
        max(street_number) "Last Number"
         from addresses
        group by street_name
    
    produces
    
    STREET_NAME          NBR HOUSES             First Number           Last Number            
    -------------------- ---------------------- ---------------------- ---------------------- 
    ELM                  3                      1                      3                      
    MAIN                 3                      1                      3                      
    
    2 rows selected
    Excellent. Now for the problem. I would also like to list on each line, the owner who lives at number House first and/or the last. It should be noted, assume that the name of the street and the number is unique

    It seems I have everything that I need. Don't know how to get home.

    I tried:
    select
        street_name,
        count(*) "NBR HOUSES",
        min(street_number) "First Number",
        max(street_number) "Last Number",
        (Select b.owner_name from addresses b where b.street_number = min(street_number) and b.owner_name = owner_name) "First Owner"
         from addresses
        group by street_name
    But getting a syntax error sql group function unauthorized when I add the subselect statement.

    any ideas?

    Thanks for any help.

    Published by: user6876601 on November 19, 2009 19:08

    Published by: user6876601 on November 19, 2009 19:30

    Hello

    Welcome to the forum!

    Get the minimum and maximum number for each street is a pretty simple concept; simpler to describe and simple to code.
    Now you want to the owner_name associate the maximum and minimum, which is a concept more complex; a little more difficult to describe and, unfortunately, much less simple to code and much, much more difficult to explain:

    select
        street_name,
        count (*)                "NBR HOUSES",
        min (street_number)      "First Number",
        min (owner_name) KEEP (DENSE_RANK FIRST ORDER BY street_number)
                        "First Owner",
        max (street_number)      "Last Number",
        min (owner_name) KEEP (DENSE_RANK LAST ORDER BY street_number)
                        "Last Owner"
         from addresses
        group by street_name
    ;
    

    You will notice that I used min for "Original owner" and "last owner". Why is this?
    The key word in these functions is the FIRST or the LAST word that comes after DENSE_RANK and before ORDER BY. The function at the beginning is simply a break.

    In other words, MIN in this context refers only to what needs to happen when there is a link to the first or last in the group. Even if such a thing is impossibe in your data, generic functions must have a mechanism to return a single owner_name when two or more rows have an equal right to having the highest street_number. For example, if we change the address of Joan in 1 hand, then MIN (street_number) is always 1, of course, but who is the person associated with the minimum street_number: Fred or Joan? Both have an equal claim that he owns with the smallest address on Main Street, but aggregate functions must return a single value, so we must have a mechanism to indicate to the system, whether to return 'JOAN' or 'FRED '. In this example, I arbitrarily in the network said een of tie, the lowest name, in alphabetical order, must be returned. In this case, 'FRED' would return, "FRED" prior to "JOAN".

    Thank you for including CREATE TABLE and INSERT!

  • Using the database links in a process of page plsql

    I try to use a database link in a process of pl/sql page.

    It works fine when I use the link name in the plsql like this:

    BEGIN 
    SELECT  
    CARD_ID 
    into   
     :P12_HDR_CARD_NUMBER  
    from     [email protected]; 
    

    But the name of the link will come an element of page (P12_DBLINK) filled as follows:

    select db_link d, db_link r from user_db_links;  
    

    I tried the following and it doesn't work:

    DECLARE 
    l_link VARCHAR2(30); 
    BEGIN 
    l_link :=  :P12_DBLINK; 
    SELECT  
    CARD_ID 
    into   
     :P12_HDR_CARD_NUMBER  
    from     fusion.EXM_CC_COMPANY_ACCOUNTS@l_link; 
    

    It gives me:

    • ORA-04052: error occurred when searching to the top of the remote object MERGER. EXM_CC_COMPANY_ACCOUNTS@L_LINK. WORLD ORA-00604: error occurred at recursive SQL level 3 ORA-02019: description of the connection to the remote database not found

    I thought that perhaps the name of the link was joined with. WORLD automatically but already has the name of the link. WORLD at the end I tried stripping first but the error is the same.

    Is there some synatx for what will work? Can I use dynamic sql statements?

    Any suggestions are most appreciated.

    Thank you

    John

    Hi John,.

    see the following example to use the execute immediate for your purpose

    SQL - Variable for the name of the database link - Stack Overflow

    Let me know if that answers your query in the active thread

  • Insert in oracle 11g postgresql using the database link

    Hey all,.

    an I have a problem when I try to insert into the table postgre

    copy of sa/sa@xe insert "ora". "TAB0"@orapos3 using select * from tabel0;

    SP2-0498: lack of column between parentheses or USING keyword list

    to 'ora '. "TAB0"@orapos3, data type of are all text columns

    tabel0 taype data of the whole column is varchar2...

    What is the cause?

    kgronau,

    Thanks for your help

    I found the solution to this problem, this is not caused by the configuration...

    I use the pl/sql like this:

    DECLARE

    CURSOR remote_insert IS SELECT * FROM sa.tabel0;

    START for rec IN remote_insert LOOP

    INSERT INTO "ora". ' Values of TAB0"@orapos3 (rec.kolom000, rec.kolom001, rec.kolom002, rec.kolom003, rec.kolom004, rec.kolom005, rec.kolom006, rec.kolom007, rec.kolom008, rec.kolom009, rec.kolom010);

    END loop;

    END;

    /

    Thank you

    Daniel

  • Using the database link in the applications

    Hello
    I just configured and created a PUBLIC database link on my oracle 10g. Can I use it with success of sqlplus do some like select simple:

    "SQL > select * from table"@dblink ".

    The query returns the result as expected.

    Now, I would like to use this public link in my applications, but the problem is that the link seems to be only available in the SYS schema.

    Ho can I access to a schema?

    In other words, to do some select (and insert) of my applications APEX by using the link to the db. If I try to select said, all I get is

    ORA-02019: description of the connection to the remote database not found

    OK, thanks all for the help, I found the problem.
    It seems that I created the link of database public and not public.

    I gave both of them and re - create public database link and now it works.

    Thanks for the help.

Maybe you are looking for

  • AppleScript - quotes from removal of cells

    I need to remove the quotes of cells in number. Currently, I have a script that imports data from Yahoo Finance in numbers in a range of cells (for example b2:j8). Unfortunately, much of this data as of the dates & times that are imported are surroun

  • Verification required

    Is [email protected] an address authentic? I asks me to verify my account, including bank details!

  • stop the loop inside while loop

    Hi all Is there a way to stop a loop within a while loop? Error-free program will stop running when you press the stop button, but I want to while loop continues to run in and only for the loop stops when the condition is met. Thank you!

  • Maintenance of future errors on the updates of Windows

    I have a question about the things that are going on in my logs in Event Viewer on the Windows servicing warnings that are coming on the updates. I first noticed this when on 27 October updates were issued and it has done the same previously with upd

  • BlackBerry BlackBerry classical music App AlbumArt

    I have a classic BlackBerry running 10.3.1 and I loaded a 64 GB SD with about 40 GB of mp3 files in a structured artist, hierarchy Album with each Album folder containing a Folder.jpg file for album art. For some reason, the app has picked up all of