CAT4900M and NetApp - Performance issue

Hi,
I'm struggling with a performance issue between our two NetApp Fas3170-devices.
The setup is quite simple: Each NetApp is connected via two TenGig interfaces to a CAT4900M. The 4900M's are also connected via two TenGig interfaces. Each pair of connections are bundled into an Layer2-etherchannel, configured as a dot.1q trunk. Mode is set to 'ON' on both the 4900 and the NetApp. According to NetApp documentation, this configuration is supported. Across each etherchannel, the vlans 219 and 220 are allowed. Two partitions are configured on the NetApp's, one being active in our primary datacenter and another in our secondary datacenter. Vlan219 and Vlan220 are configured for each the two partitions, using HSRP for gateway redundancy.
None of the interfaces nor the etherchannels shows any signs of misconfiguration. All links are up and etherchannels working as expected, well almost. Nothing indicates packet loss, crc-errors, Input/Output queue-drops or anything the would impact performance. Jumboframe is not configured, although this has been discussed.
The problem is, that we're unable to achieve satisfactory performance, when for instance, performing a volume copy between the two NetApp partitions. Even though we have a teoretical bandwidth of 20Gbps end-to-end, we never climb above 75-80 Mbytes of actual transfer-rate between the two NetApps. So performancewise, is almost looks as if we're "scaled" down to a 1Gig link. No QoS or other kind of ratelimiting has been implemented on the 4900's, so from a network point of view, the NetApps can go full-throttle. NetApp sw has been updated and configurations for both NetApp and 4900's have been revised by NetApp engineers and given a "clean bill of health".
The configuration for the 4900->NetApp etherchannel/interfaces is as follows:
interface TenGigabitEthernet1/5
description *** Trunk NetAPP DC1 ***
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 219,220
switchport mode trunk
udld port aggressive
channel-group 2 mode on
spanning-tree bpdufilter enable
interface TenGigabitEthernet1/6
description *** Trunk NetAPP DC1 ***
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 219,220
switchport mode trunk
udld port aggressive
channel-group 2 mode on
spanning-tree bpdufilter enable
interface Port-channel2
description *** Trunk Etherchannel DC1 ***
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 219,220
switchport mode trunk
spanning-tree bpdufilter enable
spanning-tree link-type point-to-point
Configuration for 4900->4900 interfaces/etherchannel is as follows:
interface TenGigabitEthernet1/1
description *** Site-to-Site trunk ***
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 10,219,220
switchport mode trunk
udld port aggressive
channel-group 1 mode on
interface TenGigabitEthernet1/2
description *** Site-to-Site trunk ***
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 10,219,220
switchport mode trunk
udld port aggressive
channel-group 1 mode on
interface Port-channel1
description *** Site-to-Site trunk ***
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 10,219,220
switchport mode trunk
spanning-tree link-type point-to-point
Vlan10 used for mngt-purpose.
Does anyone have similar experiences or suggestions as to why we're having theese performanceissues?
Thanks
/Ulrich
Message was edited by: UHansen1976

Hi,
Thanks for your reply.
I take it, that you mean baseline performance between the two NetApp's. Well, that's really out of my hands, as another department is responsible for the NetApp's. I'm not aware of any baseline performance, nor have I seen any benchmark tests or anything, that could give me hint.
Just as you suggest, I've gone through the switch-setup systematically. Basically, starting with the physical layer and working my way up. So far, I've found nothing that would indicate a physical problem. The switchport/etherchannel setup has been verified by my peers and also verified by NetApp according to the configuration on the NetApps, as well as the various best-practice documentation availible. Futhermore, I haven't seen any signs of packets drops, crc-errors, massive re-transmissions or anything like not, neither on the switches nor the NetApps.
Recently we had a status-meeting with our NetApp-partner and it looks to me like they're persuing the logical setup on the NetApps, as the're apparently a number of settings etc. that needs adjustment. Also, we're waiting for NetApp tech-support to comment on the traces, config-dump etc. we've send to them.
/Ulrich

Similar Messages

  • How to update this query and avoid performance issue?

    Hi, guys:
    I wonder how to update the following query to make it weekend day aware. My boss want the query to consider business days only. Below is just a portion of the query:
    select count(distinct cmv.invoicekey ) total ,'3' as type, 'VALID CALL DATE' as Category
    FROM cbwp_mv2 cmv
    where cmv.colresponse=1
    And Trunc(cmv.Invdate)  Between (Trunc(Sysdate)-1)-39 And (Trunc(Sysdate)-1)-37
    And Trunc(cmv.Whendate) Between cmv.Invdate+37 And cmv.Invdate+39the CBWP_MV2 is a materialized view to tune query. This query is written for a data warehouse application, the CBWP_MV2 will be updated every day evening. My boss wants the condition in the query to consider only business days, for example, if (Trunc(Sysdate)-1)-39 falls in weekend, I need to move the range begins from next coming business day, if (Trunc(Sysdate)-1)-37 falls in weekend, I need to move the range ends from next coming business day. but I should always keep the range within 3 business days. If there is overlap on weekend, always push to later business days.
    Question: how to implement it and avoid performance issue? I am afraid that if I use a function, it greatly reduce the performance. This view already contains more than 100K rows.
    thank you in advance!
    Sam
    Edited by: lxiscas on Dec 18, 2012 7:55 AM
    Edited by: lxiscas on Dec 18, 2012 7:56 AM

    You are already using a function, since you're using TRUNC on invdate and whendate.
    If you have indexes on those columns, then they will not be used because of the TRUNC.
    Consider omitting the TRUNC or testing with Function Based Indexes.
    Regarding business days:
    If you search this forum, you'll find lots of examples.
    Here's another 'golden oldie': http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:185012348071
    Regarding performance:
    Steps to take are explained from the links you find here: {message:id=9360003}
    Read them, they are more than worth it for now and future questions.

  • What happened to PDF document 22040 – "PIX/ASA: Monitor and Troubleshoot Performance Issues"?

    Hi, does anyone knows what was happened to the following PDF notes in Cisco? The PDF file is only contains 1 page compared to the original notes in html format which is about a few pages.
    If there is alternative link for this document, please let me know. Thanks.
    Document ID: 22040
    PIX/ASA: Monitor and Troubleshoot Performance Issues
    http://www.cisco.com/image/gif/paws/22040/pixperformance.pdf <PDF Notes, but 1 page only?>
    http://www.cisco.com/en/US/products/hw/vpndevc/ps2030/products_tech_note09186a008009491c.shtml  < HTML Notes>

    Hi experts / marcin
    can anyone of you let me know about my question related to vpn ?
    Jayesh

  • Can't access "Network" and other performance issues

    Hi all,
    I'm facing a catch-22 and am not sure what to do to get myself and my mac out of this downward spiral. Any help you can offer would be greatly appreciated (fyi I am admittedly not great with macs and probably don't maintain my MacBook Pro well enough).
    I've had a serious slowdown in performance starting a couple weeks ago. the system moves at a glacial pace and most of the time is spent watching the spinning rainbow.
    To add to my issues, my ISP recently performed a system upgrade which requires me to change some settings under "Network" in my system preferences. Well, when I try to access "Network", the machine thinks for a while, then an error message appears telling me that the network preferences has shut down unexpectedly. When I hit "retry" the error message eventually reappears.
    So, because of the upgrade, I can't access the internet to download any repairs for the machine, and because of the problems with the machine, I can't modify the preferences to access the internet. Obviously a vicious cycle which someone of my expertise level is struggling to solve.
    Side notes
    - I've passed the 90-day phone support period so can't call for help.
    - I'm on my work computer now. Could I download some repair/diagnostic tool here, then run it on my machine at home?
    If anyone can throw me a lifeline I would be grateful!
    MacBook Pro 15"   Mac OS X (10.4.3)  

    OZ 99,
    For logic's sake, I'm gong to take these out of order a bit:
    2) A "disk error" occurs when the "file system" (sometimes called the "disk directory") becomes damaged. This is data that is written to the HD, so yes, it could be considered a software error. Your file system is, basically, a map of your physical HD, and it indexes the location on the drive of all the other files. When it is damaged for whatever reason, your disk "forgets" where some amount of data lives. Because of this, the associated files become damaged, or "corrupt." If those files happen to be critical components of the OS, bad things can happen. At worst, the disk will become unmountable, and all of your files unrecoverable.
    1) Disk errors can be caused by several things. Sometimes, one or more "blocks" (let's call them physical locations on the disk) on your HD can become physically damaged. Whether this is because of a slight flaw in manufacturing, a scratch, magnetic particles that lose their "oomph," whatever, matters not. What is important is that some data is lost. Because the file system still believes there is data living in this location, it (the file system) is no longer reliable; it is damaged. While the initial loss of data could be considered hardware-related, the disk error is not. I'll come back to this.
    Another potential cause is some random error in the process of writing data to the disk. Again, this is a software problem, not a hardware problem. The most common cause for this occurs when your computer is shut down improperly, either a forced shutdown or a power loss. Journaling, which is the default for an OS X boot volume, goes a long way toward automatically fixing these types of disk errors, but it is not always a guarantee.
    If you have had your MBP for only a short period of time, it is not surprising that a disk error has occurred, and probably because of a bad block. Absolutely flawless drives are rare, and many computers ship with incipient disk errors. For this reason, many people like to format any new drive, even one in a new computer, right out of the box (I'll get to reasons why this is a good thing to do).
    3) Yes. Disk Utility can check or repair your file system. Any repairs must be made using Disk Utility while booted to the OS X install disk. Your HD can be "verified," however, while booted to the HD. Simply open Disk Utilty (in the "Utilities" folder), select your startup disk, then click "Verify" in the "First Aid" pane.
    4) Yes, you will have to reinstall all of your applications after formatting and reinstalling. Formatting erases everything on the volume or drive selected. Settings and data for all of those applications can be saved, however, then transferred back to the MBP after reinstalling OS X. Once the applications, themselves, have been reinstalled, you will be right back where you started. I can talk about making a comprehensive backup in another post, if you like.
    DISK UTILITY: In my first post, I recommended that you select your entire drive, then using the "Zero All Data" option. This process takes a considerably longer amount of time (as much as an hour and a half, depending on the size of your drive), but it has one big advantage. When this option is used on an entire physical drive (also called a "device"), it will scan for those pesky bad blocks, and "map out" any it finds. Since these bad spots on the disk will not be included in the new file system's list of "useable" locations, your chances of encountering another disk error in the near future is drastically reduced. So, even though a bad block could be considered a hardware error, management of them is handled by software.
    Scott

  • WHERE LIKE% and ASP Performance Issue

    Hi,
    i am facing an issue with my ASP application as i use it as front end web application to connect to a huge oracle Database.
    Basically i use my queries within the ASP pages, one of them uses Where LIKE to more than one column
    Example: i have Col1, Col2 i have created the following indexes:
    Index1 on Col1, Index2 on Col2 and Index3 on Col1,Col2
    From the ASP page i have field 1, field 2 and would like to use LIKE on both fields (Field1,Field2) but the process take so much time to get result not to mention the resources it takes.
    My ASP Query:
    sqlstr = "Select * From TABLE Where COL1 Like '"&field1&"%' And COL2 Like '"&field2&"%' ORDER BY Num ASC"
    Set Rs = Conn.Execute(Sqlstr)
    What to use instead of this query to get same result but much faster (optimized)?
    Thanks.

    if the ratio of the data returning is appropriate for index access Oracle optimizer should choose to use it, but for further commenting;
    a. I couldn't see your query in the output you provided?
    b. I need to know the data distribution; what is the ratio of the data coming over all table's data with the literals you use? you can check it by taking a count of the columns you indexed with a group by query.
    c. I assume that your indexes are in VALID status and you collected statistics with dbms_stats and cascaded to the indexes, and depending on the question above if your data is not skewed which may cause extra need for histograms,
    d. I also assume if like is starting with '%', which in this case Oracle does not use indexes and Text option is what you need to read as advised, or for another smart idea on making “like ‘%xxxx’" use index in Oracle you may check - http://oracle-unix.blogspot.com/2007/07/performance-tuning-how-to-make-like.html
    After you supply the query with literals included and the data distribution, maybe as a last resort we need to force index access with a hint and compare the statistics provided by timing and autotrace options of SQL*Plus.
    ps: Also you may produce a 10053 event trace to understand the optimizer decision - http://tonguc.wordpress.com/2007/01/20/optimizer-debug-trace-event-10053-trace-file/

  • Possible solution to wireless/bluetooth/and system performance issues.

    I had a TON of issues with Leopard after my Tiger Install, network, bluetooth, video playback, iTunes playback, system performance and freezing just to name a few. I tried everything (reseting PRAM, etc.) to fix the problem and have done a variety if installations half a dozen times. Yesterday I took out my 3rd party memory I had installed (Corsair if anyone cares) and did an erase and install. I've had no problems so far and everything seems to be running great. I'll keep everyone posted on any progress. You may want to try this if you think you may have the same issue.

    Hi
    I may have the solution to slow performance when using multi core processing. I was testing out realflow 2013 and noticed simulations were talking a long time to finish when using maximum threads 32. I set the threads to 8 and the simumlation was twice as fast which did not make any sense to me. The simulation was taking 1min 24 secs to finish using 32 threads and 45sec using 8 threads. I realized their has to be a problem here. So I went into my BIOS and disabled Hyper Threading. So now instead of having 32 threads I only have 16 threads. When i went back to try the same simulation again this time the 16 threads was only taking 24secs to finish. and the 8 threads was taking 35secs to finish. This made a lot more sence to me.
    Anyway so once I realized that turning off Hyper Threading fixed my simulation problem maybe it might be the cause of my slow performance in AE using multi processing. I tried AE and now multi processing is working great very fast now and stable. MP renders start right away now instead of getting stuck on frame 2 or saying initializing background processes and never ever doing anything. Before I had to keep disabling MP and re-enabling it in AE to get it to start working again and still it wasen't very stable
    If anybody is having issues with slow performance from their Multi processor systems try disabling Hyper Threading in the BIOS it might just fix your problem.
    Hope this helps 

  • Report preview and printing performance issues in CRXI R2

    Hello to all,
    We have successfully upgraded a corporate Web reporting site from CR8 to CRXI R2 Server SP3 VS2005 Asp2. Using managed reports, and native Oracle data access, performance has greatly improved. The CRXI site  displays the first page in half the time as CR8. These are often very large reports.
    The problem we are having is when you try to print, export, or just page thru a report in previewer. It takes as long to go to page 2, or to bring up the print dialog screen as it did for page 1 to display in the first place. This is drastically different from the performance on CR8. On the old site, when a report displayed, you could flip thru it like a Word document. Hardly any pause at all. Clicking on the printer icon brought up the print box immediately.
    Is there a way to tell the 'CrystalReportsViewer' to load all pages before showing the first page?
    If not, is anyone aware of a third party replacement for the CRV?
    Any help would be greatly appreciated.
    Joe Early

    Hello Joseph,
    What you're seeing is essentially expected behavior for a CR Server (BO Enterprise) based report.  When you try to page through a report or print it you're basically rerunning the report on each button click.
    To get around this behavior you can put your Report Object / InfoStore object into session and view, page, or print the session object from the viewer.
    You can review [Business Objects Note 1203389|https://bcp.wdf.sap.corp/sap/sapnotes/display/0001203389] for an example with the Crystal Reports .NET SDK.  You'll want to add check for the session on post back, etc. but the code should give you an idea of how to get started.
    Sincerely,
    Dan Kelleher

  • REGUH and REGUP Performance issues?

    Hi all,
    I am trying to build a program based on below select query. Will it create performance problem in Production as REGUP is a cluster table.
      SELECT
             LAUFD
             LAUFI
             ZBUKR
             LIFNR
             VBLNR
      FROM REGUH
      INTO TABLE TYT_REGUH
      WHERE  LAUFD IN S_LAUFD AND
             LAUFI IN S_LAUFI AND
            XVORL NE 'X' AND
            ZBUKR  IN S_ZBUKR.
    SELECT
                LAUFD
                LAUFI
                ZBUKR
                 LIFNR
                BUKRS
                 BELNR
                 GJAHR
    FROM REGUP
    INTO TABLE TYT_REGUP
    FOR ALL ENTRIES IN TYT_REGUH
    WHERE  LAUFD EQ TYT_REGUH-LAUFD AND
            LAUFI EQ TYT_REGUH-LAUFI AND
           XVORL NE 'X' AND
           LIFNR EQ TYT_REGUH-LIFNR AND
           VBLNR EQ TYT_REGUH-VBLNR AND
           ZBUKR EQ TYT_REGUH-ZBUKR.
    Thanks,
    Subba

    Hi Subba Krishna,
    As u said, certainlly it will take  a lot of time to fetch data from the Cluster table REGUP. It will be better if u give all the Primary key fields in where condition of the select statement.
    LAUFD     Date on Which the Program Is to Be Run
    LAUFI     Additional Identification
    XVORL     Indicator: Only Proposal Run?
    ZBUKR     Paying company code
    LIFNR     Account Number of Vendor or Creditor
    KUNNR     Customer Number 1
    EMPFG     Payee code
    VBLNR     Document Number of the Payment Document
    BUKRS     Company Code
    BELNR     Accounting Document Number
    GJAHR     Fiscal Year
    BUZEI     Number of Line Item Within Accounting Document
    These are all the Primary key fields of the table REGUP.
    One more thing is to give the where condition fields in order of the table REGUP
    LAUFD
    LAUFI
    XVORL
    ZBUKR
    LIFNR
    VBLNR
    Best regards,
    raam

  • Infoview Reports timing out, Freezing and other performance issues

    Hi all,
    New user and been tasked with a project to try and get to the bottom of a problem our users get using infoview on our network. Now i have very little experience in these kind of things and this is more of a research and learn experience at the same time. I have highlighted in bold below what one of my colleagues has sent me in order to research.
    You may have noticed Reports timing out, Freezing etc.
    We need recognise whatu2019s causing it and any solutions we can apply.
    It maybe down to Memory issues, on local machines. Cost of Queries on the databases or even Java versions used when either editing or viewing Webi reports.
    Other considerations could be Network issues u2013 Are the problems just site specific
    u2022     Identify reports that are causing problems. Is it down to the Queries used and can these be optimised to run faster u2013 Our DBA can assist with this using his Query profiler (ORACLE).
    Or reports that have many tabs on, appear to take longer to open/edit u2013 is this Memory or Java.
    u2022     Research the web for known issues/fixes,
    u2022     Raise Topics on Forums such as BOB and the SAP forum u2013 explaining the above, Can we find out what causes it, which Java versions we should be using, and recommended amount of Memory (RAM) etc.
    At the moment im busy just getting a list  of reports our users are having a problem with along with any error messages etc. Now in order to get help from some gurus on here i obviously would need to supply more information on our setup so if anyone can help just tell me what information you need and i will get this for you.

    Hi,
    Here's my best suggestion, use a monitoring tool like Remote Support Component: www.service.sap.com/remote-supportability
    you can use this utlity to diagnose your system and all aspects of its latency
    regards,
    H

  • Acrobat (and InDesign) performance issues after virus

    Hi everyone,
    we have a problem with our system (spec listed below);
    System
    Dell Precision T7400
    CPU(s): dual quad core Xeons
    RAM: originally 2GB, upgraded to 4GB 1 day ago
    OS: XP 32-bit
    Adobe Software: Originally CS3 Suite, now CS5 Suite
                             Acrobat 9 Pro
    Problem
    Acrobat: 1. stutters slowly when scrolling, almost crashes
                 2. Takes 4X longer than before to "Reduce file size" for PDFs
    InDesign: stutters slowly when working with text, almost crashes
    Cause
    Virus infultrated system about 1 month ago.
    Attempts
    1. Re-imaged disc and installed software based mirroring software with 2 extra backup drives: system still lags
    2. Re-formatted, reinstalled: system still lags
    3. Turned off mirroring: helped a little
    4. Ran various memory, motherboard tests: nothing found
    5. varified all BIOS and firmware up to date
    6. Uninstalled mirroring software, installed hardware based mirroring software, reformatted, reinstalled: system still lags
    7. Tried working with files directly from C:/ with no mirroring: system still lags
    8. Installed fresh 4GB memory: system still lags
    9. Have tried all methods of helping InDesigns performance but no luck.
    Thoughts
    Comparing this system to my old laptop (Centrino Dual Core), the laptop runs about 4X faster since the virus. Before the virus, this system was a dream to work with, super fast speed, never lagged.
    I keep thinking that the virus must have damaged somthing on the motherboard, but error messages or motherboard beep codes.
    Any other suggestions (short of shotting this system) would be greatly appreciated.

    Are you sure it only happens with Acrobat and ID, it could be a faltering hard drive
    As far as I can tell. Photolop and Illustrator work fine, haven't had time to try the rest of the CS5 Suite apps.
    I've ran tests on the C drive (10k rpm) and the added 1TB drives. Same results for all; lag lag lag.

  • Apache and Weblogic  - Performance issue

     

    Hi Anuj,
    This question should be directed to the weblogic.developer.interest.plug-in
    group.
    Regarding this issue, this is normal -- the access.log for WebLogic shows
    the requests from the proxy. But, instead of showing you the IP address of
    the proxy server, it instead shows you the IP address of the client. You
    can also verify that this is a different request because the connection to
    the proxy server used HTTP/1.1, and the connection to WLS used HTTP/1.0 --
    this is the protocol that the proxy plug-in uses to communicate with WLS.
    So, in summary, there is only one request made by the client per image, and
    the plug-in is in turn making a request to WLS for each image.
    Dennis Munsie
    Developer Relations Engineer
    BEA Support
    "Anuj Nijhawan" <[email protected]> wrote in message
    news:3c20e890$[email protected]..
    >
    We have a setup with apache acting as web server and BEA as app server.But it
    seems both of them are serving images to the web browser at the same time.This
    is consuming lots of memory. Can anybody help rectifing this,
    here's what each log file's say,
    first Apache (access_log) shows that it served it up:
    172.20.100.142 - - [19/Dec/2001:01:20:24 -0800] "GET /img/divider.gif
    HTTP/1.1"
    304 0
    172.20.100.142 - - [19/Dec/2001:01:20:24 -0800] "GET
    /img/i_user_collection.gif
    HTTP/1.1" 304 0
    172.20.100.142 - - [19/Dec/2001:01:20:24 -0800] "GET
    /img/sort_last_manual.gif H
    Then BEA (access.log) shows it too:
    172.20.100.142 - - [19/Dec/2001:01:20:24 -0800] "GET /img/divider.gif
    HTTP/1.0"
    304 0
    172.20.100.142 - - [19/Dec/2001:01:20:24 -0800] "GET
    /img/i_user_collection.gif
    HTTP/1.0" 304 0
    172.20.100.142 - - [19/Dec/2001:01:20:24 -0800] "GET
    /img/sort_manual.gif HTTP/1
    .0" 304 0

  • VC - Compile and Deploy performance issues related to UserID

    Dear Guru's,
    I'm currently working at a customer where a small team of 4 is working with VC 7.0.
    One user has very long Compile and Deploy times. We first thought that it was related to his workstation.
    Then one of the other guys logged in on his PC and run the compile + deploy ant then it suddenly takes seconds again.
    So we created a new userID for this user who has the issues "<oldUI>+test" and suddenly all is back to normal for him.
    But, now here it comes that we deleted his old userID and created it again, but the issue is still there.
    So my assumption is that there is some kind of faulty record or index or something other strange linked to his userID.
    What can this be and how can we solve it?
    Thanks in advance!
    Benjamin

    Hi Anja,
    We use VC on 7.0 and we do not have any integration with the DTR.
    So in other words we use the default way of working with VC.
    The user had his models in his Personal folder then moved it to the Public folder so that other colleagues could see/try them as well. It doesn't matter where the model is stored (public or personal) as long if this specific UID is used compiling/deploying goes very slow... the log files do not give much info, why this happens...
    Cheers,
    Benjamin

  • UNION ALL and UNION performance issue

    Hi All,
    I am trying to figure out the data for which only receive transaction has been done and further processing is pending. These transactions include all PO, RMA , ISO etc...
    I have to use UNION ALL in this case as for RMA and ISO, details which i want are not able to gather in a single query.
    But query is taking a lot of time ...may be around 30..mins in UNION ALL while 6 to 7 mins in UNION.
    To get all records I must have to use UNION ALL...
    So kindly suggest the solution for this problem
    Thanks
    Sachin
    Query is given below...
    SELECT /* + FIRST_ROWS */ DECODE(rsl.SOURCE_DOCUMENT_CODE,'REQ',(SELECT org1.ORGANIZATION_NAME
                                                           FROM     org_organization_definitions org1
                                                           WHERE org1.ORGANIZATION_ID =
                                                           rsl.FROM_ORGANIZATION_ID)) Vendor_Name
    ,rsh.RECEIPT_NUM Receipt_Number
         ,TO_CHAR(rt3.TRANSACTION_DATE,'Mon-DD-YYYY HH:MM:SS') Receipt_Date_and_Time
         ,msi.SEGMENT1 Part_Number
         ,msi.DESCRIPTION Part_Name
         ,rt3.QUANTITY Quantity
         ,rt3.UNIT_OF_MEASURE UOM
         ,NULL ASL_Status
         --for ISO no asl flag ASL Flag
         ,TO_CHAR(TRUNC((((86400*(SYSDATE-rt3.TRANSACTION_DATE))/60)/60)/24))|| ' Days ' || TO_CHAR(TRUNC(((86400*(SYSDATE-rt3.TRANSACTION_DATE))/60)/60)-24*(TRUNC((((86400*(SYSDATE-rt3.TRANSACTION_DATE))/60)/60)/24)))|| ' Hours' Days_and_hours_passed
         ,DECODE(
                        NVL(msi.max_minmax_quantity,0) ,
                        0 , 0 ,
                        (NVL(msi.max_minmax_quantity,0) -
                        NVL(inmohqd.onhand,0))
                             * 100
                             / NVL(msi.max_minmax_quantity,0)
                        ) gap_percent
    FROM rcv_transactions rt3
         ,rcv_shipment_headers rsh
         ,rcv_shipment_lines rsl
         ,mtl_system_items msi
         ,org_organization_definitions org
         --,MTL_ONHAND_QUANTITIES_DETAIL moqhd
         ,(SELECT NVL(SUM(primary_transaction_quantity),0) onhand,INVENTORY_ITEM_ID item_id,ORGANIZATION_ID organization_id
         FROM      mtl_onhand_quantities_detail
         WHERE SUBINVENTORY_CODE NOT IN ('Wip_SF','Wip_Int','Reject','Scrap','FG Trading','FG')
         GROUP BY INVENTORY_ITEM_ID, ORGANIZATION_ID) inmohqd
    WHERE inmohqd.item_id(+) = msi.INVENTORY_ITEM_ID
         AND inmohqd.organization_id(+) = msi.ORGANIZATION_ID
         --AND inmoqhd.SUBINVENTORY_CODE NOT IN  ('Wip_SF','Wip_Int','Reject','Scrap','FG Trading','FG')
         AND msi.INVENTORY_ITEM_ID = rsl.ITEM_ID
         AND rsh.SHIPMENT_HEADER_ID = rsl.SHIPMENT_HEADER_ID
         AND org.ORGANIZATION_ID = rt3.ORGANIZATION_ID
         AND msi.ORGANIZATION_ID = rt3.ORGANIZATION_ID
         AND rsh.SHIPMENT_HEADER_ID = rt3.SHIPMENT_HEADER_ID
         AND rsl.SHIPMENT_HEADER_ID = rt3.SHIPMENT_HEADER_ID
         AND rsl.SHIPMENT_LINE_ID = rt3.SHIPMENT_LINE_ID
         AND rt3.PO_HEADER_ID IS NULL
         AND TRUNC(rt3.TRANSACTION_DATE) <= TRUNC(p_tilldate)
         AND rsl.TO_ORGANIZATION_ID = p_organization_id
         AND rsh.ORGANIZATION_ID = p_organization_id
         AND CONCAT(TRIM(rt3.SHIPMENT_HEADER_ID),TRIM(rt3.SHIPMENT_LINE_ID)) IN
         SELECT CONCAT(TRIM(rt1.SHIPMENT_HEADER_ID),TRIM(rt1.SHIPMENT_LINE_ID))
         FROM     rcv_transactions rt1
         WHERE NOT EXISTS(
         SELECT 1
              FROM     rcv_transactions rt2
              WHERE     rt2.TRANSACTION_TYPE <> 'RECEIVE'
                        AND rt1.SHIPMENT_HEADER_ID = rt2.SHIPMENT_HEADER_ID
                        AND rt1.SHIPMENT_LINE_ID = rt2.SHIPMENT_LINE_ID
                        AND rt2.ORGANIZATION_ID = p_organization_id
    UNION
    SELECT /* + FIRST_ROWS */ pv.VENDOR_NAME Vendor_Name
         ,rsh.RECEIPT_NUM Receipt_Number
         ,TO_CHAR(rt.TRANSACTION_DATE,'Mon-DD-YYYY HH:MM:SS') Receipt_Date_and_Time
         ,msi.SEGMENT1 Part_Number
         ,msi.DESCRIPTION Part_Name
         ,rt.QUANTITY Quantity
         ,rt.UNIT_OF_MEASURE UOM
         --start 001
         ,NVL((SELECT DISTINCT DECODE (ASL_STATUS_ID,1,'New',2,'Approved','To be checked')
                   FROM po_approved_supplier_list pasl
                   WHERE pasl.item_id=rsl.ITEM_ID
                             AND pasl.VENDOR_ID(+) = pv.VENDOR_ID
                             AND pasl.VENDOR_SITE_ID(+) = pvs.VENDOR_SITE_ID),'No_data') ASL_Status
              --end 001
              ,TO_CHAR(TRUNC((((86400*(SYSDATE-rt.TRANSACTION_DATE))/60)/60)/24))|| ' Days ' || TO_CHAR(TRUNC(((86400*(SYSDATE-rt.TRANSACTION_DATE))/60)/60)-24*(TRUNC((((86400*(SYSDATE-rt.TRANSACTION_DATE))/60)/60)/24)))|| ' Hours' Days_and_hours_passed          ,DECODE(
                   NVL(msi.max_minmax_quantity,0) ,
              0 , 0 ,
              (NVL(msi.max_minmax_quantity,0) -
              NVL(inmohqd.onhand,0))
                   * 100
                   / NVL(msi.max_minmax_quantity,0)
              ) gap_percent
    FROM rcv_transactions rt
         ,po_vendors pv
         ,po_vendor_sites_all pvs
         ,rcv_shipment_headers rsh
         ,rcv_shipment_lines rsl
         ,mtl_system_items msi
         ,org_organization_definitions org
         --,mtl_onhand_quantities_detail moqhd
         ,(SELECT NVL(SUM(primary_transaction_quantity),0) onhand,INVENTORY_ITEM_ID item_id,ORGANIZATION_ID organization_id
         FROM      mtl_onhand_quantities_detail
         WHERE SUBINVENTORY_CODE NOT IN ('Wip_SF','Wip_Int','Reject','Scrap','FG Trading','FG')
         GROUP BY INVENTORY_ITEM_ID, ORGANIZATION_ID) inmohqd
    WHERE inmohqd.item_id(+) = msi.INVENTORY_ITEM_ID
         AND inmohqd.ORGANIZATION_ID(+) = msi.ORGANIZATION_ID
         --AND inmoqhd.SUBINVENTORY_CODE NOT IN  ('Wip_SF','Wip_Int','Reject','Scrap','FG Trading','FG')
         AND msi.INVENTORY_ITEM_ID = rsl.ITEM_ID
         AND rsh.SHIPMENT_HEADER_ID = rsl.SHIPMENT_HEADER_ID
         AND pv.VENDOR_ID = pvs.VENDOR_ID
         AND org.ORGANIZATION_ID = rt.ORGANIZATION_ID
         AND msi.ORGANIZATION_ID = rt.ORGANIZATION_ID
         AND pvs.VENDOR_SITE_ID = rt.VENDOR_SITE_ID
         AND pv.VENDOR_ID = rt.VENDOR_ID
         AND rsh.SHIPMENT_HEADER_ID = rt.SHIPMENT_HEADER_ID
         AND rsl.SHIPMENT_HEADER_ID = rt.SHIPMENT_HEADER_ID
         AND rsl.SHIPMENT_LINE_ID = rt.SHIPMENT_LINE_ID
         AND TRUNC(rt.TRANSACTION_DATE) <= TRUNC(p_tilldate)
         AND rsl.TO_ORGANIZATION_ID = p_organization_id
         AND CONCAT(TRIM(rt.SHIPMENT_HEADER_ID),TRIM(rt.SHIPMENT_LINE_ID)) IN
              SELECT CONCAT(TRIM(rt1.SHIPMENT_HEADER_ID),TRIM(rt1.SHIPMENT_LINE_ID))
              FROM RCV_TRANSACTIONS rt1
              WHERE rt1.TRANSACTION_TYPE = 'RECEIVE'
                   AND rt1.DESTINATION_TYPE_CODE = 'RECEIVING'
                   AND rt1.PO_HEADER_ID IS NOT NULL
                   AND NOT EXISTS(
                   SELECT 1
                        FROM     RCV_TRANSACTIONS rt2
                        WHERE     rt2.SHIPMENT_HEADER_ID = rt1.SHIPMENT_HEADER_ID
                                  AND rt2.SHIPMENT_LINE_ID = rt1.SHIPMENT_LINE_ID
                                  AND rt2.TRANSACTION_TYPE <> 'RECEIVE'
         )

    In this case, for selected columns, all data is same for one of the RMA with more than one line. So UNION will skip one of the records. However, shipment line id are different for both records, so by selecting it in select list is solving the problem and so no need to use UNION ALL. But, anyhow UNION ALL is better than UNION in performance as it does not require to sort. Then why I am facing this problem...
    Kindly suggest
    Regards,
    Sachin

  • Import and export performance issue

    Hi,
    There is #CLIENT_TEST# table having 2170178 records.
    I am using following command to exp and imp, which is taking up more time, around 4 to 5 hrs.
    Please help to improve the exp/imp performance. I'm using Oracle 10.2 version.
    _Export:_
    exp user/paswd@orcl file=<path> tables=(CLIENT_TEST) log=<path> buffer=409600  grants=Y rows=Y compress=N direct = Y
    _Import:_
    imp user/paswd@orcl  file=<path>  tables=(CLIENT_TEST)  log=<path>commit=Y  IGNORE=YES indexes=N Thanks in advance.

    Hi,
    you can have a look at the newer kind of export/import: EXPDP and IMPDP. See documentation: http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_overview.htm#SUTIL100
    It is faster than the old EXP/IMP.
    Herald ten Dam
    http://htendam.wordpress.com

  • Flickr API and cflickr - performance issue with my code.

    I using cflickr to access the Flickr api and display photos in a lightbox. My code is working, but incredibly slow. I'm assuming that I'm going about it in an incorrect way and hoping someone can point out a better way to do what I'm trying to accomplish. My speed issues develop when I'm trying to extract the image descriptions within a loop that is outputing the images to the page.
    Here is an example of the code that I'm using:
    using the following to grab the photos:
    <cfset photos = cflickr.photosets_getPhotos(photoset_id=72157624340881708 , auth_token=token) />
    I am then using the following to loop through the array of photos and and also retrieve the description for each image.
    <div style="width:423px; margin: auto;" id="gallery">
            <cfloop from="1" to="#arraylen(photos.photoset.photo)#" index="i">
                <cfset p = photos.photoset.photo[i] />
                <cfset img_desc = cflickr.photos_getInfo(photo_id=p.id).photo.description />
                <cfset img_desc = replace(img_desc, 'TRIP', '<br />TRIP') />
                <cfset title = photos.photoset.photo[i].title />
                <cfset title = title & "<br />" & img_desc />
                <cfoutput>
                <a href="#cflickr.getPhotoUrl(p, '')#" title="#title#"><img src="#cflickr.getPhotoUrl(p, 's')#"  /></a>
                </cfoutput>
            </cfloop>
        </div>
    The problem with the code is when it is making the request for img_desc inside of the loop to the Flickr api. Each instance of that call is taking on average 300 to 400ms and the array has over 300 items so it times out. Should I be retrieveing all of the image descritpions at once before the loop and if so how would I best link these with image data that they belong with? It seems like I'm going about this in a rather inefficient manner.
    I was hoping that I could call a function that retrieved all of the data that I need in one call, but so far I've been unable to find that.

    ( Grrr... this forum trashes emails better than any application I have ever seen.  Here is what my previous response actually said ...)
    <cfset photos = cflickr.photosets_getPhotos(photoset_id=72157624340881708 , auth_token=token)>
    I cannot say I have used it. But the cfc usage seems to follow the API pretty closely. So I took a quick look at the flickr forums, and one person suggests you can grab the descriptions too by adding the "extras" parameter.
    http://www.flickr.com/groups/api/discuss/72157594456853637/#comment72157623785775034
    So try using:
        <cflickr.photosets_getPhotos(photoset_id=72157624340881708 ,
             auth_token=token, extras="description")>

Maybe you are looking for

  • How to see the changes made for iPad in iTunes on my iPad?

    How to see the changes made for iPad in iTunes on my iPad? I've been transferring some pdf-files and changed the name on them in iTunes under the index books for my iPad device, but the changes do not show in iBooks-PDF. What to do?

  • How to change data in  jtable?

    Hai.I have a problem to change data in jtable.Can anbody help me to slove this? Think you in advance

  • Javascript rendered flash problem

    Hi,     I'm doing something kind of funky to facilitate some functionality.  I've got a client that has some camtasia style demos he wants to play of his product.  Problem is he wants the demos to play on top of the website and then have the ability

  • IPod reconized as camera and music

    My iPod is reconized as a camera on my windows xp, and my friend added some music to my ipod now how to I get that to iTunes

  • Need help with batch

    Hi forum, I'm using batch with CS5 to save JPG files in a new folder from Illustrator files located in another folder. I recorded an action while using save for web and devices to save a JPG file with the required options. With any options I tried in