Update several fields... need advice.

Hi all

I have a bit of a problem with the update of several fields in a table...

Lets say we have two tables. Table one is called t_employe for example:
create table t_employe (
year number,
line varchar2(1),
counter number,
value number)
To set random data in the table:
insert all
into t_employe (year, line,counter, value)
values(2011,'3','2946','3344')
into t_employe (year, line,counter, value)
values(2011,'3','2947','4433')
into t_employe (year, line,counter, value)
values(2011,'3','2948','4455')
into t_employe (year, line,counter, value)
values(2011,'3','2949','5544')
select * from dual
OK second table would be:
create table to_update (
year number,
line varchar2(1),
counter number,
date_pos_1 date,
value_pos_1 number,
date_pos_2 date,
value_pos_2 number,
date_pos_3 date,
value_pos_3 number,
date_pos_4 date,
value_pos_4 number,
date_pos_5 date,
value_pos_5 number)
Data:
insert all
into to_update (year, line,counter, date_pos_1,value_pos_1,date_pos_2,value_pos_2,date_pos_3,value_pos_3,date_pos_4,value_pos_4,date_pos_5,value_pos_5)
values(2011,'3','2946',sysdate,'5434',null,null,null,null,null,null,null,null)
into to_update (year, line,counter, date_pos_1,value_pos_1,date_pos_2,value_pos_2,date_pos_3,value_pos_3,date_pos_4,value_pos_4,date_pos_5,value_pos_5)
values(2011,'3','2947',sysdate,'11',sysdate,'123',null,null,null,null,null,null)
into to_update (year, line,counter, date_pos_1,value_pos_1,date_pos_2,value_pos_2,date_pos_3,value_pos_3,date_pos_4,value_pos_4,date_pos_5,value_pos_5)
values(2011,'3','2948',sysdate,'33',sysdate,'44',sysdate,'8908',null,null,null,null)
into to_update (year, line,counter, date_pos_1,value_pos_1,date_pos_2,value_pos_2,date_pos_3,value_pos_3,date_pos_4,value_pos_4,date_pos_5,value_pos_5)
values(2011,'3','2949',sysdate,'1',sysdate,'2',sysdate,'343',sysdate,'78',null,null)
select * from dual
OK, now what I want to do is to update the fields in the table to_update where value_pos is NULL. To explain this better imagine
Collums are from left to right in the order value_pos_1, the value_pos_2, the value_pos_3... Now, I would check for each line
If value_pos_1 is null if it is then updated. Finist this row and move them to another. If not go to value_pos_2 in
same rank and check again if the null value. If it's updated, if not, again to go forward. Each value_pos_X cullum has a date_pos_x cullom
to be made same day as Value_pos_ cullums (if value_pos_X is null then date_pos_X coresponding will be null as well - is)
a fact in my table).


So is it feasible using only a single update?

I managed to write a select statement by using the clause of the case that makes these things perfectly only for value_pos_X fields. I wonder if I can use in my
Update statement?
select 
case when a.value_pos_1 is  null then b.value else 
     case when a.value_pos_2 is  null then b.value else
          case when a.value_pos_3 is  null then b.value else
               case when a.value_pos_4 is  null then b.value else
                    case when a.value_pos_5 is  null then b.value else to_number('99999','9999,99')
end
end
end
end
end  as value

from to_update a,t_employe b
where a.year = b.year
and a.line= b.line
and a.counter = b.counter 
Suggestions how to extract it from?

Thank you!
SQL> select  *
  2    from  to_update
  3  /

      YEAR L    COUNTER DATE_POS_ VALUE_POS_1 DATE_POS_ VALUE_POS_2 DATE_POS_ VALUE_POS_3 DATE_POS_ VALUE_POS_4 DATE_POS_ VALUE_POS_5
---------- - ---------- --------- ----------- --------- ----------- --------- ----------- --------- ----------- --------- -----------
      2011 3       2946 27-AUG-11        5434
      2011 3       2947 27-AUG-11          11 27-AUG-11         123
      2011 3       2948 27-AUG-11          33 27-AUG-11          44 27-AUG-11        8908
      2011 3       2949 27-AUG-11           1 27-AUG-11           2 27-AUG-11         343 27-AUG-11          78

SQL> merge
  2    into to_update a
  3    using (
  4           select  a.rowid rid,
  5                   b.value
  6             from  to_update a,
  7                   t_employe b
  8             where a.year = b.year
  9               and a.line= b.line
 10               and a.counter = b.counter
 11          ) b
 12     on (
 13         a.rowid = b.rid
 14        )
 15     when matched then update set value_pos_1 = nvl2(value_pos_1,value_pos_1,b.value),
 16                                  value_pos_2 = nvl2(value_pos_1,nvl2(value_pos_2,value_pos_2,b.value),value_pos_2),
 17                                  value_pos_3 = nvl2(value_pos_1 + value_pos_2,nvl2(value_pos_3,value_pos_3,b.value),value_pos_3),
 18                                  value_pos_4 = nvl2(value_pos_1 + value_pos_2 + value_pos_3,nvl2(value_pos_4,value_pos_4,b.value),value_pos_4),
 19                                  value_pos_5 = nvl2(value_pos_1 + value_pos_2 + value_pos_3 + value_pos_4,nvl2(value_pos_5,value_pos_5,b.value),value_pos_5)
 20  /

4 rows merged.

SQL> select  *
  2    from  to_update
  3  /

      YEAR L    COUNTER DATE_POS_ VALUE_POS_1 DATE_POS_ VALUE_POS_2 DATE_POS_ VALUE_POS_3 DATE_POS_ VALUE_POS_4 DATE_POS_ VALUE_POS_5
---------- - ---------- --------- ----------- --------- ----------- --------- ----------- --------- ----------- --------- -----------
      2011 3       2946 27-AUG-11        5434                  3344
      2011 3       2947 27-AUG-11          11 27-AUG-11         123                  4433
      2011 3       2948 27-AUG-11          33 27-AUG-11          44 27-AUG-11        8908                  4455
      2011 3       2949 27-AUG-11           1 27-AUG-11           2 27-AUG-11         343 27-AUG-11          78                  5544

SQL> 

Or yhis is perhaps more readable:

merge
  into to_update a
  using (
         select  a.rowid rid,
                 b.value
           from  to_update a,
                 t_employe b
           where a.year = b.year
             and a.line= b.line
             and a.counter = b.counter
        ) b
   on (
       a.rowid = b.rid
      )
   when matched then update set value_pos_1 = case when value_pos_1 is null then b.value else value_pos_1 end,
                                value_pos_2 = case when value_pos_1 is not null and value_pos_2 is null then b.value else value_pos_2 end,
                                value_pos_3 = case when value_pos_1 + value_pos_2 is not null and value_pos_3 is null then b.value else value_pos_3 end,
                                value_pos_4 = case when value_pos_1 + value_pos_2 + value_pos_3 is not null and value_pos_4 is null then b.value else value_pos_4 end,
                                value_pos_5 = case when value_pos_1 + value_pos_2 + value_pos_3 + value_pos_4 is not null and value_pos_5 is null then b.value else value_pos_5 end
/

SY.

Tags: Database

Similar Questions

  • Import Format script to update multiple fields

    Following my previous post yesterday (Import Format script required for work in several areas , now I need my script import to Update several fields (two) at the same time, based on criteria across multiple fields. ) So far, I can use DW. Utilities.fParseString to assess values across several fields, but now I need to update not only the field in question, but also an additional field at the same time. For example:

    Function TBService (strField, strRecord)

    "How to upgrade a second field at the same time?
    Dim strField2 As String

    If left (strField, 1) = "S" Then
    If DW. Utilities.fParseString (strRecord, 3, 8, ',') = 'B1110"Then
    strField2 = "N101.
    On the other
    strField2 = 'network n/a '.
    End If
    TBService = strField
    On the other
    TBService = "Service s/o".
    End If

    End Function

    Is it still possible? Should I look for to create an event script that would work subsequent to importation? Or is it possible here in the import script?

    The second field you are trying to manipulate should have its own import script.

  • Script for updating a field for the current year

    Is it possible to have an update of field at the end of the current year? Example 20-(dashes to change it for any year). I think that it is not possible, but if anyone knows how this is possible I'd really appreciate help. Thank you

    Sorry, I guess I need to change throughout the year, not only at the end.  Thank you

    I tried a few scripts that I found here, such as; year (dateAdd ("yyyy", 1, now()))) with no luck. I confess that I don't know about scripts and can be a bad thing. The script goes on the Action tab as a javascript or somewhere else (validation?) Any advice or assistance would be appreciated. I use Acrobt Pro version 9.

    Going by your post you wanted the year is displayed in a text field, I gave the code to go into the script will count for this field. If you want to use it somewhere else (e.g. a mouseup), then use the variable 'year' in this script. In a calculation script, any value you assign to "event.value" is what will show on the field during the calculation.

  • Display and update of fields in different tables on the same page.

    I am facing two problems...

    (1) I have a report on which I show several fields of 4 different tables. For each row of data, there is a link to change on the first column. By clicking on the link change, I show you a form where I want to show the respective data. On the link change, even if I send you the data in the report, they do not appear on the form (what edit link is clicked). Also, there is only room for 3 items to ship through the link change.
    How to display the data correctly on the form? Is there another way to use the link change?

    (2) on the form, how do I update the data from different tables?

    Thank you

    Gargi

    Hi Lisa,

    The text of presentation on the INSTEAD OF triggers is in: [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7004.htm#sthref7918]

    First of all, your SQL View contains a unique key so that your triggers and the two Apex know what is updated.

    Then, you can create instead of triggers for "instead of INSERT ON viewname", 'instead of UPDATE ON viewname' and 'DELETE ON viewname' on your SQL view. What do these triggers depends on what you need. In the trigger code, you refer to new data using: NEW.column_name and old data using: OLD.column_name (updates both: OLD and: NEW values).

    I'm not sure of the SEPARATE, the GROUP IN question. You would certainly have a unique key on each record. It could be that the DISTINCT or GROUP BY clause will have to be taken out of the SQL view and is part of the source of the region, so that the SQL view does nothing with the data other than to join several tables in a single "table" from the Primary Key/Foreign Key relationship.

    Andy

  • Impossible to connect a computer to the wireless network, I would like to first of all the automatic configuration service and I need advice.

    Article 861122 start WZC

    Unable to connect a computer to the network wirelee I firstly the WZC serviceand I need advice. TX

    Hello

    • Are you referring to Wireless Zero Configuration (WZC) Service?
    • What happens when you start the automatic Wireless Configuration Service?
    • You receive an error message?
     
    If you experience problems with the wireless network, reconfigure the Automatic Configuration Wireless for all wireless profiles automatically, click the fix this toolfrom the link below.
    Click run in the file download dialog box, and then follow the steps in this wizard.
     
    See also:
    In Windows network connection issues
  • I have error codes 80070079 and 8007045 D, have tried to install updates several times without success

    Hi all

    I have error codes 80070079 and 8007045 D, have tried to install updates several times without success. They are made to security update & probably really need them.  I was able to other updates but not those four for the last month or two.  Thanks for your help!

    See if this thread is useful.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_other-windows_update/Windows-7-error-code-8007045D-cant-install-updates/03258f34-3f25-4134-B194-6c18b4acf521>

    UTC/GMT is 01:30 on Monday, July 9, 2012

  • Inspiron s 660: hard disk failure. Need advice please.

    Long story short my sister gave me a s Inspiron 660 she received as a gift a few years back (legitimate).  She said that was no longer working and I could.  I suspected a faulty hard drive and after several diagnostic tests later confirmed the WD Blue crashed the original; complete failure. Now, here's where I need advice:

    1. when it has received, it came not with a physical disk from the Windows 8.0 operating system.  It was pre-installed and then upgraded through its work of departmental to 8.1 it.

    2. I can't access the code of Windows because it is in the BIOS.

    3. I have a hard drive to work with Windows 7 installed and tried hooking laptop to see if he should realize that he was a long shot at best.  As you have probably concluded he was not recognized.

    4. I thought wiping one of my hard drives and do a clean install of Windows 10.

    Question: With a new hard drive (or possibly an SSD) would work #4 or I still have problems with the BIOS and Windows embedded product code?

    Question: What do you suggest I should try?  It's a nice little system and everything is clean and stable.  I have someone who needs a system, but can't afford it, and I thought I'd give something that would meet its needs.

    Thank you.

    ROUTE29

    Re: 4. I thought wiping one of my hard drives and do a clean install of Windows 10.

    Yes, it should work, but to do this, you must either buy an OEM copy of W-10, which has its own product key.

    http://www.BestBuy.com/site/Microsoft-Windows-10-home-64-bit-Windows/4423102.p?skuId=4423102

    https://softwarekeep.com/Microsoft-Windows-10-Home-Edition-32-bit.html?gclid=CNXh5ev3wc8CFQGSaQod5A4LMQ

    The upgraded version free of W-10, Windows 8, 8.1, 7 ended July 26.

    Bev.

  • Guard application launch at the start of the appliance, also need advice for the implementation of network methods

    Hi all

    I'm new to the development of Blackberry and I'm writing a relatively simple application to run on 7.1.

    So far the development was interesting, I managed to create my user interface using resources online (mainly this forum), but today I tried to implement some of the network classes that I need and now I just met constant problems.

    I use Eclipse SDK 3.7.2 (the one that comes with the plugin RIM)

    First question:

    I'm not sure what I changed, but today I noticed that whenever I start the Simulator (by sim 9360) my application is started during the initial startup process. I don't think he did this before, but to be honest, I wasn't paying much attention. I think it starts at the start of the device is because I put a breakpoint in the constructor for my class from the main screen, which is hit before the Simulator happens even to the point where it is ready for user interaction. In addition, once it is ready, if I press the BB button, I see my registered application.

    I don't have it set to automatic start in .xml descriptior enforcement.

    I started this application on the HelloBlackBerry sample, here is my main method for the entry of the application:

    public static void main( String[] args ) {
            appSettings = AppSettings.fetch();
            // Create a new instance of the application and make the currently
            // running thread the application's event dispatch thread.
            HelloBlackBerry theApp = new HelloBlackBerry();
            theApp.enterEventDispatcher();
            //openConnection();
    
        }
    
    
    

    As far as I know, this is the only entry point for the application.

    More code

        public HelloBlackBerry() {
            // Push a screen onto the UI stack for rendering.
            mainScreen = new ScreenHelloBlackBerry();
            pushScreen( mainScreen );
        }
    

    Here is the method of. my class AppSettings fetch()

        // Retrieves a copy of the effective properties set from storage.
        public static AppSettings fetch()
        {
            AppSettings savedSettings = (AppSettings) _store.getContents();
            return new AppSettings(savedSettings);
        }
    

    Some of this code that I wrote myself, the persistence store cause the launch of my car?

    I tried to reset the Simulator to the factory settings, no change.

    All applications initialized during the startup of the device and then closed shortly after?

    Part 2: Need advice for the implementation of functions of network in the application

    I need to implement some methods that will retrieve data from a web service, and I also need to send data to this service. What I've read, the ConnectionFactory is the way to go. I want my application to make a request when the application is open and can check on a set interval. I didn't know exactly how to go about adding another thread for networking, I understand that network connections should not be created on the thread main event, so I tried to do this:

    The constructor of my class that implements screen (ScreenHelloBlackBerry), I use the following to create a modal dialog box to prompt the user for a username, I also try networking wire in the same segment of spawning:

            public ScreenHelloBlackBerry(){...initialize fields and managers, add it all together...then near the end
    
    //This will open the confirm dialog when the application is launched
            UiApplication.getUiApplication().invokeLater(new Runnable() {
                  public void run() {
                      openConfirmDialog();
                    //start connection - Possibly broken
                      ConnectionThread ct = new ConnectionThread();
                      ct.start();
                  }
            });
    

    I don't know if it's somehow OK to do, but it seems to work for what I need. I want a user who launches the application at the prompt, and if a user switch applications, when they come back they wondered again (unless they close the app and reopen it).

    Here is my ConnectionThread:

    public class ConnectionThread extends Thread
    {
    
        public void run()
        {
    
              ConnectionFactory connFact = new ConnectionFactory();
              ConnectionDescriptor connDesc;
              connDesc = connFact.getConnection("http://www.google.com");
              if (connDesc != null)
              {
                  HttpConnection httpConn;
                  httpConn = (HttpConnection)connDesc.getConnection();
                  try
                  {
                      final int iResponseCode = httpConn.getResponseCode();
                      UiApplication.getUiApplication().invokeLater(new Runnable()
                      {
                          public void run()
                          {
                              Dialog.alert("Response code: " +
                                            Integer.toString(iResponseCode));
    
                          }
                       });
                      httpConn.close();
    
                   }
                   catch (IOException e)
                   {
                     System.err.println("Caught IOException: "
                          + e.getMessage());
                   }
              }
        }
    }
    

    At the moment it has basically unmodified code from a sample that I found, I'll be retooling to meet my needs whenever I can make it work. I HAD this work to the point where, after the closed user confirm this dialog, a few moments later a an alert dialog appears with the 302 response code. I don't know what changed, but now it doesn't work at all, and if I try to scroll with the debugger, I can't past the httpCon.getResponseCode (). I've seen some mistakes earlier on "no record of service was set up", and I also had once a timeout exception.

    I'm sure I'm doing this wrong, but at the same time as I said WAS working, and now it is not. If someone has done this far, thank you very much for your time and advice are much appreciated.

    Also, should I try to start the thread of the network of the UIApplication class instead of the screen? There is currently very little happening in the class that extends UIApplication, do I spend most of my business logic out of the class of the screen and in the UIApplication class?

    Thanks in advance!

    Hi all

    Just to conclude this topic for those who are interested, I found an excellent guide to the implementation of networks in applications of BB, click here for a link.

    About my application being started at the start of the simulator of the device, I found that on a device real this behavior is not complied with, and in addition, the behaviour seems to have stopped after uninstallation and reinstallation of my Simulator.

    See you soon,.

  • Newb question - displays only the first of several fields

    As a first application of Bb, I write a stopwatch and I want the larger time scale and the small milliseconds. As part of what I am trying to display several bitmap or label side-by-side fields, but when I run it using the Simulator, only the first is displayed.

    So, for example, what I want is:

    1-2: 3 4:5:6 7 8 9

    with each number in own field but what I mean is just

    1

    that is the first field. If I then use buttons they all appear in the verticalFieldManager by default in horizontalField Manager but if I use labels or bitmaps, then all I get is the first field, even if I remove the horizontalFieldManager and just use the default verticalFieldManager. I googled the question, this forum and spent several hours reading the code examples and documentation, but I have yet to understand why I can't put several fields of these types of side-by-side. I have to have something between them as separators or empty fields?

    The code that I've got so far is the following...

     public TimerView()    {     super();      HorizontalFieldManager timerField = new HorizontalFieldManager();
    
          Bitmap hour10 = Bitmap.getBitmapResource("num_1.png");        Bitmap hour01 = Bitmap.getBitmapResource("num_2.png");        Bitmap minute10 = Bitmap.getBitmapResource("num_3.png");      Bitmap minute01 = Bitmap.getBitmapResource("num_4.png");      Bitmap second10 = Bitmap.getBitmapResource("num_5.png");      Bitmap second01 = Bitmap.getBitmapResource("num_6.png");      Bitmap ms100 = Bitmap.getBitmapResource("num_7.png");     Bitmap ms010 = Bitmap.getBitmapResource("num_8.png");     Bitmap ms001 = Bitmap.getBitmapResource("num_9.png");     Bitmap colon = Bitmap.getBitmapResource("Colon.png");
    
          BitmapField bfHour10 = new BitmapField(hour10);       BitmapField bfHour01 = new BitmapField(hour01);       BitmapField bfHourColon = new BitmapField(colon);     BitmapField bfMinute10 = new BitmapField(minute10);       BitmapField bfMinute01 = new BitmapField(minute01);       BitmapField bfMinuteColon = new BitmapField(colon);       BitmapField bfSecond10 = new BitmapField(second10);       BitmapField bfSecond01 = new BitmapField(second01);       BitmapField bfSecondColon = new BitmapField(colon);       BitmapField bfMs100 = new BitmapField(ms100);     BitmapField bfMs010 = new BitmapField(ms010);     BitmapField bfMs001 = new BitmapField(ms001);
    
          timerField.add(bfHour10);     timerField.add(bfHour01);     timerField.add(bfHourColon);      timerField.add(bfMinute10);       timerField.add(bfMinute01);       timerField.add(bfMinuteColon);        timerField.add(bfSecond10);       timerField.add(bfSecond01);       timerField.add(bfSecondColon);        timerField.add(bfMs100);      timerField.add(bfMs010);      timerField.add(bfMs001);
    
            add(timerField);  }
    

    I know that this code violates probably some best practices or standards, but I intend to clean later.

    -edited for spelling

    Give it a go with images of the numbers.  You have it easy with BitmapFields, because you know how much space they need with

    getPreferredHeight() and getBitmapWidth().  Then you should be able to stick them next to each other.

    If I was doing this and who are looking for a special look at the clock, which seems to be what you are doing, I would like to have the digital icons as you do, and then set an image large enough to hold the value of the clock and in my routine of painting, select draw digital icon proper, in the right place.  As long as you load the bitmaps only once, I think it's the most effective way to do it.

    Of course, a much simpler way would be to have just a RichTextField formatted as you suggest - RichTextField because you can have two different fonts in a single field.

  • Hello! I use a PC and have problems loading my homepage of Muse. First of all, I made one with the address "nordensstjarnor" and updated several times without any problems. And once, I couldn't download on 'nordensstjarnor' any longer. Don't know why, s

    Hello! I use a PC and have problems loading my homepage of Muse. First of all, I made one with the address "nordensstjarnor" and updated several times without any problems. And once, I couldn't download on 'nordensstjarnor' any longer. Don't know why, when he got the address "nordensstjrnor". That me ok at first, but now I really need to give the first address once again, "nordensstjarnor". But when I try, the alternative of the site of ' publish on ' old isn't here. And if I try to create a new one, but with the old URL, the box turns red. What can I do?

    The reason why you cannot change nordensstjarnor.businesscatalyst.com is because a different Adobe ID is used for the publication of this site.

    t * [email protected] is used for the publication of nordensstjarnor.businesscatalyst.com

    t s. * [email protected] is used for the publication of nordensstjarnorindex.businesscatalyst.com

    You must make sure that Adobe ID is used in account publish, so that you can see a list of the websites published under this account. Go in Edition > Preferences > publish on Business Catalyst > publish with accounts

    You can pass the accounts for you can also make changes to the sites.

    Thank you

    Sanjit

  • need advice on which version of Dreamweaver to purchase

    Hello.  I need advice I can buy it on which version of Dreamweaver.  I have an iMac v. 10.10.5.  I want a monthly fee, want just a one-time software purchase so that I can build my own personal Web site

    Creative cloud is simply a distribution model & payment.  You always download & install the software on your computer as you always have.  You always save the files on your local hard drive, you always. Nothing has changed in this regard.

    CS2, 3, 4, 5, 5.5 is no longer supported or sold by Adobe.  If you buy software from another source in line do so at your own risk.  The pirated versions were circulating these last time and they do not work.  In some cases, they contain malware that could compromise your computer.

    You have a modern operating system.  This is another reason to use current software. Several older versions required Rosetta which Apple is more included in its press releases.  Purchase of old copies similarly ligit software does not mean that it will work on your system.  Let's face it, the stuff you used 8 years ago are useless today because Apple & Win continue to change operating systems.

    I use a little media with DW CC.  It is a very fast, modern code editor.   In fact, Adobe will soon integrate DW CC 2016 version supports.

    Nancy O.

  • Best network design... Need advice on the best use of NIC

    I'm new to the concept of Distributed Switch so I need advice.

    Our current environment is the result of a vCenter 4.1 and ESXi 4.1 Enterprise Plus, but we are just using the standard vSwitch (1 for vMotion/Console and 1 for virtual machines).  When the distributed switch came out, we were warned that a vDSwitch could cause us problems if the server vCenter or database is down.  We could not connect directly to the host and make network changes because the vDSwitch is set in the database.  That's why we stayed with the Standard vSwitch only.

    Our farm is quite small, only 5 hosts but we run around 100 mV in this regard.

    We use currently servers HP DL385 G7, which have 4 cards integrated network, and we have a map of installed NETWORK 4 port card.

    I use the NETWORK 4 EtherChannel ports and trunk card to our virtual machines.

    I am currently using only 1 network card integrated for vMotion and 1 for the Service Console and they all have two of the other defined as secondary.

    This configuration has worked very well for us, but I realize that the latest version of ESXi has some new features that we could use.

    NEW CONFIGURATION

    I'll put up a new vCenter 5 and ESXi 5 environment and I am considering using the switch distributed instead of the usual vSwitch we use.  I'm also eager to take advantage of the multiple NIC vMotion.  All our cards are 10/100/1000 MB capable... No. 10 GigE.

    I think... use that map 4 NETWORK ports for my EtherChannel/trunk for just as our virtual machine before, but this would be set to vDSwitch1

    The mixture of my 4 other integrated ports, it's causing me grief.  Should they be on a standard vSwitch or vDSwitch?  Use 2 ports for vMotion and 2 for the Console?  I really thought to use 3 ports for vMotion and 1 Console port.  I could put the Console port to use one of the vMotion ports such as adapter of standby is... I'm so confused freaking!

    Any recommendations on how I should put up?

    Hello

    Given that you can't split your vmnic for each vSwitch I would recommend either keep configuration simular with the knoweldge if a whole nic fails, you will take a failure or as autumn has already been mentioned on 'Origin Port ID'. Lets do this out and give a little better example

    Current configuration

    vSwitch0

    VMNIC0 - NETWORK interface integrated - Service Console

    VMNIC1-Onboard NIC - VMotion (different IP or VLAN?)

    VMNIC2-Onboard NIC - VMotion (different IP or VLAN?)

    VMNIC3 - NETWORK interface integrated - VMotion (eve of Console of Service) (different IP or VLAN?)

    vSwitch1

    VMNIC4 - extension PCI NIC - Etherchannel trunk - PortGroup - VMNET

    Extension VMNIC5 - PCI NIC Etherchannel trunk-PortGroup - VMNET

    Extension VMNIC6 - PCI NIC Etherchannel trunk-PortGroup - VMNET

    Extension VMNIC7 - PCI NIC Etherchannel trunk-PortGroup - VMNET

    Now, to captured to eliminate any single point of failure that you could do is break your Etherchannel trunk and back this vSwitch from Port ID and Setup VMNIC2, VMNIC3, VMNIC4, VMNIC5 as vSwitch1 for your VMNET. Then the cable to multiple switches eliminate any single point of faiulre. If your standard configuration would look like this

    vSwitch0

    VMNIC0 - on - Board Service Console

    VMNIC1 - Board - Vmotion

    VMNIC6 - extension PCI NIC - Vmotion

    VMNIC7 - extension PCI NIC - Vmotion (standby Service Console)

    vSwitch1

    VMNIC2 - VMNET

    VMNIC3 - VMNET

    VMNIC4 - VMNET

    VMNIC5 - VMNET

    So to finish any request for psyhical nics on this particular configuration the Port ID of origin essentially around robins. If during your first VM is online it will be use VMNIC2 and nic forever, until a failure, in which case he will grab the next nic online. When your second VM is online it will use VMNIC3 forever, until a failure and so on. This still will give you around the same way through to as far as networking is concerned. However if you are attached to the trunk, etherchannel 4 GB and can obsorb a failure in case of failure, the network card 4 ports can stay.

    Distributed switching Setup

    Allows you to see how you can switch to distributed switching

    Let's start first of all, you can have EVERYTHING in switches distributed even the service console port if you wish. The resason why some people do not like to do this with the service console port is because IF your database is broken you cannot make any changes to the distributed switch. However it will not prevent a feature to your distributed it switches simply means, you can change them. Also if just getting worse and your DB has been declining for some time and you REALLY need to make a change to the service console port you can go into the console and change back to a standard vSwitch if need be. This allows the said look at some standard configs, you can work

    vSwitch0 (Standard)

    VMNIC0 - Service Console Port (Port Original ID or standby)

    VMNIC4 - Service Console Port (Port Original ID or standby)

    vSwitch1 (Standard)

    VMNIC1 - Vmotion

    VMNIC5 - Vmotion

    Distributed switch

    VMNIC2 - VMNET

    VMNIC3 - VMNET

    VMNIC6 - VMNET

    VMNIC7 - VMNET

    Now this config using originating port ID and breaks your etherchannel if you want to keep your configuration with the etherchannel it can look like this

    vSwitch0

    VMNIC0 - NETWORK interface integrated - Service Console

    VMNIC1-Onboard NIC - VMotion (different IP or VLAN?)

    VMNIC2-Onboard NIC - VMotion (different IP or VLAN?)

    VMNIC3 - NETWORK interface integrated - VMotion (eve of Console of Service) (different IP or VLAN?)

    Distributed switch

    VMNIC4 - VMNET

    VMNIC5 - VMNET

    VMNIC6 - VMNET

    VMNIC7 - VMNET

    Other changes to the configuration may also put the vmotion in distributed witch the VMNET but you would to VLAN, or you could create a second Distributed switch and put it as long as there are 2 network cards. It can go either way. The main advantage of a distributed switch is that it brings all of your settings with you in any host. So trade ect all your VIRTUAL networks is really easy to reproduce if a new host is brought online, all you have to do is to add the new host network cards in the distributed switch and your config is done. With that in mind lets look at the service console. This console is always configured on EACH Setup program that out you of the box if not that you really need to have these parameters transported on several hosts that is another reason why most people just don't. VMotion is up to you, I have seen and configured two ways, it all depends on how simple you want to keep it or think of switching / vlaning / port of groups.

    If you have any questions please let me know, I hope this has helped

  • Change the properties of several fields

    I need to change the properties of corn (i.e., the number) of several fields when I pass the selection and then right-click, Format tab is not there. Help, please.

    Hi rednexhex,

    It is not possible to change the format of several fields at the same time

    You will need to manually change each field.

    Kind regards

    Rave

  • Adding several fields - Script

    Hello

    I have several fields added in a batch processing script that works great except for the last field created in the script called "TodayDate2".

    This field is not added to the document.

    Can someone please look at and advise a possible solution with my script?

    Dynamically create signature fields

    var this.numPages = NUMPAGES;
    for (var i = 0; i < numpages; i ++)


    var f = this.addField ("prepared Signature", "signature", 1,
    [320, 660, 450, 640]) ;

    var g = this.addField ("Signature of revision", "signature", 1)
    [320, 630, 450, 610]) ;

    var h = this.addField ("approved Signature", "signature", 1)
    [320, 600, 450, 580]) ;

    Create the text field for the current date

    var this.numPages = NUMPAGES;
    for (var i = 0; i < numpages; i ++)


    var f = this.addField ("TodayDate1", "text", 1,
    [460, 660, 540, 640]) ;
    f.userName = "today's Date".
    f.Value = 'auto update';
    f.ReadOnly = true;
    f.textSetFieldLabel ("today's date will be entered at the signature");

    var j = this.addField ("TodayDate2", "text", 1,
    [460, 600, 540, 640]) ;
    j.userName = "today's Date".
    j.Value = 'auto update';
    j.ReadOnly = true;
    j.textSetFieldLabel ("today's date will be entered at the signature");


    Why did you use a loop on all pages when you add the fields to the second page?

    I can't get an error using the code f.setAction.

  • I'm recently back from Berlin where I accidentally left my iPhone 6. My friend tried to send it to me; However, he was returned by customs. Need advice on getting my iPhone 6 sent from Berlin to California.

    I'm recently back from Berlin where I accidentally left my iPhone 6. My friend tried to send it to me; However, he was returned by customs. Need advice on getting my iPhone of Berlin has been sent to California.

    You'll have to talk to the German customs and find out what their requirements are to send an iPhone.

Maybe you are looking for