Can UTL_FILE utility read from ac Excel spreadsheet

I can manually save an excel spreadsheet as a text file in a fixed length format and read from the text file using the UTL_FILE utility. But is there way I can save the excel spreadsheet as a text file in a fixed length format, programatically. (A batch file which can be run at the DOS prompt). If not, is there any way Oracle can read directly from an Excel spreadsheet.
Thank you

UTL_FILE handles ASCII files, but Excel files are binary files, so this won't work. If you did get direct access to the binary file, you'd need to embed logic to differentiate data and formatting/ headers/ control codes, which would be quite painful.
Assuming the spreadsheets are formatted the same each time, you could use Oracle Heterogeneous Connectivity and set up an ODBC data source that pointed to the Excel spreadsheet. You could then query the spreadsheet in SQL over a database link.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • Can I export values from an excel spreadsheet into a dropdown field in Acrobat?

    I'm creating a form in Acrobat with a dropdown field as an option, I would like to know if I could export the values from an Excel spreadsheet into this field (there are 600 records)?

    Sorry this is not something that we currently support. You have to enter your items manually. Once you created you field though you can copy in paste to other forms so you only have to create it once.

  • How can i paste a column of email addresses from an excel spreadsheet into a Mail message To: window

    In the past I have been able to send a group email by copying a column of email addresses from an Excel spreadsheet and pasting it into the To: window of an email message I had composed. I simply dragged my cursor down the column containing the email addresses, right-clicked Copy, put my cursor into the To: window of the email, and hit Paste. Mail recognized the list as a series of email addresses and I was able to hit Send and the email went on its way.
    Today I tried to do this and after I hit Send I got an error message. It appears to me that Mail did not recognize the list as a series of individual email addresses but saw them as one long address; the error message said it "did not appear to be a valid email address". Has something changed in Mail? I recently installed Mavericks!
    I can't be the only one who sends group emails this way. Are others experiencing this problem?

    Now Tony, I know you can't hear my tone on a forum post but I was not complaining, simply stating facts . This change brought several people in my office to a grinding halt in a long established workflow that is really rather simple (and I thought was already assumed from the original post above ):
    1) Select a set of records in FileMaker Pro 12 and export only their e-mail addresses as a CSV file.
    2) Open that CSV file in Excel.
    3) Copy the column of e-mail address.
    4) paste into the appropriate recipient field in Mail.
    5) Send
    If I were to complain it would be about Apple's typically opaque approach to updates. There is no granular explanation of why changes were made or even "what" changes were made.
    Complaining is futile since Apple is Apple and is unlikely to change, but sometimes it is cathartic to "shout into the void" .
    I had thought about doing something with a formula in Excel and your suggestion was simple and helpful. Again, however, it is only a workaround for a long established helpful behavior that Apple has inexplicably broken/removed in Mavericks Mail.
    I, and the other posters here, would love to have the capability back rather than have to add previously unneeded steps to our workflows.
    Ultimately we may add scripting steps to the FileMaker side to export the address lists with commas inserted already if Apple ends up having permanently removed this feature.

  • Script to rotate an image in InDesign CS4 from an Excel Spreadsheet

    Hi all,
    Is there a script for InDesign CS4 that reads degrees from an excel spreadsheet and then rotates a specific image by the same amount of degrees that was written in this excel spreadsheet? I would like to create a column in Excel full of rotation degrees and then go to InDesign, run the script for a specific image and the image will rotate automatically.
    If there isn't a script like that already around, can you let me know if it is possible to be done and also if it is possible, can you help me create one please?
    Thank you in advance for your help.
    Lucas

    a script to rotate images... only one at a time and marijan tompa had the answer for that: http://forums.adobe.com/message/2998073
    as for referencing an excel file or txt/csv, i don't know, but perhaps other posters could assist.
    colly

  • Reading from an excel file

    I was wondering, what do i need to look at to get cracking with making a programme that can read from a excel file
    I was thinking of making a programme that uses a excel spreadsheet <this spreadsheet is made and provided by the national lottery and has all the winning combinations that have been drawn in past draws> and reading them in and generating a list of combinations that have not occured yet
    Its just for a bit of fun, but could be a good challenege
    thanks

    PaulOckleford wrote:
    If all you want to do is select from the excel sheet you may find it easier to use the jdbc option, I have an example of some code I wrote that does a select from an excel sheet and it may be useful for you:Just my opinion here but I would avoid using odbc to deal with the spreadsheet if at all possible.
    Time for a war story:
    After losing an argument with some business, marketng and management I had to develop a program that accepted spreadsheets as datafiles and it was nothing but trouble.
    I experienced all kinds of type problems, the most common and annoying of them being
    that the driver (via some logic unknown to me) will determine the type of each column.
    Any data that is does not match that expectation is dropped (I found that the query returned NULL).
    As far as I could tell there was no way to make the driver treat the data the way you want it too.
    After much trouble and lots of manual intervention by the poor person who has to deal with this data on a regular basis it seems to be working but it was not fun it is still very ugly code.
    You may not end up reliving my tale of woe, but I though I would give you some fair warning.
    As I continue to say "Spreadsheets are not a reasonable data transfer format."

  • I want to write a script or Automator workflow/app that emails a random shortcut of the day to three recipients. The source is from an Excel spreadsheet. One column is the shortcut, and the second column is the definition. Anyone have experience?

    I want to write a script or Automator workflow/app that automatically emails a random shortcut of the day to three recipients. The source is from an Excel spreadsheet. One column is the shortcut, and the second column is the definition. Anyone have similar experience and know that this would work?

    I have had a first stab at the script, below.  It uses a file to store the shortcuts and command [descriptions].  You should be able to see from the script annotations how to add a new one.  (I populated 1-4 with real data, but got lazy after that, so you have a few placeholders to work with first.
    As I have noted, once you are happy that you have all the data in the file, you can comment out part of the script for ongoing use.  (BTW, my reluctance to use Excel is that I don't currently have it installed and I don't want to offer wrong advice.  If you have Numbers, I do have that and could probably modify to work with a spreadsheet from there.  This might be especially useful if you have the data already sitting in Excel.)
    A few things came-up whilist I was writing the script:
    1.     Currently, all recipients will not only get the same tip at the same time, but they will see the names and email addresses of the others who receive them.  It is possible to modify this.
    2.     I have added a property gRandomCheck which keeps track of which shortcut has already been used (since the last time the script was compiled.  This will prevent the same tip being sent more than once.    When all tips have been sent once, the script will alert you and not send anything until reset.  It does not check on a per-addressee basis (which would be a refinement).  (If you add a new addressee at this stage, the whole process will start again, and you may not really want this to be the behaviour.)
    3.     The way that I have built the list, commandList, is deliberately cumbersome - it's for the sake of clarity.  If you prefer, you can construct the whole list as {{shortcut:"X", command:"X"}, {shortcut:"Y", command:"Y"}}
    Have a look - I am sure you will have questions!
    SCRIPT STARTS HERE  Paste the following lines (thru the end) into a new AppleScript Editor document and press RUN
    --The property gRandomCheck persists between runs and is used to stop sending the same hint twice.
    property gRandomCheck : {}
    --I am defining a file on the desktop.  It doesn't have to be in this location
    set theFolder to path to desktop
    set commandFile to (theFolder as text) & "CommandFile.csv"
    --(* Unless you need to change the file contents you do not need to write to it each time.  Remove the "--" on this line and before the asterisk about 18 lines below
    --Follow this format and enter as many records as you like on a new line - each with a unique name
    set record1 to {shortcut:"Z", command:"Undo"}
    set record2 to {shortcut:"R", command:"Record"}
    set record3 to {shortcut:"⇧R", command:"Record Toggle"}
    set record4 to {shortcut:"⌘.", command:"Discard Recording & Return to Last Play Position"}
    set record5 to {shortcut:"X", command:"x"}
    set record6 to {shortcut:"X", command:"x"}
    set record7 to {shortcut:"X", command:"x"}
    set record8 to {shortcut:"X", command:"x"}
    set record9 to {shortcut:"X", command:"x"}
    set record10 to {shortcut:"X", command:"x"}
    set record11 to {shortcut:"X", command:"x"}
    set record12 to {shortcut:"X", command:"x"}
    set record13 to {shortcut:"X", command:"x"}
    --Make sure you add the record name before randomCheck:
    set commandList to {record1, record2, record3, record4, record5, record6, record7, record8, record9, record10, record11, record12, record13}
    --This part writes the above records to the file each time.
    set fileRef to open for access commandFile with write permission
    set eof of fileRef to 0
    write commandList to fileRef starting at eof as list
    close access fileRef
    --remove "--" here to stop writing (see above)*)
    --This reads from the file
    set fileRef to open for access commandFile with write permission
    set commandList to read fileRef as list
    close access fileRef
    --Here's where the random record is chosen
    set selected to 0
    if (count of gRandomCheck) is not (count of commandList) then
              repeat
                        set selected to (random number from 1 to (count of commandList))
                        if selected is not in gRandomCheck then
                                  set gRandomCheck to gRandomCheck & selected
                                  exit repeat
                        end if
              end repeat
    else
              display dialog "You have sent all shortcuts to all recipients once.  Recompile to reset"
              return
    end if
    --This is setting-up the format of the mail contents
    set messageText to ("Shortcut: " & shortcut of record selected of commandList & return & "Command: " & command of record selected of commandList)
    tell application "Mail"
      --When you're ready to use, you probably will not want Mail popping to the front, so add "--" before activate
      activate
      --You can change the subject of the message here.  You can also set visible:true to visible:false when you are happy all is working OK
              set theMessage to (make new outgoing message with properties {visible:true, subject:"Today's Logic Pro Shortcut", content:messageText})
              tell theMessage
      --You can add new recipients here.  Just add a new line.  Modify the names and addresses here to real ones
                        make new to recipient with properties {name:"Fred Smith", address:"[email protected]"}
                        make new to recipient with properties {name:"John Smith", address:"[email protected]"}
      --When you are ready to start sending, remove the dashes before "send" below
      --send
              end tell
    end tell

  • How do I populate the choices in a Combo Box in a PDF Form from an Excel spreadsheet or text file?

    Pleasel let me know if there is a way to copy and paste choices for a Combo Box from an Excel spreadsheet or text file.  I have over 250 values I'd like to add and don't trust my typing!
    Thanks for the help!
    Ken K. - 2191

    Yes, using the field.getItemAt method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.745.html
    E.g.:
    var aItems = [];
    var f = getField("combo1");
    for (var i = 0; i < f.numItems; i++) {
        aItems[i] = f.getItemAt(i);
    If there are export values you need to decide how to use the optional bExportValue parameter.

  • Itunes application can not be open the disk can not be read from or writte

    itunes can not be opened the disk can not be read from or written to. That is the warning i get when i click my itunes to open it. Problem...
    there is no disk:) i have no idea what this warning means.. i have restarted and nothing.. i updated itunes and same warning.. there is no disk in the drive at all..
    infact i made sure i was in a room with no other disks.. Help??

    A few things to try:
    • Restore Permissions, using Disk Utility (in ~Applications/Utilities)
    • Set the correct Ownership & Permissions for the iTunes folder:
    Select the iTunes folder in ~/Users/YourUsername/Music.
    Get Info (command-I).
    Expand 'Ownership & Permissions' and 'Details:'
    You must read: 'You can Read & Write': if not, change it.
    Click on the 'Apply to enclosed items...' button.
    Hope this helps.
    M

  • Copy and Paste from an excel spreadsheet to a JTable

    Hi,
    does someone know how to copy and paste data from an excel spreadsheet to a JTable. It seems like copy and paste do not fuction from an to a JTable.
    Thanks, Fred.

    Take a look at an example included in my bug report link shown below:
    http://developer.java.sun.com/developer/bugParade/bugs/4748394.html
    ;o)
    V.V.

  • Can anyone recommended an app for excel spreadsheet. One that I can username iPad that can do the same functions as excel of desktop,or laptop ??

    Can anyone recommended an app for excel spreadsheet. One that I can username iPad that can do the same functions as excel of desktop,or laptop ??

    Thanks for the advice. Just don't want to waste money on apps trying to get the right on. Not looking to do too much, just add filters maybe create a pie chart. Will the app you mentioned give added sums at the end of the spreadsheet like it would on the windows version?

  • Extracting data from Microsoft Excel spreadsheet

    Hi,
    I am currently developing an application that requires to extract data from Microsoft Excel spreadsheet. Is that possible to archieve it?
    If it is possible,your precious guidience will be much appreciated.
    Thank you.

    There are several approaches.
    1) Export the data from the Excell in "CSV" format, which is simple enough to read as an ordinary text file.
    2) Use the open source POI package, which reads and writes XSL files (amongst other popular formats).
    3) Use the JDBC/ODBC bridge and the Windows ODBC driver which allows and Excell file to be treated as a database. (More details in above reference).
    4) Use another open source package to connect to Excell via the COM+ interface, and access data therein.
    Personally I favour the POI package.

  • Is it possible to print mailing labels from an excel spreadsheet in Macbook pro?

    How do you print mailing labels from an excel spreadsheet on a macbook pro? Is it possible. I can only find information about printing labels from your address book.

    Why not ask in MacBook Pro forum, or SL, or even MS community or MacTopia.
    Office 2011? pretty easy to setup mailing, just click on ribbon tab, and use the built in help.
    MacBook Pro
    Mail and Address book
    http://www.bing.com/search?q=Excel+mailing+labels

  • I FIXED my "can't be read from or written to" problem!

    if you have windows xp, and get the error message "ipod can't be updated. the drive can't be read from or written to.", try this:
    make sure you have the latest updates to your windows xp. if not, download and install them.
    after THREE DAYS of ipod-induced torture, i tried this and my ipod updated on the very first try.
    good luck!!!

    Seen this troubleshooting article?
    Disk cannot be read from or written to error syncing iPod in iTunes.

  • The disk can not be read from or written to?

    When I try and update my Ipod, it gives me this message 'The disk can not be read from or written to' And its really getting on my nerves, How do I fix it so I can actully put music on my Ipod?
    VulCAN   Windows XP   none

    This link should help you troubleshoot your error.
    http://docs.info.apple.com/article.html?artnum=301267

  • "Device can not be read from or written to" error keeps coming up...

    I have recently updated to the 3.1 firmware on my iPhone 3G (after a couple failed attempts).
    The problems seemed to start there when the update froze midway through and I had to try a couple more times. After I did and restored my settings, iTunes said that my backup file didn't work. I tried a couple more times to restore from the backup but ended up having to restore as a new device.
    Now, as I try to sync all of my, well, everything, I keep getting an error message.
    It synced all of my contacts, apps, calendar, etc., but when it gets to my music and videos it will sync a bit of it before giving me the error messages:
    "Cannot sync ___, the required disk is not found"
    and immediately after,
    "Device can not be read from or written to."
    I've tried syncing my iPhone many times, and these errors keep coming up.
    What should I do?

    Hi,
    This article: http://support.apple.com/kb/HT1207 provides tips that will resolve issues causing this message to appear with iPhones and iPods.
    Make sure the iPhone is directly connected to a high-speed USB2 port on the PC, using the cable that came with it.
    -Jason

Maybe you are looking for

  • Is there a way to adjust the width of the pen tools path?

    In CS4 and 5, it's super skinny. I appreciate the finesse but I'll be damned if I cant see it sometimes. Is there a way to adjust a path's (so to speak) stroke while just drawing a path only with no fill or stroke? I know you can change color depende

  • Shippment cost-service tax

    Hi SD Guru, I am working on shippment whre i stuck at shippment cost level for service tax assigment. my client want service tax should get calculate at shippment cost level i.e. at VI01 and it should be posted while settlement to service tax payable

  • I want to upload pictures but I can see them very small

    I want to post an announce and attach some pictures. I open the folder but the picture are very small and can't resize in order to see them bigger. The only option I have is '' quick view'' The same problem is with the pictures attached in mail.

  • Encode and Decode the Image

    Hi, I have a requirement like to encode the image(anyone of type:-jpg.gif) byte Array and placed into XML file. I can use this xml file as datasource in BIRT,decode the byte data and bind to Image. so I need to encode and decode the Image with predef

  • Trace all sql statements

    Hi, Is it possible to trace all the SQL's into one trace file or any other alternative to capture all the SQL statements.