CSSC 4.05 and CTA 2.0.14

Hi,
Does anyone use 802.1x in combination with NAC framework and see 'invalid protocol data' messages in ACS (4.01)?
We see this appear when we run it in parallel, when we deactivate the NAC policy in ACS or shut down the CTA services om the client PC 802.1x it works ok.

Yes, we are having it on one XP. It was working before, but suddenly it stopped working. We uninstalled nad re-installed, but with no luck. Cisco CTA has no answer yet.
ACS SE : 4.0(1)
CTA: 4.0.2(4423)
thanks,
Audie

Similar Messages

  • IAS and CTA 802.1x wired client?

    Hi,
    We have IAS working with 802.1X authentication. All is good except when we enable dynamic VLAN assignment we come across the Winlogon issue as per MS KB article 935638.
    We do however have available the CTA 802.1X wired client. From what I have read though it requires ACS due to use of EAP-FAST. Is this correct or is there some way I can get CTA 802.1X wired client working with MS IAS RADIUS?
    Thank you

    You will have to use ACS for authenticating using EAP-FAST for CTA 802.1x wired clients. It is not possible to get CTA 802.1X wired client working with MS IAS RADIUS.

  • CTD and CTA Practice Exams

    CTD (Certified TestStand Developer):
    http://www.teststandhelp.com/CTDPracticeExam/
    CTA (Certified TestStand Architect:
    http://www.teststandhelp.com/CTAPracticeExam/
    Enjoy,

    Thank you so much for this.
    I was kinda surprised NI didnt provide an example CTD exam.
     

  • Can a GPIB232CVA be converted to a CTA?

    I have a GPIB232CVA and require mode "S". It appears that the only diffrence between the CVA and CTA is the firmware. Is it possible to change the firmware in my CVA so that it acts like a CVT and provides mode "S"?

    Hello,
    There are more differences between the CV-A and the CT-A than just the firmware. Unfortunately, "S" mode is not supported with the CV-A because the CV-A cannot act as a controller on the GPIB.
    Scott B.
    Applications Engineer
    National Instruments

  • Cta 2.0.1 - wireless enviroment?

    Hi, currently we are implementing a NAC (framework) lab on a customer. So far, with dot1x and cta 2.0.1 we have no problems. My issue is we started testing with wireless, cta is no good for it, we started using cisco secure services client, but somehow it does authenticate but we do not get posture validation, I read a CCO document stating that we had to load the Cisco secure services client with CTA (without supplicant), that did not work, Any suggestions?!!
    Thanks a lot for your time!!

    Complete these steps:
    1. Make sure that traffic flows properly through the firewall before you configure auth-proxy.
    2. For minimum disruption of the network during testing, modify the existing access list to deny access to one test client.
    3. Make sure the one test client cannot get through the firewall and that the other hosts can get through.
    4. Turn on debug with exec-timeout 0 0 under the console port or virtual type terminals (VTYs), while you add the auth-proxy commands and tes

  • ACS NAC and VPN

    I am trying to set up NAC using ACS 4.1 and a VPN concentrator 3015 using 4.7.2K. I have had it working before using 3.3 and 4.0, but had to wipe out my server because of some issues. This is all in test, but I would like to complete this soon.
    Is there some document out there that will allow me to see examples of this setup? I have googled it and checked on Cisco, but the examples are normally IOS specific. Any help would be appreciated.
    Thanks
    Dwane

    Refer to the link to the NAC Phase One whitepaper which is the best guide to configuring NAC at the moment.
    The document was released prior to NAC introduction on the VPN concentrator, but all the ACS and CTA configuration is valid.
    http://www.cisco.com/application/pdf/en/us/guest/netsol/ns466/c654/cdccont_0900aecd80217e26.pdf
    also refer these links to know more info about VPN concentrator with NAC:
    http://www.cisco.com/warp/public/471/vpn3k-nac-config-471.html
    http://www.cisco.com/en/US/products/hw/vpndevc/ps2284/products_configuration_guide_chapter09186a00803ee22f.html#wp1652431

  • CTA Not Detected

    I have been banging my head with this. I am attempting to set up a NAC test environment. I have ACS 4.0 running and configured, a Trend Polict Server running and configured and a 2811 with version 12.4(3a) advanced security. I have an end-station running XP Pro SP 2, CTA 2.0 with 802.1x client.
    CTA is not being detected on the end-device. I have tried CTA v1.0.55, CTA 2.0.0.30 and two different workstations. There is no firewall running on the end machine, it is simply XP Pro, SP2 and CTA, nothing else and I stopped the firewall service built into XP.
    Attached is my router config in regard to NAC and also a debug output.
    From the end of the debug output I get connected via my 'clientless' config. Any input would be appreciated.

    kevin, you have to permit always by default access-list trafic to the ACS and to Antivirus server, for example officcescan working in the port 8080 (this is if you have a problem, and the machine was blocked, this machine can access to the antivirus server to solve the problem installing or upgrading the software).
    I hve the same problem with CTA 2, Try deploying the CTA 1 agent from the officescan console. You have to install the certificate first (always from the officescan web console).
    you can enable debug in the workstation, look the file ctalog....
    Cisco Trust Agent Version 1.0.53.0
    Copyright © 2003 Cisco Systems, Inc. All Rights Reserved. Trust Agent Type(s):
    Windows, WinNT Running on: 5.0.2195
    1 16:21:43.809 09/21/2005 Sev=Warning/3 NetTrans/0xA3100014
    EAPoUDP session 7: Invalid message ID, expecting: 0xb2dbb99d, received 0xb2dbb99b
    2 16:22:22.028 09/21/2005 Sev=Info/5 PEAP/0x63400009
    PEAP module initialization success!
    3 16:22:22.059 09/21/2005 Sev=Info/5 PEAP/0x6340000B
    PEAP processing begun
    4 16:22:22.075 09/21/2005 Sev=Info/4 EAPTLV/0x63500005
    Begin EAP-TLV processing
    5
    take care. Leo [email protected]

  • CTA 2.0.1.14 with 802.1x login slow

    I'm testing 802.1x with a Cisco 2950 switch with image c2950-i6q4l2-mz.121-22.EA4.bin and CTA ver 2.0.1.14 with 802.1x supplicant.
    Everything works fine, including single sign on. However, I noticed a long delay after providing the login credentials and loading the personal settings after logon. There's some hard disk activity during the process. When I revert to MS 802.1x, I don't have this problem.
    Are there any settings that I need to do to speed up the login process?
    Thank you.

    show us the results

  • How do I post data in HTML fields

    Hi.
    I need to log onto a web server from LabVIEW 7.1. I have this working in VB, but I don't know how to use the Microsoft Web Browser ActiveX object (specifically how to find the types of some variants).
    In VB, I'd do the following to post data into two fields and click a button:
    WebBrowser1.Document.frames(1).loginform.UserName.Value = "username"
    WebBrowser1.Document.frames(1).loginform.Password.Value = "password"
    WebBrowser1.Document.frames(1).loginform.Item(2).Click
    From the web browser object in LV I can navigate to the URL, and decode the Document variant which seems to be of type MSHTML.DispHTMLDocument. How do I proceed from here? How do I access the different frames, forms, data fields and buttons on the web page?
    Since variants in LabVIEW carry type descriptors internally, it'd be nice to have some way to access this so I wouldn't have to guess what object prototype to convert the variant with.
    Regards
    Steen Schmidt
    CLA and CTA. Worked with LabVIEW from 4.0 to 2010 and counting...

    Hi Steen,
    I was workin in an application of accessing frames, forms and then buttons in web pages in background...
    In labview there was a problem in the MSHTMLDocument.frames functions and so will not be able to get the frames ..
    but it is possible to access forms in a page directly...i have an eg for searchin in google..(i have attached the vi)
    I need to know whether it is possible in VB to go to a particular frame in a page and then if the frame has a form i need to login in form in that frame...
    Could you please share me the code in VB (for the same)..so that it would be helpful for me...and also is it possible to make dll in vb and use in other enviorment like VC++..
    REGARDS
    vevek
    Attachments:
    autologin.vi ‏67 KB

  • A more efficient way to assure that a string value contains only numbers?

    Hi ,
    I'm using Oracle 9.2.0.6.
    I was curious to know if there was any way I could write a more efficient query to determine if a string value contains only numbers.
    Here's my current query. This SQL is from a sub query in a Join clause.
    select distinct cta.CUSTOMER_TRX_ID, to_number(cta.SALES_ORDER) SALES_ORDER
                from ra_customer_trx_lines_all cta
                where length(cta.SALES_ORDER) = 6
                and cta.SALES_ORDER is not null
                and substr(cta.SALES_ORDER,1,1) in('1','2','3','4','5','6','7','8','9','0')
                and substr(cta.SALES_ORDER,2,1) in('1','2','3','4','5','6','7','8','9','0')
                and substr(cta.SALES_ORDER,3,1) in('1','2','3','4','5','6','7','8','9','0')
                and substr(cta.SALES_ORDER,4,1) in('1','2','3','4','5','6','7','8','9','0')
                and substr(cta.SALES_ORDER,5,1) in('1','2','3','4','5','6','7','8','9','0')
                and substr(cta.SALES_ORDER,6,1) in('1','2','3','4','5','6','7','8','9','0')This is a string where I'm finding A-Z-a-z characters and '/' and '-' characters in all 6 positions, plus there are values that are longer than 6 characters. That's what the length(cta.SALES_ORDER) = 6 is for. Also, of course. some cells are NULL.
    So the question is, is there a more efficient way to screen out only the values in this field that are 6 character numbers or is what I have the best I can do?
    Thanks,

    I appreciate all of your very helpfull workarounds. The cost is a little better in all cases than my original where clause.
    To address the discussion that's popped up about design from this question, I can say a few things that should clear , at least, my situation up.
    First of all this custom quoting , purchase order , and sales order entry system WAS written by a bunch a of 'bad' coders who didn't document their work and then left. We don't even have an ER diagram
    The whole project that I'm only a small part of is literally trying to put Humpty Dumpty together again and then move it from a bad custom solution into Oracle Applications.
    We're rebuilding, documenting, and doing ETL. This is one of your prototypical projects from hell.
    It's a huge database project so we're taking small bites as a time. Hopefully, somewhere right before Armageddon hits, this thing will be complete.
    But until then,..., well,..., you know the drill.
    Thanks Again.

  • Issue with case when try to modify the siimple query

    Hello PL/SQL Gurus/Experts,
    I am stuck with an issue (could be simple) but not gettings any headsway -
    select 365/day_num_yr Anul_Fact from Date where date_dt = trunc(sysdate -1) value returns is as - 1.46
    need to write this in the form of case (as i need to multiply this to some other outer query), i want to store it ina variable and and then use the same in outer one -
    but when use the following then it is always returning the value as 0 and not the same output as returned by the above query without case.
    select (case when date_dt =trunc(sysdate -1) then 365/day_num_yr else 0 END) Anul_Fact Kindly help, i appericate your time and effort in advance.

    Thanks for providing the Drop table and CTAS script. It eased the job of creating sample data;
    I only used few data from the table:
    drop table T4;
    create table T4(day_num_yr, date_dt) as
    select 249, to_date('09/05/2012', 'MM/DD/YYYY') from dual union all
    select 250, to_date('09/06/2012', 'MM/DD/YYYY') from dual union all
    select 251, to_date('09/07/2012', 'MM/DD/YYYY') from dual union all
    select 252, to_date('09/08/2012', 'MM/DD/YYYY') from dual;
    select date_dt, sysdate - 1 prev_dt, trunc(sysdate - 1) trunc_prev_dt,
           case when date_dt = trunc(sysdate - 1) then 365 / day_num_yr
                else 0
           end num_day
      from t4;
    DATE_DT                   PREV_DT                   TRUNC_PREV_DT             NUM_DAY               
    05-SEP-12                 06-SEP-12                 06-SEP-12                 0                     
    06-SEP-12                 06-SEP-12                 06-SEP-12                 1.46                  
    07-SEP-12                 06-SEP-12                 06-SEP-12                 0                     
    08-SEP-12                 06-SEP-12                 06-SEP-12                 0See the output. For Date_DT as 6-Sep, i.e. a Day before Today, we are getting the Output, but for other dates we are not.
    One another suggestion I would like to make is, (assuming) you are using the Table only for storing the Current day of Year and not including Public Holidays etc. then you can use a 'DDD' format model to get the Current Day of year starting 1 Jan.
    Something like below:
    select date_dt, sysdate - 1 prev_dt, trunc(sysdate - 1) trunc_prev_dt,
           case when date_dt = trunc(sysdate - 1) then 365 / to_char(date_dt, 'DDD')
                else 0
           end num_day
      from t4;

  • How to fix tables created with wrong initial extents

    1.We have many tables which are created with very large intial extents. Is there a way to reduce or resize initial extent?
    2.When I export the *.dmp is about 200MG, but the tablespace is more than a gig full. Why is that?
    3.I have a table with about 300,000 rows and calculated the table size to be around 86M. Should I create the initial extent here to be around 100M?
    4.I tried to do alter table ExampleTable deallocate unused, but did not help why is that?
    OBJECT_NAME = EMP
    TOTAL_BLOCKS = 16296
    TOTAL_BYTES = 133496832
    UNUSED_BLOCKS = 4915
    UNUSED BYTES = 40263680
    LAST_USED_EXTENT_FILE_ID = 9
    LAST_USED_EXTENT_BLOCK_ID = 23250
    LAST_USED_BLOCK = 11381
    PL/SQL procedure successfully completed.
    SQL> analyze table ibs_spec_value compute statistics;
    Table analyzed.
    SQL> select empty_blocks, empty_blocks*8192 unused_bytes
    2 from dba_tables
    3 where table_name='IBS_SPEC_VALUE' and owner='SPEC';
    EMPTY_BLOCKS UNUSED_BYTES
    4915 40263680
    SQL> ALTER TABLE SPEC.IBS_SPEC_VALUE DEALLOCATE UNUSED;
    Table altered.
    SQL> select empty_blocks, empty_blocks*8192 unused_bytes
    2 from dba_tables
    3 where table_name='IBS_SPEC_VALUE' and owner='SPEC';
    EMPTY_BLOCKS UNUSED_BYTES
    4915 40263680
    Thank you,
    Avanti.

    1.We have many tables which are created with very large intial extents. Is there a way to reduce or resize initial extent?
    export/import and CTAS.
    2.When I export the *.dmp is about 200MG, but the tablespace is more than a gig full. Why is that?
    Probably it is due of inefficient on managing the objects, which are heavily taken by tables/indexes. Tables/indexes were created oversize than estimation of data size.
    3.I have a table with about 300,000 rows and calculated the table size to be around 86M. Should I create the initial extent here to be around 100M?
    Yes, it is possible. Usually split into 2-5 extents is better.
    4.I tried to do alter table ExampleTable deallocate unused, but did not help why is that?
    OBJECT_NAME = EMP
    TOTAL_BLOCKS = 16296
    TOTAL_BYTES = 133496832
    UNUSED_BLOCKS = 4915
    UNUSED BYTES = 40263680
    LAST_USED_EXTENT_FILE_ID = 9
    LAST_USED_EXTENT_BLOCK_ID = 23250
    LAST_USED_BLOCK = 11381
    PL/SQL procedure successfully completed.
    SQL> analyze table ibs_spec_value compute statistics;
    Table analyzed.
    SQL> select empty_blocks, empty_blocks*8192 unused_bytes
    2 from dba_tables
    3 where table_name='IBS_SPEC_VALUE' and owner='SPEC';
    EMPTY_BLOCKS UNUSED_BYTES
    4915 40263680
    SQL> ALTER TABLE SPEC.IBS_SPEC_VALUE DEALLOCATE UNUSED;
    Table altered.
    SQL> select empty_blocks, empty_blocks*8192 unused_bytes
    2 from dba_tables
    3 where table_name='IBS_SPEC_VALUE' and owner='SPEC';
    EMPTY_BLOCKS UNUSED_BYTES
    4915 40263680
    The next paragraph is guoted from Oracle documentation :
    "Use the deallocate_unused_clause to explicitly deallocate unused space at the end of the table, partition or subpartition, overflow data segment, LOB data segment, or LOB index and makes the space available for other segments in the tablespace. You can free only unused space above the high water mark (that is, the point beyond which database blocks have not yet been formatted to receive data)".
    Most probably on your case there is no unused block over the last used block on this table. So the deallocate function doesn't give any effect. As you described, the last used block is 11381 which is get from TOTAL_BLOCKS minus UNUSED_BLOCKS.

  • ORA-01861: literal does not match format string

    Hi Experts,
    Whenever i am running the my procedure in oracle appliactions i am getting this error.
    ORA-01861: literal does not match format string .
    pkg is below:--->
    CREATE OR REPLACE PACKAGE Arc0471_Pending_Crc_Prc_Pkg IS
      --Insert into Custom Table
        PROCEDURE Arc_Insert_Data(P_ORG_ID VARCHAR2, P_BC_CODE VARCHAR2, P_GL_DATE VARCHAR2, P_DB_LINK VARCHAR2);
    END Arc0471_Pending_Crc_Prc_Pkg;
    CREATE OR REPLACE PACKAGE BODY Arc0471_Pending_Crc_Prc_Pkg IS
            PROCEDURE Arc_Insert_Data(P_ORG_ID VARCHAR2, P_BC_CODE VARCHAR2, P_GL_DATE VARCHAR2, P_DB_LINK VARCHAR2)
            IS
              v_val         varchar2(32000);          
              v_cursor1     integer;
              v_cursor2     integer;
              v_returncode  integer;
            BEGIN
           v_val   := ' ';
            v_val :=' INSERT INTO ARC.ARC_CRC_PRC_INVC ';
              v_val := v_val||' (CTA_TRX_NUMBER ,CTA_TRX_DATE ,DUE_DATE ,';
              v_val := v_val||' BILL_TO_CUSTOMER_NO,     BILL_TO_CUSTOMER_NAME ,     BILL_TO_LOCATION ,';
              v_val := v_val||' BILL_TO_ADDRESS ,ORIGINAL_AMOUNT ,APPLIED_AMOUNT , EXCHANGE_RATE     ,';
              v_val := v_val||' INVOICE_CURRENCY_CODE , ACCOUNT_CLASS , GL_DATE  , CTA_CUSTOMER_TRX_ID ,';
              v_val := v_val||' ORG_ID , CREATED_BY , CREATION_DATE ,LAST_UPDATE_BY , LAST_UPDATE_DATE , LAST_UPDATE_LOGIN )';
            v_val := v_val||' SELECT  CTA.TRX_NUMBER ,     CTA.TRX_DATE , APS.DUE_DATE ,';
              v_val := v_val||' HCA.ACCOUNT_NUMBER ,     HP.PARTY_NAME ,     HCSUA.LOCATION ,';
              v_val := v_val||' SUBSTR(HL.ADDRESS1 ||'||''' '''||'|| HL.ADDRESS2 ||'||'''  '''|| '||HL.ADDRESS3||'||'''  '''|| '||HL.ADDRESS4|| '||'''  ''' ||'||HL.PROVINCE||'||'''  '''||'|| HL.CITY ||'||'''  '''||'|| HL.STATE ||'||'''  '''||'|| HL.POSTAL_CODE ||'||'''  '''||'||FTL.TERRITORY_SHORT_NAME,0,1500),';
              v_val := v_val||' APS.AMOUNT_DUE_ORIGINAL , APS.AMOUNT_APPLIED,APS.EXCHANGE_RATE, APS.INVOICE_CURRENCY_CODE, CTLA.ACCOUNT_CLASS,';
              v_val := v_val||' APS.GL_DATE , CTA.CUSTOMER_TRX_ID , CTA.ORG_ID ,FND_GLOBAL.USER_ID ,';
              v_val := v_val||' SYSDATE , FND_GLOBAL.USER_ID , SYSDATE , FND_GLOBAL.LOGIN_ID '  ;  
             v_val := v_val||' FROM ' ;
             v_val := v_val||' AR.RA_CUSTOMER_TRX_ALL CTA,';
              v_val := v_val||' AR.RA_CUST_TRX_TYPES_ALL CTTA,';
              v_val := v_val||' AR.RA_CUST_TRX_LINE_GL_DIST_ALL CTLA,';
              v_val := v_val||' AR.HZ_PARTIES HP,';
              v_val := v_val||' AR.HZ_CUST_ACCOUNTS HCA,';
              v_val := v_val||' AR.HZ_CUST_SITE_USES_ALL HCSUA,';
              v_val := v_val||' AR.HZ_LOCATIONS HL,';
              v_val := v_val||' AR.HZ_PARTY_SITES HPS,';
              v_val := v_val||' AR.AR_PAYMENT_SCHEDULES_ALL APS,';
              v_val := v_val||' AR.HZ_CUST_ACCT_SITES_ALL HCASA,';
              v_val := v_val||' GL.GL_CODE_COMBINATIONS GCC,';
              v_val := v_val||' AR.AR_RECEIVABLE_APPLICATIONS_ALL ARAA,';
              v_val := v_val||' APPLSYS.FND_TERRITORIES_TL FTL ,';
              v_val := v_val||' ONT.OE_TRANSACTION_TYPES_TL'|| P_DB_LINK ||' IND_OTT, ' ;
              v_val := v_val||' ONT.OE_ORDER_HEADERS_ALL'||P_DB_LINK ||'  IND_OH, ';
              v_val := v_val||' AR.RA_CUSTOMER_TRX_ALL'||P_DB_LINK ||' IND_RCTA   ';
             v_val := v_val||' WHERE   CTA.ORG_ID = '||''''|| P_ORG_ID||'''';
             v_val := v_val||' AND   CTTA.ORG_ID = '||''''|| P_ORG_ID||'''' ;
             v_val := v_val||' AND   CTLA.ORG_ID = '||''''|| P_ORG_ID||'''' ;
             v_val := v_val||' AND   HCSUA.ORG_ID = '||''''|| P_ORG_ID||'''' ;
             v_val := v_val||' AND   APS.ORG_ID =  '||''''||P_ORG_ID||'''';
             v_val := v_val||' AND   HCASA.ORG_ID = '||''''|| P_ORG_ID||'''' ;
             v_val := v_val||' AND   CTLA.ACCOUNT_CLASS     =     '||'''REC''';
              v_val := v_val||' AND   CTLA.GL_DATE <= TRUNC(TO_DATE( '||''''||P_GL_DATE||''''||','||'''DD/MM/RRRR HH24:MI:SS'''||'))';
             v_val := v_val||' AND   NVL(ARAA.APPLY_DATE,TO_DATE( '||''''||P_GL_DATE||''''||','||'''DD/MM/RRRR HH24:MI:SS'''||')) <= TRUNC(TO_DATE ('||''''||P_GL_DATE||''''||','||'''DD/MM/RRRR HH24:MI:SS'''||'))';
             v_val := v_val||' AND   TO_DATE(APS.TRX_DATE,'||'''DD-MON-RRRR'''||') >'|| '''02-SEP-2007''' ;
             v_val := v_val||' AND     CTA.CUST_TRX_TYPE_ID    =     CTTA.CUST_TRX_TYPE_ID';
             v_val := v_val||' AND     CTLA.CUSTOMER_TRX_ID     =     CTA.CUSTOMER_TRX_ID';
             v_val := v_val||' AND     HCA.CUST_ACCOUNT_ID     =     CTA.BILL_TO_CUSTOMER_ID';
             v_val := v_val||' AND     HCA.PARTY_ID          =     HP.PARTY_ID';
             v_val := v_val||' AND     HCSUA.SITE_USE_ID     =     CTA.BILL_TO_SITE_USE_ID';
             v_val := v_val||' AND     HL.LOCATION_ID          =     HPS.LOCATION_ID';
             v_val := v_val||' AND     HPS.PARTY_ID          =     HCA.PARTY_ID';
               v_val := v_val||' AND     APS.CUSTOMER_TRX_ID     =     CTLA.CUSTOMER_TRX_ID';
             v_val := v_val||' AND     HCASA.CUST_ACCOUNT_ID     =     HCA.CUST_ACCOUNT_ID';
             v_val := v_val||' AND   HCASA.CUST_ACCT_SITE_ID =HCSUA.CUST_ACCT_SITE_ID';
             v_val := v_val||' AND   HCASA.PARTY_SITE_ID=HPS.PARTY_SITE_ID';
             v_val := v_val||' AND     ARAA.APPLIED_CUSTOMER_TRX_ID(+) = CTA.CUSTOMER_TRX_ID';
             v_val := v_val||' AND   IND_RCTA.TRX_NUMBER = CTA.TRX_NUMBER';
             v_val := v_val||' AND     TO_CHAR(IND_OH.ORDER_NUMBER) = IND_RCTA.CT_REFERENCE';
             v_val := v_val||' AND     IND_OTT.TRANSACTION_TYPE_ID = IND_OH.ORDER_TYPE_ID';
              --v_val := v_val||' AND   ARC.Arc0463_Get_Remng_Amt(APS.TRX_NUMBER,'||''''|| P_GL_DATE||''''||','||'APS.INVOICE_CURRENCY_CODE) <> 0';
             v_val := v_val||' AND   IND_OTT.NAME IN ('||'''D0M RC Imported Sale'''||','||'''D0M RC Indigenous Sale'''||')';
             v_val := v_val||' AND   GCC.CODE_COMBINATION_ID = CTLA.CODE_COMBINATION_ID';
             v_val := v_val||' AND   GCC.SEGMENT1 = '|| ''''||P_BC_CODE||'''';
             v_val := v_val||' AND   HL.COUNTRY = FTL.TERRITORY_CODE';
             v_val := v_val||' AND   FTL.LANGUAGE = USERENV('||'''LANG'''||')';          
                v_cursor1 := dbms_sql.open_cursor;
              dbms_sql.parse(v_cursor1,v_val,DBMS_SQL.NATIVE);
              v_returncode := dbms_sql.execute(v_cursor1);
              dbms_sql.close_cursor(v_cursor1);
         COMMIT;
         EXCEPTION     
                    WHEN DUP_VAL_ON_INDEX THEN
                                    NULL;
                   WHEN OTHERS THEN
                        COMMIT;
                   FND_FILE.PUT_LINE(FND_FILE.OUTPUT, 'IN WHEN OTHERS THEN OF INSERT INTO ARC.ARC_CRC_PRC_INVC'||SQLCODE || ' - ' || SQLERRM);
                -- dbms_output.put_line(sqlcode||sqlerrm);
            END Arc_Insert_Data;
    END Arc0471_Pending_Crc_Prc_Pkg;in above procdure APS.TRX_DATE having the format like this..23/3/2006. in Backend this procedure is working fine ..in toad(version 8.0.0.47). database is 9.0.
    but in oracle apps it is giving error like "literal does not match format string".
    please give me the solution...
    Thanks in ADv...

    Hi,
    It is the Date Data type...There's your problem then; NEVER, EVER, EVER to_date a date!! As you have discovered, it leads to problems when your code is run on different clients due to the different NLS settings they may have. You've been lucky, in other words, that your code has been working at all!
    What to_dating a date does is this:
    to_date(to_char(date_value, <format in NLS_DATE_FORMAT parameter>), <format in NLS_DATE_FORMAT parameter>) You've been lucky because your NLS_DATE_FORMAT has the same format as the data, on your client. On the database, however, it is clearly different.
    Simply remove the to_date from your already-a-date value, and you should find that it works fine.

  • Query is running very slow when consulting history data in EBS

    SELECT *
      FROM (select NVL(TO_CHAR(aps.vendor_id), 'SIN PROVEEDOR') CODIGO,
                   NVL(aps.vendor_name, 'SIN PROVEEDOR') PROVEEDOR,
                   null IMPORTE_TRANSACCIONAL,
                   SUM(nvl(CTL.GROSS_EXTENDED_AMOUNT, CTL.EXTENDED_AMOUNT) *
                       NVL(Cta.EXCHANGE_RATE, 1)) IMPORTE_FUNCIONAL
              from ra_customer_trx_all cta,
                   ra_cust_trx_types_all ctt,
                   ra_customer_trx_lines_all ctl,
                   mtl_system_items_b inv,
                   hz_cust_accounts ca,
                   hz_parties p,
                   AR_CUSTOMERS ac,
                   hz_cust_acct_sites_all hcca,
                   hz_cust_site_uses_all hcsua,
                   RA_TERRITORIES rt,
                   Jtf_Rs_Salesreps vend,
                   gl_code_combinations glc,
                   ap_suppliers aps,
                   (select paa.item_id, paa.vendor_id
                      from PO_ASL_ATTRIBUTES paa, PO_APPROVED_SUPPLIER_LIST PASL
                     where Paa.Asl_Id = PASL.Asl_Id(+)
                       and pasl.disable_flag is null) paa2
             where CTA.cust_trx_type_id = ctt.cust_trx_type_id
               and ctl.customer_trx_id = cta.customer_trx_id
               and ctl.Inventory_Item_Id = inv.inventory_item_id(+)
               and ctt.gl_id_rec = glc.code_combination_id
               and ca.cust_account_id = cta.bill_to_customer_id
               and p.party_id = ca.party_id
               and ac.CUSTOMER_ID = cta.bill_to_customer_id
               and hcca.cust_account_id = ca.cust_account_id
               and hcca.org_id = '82'
               and hcsua.site_use_id = cta.bill_to_site_use_id
               and hcsua.cust_acct_site_id = hcca.cust_acct_site_id
               and hcsua.org_id = '82'
               and rt.territory_id(+) = hcca.territory_id
               and cta.primary_salesrep_id = vend.salesrep_id(+)
               and inv.organization_id = '84'
               and paa2.vendor_id = aps.vendor_id(+)
               and ctl.inventory_item_id = paa2.item_id(+)
               AND CTT.TYPE IN ('INV', 'CM')
               and ca.cust_account_id(+) = cta.bill_to_customer_id
               and p.party_id(+) = ca.party_id
               and ctl.Line_Type = 'LINE'
               and cta.complete_flag = 'Y'
               and cta.status_trx not in ('VD')
               and cta.legal_entity_id = '23274'
               and cta.trx_date between to_Date('01/10/2014', 'dd/MM/yyyy') AND
                   to_Date('13/10/2014', 'dd/MM/yyyy')
             group by aps.vendor_id, aps.vendor_name
            UNION
            select 'SIN ITEM' CODIGO,
                   'SIN ITEM' PROVEEDOR,
                   null IMPORTE_TRANSACCIONAL,
                   SUM(nvl(CTL.GROSS_EXTENDED_AMOUNT, CTL.EXTENDED_AMOUNT) *
                       NVL(Cta.EXCHANGE_RATE, 1)) IMPORTE_FUNCIONAL
              from ra_customer_trx_all       cta,
                   ra_cust_trx_types_all     ctt,
                   ra_customer_trx_lines_all ctl,
                   hz_cust_accounts          ca,
                   hz_parties                p,
                   AR_CUSTOMERS              ac,
                   hz_cust_acct_sites_all    hcca,
                   hz_cust_site_uses_all     hcsua,
                   RA_TERRITORIES            rt,
                   Jtf_Rs_Salesreps          vend,
                   gl_code_combinations      glc
             where CTA.cust_trx_type_id = ctt.cust_trx_type_id
               and ctl.customer_trx_id = cta.customer_trx_id
               and ctl.Inventory_Item_Id is null
               and ctt.gl_id_rec = glc.code_combination_id
               and ca.cust_account_id = cta.bill_to_customer_id
               and p.party_id = ca.party_id
               and ac.CUSTOMER_ID = cta.bill_to_customer_id
               and hcca.cust_account_id = ca.cust_account_id
               and hcca.org_id = '82'
               and hcsua.site_use_id = cta.bill_to_site_use_id
               and hcsua.cust_acct_site_id = hcca.cust_acct_site_id
               and hcsua.org_id = '82'
               and rt.territory_id(+) = hcca.territory_id
               and cta.primary_salesrep_id = vend.salesrep_id(+)
               AND CTT.TYPE IN ('INV', 'CM')
               and ca.cust_account_id(+) = cta.bill_to_customer_id
               and p.party_id(+) = ca.party_id
               and ctl.Line_Type = 'LINE'
               and cta.complete_flag = 'Y'
               and cta.status_trx not in ('VD')
               and cta.legal_entity_id = '23274'
               and cta.trx_date between to_Date('01/10/2014', 'dd/MM/yyyy') AND
                   to_Date('13/10/2014', 'dd/MM/yyyy')
             group by 'SIN ITEM', 'SIN ITEM') T_GRUPO
    order by DECODE(T_GRUPO.PROVEEDOR,
                     'SIN ITEM',
                     'A',
                     'SIN PROVEEDOR',
                     'A',
                     T_GRUPO.PROVEEDOR)

    Hi Hussein,
    APP 12.1.3
    Database 11.2.0.3.0
    SO linux x86-64
    stadistics: 0ne month ago 
    this  slowness is from three months ago
    Execution Plan
    | Id  | Operation                                                  | Name                                  | Rows  | Bytes | Cost (%CPU)|
    |   0 | SELECT STATEMENT                                 |                                          |      2 |   318 | 12680   (1)|
    |   1 |  SORT ORDER BY                                      |                                          |      2 |   318 | 12680   (1)|
    |   2 |   VIEW                                                        |                                          |      2 |   318 | 12679   (1)|
    |   3 |    SORT UNIQUE                                          |                                         |      2 |   697 | 12679  (51)|                                      
    |   4 |     UNION-ALL                                              |                                          |        |            |               |                                
    |   5 |      HASH GROUP BY                                   |                                           |      1 |   377 |  6338   (1)|                                      
    |   6 |       NESTED LOOPS OUTER                        |                                            |      1 |   377 |  6336   (1)|                                      
    |   7 |        NESTED LOOPS OUTER                       |                                           |      1 |   343 |  6336   (1)|                                      
    |   8 |         NESTED LOOPS                                 |                                              |      1 |   328 |  6335   (1)|                                      
    |   9 |          NESTED LOOPS                                |                                              |      1 |   323 |  6335   (1)|                                      
    |  10 |           NESTED LOOPS OUTER                 |                                                 |      1 |   311 |  6333   (1)|                                      
    |  11 |            NESTED LOOPS                           |                                                    |      1 |   304 |  6332   (1)|                                      
    |  12 |             NESTED LOOPS                          |                                                  |      1 |   296 |  6332   (1)|                                      
    |  13 |              NESTED LOOPS                        |                                                   |      1 |   275 |  6329   (1)|                                      
    |* 14 |               HASH JOIN                               |                                                   |      1 |   192 |  6328   (1)|                                      
    |* 15 |                HASH JOIN                    |                                                              |  6493 |   450K|  5778   (1)|                                       
    |* 16 |                 HASH JOIN                   | |                                                              6493 |   367K|  5432   (1)|                                       
    |* 17 |        TABLE ACCESS BY INDEX ROWID | RA_CUSTOMER_TRX_ALL                  |  6556 |   288K|  4635   (1)|                                       
    |* 18 |                   INDEX RANGE SCAN          | RA_CUSTOMER_TRX_N5                     | 26223 |        |    97   (2)|                                      
    |* 19 |                  TABLE ACCESS FULL          | HZ_CUST_SITE_USES_ALL                  | 40227 |   510K|   797   (3)|                                       
    |* 20 |                 TABLE ACCESS FULL           | HZ_CUST_ACCT_SITES_ALL                  | 20020 |   254K|   345   (3)|                                       
    |  21 |                TABLE ACCESS FULL            | HZ_CUST_ACCOUNTS                             | 40020 |  4728K|   549   (3)|                                       
    |* 22 |               INDEX UNIQUE SCAN             | HZ_PARTIES_U1                                       |      1|                  |     0   (0)|                                       
    |* 23 |       TABLE ACCESS BY INDEX ROWID    | RA_CUSTOMER_TRX_LINES_ALL           |     1 |    21      |     3   (0)|                                       
    |* 24 |               INDEX RANGE SCAN              | RA_CUSTOMER_TRX_LINES_N2                |      4 |            |     2   (0)|                                      
    |* 25 |             INDEX UNIQUE SCAN               | MTL_SYSTEM_ITEMS_B_U1                      |      1 |     8      |     0   (0)|                                      
    |* 26 |            INDEX RANGE SCAN                 | JTF_RS_SALESREPS_U1                           |      1 |     7      |     1   (0)|                                      
    |* 27 |           TABLE ACCESS BY INDEX ROWID       | RA_CUST_TRX_TYPES_ALL              |      1 |    12      |     2   (0)|                                      
    |* 28 |            INDEX RANGE SCAN                 | RA_CUST_TRX_TYPES_U1                           |      1 |            |     1   (0)                                       
    |* 29 |          INDEX UNIQUE SCAN                  | GL_CODE_COMBINATIONS_U1                     |      1 |     5      |     0   (0)|                                      
    |  30 |         VIEW PUSHED PREDICATE               |                                                                |      1 |    15      |     1   (0)|                                      
    |* 31 |          FILTER                             |                                                                                 |        |       |            |                                      
    |  32 |           NESTED LOOPS OUTER                  |                                                                 |      1 |    54      |     1   (0)|                                      
    |  33 |            TABLE ACCESS BY INDEX ROWID      | PO_ASL_ATTRIBUTES                          |      1 |    39      |     1   (0)|                                      
    |* 34 |             INDEX SKIP SCAN                              | PO_ASL_ATTRIBUTES_N1                    |      1 |               |     1   (0)|                                      
    |  35 |            TABLE ACCESS BY INDEX ROWID    | PO_APPROVED_SUPPLIER_LIST           |     1      |    15     |     0   (0)|                                       
    |* 36 |             INDEX UNIQUE SCAN                      | PO_APPROVED_SUPPLIER_LIST_U1        |     1      |              |     0   (0)|                                       
    |  37 |        TABLE ACCESS BY INDEX ROWID        | AP_SUPPLIERS                                       |      1      |    34       |     0   (0)|                                      
    |* 38 |         INDEX UNIQUE SCAN                         | AP_SUPPLIERS_U1                                    |      1      |              |     0   (0)|                                      
    |  39 |      SORT GROUP BY NOSORT                   |                                                               |      1 |   320           |  6341   (1)|                                      
    |  40 |       NESTED LOOPS                          |                                                                       |        |                      |            |                                      
    |  41 |        NESTED LOOPS                         |                                                                        |      1 |   320           |  6340   (1)|                                      
    |  42 |         NESTED LOOPS                        |                                                                       |      1 |        299      |  6337   (1)|                                     
    |  43 |          NESTED LOOPS OUTER                 |                                                                  |      1 |   216           |  6336   (1)|                                      
    |* 44 |           HASH JOIN                         |                                                                              |      1 |   209      |  6335   (1)|                                      
    |* 45 |            TABLE ACCESS FULL                | HZ_CUST_ACCT_SITES_ALL                        | 20020  |   254K      |   345   (3)|                                      
    |* 46 |            HASH JOIN                        |                                                                           |  5819      |  1113K     |  5989   (1)|                                      
    |* 47 |             HASH JOIN                       |                                                                            |  5875      |   430K     |      5439   (1)|                                      
    |* 48 |              HASH JOIN                      |                                                                            |  5931      |   359K     |  4641   (1)|                                      
    |  49 |               NESTED LOOPS                  |                                                                       |     38      |   646      |     6   (0)|                                     
    |* 50 |                TABLE ACCESS FULL            | RA_CUST_TRX_TYPES_ALL                        |          38 |   456      |     6   (0)|                                     
    |* 51 |                INDEX UNIQUE SCAN            | GL_CODE_COMBINATIONS_U1                       |      1      |     5      |     0   (0)|                                     
    |* 52 |       TABLE ACCESS BY INDEX ROWID   | RA_CUSTOMER_TRX_ALL                              |  6556 |   288K |  4635   (1)|                                     
    |* 53 |                INDEX RANGE SCAN             | RA_CUSTOMER_TRX_N5                               | 26223    |        |    97   (2)|                                     
    |* 54 |              TABLE ACCESS FULL              | HZ_CUST_SITE_USES_ALL                         | 40227 |   510K |   797   (3)|                                     
    |  55 |             TABLE ACCESS FULL               | HZ_CUST_ACCOUNTS                                 | 40020 |  4728K |   549   (3)|                                     
    |* 56 |           INDEX RANGE SCAN                  | JTF_RS_SALESREPS_U1                             |      1      |     7      |     1   (0)|                                     
    |* 57 |          INDEX UNIQUE SCAN                  | HZ_PARTIES_U1                                             |       1      |       |     0   (0)|                                     
    |* 58 |         INDEX RANGE SCAN                    | RA_CUSTOMER_TRX_LINES_N2                     |      4      |         |     2   (0)|                                     
    |* 59 |        TABLE ACCESS BY INDEX ROWID          | RA_CUSTOMER_TRX_LINES_ALL           |     1       |    21     |     3   (0)|                                    
    Predicate Information (identified by operation id):
      14 - access("CUST"."CUST_ACCOUNT_ID"="CTA"."BILL_TO_CUSTOMER_ID" AND
                  "HCCA"."CUST_ACCOUNT_ID"="CUST_ACCOUNT_ID")
      15 - access("HCSUA"."CUST_ACCT_SITE_ID"="HCCA"."CUST_ACCT_SITE_ID")
      16 - access("HCSUA"."SITE_USE_ID"="CTA"."BILL_TO_SITE_USE_ID")
      17 - filter("CTA"."COMPLETE_FLAG"='Y' AND "CTA"."STATUS_TRX"<>'VD' AND "CTA"."                                                                            LEGAL_ENTITY_ID"=23274)
      18 - access("CTA"."TRX_DATE">=TO_DATE(' 2014-01-01 00:00:00', 'syyyy-mm-dd hh2                                                                             
    4:mi:ss') AND
                  "CTA"."TRX_DATE"<=TO_DATE(' 2014-10-13 00:00:00', 'syyyy-mm-dd hh2                                                                             
    4:mi:ss'))
      19 - filter("HCSUA"."ORG_ID"=82)
      20 - filter("HCCA"."ORG_ID"=82)
      22 - access("PARTY_ID"="PARTY_ID")
      23 - filter("CTL"."INVENTORY_ITEM_ID" IS NOT NULL AND "CTL"."LINE_TYPE"='LINE'                                                                             
      24 - access("CTL"."CUSTOMER_TRX_ID"="CTA"."CUSTOMER_TRX_ID")
      25 - access("CTL"."INVENTORY_ITEM_ID"="INV"."INVENTORY_ITEM_ID" AND "INV"."ORG                                                                             
    ANIZATION_ID"=84)
      26 - access("CTA"."PRIMARY_SALESREP_ID"="VEND"."SALESREP_ID"(+))
      27 - filter("CTT"."GL_ID_REC" IS NOT NULL AND ("CTT"."TYPE"='CM' OR "CTT"."TYP                                                                             
    E"='INV'))
      28 - access("CTA"."CUST_TRX_TYPE_ID"="CTT"."CUST_TRX_TYPE_ID")
      29 - access("CTT"."GL_ID_REC"="GLC"."CODE_COMBINATION_ID")
      31 - filter("PASL"."DISABLE_FLAG" IS NULL)
      34 - access("PAA"."ITEM_ID"="CTL"."INVENTORY_ITEM_ID")
           filter("PAA"."ITEM_ID"="CTL"."INVENTORY_ITEM_ID")
      36 - access("PAA"."ASL_ID"="PASL"."ASL_ID"(+))
      38 - access("PAA2"."VENDOR_ID"="APS"."VENDOR_ID"(+))
      44 - access("HCCA"."CUST_ACCOUNT_ID"="CUST_ACCOUNT_ID" AND
                  "HCSUA"."CUST_ACCT_SITE_ID"="HCCA"."CUST_ACCT_SITE_ID")
      45 - filter("HCCA"."ORG_ID"=82)
      46 - access("CUST"."CUST_ACCOUNT_ID"="CTA"."BILL_TO_CUSTOMER_ID")
      47 - access("HCSUA"."SITE_USE_ID"="CTA"."BILL_TO_SITE_USE_ID")
      48 - access("CTA"."CUST_TRX_TYPE_ID"="CTT"."CUST_TRX_TYPE_ID")
      50 - filter("CTT"."GL_ID_REC" IS NOT NULL AND ("CTT"."TYPE"='CM' OR "CTT"."TYP                                                                             
    E"='INV'))
      51 - access("CTT"."GL_ID_REC"="GLC"."CODE_COMBINATION_ID")
      52 - filter("CTA"."COMPLETE_FLAG"='Y' AND "CTA"."STATUS_TRX"<>'VD' AND "CTA"."                                                                             
    LEGAL_ENTITY_ID"=23274)
      53 - access("CTA"."TRX_DATE">=TO_DATE(' 2014-01-01 00:00:00', 'syyyy-mm-dd hh2                                                                             
    4:mi:ss') AND
                  "CTA"."TRX_DATE"<=TO_DATE(' 2014-10-13 00:00:00', 'syyyy-mm-dd hh2                                                                             
    4:mi:ss'))
      54 - filter("HCSUA"."ORG_ID"=82)
      56 - access("CTA"."PRIMARY_SALESREP_ID"="VEND"."SALESREP_ID"(+))
      57 - access("PARTY_ID"="PARTY_ID")
      58 - access("CTL"."CUSTOMER_TRX_ID"="CTA"."CUSTOMER_TRX_ID")
      59 - filter("CTL"."INVENTORY_ITEM_ID" IS NULL AND "CTL"."LINE_TYPE"='LINE')
    Note
       - 'PLAN_TABLE' is old version
    Statistics
             15  recursive calls
              0  db block gets
       62543652  consistent gets
         269141  physical reads
            172  redo size
          12832  bytes sent via SQL*Net to client
            674  bytes received via SQL*Net from client
             16  SQL*Net roundtrips to/from client
              2  sorts (memory)
              0  sorts (disk)
            212  rows processed

  • Internal_Function

    I am getting internal_function within explain plan filter section at step 17 ,18 and 22, i know it is an overhead but why it is happening how can i come to know please help
    Query
    select
    case
    when oha.org_id = '122' then 'KDD'
    when oha.org_id = '82' then 'HDD'
    when oha.org_id = '222' then 'SDD'
    when oha.org_id = '166' then 'MDD'
    when oha.org_id = '142' then 'LDD'
    when oha.org_id = '182' then 'FDD'
    when oha.org_id = '162' then 'IDD'
    when oha.org_id = '164' then 'PDD'
    when oha.org_id = '203' then 'QDD'
    when oha.org_id = '262' then 'SGD'
    when oha.org_id = '123' then 'KDP'
    when oha.org_id = '83' then 'HDP'
    when oha.org_id = '223' then 'SDP'
    when oha.org_id = '167' then 'MDP'
    when oha.org_id = '144' then 'LDP'
    when oha.org_id = '183' then 'FDP'
    when oha.org_id = '163' then 'IDP'
    when oha.org_id = '165' then 'PDP'
    when oha.org_id = '202' then 'QDP'
    when oha.org_id = '263' then 'SGP' 
    end  DEPOT_ID,
    hca.account_number,
    hca.account_name,
    to_char(oha.order_number) order_number,
    cta.trx_number,
    cta.trx_date,
    msi.description,
    ola.shipped_quantity qty,
    'Inv' Document_Type,
    case
       when ola.unit_selling_price <> ola.unit_list_price and
            ola.unit_selling_price <> 0 Then
        (abs(ola.unit_list_price - ola.unit_selling_price) *
        ola.shipped_quantity)
       when ola.unit_selling_price = 0 then
        ola.unit_selling_price * ola.shipped_quantity
       when ola.unit_selling_price <> 0 and
            ola.unit_selling_price = ola.unit_list_price then
        0
       else
        ola.unit_selling_price * ola.shipped_quantity
    end DIS_BON,
    ola.shipped_quantity * ola.unit_list_price Amount,
    case
       when ola.unit_selling_price <> ola.unit_list_price and
            ola.unit_selling_price <> 0 Then
        round((100 - (ola.unit_selling_price * 100) / ola.unit_list_price), 2) ||
        '-DISC.'
       when ola.unit_selling_price = 0 then
        'BONUS'
       else
        'SALES'
    end Status
      from oe_order_headers_all      oha,
           oe_order_lines_all        ola,
           mtl_system_items_b        msi,
           ar.hz_cust_accounts       hca,
           xxpz.xxcs_depot_sds       xds,
           ra_customer_trx_all       cta,
           ra_customer_trx_lines_all ctla,
           ra_cust_trx_types_all     ctt
    where oha.header_id = ola.header_id
       and oha.org_id = ola.org_id
       and ola.actual_shipment_date between &V_DATE_FROM And &V_DATE_TO
       and ola.inventory_item_id = msi.inventory_item_id
       and msi.organization_id = xds.organization_id
       and oha.org_id = xds.org_id
       and ola.org_id = xds.org_id
       and ctla.org_id = xds.org_id
       and oha.sold_to_org_id = hca.cust_account_id
       and msi.inventory_item_id = ctla.inventory_item_id
       and ola.inventory_item_id = ctla.inventory_item_id
       and ola.org_id = ctla.org_id
       and ctla.customer_trx_id = cta.customer_trx_id
       and ctla.org_id = cta.org_id
       and oha.org_id = cta.org_id
       and cta.org_id = xds.org_id
       and oha.order_number = cta.ct_reference
       and cta.cust_trx_type_id = ctt.cust_trx_type_id
       and cta.org_id = ctt.org_id
       and ctla.interface_line_attribute6 = to_char(ola.line_id)
       and substr(msi.segment1, 1, 2) = nvl(&prin, substr(msi.segment1, 1, 2))
       and msi.segment1 = nvl(null, msi.segment1)
       and ola.flow_status_code = 'CLOSED'
       and ola.line_category_code = 'ORDER'
       and ctla.description not like 'Sales%Tax%'
       and msi.enabled_flag = 'Y'
       and ctla.unit_selling_price > 0
       and ctt.name in ('Sales Invoice')
       And oha.org_id In
           ('122', '82', '222', '166', '142', '182', '162', '164', '203', '262')Plan
    Plan hash value: 2797684829                                                                                                                                                                            
    | Id  | Operation                            | Name                      | Starts | E-Rows | A-Rows |   A-Time   | Buffers | Reads  |                                                                  
    |*  1 |  TABLE ACCESS BY INDEX ROWID         | RA_CUST_TRX_TYPES_ALL     |      1 |      1 |    598 |00:00:21.17 |     295K|  73350 |                                                                  
    |   2 |   NESTED LOOPS                       |                           |      1 |      1 |   1197 |00:03:57.48 |     295K|  73350 |                                                                  
    |   3 |    NESTED LOOPS                      |                           |      1 |      1 |    598 |00:00:21.14 |     295K|  73350 |                                                                  
    |   4 |     NESTED LOOPS                     |                           |      1 |      1 |    600 |00:00:12.13 |     292K|  73350 |                                                                  
    |   5 |      NESTED LOOPS                    |                           |      1 |      1 |    600 |00:00:12.10 |     291K|  73350 |                                                                  
    |   6 |       NESTED LOOPS                   |                           |      1 |      1 |    600 |00:00:12.03 |     288K|  73335 |                                                                  
    |   7 |        NESTED LOOPS                  |                           |      1 |      3 |  65351 |00:07:32.06 |   62825 |  39789 |                                                                  
    |   8 |         NESTED LOOPS                 |                           |      1 |      1 |     20 |00:00:00.01 |      12 |      0 |                                                                  
    |   9 |          INLIST ITERATOR             |                           |      1 |        |      1 |00:00:00.01 |       2 |      0 |                                                                  
    |  10 |           TABLE ACCESS BY INDEX ROWID| XXCS_DEPOT_SDS            |      1 |     10 |      1 |00:00:00.01 |       2 |      0 |                                                                  
    |* 11 |            INDEX RANGE SCAN          | XX_DPT_SDS_ORGID          |      1 |     10 |      1 |00:00:00.01 |       1 |      0 |                                                                  
    |* 12 |          TABLE ACCESS BY INDEX ROWID | MTL_SYSTEM_ITEMS_B        |      1 |      1 |     20 |00:00:00.01 |      10 |      0 |                                                                  
    |* 13 |           INDEX RANGE SCAN           | MTL_SYSTEM_ITEMS_B_N1     |      1 |      1 |     20 |00:00:00.01 |       4 |      0 |                                                                  
    |* 14 |         TABLE ACCESS BY INDEX ROWID  | RA_CUSTOMER_TRX_LINES_ALL |     20 |     28 |  65351 |00:07:36.06 |   62813 |  39789 |                                                                  
    |* 15 |          INDEX RANGE SCAN            | IDX$$_89BD0002            |     20 |   3476 |  65443 |00:00:02.08 |     344 |    281 |                                                                  
    |* 16 |        TABLE ACCESS BY INDEX ROWID   | OE_ORDER_LINES_ALL        |  65351 |      1 |    600 |00:10:23.24 |     314K|  54870 |                                                                  
    |* 17 |         INDEX RANGE SCAN             | IDX$$_90400002            |  65351 |      1 |  62825 |00:00:03.05 |     126K|    102 |                                                                  
    |* 18 |       TABLE ACCESS BY INDEX ROWID    | OE_ORDER_HEADERS_ALL      |    600 |      1 |    600 |00:00:00.30 |    2400 |     15 |                                                                  
    |* 19 |        INDEX UNIQUE SCAN             | OE_ORDER_HEADERS_U1       |    600 |      1 |    600 |00:00:00.10 |    1800 |      5 |                                                                  
    |  20 |      TABLE ACCESS BY INDEX ROWID     | HZ_CUST_ACCOUNTS          |    600 |      1 |    600 |00:00:00.03 |    1800 |      0 |                                                                  
    |* 21 |       INDEX UNIQUE SCAN              | HZ_CUST_ACCOUNTS_U1       |    600 |      1 |    600 |00:00:00.01 |    1200 |      0 |                                                                  
    |* 22 |     TABLE ACCESS BY INDEX ROWID      | RA_CUSTOMER_TRX_ALL       |    600 |      1 |    598 |00:00:00.03 |    2400 |      0 |                                                                  
    |* 23 |      INDEX UNIQUE SCAN               | RA_CUSTOMER_TRX_U1        |    600 |      1 |    600 |00:00:00.01 |    1800 |      0 |                                                                  
    |* 24 |    INDEX RANGE SCAN                  | IDX$$_78250003            |    598 |      1 |    598 |00:00:00.01 |      12 |      0 |                                                                  
    Predicate Information (identified by operation id):                                                                                                                                                    
       1 - filter("CTA"."CUST_TRX_TYPE_ID"="CTT"."CUST_TRX_TYPE_ID")                                                                                                                                       
      11 - access(("XDS"."ORG_ID"=82 OR "XDS"."ORG_ID"=122 OR "XDS"."ORG_ID"=142 OR "XDS"."ORG_ID"=162 OR "XDS"."ORG_ID"=164 OR                                                                            
                  "XDS"."ORG_ID"=166 OR "XDS"."ORG_ID"=182 OR "XDS"."ORG_ID"=203 OR "XDS"."ORG_ID"=222 OR "XDS"."ORG_ID"=262))                                                                             
      12 - filter("MSI"."ENABLED_FLAG"='Y')                                                                                                                                                                
      13 - access("MSI"."ORGANIZATION_ID"="XDS"."ORGANIZATION_ID")                                                                                                                                         
           filter(("MSI"."SEGMENT1"=NVL(NULL,"MSI"."SEGMENT1") AND                                                                                                                                         
                  SUBSTR("MSI"."SEGMENT1",1,2)=NVL('10',SUBSTR("MSI"."SEGMENT1",1,2))))                                                                                                                    
      14 - filter(("CTLA"."DESCRIPTION" NOT LIKE 'Sales%Tax%' AND "CTLA"."UNIT_SELLING_PRICE">0))                                                                                                          
      15 - access("MSI"."INVENTORY_ITEM_ID"="CTLA"."INVENTORY_ITEM_ID" AND "CTLA"."ORG_ID"="XDS"."ORG_ID")                                                                                                 
           filter(("CTLA"."INVENTORY_ITEM_ID" IS NOT NULL AND INTERNAL_FUNCTION("CTLA"."ORG_ID")))                                                                                                         
      16 - filter(("OLA"."ACTUAL_SHIPMENT_DATE">=TO_DATE('2012-01-01 00:00:00', 'yyyy-mm-dd hh24:mi:ss') AND                                                                                               
                  "OLA"."LINE_CATEGORY_CODE"='ORDER' AND "OLA"."FLOW_STATUS_CODE"='CLOSED' AND                                                                                                             
                  "OLA"."ACTUAL_SHIPMENT_DATE"<=TO_DATE('2012-01-10 00:00:00', 'yyyy-mm-dd hh24:mi:ss')))                                                                                                  
      17 - access("OLA"."INVENTORY_ITEM_ID"="CTLA"."INVENTORY_ITEM_ID" AND "OLA"."ORG_ID"="CTLA"."ORG_ID" AND                                                                                              
                  "CTLA"."INTERFACE_LINE_ATTRIBUTE6"="OLA"."SYS_NC00352$")                                                                                                                                 
           filter((INTERNAL_FUNCTION("OLA"."ORG_ID") AND "OLA"."INVENTORY_ITEM_ID"="MSI"."INVENTORY_ITEM_ID" AND                                                                                           
                  "OLA"."ORG_ID"="XDS"."ORG_ID"))                                                                                                                                                          
      18 - filter((INTERNAL_FUNCTION("OHA"."ORG_ID") AND "OHA"."ORG_ID"="OLA"."ORG_ID" AND "OHA"."ORG_ID"="XDS"."ORG_ID"))                                                                                 
      19 - access("OHA"."HEADER_ID"="OLA"."HEADER_ID")                                                                                                                                                     
      21 - access("OHA"."SOLD_TO_ORG_ID"="HCA"."CUST_ACCOUNT_ID")                                                                                                                                          
      22 - filter((INTERNAL_FUNCTION("CTA"."ORG_ID") AND "CTLA"."ORG_ID"="CTA"."ORG_ID" AND "OHA"."ORG_ID"="CTA"."ORG_ID" AND                                                                              
                  "CTA"."ORG_ID"="XDS"."ORG_ID" AND "OHA"."ORDER_NUMBER"=TO_NUMBER("CTA"."CT_REFERENCE")))                                                                                                 
      23 - access("CTLA"."CUSTOMER_TRX_ID"="CTA"."CUSTOMER_TRX_ID")                                                                                                                                        
      24 - access("CTA"."ORG_ID"="CTT"."ORG_ID" AND "CTT"."NAME"='Sales Invoice')                                                                                                                          
           filter(("CTT"."ORG_ID"=82 OR "CTT"."ORG_ID"=122 OR "CTT"."ORG_ID"=142 OR "CTT"."ORG_ID"=162 OR "CTT"."ORG_ID"=164 OR                                                                            
                  "CTT"."ORG_ID"=166 OR "CTT"."ORG_ID"=182 OR "CTT"."ORG_ID"=203 OR "CTT"."ORG_ID"=222 OR "CTT"."ORG_ID"=262))                                                                             
    73 rows selected.

    >
    I am getting internal_function within explain plan filter section at step 17 ,18 and 22, i know it is an overhead but why it is happening how can i come to know please help
    >
    That is just how Oracle is processing your IN clause
    oha.org_id In
           ('122', '82', '222', '166', '142', '182', '162', '164', '203', '262')It caches' those hard-coded values in a hash table and uses an internal function to implement the 'IN' part of your query by using 'oha.orgid' as the search parameter to the hash table.
    Nothing to worry about from a performance issue unless maybe you had hundreds or thousands of hard-coded values for the IN clause. Even then a hash table is far quicker that accessing a real table.

Maybe you are looking for

  • HOW DO I CREATE A SYSTEM TO CONTROL BOOKINGS

    Hi there,     I've designed a hotel's website and now I wanted to design a system to control bookings in that, on the bookings page there would be a chart showing the varieties of rooms available and also the chart must also indicate the rooms alread

  • Imac 17" hum

    Hi, I had been away from my computer for about a week with it being switched off. When I came back from my business trip, I noticed my imac 17" had developed a low hum. I am sure it is not the fan and I have read up on it here on the discussion group

  • SRM 7.0 SUS with ECS

    Dear Experts, In SRM 7.0 with Extended classic scenario  but found that SUS doesnu2019t support confirmations and invoice postings. Can you please clarify me is there any workaround to achieve this functionality without compromising the technical sce

  • Audigy 2 + Logitech Z-5

    Hi, I've got a new PC with an Audigy 2 soundblaster. The problem is, that neither the speakers (Logitech Z-5500) nor headphones etc. are found. I think I have installed all drivers for the Soundblaster. Actually, the speakers should be found when the

  • Allocating certain percentage of database resource to specific user

    Hi, Is it posisble to allocate a certain percentage of database reosurce to a specific user? We are using Oracle 11.2.0.3 on IBM Power Series 7 (AIX operating system) and find that if have to run the standard ETL during the day, the resources are swa