WAAS EMAP Optimization issue

Dear Team,
In WAAS Setup we are not seeing any Optimized EMAPI connection and below error is showing in Alarm section  for all Edge WAE devices.
Wansecure encountered a peering service configuration error: ssl peering service configuration mismatch with peer device id 88:f0:31:b3:6e:c8. The following protocol acceleration can fail: SSL-AO, ICA (if using Wansecure) and Encrypted MAPI.
We have verified the SSL peering configuration between Edge and core device and not found found any mismatch between them. Please suggest how we can resolve this issue.
Regards,
Ranjith

Hi,
Try the following on all the WAAS devices participating in the flow. (Core + edge)'
WAAS #sh acc wansecure
Accelerator Licensed Config State Operational State
wansecure Yes Enabled Running
WAN Secure:
Accelerator Config Item Mode Value
SSL AO User enabled
Secure store User enabled
Peer SSL version User default
Peer cipher list User configured
Peer cert User default <<<<Should be same for all devices
Peer cert verify User enabled
Follow the doc below.
http://www.cisco.com/c/en/us/td/docs/app_ntwk_services/waas/waas/v501/configuration/guide/cnfg/policy.html#wp1156757
Hope that resolves the issue.
Regards,
Abhishek
CCIES 35269

Similar Messages

  • Any issue using WAAS to optimize 6500 SPA traffic?

    I have a pilot that does data replication (FCIP) across a service-provider 1 gig link (100 miles). All customer data gets encrypted using 6500 SPA adaptors. Does anyone see any issue, or has anyone had experienced with optimizing (TFO) with WAAS traffic in-betweem SPAs? For ease of pilot deployment, we are using in-line WAEs and there is other traffic they'd like to optimize other than the FCIP, so placing the WAE's before the 6500 SPA adaptors is not a real option.
    THANKS!

    I have a pilot that does data replication (FCIP) across a service-provider 1 gig link (100 miles). All customer data gets encrypted using 6500 SPA adaptors. Does anyone see any issue, or has anyone had experienced with optimizing (TFO) with WAAS traffic in-betweem SPAs? For ease of pilot deployment, we are using in-line WAEs and there is other traffic they'd like to optimize other than the FCIP, so placing the WAE's before the 6500 SPA adaptors is not a real option.
    THANKS!

  • Oracle 11g on Linux : Query Optimization issue

    Hi guru,
    I am facing one query optimization related problem in group by query
    Table (10 million Records)
    Product(ProductId number,ProductName varchar(100),CategoryId VARCHAR2(38),SubCategoryId VARCHAR2(38))
    Index
    create index idxCategory on Product (CategoryId,SubCategoryId)
    Query1:To find product count for all CategoryId and SubCategoryId
    select CategoryId,SubCategoryId,count(*) from Product group by CategoryId,SubCategoryId
    Above query is not using index idxCategory and doing table scan which is very costly.
    When I fire Query2: select count(*) from Product group by CategoryId,SubCategoryId
    then it is properly using index idxCategory and very fast.
    Even I specified hint in Query1 but it is not using hint.
    Can anybody suggest why oracle is not using index in Query1 and what should I do so that Query1 will use Index.
    Thanks in advance.

    user644199 wrote:
    I am facing one query optimization related problem in group by query
    Query1:To find product count for all CategoryId and SubCategoryId
    select CategoryId,SubCategoryId,count(*) from Product group by CategoryId,SubCategoryId
    Above query is not using index idxCategory and doing table scan which is very costly.
    When I fire Query2: select count(*) from Product group by CategoryId,SubCategoryId
    then it is properly using index idxCategory and very fast.
    Even I specified hint in Query1 but it is not using hint.
    Can anybody suggest why oracle is not using index in Query1 and what should I do so that Query1 will use Index.The most obvious reason that the table needs to be visited would be that the columns "CategoryId" / "SubCategoryId" can be NULL but then this should apply to both queries. You could try the following to check the NULL issue:
    select CategoryId,SubCategoryId,count(*) from Product where CategoryId is not null and SubCategoryId is not null group by CategoryId,SubCategoryId
    Does this query use the index?
    Can you show us the hint you've used to force the index usage and the EXPLAIN PLAN output of the two queries including the "Predicate Information" section? Use DBMS_XPLAN.DISPLAY to get a proper output, and use the \ tag before and after when posting here to format it using fixed font. Use the "Quote" button in the message editor to see how I used the \ tag here.
    Are above queries representing the actual queries used or did you omit some predicates etc. for simplicity?
    By the way, VARCHAR2(38) and ...ID as name, are these columns storing number values?
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • SNP Optimizer Issue

    Hi Experts,
    We are working on SNP Optimization scenario with Transportation, Procurement, Strorage and penalty Cost. Our business process trading industry (we procure and sell).
    We maintained Optmizaion profile with linear and Primal simplex Algorithm. We took a sample scenario where our product has four suppliers with diffrent transportation costs maintained in transportation lanes.
    In SDP94, Optimizer behaving diffrently.
    Case 1: When we run directly at destination location (product + Destination) level optimization running smoothly with out picking any transportation lanes, costs. Subsequently no purchase requistions are created.
    Case 2: When we select all locations (Product + Source and Destination) and run optimization the following errors are coming which we are not able to identify the origin.
    Error 1: Cost function 051MhWG07j6MwgLZXQcXSm not found
    Error 2: Conversion from STD to EA for product WDE-MATL1A not maintained
    Error 3: Error occurred when reading data
    We checked CCR no errors are identified. Also there is no UOM called STD. We couldn't understand why Optimizer is proposing STD to EA conversion error.
    Can you please throw some light.
    Thanks in advance

    Hi Ugameswara Rao
    When you run optimizer,you need to run as a whole including all teh Network...So,the first observation is standard
    Regarding teh second issue,It is a Master data inconsistency,So,please identify the 'concerned location product' and maintain the cost accordingly(Check teh log to find the concerned location product)
    Regarding error "Error occurred when reading data",please raise a seperate thread,as the raesons for this are multiple...but try this first run //om17,model consistency check and correct the data model set...but,the reason for this could also be a softwre error....hence,if the above don't help,please rasise a seperate thread with all details like: STEP in which thi serror occur,and also teh message log details
    Thanks and Regards
    Suresh

  • Configuring Maintenance Optimizer issue

    Hi All,
    This is the first time I am configuring SM 4.0. I am done with installation, and want to conigure maintenance optimizer.
    I followed the IMG guide step by step.
    But after all done, there are no systems listed under the maintenance optimizer of my Solution Landscape.
    Instead I get a message:
    <b>Change requests cannot be displayed or created, because the RFC connection has errors, or is not maintained.
    Check whether the RFC connection to the Change Man agement system is under the key CHARM_DEST (APPLI field in the DESTINAT field), in the view BCOS_CUST. You need authorization for the cross-client view/table maintenance (S_TABU_DIS and S_TABU_CLI).
    Check the RFC connection in the transaction SM59. If your SAP Solution Manager system is also your Change Manager system, the internal connection must be 'NONE'. You need authorization for the administration of RFC connections (S_RFC_ADM).</b>
    Meanwhile I have issue with my J2EE engine not starting due to some UME issues, which I am working on parallely.
    Please do let me know what would be the issue.
    I have followed the note 990534 and doen with the BC sets.
    But I am not sure where am I making a mistake.
    One more doubt is, does maintenance optimizer connect to the SAP service market place through SAPOSS??? and am I not seeing anu system because my SLD is down. Please bear with my ignorance, I am a little lost here.
    I have completed the solution landscape, logical component, etc.
    Please help...
    Regards,
    Sapfan

    Hi JP,
    My current SP levels are:
    SAP_BASIS - 0011
    SAP_ABAP - 0011
    PI_BASIS 2005_11 - 0011
    ST-PI 2005_11 - 0003
    SAP_BW - 0011
    SAP_AP - 0007
    BBPCRM 5 - 0007
    CPRXRPM - 0007
    ST400 - 0010
    ST-ICO - 0008
    ST-SER - 0007
    The issue is I did not connect to SAP yet, as I have only one RFC generated i.e. SAPOSS> Since my SAPRouter is not yet configured, I will connect to a valid  SAPRouter once all the SM config is done.
    I als got sone error in generating RFC for the main system when I used the wizard. I selected Change management and customizing directory and also selected Assign RFC for system monitoring.
    I changed back the UME source to client 001, but still same.
    Moreover the maintenance optimizer is not showing the satellite system.
    I am really stuck.
    Please let me know if you require more information.
    I created the main system and defined the solution, as per the SPRO->Solution Manager -> Advanced Configuration -> Basic settings ->
    I started this only after applying SP10.
    Now I don see the systems both for Setup Solution monitoring and in maintenance optimizer.
    WIll the system not reflect is the java ebngine is down???
    Regards,
    P.K

  • TopLink design/optimization issues

    I've been developing a prototype using TopLink sporadically over the last few months, and I have 2 questions:
    1. Is there a way in a ManyToManyMapping to optimize the DELETE SQL statements that are generated when a collection is modified? I have a large number of options that are associated with objects. Whenever I modify these options I get statements such as:
    DELETE FROM T_USERSGROUPS WHERE GROUPID = 3 AND USERID= 1
    DELETE FROM T_USERSGROUPS WHERE GROUPID = 2 AND USERID= 1
    DELETE FROM T_USERSGROUPS WHERE GROUPID = 47 AND USERID= 1
    Followed by the INSERT statements.
    Is there a way for TopLink to generate 1 DELETE FROM T_USERSGROUPS WHERE USERID=1 and the beginning of this transaction?
    2. Many of my frequently used tables contain 50-100 rows of data and the TopLink caching works pretty well. However, I have many instances in my app where I query for ALL of these objects. If I ask for a specific item, the DB is not queried because it is found in cache. However, I would like to avoid a DB query when asking for all objects as well.
    I understand the TopLink does provide some optimizations by not actually populating this object if already found, but I'm wondering if there is a trick or setting that would cause TopLink to a[i]Long postings are being truncated to ~1 kB at this time.

    2 great questions. For some reason the second question was truncated somewhat though..
    1 - Bulk update/delete statements are not supported at this time, but it is on the radar screen and something that is being investigated. The issue is cost/benefit. Engineering needs to weigh the costs of calculating in Java if a bulk update can/should be done vs the speed of just doing the increased SQL calls. Likely, some application intervention would be required.
    2 - I can only read the first paragraph, but I think you are asking about in memory queries. The situation you describe is what I would call "reference data", and I would actually recommend not using in memory queries for that -- there is a better way. Simply cache a vector on your own in the app that holds onto all the cached objects. I.e., do a read all query that hits the database first, then cache that collection somewhere. Since it's a finite list, you don't have to worry about size, and since you have a reference to the objects in the collection, the won't be GC'd. This would be faster than doing an in-memory query. Now if you're doing queries to find subsets of the data, it's likely faster to go to the database. Databases are faster at queries than doing the operation[i]Long postings are being truncated to ~1 kB at this time.

  • WAAS CM Https Issue

    Hi All
    We've logged a TAC Case for this but I thought I would post something here to  see if I could get any extra help. We have the following issue.
    We have a fleet of WAAS optimisers at a multitude of sites, with a CM in one of our data centres. Using Compuware VAS we have picked up the following issue. The Optimisers are initiating HTTPS conversations with the CM, and we are seeing Client RTT times for this traffic going into the days on the compuware VAS monitoring tool. Which frankly doesn't make sense.
    Now looking back the issue for last week seems to have originiated at the same time on the same day for all the optimisers I have looked at. With a small amount of traffic between the optimisers and the CM for a few days, with the Client RTT increasing
    The traffic is about 2/3rd client to 1/3rd server, and only in the very low kbs.
    I am trying to ascertain if this is a real problem or if it is our Compuware VAS monitoring system not reporting correctly. As there are no issues with client traffic, and we are able to manage the devices properly, there does not appear to be any alarms in the CM in regards to this either.
    This also appears to be a recurring issue.

    I would recommend that you try to do a cms deregister force on the accelerator, and delete it from the central manager GUI. Then try re-registering to the CM and see if that will fix the issues.
    Thanks,
    Dan

  • WAAS los booting issue

    Hi i tried to install SM-SRE-700-k9 module to cisco 2911 router , but fail to load IOS , when i am loading the IOS getting following error
    Router#$ install url ftp://10.0.0.2/waas-accelerator-4.4.3c.9-k9.bin         
    Delete the installed Cisco Wide Area Application Services Software and proceed with new installation? [no]: yes
    Loading waas-accelerator-4.4.3c.9-k9.bin.install.sre !
    [OK - 1754/4096 bytes]
    Welcome to the WAAS installation checking resource requirements now
    Resource check complete proceeding with installation
    Router#
    *Mar 18 08:56:37.999: %SM_INSTALL-6-INST_RESET: SM1/0 is reset for software installation.
    *Mar 18 08:57:34.059: %SM_INSTALL-6-INST_RBIP: SM1/0 received msg: RBIP Registration Request
    *Mar 18 08:57:34.063: %SM_INSTALL-6-INST_RBIP: SM1/0 received msg: RBIP File Request
    *Mar 18 08:57:35.795: %SM_INSTALL-6-INST_RBIP: SM1/0 received msg: RBIP File Request
    *Mar 18 08:57:56.851: %SM_INSTALL-6-INST_RBIP: SM1/0 received msg: RBIP File Request
    *Mar 18 08:57:56.983: %SM_INSTALL-6-INST_RBIP: SM1/0 received msg: RBIP File Request
    *Mar 18 08:59:59.147: %SM_INSTALL-6-INST_PROG: SM1/0 PROGRESSING: Starting to install waas-accelerator-4.4.3c.9-k9.bin ....
    *Mar 18 08:59:59.239: %SM_INSTALL-6-INST_PROG: SM1/0 PROGRESSING: SRE bootloader upgrade not required ....
    *Mar 18 08:59:59.239: %SM_INSTALL-6-INST_PROG: SM1/0 PROGRESSING: Initiating FTP download....
    *Mar 18 08:59:59.239: %SM_INSTALL-6-INST_PROG: SM1/0 PROGRESSING: now downloading waas-accelerator-4.4.3c.9-k9.bin ....
    *Mar 18 08:59:59.955: %SM_INSTALL-6-INST_FAIL: SM1/0 is reset due to FTP install error. Failure return code: 92 .
    [Resuming connection 1 to 10.101.95.100 ... ]

    Hi Saransurendran,
    A common cause of the issue you describe is that not all files from the WAAS SRE ZIP archive are available in the same folder on your FTP server, or permissions are not good for all files.
    There should be 6 files on your FTP server in total, all in the same folder:
    •waas-accelerator-4.4.3c.9-k9.bin
    •waas-accelerator-4.4.3c.9-k9.bin.install.sre
    •waas-accelerator-4.4.3c.9-k9.bin.install.sre.header
    •waas-accelerator-4.4.3c.9-k9.bin.installer
    •waas-accelerator-4.4.3c.9-k9.bin.key
    •waas-accelerator-4.4.3c.9-k9.bin.srebootloader
    If any of these files should be missing or not accessible on the FTP server, installation will fail.
    Please ensure you have all these files available and accessible on your FTP server and retry.
    Please also check the following documents for further information on installing WAAS on SRE:
    http://www.cisco.com/c/en/us/td/docs/app_ntwk_services/waas/waas/v421/module/installation/guide/wssmcfg.html
    https://supportforums.cisco.com/document/85376/deploying-waas-isr-g2-sre-module
    Regards,
    Michael

  • WAAS Monitoring Optimization Stats

    Does anyone else have issues with getting consistent statistical data from the Monitoring=>Optimization Stats Detail
    section? Specifically the Savings section.
    In many cases when I look at the stats from the last hour, it displays the Savings data correctly - showing the Total Bytes saved,% reduction, etc...
    If I change the time period from last hour to last day, nothing but zero's shows up under the Savings section.
    I've seen this across multiple WAE's on my central manager. Running ver4.0.17.

    Michael,
    Under the 'Application Traffic Statistics Detail Report' section, does the note indicate that statistics are available for that time range?
    Thanks,
    Zach

  • WAAS Generic Optimization

    All,
    I did numerous searches so I apolozie in advance if this has already been addressed.
    In the past few days, I observed that SMB connections between our sites have become increasingly slow and, at times, unresponsive.  This seems to loosely correlate to a number of logs in the WAAS indicating that connections to the domain controllers will be handled by generic optimization only, since the domain controllers require digitial signing.

    I apologize for the previous post, I did not intend to submit it yet.
    As I was saying, I have seen a number of logs in the WAAS device indicating that connections to the domain controllers will be handled by generic optimization only, since the domain controllers require digital signing.
    I was hoping to reach out to the community to see if anyone else has observed this particular symptom as a result of generic optimization or had any useful links or documentation regarding what happens when generic optimization is forced.
    I apologize again for the duplicate messages and thanks in advance.

  • Optimizer Issues

    Hi Experts,
    We are working for trading industry where we procure and sell the products. We haven't setup PPM/PDS. We are using Optimizer extensively. We have been facing the following two issues. If you encouter the same, please let us know.
    -> We have saftey stock maintained in location master (Destination) with method SB. When we run optimizer system doesn't considering the safety stock and only considering the demand. Please suggest How do we make system to consider safety stock also as demand.
    -> After Optimization, receipts are generated at Distribution receipts at Source even product is marked for "X" in procurement tab page at source level. Why system is not giving importance to Production receipts is worrying me. Can you please throw some light.
    Thanks & Regards
    Ugamesh

    Hi,
    Please first make sure that:
    1)In product master, you have maintained safety stock on 'lot size' tab.
    2)In product master, 'Procurement' tab, whether you have set anything for the below two fileds:
    Prod. Storage Costs
    Safety Stock Penalty
    If storage costs is high, you may not get stock created.
    3)In optimizer profile, you set other option than 'Ignore safety stock' on the first tab.
    Then you go to /sapapo/opt11 to check the optimizer log. Find your log, and push the application log icon (on the second column).
    In the Input log, there's a table calls 'ET_LOCPROD'. Check whether safety stock is correctly input.
    You can also check result log, but if you use 'Expain' functionality, you may get a better view of the result.
    Regarding the source of supply, optimizer source determination is based on costs.
    If the costs on PPM/PDS is more than transportation lane, transportaion lane will be chosen and distribution receipts are created instead of production receipts.
    Please refer to online help http://help.sap.com/saphelp_scm70/helpdata/EN/da/8df3128121304a8dc1eef961a6d3a8/frameset.htm
    Source Determination in Supply Network Planning -> Source Determination (Optimizer)
    Best Regards/Ada

  • WAAS inline adapter issue

    There isn't any lights on the 4 port inline adapter in the WAAS.  When I plug in a wire none of the ports light up.  Is there some kind of configuration, That I need to do to turn on these ports?  Please help!  Thank you

    Hi,
    You definitely need an Inline Adapter to setup WAAS 674 for inline interception mode. The built in Gig interfaces cannot be used for inline interception but can be used for WCCP or PBR. Inline adapter comes in a group LAN port and a WAN port.
    Regards
    Kiran.

  • Process & optimize issue with timeid

    Hi,
    I work on script logics with BPC 7.0 xls2007 sql2005.
    I need to process my application but I have this issue message :
       - Errors in the OLAP storage engine: The attribute key cannot be found: Table: dbo_tblFactEPS, Column: TIMEID, Value: 10000022.
    Errors in the OLAP storage engine: The process operation ended because the number of errors encountered during processing reached the defined limit of allowable errors for the operation.
    Errors in the OLAP storage engine: An error occurred while processing the 'EPS' partition of the 'EPS' measure group for the 'EPS' cube from the DEV database.
    Errors in the OLAP storage engine: The process operation ended because the number of errors encountered during processing reached the defined limit of allowable errors for the operation.
    Internal error: The operation terminated unsuccessfully
    The timid value 10000022 correspond to 2010.TOTAL.
    So I saw the dbo_tblFactEPS table with :
    Select * from tblfactEPS where TIMEID not in (select timeid from mbrTIME)
    But my selection is empty...
    Moreover, I can't process my time dimension.
    Can you help me ?
    Regards,
    Morgann

    2010.Total is not a base member and normally you should not have something like that into your fact table.
    Into fact table you must have just base members.
    your selection is not completed. It has to be
    Select * from tblfactEPS where TIMEID not in (select timeid from mbrTIME where calc = 'N')
    If you will do that actually you will see records.
    Kind Regards
    Sorin Radulescu

  • Cursor Optimization issue

    Hello everybody,
    im a bit new in sql coding and i need your help to optimize a cursor i have created that seems (a bit - not much) slow. Any comments-suggestions are welcomed . Ty in Advance,
    Mike
    (the purpose of the cursor is to take multiple values from a buffer-tmp table from a remote mssql db to my oracle one and then divide them depending use in different tables... in detail these are customers that are performing some communications with some companies .... these comms are called OBD, the hard thing was that the remote system is totally different in architecture from mine... the cursor works fine but i believe it can be coded to be faster)
    CREATE OR REPLACE PROCEDURE RETRIEVE_OBD_DATA4 (
    comm_numEntries OUT NUMBER, comm_numUpdates OUT NUMBER, comm_numInserts OUT NUMBER,
    lov_numEntries OUT NUMBER, lov_numUpdates OUT NUMBER, lov_numInserts OUT NUMBER,
    pel_numEntries OUT NUMBER, pel_numUpdates OUT NUMBER, pel_numInserts OUT NUMBER) IS
    l_indx1 NUMBER; l_comm1 char(600);l_code1 NUMBER;l_indx2 NUMBER;l_comm2 char(600);
    l_code2 NUMBER;l_tmp1 NUMBER;
    p_indx_id1 NUMBER;p_name1 char(400);p_surname1 char(400);p_address1 char(400);p_region1 char(800);
    p_username1 char(400);p_brandname1 char(400);p_nomiki1 char(400);p_afm1 char(400);p_phone1 char(400);
    p_fax1 char(800);p_drasti1 char(400);p_date1 char(200);p_gender1 char(400) ;p_tmp1 NUMBER;
    c_tmp1 number; OBD_KWDIKOS1 char(800); OBD_ONOMA1 char(600); HMEROMHNIA_E1 char(200); SYMB1 number; LOC1 number; P_INDX_ID2 number;
    CURSOR lov IS
    SELECT OBD_KWDIKOS AS L_CODE, OBD_ONOMA AS L_COMM
    FROM PORTAL.APOPSI_COMM_OBD
    GROUP BY OBD_KWDIKOS, OBD_ONOMA;
    CURSOR pelates IS
    SELECT ONOMA AS P_NAME, EPWNYMO AS P_SURNAME, DIEUTHINSI AS P_ADDRESS, DHMOS AS P_REGION,
    HMEROMHNIA_K AS P_DATE , DRASTHRIOTITA AS P_DRASTI,GENRE AS P_GENDER,
    USERN AS P_USERNAME, EPWNYMIA AS P_BRANDNAME, NOMIKI AS P_NOMIKI, AFM AS P_AFM, THLEFWNO AS P_PHONE,FAX AS P_FAX
    FROM PORTAL.APOPSI_COMM_OBD
    GROUP BY ONOMA,EPWNYMO ,DIEUTHINSI ,DHMOS ,USERN ,EPWNYMIA ,NOMIKI ,AFM ,THLEFWNO ,FAX,HMEROMHNIA_K,DRASTHRIOTITA,GENRE;
    CURSOR comm IS
    SELECT O.OBD_KWDIKOS, O.OBD_ONOMA, O.HMEROMHNIA_E, O.SYMB, O.LOC, P.P_INDX_ID
    FROM PORTAL.TMP_OBD O INNER JOIN PORTAL.TMP_COMM2 C ON C.ID = O.OBD_INDX INNER JOIN
    PORTAL.APOPSI_COMM_PELATES P ON C.NAME = P.P_NAME AND C.SURNAME = P.P_SURNAME AND C.PHONE = P.P_PHONE;
    BEGIN
    DELETE FROM PORTAL.TMP_PELATES;
    l_code1 := 0;
    l_indx1 := 0;
    l_code2 := 0;
    l_indx2 := 0;
    l_tmp1 := 0;
    comm_numEntries := 0; comm_numUpdates := 0; comm_numInserts := 0;
    lov_numEntries := 0; lov_numUpdates := 0; lov_numInserts := 0;
    pel_numEntries := 0; pel_numUpdates := 0; pel_numInserts := 0;
    p_tmp1 := 0; c_tmp1 := 0;
    OPEN lov;
    OPEN pelates;
    OPEN comm;
    LOOP
    FETCH lov INTO l_code1,l_comm1;
    EXIT WHEN lov%NOTFOUND;
    lov_numEntries := lov_numEntries + 1;
    SELECT COUNT(*) INTO l_tmp1 FROM PORTAL.APOPSI_COMM_COMM2_LOV WHERE L_CODE = TO_CHAR(l_code1) AND L_COMM = l_comm1;
    SELECT (MAX(L_INDX)+1) INTO l_indx1 FROM PORTAL.APOPSI_COMM_COMM2_LOV;
    IF l_tmp1 = 0 THEN
    lov_numInserts := lov_numInserts + 1;
    INSERT INTO PORTAL.APOPSI_COMM_COMM2_LOV(L_INDX,L_CODE,L_COMM) VALUES (l_indx1, TO_CHAR(l_code1), l_comm1);
    INSERT INTO PORTAL.TMP_LOV(L_INDX,L_CODE,L_COMM, L_INSERT) VALUES (l_indx1, TO_CHAR(l_code1), l_comm1,1);
    ELSE
    IF l_tmp1 = 1 then
    null;
    else
    lov_numUpdates := lov_numUpdates + 1;
    DELETE FROM PORTAL.APOPSI_COMM_COMM2_LOV WHERE L_CODE = TO_CHAR(l_code1);
    INSERT INTO PORTAL.APOPSI_COMM_COMM2_LOV(L_INDX,L_CODE,L_COMM) VALUES (l_indx1, TO_CHAR(l_code1), l_comm1);
    INSERT INTO PORTAL.TMP_LOV(L_INDX,L_CODE,L_COMM,L_INSERT) VALUES (l_indx1, TO_CHAR(l_code1), l_comm1,0);
    end if;
    END IF;
    END LOOP;
    LOOP
    FETCH pelates INTO p_name1,p_surname1,p_address1,p_region1,p_date1,p_gender1, p_drasti1, p_username1, p_brandname1, p_nomiki1 ,p_afm1, p_phone1,p_fax1;
    EXIT WHEN pelates%NOTFOUND;
    pel_numEntries := pel_numEntries + 1;
    SELECT (MAX(P_INDX_ID) + 1) INTO p_indx_id1 FROM PORTAL.APOPSI_COMM_PELATES;
    SELECT COUNT(*) INTO p_tmp1 FROM PORTAL.APOPSI_COMM_PELATES WHERE P_NAME = p_name1 AND P_SURNAME = p_surname1;
    IF p_tmp1 = 0 THEN
    pel_numInserts := pel_numInserts + 1;
    INSERT INTO PORTAL.APOPSI_COMM_PELATES (P_DRASTI,P_DATE,P_IDIOTITA,p_gender,P_INDX_ID,p_name,p_surname,p_address,p_region, p_username, p_brandname ,p_nomiki ,p_afm, p_phone,p_fax)
    VALUES (p_drasti1,p_date1,' ',p_gender1,P_INDX_ID1, p_name1,p_surname1,p_address1,p_region1, p_username1, p_brandname1 ,p_nomiki1 ,p_afm1, p_phone1,p_fax1);
    INSERT INTO PORTAL.TMP_PELATES (P_DRASTI,P_DATE,P_IDIOTITA,p_gender,P_INDX_ID, p_name,p_surname,p_address,p_region, p_username, p_brandname ,p_nomiki ,p_afm, p_phone,p_fax, P_INSERT)
    VALUES (p_drasti1,p_date1,' ',p_gender1,P_INDX_ID1, p_name1,p_surname1,p_address1,p_region1, p_username1, p_brandname1 ,p_nomiki1 ,p_afm1, p_phone1,p_fax1, 1);
    ELSE
    if p_tmp1 = 1 THEN
    NULL;
    ELSE
    pel_numUpdates := pel_numUpdates + 1;
    DELETE FROM PORTAL.APOPSI_COMM_PELATES WHERE P_NAME = p_name1 AND P_SURNAME = p_surname1;
    INSERT INTO PORTAL.APOPSI_COMM_PELATES (P_DRASTI,P_DATE,P_IDIOTITA,p_gender,P_INDX_ID,p_name,p_surname,p_address,p_region, p_username, p_brandname ,p_nomiki ,p_afm, p_phone,p_fax)
    VALUES (p_drasti1,p_date1,' ',p_gender1, P_INDX_ID1, p_name1,p_surname1,p_address1,p_region1, p_username1, p_brandname1 ,p_nomiki1 ,p_afm1, p_phone1,p_fax1);
    INSERT INTO PORTAL.TMP_PELATES (P_DRASTI,P_DATE,P_IDIOTITA,p_gender,P_INDX_ID, p_name,p_surname,p_address,p_region, p_username, p_brandname ,p_nomiki ,p_afm, p_phone,p_fax, P_INSERT)
    VALUES (p_drasti1,p_date1,' ',p_gender1,P_INDX_ID1, p_name1,p_surname1,p_address1,p_region1, p_username1, p_brandname1 ,p_nomiki1 ,p_afm1, p_phone1,p_fax1,0);
    END IF;
    END IF;
    END LOOP;
    LOOP
    FETCH comm INTO OBD_KWDIKOS1,OBD_ONOMA1,HMEROMHNIA_E1,SYMB1,LOC1, P_INDX_ID2;
    EXIT WHEN comm%NOTFOUND;
    comm_numEntries := comm_numEntries + 1;
    SELECT COUNT(*) INTO c_tmp1 FROM PORTAL.APOPSI_COMM_OBD_LOCAL O WHERE O.OBD_CODE = OBD_KWDIKOS1 AND
    O.OBD_NAME = OBD_onoma1 AND O.OBD_DATE = HMEROMHNIA_E1 AND O.PEL_ID = P_INDX_ID2;
    IF c_tmp1 = 0 THEN
    comm_numInserts := comm_numInserts + 1;
    INSERT INTO PORTAL.APOPSI_COMM_OBD_LOCAL
    VALUES (OBD_KWDIKOS1,OBD_ONOMA1,HMEROMHNIA_E1,SYMB1,LOC1, P_INDX_ID2);
    ELSE
    if c_tmp1 = 1 THEN
    NULL;
    ELSE
    comm_numUpdates := comm_numUpdates + 1;
    DELETE FROM PORTAL.APOPSI_COMM_OBD_LOCAL O WHERE O.OBD_CODE = OBD_KWDIKOS1 AND
    O.OBD_NAME = OBD_onoma1 AND O.OBD_DATE = HMEROMHNIA_E1 AND O.PEL_ID = P_INDX_ID2;
    INSERT INTO PORTAL.APOPSI_COMM_OBD_LOCAL
    VALUES (OBD_KWDIKOS1,OBD_ONOMA1,HMEROMHNIA_E1,SYMB1,LOC1, P_INDX_ID2);
    END IF;
    END IF;
    END LOOP;
    CLOSE comm;
    CLOSE lov;
    CLOSE pelates;
    END RETRIEVE_OBD_DATA4;
    /

    Well, to answer myself it turns out that cursors of the form "OPEN - LOOP - EXIT WHEN %NOTFOUND - END LOOP - CLOSE" are not converted to the bulk-collect equivalent, as "FOR rec IN (cursor) LOOP" ones are from 10g R2 onwards (tests below use 11.1.0.6.0).
    Implicit (1 fetch):
    DECLARE
        i INTEGER := 0;
    BEGIN
        FOR r IN ( SELECT * FROM scott.emp )
        LOOP
            i := i + r.empno;
        END LOOP;
    END;
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           1
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          0          0           1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 88 
    SQL ID : 5vms4mrz8j7wd
    SELECT *
    FROM
    SCOTT.EMP
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch 1 0.00 0.00 0 7 0 14
    total        3      0.00       0.00          0          7Explicit (15 fetches):
    DECLARE
        i INTEGER := 0;
        CURSOR c_emp IS
            SELECT * FROM scott.emp;
        r_emp c_emp%ROWTYPE;
    BEGIN
        OPEN c_emp;
        LOOP
            FETCH c_emp INTO r_emp;
            EXIT WHEN c_emp%NOTFOUND;
            i := i + r_emp.empno;
        END LOOP;
        CLOSE c_emp;
    END;
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           1
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          0          0           1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 88 
    SQL ID : 4ay6mhcbhvbf2
    SELECT *
    FROM
    SCOTT.EMP
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.01       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch 15 0.00 0.00 0 20 0 14
    total       17      0.01       0.00          0         20          0          14or another example:
    DECLARE
        i INTEGER := 0;
    BEGIN
        FOR r IN ( SELECT 1 n FROM dual CONNECT BY rownum < 999 )
        LOOP
            i := i + r.n;
        END LOOP;
    END;
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           1
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          0          0           1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 88 
    SQL ID : caf6v3bbkvqkk
    SELECT 1 N
    FROM
    DUAL CONNECT BY ROWNUM < 999
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch 10 0.00 0.00 0 0 0 998
    total       12      0.00       0.00          0          0          0         998So in code like the OP's example procedure it is explicit cursors that perform the extra fetch and not implicit ones, and this could help explain why implicit cursors perform better.

  • WAAS CM Configuration Issue

    I have a WAE running 4.1.3 that registered successfully to the CM but is failing to pull the config from the CM (also at 4.1.3).
    It shows up as activated and online, but nothing shows up under the Services column within CM - where you typically see Application Accelerator.
    Debugging CMS on the edge WAE showed 'Failed to Connect to CMS configuration consumer. Unable to connect.'
    Has anyone experienced this? All other WAE's in my environment have registed and been able to pull config from CM w/o issue.

    I would recommend that you try to do a cms deregister force on the accelerator, and delete it from the central manager GUI. Then try re-registering to the CM and see if that will fix the issues.
    Thanks,
    Dan

Maybe you are looking for

  • Creation of SIP Configuration fails on E52

    There are no SIP profiles in the at Connections->SIP. And Options->New->Standard doesn't create one. What can I do?

  • Can't drag songs using itunes 11

    After purchasing songs, I can't transfer them to a playlist.  Within the playlist, however, I can't change the order of the songs.  When I try to drag one to the top of the list I am unable to.  Any suggestions?

  • Is it okay to keep the Droid plugged in when it's finished charging?

    My old feature phone would warn me to unplug it when it was charged as to avoid "overcharging."  However, with this phone, I assume that it stops charging when full since the lightning bolt goes away and the LED turns green. I like to leave it plugge

  • Can I use store credit for in-app payment ?

    Hi There Can I use store credit for in-app payment or do I have to use my credit card funds? Although I have enough funds as store credit, everytime I want to make an in-app purchase from my Iphone, it takes me to my credit card and ask to confirm my

  • Dellivery date

    Hi All, Plz gives your input whether it is possible  to transfer STO doc date to delivery date by copying control.  we are using STO pricing at delivery level to create the proforma invoice where  as per business requirement  pricing in delivery will