Sending email, very strange

Hello all!
I am having a problem very strange.. first i have two procedures that send emails with a pdf in attach, ok the both is indentical.. but when i execute one this show a message with error:
"ORA-22288- FILE OR LOP OPERATION FAILED"
but in other the email was send right, i don't know more what can be, th both procedures use the same directory..
CREATE OR REPLACE procedure P_ENVIA_EMAIL_TESTE (V_REPORT IN VARCHAR2,V_COD_ACCOUNT IN NUMBER) is
p_sender varchar2(100);
p_recipients varchar2(100);
p_subject varchar2(100);
p_filename varchar2(100);
p_blob blob;
V_NOME_ARQUIVO VARCHAR(50);
conn utl_smtp.connection;
i number;
len number;
vFlob BFILE;
vBlob BLOB;
v_arquivo2 varchar2(100);
BEGIN
UPDATE CITEMP_EMAIL SET arquivo = (EMPTY_BLOB()) WHERE COD_ACCOUNT = V_COD_ACCOUNT
Return arquivo Into vBlob;
     vFlob := BFILENAME('ORALOAD',V_report);
DBMS_LOB.FILEOPEN(vFlob,DBMS_LOB.FILE_READONLY);
DBMS_LOB.LOADFROMFILE(vBlob,vFlob,DBMS_LOB.GETLENGTH(vFlob));
DBMS_LOB.FILECLOSE(vFlob);
     SELECT ARQUIVO,EMAIL_CONF, NOME_REPORT INTO P_BLOB, P_RECIPIENTS, v_nome_arquivo FROM CITEMP_EMAIL WHERE COD_ACCOUNT = V_COD_ACCOUNT;
     SELECT SENDER, MARGIN_SUBJECT INTO P_SENDER, P_SUBJECT FROM CIMASTER_EMAIL;
conn := demo_mail.begin_mail(
sender => p_sender,
recipients => p_recipients,
subject => p_subject,
mime_type => demo_mail.MULTIPART_MIME_TYPE);
demo_mail.begin_attachment(
conn => conn,
mime_type => 'application/pdf',
inline => TRUE,
filename => V_REPORT,
transfer_enc => 'base64');
-- split the Base64 encoded attachment into multiple lines
i := 1;
len := DBMS_LOB.getLength(p_blob);
WHILE (i < len) LOOP
IF(i + demo_mail.MAX_BASE64_LINE_WIDTH < len)THEN
UTL_SMTP.Write_Raw_Data (conn
, UTL_ENCODE.Base64_Encode(
DBMS_LOB.Substr(p_blob, demo_mail.MAX_BASE64_LINE_WIDTH, i)));
ELSE
UTL_SMTP.Write_Raw_Data (conn
, UTL_ENCODE.Base64_Encode(
DBMS_LOB.Substr(p_blob, (len - i)+1, i)));
END IF;
UTL_SMTP.Write_Data(conn, UTL_TCP.CRLF);
i := i + demo_mail.MAX_BASE64_LINE_WIDTH;
END LOOP;
demo_mail.end_attachment(conn => conn);
demo_mail.attach_text(
conn => conn,
data => NULL,
mime_type => 'text/html');
demo_mail.end_mail( conn => conn );
END;
please help me!

1) What is the complete error stack? The error should come with a line number, what is on that line?
2) I'm assuming that you don't have identical procedures in the same database, right? Does that imply that you have a procedure that works on one database and not on another?
3) Is the ORALOAD directory created on both systems? Do both procedure owners have access to that directory object? Does the Oracle user on the operating system have access to the specified directory on both systems? Does v_report exist on both file systems?
Justin

Similar Messages

  • Attachments and Emails - Very strange

    Hi There
    More often then not, when I attach something to an email, the recipient is just receiving the attachment and not the supporting text written in mail. It looks rude to the recipient who just gets the attachment! Why is this happening?
    Has anyone else experienced this?
    Please help!

    Ernie Stamper wrote:
    I have no problems sending to everyone with Plain Text -- I have seen no reason to choose RTF for those with attachments. It has worked for everyone I have provided that advice to.
    There is some slight disagreement between etresoft and me in this regard, but not a big deal.
    I sent attachments using plain text and never have any problems. Come to think of it, I don't know if I've ever had trouble sending attachments.
    However, I have concocted scenarios that caused old versions if Outlook to choke. But I had to manually construct such a message just for that purpose.
    I used to be very much into e-mail attachments, but not anymore. It's no fun when you are the only one worried about standards. Even Apple gave up. E-mail is not a technology of the future. It has already peaked and is now in its way down.

  • HT2584 cannot send emails very slow to receive them

    having trouble recieving emails and sending them on inbox wheel keeps spining help

    MacBook Pro
    https://discussions.apple.com/community/notebooks/macbook_pro
    https://discussions.apple.com/community/mac_os?view=discussionshttp://www.apple.com/support/macbookpro
    Setup Wizard for Mail:
    http://www.apple.com/support/mail
    Might also consider  Mountain Lion form. Notice that this forum is not for notebooks.

  • Mail Exchange 2013 auto send some email to strange domain

    My mail server is ok now. i can send and receive fast.
    but some time it is auto send email to strange domain and continuous send to [email protected] 
    PLEASE HELP ME, thanks
    Identity: Mail01\30101\25804163514390
    Subject: Undeliverable: TODAY: Apple Macbook Pro for $23.38?
    Internet Message ID: <[email protected]>
    From Address: <>
    Status: Ready
    Size (KB): 12
    Message Source Name: DSN
    Source IP: 255.255.255.255
    SCL: -1
    Date Received: 4/10/2014 8:08:02 PM
    Expiration Time: 4/12/2014 8:08:02 PM
    Last Error: 400 4.4.7 Message delayed
    Queue ID: Mail01\30101
    Recipients:  [email protected];2;2;400 4.4.7 Message delayed;0;CN=Directly to Internet,CN=Connections,CN=Exchange Routing Group (DWBGZMFD01QNBJR),CN=Routing Groups,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative
    Groups,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=elgaucho,DC=asia
    AND 
    Identity: Mail01\158323\14873471746194
    Subject: Delivery delayed:Inbound proxy probe
    Internet Message ID: <[email protected]>
    From Address: <>
    Status: Ready
    Size (KB): 10
    Message Source Name: DSN
    Source IP: 255.255.255.255
    SCL: -1
    Date Received: 12/25/2013 4:48:12 PM
    Expiration Time: 12/27/2013 4:48:12 PM
    Last Error: 400 4.4.7 Message delayed
    Queue ID: Mail01\158323
    Recipients:  [email protected];2;2;400 4.4.7 Message delayed;0;CN=Directly to Internet,CN=Connections,CN=Exchange Routing Group (DWBGZMFD01QNBJR),CN=Routing Groups,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=First
    Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=elgaucho,DC=asia

    Hello,
    As the Vishwanath's provide the article, Exchange 2013 automatically creates several HealthMailbox<guid> objects in Active Directory which are used by Managed Availability to send e-mails through Exchange to verify mail flow every few minutes. These
    e-mails are used to do health checks for resources from Frontend Transport role to Hub Transport and health checks on mailbox database resources.
    Additional article for your reference.
    http://exchangeserverpro.com/exchange-server-2013-inboundproxy-com-ndr/ (Note: Microsoft is providing this information as a convenience to you. The sites are not controlled
    by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link)
    Cara Chen
    TechNet Community Support

  • After upgrading to ios6 ,I can't receive emails on my ipad any more,but I can send ,it's very strange to me.i have checked my incoming information,everything is ok.please help me

    Please help me to receive my emails again on my ipad.after upgrading ti ios6 I do not get my emails on my ipad while everything is okay.
    I can send email from my ipad,it's very strange
    Can somebody help me please ?
    Bye

    If you pull the folder list/Inbox part of the screen down and then release it, does that not refresh it ?

  • Many messages are showing up randomly on my mail.they say no message and no sender and give very strange dates.  The text is gray - I can't delete them. What is this?

    Many messages are showing up randomly on my mail.  They say no message, no sender and have strange dates.  The text is gray; I cannot delete them.  What is this?

    The Best Alternatives for Security Questions and Rescue Mail
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contacting Apple for
            support and service.
        c. Rescue email address and how to reset Apple ID security questions

  • Sending email is very slow.

    Even the simplest messages can take forever to send. Sometimes I have to quit mail and try and resend, but even with that it can be very slow to send email. How can I fix this?

    I found this in archived discussions. You response was very unhelpful. Thanks anyway.
    The solution/fix for me was to use different DNS server ip addresses in 10.5's Network control panel.
    Using my ISP's DNS servers, sending email from apple mail 10.5 was slow.
    Using the OpenDNS servers - slow.
    But if I only used Google's DNS numbers, sending email is fast.
    The numbers are: 8.8.8.8 and 8.8.4.4

  • How can my iMac send emails that I have not produced and have strange links to them.

    Hi
    My imac has mysteriuosly send out 2 emails, with strange links on to the whole of my address book
    How can this happen  ? I know it does with PC but never befre has it on my mac.
    Can someone please help me to rectify
    Natalie

    How do you know this happened? What is in the message besides addresses? Do you synchronize your contacts with a network service, such as iCloud or Google?

  • Cannot receive/send emails via Mail on Mac using 10.6.8, keeps asking for password, very frustrating. Any ideas please? Regards

    Cannot receive/send emails via Mail on Mac using 10.6.8, keeps asking for password, very frustrating. Any ideas please? Regards

    One more time, iCloud mail accounts are .me, .mac and .icloud. New ones are only .icloud.
    iCloud mail is a standard Imap account that can be used with any mail client in existence. But You are talking about the ability to automatically setup an iCloud account in mail, which did not exist until 10.7.2.
    You can use password or token authentification with iCloud mail (in Mail) it is your choice.
    Set the account manually, set it as Imap, use imap.mail.me.com (no P number) for the incoming email and smtp.mail.me.com as the outgoing server.
    The full settings (ports and security) are here. Use them and it will work, regardless of domain (mac, me and icloud addresses all use the same settings.
    IMAP (Incoming Mail Server) information:
    Server name: imap.mail.me.com
    SSL Required: Yes
    Port: 993
    Username: [email protected] (use your @me.com address from your iCloud account)
    Password: Your iCloud password
    SMTP (outgoing mail server) information:
    Server name: smtp.mail.me.com
    SSL Required: Yes
    Port: 587
    SMTP Authentication Required: Yes
    Username: [email protected] (use your @me.com address from your iCloud account)
    Password: Your iCloud password
    Note: If you receive errors using SSL, try using TLS instead. SSL is required for both IMAP and SMTP connection with iCloud. POP is not supported by iCloud. 
    For more information on how to use this information with your email application, consult your application's documentation.

  • Sending email is very slow for all clients

    Starting last week sending email takes anywhere from 1 to 5 minutes from the time we click on the "Send" button until it actually sends from the Mail app. It's happening to everyone on our network as far as I can tell.
    This happened in the past and after I ran Software Update on the mail server everything started working fine. Well this time we're still having the problem after all the mail server's software is up to date.
    I noticed that if I send an email and I create another email and send it within a minute or so of the first one finally going out, the second one sends off immediately. If I wait a few minutes and send an email I have to wait a minute again after clicking "send" for it to actually send off. It seems as though the connection to the mail server is being reset after a minute or so. And then for the Mail App to reconnect to the mail server is taking a minute to do. I have no idea how the whole process works, but that's what it seems like is happening.
    Hopefully this is making sense to you.
    If you have any ideas for me to try in order to get the Mail Apps to send out mail faster please let me know.
    One thing I have tried is to use the mail server's IP address instead of FQDN. Unfortunately Mail Apps with the IP address are acting just like ones with the FQDN. /shrug
    Thanks in advance for any help you can give me.

    Did some testing and webmail doesn't seem to have the same problems. I sent an email from my account through webmail and it showed up in the mail queue almost instantly. Sending mail from the Mail App through an IMAP connection is still taking me just about 1 minute. Some users are telling me that it takes up to 5 minutes at times.
    I also noticed that the server's CPU usage spikes about once per minute with clamscan taking up to 99% of the CPU's time. I don't remember this much CPU activity in the past. Also as of the last few weeks I have had users complaining of unusually high amounts of SPAM.
    I use spamtrainer to help with the SPAM problem.
    Oh how I adore those SPAMMERS... >.<

  • Cannot send emails in Mac Mail using third party SMTP via BT Infinity Broadband

    EUREKA!!
    I have a Mac Book Pro and recently had my home broadband upgraded to BT Infinity. Prior to this upgrade sending emails via my Mac mail was working perfectly. Since the new installation I could no send any external emails using the Hotmail.co.uk or 123-Reg.co.uk smtp outgoing servers. Googlemail.com was ok.? very strange.
    So when I connected the same macbook to other wireless connections it would work perfectly.???
    So after many hours wasted messing around, I managed to get the right person at the right time via BT helpline in the UK not India. (India helpine just say "we are not trained in Apple".
    So the very polite man from UK Helpline provided me with the solution.
    GO TO > Apple Icon top left > System Preferences > Network > Wireless >
    Select your wireless connection > Click Advanced lower right on popup
    Select DNS tab
    Click on the + under DNS left pane and type the following :- 208.67.222.222
    Click Apply
    BINGO!!!!
    I hope this helps someone, as I know how painful these types of issues can be.
    Cheers

    Hi Haggie
    Had a similar experience but couldn't work out why macbook was working and imac not. I hate verification with bt. Anyway, tried your method and as you say eureka! Did have imac plugged in before and put it on wifi to try your fix  I will try plugging broadband back in to see if that works and will post back but at the moment just enjoying the moment!
    Just to say a big thank you for not only sorting the problem out but equally importantly posting the answer! Too many people sort out their problems without letting other people know how!
    Many thanks

  • Help with sending email from RoadRunner account on Mac, iPhone, iPad

    Recently, I have had strange issues where suddenly I realize that I cannot send email using Mac Mail (Mac OS X 10.8.1).  Its a very frustration condition where when everything was once fine, suddenly you stop being able to send email without what appears to be 'reason'.
    Today I learned the reason, and I assume others might run into this as well, so I am posting the issue and solution:
    Per Time Warner/RoadRunner support:  "When on your home network, the SMTP server does not require authentication.  When away from your home network, the SMTP server REQUIRES authentication"
    That is what I believe to be a mistake on RoadRunner's part.  Hundred of thousands of users will not understand that they need to change this setting anytime they go for a coffee at Starbucks.
    So to help, here is what I have come up with:
    From Mail -> Preferences, you need to edit your SMTP server list.  Click the drop-down list next to 'Outgoing Mail Server (SMTP) and select 'edit SMTP Server List.  Create two server connections and name one something that reminds you that it is the home network, and the other a roaming network.  Set the home network server config to Authentication -> None.  Set the roaming network server config to Authentication -> Password and fill in the username/password credentials.
    Having both these servers available for you to select from will reduce the impact of this inconvenient requirement from RoadRunner.
    .....Comcast.....please make service available in my area.....

    Bradley,
    You did it. I used your suggestion and solved what I hope to be the last of a very persistent problem.
    I made both a home and away SMTP server setting on my iMail. I tested both and are working well.
    Of all my research, your suggestion was the only fix to this problem. Now, I hope to be able to send email wherever I am instead of waiting until I am at a home network or worse, resorting to using my phone.
    Thanks again!

  • Error 554-5.6.0 Corrupt message content... when sending emails to other users on same exchange server

    Hello
    I have a very strange problem at a customer from our company.
    The problem happens to only one user on the Exchange 2010 organization (SP3, no additional patches installed, Server is 2008 r2).
    When this specific user sends an email to one or more users on the same Exchange organization, he gets sometimes (not always) the following error back:
    554-5.6.0 Corrupt message content 554 5.6.0 STOREDRV.Deliver.Exception:ConversionFailedException; Failed to process message due to a permanent exception with message Inhaltskonvertierung: Fehlerhafter TNEF-Zusammenfassungsinhalt. ConversionFailedException:
    Inhaltskonvertierung: Fehlerhafter TNEF-Zusammenfassungsinhalt. [Stage: CreateReplay]
    So - TNEF, corrupt message Content... I googled the error and checked all the recommended Solutions. The Outlook Client is ok, I have doublechecked it and everything is configured like it has to be.
    The Problems happens as above described only for one user when he writes emails to users from one specific Domain on the same Exchange organization (example
    [email protected]).
    He has this specific contacts in a SharePoint contact list which is connected to his Outlook Client.
    Thanks for any help or Information!
    Regards

    Hi,
    According to your description, I understand that one user cannot send message with error “554-5.6.0 Corrupt message content 554 5.6.0”.
    If I misunderstand your concern, please do not hesitate to let me know.
    I want to double confirm whether it works or not when send message to external address, how about the OWA?
    It seems that message has corrupt content. Is there any 3rd prevent software or Anti-Virus software in Exchange 2010?
    Regarding this issue, firstly I would like to explain that content conversion occurs in two places, that are the Store Driver and the Content Conversion stage of Categorization. Since the issue exists in the delivery mail of internal user, the agent that was
    used in the process of handling by Store Driver may cause this issue.
    Please try to enable pipeline tracing and content conversion tracing to get more details about this error, for your reference:
    Content conversion tracing:
    http://technet.microsoft.com/en-us/library/bb397226.aspx
    Pipeline tracing:
    http://technet.microsoft.com/en-us/library/bb125018.aspx
    Best Regards,
    Allen Wang

  • How to send email externally in the RTF format

    Hello,
    I have quite strange problem, and I am bit afraid whether SAP supports or not? which i thought will support by default.
    I need to send email out of SAP, but I need the body of the EMAIL to be formatted in RTF.
    Please note we are able to convert the data into RTF and then send as an attachement with email,
    But what we are looking is instead of attachment we need to send content as the mail body in the format RTF.
    Please any body help on this?
    Thank you again for your kind time and help

    Hi KAMESH,
    Thank you for your very quick response,
    We tried this option, by sending a mail with bold text, but the output still comes as normal text..
    Please can you send any working example of this.. if you think this should work,
    Thank you again for your time..

  • Can visit every website except one? Very strange a...

    This is a very strange problem, and one that has started today but is already driving me mad. I'm on BT Infinity Broadband, using a BT homehub, and have done for a while now... So far it's been fine until today.
    Every aspect of my internet connection is fine - I can get and send emails, use skype, and view websites through every browser...But all of a sudden I can't visit one particular website anymore? It just times out every single time and wont let me on. It's definitely not the website becuase all my colleagues can go on there, and if i turn off my wifi on my iphone I can get to it on 3G also, so the problem is definitely in the router or something to do with my settings here. I've tried on my Macbook on Chrome, Safari and Firefox, and also on my Powermac on the same three browsers. 
    It's vital that I get back online becuase as luck would have it, my job is updating the blog on this one site I can't access, so any help from anyone at all would be very much appreciated. Here's the site in question: www.4downdistribution.com/v3
    Cheers
    James

    it's unlikely that any settings have changed in the router  - have you tried deleting the cache/history/temp internet files and see if that help
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

Maybe you are looking for

  • Very Slow Query due to Bitmap Conversion

    I have a strange problem with the performance of a spatial query. If I perform a 'SELECT non_geom_column FROM my_table WHERE complicated_join_query' the result comes back sub-second. However, when I replace the column selected with geometry and perfo

  • Wanting to buy a factory unlocked phone, which provider to use?

    I've used a 3GS for the past two years in Japan and it will always be locked to Softbank. When I come back to the states this week (1/25/12) it will end up being just another iPod. (Baseband is still unlockable at this time.) To save me from this eff

  • Oracle 9i Personal Database

    my question is a bit outdated but please do not mind me because i am just new user... i have install oracle 9i personal database on my local computer with windows xp professional. now when i start sql plus it request for the user name and password an

  • Deleting original recorded sound

    How can I delete the sound recorded at the time of filming and replacing it with just a music track? I can't do this on I Movie 09. Help

  • DNG Converter 7.1 won't open!

    Can't open newly installed DNG Converter 7.1 on Tiger 10.4.11 MacPro,  PS11.0.2,  LR2.7.  Adobe's  DNG Converter 7.1 download page states that 7.1 is compatible with OS10.4. Works fine on MacBookPro running 10.5.8.  Any ideas?