Help with the UpdateView() method inside my function

Hi all!

Right, I started my journey to the bottom of the more 'Advanced' way of using Powercli scripting languages and in the process have resulted in a few questions that I try to answer. I have created an advanced function of earlier and was very "impressed" (sorry only word I could think ) with it as it has been very useful in my work on the day the day. This lead me on the creation of the more advanced functions and placing them in a "module" folder\file. However, even if the majority of them is reporting back exactly what I wanted. THE MAIN PROBLEM IS THE PERFORMANCE. We have a very large domain (3000 VMs) and the VM back news taking so long.

So after having posted on gettting here and thankfully not only my answered by LucD but LucD send me pointers as to where I can go to the question. I read the links he sent me and same have bought book of Steve Jins. My knowledge is improvin, but seem to be stuck here and need help.

I have attached my function below and would like someone to talk me through the following:

1. I understand the cmdlet Get-view works now and especially in conjunction with my function below. I tested it and it works great and IS faster than just using the approach of the cmdlet. I understand that the .NET view is simply a larger range of objects that can be much faster retrieve? He has worked and is faster when I tested it. I am so satisfied with the aspect of get-view of things.

2. now leading me on the method of UpdateViewData() - how can I (or can I?) incorporate into my function. I added in, but I don't know if I used it properly, or even if it's supposed to be used like this if someone can help that will be greatly appreciated.

Any help would be as always be appreciated

Thanks in advance

Munster

Function Get-VirtualmachinesInfo {}

< #.

# >

[CmdletBinding()]

(PARAM

[Parameter (mandatory = $true,)]

ValueFromPipeline = $true,

ValueFromPipelineByPropertyName = $true,

HelpMessage = "Please enter the VM name")]

[ValidateNotNullOrEmpty()]

[String []] $VMName

)

BEGIN {$OutputObj = @ () # output initialization object array

}

{IN PROCESS

Try {}

{Foreach ($VM to $VMName)

If ($VM. GetType(). Name - eq 'string') {}

Try {}

$VM = get - VM $VM - ErrorAction Stop

}

{} Catch [Exception]

Write-Warning "$VM is NOT a virtual machine.

continue

}

}

} ElseIf ($VM - isnot [VMware.VimAutomation.ViCore.Impl.V1.Inventory.VirtualMachineImpl])

Write-Warning "you not pass a string or a VM object.

continue

}

"$VMView get-View - ViewType Virtualmachine-filter = @{'name' = $vm.name}.

-Name of the property, config, summary

$VMView | %{$_. UpdateViewData ("VM. "Name", "VM.config", "VM. Summary")}

$Props = [ordered]@{'Name'=$VMView.name;

'Version' = $VMView.config.version;

'UuID' = $VMView.config.Uuid;

'CPU_Num' = $VMView.config.hardware.NumCPU;

'CorSkt_Num' = $VMView.config.hardware.NumCoresPerSocket;

"Nics_Num" = $VMView.summary.config.NumEthernetCards;

"VHDs_Num" = $VMView.summary.config.NumVirtualDisks;

}

$Obj PSObject = new-Object-property $Props

$OutputObj += $Obj

}

}

{} Catch [Exception]

THROW "could not get the VM details, please confirm that the virtual machine exists."

}

}

{END}

Write-Output $OutputObj # exit EXIT pipeline objects

}

}

Fix.

Tags: VMware

Similar Questions

  • Need help with the URLRequest method

    Hello

    I built an MP3 player and must now run on my server. The idea behind the player is to allow users of songs to rate the player pulls the file system. The code below shows telling me the drive to read a specific file, but I need to play a bunch of files at random and don't allow users to listen to the file once. Given that users download MP3s with their own names, there is really no particular order in which the songs are, and the number of songs always fluctuate. How can I get the player to play the songs in the folder randomly and only once per user?

    Thanks in advance!

    Here is my code:

    import flash.events.MouseEvent;
    import flash.media.Sound;
    import flash.net.URLRequest;
    import flash.media.SoundChannel;
    Import fl.events.SliderEvent;

    var myMusic:Sound = new Sound();
    var soundFile:URLRequest = new URLRequest ("lpwfte.mp3");
    channel: var SoundChannel = new SoundChannel();
    var sTransform:SoundTransform = new SoundTransform();
    var myTimer:Timer = new Timer (100);
    var songPosition:Number = 0;
    var myContext:SoundLoaderContext = new SoundLoaderContext (5000);

    myMusic.load (sound file, myContext);

    myTimer.addEventListener (TimerEvent.TIMER, updateTime);
    buttonPlay.addEventListener (MouseEvent.CLICK, playMusic);
    btnStop.addEventListener (MouseEvent.CLICK, StopMusic);
    sldVolume.addEventListener (SliderEvent.CHANGE, ChangeVolume);
    myMusic.addEventListener (Event.COMPLETE, getSongLength);
    btnPause.addEventListener (MouseEvent.CLICK, pauseMusic);

    function pauseMusic(evt:MouseEvent):void
    {
    songPosition = channel.position;
    Channel.Stop ();
    }

    function convertTime(millis:Number):String
    {
    var Minutes: Number = (millis % (1000 * 60 * 60)) / (1000 * 60);
    var seconds: Number = ((millis % (1000 * 60 * 60)) % (1000 * 60)) / 1000;
    If (< 10 minutes)
    {
    var displayMinutes:String = '0' + Math.floor (Minutes);
    } else
    {
    var displayMinutes:String = Math.floor (Minutes) m:System.NET.SocketAddress.ToString ();
    }
    If (second < 10)
    {
    var displaySeconds:String = '0' + Math.floor (Seconds);
    } else
    {
    var displaySeconds:String is Math.floor (Seconds) m:System.NET.SocketAddress.ToString ();.
    }
    Return displayMinutes + ":" + displaySeconds;
    return (Math.floor (Minutes) + ': ' + Math.floor (Seconds));
    }

    function updateTime(evt:TimerEvent):void
    {
    lblSongTime.text = convertTime (channel.position);
    }

    function getSongLength(evt:Event):void
    {
    lblSongTotalTime.text = convertTime (myMusic.length);
    lblSongName.text = myMusic.id3.songName;
    lblSongArtist.text = myMusic.id3.artist;
    lblSongYear.text = myMusic.id3.year;
    }

    function ChangeVolume(evt:SliderEvent):void
    {

    sTransform.volume = sldVolume.value;
    channel.soundTransform = sTransform;
    }

    function StopMusic(evt:MouseEvent):void
    {
    Channel.Stop ();
    songPosition = 0;
    }

    function playMusic(evt:MouseEvent):void
    {


    Channel = myMusic.play (songPosition);
    myTimer.start ();
    }

    The scope of what you're asking is probably beyond the intent of these forums, at least beyond the intent of most of the people who help here.  Though you might get lucky and find someone who is willing to share a design completed with you.  But here are some of the things that you need to learn/do to get where you want to be.

    First of all, you need to get a player that has a list (an array) of different music files it can play.

    Once you have this work, since you want that random play order, the way the easiest would be to shuffle table before playing anything.  You can accomplish this by using a shuffle like this feature...

    function shuffle(a:Array) {/ / pass the array to be shuffled as argument}
    var p:int;
    var t: *;
    var ivar:int;
    for (ivar =. Length-1; Ivar > = 0; Ivar-) {}
    p = Math.Floor ((Ivar+1) * Math.Random ());
    t = a [ivar];
    a [ivar] = a [p];
    a [p] = t;
    }
    }

    So, if you want that the user will not be able to play things once, then you need to control how file names are available, either by a clue no additional discount by the removal of the songs in the list because they are played.

    And if you want to really only to allow them to hear the songs that once, you must use other demanding such measures connect via a database where it costs money for must register as nobody will join two times...

    Once you have that working, then you must work to get the list of pieces to create dynamically by reading the content of the song on the server folder.  Because the Flash can't do it himself, you'll need a language aside server like PHP to act as the middle man, read the contents of the folder and relay that data of the Flash file in a Flash format for dealing with... Œuvres XML.

  • Help with the release of PHP Mail function/Checkbox

    I'm about to shoot my library of books of David Powers, but I thought I'd post here in case I can't locate.

    I'm trying to manipulate the output of checkboxes in DW. I use PHP and when checkboxes are selected they come thrus issued (in an html e-mail) 'on '.

    So, if the 3 are checked is shows like "ononon". I rechecked the labelling, what am I missing?

    Thank you!!!

    Nevermind, found the info in the book of david - as usual... Thanks Dave!

  • Need help with the method of the chains

    Hello

    I've been running a program for months now that I have written which splits strings and evaluates the split resulting. I have an object only (OrderDetail) field that contains the values in the array of split strings. Today, I received a table off exception limits on a split. I haven't changed the code and since I can say that the structure of the message has not changed. The string is delimited by commas. When I count the commas there are 26, which should, however, the split is not coming up with the same number.

    Here is the code I used and counter, I created to count the commas:

    public stringParse (String DSB) OrderDetail

    {

    OrderDetail returnOD = new OrderDetail();

    int comma = 0;

    for (int i = 0; i < ord.length (); i ++)

    {

    If (ORD.charAt (i) == ',')

    {

    commas ++;

    }

    }

    String [] ordSplit = ord.split(",");

    System.out.println ("delims:" + ordSplit.length + "commas:" + comma + "" + ordSplit [0] + "" + ordSplit [1] + "" + ordSplit [2] + "" + ordSplit [5]);

    ........

    }

    The rest of the right method assigns values to the OrderDetail returnOD fields.

    Here is the offending string (XXX replace characters to hide private info)

    1096200000000242505,1079300000007578558,,,2013.10.01T23:58:49.515,,USD/JPY,maker,xxx. XX, XXX. XXXXX, XXXXXXXXXXXXXXXX, USD, sale, FillOrKill, 400000.00, ask, 97.7190000, 1096200000000242505,.

    For this particular string ordSplit.length = 24 and commas = 26.

    Any help is appreciated. Thank you.

    Today, I received a table off exception limits on a split

    I don't see how that could happen with the "split" method because it creates its own array.

    For this particular string ordSplit.length = 24 and commas = 26.

    PERFECT! That's exactly what it should be!

    ' Look closely at the end of the string example you posted and you will see that there are empty strings at the end of the end: ' 1096200000000242505, '

    Then if you read the Javadocs for the "split" method, you will find that those who will NOT be included in the resulting table:

    http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#split(java.lang.String)

    Split

    public String[] split(String regex)
    
    Splits this string around matches of the regular expressiongiven.

    This method works as if by invoking the two arguments of the split method with an argument of the limit of zero and the given expression. Empty strings are therefore not included in the resulting table.

    Just a hunch, but your 'out limits exception' is probably due to your code assuming there are 26 entries in the table and there are really only 24.

  • If anyone can help with the decision-making of a virus on my computer?

    The virus comes from facebook and he's trying to make me activate defender internet windows. I use McAfee, and it detects no viruses. It is, of course, come by the defender of the internet.

    Hello

    If you need search malware here's my recommendations - they will allow you to
    scrutiny and the withdrawal without ending up with a load of spyware programs running
    resident who can cause as many questions as the malware and may be more difficult to detect as the
    cause.

    No one program cannot be used to detect and remove any malware. Added that often easy
    to detect malicious software often comes with a much harder to detect and remove the payload. Then
    its best to be thorough than paying the high price later now too. Check with them to one
    extreme overkill point and then run the cleaning only when you are sure that the system is clean.

    It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run
    the regular windows when you can.

    TDSSKiller.exe. - Download the desktop - so go ahead and right-click on it - RUN AS ADMIN
    It will display all the infections in the report after you run - if it will not run changed the name of
    TDSSKiller.exe to tdsskiller.com. If she finds something or not does not mean that you should not
    check with the other methods below.
    http://support.Kaspersky.com/viruses/solutions?QID=208280684

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone.
    (If Rootkits run UnHackMe)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can
    Download it here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with others
    security programs. It is a single scanner, VERY EFFICIENT, if it finds something to come back
    here or use Google to see how to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software
    (viruses, Trojans, rootkits, etc.). who infected your computer despite safe
    what you have done (such as antivirus, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

    --------------------------------------------------------

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

    New Vista and Windows 7 version
    http://OneCare.live.com/site/en-us/Center/whatsnew.htm

    Original version
    http://OneCare.live.com/site/en-us/default.htm

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

    --------------------------------------------------------

    After the removal of malicious programs:

    Also follow these steps for the General corruption of cleaning and repair/replace damaged/missing
    system files.

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to fix the system files of Windows 7 with the System File Checker
    http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.html

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Also run CheckDisk, so we cannot exclude as much as possible of the corruption.

    How to run check disk in Windows 7
    http://www.SevenForums.com/tutorials/433-disk-check.html

    -----------------------------------------------------------------------

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    ======================================

    If necessary AFTER THAT you are sure that the machine is clean of any malware.

    How to do a repair installation to repair Windows 7
    http://www.SevenForums.com/tutorials/3413-repair-install.html

    I hope this helps.

  • Need help with the blue screen issue "NAVEXI5. SYS, PAGE_FAULT_IN_NONPAGED_AREA ".

    Original title: need help with the blue screen issue
    My computer turns saying a blue screen: a problem has been detected and windows were shut down to prevent damage. The problem seems to be caused by the following file: NAVEXI5. SYS PAGE_FAULT_IN_NONPAGED_AREA he seems to have a different error whenever he turns to a blue screen. Can someone help me please.

    Hello

    1. Since when are you facing this problem?
    2. you remember to make changes to the system?
    3. do you get an error with this error code?

    I suggest to unplug external devices such as printer, scanner, etc. that are plugged into the system, and then restart the system and check if the problem persists.

    Method 1.
    I suggest you to do a check disk from the recovery console and check if the problem is resolved. Follow the steps mentioned below.
    a. start into the recovery console using the XP CD. Follow the steps mentioned in the article below.
    Description of the Windows XP Recovery Console for advanced users
    http://support.Microsoft.com/kb/314058
    b. perform a disk check.
    How to perform disk error checking in Windows XP
    http://support.Microsoft.com/kb/315265

    Method 2.
    I suggest you to start with the XP CD and then do a system restore. Follow the steps mentioned in the article below.
    How do I recover from a corrupted registry that prevents Windows XP startup
    http://support.Microsoft.com/kb/307545

    I hope this helps.

  • can someone help with the following code plsql errors...

    Hello

    If anyone can help with the following code... to get a successful outing.

    create or replace package lib_01 as

    procedure lib_proc01 (p_user_id in numbers, p_user_name in varchar2);

    end lib_01;

    create or replace package body lib_01 as

    procedure lib_proc01 (p_user_id in numbers, p_user_name in varchar2) as

    number of v_user_id;

    v_user_name varchar2 (50);

    number of v_avl_books;

    number of v_avl_days;

    date of v_end_date;

    date of v_return_date;

    Start

    dbms_output.put_line ('Enter User Name');

    dbms_output.put_line (' username :'|| p_user_name);

    Select user_id, user_name in v_user_id v_user_name of user_registration where user_name = p_user_name;

    If v_user_name <>p_user_name then

    dbms_output.put_line (' username is not.) Please submit full name ');

    end if;

    If v_user_id is null or v_user_name is null then

    dbms_output.put_line ("' user not found");

    validate_userLogin;

    on the other

    validate_issuedbooks (p_issuecount);

    end if;

    If v_issuecount < v_avl_books then

    issuebooks;

    on the other

    Number of return of late_fee (p_mem_id, p_extradays, p_latefee_total);

    end if;

    If paid_flag = "Y" then

    issuebooks;

    on the other

    dbms_output.put_line ("' book may be issued due to its maximum reached late fees");

    end if;

    end lib_proc01;

    procedure validate_userLogin is

    procedure reg_proc is

    procedure user_validate (p_id_proof in varchar2, p_id_no out varchar2) is

    v_id_proof varchar2 (20);

    v_id_no varchar2 (20);

    Start

    Select user_name, id_proof, id_no, v_user_name, v_id_proof, v_id_no of user_registration where id_proof = p_id_proof;

    If v_id_proof = "Adhar_Card" then

    dbms_output.put_line ('user a valid proof of ID');

    dbms_output.put_line (' and the id no. :'|| is p_id_no).

    on the other

    dbms_output.put_line ('Invalid ID evidence.) Please submit valid proof of ID ');

    end if;

    exception

    When no_data_found then

    dbms_output.put_line ('No Data found');

    end user_validate;

    procedure member_validate (p_mem_id series)

    v_mem_flag char (1);

    curr_date date: = sysdate;

    date of v_mem_enddate;

    Start

    dbms_output.put_line('Mem_flag:'|| v_mem_flag);

    Select mem_flag in the v_mem_flag of user_login where user_id = v_user_id;

    If v_mem_flag = 'n' or v_mem_flag is null then

    dbms_output.put_line ('The User do not have membership');

    on the other

    Select mem_id in the v_mem_id of user_login where user_id = v_user_id;

    dbms_output.put_line ('the user has membership');

    v_mem_id: = p_mem_id;

    Select mem_enddate in the member_login v_mem_enddate where mem_id = v_mem_id;

    If v_mem_enddate < curr_date then

    dbms_output.put_line ('Membership has expired' | v_mem_id |' on ' | v_mem_enddate);

    on the other

    dbms_output.put_line ('User a validity again' | v_mem_enddate);

    end if;

    end if;

    exception

    When no_data_found then

    dbms_output.put_line ("' no data found");

    while others then

    dbms_output.put_line (' another error.) Please find");

    end member_validate;

    Start

    insert into user_registration values ('& first_name ',' & last_name', null, ' & user_type',)

    address_ty ("& bldg_no",

    '& bldg_name',

    '& Street',

    ' & city ",

    '& State',

    '& zip'

    ),

    user_phone ',' & user_mail ',' mem_idproof', ' & id_no');

    Dbms_output.put_line ('user is properly registered');

    exception

    When no_data_found then

    dbms_output.put_line ("' data not found");

    end reg_proc;

    Start

    Dbms_output.put_line (' enter ID or user name ');

    Dbms_output.put_line (' username: ' | p_user_name);

    If v_user_name is null then

    Dbms_output.put_line ('user not found');

    reg_proc;

    Insert user_login SELECT user_id_seq. NEXTVAL, user_name, NULL, mem_id_seq. NEXTVAL, user_type FROM user_registration WHERE user_name is lower (p_user_name);

    Dbms_output.put_line (' because the user wants to have the membership? ");

    Dbms_output.put_line ('If Yes, please pay dues");

    INSERT INTO member_login SELECT mem_id_seq. CURRVAL, SYSDATE, SYSDATE + avl_days, 500, 'Y' of user_login ul, bl book_loan WHERE ul.mem_type = bl.mem_type AND user_name = p_user_name;

    END IF;

    exception

    When no_data_found then

    dbms_output.put_line ("' no data found");

    When too_many_rows then

    dbms_output.put_line (' too many lines).

    END validate_userLogin;

    procedure validate_issuedbooks (p_issuecount series)

    number of v_issuecount;

    Start

    Select user_login u, bl book_loan, avl_days, avl_books in v_avl_days, v_avl_books where bl.mem_type = u.mem_type and user_id = p_user_id;

    SELECT count (case when end_date < end return_date then p_mem_id) as invalidcount in v_issuecount from book_count where mem_id = p_mem_id;

    v_issuecount: = p_issuecount;

    dbms_output.put_line (' no. books that the user contains the :'|| p_issuecount);

    end validate_issuedbooks;

    procedure issuebooks is

    procedure book_avl (p_avl_now_flag in p_avl_date Boolean, date) is

    v_avl_now_flag char (1);

    date of v_avl_date;

    procedure reader_bookissue is

    Start

    insert into values drive (p_user_id, v_book_id, sysdate, sysdate, null);

    insert into book_count values(p_mem_id,v_book_id,sysdate,sysdate,null);

    Update book_availability set issued_to is "Reader" where book_id = v_book_id;.

    end reader_bookissue;

    Start

    Select book_name, b.book_id avl_now_flag v_book_name, v_book_id, v_avl_now_flag of the book b, book_availability b where b.book_id = ba.book_id and ba.book_id = p_book_id;

    If v_avl_now_flag = "Y" then

    dbms_output.put_line ('the book is available for issuance' | v_book_id);

    on the other

    Select mem_type in the v_mem_type of user_login where user_id = (select user_id from book_availability where avl_now_flag = 'n' and book_id = p_book_id);

    If v_mem_type = "Reader" then

    reader_bookissue;

    dbms_output.put_line (' the book is with Reader.) Please try tomorrow.') ;

    on the other

    dbms_output.put_line ('the book is member');

    end if;

    Select avl_date in the book_availability v_avl_date where book_id = p_book_id;

    v_avl_date: = p_avl_date;

    dbms_output.put_line (' the available date is: ' | p_avl_date);

    end if;

    end book_avl;

    Start

    insert into book_count values(p_mem_id,p_book_id,sysdate,sysdate+v_avl_days,v_return_date);

    Update book_availability set book_id = p_book_id, avl_now_flag = 'n', avl_date is to_date (sysdate + v_avl_days,' dd-mm-yyyy ""), issued_to = v_mem_type, user_id = p_user_id where mem_id = p_mem_id;

    commit;

    dbms_output.put_line ("' the book published successfully");

    end issuebooks;

    Number of function return late_fee (p_mem_id in number, p_extradays series, p_latefee_total number) is

    number of v_extradays;

    number of v_latefee_total;

    number of v_latefee_per_book;

    number of v_latefee_per_day;

    number of v_book_count;

    Start

    Select trunc (sysdate) - v_end_date in v_extradays from book_received where mem_id = p_mem_id and book_id = p_book_id;

    p_extradays: = v_extradays;

    v_latefee_per_book: = v_latefee_per_day * v_extradays;

    v_latefee_total: = v_latefee_per_book * v_book_count;

    p_latefee_total: = v_latefee_total;

    dbms_output.put_line ('The total AMT for not returned books' | p_latefee_total);

    end late_fee;

    end lib_01;

    Hello

    I checked the first 10 lines after the beginning and I could count already several errors.

    Is it an exercise or a real code, you must provide?

    Kind regards.

    Alberto

  • Help with the query to select only one record from the result set in double

    Hello

    Please help with the query. Version of Oracle database we use is 10g R2.

    I have a vision that is duplicated IDS, but they are used across the different functions. See below examples of data. Please help me with a query to select only one record (based on ID regardless of the area) from the bottom of the result set of duplicate records. For what is the point of view is there unique records, given the combination of the fields ID, Org, DF, dry, Sub-Sec

    ID
    Org
    DF
    Sec Sub-Sec

    (163)CQCPDMCPDMHD(163)PCENGENGENG(163)CQASICASICIS8888TSTACTACTAC(163)TSHEHESW6789CQINFOINFOFOS6789PCSECSYSSECSYSINFO16789TSSECSYSSECSYSINFO29009PCBMSBMSBMS1

    My result set must eliminate the duplicate identifiers regardless of whoever we choose of the result set. (I mean without distinction Org, DF, s, Sub-s). My expected result set should be.

    ID
    DSB

    DF
    SEC
    Sub-Sec
    (163)CQCPDMCPDMHD8888TSTACTACTAC6789CQINFOINFOFOS9009PCBMSBMSBMS1


    Thank you

    Orton

    Hello

    This sounds like a job for ROW_NUMBER:

    WITH got_r_num AS

    (

    SELECT id, DSB, df, s, sub_sec org

    ROW_NUMBER () OVER (PARTITION BY ID.

    ORDER BY org

    ) AS r_num

    OF view_x

    )

    SELECT id, DSB, df, sub_sec s,

    OF got_r_num

    WHERE r_num = 1

    ;

    He is a Top - N query example, where you choose the elements of N (N = 1 in this case) from the top of an ordered list.

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and INSERT, only relevant columns instructions) to your sample data and the results desired from these data.  (I know that you said that you were a view selection.  Just for this thread, pretending it is a picture and post simple CREATE TABLE and INSERT statements to simulate your point of view).
    Point where the above query is to produce erroneous results, and explain, using specific examples, how you get the right results from data provided in these places.  (I didn't quite understand the explanation above.  I don't know why you want to

    ID ORG DF DRY SUB_SEC

    --      ---     --      ---     -------

    1234 CQ DPRK DPRK HD

    and is not

    1234 IS CQ ASIC, ASIC

    or

    TS 1234 IT IT SW

    or

    1234 CQ ASIC ASIC HD

    )
    If you change the query at all, post your modified version.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

  • 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.

  • I need help with the control of two .swf in third.

    Hi, thanks for reading!

    I need help with the control of two .swf in third.

    I have a problem when I need to use a .swf in a digital signage solution, but were advised by the Legal Department, it cannot be changed in any way, I can not also have the source file blah blah blah. I pulled the .swfs on their site and I decompiled to see what I was up against.

    The main SWF that I need control is HCIC.swf and the problem is that it starts with a preloader, which, after the loading stops on a framework that requires user input to (button) on a play button, until the film will proceed and replay.

    What I've done so far is to create a SWF container, HCIC_container.swf, which will serve as a target for the HCIC.swf and I would like to send actionscript in the file, I am not allowed to edit.

    I managed to get done with help from someone on another forum. It is my hope that the following script just start HCIC.swf a framework after the preloader and button play and just play through.

    var container: MovieClip = createEmptyMovieClip ("container", getNextHighestDepth());
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    mcLoader.addListener (this);
    mcLoader.loadClip ("MCIC.swf", container);

    function onLoadInit(mc:MovieClip) {}
    mc.gotoAndPlay (14);
    }

    But unfortunately it does not solve my problem. Because there is a media - controller.swf, which is charged by HCIC.swf who has orders, including the play button to start HCIC.swf.

    Here is a link to a .zip with all 3 files .swf file and all 3 .fla files.

    http://www.axiscc.com/temp/HCIC.zip

    What I have to do is to automatically start the HCIC.swf file, bypassing the pre-loader and play button without having to edit it or in the media - controller.swf in any case. Thus, all scripts must be done in HCIC_container.swf.

    I know it is confusing and it is difficult to explain, but if you look at the files it must make sense.

    ActionScripting is far from my point hard, so I'm definitely over my head here.

    Thanks for your help.

    Got my solution on another forum.

    http://www.ActionScript.org/forums/showthread.php3?t=146827

  • What is the correct way to ask for help with the forum, rather than product, questions?

    I can't find the right way to ask a question about the forums themselves.

    PAGulley said

    I can't find the right part of the forum to ask questions about the forum itself and its features. I wonder what the right place and the way is to get help with the forum system itself. I can find the place to ask questions about specific Mozilla products very well.

    Look up where it says contributor tools and select Contributor Forums. Make sure that you scroll to the top or you'll get a bar with different links instead,

    The forum is https://support.mozilla.org/forums where you question would be better in the SUMO community discussions.

  • Need help with the installation of an adapter of Palit GeForce 9500GT Super chart - 512 MB in a M2N68 (narrated

    Need help with the installation of an adapter of graphics Super Palit GeForce 9500GT - 512 MB - DDR2 SDRAM in a M2N68 motherboard (narra6). Should I disable the onboard graphics in the bios? When the card is installed, no VGA work outs and the PC does not start. Checked and recontroler implementation of the card in the PCI slot. PC is a desktop HP G5200uk PC. Windows 7 operating system.

    Hello

    The link below is a guige to install a video card in your Pc.  In particular, it seems that you will have to perhaps specify the location of the new card in the bios and save this change before you install the new card - see step 4 in the guide on the link below.  If your new card fits into the PCI Express x 16 slot, you will need to define PCI Express in the bios and save the changes.

    http://support.HP.com/us-en/document/c01700855

    Kind regards

    DP - K

  • help with the beats on my envy 17-3270nr, n key

    help with the beats on my envy 17-3270nr key. recent Smart hard disk crash, replaced with exact same hitachi drive, same care extended warranty repairs covered of the Frys. Windows 7 Edition home premium w / service PAC 1 installed, drivers installed, except that now there is no volume of beats on screen graphic dial button, click the button on top button on the page does not call the beat of the application settings. Futhermore; the motion sensors of laser to activate the keyboard backlit keyboard do not work.  Are there drivers hp software to enable the missing features?

    Hello

    Download and install the following.

    HP OSD utility.

    Proximity sensor driver.

    Once completed, restart the laptop.

    Kind regards

    DP - K

  • I need help with the program of Photos on my macbook pro

    I use a Macbook Pro with OS of Yosemite. I really need help with the Photo program. I never really got the hang of IPhoto and now that it's a new program, I'm really confused. Where can I go to learn this without waiting for the next workshop in a local store?

    Hi, I'm fighting to open same mine, making a new software update

  • Help with the Powershell script to collect logs from all domain controllers

    I am writing a script to retrieve the last 5 days of application, security and log files from all domain controllers. The script runs, but fire the logs from the local server only. The variable $Computer has all of my DC so it's the fine mark. I guess it's a problem with my line ForEach-Object, but is not error. See the below script.

    $log = 'application '.
    $date = get-date-format MM-DD-YYYY
    $now = get-date
    $subtractDays = new-object System.TimeSpan 5,0,0,0,0
    $then = $Now.Subtract ($subtractDays)
    $Computers = get-ADDomainController-filter *.
    ForEach-Object - InputObject $Computers - process {Get-EventLog - LogName $log - after $then - before $now - EntryType error | select EventID, MachineName, Message, Source, TimeGenerated |} ConvertTo-html | {Out-file $env:TEMP\Applicationlog.htm}
    Invoke-Expression $env:TEMP\Applicationlog.htm

    Thank you

    Rich

    Hello

    To help with the repost the question script to the script Center Forum

    http://social.technet.Microsoft.com/forums/scriptcenter/en-us/home

Maybe you are looking for

  • Quad edition of Envy 17 t-j100: replacement hard drive

    need to replace the disk hard drive serial # [personal information deleted] in my touchsmart Envy 17 t-j100.   Cannot afford to sata now.  Any suggestion where I can buy a compatible to the original.  This is a 1 to 5400 RPM.

  • Re: Satellite A210 - can I reset to the day, I bought it?

    Hello. Can I reset my A210 to the day that I bought it?Without the restoration of the system, it is not a restoration point soon enough.

  • 2 10 yoga Tablet w / win 10 TP

    I installed the latest version of the Tech Preview on my compressed yoga 2 10 "with windows. Seems to mostly be functional, she is incredibly lag compared to 8.1. I have to assume that it is a problem of drivers. Any suggestions?

  • Elapsed time

    Hi guys, I use the elapsed time to set an expectation and to have, at the same time, the ability to stop waiting. The problem is that if for example I put on hold for 1 minute the first time everything works fine, but when I repeat the same operation

  • Why is the recommendation "Do not set a public DNS server in TCP/IP from DC settings."

    Read best practices for DNS on DC and domain member client settings suggests that you should; Contact your ISP and get the DNS IPs validates them and he adds forwarders, do not set a public DNS server in the TCP/IP from DC parameters I just wanted to