WCCP 61 and 62 for WAAS?

What if, I wanted to use TWO wan optimizing pieces of hardware--One WAAS and one another vendor? Both "Head-End" devices would need to use a WCCP redirect off the same GIG and POS interace (with a different ACL and WCCP number) BUTTTT..the problem it seems, is the Cisco WAAS devices will only use 61 and 62 in promiscuous mode...while other vendors can do numbered modes...is this true? Or can you do something like
Gig0/0
ip wccp 10 redirect in <--Cisco waas
ip wccp 20 redirect in <--vendor2
etc..
Thanks for any help

Hi Alan,
WAAS currently only supports service groups 61/62. Note that these numeric designations are really just identifiers, and don't impact order of operations or anything else. So long as the 'vendor2' device above uses some other service group numbers besides 61/62, you should be fine.
Also note that if you are configuring WCCP on a software-based platform (ISR, 7200, etc.), you will also need to configure the global command 'ip wccp check services all'.
Please let us know if you have any additional questions.
Regards,
Zach

Similar Messages

  • Wccp redirection for waas on same platform as wccp for websense?

    just wondering if anyone knows if a Cisco router or switch can handle wccp redirection enabled for both waas and some other web content filtering appliance using a different service group?
    seems like the priority value would come into play determining which service group gets handled first?
    we currently do WCCP for WaaS on our 3945s.
    I am going to advocate to my customer that we separate this out for CPU load issues, config complexity issues, IOS issues, etc... but the question is going to come up - "can we do WCCP for different applications on our Catalyst 3750 core switch, or our 3945 WAN routers?"
    Thanks,
    Paul

    Hi Paul,
    Yes, it's technically possible to have WCCP redirection for several services even in those devices that don't support setting the priority. However, in this case, both WAAS and Websense need to redirect HTTP traffic, and that's what makes things complicated.
    Assuming you first want to send the traffic to Websense and then to WAAS, I would recommend doing the WAAS redirection only on the WAN link (with one service inbound and the other outbound). You can then configure Web-cache redirection inbound on the client vlan and, a service for the return traffic (I'm not sure if this is required for websense), inbound on the interface where the WAE is connected (with a redirect-list to match only the return direction)
    Even if it's possible to have both redirections in the same device, if possible, I would strongly suggest you to either use different devices for the redirection or to make them mutually exclusive (for example, not sending HTTP to WAAS), otherwise, if you make a small mistake with the configuration, you can end up with a redirection loop.
    Regards
    Daniel

  • Does introducing WCCP redirect for WAAS disrupt Netflow information?

    Before installing WAAS and WCCP redirect on some 6500 interfaces in our data center, those interfaces showed Netflow flows for users at a remote location accessing servers at our data center. Now with WCCP redirecting that traffic to the WAEs, I notice the only netflow flows for that remote location are UDP flows and some ICMP stuff.
    Is this an unintended consequence of installing WAAS - that netflow statistics are going to be skewed by not showing flows that are now accelerated?

    I believe your problem may be due to the fact that you are redirecting http
    based traffic per the ACL configuration. The sup720 uses wccp v2 as a default
    version,however, the Sup720 does NOT support the hardware-based redirection for the TCP port 80 when we enable wccpv2.
    http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/122sx/swcg/wccp.
    htm#wp1017009
    Support for Non-HTTP Services:
    WCCPv2 allows redirection of traffic other than HTTP (TCP port 80 traffic), including a variety of UDP and TCP traffic. WCCPv1 supported the redirection of HTTP (TCP port 80)traffic only. WCCPv2 supports the redirection of packets intended for other ports, including those used for proxy-web cache handling, File Transfer Protocol (FTP) caching, FTP proxy handling, web caching for ports other than 80, and real audio, video, and telephony applications.

  • Best practice with WCCP flows for WAAS

    Hi,
    I have a WAAS SRE 910 module in a 2911 router that intercepts packets from this router with WCCP.
    All packets are received by external interface (gi 2/0, connected to a switch with port configured in WCCP vlan), and are sent back to the router via internal interface (gi 1/0 directly connected to the router) :
    WAAS# sh interface gi 1/0
    Internet Address                    : 10.0.1.1
    Netmask                             : 255.255.255.0
    Admin State                         : Up
    Operation State                     : Running
    Maximum Transfer Unit Size          : 1500
    Input Errors                        : 0
    Input Packets Dropped               : 0
    Packets Received                    : 20631
    Output Errors                       : 0
    Output Packets Dropped              : 0
    Load Interval                       : 30
    Input Throughput                    : 239 bits/sec, 0 packets/sec
    Output Throughput                   : 3270892 bits/sec, 592 packets/sec
    Packets Sent                        : 110062
    Auto-negotiation                    : On
    Full Duplex                         : Yes
    Speed                               : 1000 Mbps
    WAAS# sh interface gi 2/0
    Internet Address                    : 10.0.2.1
    Netmask                             : 255.255.255.0
    Admin State                         : Up
    Operation State                     : Running
    Maximum Transfer Unit Size          : 1500
    Input Errors                        : 0
    Input Packets Dropped               : 0
    Packets Received                    : 86558
    Output Errors                       : 0
    Output Packets Dropped              : 0
    Load Interval                       : 30
    Input Throughput                    : 2519130 bits/sec, 579 packets/sec
    Output Throughput                   : 3431 bits/sec, 2 packets/sec
    Packets Sent                        : 1580
    Auto-negotiation                    : On
    Full Duplex                         : Yes
    Speed                               : 100 Mbps
    The default route configured in WAAS module is 0.0.0.0/0 to 10.0.1.254 (router interface).
    Would it be better that packets leave WAAS module by the external interface (in place of the internal interface) ?
    Is there a best practice recommended by Cisco on this ?
    Thanks.
    Stéphane

    Hi Stephane,
    We usually advise the following in such scenario with an internal module:
    "ip wccp 61 redirect in" the LAN interface.
    "ip wccp 61 redirect in" on the WAN one.
    "ip wccp redirect exclude in" on the internal interface between the WAAS and the router.
    That way, we are sure that no loops are created because of the WCCP redirection.
    Regards,
    Nicolas

  • Recommended Design for WAAS in both Data center and Branch Offices

    Hi All,
    I need to purchase different appliances for WAAS, but before I decide what to purchase, I need to know exactly how I am going to put these devices so that I can know which one to purchase and how the designs will be.
    My environment is as follows:
    I have two core routers (ASR 1000 series) at Data center, two 6509 switches (expecting to insert the ACE module, and FW module) and the I have access switches which connects servers.
    At the branch offices, I am expecting to place ASR1000 series also.
    Now, I need to know the recommended designs for these WAAS appliances so that, I can know in advance what to purchase(i.e. how many WAAS CM, Core WAE, and Edge WAE).
    Any input will highly be appreciated.
    Thanks,

    If you purchase the Standard Edition, your license supports:
    One installation of Cisco Security Manager on one Windows-based server.
    The configuration or management of 5 devices (in the Standard-5 option) or 25 devices (in the Standard-25 option). This excludes Catalyst 6500 and 7600 Series devices and their associated service modules.
    If you purchase either the Standard-5 or Standard-25 license, you cannot purchase an incremental device license. Your license is fixed at either 5 or 25 devices.

  • WAAS wccp and OTV on ASR1002

    Hi, There is any conflict between OTV on ASR1002 and wccp on Wave-694 configured in the same scenario?
    My scenario is 3 sites with ASR1002 for OTV cloud, a wave-694 at each site configured for wccp, and a 6807 in VSS mode as CORE-LAN. I wan to know if theres any conflict between wccp and OTV, 
    Attached is the logical map

    Hi,
    In order for the packet to be picked up by WCCP ... you'll need to have the packet Layer-3 routed (i.e. from one subnet to another).
    But one of the reasons for using OTV - is that you want to stretch the Layer-2 subnet between several locations ("bridging" across a Layer-3 network).
    So you'll never reach a layer 3 interface (SVI or routed) when communicating within the same VLAN/subnet.
    As I see your installation you only have one option (although with two flavours) here - that is to use some kind of "bridging" interception between the ASR and the 6800-VSS.
    Don't know whether this interface is 1Gigabit or 10Gigabit, but you could look into :
    1) using an "ordinary" Inline adapter on the WAVE-694 (this only works with 1Gigabit connection)
    2) using some kind of APPNAV interception where the adapter intercepts the bridged packet - this supports 10Gigabit connection, but you'll have NO failover, if the APPNAV device (which can be the WAVE-694 with a special module) of the APPNAV modules fails.
    Check this : www.cisco.com/go/appnav
    Best Regards
    Finn Poulsen

  • Interworking between WCCP and IOS firewall on ISR and ASR routers?

    I ran into a problem last year when running WAAS WCCP and IOS firewall IP inspection on the same 3945 router. They couldn't function at the same time. Cisco indicated that router IOS firewall and WCCP were compatible only when IOS zone-based policy configuration was used. Back then I was using IOS 15.1(1)T1 on the 3945 router and WAAS was version 4.2.3.
    I now have some sites with 2921, 3945, and ASR1002 routers that need to be both IOS firewall and WCCP for WAAS. Now with newer IOS releases, does the IOS firewall estill have to be zone-based policy configuration? Because classic classic IOS firewall is easier to configure for WAAS, just "ip inspection waas enable" command, I'd prefer the easier configuration.
    What about ASR1002 router IOS firewall with WCCP? I have never implemented that before. I was trying to find some deployment examples or configuration guides from Cisco, but was not able to.
    Thanks for any help.
    Gary

    I'm assuming you placed service group 61 and 62 on the router LAN, WAN inbound directions. Did you apply inspection to LAN to WAN direction or WAN to LAN direction?
    Did you also used WCCP and IOS firewall on ASR routers?
    Thanks a lot

  • WCCP and ISDN / Dialer

    We have two routers running the same IOS version in our core - c7200-is-mz.123-10a.bin. One terminates a number of tunnels and the other has a number of dialer interfaces associated with an ISDN PRI. Each of our site routers has a tunnel going to the core (via an ADSL connection) and a backup ISDN interface with a dialer configured. When we are running on the primary links everything works fine. When we are running on the backup links (the ISDN) WCCP redirection seems to prevent clients from accessing services on TCP in the core (I can telnet to the core ISDN router from a PC on site, but can't access anything else). Ping always works fine - hence my suspicions about WCCP. If I disable WCCP on the core router with the ISDN links backup connections work fine.
    Our remote routers use c2800nm-advsecurityk9-mz.124-11.T4.bin.
    My question is - is there any issue with WCCP redirection and dialer interfaces?
    Below is the relevant config for the routers that don't work (addresses, names and numbers have been sanitized.
    corerouter#
    ip wccp 61
    ip wccp 62
    interface Dialer183
    description Backup DoD for remote site
    bandwidth 64
    ip address 192.168.1.1 255.255.255.252
    ip wccp 61 redirect out
    ip wccp 62 redirect in
    encapsulation ppp
    dialer pool 2
    dialer remote-name siterouter
    dialer idle-timeout 300
    dialer enable-timeout 60
    dialer wait-for-carrier-time 10
    dialer caller 222222
    dialer-group 1
    snmp ifindex persist
    ppp authentication chap
    End
    siterouter#sh run
    ip wccp 61
    ip wccp 62
    interface Dialer1
    description Backup DoD to the core via ISDN
    bandwidth 64
    ip address 192.168.1.2 255.255.255.252
    ip wccp 62 redirect in
    encapsulation ppp
    dialer pool 2
    dialer remote-name corerouter
    dialer idle-timeout 300
    dialer enable-timeout 60
    dialer wait-for-carrier-time 10
    dialer string 111111
    dialer caller 222222
    dialer-group 2
    ppp authentication chap
    end

    Zach,
    I've tried that as you suggested and it made no difference. I had seen a bug on the bugtracker about process switched packets possibly not being WCCP redirected correctly, so I have also tried ensuring that CEF was enabled, and removing compression in case that made the packets process switch.
    I have also tried removing the multilink and ensuring that only one ISDN B channel is pulled up for that dialer interface. That made no difference.
    I have verified that it is the router in the core that is causing the issue because I can have the remote site connect to the core via ISDN and have WAAS optimise traffic from that remote site to another remote site via the core (if I disable WCCP in the core).
    Thanks,
    Peter

  • What ports need to be open on Fw for Waas Communication--Urgent

                       Hi All,
    This product is new to need your help in configuring this. I am explaining the architecture below:-
    We have a requirement to use WAVE-594-K9 Software Release 5.3.1 and in our Manila location and it will not talk to Waas central Manager in our client location instead client has installed one same model Wave-594 in PHX.
    So now client has said it will only be used for caching contents and not for optimizing, they have some video training on web which will be passed through this wave and for making them highly/fastly available to agents they want to use this.
    We have installed one Wave in Manila in application-accelerator mode and using PBR to redirect the desired traffic via Wave. As per our client Manila Wave will talk to PHX wave and PHX wave will get registered to Waas Manager in client network.
    We have firewall between PHX wave & Manila wave, please let me know do we need to opened tcp/udp ports on FW for opening the communication between these two waves?
    and what else i need to configure on Manila wave?
    This is very urgent quick reply will be highly appreciated!!
    Thanks!!
    Bhisham

    Thanks for the quick reply Kanwal!!
    I checked with my team in PHX and we have Juniper FW in between these two Wave's, so what i understand from the links which you have shared.
    In Manila Wave i need to configure that in Directed Mode and udp port 4050 needs to be opened bi-directionally on Juniper FW between IPs configured on wave devices.
    In Manila we have 10.111.x.189 (Virtual-Blade IP) & 10.111.x.190 IPs & in PHX we 63.149.23.x & 63.149.23.x (VB) so from both IPs we required to open udp 4050 bi-directionally? Want to be sure before raising any request :-)
    In PHX wave i am not sure whether we can configure that in directed mode and if it’s not then also it will work by opening port 4050 on FW Right?
    In last our client was saying that Manila Wave will only be used as cache engine (VB is configured as content-engine) and it will download contents from PHX Wave (which is registered to CM at client side), what does it mean and do i need to do any special config on wave to achieve this?
    I am very new to this device and lot of research on net confused me a lot, please don’t mind!!
    Will wait for your reply then only i will raise request with FWteam.
    Thanks,
    Bhisham

  • Wccp and Sophos Web Appliance

    I am new to WCCP and I am having trouble getting the Sophos Web Appliance to Connect to a 6509e port channel. The Web app is on a VM host and the host is connected to the 6509 by two interfaces on a port channel.
    Here are the wccp parts of the config:
    ip wccp web-cache group-list 98 password
    Standard IP access list 98
        10 permit 172.18.4.55 (1403 matches) (host)
    sh ip wccp
    Global WCCP information:
        Router information:
            Router Identifier:                   10.1.18.251
            Protocol Version:                    2.0
        Service Identifier: web-cache
            Number of Service Group Clients:     0
            Number of Service Group Routers:     0
            Total Packets s/w Redirected:        0
              Process:                           0
              CEF:                               0
            Redirect access-list:                -none-
            Total Packets Denied Redirect:       0
            Total Packets Unassigned:            0
            Group access-list:                   98
            Total Messages Denied to Group:      0
            Total Authentication failures:       735
            Total Bypassed Packets Received:     0
    sh ip wccp web-cache view
        WCCP Routers Informed of:
            -none-
        WCCP Clients Visible:
            -none-
        WCCP Clients NOT Visible:
           -none-
    #sho ip wccp web-cache det
    WCCP Client information:
            WCCP Client ID:          172.18.4.55
            Protocol Version:        2.0
            State:                   NOT Usable (Initializing)
            Redirection:             L2
            Packet Return:           L2
            Packets Redirected:    0
            Connect Time:          00:00:04
            Assignment:            MASK
            At one time I had the Server listed in WCCP Clients visible but, now it's gone. I am concerned about the State:                   NOT Usable (Initializing) statment. It is not changing. Has anyone had this problem? Of course Sophos said it was easy!
    Thank you in advance.

    The fix is to white list download.acrocomcontent.com for future reference.
    Bye!

  • I will give $100 to the person who can solve this problem once and for all.

    I'm not even kidding, dude. We can do PayPay, I'll mail you a check, whatever you want. That is how frustrating this is, that is how badly I want it fixed, and that is how much overtime I've worked lately thanks to being shorthanded at my place of biz-nass. I'm an hombre of my word, so if you actually come up with a solution that works, the cheddar will be yours. Okay let's hit it.
    It's the skipping thing. First 10-12 seconds of a song - every song - will play fine, then iTunes skips, stutters, and basically does the god **** hokey pokey and shakes it all about. It happens most notably with songs that I double-click to play, but I'm pretty much noticing it on any song now after a transition is made. I've been using iTunes for ages and this didn't happen until the upgrade to 7.3. I have poured over these forums for nearly a week, tried every solution offered (even offered one of my own that actually worked for maybe four days before the whole thing started up again) and NOTHING. To save us all some time, here's what I've tried:
    - Downgrading. I'll admit I didn't do this correctly at first. I didn't remove everything according to the support guidelines, but I went down to version 6.05 and that did nothing to quell the skipping. I upgraded back up to 7.3 because hey, why not, and attempted the remaining trial fixes. I have since removed both iTunes and Quicktime, step my step according the the guidelines, and not only have I downgraded to my current running version of 7.2, I put both of the programs on my F drive (as opposed to the default C drive), my gigantic bonus internal drive where I typically keep nothing but my giganto music library. I thought putting the app on the same drive as the music might fix things. I thought wrong. Dead wrong. Dead diddly dum iddly wrong.
    - Quicktime settings. My settings for Quicktime have always been in safe mode with the output size at 16 bits. So when I saw this "fix" I just rolled my eyes. I used to have that dealio back in the dizzle when iTunes would just get all static-y and skip when I'd open other programs or even just minimize it, so that fix worked for that, but it's nothing compared to this. In simpler terms, that fix is like Superman, and this skipping? The kryptonite. Actually that's probably not a great metaphor, but we've got a ways to go and this is going to get mucho boring if I don't throw some chuckles out there. Ready for fix three? Giddy up!
    - Turn off cross-fade? It's never been on. I never really got the appeal of that, and also I think it resulted in some minor skipping back in the d. I also attempted similar fixes like turning off the equalizer, messing with the volume, closing last.fm, REMOVING an old album art retrieval program from back before iTunes got its **** together with album art, ANYTHING that might interfere with playback was turned off, removed, b-slapped, and sent crying home to its moms. Nada.
    - Recreating my library. This was the fix I offered someone else, because it actually did the trick for a few days. After an entire night spent reimporting 73 gigs worth of music, it played fine, but I did lose a ton of album art, playcounts, etc, so you can imagine how ****** I was when this wound up not being a permanent fix. I was beyond ******. I was livid. But I was taught in the dojos of my youth to channel my anger into productivity, and instead of sculpting a lovely bonsai tree, I set out to fix this pup once and for all.
    - That darn anti-virus! This was the final fix I tried, even though I wasn't using any of the culprit programs listed in the forums as causes of the skipping, and even those offering this as a solution confessed it was pretty hit or miss. But having tried everything else, having resorted to playing my music on MediaMonkey of all things, I figured I'd give it a shot. I used (reason for the past-tense forthcoming) AVG Anti-Virus, Lavasoft AdAware and something called Spyware Doctor that I think just came bundled with XP. I removed all of them. I had just done a virus scan recently to see if that's what was causing this, so I figured I'd be okay until I could redownload them after this fix wound up not working. And it didn't work, so there's that.
    There may be a couple of fixes I've tried that I'm forgetting now, since I'm delirious after spending practically every night for the past week trying to fix this problem, while my girlf, Heather, sits and laughs at me while watching Clark and Michael on her MacBook. In fact, she's laughing at the $100 offer as I type this, but I assure you, if you offer a solution that works, the money is as good as yours. If you come up with a workable solution, I'll have to test and make sure it isn't temporary like the recreating my library thing, but I won't leave you hanging once I'm satisfied that it's fixed for good. I know it's unorthodox, perhaps illegal in some states, but I'm desperate here, peeps. The ball is in your court, and I beg you not to give up the rock.
    Gateway E-2000 Windows XP

    I think the problem lays with Last.fm. I had the same exact problem as you. In your processes screen, end the task "lastfmhelper.exe" Last.fm still scrobbles. The tracks don't skip, although I notice there is still a bit of a lag in the first part of the song - but if you can deal with that, no skipping. I think you will have to end that task everytime you boot up your computer, or uninstall last.fm completely until they fix it; it is a bug in their software, as opposed to iTunes.

  • I was recently searching in my iPhone 3GS for a phone number, and the search hits revealed text messages that I have long ago deleted and would rather not have in my iPhone. How do I delete these once and for all?

    It was the strangest thing. You would think that once you delete a message off your phone it is gone.
    But in the "search iPhone" feature several key numbers like an area code reveal phone numbers of people
    who aren't in my contact list, specifically the first few words of text messages that I deleted long ago.
    I would like to eliminate these once and for all.
    Will "Erase Content and settings" do this for good? Once I restore the phone will they come back?
    Thanks.
    ******note found another thread relating to this********no need to reply********
    Message was edited by: stewart g.

    The terms of service of the Apple Support Communities prevent us from helping anyone with a jailbroken phone.
    You're on your own.  Good luck.

  • Someone please settle this problem once and for all! (Duplicate Tracks)

    I had an iPod about two years ago and ended up getting a different mp3 player. I now have a new 5G iPod and am having the same issue I had 2 years ago for the short time I had my old iPod. Duplicate tracks showing up in my iPod's library. I searched through these forums and found a lot of people having these problems, but none of the suggestions I read in the other threads seemed to do anything.
    This seems to be an underlying problem for a lot of people and I don't understand why Apple would make their players this ********. I've had several other mp3 players in the last 2 years and you put in an artists' name and all the songs appear together under one name and are simply organized by Album, genre, year, etc... but, I loaded all my songs onto the iPod and even though tracks all contain the same artist name I get multiple listings for the same artist.
    For instance, if I have several albums all of their filenames contain the artists' name, followed by a dash and then the name of the song. The artist name in the iTunes tag all match exactly as well. So why in the **** do names show up multiple times? I had this problem two years ago and it was never resolved, and I checked all over the boards and just couldn't come to a solution. I'll tell you one thing though, I can't believe it's this hard to get all of one artist under one listing on the player. Kinda dumb.
    Please forgive me if this topic has been discussed to death. I just couldn't get anything useful out of any previous topics I looked at.

    Alright I just checked my tracks and settings and what not and added some more music now I get a bunch of extra multiple listings. This is so ********. lol! Here is a screenshot of my iPod that I just took. Now this is just dumb because there aren't many ways that you can mess up the spelling in the name 2Pac. It's a 2, a capital P, a lowercase a, and c.
    http://home.comcast.net/~johnnybukkake/iPod_Screenshot.jpg
    The first listing gives me almost all his albums just fine. Then for the second listing I get another one of his full albums. And for the last three listings I get a single song in each of them. I mean really, Apple... How does a flaw this stupid rear it's ugly head into so many people's players?!

  • Account needs sorting once and for all PLEASE!

    Hi, I have sent an email to moderators here as I did last time. Last time I was given a rebate, for incorrect bill. My bill AGAIN has not been worked out correctly. To be frank I am fed up of rubbish BT not sorting out my problems since September last year.
    One thing cannot be done at a time, my whole account especially online is all in a mess, nothing is as it should be, and someone needs to go on a computer to go through it with a toothcomb to fix it. Rebate on a bill is not going to change the fact my bills are being generated incorrectly. STILL!
    I wish to SPEAK by phone to anyone who can fix this as I am not going to continue this way with BT, and if they even try to charge me for no honouring my side of the contract, then I shall end up taking this up with a solicitor. I have even been charged £10 on my new bill for not honouring my direct debit, considering one of the foreign advisors had promised my bill would not go out my bank, but it did try to, twice and I was charged £50 from my bank, and you even try to charge me £10 for YOUR mistakes.
    I am fed up. I have 8 months left on this so called contract. I do not intend to go on like this for that amount of time. I want my account sorted out once and for all PLEASE!
    I apologise to you forum admin, and I know this is NOT your error, I am merely really frustrated at the lack of communication to fix my problems and have spoken via phone 3 times since my last forum entry to try fix my online account, and have been promised again it would be fixed and it is not.
    Thank you

    Hi thebillies,
    We were looking into this for you and had reported a fault to try and get to the bottom of the discrepancies.
    I'll make sure that you get an update on this later today.
    Thx
    Craig
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)”
    td-p/30">Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • How to add cursor and for loop

    PROCEDURE "TEST" is
    bala number;
    ins1 number;
    ins2 number;
    BEGIN
    select sum(bal) into bala from (select sum(acp.acp_totbal) bal,acp_instruid from cs_strmap_t map,cs_instru_strips strip,cs_acpos_bkp acp
    where c_int_instruid=c_srm_prncplinsid
    and c_srm_prncplinsid=acp_instruid
    and acp_acntnum!='SG030001'
    group by acp_instruid
    union
    select sum(acp.acp_totbal) bal,acp_instruid from cs_strmap_t map,cs_instru_strips strip,cs_acpos_bkp acp
    where c_int_instruid=c_srm_prncplinsid
    and acp_acntnum!='SG030001'
    and acp_instruid=c_srm_prntinsid
    group by acp_instruid)view1;
    dbms_output.put_line(bala);
    select acp_instruid into ins1 from cs_strmap_t map,cs_instru_strips strip,cs_acpos_bkp acp
    where c_int_instruid=c_srm_prncplinsid
    and c_srm_prncplinsid=acp_instruid
    and acp_acntnum='SG030001';
    dbms_output.put_line('principal'||ins1);
    select acp_instruid into ins2 from cs_strmap_t map,cs_instru_strips strip,cs_acpos_bkp acp
    where c_int_instruid=c_srm_prncplinsid
    and acp_acntnum='SG030001'
    and acp_instruid=c_srm_prntinsid;
    dbms_output.put_line('parent'||ins2);
    update cs_acpos_bkp
    set acp_totbal=-bala
    where acp_instruid=ins2
    and acp_acntnum='SG030001';
    END;
    i have written this code,i need to use cursor and for loops to get more than one rows and update also.
    if there are more than 1 rows in cs_strmap_t,then the procedure throws an error stating that it cannot take 2 rows.
    Edited by: 850836 on Apr 7, 2011 11:43 PM

    PROCEDURE "TEST" is
    bala number;
    ins1 number;
    ins2 number;
    CURSOR cur_1 IS
    select sum(bal) bala from (select sum(acp.acp_totbal) bal,acp_instruid from cs_strmap_t map,cs_instru_strips strip,cs_acpos_bkp acp
    where c_int_instruid=c_srm_prncplinsid
    and c_srm_prncplinsid=acp_instruid
    and acp_acntnum='SG030001'
    group by acp_instruid
    union
    select sum(acp.acp_totbal) bal,acp_instruid from cs_strmap_t map,cs_instru_strips strip,cs_acpos_bkp acp
    where c_int_instruid=c_srm_prncplinsid
    and acp_acntnum='SG030001'
    and acp_instruid=c_srm_prntinsid
    group by acp_instruid)view1;
    BEGIN
    select acp_instruid into ins1 from cs_strmap_t map,cs_instru_strips strip,cs_acpos_bkp acp
    where c_int_instruid=c_srm_prncplinsid
    and c_srm_prncplinsid=acp_instruid
    and acp_acntnum='SG030001';
    dbms_output.put_line('principal'||ins1);
    select acp_instruid into ins2 from cs_strmap_t map,cs_instru_strips strip,cs_acpos_bkp acp
    where c_int_instruid=c_srm_prncplinsid
    and acp_acntnum='SG030001'
    and acp_instruid=c_srm_prntinsid;
    dbms_output.put_line('parent'||ins2);
    for var_for in cur_1
    loop
    update cs_acpos_bkp
    set acp_totbal=var_for.bala
    where acp_instruid=ins2
    and acp_acntnum='SG030001'
    and abs(acp_totbal)>abs(bala);
    dbms_output.put_line(bala);
    end loop;
    END;
    i wrote the following procedure,but the balance is not getting updated.
    Getting this errors when there are more than 1 row in cs_strmap_t table
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: line 22
    ORA-06512: at line 2

  • HELP NEEDED!! I bought a brand new mac air 11 inch a month ago, and for three days now I can't switch it on.when I do, i can hear the machine is on, but nothing else happens. (yes it is charged). please help

    HELP NEEDED!! I bought a brand new mac air 11 inch a month ago, and for three days now I can't switch it on.when I do, i can hear the machine is on, but nothing else happens. (yes it is charged). please help.
    I bought it in South Africa and I am currently in Israel.

    thank you for the response.its not working, tried that. i can switch the machine on and off, can hear the machine when i hold it to my ear. but nothing works, not the screen, not the sound, nothing.

Maybe you are looking for

  • Not able to start Essbase Studion in 11.1.2

    Hi All, I installed 11.1.2 in my laptop and all the components are working fine except Essbase Studio. I am getting the following error when i start Essbase Studio Console Client in a Popup window. An Error occured please see the logfile. C:\Users\sv

  • Doubt in BDC ( Material master)

    Hi frnds,   I am creating BDC for material master.In that BDC if i load the data in 'A' mode its work properly. In 'E' Mode in the last page its asking every time for Save, In 'N' Mode its not upload how to do this. This is my code : perform bdc_dynp

  • MIC changes in routing/inspection plan

    Hi, we have created qualitative inspection characterisics (without characteristics attribute control indicator) with incomplete copy model type. This is already assigned in inspection plan and in routing. Now our users want to assign characteristics

  • Certification against Dev Suite 10g R2

    We are currently using Headstart 6.5.4.0.1 Our AS version is 10gr2 (10.1.2.0.2) we want to upgrade to AS 10.1.2.2 but are not certain if Headstart is certified from the Headstart documentation: Before installing this patch, you need the following sof

  • Avoid repaint in JLayeredPane components

    I have a program including a JLayeredPane that contains a JComponent and a JPanel. Both components are set on different layers of the JLayeredPane. I use the JPanel for painting, so I want to avoid unnecessary repaints if I can. The problem is that w