Can we use hints in oracle 11g version ?

can we use hints in oracle 11g version ? is it working ??

Why do you ask these questions? Have you looked at the SQL Reference Guide and Performance Tuning Guide for your Oracle version - both which covers using hints?
Have you see a statement that is not supported? Or does not work?
Or are you simply doing idle speculation and expecting forum members to spend their free time in answering a basic question where the answer is ridiculously simply to find?

Similar Messages

  • Can you use hints in mssql  ?

    HI,
    When use abap sql in mssql DB,can i use  like  %_hints oracle 'index(csks"J")'. ?
    Is it helpful?

    Hi,
    in ABAP you can write "native SQL" of your database system within tags :
      EXEC SQL.
        " Your MSSQL code here
      ENDEXEC.
    Than here you can use everything you want .. an index hint or etc.
    But this code works only for that database system. If the database will change someday
    this code can not be used.
    So the best way is using Open SQL of ABAP.
    if you want to use an index go to se11 open your table than click "indexes" button to display secondary indexes
    and display fields in that indexes.
    Use this fields in your select statement on topmost of WHERE clause with the same sequence in index.
    I hope it helps.

  • Can we use different Databases (Oracle & SQL Server) in one report?

    Post Author: venki5star
    CA Forum: .NET
    Hi there.
    Can we use different databases (Oracle & SQL Server) in a same report?
    If possible how?
    Another question,
    Can we change the Provider Name at runtime of the given report. If so the above question is useless...
    Thanks in Advance.

    I tried this using Oracle Provider for OLEDB (the one that supplied by Oracle Client) and Crystal Reports 9. you can drag the column into designer but the image does not appear in preview.
    I guess it's because CR does not recognized it as image, and there are no information that the blob data is an image at all.

  • Can we use multiple "pivot_for_clauses" in 11g SQL PIVOT

    Can we use multiple "pivot_for_clauses" in 11g SQL PIVOT. Below SQL is an example of what I am trying to do - In this case instead of using JOIN, can I have three pivot_for_clauses in the same sql?
    SQL:
    MERGE INTO Test_1 dest
    USING (SELECT P1.company_id,trunc(sysdate) as load_date,num_logins,......
    FROM (SELECT company_id,action_type_id
    FROM Testauditinfo_1 where trunc(audit_date_time)=trunc(sysdate)-1) a
    PIVOT (count(action_type_id) FOR (action_type_id) IN ((1) as num_logins,(2) as num_logouts,(61) as
    num_logins_from_mobile_device,(16) as num_pref_changed,....)) P1
    JOIN
    (SELECT company_id,action_type_id,tx_type_id
    FROM Testauditinfo_1 where trunc(audit_date_time)=trunc(sysdate)-1) a
    PIVOT (count(action_type_id) FOR (action_type_id,tx_type_id) IN ((3,4) AS add_invoice, (4,4) AS
    edit_invoice,(3,3) as num_checks,(3,47) as num_paychecks,(3,7) as num_recvd_payments,(3,9) as num_bills,
    (3,35) as num_estimates,(3,46) as num_purchase_orders)) P2
    on P1.company_id=P2.company_id
    JOIN
    (SELECT company_id,action_type_id,list_type_id
    FROM Testauditinfo_1 where trunc(audit_date_time)=trunc(sysdate)-1) a
    PIVOT (count(action_type_id) FOR (action_type_id,list_type_id) IN ((3,2) AS num_items,(3,1) as
    num_accounts,(3,4) as num_employees,(3,6) as num_customers,(3,14) as num_memorized_reports)) P3
    on P2.company_id=P3.company_id
    left outer JOIN
    (SELECT company_id,create_date,count(*) as num_logos
    FROM qbo.companylogos_1 group by company_id,create_date having trunc(create_date)=trunc(sysdate)-1) P4
    on P3.company_id=P4.company_id
    ORDER BY P1.company_id) source
    ON ((dest.company_id = source.company_id) and (dest.load_date = source.load_date))WHEN MATCHED THEN
    UPDATE SET dest.num_items = source.num_items where 1=2
    WHEN NOT MATCHED THEN
    INSERT (dest.company_id,.....) values (source.company_id,.....);

    Maybe
    MERGE INTO Test_1 dest
    USING (SELECT P1.company_id,trunc(sysdate) as load_date,num_logins,......
             FROM (select *
                     from (SELECT company_id,action_type_id
                             FROM Testauditinfo_1
                            where trunc(audit_date_time) = trunc(sysdate)-1
                          ) a
                          PIVOT (count(action_type_id)
                            FOR (action_type_id) IN ((1) as num_logins,
                                                     (2) as num_logouts,(61) as num_logins_from_mobile_device,
                                                     (16) as num_pref_changed,....
                  ) P1
                  JOIN
                  (select *
                     from (SELECT company_id,action_type_id,tx_type_id
                             FROM Testauditinfo_1
                            where trunc(audit_date_time) = trunc(sysdate)-1
                          ) a
                          PIVOT (count(action_type_id)
                            FOR (action_type_id,tx_type_id) IN ((3,4) AS add_invoice,
                                                                (4,4) AS edit_invoice,
                                                                (3,3) as num_checks,
                                                                (3,47) as num_paychecks,
                                                                (3,7) as num_recvd_payments,
                                                                (3,9) as num_bills,
                                                                (3,35) as num_estimates,(3,46) as num_purchase_orders
                  ) P2
               on P1.company_id = P2.company_id
                  JOIN
                  (select *
                     from (SELECT company_id,action_type_id,list_type_id
                             FROM Testauditinfo_1
                            where trunc(audit_date_time) = trunc(sysdate)-1
                          ) a
                          PIVOT (count(action_type_id)
                            FOR (action_type_id,list_type_id) IN ((3,2) AS num_items,
                                                                  (3,1) as num_accounts,
                                                                  (3,4) as num_employees,
                                                                  (3,6) as num_customers,
                                                                  (3,14) as num_memorized_reports
                  ) P3
               on P2.company_id = P3.company_id
                  left outer JOIN
                  (SELECT company_id,create_date,count(*) as num_logos
                     FROM qbo.companylogos_1
                    group by company_id,create_date
                    having trunc(create_date) = trunc(sysdate)-1
                  ) P4
               on P3.company_id = P4.company_id
            ORDER BY P1.company_id
          ) source
       ON ((dest.company_id = source.company_id) and (dest.load_date = source.load_date))
    WHEN MATCHED
    THEN UPDATE SET dest.num_items = source.num_items where 1 = 2
    WHEN NOT MATCHED
    THEN INSERT (dest.company_id,.....)
          values (source.company_id,.....)Did you try it ?
    Regards
    Etbin

  • Can i use the iPhone 5 unlock version for tMobile?

    can i use the iPhone 5 unlock version for tMobile?

    If you unlock a phone, you can use it with any carrier. Just be aware that T-mobile is not a carrier that AppleCare tech support will be able to troubleshoot

  • Tried my k3772-z modem to connect macbook air to internet and got the message: you can't use this application with this version of mac os x. Is there a setting that needs to be changed?

    Tried my k3772-z modem to connect macbook air to internet and got the message: you can't use this application with this version of mac os x. Is there a setting that needs to be changed?

    I can't help you with a direct answer.  For third-party devices you should contact the vendor (Vodafone). 
    If you have an iPhone (or an Android phone with hot-spot capability) you can use that to connect to the Internet without paying for a separate cellular service.

  • Can we use Adobe Creative Suite (student version) CS4 and CS5 for commercial usage in Australia?

    Can we use Adobe Creative Suite (student version) CS4 and CS5 for commercial usage in Australia?
    Can we use for commercial purposes while we are studying?
    How about after we graduate?
    Thank you.

    Check your regional S&T pages for specifics. Generally commercial usage is allowed during school and after graduating, but in some regions extra restrictions may apply if e.g. your software is subsidized by your government or the license owned by the school and you just "loaned" it.
    Mylenium

  • Unpredictable problem using XMLTYPE in Oracle 11g?

    We recently upgraded from Oracle 10g to Oracle 11g, which caused some of our stored procedures to start acting funny.
    Our database stores BLOBs containing XML data in a table. We then asynchronously convert these BLOBs into XMLTYPE objects, and use them to perform operations in our database. This logic started failing when we moved to 11g.
    Our original code looked like this:
    PROCEDURE submitTpfdd(shipmentDataId IN VARCHAR2) AS
         shipmentData XMLTYPE;
      csid INTEGER;
      shipmentName VARCHAR(128);
      gk_namespaces VARCHAR(1024) := 'xmlns:a="http://my.app/1.0.0.0"';
    BEGIN
      SELECT NLS_CHARSET_ID('UTF8') INTO csid FROM dual;
      SELECT XMLTYPE(tf.shipmentData, csid)
        INTO shipmentData
        FROM SHIPQ.SHIPMENT_FILE tf
        WHERE tf.shipment_id = shipmentDataId;
      shipmentName := shipmentData.extract('/a:Shipment/shipmentName/text()', gk_namespaces).getStringVal();
      ... (more logic)
    END submitTpfdd;When we switched to 11g, this code started frequently failing with an "unsupported character set" error. It happens about half the time, and it's unpredictable. It will sometimes pass and sometimes fail, even if the same BLOB is being read both times. I haven't been able to reproduce the error with any of XMLTYPE's other constructors.
    Has anybody encountered similar behavior with the XMLTYPE in 11g? Should I submit a tracker?

    I have created a SQL program which can be run independently to reproduce the problem.
    DECLARE namespaces constant VARCHAR2(1024) := 'xmlns:a="http://morton.com/"';
    CURSOR cursor0(reeves XMLTYPE) IS
    SELECT EXTRACT(VALUE(t), 'text()').getstringval() AS
    bullock
    FROM TABLE(xmlsequence(reeves.EXTRACT('/a:hopper', namespaces))) t;
    CURSOR cursor1(reeves XMLTYPE) IS
    SELECT EXTRACT(VALUE(t), 'text()').getstringval() AS
    bullock
    FROM TABLE(xmlsequence(reeves.EXTRACT('/a:hopper', namespaces))) t;
    CURSOR cursor2(reeves XMLTYPE) IS
    SELECT EXTRACT(VALUE(t), 'text()').getstringval() AS
    bullock
    FROM TABLE(xmlsequence(reeves.EXTRACT('/a:hopper', namespaces))) t;
    CURSOR cursor3(reeves XMLTYPE) IS
    SELECT EXTRACT(VALUE(t), 'text()').getstringval() AS
    bullock
    FROM TABLE(xmlsequence(reeves.EXTRACT('/a:hopper', namespaces))) t;
    CURSOR cursor4(reeves XMLTYPE) IS
    SELECT EXTRACT(VALUE(t), 'text()').getstringval() AS
    bullock
    FROM TABLE(xmlsequence(reeves.EXTRACT('/a:hopper', namespaces))) t;
    CURSOR cursor5(reeves XMLTYPE) IS
    SELECT EXTRACT(VALUE(t), 'text()').getstringval() AS
    bullock
    FROM TABLE(xmlsequence(reeves.EXTRACT('/a:hopper', namespaces))) t;
    CURSOR cursor6(reeves XMLTYPE) IS
    SELECT EXTRACT(VALUE(t), 'text()').getstringval() AS
    bullock
    FROM TABLE(xmlsequence(reeves.EXTRACT('/a:hopper', namespaces))) t;
    CURSOR cursor7(reeves XMLTYPE) IS
    SELECT EXTRACT(VALUE(t), 'text()').getstringval() AS
    bullock
    FROM TABLE(xmlsequence(reeves.EXTRACT('/a:hopper', namespaces))) t;
    CURSOR cursor8(reeves XMLTYPE) IS
    SELECT EXTRACT(VALUE(t), 'text()').getstringval() AS
    bullock
    FROM TABLE(xmlsequence(reeves.EXTRACT('/a:hopper', namespaces))) t;
    CURSOR cursor9(reeves XMLTYPE) IS
    SELECT EXTRACT(VALUE(t), 'text()').getstringval() AS
    bullock
    FROM TABLE(xmlsequence(reeves.EXTRACT('/a:hopper', namespaces))) t;
    xml_clob CLOB := empty_clob;
    xml_blob BLOB := empty_blob;
    xml_varchar VARCHAR2(4000);
    xml_xmltype XMLTYPE;
    warning INTEGER;
    dest_offset INTEGER := 1;
    src_offset INTEGER := 1;
    lang_context INTEGER := 0;
    char_set INTEGER := nls_charset_id('UTF8');
    BEGIN
      dbms_lob.createtemporary(xml_clob, TRUE);
      dbms_lob.createtemporary(xml_blob, TRUE);
      dbms_lob.OPEN(xml_clob, dbms_lob.lob_readwrite);
      dbms_lob.OPEN(xml_blob, dbms_lob.lob_readwrite);
      xml_varchar := '<a:hopper xmlns:a="http://morton.com"/>';
      dbms_lob.writeappend(xml_clob, length(xml_varchar), xml_varchar);
      dbms_lob.converttoblob(xml_blob, xml_clob, dbms_lob.lobmaxsize, dest_offset, src_offset, char_set, lang_context, warning);
      xml_xmltype := XMLTYPE(xml_blob, char_set);
      FOR daniels IN cursor0(xml_xmltype)
      LOOP
        CONTINUE;
      END LOOP;
      FOR daniels IN cursor1(xml_xmltype)
      LOOP
        CONTINUE;
      END LOOP;
      FOR daniels IN cursor2(xml_xmltype)
      LOOP
        CONTINUE;
      END LOOP;
      FOR daniels IN cursor3(xml_xmltype)
      LOOP
        CONTINUE;
      END LOOP;
      FOR daniels IN cursor4(xml_xmltype)
      LOOP
        CONTINUE;
      END LOOP;
      FOR daniels IN cursor5(xml_xmltype)
      LOOP
        CONTINUE;
      END LOOP;
      FOR daniels IN cursor6(xml_xmltype)
      LOOP
        CONTINUE;
      END LOOP;
      FOR daniels IN cursor7(xml_xmltype)
      LOOP
        CONTINUE;
      END LOOP;
      FOR daniels IN cursor8(xml_xmltype)
      LOOP
        CONTINUE;
      END LOOP;
      FOR daniels IN cursor9(xml_xmltype)
      LOOP
        CONTINUE;
      END LOOP;
    END;If someone else could run this program and verify that it acts unpredictably, that would be helpful. I have submitted a metalink tracker but the person who is working the tracker is not able to duplicate the same behavior.

  • Using TimesTen with Oracle 11g

    In documentation I didn't find any information about supporting by Timesten connects to Oracle 11g. So is Timesten can be connected to Oracle 11g or not? Now I've connected it but I'm not sure in proper work of this pair.

    TimesTen 7.0.3 Cache Connect to Oracle supports Oracle 11g on Linux x86 (32-bit).
    Additional platforms will be certified in upcoming maintenance release.
    What platform are you using?
    - Susan

  • Updating the Oracle 11g version 2 database.

    i have a oracle 11g release2 as my production database. is it possible to issue any alter table or procedure change commands without effecting the running application.

    ALTER TABLE can take an exclusive DDL lock on a table which can block DML (INSERT, UPDATE, DELETE) but not SELECT statement.
    A PL/SQL procedure or package cannot be recompiled if it is running.
    So answer is likely no unless you are sure that what the application exactly does in the database cannot interfere with database object changes.
    For PL/SQL objects you might use editions http://docs.oracle.com/cd/E11882_01/server.112/e25494/general010.htm but this something that must be carefully prepared (and it does not work with database tables).

  • How to use ed in oracle 11g as we do in 10g

    Hi,
    Anyone can u tell me how to use text editor in oracle 11g as
    we do in 10g.
    thanks
    srinivas

    Well, that would be because notepad doesn't exist on *nix - isn't that obvious?                                                                                                                                                                                   

  • SLI - Can I use two different video card versions for SLI?

    Hello,
    Can I use two different generations of MSI video cards that implement the same GPU for SLI?   
    The two video cards are:
    MSI N260GTX-T2D896-OCv2 GeForce GTX 260 896MB <-- What I currently have
    MSI N260GTX-T2D896-OCv3 GeForce GTX 260 896MB
    MSI N260GTX-T2D896-OCv4 GeForce GTX 260 896MB
    The main difference between these three seems to be that the OCv3 has two fans and a different heatsink than the OCv2.  The OCv4 has one fan like the OCv2 and but it is located in a different location and some weird spikey heatsink thing going on.  I already have the OCv2 but I am looking to get another card for SLI and newegg doesn't sell the OCv2 anymore.  The important thing is that I am looking for is stability and it seems that the most ideal setup would be to get identical cards.
    By the way, why are there so many versions (updates?) to this card?  Have there been issues related to the card that necessitate a revision?
    Thanks

    Different coolers(HS and fans) and possibly different makers of vRAM.  But, you should be able to run SLI without issues regardless of the versions.

  • In which trigger can i use go_item() in oracle forms 6i?

    Hi,
        I have a problem with go_item.
    I tried executing go_item() in triggers like key_next_item, pre_text_item, post_text_item & when_validate_item.
    But none of them seemed to be working.
    I searched for other possibilities in the site, where i found a solution of using trigger ' when_timer_expired ' with ' when_validate_item ' ,
    but when i tried to create trigger, i did not find that trigger (when_timer_expired)  in the list at all.
    I'm using oracle form builder 6i.
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production.
    A trigger with go_item() must be created when tab is pressed.
    In which trigger can i use go_item() ??
    Thank You.

    from help:
    Restricted Built-in Subprograms
    Restricted Built-ins affect navigation in your form, either external screen navigation, or internal navigation. You can call these Built-ins only from triggers while no internal navigation is occurring.
    Restricted Built-ins cannot be called from the Pre and Post triggers, which fire when Oracle Forms is navigating from object to another.
    Restricted Built-ins can be called from the When triggers that are specific to interface items, such as When-Button-Pressed or When-Checkbox-Changed. Restricted Built-ins can also be called from any of the When-New-"object"-Instance triggers and from key triggers.
    Unrestricted Built-ins do not affect logical or physical navigation and can be called from any trigger.
    The Built-in descriptions include a heading, Built-In Type, that indicates if the Built-in is restricted or unrestricted.

  • Oracle 11g, version 11.1.0.6.0 Release 1 Refuse to install on 64bit windows

    I'm having problem installing Oracle 11g Release 1 in my windows 7 64bit computer. I run the Oracle 11g OUI as an Administrator it shows me
    Checking Monitor: Must be configured to display at least 256 colors higher than 256 . actual 2494967296 passed
    Preparing to lunch oracle Universal Installer from C:\Users\FERDICON MARY SQL\AppData\Local\Temp\oralnstall2012-01-31_09-01-24PM. Please wat...
    I waited for it up to two hours but noting happed, I don't know what to do. I have tried the same process for couple of times but it kept repeating the same thing.
    Please can anybody help me out on what I should do.
    Here is my computer configuration
    Harddisk 250GB
    windows 7
    AMD Processor 2.10GHz
    RAM 2GB
    Virtual Memory 2600Mb
    64bit

    I would recommend you install a VM on your Win 7 machine (e.g Virtualbox, free download from http://www.virtualbox.org), then install Oracle Linux 5.7 in the VM (free download from http://linux.oracle.com), then install Oracle 11gR2 in the OEL VM.
    Be aware that your 2 GB RAM is on the low side and will make your PC (and the VM) pretty sluggish. I tried installing this very combination on an older (Pentium) Win XP machine with 3GB (allocating 1.5 GB to the VM) and it took the better part of 6-8 hours to install OEL and 11gR2 - and database performance is comparable to flowing molasses :-)
    HTH
    Srini

  • Can we use replication usings oracle 10g steams for EBS r12 database?

    HI,
    We are using EBS 12.0.6 and database 10.2.0.3 on linux 32-bit/64-bit OS (Multi-Node env).
    Actually We want to decrease the load of custom reports on actual production system, so thats why
    we need reports server and as my past experience I had used oracle streams for replication with simple schema based replication and tablespace replication also.
    So, please educate me, that can i used the oracle 10g streams for EBS schemas like APPS, GL ,INV, PO, ONT, ODM, AR, AP, CM etc?
    Please provide us the above related env docs and road Map.
    If you have any other way to create the Report Server?
    Regard,
    Fayaz Ahmed

    Hi,
    We are not in a position to upgrade the EBS from 12.0.6 to 12.1, because this is lengthy task, but we had already tested technically it in test env, but functional testing in pending.
    Now we want to immediate solution if possible, because this is production?
    So, please suggest another.
    regards

Maybe you are looking for