Hyperlink target connects from Outlook e-mail to file in Oracle database

Greetings.
Due to lack of permissions, I cannot create text file on the UNIX server.
This will not be changed.
I have stored the file in the Oracle 11g database.
I want to send e-mail from PL/SQL with attached file.
No UNIX scripts at all.
It is a big file.
Thought crossed my mind.
Can I send e-mail from PL/SQL containing a hyperlink which connects to the file stored in the Oracle database ?
The link target is a file stored in the Oracle database.
Has anyone done this before?
Let me know your ideas.
Thank you.

Oracle Freq wrote:
I want to send e-mail from PL/SQL with attached file.
No UNIX scripts at all.Can be done using UTL_SMTP or the newer UTL_MAIL.
Attachments to e-mails are just that - the contents of the file is attached to the body of the mail. The mail arrives at its destination, the mail reader recognises the attachment and enables it to be saved to disk (or opened/viewed).
This is standard stuff.. see MIME for details on how to construct a message body that includes attachments.
Can I send e-mail from PL/SQL containing a hyperlink which connects to the file stored in the Oracle database ?
The link target is a file stored in the Oracle database.Yes. You need a web server that has been configured with Oracle "+access+" - the default is using Oracle's Apache server that includes a module called mod_plsql. This module enables the web browser to use a URL that refers to a web enabled PL/SQL procedure in a specific database schema - and pass parameters (as part of the URL's query string) to the procedure.
You can also use Oracle EPG (Extended Procedural Gateway I think is what the acronym means). This provides a web server directly inside the Oracle instance via the XDB (integrated XML database) option in Oracle. It too has a mod_plsql type module that provides an interface (via http) to web enabled PL/SQL procedures.
This procedure can be a "+document download+" procedure. Oracle provides a system procedure called WPG_DOCLOAD.download_file()+ that you can use inside that web enabled PL/SQL procedure. This will return the contents of blob/clob as a "file" to the web browser.
For example, a download web-enabled procedure will simplistically look something as follows:
create or replace procedure downloadFile( fileName varchar2 ) is
        b       blob;
        mimeType varchar2(50);
begin
        select
            file_content, mime_type  into b, mimeType
        from my_documents where file_name = fileName;
        OWA_UTIL.mime_header( mimeType, false );
        HTP.p('Content-Length: ' || DBMS_LOB.getlength(b));
        OWA_UTIL.http_header_close;
        WPG_DOCLOAD.download_file( b );
end;The URL will look something like:
http://my-webserver.my-domain.com:7777/pls/ora/scott.downloadfile?filename=somefile.docwhere:
scott.downloadfile = name of PL/SQL procedure
filename=somefile.doc = parameter name values to pass to procedure

Similar Messages

  • DataParser from a set of .cvs files to oracle database

    Hello all,
    This is my first post here, so I am not sure whether this is the right section of the forum, but anyway..
    I need to do a parser that reads cvs files from a set of directories, create a dataset and then a database. I did this as I exported the database to Microsoft Access File. Now, my question is whether it is possible to export it to oracle database file.
    I am using C# for the source code. The parser will be run almost every day.
    Any help would be appreciated. I have a deadline for the project soon :)

    Thanks for the reply.
    The situation is the following. I am done with the parsing. I just have two separate classes - MdbExporter and XmlExporter that export the dataset that has been created to a .mdb file or xml one. Here is an example of the MdbExporter class:
    class MdbExporter : IExporter
    /// <summary>
    /// Exportiert das DataSet in eine Mdb-Datei.
    /// </summary>
    /// <param name="ds">Zu exportierendes DataSet.</param>
    public void Write(DataSet ds, string[] names)
    string conStr = "Provider=Microsoft.Jet.OLEDB.4.0;" +
    "Data Source=" + names[0] + ";";
    Console.WriteLine("Exporting to database {0} ...", names[0]);
    Now I need a way to export the dataset to an oracle database file.
    Thanks for any replay in advance.

  • Question: Is there a way to create a PDF from outlook e-mail that does not embed the attachment? better, is there a way to convert the e-mail with attachement (not embeded) as pdf pages? - Problem: I have 1400 e-mails with attachments that need to be conv

    Is there a way to create a PDF from outlook e-mail that does not embed the attachment? better, is there a way to convert the e-mail with attachement (not embeded) as pdf pages?
    - Problem: I have 1400 e-mails with attachments that need to be converted into pdf and the attachments cannot be embeded.
    System: PC Windows 7 using Acrobat X Prof. - Thank you!

    Hi ,
    There is an option of embedding index for faster search while converting email to a PDF .
    However I am not sure that will serve your purpose or not .
    I would recommend you to get in touch with Microsoft support as well .
    Meanwhile I'll work on it and get back to you in case I get a desired solution .
    Regards
    Sukrit Dhingra

  • I have imported contacts from Outlook to Mail and they have synced via iCloud to my iPhone 3GS. I can't get my iPhone to make a call using these contacts but if I dial the number of any of the contacts on the keypad, the call DOES work! Help me please!?

    I have imported contacts from Outlook to Mail and they have synced via iCloud to my iPhone 3GS. I can't get my iPhone to make a call using these contacts (it tries but then says call ended) but if I dial the number of any of the contacts on the keypad, the call DOES work! Help me please - is there something I need to do to the contacts because tehy came from Outlook? Thanks

    Thank you for replying.    Yes I deleted the old email address..   

  • I just switched from Outlook to Mail and now the sent messages are not being displayed.  Help, please.

    I just switched from Outlook to Mail and now the sent messages are not being displayed.  Help, please.

    Back up all data. Rebuild the mailbox.

  • How do I convert emails to PDF from Outlook to make a file on the PC?

    how do I convert emails to PDF from Outlook to make a file on the PC

    It is always tough for anyone when we need to save our emails into one file for future reference. You could either do it manually or can use a simple tool to Convert all your messages into one pdf file . This Single pdf file can be used if we need to read any past email. you can easily convert oulook to pdf in no time. If you are converting several email messages, you can either save them as separate files with initial layout fully intact or combine them into one big PDF document.

  • How to export the data from an excel file to Oracle database by using macro

    Hi,
    I want to export data from an excel file into Oracle database.There is one method that by creating the macros through excel we are able to do this.
    can anybody please send me the code to create macros?
    Thanks in advance.
    Regards,
    Surendra.V

    There are several resources on the web, but you could start analyzing if this code fits your needs --> VBA Macro for Excel 2003 Export of Text File with Comma and Quote Delimiters.
    ~ Madrid

  • How could I create a "Linked Server" link from SQL Server 2008R2 64-Bit to Oracle Database 11.2 64-Bit?

    How could I create a "Linked Server" link from SQL Server 2008R2 64-Bit to Oracle Database 11.2 64-Bit?
    Let's say the SQL Server and Oracle Database are in the same Company Internet Network.
    I have the code, but I do not know how to use it. Such as what is System DSN Name? Where could I get it. What does it look like?
    Do I need to install any Oracle Client Software in order to link from SQL Server to Oracle? Or SQL Server has the built-in drivers installed already that I can directly create a Linked Server from SQL Server to Oracle?
    I need to know details. Thanks.
    USE master
    go
    EXEC sp_addlinkedserver
         @server  = '{Linked Server Name}'
        ,@srvproduct = '{System DSN Name}'
        ,@provider  = 'MSDASQL'
        ,@datasrc  = '{System DSN Name}'
    EXEC sp_addlinkedsrvlogin
         @rmtsrvname = '{Linked Server Name}'
        ,@useself  = 'False'
        ,@locallogin = NULL
        ,@rmtuser  = '{Oracle User Name}'
        ,@rmtpassword = '{Oracle User Password}'

    You need an OLE DB provider for Oracle. There is one that ships with Windows, but it only supports very old versions of Oracle. Oracle has an OLE DB provider that you can use. I don't know if it's part of Oracle Client or how it is bundled.
    You should not use MSDASQL or any DSN.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Extract data from XML file to Oracle database

    Dear All
    Please let me know, how to extract data from XML file to Oracle database which includes texts & images.
    Thanking You
    Regards Lakmal Marasinghe

    I would do it from the database, but then again, I am a database / PL/SQL guy.
    IMHO the database will deliver you with more options. I don't know about "speed" between the two.

  • Drag and drop files from Outlook move mails to delete box

    Hi everybody,
    I'm trying to develop a feature to be able to drag one or several mails from Outlook to my Java application.
    As Java doesn't recognize a drop of an Outlook mail, in my program, I assume that if it's not a known file type, it is a mail. (I know it's quite straightforward).
    When one or several mails are dropped I use a function from a plugin to get detail from the Outlook mails to import them into my application. In fact it import the data from the current selected mails in Outlook. This function is working perfectly when I use it without drag and drop (from a button 'Import' in the application).
    My problem is that when I use drag and drop, mails are imported correctly but sometimes (not always) they are also moved in the delete box of Outlook. I have done several tests to try to figure out what is the cause. I have used several versions of Outlook, I have dropped 1 mail and several mails a the same time, etc...
    Here are my tests results: it deletes the mails randomly but it seems to delete more often when my Java application isn't in full screen.
    What could be the cause?
    Another question: is it possible to configure my drop area to do copies only and not move? When you drag and drop you have a small symbol next to your mouse arrow. It is a '+' inside a square for copy and an empty square for move. My drag and drop does move by default. I could maybe avoid my deletion problem by changing it to copy?!
    Cheers.
    Edited by: Foobrother on Apr 16, 2009 2:46 AM

    I think I have fixed it. I still have to make more tests, but it doesn't delete the mails any more for the moment.
    In fact, when dropped item is detected as a file I do dtde.acceptDrop(DnDConstants.ACTION_COPY);But if it's not, I just set a variable to say that it is an Outlook mail.
    So I have added the line dtde.rejectDrop(); to cancel the drop. And now it seems to work.
    Apparently, I didn't clean some stuff when doing an email drop and it still wanted to move the mail or something?!
    Anyway, thanks for the help

  • How do I import mails from Outlook into Mail on my McBook Pro ?

    Hi there,
    I'm running Outlook:mac 2011 on my MacBook Pro and I would like to import all of my mails (with all the folders) from Outlook:mac 2011 into Mail. I can't find the appropriate format neither in the export formats in Outlook nor in the import formats in Mail. I would like to use only Mail in the future but I can't afford losing all my actual mails.
    Thanks for you help
    JeanDesVilles

    Have a read here https://discussions.apple.com/message/15713244#15713244
    Stefan

  • Create a pdf file from Outlook e-mails

    How can I create a pdf file from my Outlook e-mails?  I would like to export all of the e-mails for each client into a pdf once I close their file.  Help!

    Hello,
    Please look at the following demo video to know how to convert Outlook email to PDF.
    http://acrobatusers.com/tutorials/how-convert-outlook-email-pdf
    Regards,
    Anoop

  • How to export my contacts from outlook to mail ?

    I have bought an Imac and I have to migrate from my PC to the mac....everything is done excepting my outlook contacts that I have to export to my mail Mac.
    Could you please help me ?

    In Outlook Contacts, select the contact you want to send as a vCard or select all to send all, and then on the Actions menu, click Forward as vCard.
    All contacts will be added to a new message created as separate vCard file attachments. Send the message to an email account you are accessing with the Mail application on your Mac.
    Create a folder on the Mac desktop or in your location of choice and save all vCard attachments received via email to this folder.
    Launch Address Book and at the menu bar, go to File > Import and select vCards navigating to the folder that contains the vCard files sent from Outlook.
    The contacts in your local Address Book will be synced with the .Mac online address book.

  • Migrating from Outlook to Mail

    Hi all,
    I purchased my iMac several months ago after years of Windows experience. As a trial of course, but now I am so happy with it that my once beloved Dell notebook running XP seems to have lost it's glory completely.
    So I will be going for a nice new MacBook Pro as my personal friend. It will probably arrive within a couple of weeks. I will have to migrate all my personal stuff to the new Mac. Which brings me to my question...
    How can I move my e-mail history from Outlook 2007 into Mail. I checked the import options in Mail, but have not found a solution.
    Any suggestion is very welcome.
    Kind regards, Hans.

    Hi Rich,
    I've been a faithful Windows user for many years. A couple of months ago I bought an Imac just because I liked the design so much. Also some friends were very enthusiastic about their Mac. Since then I have bought my 2 daughters each a Macbook (I am no longer bothered by them because their computer is failing again and have ordered my new MacBook Pro which will replace my business computer in a couple of weeks. Don't hesitate! Just make sure that you order VMware fusion at the same time, so that your Mac can support your current Windows applications if necessary.
    As far as your question is concerned. Yes, O2M works flawlessly. Just make sure that your pst.file is opened in Outlook's navigation pane. Itr will automatically recognise all available pst's and will ask you which one's should be imported. You will also be able to choose per pst whether to import mail, contacts, agenda items, or a combination of those.
    Good luck, HANS

  • Problem syncing old emails from Outlook to Mail using Exchange 2010

    HI,
    I recently switched from Outlook 2011 to Lion Apple Mail.  I am set up for email through my comany's exchange server.  When I set up Mail, all of my folders showed up on my Mail account successfully but it will only sync back the last 60 days of emails.  I know these old emails do reside on the server.  Is there potentially a setting on mail to adjust how back it syncs?  If not, can someone suggest a work-around.  I would only have to do this once.
    Thanks

    When transferring a locally stored message that was recieved a year ago to a server stored mailbox with an IMAP account - doing this today for example, the recieved date for the message is changed to today's date - at least with an email client used to access the account.

Maybe you are looking for

  • How to hide fields in Table maintenace screen

    I have created a view with table maintenance generator. I would like to hide some fields. With event I am able to fill in those fields but I want to hide those from screen.

  • Issues on the Lumia 800 with "WIFI" and "Mobile ne...

    I keep my Lumia 800 on 2G/E at all times usually to conserve battery life, and because i'm at work with a wifi connection all day..occasionally when i go out i like to turn on the 3G and use the map functions etc. The problem occurs after a while tha

  • Old Motion crashes on start up -- please help

    After not using Motion 1.01 for a while, I need it for a project and it won't start up. I am running OS 10.3.9 on a G4. I have tried: 1) Trashing prefs 2) Update prebinding (as per http://docs.info.apple.com/article.html?artnum=93984) Any help would

  • Calender not syncing with WinXP

    My calendar is syncing fine between my Macbook and MobileMe, but not with my iPhone or WinXP?? Can I manually instruct the iPhone to sync? I have on WinXP.

  • I need help from bobseufert

    Merry Christmas, Bob!