How to force SQL*Loader to assign the same SYSDATE for all rows?

I want to use SQL*Loader to load some rows and a "SYSDATE" generated column, but making sure this date is THE SAME for all rows. I have seen that if I load HUNDREDS of rows there is a little difference between them (in terms of seconds). I guess it is "the moment each row entered the DB", but I need the same value for all rows (preferably, "the moment SQL*Loader was launched"). Is there any way to achieve this?
Thank you very much.

Hello user2393320.
Given some thought, using a date value to identify all records from a single load isn't very wise.
Are you able to create a procedure on the database that could be executed during SQL*Loader's execution? If so, you could develop the procedure to take in the record number of the row being loaded as an input parameter and output this unique date value for all rows loaded. The procedure would need to store the date value in a table when the first row is being loaded and return the stored date value as its output. This obviously assumes that only one sqlldr session is running at any time.
I highly recommend using a numeric sequence in the control file instead of a date to identify each file load:
, file_load_seq SEQUENCE(MAX, 1)
Another approach would be to load the record number being loaded in addition to the sysdate:
, record_number RECNUM
Hope this helps,
Luke

Similar Messages

  • Retrieve the same value for all rows

    Hi Folks,
    I am a newbie to Kodo JDO. I have a little but important problem. I use a
    query to retrieve data with a simple filter like PName=='A'. Normally it
    should retrieve 3 rows with 3 different values but it does not. Instead I
    got 3 rows but with all the same value of one row???
    Do I have a configuration problem?? Oh, I forgot, I use postgresql 8.0 on
    Windows...
    Thx a lot....
    Juergen

    Hi,
    You may want to turn on the SQL log (use the kodo.Log property, and set
    the SQL channel to TRACE... for more details on logging, check out
    chapter 3 in the Kodo Ref Guide) and see what SQL is being generated.
    Once you see the SQL, does it look right? If you run the generated SQL
    in your SQL command line, do the results match what you expect? If that
    doesn't help, maybe post the SQL and some info about your mapping.
    Thanks,
    Greg
    J wrote:
    Hi Folks,
    I am a newbie to Kodo JDO. I have a little but important problem. I use a
    query to retrieve data with a simple filter like PName=='A'. Normally it
    should retrieve 3 rows with 3 different values but it does not. Instead I
    got 3 rows but with all the same value of one row???
    Do I have a configuration problem?? Oh, I forgot, I use postgresql 8.0 on
    Windows...
    Thx a lot....
    Juergen

  • Random Number being changed to the same number for all rows

    hello all,
    first of all I want to mention that this problem start happening after 2.14 instalation of Power Query.
    I'm creating new column in my query and setting all values to random numbers. The problem is that next step (doesn't matter what it do itself) somehow changes all those random numbers to the same random number for all lines.
    here's code sample:
    InsertedCustom = Table.AddColumn(RemovedColumns3, "Random Number", each Number.Random()),
        InsertedCustom2 = Table.AddColumn(InsertedCustom, "Analyst Full Name", each [Analyst First Name]&" "&[Analyst Last Name]),
    when I'm checking step by step, InsertedCustom  creates new column and all values are being set randomly for all lines BUT when going to the next step (InsertedCustom2) all values in the column "Random Number" are being changed to the
    same number (no matter that InsertedCustom2 itself should not be doing anything to column named "Random Number") . I even tried moving InsertedCustom step to the bottom of my code but it didn't help and still facing this issue.
    p.s. updated my PQ to 2.15 - didn't help

    This is a known issue. Power Query assumes that functions are idempotent (given the same arguments, they produce the same result), which isn't true for Number.Random. Our optimization pipeline is turning Number.Random() into a constant in the scenario you
    encountered, which results in all rows having the same value.
    There's been some discussion of how to fix this, but that won't help you in the near term. Can you describe a bit more about your scenario and what you're trying to accomplish? Perhaps we can help you find a workaround.
    Ehren

  • How do I change the icloud account on my iphone? I want to use the same account for all my apple devices (macbook air and imac and iphone). I can't see where I can amend the iphone account because it is in grey?

    I want to use the same account for all my apple devices (macbook air, imac and iphone). I can't see how I can amend the iphone account because it is in grey? I also can't remember the password for this account so i can't even delete it and start again?
    Help!
    Thanks

    Deleting an iCloud account only deletes it from the Device, not from iCloud.  In iOS 8, the name of this setting changed to "Sign Out" as that is a better reflection of what actually happens.  Your iCloud data remains on the server, available to devices still signed into the account, but the device you sign out of the account on is disconnected from the account, and as a result, the iCloud data from that account is removed from the device.  It will redownload to the device should you sign back into the account.
    The only issue you'll run into when you switch between accounts is with my photo stream photos older than 30 days.  When you delete (or sign out of) and account, your photo stream photos are deleted along with the other data from the account in question.  However, unlike other data which remains on the server and can redownload to your device when you sign back in, my photo stream photos only remain in iCloud for 30 days.  When you sign back in, you will only get back my photo stream photos added in the last 30 days (as older photos are no longer in iCloud to redownload).  Like other account data, any my photo stream photos on your other devices signed into the account are unaffected by this.  If you want to keep older my photo stream photos on your device as you change iCloud accounts, save them to your camera roll before deleting (signing out of) the account.

  • I have used the same laptop for all three of my iPhones but awhile back this laptop had a virus so my husband wiped it out and now when I sync my iPhone I no longer get my entire music library ( including purchased songs) on my iPhone. How do I fix this?

    I have always used the same laptop for all of my iPhones but awhile back this laptop had a virus so my husband wiped out the laptop and now when I sync my iPhone I no longer receive my entire music library (including purchased songs) on my iPhone. How do I fix this?

    kimberlyfromtopeka wrote:
    Ok,thanks but, I should be able to something so that I am able to sync the entire library again not just the purchased songs.
    If the non purchased music is not on your computer, how can it Sync to your iPhone...

  • How do I get the volume on my ipod classic to the same level for all songs?  Some are louder than others.

    How do I get the volume on my ipod classic to the same level for all songs?  Some songs are a lot lower than others.

    Coverflow in iTunes is sorted by Album Artist whereas coverflow on the iPod classic is sorted by Artist. Unfortunately, there is no way to set this on your iPod. This is such a fumble on Apple's part that I'm beginning to think they're becoming another Microsloth with buggy firmware and products.

  • In my family we have 3IPhones 4S, one IPhone5, one IPad3, one IPadMini and two IPad 4. Is it possible to use the same energieadapter for all of those ?

    In my family we have 3IPhones 4S, one IPhone5, one IPad3, one IPadMini and two IPad 4. Is it possible to use the same energieadapter for all of those ?

    Yes but the iPhone chargers will struggle to charge the iPads ,they need more power than the iPhone chargers produce and with an iPad will charge VERY slowly
    The iPad chargers whether 10w or 12 will happily charge all your devices and Apple confirms the compatibility on the relevant web page.

  • My thumbnails have all disappeared.  If I view events there is the same one for all 270 events and if I open an event I have clack thumbnails. I can only see the photo if I open it individually.

    If I view events there is the same thumbnail for all 270 events and if I open an event I have black thumbnails. I can only see the photo if I open it individually.The only way I can then see the thumbnail is by editing each photo. Then to even further complicate matters the last editted phot is replaces as the thumbnail on all events foders!...grrr. This is what I awoke to two mornings ago after inly backing up my machine which I do every night.

    No.  Quitefrankly I didn't know I could even use iPhoto on iPad, I just have the photos app that came on it.  This is on my laptop.  I don't particularly like iPhoto I use it essentially to take photos off my camera and store all the originals.  I use Photoshop. To work on them and store them in Dropbox (don't get me started on iCloud!). As I said this is a problem that seemed to crop up overnight after backing up to my external HD. 

  • How to assign the same GTIN for different material?

    Hi,
    I've managed to install an internal number assignment for the GTIN / EAN in material master which works fine.
    Now we need to assign the same GTIN to different material numbers. 
    Since the defined number range is marked as internal I cannot use this number range as the external number range in spro -> Define Attributes of EANs/UPCs (number categories/EAN categories):
    I cannot make an external number range with the same data as the internal one, since number ranges must not overlap.
    So, here is the question again:
    How can I achieve that 1. the GTIN is generated and 2. a GTIN, which is already assigned to another material, can be entered manually in the GTIN field?
    Any advice is appreciated,
    thanks,
    Marco.

    1. the GTIN is generated
    This should be "external" number range only.
    2. a GTIN, which is already assigned to another material, can be entered manually in the GTIN field?
    We can enter manually or thru' upload during master data creation provided number range is "external"(refer point no.1 above)
    Unable to understand that why you need same GTIN in two different articles?
    Request to understand the business process once again as this leads to confusion reg. inventory, PDC and PoS dumping.

  • How to have two seperate Itunes on the same computer for two Ipods?

    Is there a way to have two separate Itunes downloaded on the same computer for two different Ipods? My sister got a new Ipod and she wants to hook it up to the computer but when ever she does it just pulls up my Itunes and has all of my songs on there. How can we each have our own Itunes?

    There's many ways to accomplish this. You could create two accounts in Windows. That way everything is completely separate. Or, you could manually manage your music in iTunes -- this way it won't automatically sync your music onto her iPod. More info here:
    http://docs.info.apple.com/article.html?artnum=61148
    http://docs.info.apple.com/article.html?artnum=93779

  • Iphoto showing the same picture for all my uploaded pictures after update, how do I get my old ones back so I can upload them to websites?

    After updating the new iPhoto software in the middle of December, I haven't been able to view all of my pictures that had been on my computer prior to the new software update, It shows the same photo for every single picture, how do I convert it back or reboot it?
    THANKS!!

    make a temporary backup of the library and launch iPhoto with the Command+Option keys depressed to rebuild the library. Select the options for rebuilding the thumbnails .
    OT

  • How to force to open link in the same tab ?

    Hi Guys,
    I am sure this question has been asked many times, but I wasn't successful finding an answer...
    In Safari, how do I force to open a link in the same tab (not open in a new tab in same window!)
    There must be a way to do it...
    Thanks for answering (again).
    Ray

    Hi Ray
    I'm still on Tiger, not Leopard.... but I guess you mean how to stop a link that opens a new window from doing so? Like This one ?
    In Tiger, the only way I know other than some 3rd party add-on is to drag the link to the address bar.... although that assumes you know it tries to open a new window by checking the status bar.

  • How to force RH9 to use only one master stylesheet for all Word imports?

    I have set a stylesheet (css) as the default for my RH9 WebHelp project in project settings. When I import Word documents into the project, the edit import setting dialog does not show this stylesheet in the list of available stylesheets for the import.
    What is happening instead is a proliferation of unwanted stylesheets derived from all the imported documents. I then have to manually re-set all the new topics to the master stylesheet.
    How can I stop this, and force RH9 to use only the one master stylesheet for all imports?

    cid:[email protected]
    Hi Peter,
    That’s what I thought I was doing in the Project Settings>Import tab>CSS for Style Mapping selection. Maybe that isn’t what it’s meant to do. It’s just getting annoying having all these unneeded files popping up in the project manager so that I have trouble distinguishing the “real” topics from the extra stuff.
    Michael West | Business Improvement | Aurecon
    Ph: +61 3 8683 1996 | Fax: +61 3 8683 1444 | Mob: 0407 485 228
    Email: [email protected]
    PO Box 321, South Melbourne | VIC 3205 | Australia
    http://www.aurecongroup.com
    http://www.aurecongroup.com/apac/groupentity/

  • When I put a song from the internet into an album with bought songs, it doesn't show the artwork for the added song. How do I get it to have the same artwork as all the other songs in the album?

    If that was confusing, I'll reexplain it:
    S, I bought 2 Lil Jon Kings of Crunk songs from itunes that were on the same album. The album was clean with no explicit sign on the artwork. Prior to buying those songs, before I had money in itunes, I got a song from that album from youtube, and I didn't put in "- clean" in the album name of that song. So, yesterday, I combined those 3 songs into just one clean album (the youtube song was clean also). Now, the 2 bought songs have the artwork without the explicit sign, but the youtube song has no artwork at all anymore. How can I make them share the same artwork?

    Drag the artwork from the artwork window to the desktop.  Then, select the song without artwork and drag the artwork to the blank artwork window.

  • How do I purchase multiple copies of the same title for my class of students to download?

    I need to purchase 60+ copies of the same title to use in my classroom. Normally my school purchases paperback copies of books, but now that I all of my students have iPads, I would like to purchase the eBook and then have them download it. Any ideas on how best to do this?

    What version of iPhoto?
    The general process is to select the photo and print, select the printer, paper size and print size and click customize and under settings selec multiples copies of a photo (the preview will reflect this choice) and click print to print, make any printer specific selections and click print to print
    LN

Maybe you are looking for

  • How can I prevent songs from being duplicated when adding them to my iPod?

    One feature I really like about iTunes is that if you have a song on a playlist, iTunes will notify you if you are adding a duplicate song to that playlist. I am looking for the same help managing my iPod. For example if I have a playlist in iTunes c

  • Grus help needed in finding the queries with Cartesian  joins

    Hi I have a reporting tool in which users are allowed to put the joins on the views and add some sub queries that produces a Cartesian product. Is there any tool or way that I can stop the execution of those query before it is being executed for exam

  • Extractor for Re-Order Point from MARD

    Hi There,   Is there a standard extractor for Re-Order point (Field MINBE) from Table MARD ?   I know we can obtain ROP from MDMA, but we would like to use the ROP from MARD   The reason I ask is because if there exist a standard extractor for this,

  • What are the main points to freeze technical scenario in SRM?VeryUrgent Pls

    Hi SRM Guruu2019s, What are the main points to freeze technical scenario in SRM?. Please mention main points to select Classic Scenario and Extended Classic scenario individually. I would really appreciate. Regards, John. Edited by: johnmiller465 on

  • 3110c - "Certificate is not present" when trying t...

    I can log in to gmail via http://mail.google.com. Here I am presented with a certificate that I accept and can then proceed to read/write emails in my inbox. I cannot log in via the gmail application or E-mail (in the Messaging menu) application. Bot