Need some help understanding vtp issue

Hi all,
I had a problem at work today that im still trying to understand.
We have a vtp domain at work with various switches in. I added a new switch into the network, configured the vtp domain info and it joined fine. data was working ok on the network. Trunk was working fine to the uplink switch and I added the voice vlan so that we could get the voip phones working.
Data was ok but the phones werent.
I checked other switches in this domain and they didnt  allow specific vlans on the trunk ports between switches for this voice vlan. However in order to fix my problem I had to specifically allow this voice vlan under 'switchport trunk allowed' on the uplink switch.
I dont understand why this switch had to allow this vlan when none of the other uplink switches in that domain had to, its like the vlan was being pruned out but shouldnt have been.
I guess i'm just not understanding vtp well enough. I just thought that if each end was trunked it should allow all vlans?
Someone try and help me understand this as it felt like a school boy error if all I had to do was allow the vlan on the trunk!!
Cheers
Steve

I think thats my point, 
Before I explicitly allowed the vlans across the trunk the voice was not working, both the spur and uplink switch gig interfaces were just straight trunks without explicitly set vlans so the trunk should have carried the voice vlan the same as the data one.
However the voip phones would not work unless I explicitly allowed both data and voice vlans on the uplink switch gig port. 
This is why I got confused as no where else in the domain did any of the other uplink switches have to explicitly allow any vlans on their trunks!
When the senior network engineer looked at it he immediately advised they were working as I had not added switchport trunk allowed vlan... on the uplink and that they were being 'pruned' from the interface.
Make sense?
Steve

Similar Messages

  • Need some help understanding the way materialized views are applied through

    Hi, I need some help understanding the way materialized views are applied through adpatch.
    In patch 1, we have a mv with build mode immediate. When applying it PTS hang due to pool performance of mv refresh.
    So we provide patch 2, with that mv build mode deferred, hoping it'll go through. But patch 2 hang too on the same mv.
    How does this work? Is that because mv already exists in the database with build immediate, patch 2 will force it to refresh first before changing build mode? How to get over this?
    Thanks,
    Wei

    Hi Hussein,
    Thank you for the response.
    Application release is 11.5.10.
    Patch 1 is MSC11510: 8639586 ASCP ENGINE RUP#38 PATCH FOR 11.5.10 BRANCH
    Patch 2 is MSC11510: 9001833 APCC MSC_PHUB_CUSTOMERS_MV WORKER IS STUCK ON "DB FILE SEQUENTIAL READ" 12 HOURS
    The MV is APPS.MSC_PHUB_CUSTOMERS_MV
    This happens at customer environment but not reproducable in our internal environment, as our testing data is much smaller.
    Taking closer look in the logs, I saw actually when applying both patch 1 and patch 2, MV doesn't exist in the database. So seems my previous assumption is wrong. Still, strange that patch 2 contains only one file which is the MV.xdf, it took 7 hours and finally got killed.
    -- patch 1 log
    Materialized View Name is MSC_PHUB_CUSTOMERS_MV
    Materialized View does not exist in the target database
    Executing create Statement
    Create Statement is
    CREATE MATERIALIZED VIEW "APPS"."MSC_PHUB_CUSTOMERS_MV"
    ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 10 MAXTRANS 255 LOGGING
    STORAGE(INITIAL 4096 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 4 BUFFER_POOL DEFAULT)
    TABLESPACE "APPS_TS_SUMMARY"
    BUILD IMMEDIATE
    USING INDEX
    REFRESH FORCE ON DEMAND
    WITH ROWID USING DEFAULT LOCAL ROLLBACK SEGMENT
    DISABLE QUERY REWRITE
    AS select distinct
    from
    dual
    AD Worker error:
    The above program failed. See the error messages listed
    above, if any, or see the log and output files for the program.
    Time when worker failed: Tue Feb 02 2010 10:01:46
    Manager says to quit.
    -- patch 2 log
    Materialized View Name is MSC_PHUB_CUSTOMERS_MV
    Materialized View does not exist in the target database
    Executing create Statement
    Create Statement is
    CREATE MATERIALIZED VIEW "APPS"."MSC_PHUB_CUSTOMERS_MV"
    ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 10 MAXTRANS 255 LOGGING
    STORAGE(INITIAL 4096 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 4 BUFFER_POOL DEFAULT)
    TABLESPACE "APPS_TS_SUMMARY"
    BUILD DEFERRED
    USING INDEX
    REFRESH COMPLETE ON DEMAND
    WITH ROWID USING DEFAULT LOCAL ROLLBACK SEGMENT
    DISABLE QUERY REWRITE
    AS select distinct
    from dual
    Start time for statement above is Tue Feb 02 10:05:06 GMT 2010
    Exception occured ORA-00028: your session has been killed
    ORA-00028: your session has been killed
    ORA-06512: at "APPS.AD_MV", line 116
    ORA-06512: at "APPS.AD_MV", line 258
    ORA-06512: at line 1
    java.sql.SQLException: ORA-00028: your session has been killed
    ORA-00028: your session has been killed
    ORA-06512: at "APPS.AD_MV", line 116
    ORA-06512: at "APPS.AD_MV", line 258
    ORA-06512: at line 1
    Exception occured :No more data to read from socket
    AD Run Java Command is complete.
    Copyright (c) 2002 Oracle Corporation
    Redwood Shores, California, USA
    AD Java
    Version 11.5.0
    NOTE: You may not use this utility for custom development
    unless you have written permission from Oracle Corporation.
    AD Worker error:
    The above program failed. See the error messages listed
    above, if any, or see the log and output files for the program.
    Time when worker failed: Tue Feb 02 2010 19:51:27
    Start time for statement above is Tue Feb 02 12:44:52 GMT 2010
    End time for statement above is Tue Feb 02 19:51:29 GMT 2010
    Thanks,
    Wei

  • Need some help understanding VPNs on Windows 8.1

    I set up an incoming VPN connection on a home PC - myVPNserver - running Win 8.1 Pro (by going to Network Connections/ALT File/New Incoming Connection).  I enabled Port Forwarding on my NetGear Router to forward port 1723 to the
    internal IP Address of myVPNserver.  I then set up a Client VPN connection on my Surface also running Win 8.1 Pro (by going to Control Panel/Network & Internet/Network and Sharing Center/Set up a new Connection) and providing the new VPN Connection
    with the external IP address of my NetGear Router. 
    I can tether my Surface to a shared internet connection my mobile phone and connect to myVPNserver.  I can see the Incoming Connections on myVPNserver change from "No clients connected" to "1 client connected" and then I see
    a new connection with my username, connected, and WAN Miniport (PPTP).  So it appears that I have successfully created a VPN connection over the Internet. 
    However, I can't see and files on myVPNserver, I can't use Remote Desktop Connection via this VPN to myVPNserver, nor does this VPN connection have any connectivity to the internet or any other services on my LAN.  I can
    connect but that's all. 
    So what am I missing here?  Do I need to set some other functions/services/settings on myVPNserver or on the client or on the router? 
    Totally baffled

    Hi,
    Regarding current situation, please try  following suggestions:
    First, if you install any third part security application with web protection or firewall, please disable or remove it.
    Second, please configure a static IP address for your VPNserver.
    Third, try to use Private network on your VPN server to see what’s going on.
    Hope these could be helpful.
    Kate Li
    TechNet Community Support

  • HT5654 After updating iCloud application on Vista I am unable to access iTunes, I get the following message: (Need to reinstall application, APSDameon.exe, MSVCR80.dll cannot be found)    I need some help rectifying  this issue because I cannot reinstall

    Hello,
    I have installed the update that was sent on or around January 24th - 26th 2014, after the failure of the apple iTunes update the iCloud update was installed.  Ever since these 2 updates I am unable to open iTunes and I receive the following message: (need to reinstall iTunes application, APSDameon.exe and MISVCR80.dll cannot be found).  I have tried reinstalling iTunes and cannot do so, I really do not want and cannot afford to restore my pc to a previous date because of new data on my PC.  I am requesting assistance from support so that I can rectify this issue, thanks in advance for any assistance you may provide.    

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • Need some help understanding AUR please solved

    Still learning the command line here sooooo....
    I've read and reread everything recommended regarding AUR.
    Somewhere I'm overlooking or missing something.
    The AUR users guide says to:
    Users can access the AUR [community] repo by adding/uncommenting this line in their pacman.conf file:
    Include = /etc/pacman.d/community
    Well that line doesn't exist so the guide says to:
    If /etc/pacman.d/community does not exist then it should be created and contain the following:
    [community]
    Server = ftp://ftp.archlinux.org/community/os/i686/
    Evidently I might have a pacman.d/community, but when I pull it up with nano, it's a totally blank page which leads me to believe it's there but not actually created.
    I can't find anything that tells me what I need to do to make sure I've created a pacman.d/community.
    Is a blank page right or shouldn't there be some text in there with comments?
    I can and have installed a few things with yaourt, but I know that I've been lucky so far with that as I know something isn't right.
    I have to use my user password and then my root password in that order or nothing will finish installing so I've stopped using it until I have a better understanding of it.
    Man,, all I wanna do is try out doom3-phantasm,,, for now anyway.
    Last edited by windtalker (2008-04-04 00:40:26)

    windtalker wrote:
    Floke:
    I tried that, pacman won't synch with that addy.
    Brebs;
    That's how pacman.conf is set for all the repo's listed. [mirrorlist]
    I know phantasm is in unsupported, I'm trying to figure out how to get unsupported added to pacman so I can get it.
    Theringmaster:
    Yaourt is installed and as I've said I've used it, but, as I also said, each time I use it just before it completes the install it asks for my password, which is fine, but I have to first enter my user password which it refuses, then my root password which it accepts.
    It flat wil not settle for me simply using my root password like it should.
    I've tried several times and this is something that I'm missing also somewhere somehow.
    To my way of thinking, it should be like pacman and accept my root password no questions asked.
    I'll also add that I've tried installing phantasm with yaourt.
    It found all the depends and compiled the complete package.
    When it came to the stage to do the actual install, it asked for a pasword.
    I've tried my user pasword followed by my root password and was kicked out.
    I've tried just my user password and was rejected.
    I've tried my root password and was rejected and when re-entered was kicked out.
    Unless things have changed with Arch and the guide is out of date, there should be a way to add unsupported to pacman.
    I'll try flokes suggestion of changing the permissions in sudo and see what happens.
    Thx guys.
    edit: How the heck does one save a change in VI?
    you do have to have sudo installed and configured (just a three step process see wiki) to use yaourt properly. to save a change in vi press :wq

  • Need some help understanding plugin for Outlook

    Testing out the 7.3 plugin for Outlook. I am not clear on how the flagging of spam/not spam etc. works. We have local IronPort devices. We are not cloud based. When a user flags a message as spam in the Inbox, the Admin Guide says Cisco updates the anti-spam filters so the user will not receive emails like this in the future. Not clear how this works. I understand the email is getting submitted to Cisco for analysis but how do they update spam filters for just that one user? I can understand if we were using a cloud device but as I said we have local hardware. Need to understand this process and the Admin Guide falls short of explaining it.

    Reporting spam/phish from Outlook via the plug-in only does that.  It is packaging up the message and sending the message example off to our @access.ironport.com address for submission from that end-user.  The plug-in itself is not actually doing any work to update the anti-spam on your appliance.  These submissions are a work by themselves that is submitted and then reviewed from the rules writing process.  In time, these submissions are scored, updated, and then written into the current IPAS (IronPort Anti-Spam) rules sets that are published back out to the ESA(s) themselves.  So - as long as your ESA is set to get updates (by default, each 5 minutes), then you will get the updated rules --- and these rules are for everyone globally.  
    Hope that helps!  If not - let me know.
    -Robert

  • Need some help understanding the last portion of this simple loop.

    public static void main(String[] args)
            int j = 3;
            for(int i = 5; i > j; i -= 3)
                do
                        System.out.printf("%-+3d, %-+3d\n", j, i);
                while(j-- >= 3);
        }Here is what I understand:
    the for loop starts, with int i equal to 5 and j equal to 3. Since i > j, it runs the statement (Do While loop). The Do While loop prints the values to the screen. Then since j is equal to 3, it will do the Do While loop again, first decrementing j by 1. So j is 2 and i is 5.. those get printed. Then since j is not >= to 3, the loop ends and backs out to the For loop.
    Here is where I am confused. I know that j gets decremented to 1 before it backs to the For loop. I understand everything so far. However, I know that the Do While loop runs again, printing 1 for j and 2 for i. So I gather that since i was greater than j, 3 was subtracted from i... then the Do While ran, printing the new values... and stopped because j isn't >=3. So j becomes zero (though it won't ever print that) but I don't understand how the loop finally ends.
    Any hints? I tried looking at code examples in several books but none have that kind of thing.. only ones that talk about when i is less than a value to stop when that boolean is false. However in this code, i so far has always been greater than j.
    What makes the loop end?
    Thanks in advance,
    SYD
    Edited by: SYD527 on May 15, 2008 1:29 AM

    Well this has to do with the fact that a do while loop checks its condition after running the content of the loop, so even
    do  {
    /* some code */
    } while (false); will atleast run once.
    Each time the for loop goes into a new iteration the do while loop is excecuted atleast once.
    HTH
    Lima

  • Query Discrepency - Need some help understanding Grouping/Parentheses.

    When I run:
    SELECT TECHNICAL_SERVICE,LOGICAL_NAME,COUNT("NUMBER"),ROUND(AVG(CLOSE_TIME-OPEN_TIME),2) as time
    from SMINCREQ
    where
    TECHNICAL_SERVICE='CLIENT SOFTWARE INSTALLATION' or TECHNICAL_SERVICE='REIMAGE'
    and
    open_time>'7/1/2011' GROUP BY (TECHNICAL_SERVICE,LOGICAL_NAME) ORDER BY TIME DESC
    I get the folowing with a total of 1925 rows minus the 3067 from the top weird row returned....
    ++++++++++++++++
    TECHNICAL_SERVICE     LOGICAL_NAME     COUNT(NUMBER")"     TIME
    CLIENT SOFTWARE INSTALLATION     -     3067     6.72
    REIMAGE     WINDOWS 7 (client os)     194     2.1
    CLIENT SOFTWARE INSTALLATION     BLANK (blank)     151     6.1
    CLIENT SOFTWARE INSTALLATION     PRINTER DRIVER/INSTALL-UPGRADE (client printing app)     128     12.73
    CLIENT SOFTWARE INSTALLATION     SPSS (statistical app)     112     4.16
    CLIENT SOFTWARE INSTALLATION     WINDOWS 7 (client os)     100     3.3
    CLIENT SOFTWARE INSTALLATION     NETWORK PRINTER SOFTWARE (client printing app)     96     1.45
    CLIENT SOFTWARE INSTALLATION     IRON MOUNTAIN CLIENT BACKUP WINDOWS (app-module)     91     6.66
    CLIENT SOFTWARE INSTALLATION     FILEMAKER DATABASE (database app)     73     2.02
    CLIENT SOFTWARE INSTALLATION     WINDOWS (client os)     70     2.62
    ++++++++++++++++++++
    When then I run
    SELECT TECHNICAL_SERVICE,LOGICAL_NAME,COUNT("NUMBER") as dacount,ROUND(AVG(CLOSE_TIME-OPEN_TIME),2) as time
    from SMINCREQ
    where (TECHNICAL_SERVICE='CLIENT SOFTWARE INSTALLATION' or TECHNICAL_SERVICE='REIMAGE')
    and open_time>'7/1/2011' GROUP BY (TECHNICAL_SERVICE,LOGICAL_NAME) ORDER BY dacount DESC
    I get 1735 rows with the top ones being
    +++++++++++++++++++++++++++++
    REIMAGE     WINDOWS 7 (client os)     194     2.1
    CLIENT SOFTWARE INSTALLATION     BLANK (blank)     143     2.54
    CLIENT SOFTWARE INSTALLATION     PRINTER DRIVER/INSTALL-UPGRADE (client printing app)     120     13.55
    CLIENT SOFTWARE INSTALLATION     SPSS (statistical app)     105     4.13
    CLIENT SOFTWARE INSTALLATION     WINDOWS 7 (client os)     100     3.3
    CLIENT SOFTWARE INSTALLATION     NETWORK PRINTER SOFTWARE (client printing app)     79     1.27
    CLIENT SOFTWARE INSTALLATION     IRON MOUNTAIN CLIENT BACKUP WINDOWS (app-module)     71     6.81
    CLIENT SOFTWARE INSTALLATION     FILEMAKER DATABASE (database app)     64     1.95
    +++++++++++++++++++++++++++++
    When I run
    SELECT LOGICAL_NAME,TECHNICAL_SERVICE from SMINCREQ WHERE ((TECHNICAL_SERVICE='CLIENT SOFTWARE INSTALLATION' and LOGICAL_NAME='BLANK (blank)')) and open_time>'7/1/2011' order by LOGICAL_NAME
    I get 143 rows returned.. so how do I get the 151 in the original query in the this post
    When I run
    SELECT LOGICAL_NAME,TECHNICAL_SERVICE from SMINCREQ WHERE ((TECHNICAL_SERVICE='CLIENT SOFTWARE INSTALLATION' or TECHNICAL_SERVICE='REIMAGE')) and open_time>'7/1/2011' order by LOGICAL_NAME
    I get 1734 rows...I'm just a bit SQL confused.
    thanks
    Rob
    Edited by: bostonmacosx on Mar 28, 2012 12:23 PM

    In Oracle, and is a higher precedence operator than or, so without parens, your first query is equivalent to:
    SELECT TECHNICAL_SERVICE, LOGICAL_NAME, COUNT("NUMBER"),
           ROUND(AVG(CLOSE_TIME-OPEN_TIME),2) as time
    from SMINCREQ
    where TECHNICAL_SERVICE = 'CLIENT SOFTWARE INSTALLATION' or
          (TECHNICAL_SERVICE='REIMAGE' and
           open_time > '7/1/2011')
    GROUP BY (TECHNICAL_SERVICE,LOGICAL_NAME)
    ORDER BY TIME DESCThat is, find rows where technical_service is CLIENT SOFTWARE INSTALLATION regardless of open_time or
    technical_service is REIMAGE and open_time is after 7/1/2011.
    Your second query is asking for rows where technical_service is either CLIENT SOFTWARE INSTALLATION or REIMAGE and open_time is after 7/1/2011.
    Your third query is looking technical_service CLIENT SOFTWARE INSTALLATION and logical_name BLANK (blank) and open_time after 7/1/2011. It sould be written without parens at all.
    You fourth query is the same as your second with an extra (redundant) set of parens.
    Another issue that may be causing you problems is the use of a string in the comparision to open_time. If that column is defined as a date in the table, then you should really be using to_date('7/1/2011', 'dd-mm-yyyy') for the literal to avoid implicit data type conversions. If it is actually a varchar2, then you are in for a lot of trouble, unless it is very consistenly formatted.
    John

  • JoptionPane need some help understanding, with buttons PLEASE SOMEONE :)

    Hi all I was hoping that someone would be kind enough to explain to me how I can add a method to buttons in a JoptionPane.
    Also can I pplease ask for you to look at this code I think I have stuff something as it is not working the way that I want,
    I want to add something like this to the ok button.
    String check = LastNameJText.getText()+FirstNameJText.getText();
    System.out.println(check);
          if
            //check to see if First & Last name have been entered.
            (check != null){
            return;
            else //create a dialog that shows Title,first & Last Name
             // & ask if you would like to make an new ordre
              String d= System.getProperty("line.separator");
           Object[] options = {"Cancel","OK",};
           int n = JOptionPane.showOptionDialog(null,
           "Do you really want to add a new shoe order for:"+ d +
           (String) TitleComboBox.getSelectedItem()+" "+FirstNameJText.getText()+" "+LastNameJText.getText(),"New Order",
           JOptionPane.YES_OPTION,
           JOptionPane.INFORMATION_MESSAGE,
           null,
           options,
        options[0]);
          if //Check to see if First & Last name text feilds are clear.
    (check == null){
    return ;
    else
       //make sure that all text fields are clear for new order
            ClearAllTextFields();

    When I do that i get
    "Order.java": Error #: 300 : variable options not found in class epod_1_0.Order at line 2152, column 4
    "Order.java": Error #: 300 : variable options not found in class epod_1_0.Order at line 2153, column 4
    why would this be ?
    This is the code
    String check = LastNameJText.getText()+FirstNameJText.getText();
    System.out.println(check);
          if
            //check to see if First & Last name have been entered.
            (check != null){
            return;
            else //create a dialog that shows Title,first & Last Name
             // & ask if you would like to make an new ordre
              String d= System.getProperty("line.separator");
          int result = JOptionPane.showOptionDialog(null,
       "Do you really want to add a new shoe order for:"+ d +
       (String) TitleComboBox.getSelectedItem()+" "+FirstNameJText.getText()+
        " "+LastNameJText.getText(),"New Order",
       JOptionPane.YES_OPTION,
       JOptionPane.INFORMATION_MESSAGE,
       null,
       options,
       options[0]);
    switch(result){
       case JOptionPane.YES_OPTION: // Add your code for yes
          break;
       case JOptionPane.NO_OPTION: // Add your code for no
         dispose();
          break;
          if //Check to see if First & Last name text feilds are clear.
    (check == null){
    return ;
    else
       //make sure that all text fields are clear for new order
            ClearAllTextFields();
      }

  • HT1222 I need some help.... I Have the iPhone 4S and downloaded the new software (6.0) and everything seems great so far except when I try to open a link in safari from a different app (messages, Facebook, ext..) it glitches and won't load. Any advice?

    I need some help.... I Have the iPhone 4S and downloaded the new software (6.0) and everything seems great so far except when I try to open a link in safari from a different app (ie..messages, Facebook, ect..) it glitches and won't load. The blue loading bar will just jump back and forth and the page will not load properly if at all....

    It sounds like you may have multiple problems, but none of them are likely to be caused by malware.
    First, the internet-related issues may be related to adware or a network compromise. I tend to lean more towards the latter, based on your description of the problem. See:
    http://www.adwaremedic.com/kb/baddns.php
    http://www.adwaremedic.com/kb/hackedrouter.php
    If investigation shows that this is not a network-specific issue, then it's probably adware. See my Adware Removal Guide for help finding and removing it. Note that you mention AdBlock as if it should have prevented this, but it's important to understand that ad blockers do not protect you against adware in any way. Neither would any kind of anti-virus software, which often doesn't detect adware.
    As for the other issues, it sounds like you've got some serious corruption. I would be inclined to say it sounds like a failing drive, except it sounds like you just got it replaced. How did you get all your files back after the new drive was installed?
    (Fair disclosure: I may receive compensation from links to my sites, TheSafeMac.com and AdwareMedic.com, in the form of buttons allowing for donations. Donations are not required to use my site or software.)

  • Need some help with pictures

    Hi,
    I need some help to try to understand some of my issues; i'm creating a catalogue for a company and i'm uploading TIFFs pictures (600 of them). My problem is that this catalogue is both for print and web but is getting really heavy as a file, is there another way to convert all the pictures and maintain the quality for print and a reasonable size for web?
    I'm uploading TIFFs because i need the transparency and i can't upload as PNG...
    Can someone help me please.
    I really appreciate

    alanpires wrote:
    ...  this catalogue is both for print and web ...
    Choose either file size (for web) or image quality (for print). Something has to give.
    This "for web" business, is that still a PDF? Then export for print with full resolution, and export another version to put online where yo adjust the export settings for the web until image quality is worse than having a megabyte or two more.

  • Complete Java n00b...need some help

    I'm very new to Java and I need some help writing a basic program.
    I need to write a program that lets the user add up an infinite amount of floating point numbers. The program should compute the sum of all the numbers entered thus far. So for example if the user enters 2 and 3, it should give a number of 5. If the user then enters 4, I should give me 9 etc.
    I'm not really sure how to get started on writing that. I can add up two numbers but I don't know how to tell the program to keep adding additional numbers to that sum. Can someone please help me out? thanks

    It's ok... it can be hard to understand even the simplest concepts with only text and no help.
    There needs to be an int variable outside (before) the loop initialized to 0.
    float num = 0;Next, you need to have an infinite loop that requests floats to add onto the number.
    Scanner input = new Scanner(System.in);
    while (true) {
        float toAdd = input.nextFloat();
        num += toAdd;
        System.out.println("Current sum " + num);
    }Putting all this together and putting it into a main method will work, but we have a bit of an issue. The program won't stop! For that reason, we need to specify a number which can exit the program. I like to use 0 for this purpose.
    Scanner input = new Scanner(System.in);
    while (true) {
        float toAdd = input.nextFloat();
        if (toAdd == 0) {    //test if toAdd is 0 so the program can break;
            break;
        num += toAdd;
        System.out.println("Current sum " + num);
    }So, this code will work:
    import java.util.Scanner;
    class AddNumbers {
        public static void main(String[] args) {
            float num = 0;
            Scanner input = new Scanner(System.in);
            while (true) {
                float toAdd = input.nextFloat();
                if (toAdd == 0) {    //test if toAdd is 0 so the program can break;
                    break;
                num += toAdd;
                System.out.println("Current sum: " + num);
    }Edited by: Arricherekk on May 18, 2008 3:19 PM

  • Need some help with downloading PDF's from the net.

    need some help with downloading PDF's from the net.  Each time I try to click on a link from a website, if it takes me to a new screen to view a pdf, it just comes up as a blank black screen?  any suggestions?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Need some help with the Select query.

    Need some help with the Select query.
    I had created a Z table with the following fields :
    ZADS :
    MANDT
    VKORG
    ABGRU.
    I had written a select query as below :
    select single vkorg abgru from ZADS into it_rej.
    IT_REJ is a Work area:
    DATA : BEGIN OF IT_REJ,
            VKORG TYPE VBAK-VKORG,
            ABGRU TYPE VBAP-ABGRU,
           END OF IT_REJ.
    This is causing performance issue. They are asking me to include the where condition for this select query.
    What should be my select query here?
    Please suggest....
    Any suggestion will be apprecaiated!
    Regards,
    Developer

    Hello Everybody!
    Thank you for all your response!
    I had changes this work area into Internal table and changed the select query. PLease let me know if this causes any performance issues?
    I had created a Z table with the following fields :
    ZADS :
    MANDT
    VKORG
    ABGRU.
    I had written a select query as below :
    I had removed the select single and insted of using the Structure it_rej, I had changed it into Internal table 
    select vkorg abgru from ZADS into it_rej.
    Earlier :
    IT_REJ is a Work area:
    DATA : BEGIN OF IT_REJ,
    VKORG TYPE VBAK-VKORG,
    ABGRU TYPE VBAP-ABGRU,
    END OF IT_REJ.
    Now :
    DATA : BEGIN OF IT_REJ occurs 0,
    VKORG TYPE VBAK-VKORG,
    ABGRU TYPE VBAP-ABGRU,
    END OF IT_REJ.
    I guess this will fix the issue correct?
    PLease suggest!
    Regards,
    Developer.

  • We have a set of oracle clients running on T5220 zones that need some help

    Greetings all -
    We have a set of oracle clients running on T5220 zones that need some help.
    If, for example, I execute the query "select (all) from dba_objects", trace output reports 90% of the elapsed time spent under "SQLNet message from client".
    Here are OS details for the clients: Solaris 10 5/08 s10s_u5wos_10 SPARC
    Running "uname -a" from the client gives:
    (SunOS bmc-ste-app 5.10 Generic_127127-11 sun4v sparc SUNW,SPARC-Enterprise-T5220)
    Here are OS details for the dataserver: Enterprise Linux Enterprise Linux Server release 5.2
    Running "uname -a" from the dataserver gives:
    (2.6.18-92.1.6.0.2.el5 #1 SMP Thu Jun 26 17:44:55 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux)
    The RDBMS is 10.2.0.4
    Again, please note, there is no application in the picture here. We are just running a simple catalog query (select * from dba_objects) from sqlplus. Why the wait on something like this? The wait also occurs when a different query is used (select (all) from SYS.COL$ where rownum < 50000). And it doesn't matter if I used the full client or the instant client. I still get the same high-wait.
    We had thought - maybe this is a network thing - so we put a test client on the same subnet as the dataserver. This helped - but not enough. The wait is still way too high even with firewalls taken out of the equation.
    We've also looked at arraysize, SDU, kernel settings. And we've spent time going over tkprof, truss and sqlnet-tracing.
    Has anyone ever had to solve this HIGH WAIT ON CLIENT issue? Is there a work around or some tweak I'm missing.
    Is anyone configured like we are (linux dataserver, solaris clients)? If so - did you see anything like this?
    tia -
    Jim
    Edited by: jim1768 on Mar 31, 2010 1:47 PM
    Edited by: jim1768 on Mar 31, 2010 2:12 PM
    Edited by: jim1768 on Mar 31, 2010 2:13 PM

    Hello,
    We have the exact same issue. Did you ever solve this issue? We have a t5220 and have just upgraded our 11.5.10.2 11i system on it from 9.2.0.8 32-bit sparc to 11.2.0.1 64-bit sparc. Things should be faster but arent, and our consultant has tracked it down to high wait times when the apps tier using forms connects to the database tier on the same box. So even though the t5220 is both server and client, there is something about the client sql connection.through TNS that his having trouble. Thanks for any information. We've also created an S/R with Oracle.
    Note: I am well aware of the other issues with the CMT server series but this particular issue seems independent of the regular / known issues and remains a mystery to us. Other known issues with the CMT servers for SPARC:
    Metalink Note 781763.1 (Migration from fast single threaded CPU machine to CMT UltraSPARC T1 & T2)
    http://blogs.sun.com/glennf/resource/Optimizing_Oracle_CMT_v1.pdf
    http://blogs.sun.com/glennf/tags/throughput
    http://blogs.sun.com/glennf/entry/getting_past_go_with_sparc
    http://www.oracle.com/apps_benchmark/doc/E-Bus-11i-PAY_ORA_SUN-T5220.pdf (this paper has some oracle init settings at the end. The kernel settings have been included in the OS upgrade)
    http://blogs.sun.com/mandalika/entry/siebel_on_sun_cmt_hardware

Maybe you are looking for

  • Is logic pro 9.1.8 stable with OSX 10.7?

    I run Logic pro 9.1.8 with OSX 10.6.8 on an external hard drive and it runs smooth as anything. Very stable, never misses a beat. The reason i have an external as my boot drive is because I updated my internal drive from Snow Leopard to Mountain Lion

  • How should I combine 30 fps clips and 24 fps clips into a project?

    I have both 30 fps footage and 24 fps footage and I would like to create a project that has both. Should I create a 30-fps project or a 24-fps project? Which one will look better?

  • Stored proc,For xml

    Hi! I recieve "Unexpected token type" exception when I try to retrieve result from an stored procedure resultset and while executing Query by "for xml" clause in MS Sql Server. Can anybody help me!?

  • Sender in Purchase Order via Email

    Hi folks, I made the necessary configuration so that the Purchase Orders are sent automatically via Email to the Vendor. The problem is: if the Purchase Order has a Release Strategy, the vendor receives the Email from the person who finally released

  • HT1338 Turbotax in app store says i need to update to Mac OS X 10.8.2

    Turbotax in app store says i need to update my macbook pro to Mac OS X 10.8.2, and when I go to Software Update on my apple button to upgrade from my OS X 10.6.8 nothing appears as needing to be updated except iPhoto.  What do I need to do so my Macb