Trying to use multiple if statements to set a variable in my script

I am importing a csv file to create user accounts.. i have it working.. but now i want to have the script look at a variable, and based on that variable set other variables, like the ou or home directory path etc..
here's what i have so far.. it seems to select the 2nd option ASH unless i # it out then it selects the first option..i am clearly missing something simple here.... i can't just use an else statement as i will need many lines of logic to support the many
different ou's, home dir shares etc.. globally...
import-csv $csv | foreach-object {
 $site=$_.site
                   $HomeDArl= "\\teleflex\global\home\medical\na\arl"
                   $HomeDASH= "\\ashfs01.arrowintl.com\user"
                        if ($site='ARL'){
                            $homed = $HomeDArl
                        if ($site='ASH'){
                            $homed =$HomeDASH 

Thanks for the push in the right direction..
Import-CSV $filepath | ForEach-Object {
                              $site=$_.site
                               switch ($site) {
                                Arl {$homed = "\\teleflex\global\home\medical\na\arl"}
                                Ash {$homed ="\\ashfs01.arrowintl.com\user"}

Similar Messages

  • Problem Using Multiple With Statements

    I'm having a problem using multiple WITH statements. Oracle seems to be expecting a SELECT statement after the first one. I need two in order to reference stuff from the second one in another query.
    Here's my code:
    <code>
    WITH calculate_terms AS (SELECT robinst_current_term_code,
    CASE
    WHEN robinst_current_term_code LIKE '%60' THEN robinst_current_term_code - '40'
    WHEN robinst_current_term_code LIKE '%20' THEN robinst_current_term_code - '100'
    END first_term,
    CASE
    WHEN robinst_current_term_code LIKE '%60' THEN robinst_current_term_code - '100'
    WHEN robinst_current_term_code LIKE '%20' THEN robinst_current_term_code - '160'
    END second_term
    FROM robinst
    WHERE robinst_aidy_code = :aidy)
    /*Use terms from calculate_terms to generate attendance periods*/
    WITH gen_attn_terms AS
    SELECT
    CASE
    WHEN first_term LIKE '%60' THEN 'Fall '||substr(first_term,0,4)
    WHEN first_term LIKE '%20' THEN 'Spring '||substr(first_term,0,4)
    END first_attn_period,
    CASE
    WHEN second_term LIKE '%60' THEN 'Fall '||substr(second_term,0,4)
    WHEN second_term LIKE '%20' THEN 'Spring '||substr(second_term,0,4)
    END second_attn_period
    FROM calculate_terms
    SELECT *
    FROM gen_attn_terms
    <code>
    I get ORA-00928: missing SELECT keyword error. What could be the problem?

    You can just separate them with a comma:
    WITH calculate_terms AS (SELECT robinst_current_term_code,
    CASE
    WHEN robinst_current_term_code LIKE '%60' THEN robinst_current_term_code - '40'
    WHEN robinst_current_term_code LIKE '%20' THEN robinst_current_term_code - '100'
    END first_term,
    CASE
    WHEN robinst_current_term_code LIKE '%60' THEN robinst_current_term_code - '100'
    WHEN robinst_current_term_code LIKE '%20' THEN robinst_current_term_code - '160'
    END second_term
    FROM robinst
    WHERE robinst_aidy_code = :aidy),
    /*Use terms from calculate_terms to generate attendance periods*/
    gen_attn_terms AS
    SELECT
    CASE
    WHEN first_term LIKE '%60' THEN 'Fall '||substr(first_term,0,4)
    WHEN first_term LIKE '%20' THEN 'Spring '||substr(first_term,0,4)
    END first_attn_period,
    CASE
    WHEN second_term LIKE '%60' THEN 'Fall '||substr(second_term,0,4)
    WHEN second_term LIKE '%20' THEN 'Spring '||substr(second_term,0,4)
    END second_attn_period
    FROM calculate_terms
    )Not tested because there are no scripts.

  • ORA-00911: invalid character using multiple select statements

    I am getting an ORA-00911: invalid character error when trying to execute 2 select statements using ODP.NET.
    cmd.CommandText = "select sysdate from dual;select sysdate from dual;";
    cmd.Connection = conn;
    cmd.CommandType = System.Data.CommandType.Text;
    conn.Open();
    OracleDataReader dr = cmd.ExecuteReader();
    This works in SQL server but for some reason it appears this does not work in Oracle?
    If this is the case what is a vaiable workaround? Wrapping the 2 statements in a transaction?
    Seems strange that you can't return multiple result sets using in-line sql statements.

    Oracle doesn't support passing multiple statements like that, and this is unrelated to ODP.NET.
    SQL> select * from emp;select * from dept;
    select * from emp;select * from dept
    ERROR at line 1:
    ORA-00911: invalid character
    You could do it via an anonymous block and ref cursors though if you dont want to do it via a stored procedure..
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    public class test
    public static void Main()
        using (OracleConnection con = new OracleConnection("data source=orcl;user id=scott;password=tiger;"))
            con.Open();
            string strSql = "begin open :refcur1 for select * from emp;" +
                "open :refcur2 for select * from dept;" +
                "open :refcur3 for select * from salgrade;end;";
            using (OracleCommand cmd = new OracleCommand(strSql, con))
                cmd.Parameters.Add("refcur1", OracleDbType.RefCursor, ParameterDirection.Output);
                cmd.Parameters.Add("refcur2", OracleDbType.RefCursor, ParameterDirection.Output);
                cmd.Parameters.Add("refcur3", OracleDbType.RefCursor, ParameterDirection.Output);
                OracleDataAdapter da = new OracleDataAdapter(cmd);
                DataSet ds = new DataSet();
                da.Fill(ds);
                cmd.Parameters["refcur1"].Dispose();
                cmd.Parameters["refcur2"].Dispose();
                cmd.Parameters["refcur3"].Dispose();
                foreach (DataTable dt in ds.Tables)
                    Console.WriteLine("\nProcessing {0} resultset...", dt.ToString());
                    foreach (DataRow row in dt.Rows)
                        Console.WriteLine("column 1: {0}", row[0]);
    }Hope it helps,
    Greg

  • Best way to ensure combinations from the ValidationSet parameter attribute are processed correctly in PowerShell without using multiple IF statements?

    I have an advanced function I have been working on that looks something like this:
    Function Do-Something
    [cmdletbinding()]
    Param
    [Parameter(Mandatory=$true,
    [ValidateSet('Yes', 'No', 'Y', 'N', IgnoreCase = $true)]
    [string[]]$Param1,
    [Parameter(Mandatory=$true,
    [ValidateSet('Yes', 'No', 'Y', 'N', IgnoreCase = $true)]
    [string[]]$Param2,
    [Parameter(Mandatory=$true,
    [ValidateSet('Yes', 'No', 'Y', 'N', IgnoreCase = $true)]
    [string[]]$Param3
    Begin {}
    Process
    My question is, how do I get the values such as "Yes", "Y", "No", and "N" that's located in the [ValidateSet()] validation attribute processed correctly without having to use multiple "If" and "ElseIf"
    statements. 
    For instance, I want to avoid the following, because I know there is a faster and more efficient way (less typing) to do it:
    If ($param1 -match "Yes" -or "Y" -and $param2 -match "Yes" -or "Y" -and $param3 -match "Yes" -or "Y")
    #Do something here
    ElseIf  ($param1 -match "No" -or "N" -and $param2 -match "Yes" -or "Y" -and $param3 -match "Yes" -or "Y")
    #Do something
    I was reading that splatting may help me here, but I am new to the splatting technique and need some help with this one.
    I appreciate any help that anyone can offer. 
    Thanks

    Is this what you are trying to ask how to do?  Your posted script is written incorrectly and will not work at all. 
    Function Do-Something{
    [cmdletbinding()]
    Param (
    [Parameter(Mandatory=$true)]
    [ValidateSet('Yes','No','Y','N')]
    [string]$p1,
    [Parameter(Mandatory=$true)]
    [ValidateSet('Yes','No','Y','N')]
    [string]$p2
    Begin{
    Process{
    # parse the strings to booleans
    $p1a=if($p1 -match 'Yes|Y'){$true}else{$false}
    $p2a=if($p2 -match 'Yes|Y'){$true}else{$false}
    if($p1a){Write-Host 'P1 is good' -ForegroundColor green}
    if($p2a){Write-Host 'P2 is good' -ForegroundColor green}
    if($p1a -and $p2a){
    Write-Host 'All conditions met' -ForegroundColor green
    }else{
    Write-Host 'Conditions not met' -ForegroundColor red
    PS C:\scripts> Do-Something Y n
    P1 is good
    Conditions not met
    PS C:\scripts> Do-Something n n
    Conditions not met
    PS C:\scripts> Do-Something y y
    P1 is good
    P2 is good
    All conditions met
    This handles case and creates a tracking Boolean fo reach parameter so you can just build simple logic.
    ¯\_(ツ)_/¯

  • Trying to use multiple Blue Snowball Microphones, but Mac only recognizes one!

    Trying to record using multiple snowball mics by blue, but the Mac will only recognize one device at a time. Only one shows up in system preferences, and in trying to create an aggragate device. If you have both plugged in, the audio levels freeze up, and the devices become unresponsive.
    I have seen similar threads around but no one seems to have any answers. Blue's tech support is closed for the weekend so I can't call them. Please help if anyone has any ideas.

    Typically, over USB I can only get my computers (mac and PC) to recognize 2 channels at a time over one source. If your computer is recognizing one and not both or the other when both are plugged in, I think one is all you're going to be able to use.  Also, in the system preferences under Sound, if you are able to only select one or the other, I believe all you can do is select which one you want to use. 
    Those micrphones work well and one should do a good job. Don't forget about Micrphone Phase Cancellation.
    "Two microphones, intended to pick up two sound sources must be placed apart at least three times the distance that either microphone is from it’s intended sound source."  http://www.recordingeq.com/articles/321eq.html

  • Title Tool bug / Trying to use PPro in a professional setting

    Create several titles, everything is fine, copy and paste the clips further down the timeline and when I try to revise the title it will not show the video behind the title, it either shows black or checkerboard. Even if I create new titles it won't show the video backround, BUT if I copy and paste everything in a new timeline it all works fine.
    How can I view the title tool in my broadcast monitor through Aja 3G?   How can I zoom in the canvas in the title tool when working with small disclaimer type?
    How does the type size slider numbers relate to either scanlines or point sizes?  Why are the values not the same as AE they're both adobe products?
    Trying to use Premiere for mid-high end spot finish, multitude of the sorts of bugs making it difficult.

    The problem stated below really burned me try to conform a series of national spots, had to run to final cut to get the job done.
    m trying to work out an offline-online workflow strategy with PPro55. I have ALEXA PR4444 LogC files and corresponding externally-converted "edit proxies" (PR LT w/LUT & TC burn). I am editing with the "proxies" and then want to swap the files out for the full-res PR4444 camera files. File names, TC and reel numbers all match between the two sets of files.
    I have attempted to use Project Manager to create a "trimmed, offline" project and then relink the clips to the camera originals. When I do this, the timeline clips all start at the start-point of each file and not the correct in-point. I presume this is a bug. Anyone else tried this with success? The same method works perfectly in FCP 7. Also in PPro55, if I export a CMX 3600 EDL and then import and relink the EDL, it also works properly. Thoughts?

  • Use Multiple Insert Statements in Prepared Statements

    Hi Friends
    i am stuck in a problem for which i need your help.i will brief you about the issue below.
    I am having Multiple Insert Statements which i need to execute to put the data in the database.i have a doubt about the use of the executeUpdate() function in the statement interface. sample code is as below.
    stmt = conn.prepareStatement("INSERT INTO Client ( clientPk, provincePk, countryPk, statusPk, branchPk, salutation, ) VALUES(PID, 2, '123123123', '123', '66', 1, 1 );");
    int n =stmt.executeUpdate();
    Now the problem is how do i insert multiple Insert statements using the conn.prepareStatement().should i do like
    stmt = conn.prepareStatement("")
    int n =stmt.executeUpdate();
    stmt = conn.prepareStatement("")
    int n =stmt.executeUpdate();
    stmt = conn.prepareStatement("")
    int n =stmt.executeUpdate(); ..................................
    should i use the same steps to execute each individual query and then use executeUpdate().
    Please let me know the correct procedure to be followed to execute these tasks.waiting for a positive reply from your side.
    Thanks & Regards
    Vikram K

    Hi
    Thanks a lot once agin for the reply.
    I think i have figured out the solution. I am using SQL statements in the Prepared statements(""). But now i have dropped the idea of using the prepared statement and decided to use the simple Statement instead.
    what i have done is as below.
    conn = ConnectionFactory.getInstance().getConnection();
    stmt = conn.createStatement();
    stmt.executeUpdate("INSERT INTO Client ( clientPk, provincePk, countryPk, statusPk, branchPk, salutation, heightMeasurementType, weightMeasurementType ) VALUES(PID, '1', '1', '0', '1', 'Mr', CONCAT('Jason ', PID), 'R', 'Mawdsley', '123', '66', 1, 1 );");
    stmt.executeUpdate("INSERT into Cp () Values ()");
    stmt.executeUpdate("INSERT into gp () Values ()");
    stmt.executeUpdate("INSERT into jk () Values ()");
    I think this makes sense to use the Statement and execute all the queries in one shot rather than using PS.
    thanks a lot for your help.
    Regards
    Vikram K

  • Using multiple 'for' statements in an 11g pivot query

    oracle: 11.2.0.3
    Basically I need to pivot around 2 different columns (I think I need to 'for' clauses').
    See below.
    Below is pseudo code from non-11g pivot statement.
    I am trying to figure out how to do with pivot.
    -- note field names are pseudo code and not real values
    -- note that the field after 'then' in the case statement is different for the 2 pivots
    select            my_id,
                        max( (case when myfield = 'MYVALUE1' then mydate_date else null end)) as MYVALUE1,
                        to_number(max( (case when myfield = 'MYVALUE'   then myfieldvalue else null end))) as MYVALUE2,
                        min (insert_date ) insert_date
      from mytable
    group by myidso if I'm doing this in 11g pivot syntax I am stuck at:
    -- if I add max(fieldvalue), I think I will pivot too many times. I just want 2 extra columns. Can I add a second 'for' statement?
    select *
    from mytable
    pivot (
               max(mydate)
               for myfield in ('MYVALUE1' as MYVALUE1)
    )

    My concern about trying that is that SQL will do extra pivots that I won't use. Which means more work. I saw a blog entry by someone in the oak table (I can't remember who or the link) that showed an example that the pivot clause has about the same logical IOs as using the old max(case statement) but the response time was much better. This was a very rare case where performance is significantly improved without affecting LIOs. So there isn't a good measure. I wish I had the link and generally people in the oak table are very good. So I trust posts by them.
    so basically I am not sure how to measure whether doing the extra pivots are using extra resources. This is going to be a fairly performance intensive query due to the volume of data it has to feed through.
    I'll give it a try, but my inability to measure it is a bit concerning.

  • Rekink Issue / Trying to use PPro in a Professional setting

    The problem stated below really burned me try to conform a series of national spots, had to run to final cut to get the job done.
    m trying to work out an offline-online workflow strategy with PPro55. I have ALEXA PR4444 LogC files and corresponding externally-converted "edit proxies" (PR LT w/LUT & TC burn). I am editing with the "proxies" and then want to swap the files out for the full-res PR4444 camera files. File names, TC and reel numbers all match between the two sets of files.
    I have attempted to use Project Manager to create a "trimmed, offline" project and then relink the clips to the camera originals. When I do this, the timeline clips all start at the start-point of each file and not the correct in-point. I presume this is a bug. Anyone else tried this with success? The same method works perfectly in FCP 7. Also in PPro55, if I export a CMX 3600 EDL and then import and relink the EDL, it also works properly. Thoughts?

    Wil, when I worked on Avid DS the workflow there fulfilled the expectation that a trimmed project could match back to just the timecode areas of the clips used.
    On a large project (SD) I would digitize lost of sutff in low resolution. I would cut the sequence together. The I would duplicate the sequence and switch to high resolution. That way I only redigitized what was needed. And when I archived the project it was in effect was trimmed down.  At first when using PrP I had an expectation of a kind of similar process albeit with HD and files.
    But I do follow your logic.

  • Error trying to use multiple lines from a PO in a Goods Receipt PO

    I get the following error when I try to add 2 lines from a PO to a single Goods Receipt PO (code below):
    -5002 One of the base documents has already been closed  [PDN1.BaseEntry][line: 1]
    I can create the Goods Receipt PO if I use 1 line or lines from multiple PO's???
                   SAPbobsCOM.Documents poReceipt2 = (SAPbobsCOM.Documents)_diApi.SboCompany.GetBusinessObject(BoObjectTypes.oPurchaseDeliveryNotes);
                   poReceipt2.CardCode = "ALL";
                   poReceipt2.DocDueDate = DateTime.Now;
                   poReceipt2.Lines.Quantity = 5;
                   poReceipt2.Lines.ItemCode = "HAMSHA";
                   poReceipt2.Lines.BaseEntry = 11;
                   poReceipt2.Lines.BaseLine = 0;
                   poReceipt2.Lines.BaseType = 22;
                   poReceipt2.Lines.Add();
                   poReceipt2.Lines.Quantity = 5;
                   poReceipt2.Lines.ItemCode = "LAMFIL";
                   poReceipt2.Lines.BaseEntry = 11;
                   poReceipt2.Lines.BaseLine = 1;
                   poReceipt2.Lines.BaseType = 22;
                   poReceipt2.Add();
    Any help is appreciated!
    Thanks,
    Daniel

    Hi Louis, thanks for the post...
    However the PO document that I am refercing definately has both lines open, if I use 1 of those lines it works fine, but the error occurs if I use 2 lines from the same PO.  I am also definately using the docentry not the docnum for the GetByKey() method.
    Can anyone run the same basic logic through the DI API?  That is create a PO with 2 lines on it, then run the code as above to make a Goods Receipt PO and reference the 2 lines from the 1 PO document?  (It works if I add multiple lines referncing lines from multiple PO docs??)
    Thanks,
    Dan
    Message was edited by: Daniel Archer

  • Trying to use multiple slideshows for linking video content from vimeo and I continue to get this

    error messgage and it is driving me insane! There are 5 slideshows in all each with a lightbox. When I delete any four of the five all works just fine, the problem does not appear to be confined to a specific slideshow. Additionally, everything works perfectly in the Preview mode within Muse, however, when I preview in the browser and/or upload to my actual website is when I get this message:
    Somebody please tell me that this is an easy fix! FYI: I originally had the videos all as a single slideshow with 15 thumbnails that each activated a link that popped up the lightbox and played the appropriate video nested in the lightbox from vimeo and I experienced the same issue. I tried to separate them into different slideshows to fix the issue but it still persists.
    This is the look I get in Preview mode in Muse before I activate the lightbox (links):
    And after I activate the lightbox by clicking one of the thumbnails I get this result in Preview mode within Muse, which is exactly what I want! However, as I mentioned, when I preview it in the browser I get the error above:

    I appreciate the reply Zak, however, I tried this as a fix first thing this morning with no luck. Nothing has changed. Any other thoughts?
    I am exporting HTML out of Muse and uploading it directly through the FTP tools on GoDaddy. However, as I mentioned, I am getting the error straight away when I try to use the Preview Site in a Browser function in Muse itself.
    Thanks!

  • Get -3256 error when trying to use "multiple speakers" in iTunes

    I have had a LOT of Airport problems since switching to Leopard. For the moment, the Airport does seem to now work. I use an Airport Extreme 802.11n, and an Airport Express using WDS. I had a TON of problems with my MBP connecting, running great, then slowly losing bandwidth. For the moment, all is working. The next hassle was that my formerly working WDS stopped working. Now, the base station says WDS is happy. iTunes show the Airport Express is available to broadcast to.
    It lets me select multiple speakers, but then gives and error -3256.

    I think that I just solved your multiple speaker issue in another post; check out: http://discussions.apple.com/thread.jspa?messageID=5765343&#5765343. Hope this solution works for you too.

  • Audio Glitches /Trying to use PPro in a professional setting

    Tried every audio setting combonation there is between the mac audio settings and and the setting in Premiere, still get audio drop outs / static filled audio, or the audio just plain completly cuts out while playing down the timeline......Real ***** when it happens laying off HD-D5 masters.
    I have the Premiere set to digital out, I have the mac settings set to AJA3G
    If the mac settins are not set to 3G then no audio goes to the router in the machine room.

    Have you tried this?: http://kb2.adobe.com/cps/842/cpsid_84287.html

  • Calculation using multiple select statements - APEX 4.0

    Hello,
    I am new to APEX, PL/SQL and have some SQL knowledge, but I pick up things quickly. I want to make a page item equal to the value of a Select statement minus another Select statement. The statements pull from the same tables and only differ slightly in the where clause. I do not know the best way to create this calculation. Can someone please assist.
    Select Statement #1
    select     sum(JE_TRANSACTIONS.DEBIT_AMOUNT) as "Release"
    from     "REVREC_FORMS" "REVREC_FORMS",
         "JOURNAL_ENTRIES" "JOURNAL_ENTRIES",
         "JE_TRANSACTIONS" "JE_TRANSACTIONS"
    where "JOURNAL_ENTRIES"."RELATED_REVREC"="REVREC_FORMS"."REVREC_ID"
    and     "JOURNAL_ENTRIES"."RECORD_ID_"="JE_TRANSACTIONS"."RELATED_JOURNAL_ENTRY"
    and      "JOURNAL_ENTRIES"."RELEASE_TYPE" ='Release'
    and     "JOURNAL_ENTRIES"."REVENUE_TYPE" ='Software'
    and     "REVREC_FORMS"."REVREC_ID" =:P12_REVREC_ID
    Select Statement #2
    select     sum(JE_TRANSACTIONS.DEBIT_AMOUNT) as "Deferral"
    from     "REVREC_FORMS" "REVREC_FORMS",
         "JOURNAL_ENTRIES" "JOURNAL_ENTRIES",
         "JE_TRANSACTIONS" "JE_TRANSACTIONS"
    where "JOURNAL_ENTRIES"."RELATED_REVREC"="REVREC_FORMS"."REVREC_ID"
    and     "JOURNAL_ENTRIES"."RECORD_ID_"="JE_TRANSACTIONS"."RELATED_JOURNAL_ENTRY"
    and      "JOURNAL_ENTRIES"."RELEASE_TYPE" ='Deferral'
    and     "JOURNAL_ENTRIES"."REVENUE_TYPE" ='Software'
    and     "REVREC_FORMS"."REVREC_ID" =:P12_REVREC_ID

    How about
    select   sum(decode(release_type,'Deferral',je_transactions.debit_amount)) - sum(decode(release_type,'Release',je_transactions.debit_amount)) as result
    from   "REVREC_FORMS" "REVREC_FORMS",
    "JOURNAL_ENTRIES" "JOURNAL_ENTRIES",
    "JE_TRANSACTIONS" "JE_TRANSACTIONS"
    where "JOURNAL_ENTRIES"."RELATED_REVREC"="REVREC_FORMS"."REVREC_ID"
    and  "JOURNAL_ENTRIES"."RECORD_ID_"="JE_TRANSACTIONS"."RELATED_JOURNAL_ENTRY"
    and  "JOURNAL_ENTRIES"."REVENUE_TYPE" ='Software'
    and  "REVREC_FORMS"."REVREC_ID" =:P12_REVREC_IDScott

  • Cuda monitor update /trying to use PPro in a professional setting

    This posting dissapeared????? repost
    When Cuda acceleration is turned on monitors will not update unless I move one frame forward or back, so I have to turn GPU off when making adjustments, then tirn it back on for playback.
    Mac  Quadro 4000 
    I have the latest updates for 3G/aja Macplugins/cuda drivers

    The man that could best help you address your more professional workflow needs is Todd Kopriva.  His last post was about an hour ago.
    You bring up lots of valid points. I scoped out the Title Tool and did not see any way to zoom in
    . I am not currently using my AJA for external displays since the AJA sequences seem to have some performance issues with certain format / codecs that the Adobe sequences do not.
    Not quite like editing on the Avid DS is it? (You did participate in the Google Avid DS list didnt you?)

Maybe you are looking for

  • Unable to open PDF file in 10g

    Hi All, There's a need for me to open a .pdf file that's kept in the server. The file name is Leave.pdf and is kept in the C:/ I used host('start C:/Leave.pdf', NO_SCREEN); in the When-Button-Pressed trigger. But only I am able to open this as I am u

  • Volume constantly turning on and off on my iphone

    Please answer my question I really need the volume

  • Is someone hacking into your account and stealing your money common?

    I lost $64 cause someone did it to me... It ***** a little bit is there anyway of proving it wasn't you and getting your money back. Or at least finding the blighter that stole my money... Cheers

  • Incorrect My Best Buy Points

    Last month I purchase my first Macbooks Pro at Best Buy.   At the time of purchase I had an awesome sales associate named Sam.    As part of the promotion at the time of the sale, I was told that I could open a Best Buy credit card and would receive

  • ......Redo  Log and Recovery

    Hi, I am a bit confused on the Oracle Recovery structure. As far as we know, whenever oracle updates a row, it writes the new value in the DB Buffer Cache, Old value in the Undo Segment. Which value is then written in the Logfiles or the Logbuffer? H