Need help with select this range of months with flexible first date

Hi all

I am creating a selection range months (will be in a WITH clause), for a report view monthly data. But the first months start date may be any date. (Not necessarily the first date of the month)
Examples:

Report of input parameters:

Start date: 10/08/12
End of month: December 2012

I tried to build a SELECT that will list
Month_Start, Month_End
10/08/12, 10/31/12
11/01/12, 11/30/12
12/01/12, 31/12/12

OR
Month_Start, Next_Month
10/08/12, 11/01/12
11/01/12, 12/01/12
12/01/12, 01/01/13


End of the month being optional, if no select value lists only
10/08/12, 11/01/12


Details of database is Oracle
Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
PL/SQL Release 11.1.0.7.0 - Production

My code is far
VARIABLE  P50_START_DATE  VARCHAR2 (10)
VARIABLE  P50_END_MONTH    VARCHAR2 (10)
 
EXEC  :P50_START_DATE  := '10/10/2012';
EXEC  :P50_END_MONTH   := '31/12/2012';
  
 
  SELECT  to_char(:P50_START_DATE) AS start_date
        ,  ADD_MONTHS( TRUNC(to_date(:P50_START_DATE,'DD/MM/YYYY'),'MONTH'), 1) AS next_month
  FROM dual
  union

   SELECT to_char(ADD_MONTHS( TRUNC(to_date(:P50_START_DATE,'DD/MM/YYYY'),'MONTH'), ROWNUM-1)) AS start_date
   ,      ADD_MONTHS( TRUNC(to_date(:P50_START_DATE,'DD/MM/YYYY'),'MONTH'), ROWNUM) AS next_month
   --, rownum
   from all_objects
   where
   rownum <= months_between(to_date(NVL(:P50_END_MONTH, :P50_START_DATE),'DD/MM/YYYY'), add_months(to_date(:P50_START_DATE,'DD/MM/YYYY'), -1))
   and rownum > 1
If I put the comment - on the line and rownum > 1, as
-- and rownum > 1
The result I get is
START_DATE                     NEXT_MONTH                

01/10/12                       01/10/12                  
01/11/12                       01/11/12                  
01/12/12                       01/01/13                  
10/10/2012                     01/11/12    
But when I try to remove the double off period (the first month) by restricting rownum, it do not return all the lines for the second selection at all. The result I get is:
START_DATE                     NEXT_MONTH                

10/10/2012                     01/11/12    
Can anyone tell what is wrong with the statement select?

Thank you very much in advance,
Ann

Queries line use:

SQL> VARIABLE  P50_START_DATE  VARCHAR2 (10)
SQL> VARIABLE  P50_END_MONTH    VARCHAR2 (10)
SQL>
SQL> EXEC  :P50_START_DATE  := '10/10/2012';

PL/SQL procedure successfully completed.

SQL> EXEC  :P50_END_MONTH   := '31/12/2012';

PL/SQL procedure successfully completed.

SQL> SELECT  CASE LEVEL
  2            WHEN 1 THEN TO_DATE(:P50_START_DATE,'DD/MM/YYYY')
  3            ELSE TRUNC(ADD_MONTHS(TO_DATE(:P50_START_DATE,'DD/MM/YYYY'),LEVEL - 1),'MM')
  4          END MONTH_START,
  5          LAST_DAY(ADD_MONTHS(TO_DATE(:P50_START_DATE,'DD/MM/YYYY'),LEVEL - 1)) MONTH_END
  6    FROM  DUAL
  7    CONNECT BY ADD_MONTHS(TO_DATE(:P50_START_DATE,'DD/MM/YYYY'),LEVEL - 1) <= TO_DATE(:P50_END_MONTH,'DD/MM/YYYY')
  8  /

MONTH_STA MONTH_END
--------- ---------
10-OCT-12 31-OCT-12
01-NOV-12 30-NOV-12
01-DEC-12 31-DEC-12

SQL> 

SY.

Tags: Database

Similar Questions

  • Need help with an expiration date

    I have as of today on my spreadsheet, need help to make a column of expiry date which will go to the Red 20 days before expiry. Not to find the formula, please help? Thank you.

    Hi Emtsrus,

    Conditional highlighting in column A. Select the cells and then click Conditional highlighting

    Add rule > Dates > in the next

    Another reminder, formula in B2 (and fill down)

    = DATEDIFF (TODAY (), A2, "D")

    Kind regards

    Ian.

  • * Need help with importing partial data of RDBMS table NHI repository *.

    Hello

    I need help to import the partial table RDBMS data, I tried the content in the logical source but still show me all the data available in the database.

    The table contains the partitioned data for which I want to only import single partion according to the partion of function value.

    IE contry = 'Fr '.

    Thanks in advance.

    See you soon,.
    Rajeev

    One possibility is to do the filtering on the physical level itself. You could use a physical table of type 'Select' and filter the data.

    Thank you!

  • I need help with my first Script in AE CS5

    Hello fellow designers out there.

    I'm newbie on AE Scripting here. I run my CS 5 on Win 7. I'm trying to create a simple solid GUI and it controls opacity by cursor. I fail and do not now how it work. Here is the code that I have written in reference to many sources and tutorials:

    myComp = app.project.item (1); akses comp 1

    mySolid = myComp.layers.addSolid ([1.0,1.0,0], 'my place', 50, 50, 1); solid

    var myWin = new window ("palette", "Transform", undefined); create the palette

    myWin.orientation = "row";

    var myOpacity = myWin.add ('Committee', undefined, "Strong opacity");

    myOpacity.orientation = "column";

    myOpacity.add ("statictext", undefined, "Opacity Kontrol");

    var opacitysliderCtrl = myOpacity.add ("slider", undefined, 50, 0, 100); make cursor

    var layerOpacity = mySolid.property ("opacity");

    opacitysliderCtrl.onChanging = function()

    {

    var val = Math.round (opacitysliderCtrl.value);

    layerOpacity.value = val;

    };

    myWin.center ();

    myWin.show ();

    Please, help me to see the problem here. Thank you

    There is more harm than good in your work

    At the moment you script attached a slider to a single layer (mySolid, that you add at the beginning).

    This is not very useful, that you cannot use this slider for the other layers.

    You should also keep in mind that this solid can be deleted, so the mySolid object may become invalid (referring to a solid that no longer exists).

    I don't know what, exactly, is your plan, but a script has generally not set anything related to AE in his many body (at launch).

    Only when the user clicks/change a widget script tries to extract a model, layer, property, or anything that the user specified by "a kind of secret code" (most of the time: the model, property, layer, etc. is selected).

    If you want the slider to control the opacity value of all selected layers in the active model, it would be something like this:

    var myWin = new Window("palette", "Transform", undefined); //create pallete
    myWin.orientation = "row";
    
    var myOpacity = myWin.add("panel", undefined, "Solid Opacity");
    myOpacity.orientation = "column";
    
    myOpacity.add("statictext", undefined, "Kontrol Opacity");
    
    var opacitysliderCtrl = myOpacity.add("slider", undefined, 50, 0, 100);//make slider
    opacitysliderCtrl.onChanging = function onOpacitySliderChanging(){
    
            // retrieve the AE things that have to be handled: in this case, all selected layers in the active comp
            var myComp, myLayer, n;
            var layerOpacity, val;
    
            myComp = app.project.activeItem;
            if (myComp.numLayers>0){
                for (n=0; n
    

    Xavier

  • Need help with RANK() on data ZERO

    Hi all

    I am using Oracle 10 g and running a query with RANK(), but it is not a desired output. Pleas HELP!

    I have a STATUS table, which shows the history of the State of the command... I have a requirement to indicate the order and the last date of State (max). If there is no date NULL for a command can show NULL.

    STATUS
    ------------
    ORD_NO | STAT | DT
    ---------------------------------------------
    1. Open |
    1. Pending |
    2. Open |
    2. Pending |
    3. Open | 01/01/2009
    3. Pending | 06/01/2009
    3. Close |
    4. Open | 02/03/2009
    4. Close | 04/03/2009
    Result should be (max date for each ORD_NO NULL otherwise):
    ORD_NO | DT
    ---------------------------------------------
    1.
    2.
    3.
    4. 04/03/2009
    ----------------------------------------------
    CREATE THE TABLE Status (NUMBER of ORD_NO, STAT VARCHAR2 (10), DT DATE);
    INSERT INTO the status of the VALUES (1, 'Open', NULL);
    INSERT INTO the status of VALUES (1, 'Waiting', NULL);
    INSERT INTO the status of VALUES (2, 'Open', NULL);
    INSERT INTO the status of VALUES (2, 'Waiting', NULL);
    INSERT INTO the status of VALUES (3, 'open', 1 JAN 2009');
    INSERT INTO the status of VALUES (3, 'pending', 6 JAN 2009');
    INSERT INTO status VALUES (3, 'Close', NULL);
    INSERT INTO the status of VALUES (4, 'open', 2 MAR 2009');
    INSERT INTO status VALUES (4, 'Close', 4 MAR 2009');
    COMMIT;

    I tried using the RANK function to rank all orders by date. So accustomed ORDER BY cluse to date down the order dates thinking null would be on top and is grouped by each ORD_NO.

    SELECT ORD_NO, DT, RANK() OVER (ORDER BY DT DESC ORD_NO PARTITION)
    STATUS;

    .. but the result was something...
    ORD_NO | DT | RANKING
    ---------------------------------------------
    *1 | | 1 *.
    *1 | | 1 *.
    *2 | | 1 *.
    *2 | | 1 3 | 1
    3. 06/01/2009 | 2
    3. 01/01/2009 | 3
    4. 2009-03-04 | 1
    4. 02/03/2009 | 2
    ----------------------------------------------

    I don't know why, is not the first two ORD_NOs has no group and why the ranking of 1 assigned to them. I'm assuming something like:
    ORD_NO | DT | RANKING
    ---------------------------------------------
    *1 | | 1 *.
    *1 | | 0 h
    *2 | | 1 *.
    *2 | | 1 *.
    3 | | 1
    3. 06/01/2009 | 2
    3. 01/01/2009 | 3
    4. 2009-03-04 | 1
    4. 02/03/2009 | 2
    ----------------------------------------------

    Please guide me if I am missing something here?

    Concerning
    Sri

    Hello

    I think the last stat for 1 and 2 is ongoing unopened.

    Salim cordially.

    SQL> SELECT   ord_no, MAX (stat)KEEP (DENSE_RANK LAST ORDER BY dt) stat,
      2           MAX (dt)KEEP (DENSE_RANK LAST ORDER BY dt) dt
      3      FROM status
      4  GROUP BY ord_no;
    
        ORD_NO STAT       DT
    ---------- ---------- ----------
             1 Pending
             2 Pending
             3 Close
             4 Close      2009-03-04
    
    SQL> 
    

    Published by: Salim champion 2009-05-05 13:09

  • I need help with my first VMs Server ESXi

    I just installed ESXi and created a virtual machine, but I can't get an OS on this virtual machine.  I can't reach the data store to load the files here and I can't get the virtual machine to read a DVD to an iso file on my hard drive of the vSphere client or the host.  I have read the getting started guide, but I see nothing there that mentions the installation of the operating system.

    I have five questions:

    1. How do I put the files .iso on the host data store so that they are available to anyone using this host?

    2. how to install an operating system once I created the machine on the host?

    3 can we clone VM on the host as they can on my computer

    4. How can I make a WS 6.5 capatible VMS on that host ESXi 4.0 U1?

    5. can I just convert my 6.5 VMs to run in that ESXi 4.0 host?

    Thank you

    Hello

    to create the directory to put the ISO just go to the configuration tab-> data store-> right click on the data store-> select Browse datastore. Then you can directly manage data store files, and for example to create the directory for the iso holding.

    In order to upload files to the directory you just created above, you can use the fastscp tool o maybe winscp.

    If you want to use winscp you must enable the remote ssh access on the esxi.

    Best wishes / Saludos.

    Pablo

    Please consider providing any useful answer. Thank you!! - Por favor considered premiar las useful responses. ¡¡MUCHAS gracias!

    Virtually noob blog

  • Need help with java script date

    Hi all

    Using Mac OS 10.6.8 and Adobe Acrobat 9.

    I am working on a form that has course date when you open the form.

    I have a field to enter an earlier date.

    If the effective date is = to or more than 3 years old (1095 days), then it will show a hidden field "sorry your registration has expired.

    If date enered is less than 3 years, then the field remains hidden.

    I have a field to display the result in days, I'm going to hide once the script works.

    Here is the shape right now.

    www.nixmailmac.com/register.PDF

    Any help would be appreciated.

    Ron has

    The code that I provided above is a compacted to if-then-else way. If you really want to, you can use this instead:

    If (event.value< 1095)="">

    getField("Enter_Field_Name_Here").display = display.hidden;

    } else {}

    getField("Enter_Field_Name_Here").display = display.visible;

    }

  • need help with sql query dates

    Hello

    I have a sql query I need to extract some info between data dates. Where clause in this query is:

    WHERE CPD_BUS_UNIT =: ESI_PRM_1
    AND CPD_VOUCHER_DATE > =: P_DATE_FROM
    AND CPD_VOUCHER_DATE < (: P_DATE_TO + 1).

    When I run the query into a toad, I can view the data, but not the execution plan. It gives an error ORA-00932 inconsistent Datatypes.
    But when I remove (+ 1): P_DATE_TO, I can c the execution plan and data. The data will be different from the previous.

    Please suggest how to rewrite the query.

    Can you please give it a try?

    WHERE CPD_BUS_UNIT=:ESI_PRM_1
    AND CPD_VOUCHER_DATE >= :to_date(P_DATE_FROM)
    AND CPD_VOUCHER_DATE < (to_date(:P_DATE_TO)+1) 
    

    Concerning

  • Need help with windows defender. all my files folders pictures everythiing disappeared and I find myself with this black screen and it is not all good: o)

    Need help with windows defender. all my files folders pictures everythiing disappeared and I find myself with this black screen and it is not all good: o)

    I don't know why vista windows no longer charge, or when the files and folders disappeared

    How Windows Defender is on this problem?

    Follow these steps to try to solve your problems of boot.

     

     

    Restore point:

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

     

    If restore work not and you do not have a Vista DVD from Microsoft, do a repair disc to do a Startup Repair:

    Download the ISO on the link provided and make a record of repair time it starts.

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.

    When you have changed that, insert the Bootable disk you did in the drive and reboot.

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    Link above shows what the process looks like and a manual, it load the repair options.

    NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.

    Read all the info on the website on how to create and use:

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    ISO Burner:http://www.snapfiles.com/get/active-isoburner.html

    It's a very good Vista startup repair disk.

    You can do a system restart tool, system, etc it restore.

    It is NOT a disc of resettlement.

    And the 32-bit is what normally comes on a computer, unless 64-bit.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Data recovery:

    1. slave of your hard drive in another computer and read/save your data out there.

    2. put your Hard drive in a USB hard drive case, plug it into another computer and read/save from there.

    3 Alternatively, use Knoppix Live CD to recover data:

    http://www.Knopper.NET/Knoppix/index-en.html

    Download/save the file Knoppix Live CD ISO above.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://isorecorder.alexfeinman.com/isorecorder.htm

    Download the Vista software from the link above.

    After installing above ISO burning software, right click on the Knoppix ISO file > copy the Image to a CD.

    Knoppix is not installed on your PC; use only the resources of your PC, RAM, graphics etc.

    Change the boot order in YOUR computer/laptop to the CD/DVD Drive 1st in the boot order.

    Plug a Flash Drive/Memory Stick, BOOT with the Live CD, and you should be able to read the hard drive.

    When the desktop loads, you will see at least two drive hard icons on the desktop (one for your hard drive) and one for the USB key.

    Click on the icons of hard drive to open and to understand which drive is which.

    Click the icon for the USB drive and click on "Actions > Change the read/write mode" so you can write to disk (it is read-only by default for security reasons).

    Now to find the files you want to back up, just drag and drop them on the USB. When you're done, shut down the system and remove the USB key.

    See you soon.

    Mick Murphy - Microsoft partner

  • [Error number: 0x8024400A] Need help with this error... I reinstalled XP SP1 and I can't get an auto update that's simple to install, just get this error every time

    [Error number: 0x8024400A] Need help with this error... I reinstalled XP SP1 and I can't get an automatic update that's simple to install, just get this error at each time HHHHEEEELLLPPPPP! Thank you

    I had the same problem.  But finally found a solution.  If your listing is similar to mine, then keep.  XP Media Center Edition 2005 (sp2).  AMD Athlon 64 x 2 Dual-Core, HP a1630n desktop computer.

    Go to the HP website, search for sp37394-XP sp3 Upgrade utility Microsoft for systems equipped with AMD processors.

    I had the same 0 x 80240036, 0x8024400a error, but realize my problem was really get manually downloaded sp3 and installed without continue loop crashing and not error messages.

  • Is there a default value for the color management in PSE10? Beautiful photos from iPhoto, but blur with elements. I need help with this before as I consider that the upgrade to PSE13 and beyond.

    Is there a default value for the color management in PSE10? Beautiful photos from iPhoto, but blur with elements. I need help with this before as I consider that the upgrade to PSE13 and beyond.

    Printing which forms an angle seems ok, but one that is horizontally seems faded, incomplete.

    I was wondering if I saved a layer somewhere and set it as a default value.

    If you group the layers, you will be left with a single layer, thus spreading your concern.

    Suggest that you do the following:

    1. Make sure you have the latest drivers for your printers
    2. Reset the default preferences.

    Hold the Alt, Ctrl + Shift keys when you click the icon to open the items. When asked if you want to delete the settings file, say Yes.

    Items nearby and let regenerate the file.

  • Need help with this gallery of xml!

    I have build a gallery but its very simple... There are pictures of the xml file.

    I have attached all the zip files.

    I just want two things if anyone can help.

    first of all when I press the next button, he's going to the next image, but without effect. It just displays the following image... I want to incorporate the effect of dragging when the image is changed to another.

    and secondly, I want to use the AutoPlay feature.

    Once swf starts images came one by one with a vertical drop of a few seconds.

    Thanks in advance... I really need help with this..!

    For the look of sliding effect using the actionscript class Tween.  Allows you to create motion tweens using the code.  The example below will be tween property _x of the instance named anObject from 0 to 300 in 3 seconds...

    import classes before using

    Import mx.transitions.Tween;
    Import mx.transitions.easing.Regular;

    TW var = new Tween (anObject, "_x", Regular.easeIn, 0, 300, 3, true);

    To implement an enforcement function auto you need to import all the images first, in the order, then you will need to use form any controlled timer, such as setInterval (with clearInterval not to need) in order to have things turn on automatically by some part-time

  • Need help with the port forwarding for a XBox remote Streaming

    I have a router R6200v2 and need help with port forwarding.

    I came across this set of instructions for setting up stream port forwarding XBox remotely from anywhere

    http://kinkeadtech.com/2015/07/how-to-stream-Xbox-one-to-Windows-10-from-anywhere-with-Internet/

    I have no idea when it comes to such things and I want to make sure I do it correctly without messing up my existing home network.

    Port Forwarding and triggering Port pages setup look very different from what the guy uses. Can someone walk me through what I do to set up please?

    Hi @varxtis,

    You must enter them in the field for a start external Port and external completion Port. You will need to send individually except for the range of 49000-65000. The steps are as follows.

    1. create a Service name (it could be something else that you cannot use the same service name twice. Ex. XBOX1, XBOX2 and so forth.)

    2. Select the type of service (TCP, UDP or both)

    3 entry 5050 times a start external Port and external endpoints.

    4. Select the IP address of your XBOX.

    5. Select apply.

    6 do the same for other port numbers. To the beach, use 49000 for the external departure Port and for the external completion Port 65000.

    Kind regards

    Dexter

    The community team

  • Need help with understanding PowerCli scripting by LucD

    Hello

    I'll give you the standard statement that I am a noob powercli and don't really know what I'm doing here.  Here's a script that works because it runs without error and gives a report but I need help to understand this under his weight.

    Connect-VIServer '< our vcenter >' - user < user > admin-password < admin-user-pwd >

    $allvms = @)

    $vms = get - Vm | where {$_.} PowerState - eq "Receptor"}

    $start = (get-Date). AddDays(-1)

    $metrics = "mem.usage.average".

    $stats = get-Stat-entity $vms - start $start - Stat $metrics

    $stats | Group-object - property {$_.} Timestamp.Day}, {$_.} @entity.name} | %{

    $vmstat = "" | Select the day, MemAlloc, MemMin, MemMax, MemAvg, VmName

    $vmstat. VmName = $_. Values [1]

    $vmstat. Day = $_. Group [0]. Timestamp.Date

    $mem = $_. Group | where {$_.} MetricId - eq "mem.usage.average"} | Measure-object-property value - average - Maximum - Minimum

    $vmstat. MemMax = [int] $mem. Maximum ##dfsdf

    $vmstat. MemAvg = [int] $mem. Average

    $vmstat. MemMin = [int] $mem. Minimum

    $vmstat. MemAlloc = $_. Group [0]. Entity.MemoryMB

    $allvms += $vmstat

    }

    $allvms |

    Export-Csv "c:\ < folder > \ <>.csv file Destination"-noTypeInformation

    It connects to our server vcenter server and offers two days of data.  Today and yesterday, all with a timestamp of 0:00.  See below for an example of a virtual machine.

    VmNameDayMemAllocMemMaxMemAvgMemMin
    < name VM1 >07/05/2016 0:004096181818
    < name VM1 >06/05/2016 0:0040963612

    8

    The MemMax, the MemAvg and the MemMin are for this day?  Just the max of this period of sampling time 0:00?

    What I'm looking for, it is to find that the use of the maximum memory of virtual machines are for the whole day.  So I hope that I can remove memory of VMs that do not use it.  I was listed on the change $start = (Get-Date). The value of AddDays(-1) to $start = (Get-Date). AddDays(-30) and see what things alike.  I want to be sure however that the value for MemMax is the highest value for a period of 24 hours.  That is to say for the 07/05/2016 the given virtual machine never used a maximum of 18% of his memory attributed the 06/05/2016 the maximum amount of memory used was 36%, and so on that I extend on the date range.

    Kind regards

    Michael

    It then becomes a rather simple Get-Stat script.

    $vms = get - Vm | where {$_.} PowerState - eq "Receptor"}

    $start = (get-Date). AddDays(-1)

    $metrics = "mem.usage.average".

    Get-Stat - entity $vms - start $start - Stat $metrics |

    Select Timestamp,@{N='VM'; E={$_. @entity.name}}, Value |

    Tri-objet-VM property |

    Export-Csv "c:\------.csv '-noTypeInformation

  • Need help with the data storage store, local array and network connections

    Need help with my ESXi 4.1 installation

    My hardware:

    I built a server with an Asus P6T whitebox, i7 920, 12 Gig RAM, NIC, Intel Pro1000 PT Quad, 3ware 9650SE-12ML with 8 1.5 TB SATA green in a raid 6 array gives me about 8 + TB with a spare drive all housed within a NORCO RPC-4220 4U Rackmount Server chassis.  I also have a 500 GB SATA drive which will hold the ESXi and virtual machines.

    The network includes a firewall, Netgear Prosafe FVS336G, GS724Tv of Netgear ProSafe 24 port Gigabit Managed Switch on a dhcp cable modem internet service provider.

    I also have 2 old NetGear SC101T NAS disks (4to) I want to connect to the system how some - at a later date have... data on them and want to transfer to the new storage array. I always looking into the question of whether they will work with ESXi 4.1, or I might have to only access it through Windows XP.

    My Situation:

    I have already installed ESXi 4.1 and vsphere client with no problems and it is connected to a dhcp cable internet service.  I've set up host via a dynamic DNS service name give me a static hostname on the internet.  I installed three machines to virtual OS successfully at the moment and now want to first start by creating a multimedia storage server which will use some of this new 8 TB array, then separate data storage for use with a web server small overhead storage and a backup.  It is a domestic installation.

    Help with the data store and network:

    I was doing some reading, because I'm new to this, and it looks like I'll probably want to set up my table via ESXi as a nfs disk format.  Now, the data store is usually in another physical box from what I understand, but I put my readers and ESXi all in the same box.  I'm not sure that the best way to put in place with grouped network cards, but I want to make this work.

    I understand that in ESXi 4.1 using iSCSi LUN must be less than 2 TB, but nfs - I should be able to add a bigger partition then 2 TB (for my multimedia) in nfs, right? or should I still add it separately as a separate 2 TB drives and then extend them to get the biggest space.

    Any suggestions or direct resources showing examples on how to actually add some parts of the table as data warehouses separate nfs.  I know that to go to the configuration tab, and then select Add to storage, and then select nfs. I have not my picture, but it's here that I don't know what to do because ESXi 4.1 system already has an address, should I put the same thing to the new data store array also (will it work?), and what should I use for the name of the folder and the store of data... just do something to the top.  I thought to later install Openfiler (for a multimedia storage using this table server) as a virtual machine, use the table with esxi so that I can access the same storage space with widows and linux-based systems.

    I also know I have to find a way to better use my quad nic card... put in place of virtual switches, grouping, etc HELP?

    Any direction, assistance, similar facilities to sample, suggestions or resources that would help would be great. I did a lot of hunting, but still a little confused on how to best to put in place.

    You must think of VMDK files of large databases with records of random size guest go read some data (a DLL or an INI file), maybe write some data back, then go read other data. Some files are tiny, but certain DLLs are several megabytes. It's random i/o all and heavy on the search time. IO Opsys is small random operations that are often sequential (go read data, write data, go read other data,...) so that deadlines are critical to the overall performance. That's why people say OPS are / s of reference and forget the MBs flow. The only time where you bulk transfers are when you read media (ISO files).

    Well, now forget all this. Actually the disk activity will depend on the specific applications (database? mail server? machines compiler?), but the above is true for boots, and whenever applications are idle. You should see the profile to know.

    RAID 10 is faster (and often more reliable) than RAID 5 or RAID-6 except in certain specific cases. In General RAID 10 is ideal for many random writes, since the calculation of parity for RAID-5 and - 6 adds to the overall latency between command and response - latency is cumulative if a little slow here and a little slow it adds up to a lot of overall slow synchronous especially with e/s on a network. OTOH RAID-5 and -6 can produce faster readings due to the number of heads, so you can use it for virtual machines that transfer bulk. Test. You may find that you need several different types subdashboards for best results.

    You said 3ware, they have some good grades on their site, but don't believe it. With my 9650 that I found myself with only a couple of their recommendations-, I put the (simple) table for allocation size 256 k, nr_requests at 2 x the queue_depth and use the planner date limit. I had the habit for the Ext4 file system formatted with stride and stripe-width synced to the table and used the options large_files with fewer inodes (do not use the huge_files option unless you plan to have single VMDK files in the terabyte range). Use a cache of great reading in advance.

    Virtual machines use VMDK files in all cases except raw iSCSI LUN that they treat native disks. VMDK is easier to manage - you can make a backup by copying the file, you can move it to a PC and load it into another flavour of VMware, etc. There could be some features iSCSI to your San as a transparent migration but nothing for me. NFS has less chatter of Protocol if latency lower times to complete an operation. NFS is good to read and write a block of data, that's all it boils down to.

    UPS is good, but it won't help if something inside the machine explodes (UPS does nothing if the PC power supply goes down). If the RAID card has an option for a battery backup module, so it can contain some writings in memory and may end up the disk i/o after replacing the power supply. 3ware also limits the types of caching available if help is not installed, and you get just the right numbers with the module.

Maybe you are looking for