SMD Ageent starts, but donu00B4t appear in the SMD

Hello,
I installed the Java Add-In and deployed the latest updates of the j2ee and Solution Manger Diagnostics.
Now, I installed on the same host the SMDAgent SP13. After the successfully installation started the Agent and appeared in the SMD Agent registration. Afterwards I try to add the Agent to the SLD via the link „Agent Candidates Management“ and I entered the credentials. The Agent shut down and doesn’t start.
When I start the agent manually he comes up but don’t appear in the SMD. There is the following message:
FAIL: NIECONN_REFUSED (Connection refused), NiRawConnect failed in plugin_fopen()
I read in this forum that this is a normal error which occurs often.
Following the logs from the file logviewer_standalone_server.log, may be they can help you.
Apr 21, 2008 2:49:33 PM [Thread[SMDAgent connection thread,5,main]] Fatal      Connecting to SMD server ms://<virtual Hostname>:8131/P4 failed :
Access denied.
Apr 21, 2008 2:49:34 PM [Thread[SMDAgent connection thread,5,main]] Info       [SMDConnector.reset] in progress ...
Apr 21, 2008 2:49:34 PM [Thread[SMDAgent connection thread,5,main]] Info       Stopping Applications ...
Apr 21, 2008 2:49:34 PM [Thread[SMDAgent connection thread,5,main]] Info       [SMDConnector.reset] Done.
Apr 21, 2008 2:49:41 PM [Thread[SMDAgent connection thread,5,main]] Info       [ms://<virtual Hostname>:8131/P4] Waiting for connection ...
Apr 21, 2008 2:49:41 PM [Thread[SMDAgent connection thread,5,main]] Info       [ms://<virtual Hostname>:8131/P4] Checking server availability...
Apr 21, 2008 2:49:41 PM [Thread[SMDAgent connection thread,5,main]] Info       [ms://<virtual Hostname>:8131/P4] Authentication in progress ...
Apr 21, 2008 2:49:42 PM [Thread[SMDAgent connection thread,5,main]] Info       [ms://<virtual Hostname>:8131/P4] Connection established .
Apr 21, 2008 2:49:42 PM [Thread[SMDAgent connection thread,5,main]] Info       [ms://<virtual Hostname>:8131/P4] Registering agent on server ...
Apr 21, 2008 2:49:42 PM [Thread[SMDAgent connection thread,5,main]] Info       Reading JStartup environment...
:$
Apr 21, 2008 3:32:56 PM [Thread[SMDAgent connection thread,5,main]] Info       'SAPLOCALHOST' found, The value '<virtual Hostname>' will be used to determine the Agent name.
Apr 21, 2008 3:32:56 PM [Thread[SMDAgent connection thread,5,main]] Info       InetAddress Resolving for '<virtual Hostname>' - FQN: < FQN > SQN: <virtual Hostname> IP: 57.20.106.111
Apr 21, 2008 3:32:56 PM [Thread[SMDAgent connection thread,5,main]] Info       InetAddress Resolving for localhost - FQN: <physical Hostname> SQN: <physical Hostname> IP: < IP adress >
Apr 21, 2008 3:32:56 PM [Thread[SMDAgent connection thread,5,main]] Info       Agent handle : < FQN >_SMD_J98/< FQN > created.
Apr 21, 2008 3:32:57 PM [Thread[SMDAgent connection thread,5,main]] Error      Received SMD Access denied exception
[EXCEPTION]
com.sap.smd.api.AccessDeniedException: Access denied.
        at com.sap.smd.SMDServerHandle.checkAuthorization(SMDServerHandle.java:465)
        at com.sap.smd.SMDServerHandle.registerAgent(SMDServerHandle.java:114)
        at com.sap.smd.SMDServerHandlep4_Skel.dispatch(SMDServerHandlep4_Skel.java:196)
        at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:319)
        at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:200)
        at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:136)
        at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
        at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
        at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
        at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Please help me I have no idea what I can do to add the SMDAgent to SMD.
Thanks for all replies.

We get data from the agent, but i think that is not all data that we can get...
SAPSYSTEMNAME = DAA
SAPSYSTEM = 97
INSTANCE_NAME = SMDA97
DIR_CT_RUN = $(DIR_EXE_ROOT)/$(OS_UNICODE)/rs6000_64
DIR_EXECUTABLE = $(DIR_INSTANCE)/exe
SAPLOCALHOST = sapepp
DIR_PROFILE = $(DIR_INSTALL)/profile
_PF = $(DIR_PROFILE)/DAA_SMDA97_sapepp
SETENV_00 = DIR_LIBRARY=$(DIR_LIBRARY)
SETENV_01 = LD_LIBRARY_PATH=$(DIR_LIBRARY):%(LD_LIBRARY_PATH)
SETENV_02 = SHLIB_PATH=$(DIR_LIBRARY):%(SHLIB_PATH)
SETENV_03 = LIBPATH=$(DIR_LIBRARY):%(LIBPATH)
SETENV_04 = PATH=$(DIR_EXECUTABLE):%(PATH)
# Copy SAP Executables
_CPARG0 = list:$(DIR_CT_RUN)/j2eeinst.lst
Execute_00 = immediate $(DIR_CT_RUN)/sapcpe$(FT_EXE) pf=$(_PF) $(_CPARG0)
_CPARG1 = list:$(DIR_CT_SAPJVM)/sapjvm_5.lst
_CPARG2 = source:$(DIR_CT_SAPJVM)
Execute_01 = immediate $(DIR_CT_RUN)/sapcpe$(FT_EXE) pf=$(_PF) $(_CPARG1) $(_CPARG2)
# JStart configuration
SAPJVM_VERSION = 5.1.038
jstartup/vm/home = $(DIR_SAPJVM)
jstartup/bootstrap = no
# Start SMD Agent
_JC = jc.sap$(SAPSYSTEMNAME)_$(INSTANCE_NAME)
Execute_02 = local rm -f $(_JC)
Execute_03 = local ln -s -f $(DIR_EXECUTABLE)/jstart$(FT_EXE) $(_JC)
Start_Program_00 = local $(_JC) pf=$(_PF)
# File generated automatically by the diagnostics agent sapinst.
# Created 2010.09.23 at 12:23:10 GMT
# sapinst classes version: 7.01.2.6.20090526074537
# Title: DAA_SMDA97_sapepp
# Description: File which specify the start parameters used by Jstartup framework for Diagnostics Agent process.
# Don't modifiy manually this script.
smd/agent/type=710
jstartup/instance_properties=$(DIR_INSTANCE)/SMDAgent/smdagent.properties

Similar Messages

  • Icloud cpanel for outlook starts, but nothing appears on the monitor. The process is running in the background.

    The process is running in the background. However nothing appears on the screen for you to alter your settings.
    I have windows 7 64-bit and outlook 2010.
    It was working, but just stopped after several months. I have un-installed and re-installed several times, to no avail.
    Please help.

    I have sorted it now, thank you.
    Re-installed older version of icloud, and then updated the software throught the apple software updater.
    This re-solved the issue.

  • How can i start to use i chat if it said my password is incorrect and i change it, but still appears that the password is wrong :(

    how can i start to use i chat if it said my password is incorrect and i change it, but still appears that the password is wrong

    Hi,
    AIM
    If this is a Name valid with the AIM servers the password has to be 16 characters or Less.
    The Apple IDs from MobileMe and @Mac.com allow you to create (And prompt your for ) Longer passwords.
    These Names are Valid with the AIM servers but they cannot process the password.
    Use iforgot to Change the password to something shorter.
    Googletalk
    If you are using a Google ID then you have to enter your Google ID as it appears when you log in to the Google Web Mail Page.
    The Mail App seems to allow the Endings (@gmail.com and @googlemail.com) to be used almost interchangeably where as the Jabber Server Google run for Google Talk is stricter (so iChat needs to be precise).
    Also the chat option needs to appear in the Web Mail page.
    If it does not it needs Enabling on you Google Account settings page.
    8:10 PM      Tuesday; July 5, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • When I plug in my iPhone to sync, it starts but does not complete the process and several pieces of data are not being transferred to my iPhone from my MacBook Air.

    Problem:
    When I plug in my iPhone to sync, it starts but does not complete the process and several pieces of data are not being transferred to my iPhone from my MacBook Air.
    Any help that you can provide in helping my iPhone accurately sync with iPhoto and iTunes will be greatly appreciated.
    Symptoms:
    1)   Sync:  It’s not completing the sync.  Below, I’ve provided all of my settings from the iTunes Summary tab so that you might tell me if I’ve selected any incorrect options.  I prefer to sync the “old school” way – by connecting to the computer – as opposed to syncing over the cloud. Perhaps this is what’s causing the problem? Here is a list of the steps displayed in the iTunes window as the sync progresses:
    waiting for sync to start (step 1 of 7)
    backing up (step 2 of 7)
    preparing to sync (step 3 of 7)
    determining apps to sync (step 4 of 7)
    preparing apps to sync (step 5 of 7)
    importing photos (step 6 of 7)
    waiting for changes to be applied (step 7 of 7)
    syncing apps / copying 1 of 4 (App name) (step 7 of 7)
    canceling sync
    apple icon
    2)   Photos: I've selected only certain of my iPhoto albums to sync to my iPhone.  All of the albums are correct/complete in iPhoto.  All of the albums are listed on my iPhone, both before and after the sync, but the albums are empty (no actual photos) before and after the sync. Perhaps this is tied to the fact that the sync isn’t completing, but because “importing photos” is one of the steps that the incomplete sync displays, I don’t know.
    3)   Apps: When I launch iTunes and click on the Apps folder under the Library listing, then click on the Updates tab, iTunes searches for any Apps needing to be updated and provides a list.  If I click on Update All, the Apps are successfully updated in iTunes.  But, when I plug in my iPhone so that the updates will transfer to the apps on my iPhone, the updates don’t transfer to the apps on my iPhone and those apps still reflect that they need updating on the iPhone.
    Other Potential Pertinent Info:
    The flash memory hard drive on my MacBook Air recently died (perhaps a month or two ago).  Apple had emailed me about a known issue and literally the next day, my MacBook Air crashed.  I installed a new flash memory drive and re-installed everything from a backup off of an external hard drive.  Everything seems to be working fine; it recreated accurately all of my software and data, including iPhoto and iTunes, the pictures and songs (respectively) for which are stored on that hard drive, as opposed to being on the flash memory in the MacBook Air itself.  However, I don’t recall if the start of the sync problem described herein started happening at the same time that I replaced the flash memory drive.  All I know is that the computer is working perfectly in all respects and that even as the sync is failing, it at least says that it’s doing the right things and looking in the right places (e.g., the list of albums on my iPhone matches the list of albums in iTunes, etc.).
    Settings/Status:
    MacBook Air
    OSX v. 10.9
    iPhoto ’11 v. 9.5 (902.7)
    iPhone iOS 7.0.4
    iTunes v. 11.1.3 (8)
    Summary Tab
    Backups (This Computer)
    Options
    Automatically sync when this iPhone is connected
    Sync only checked songs and videos
    Photos Tab
    Sync Photos from iPhoto (429 Photos)
    Selected albums, Events, and Faces, and automatically include (no Events)
    Albums – 9 are selected

    You need to download iTunes on your computer. iOS 6 requires the latest version of iTunes which is 10.7.

  • TS1538 I can't connect my ipod4 to itunes 9 on windows vista but it appears in the pc but doesn't appear in itunes  can somebody help

    I can't connect my ipod4 to itunes 9 on windows vista but it appears in the pc but doesn't appear in itunes  can somebody help

    Yes
    http://www.apple.com/itunes/download/

  • I just purchased a movie from the iTunes store using iTunes ver. 11.0. The movie downloaded correctly is there on my hard drive but does appear in the iTunes library. How do I get it to appear in the iTunes Movie Library?

    I just purchased a movie from the iTunes store using iTunes ver. 11.0. The movie downloaded correctly is there on my hard drive but does appear in the iTunes library. How do I get it to appear in the iTunes Movie Library?

    Try Handbrake (http://handbrake.fr/), it's good and free

  • Some contacts appear in the search but not appear in the contacts

    Some contacts appear in the search but not appear in the contacts and same not appear in iCloud. Using iPhone 4 iOS 5.1

    See if either of these help:
    http://www.johnrellis.com/psedbtool/photoshop-elements-faq.htm#_The_list_of
    http://helpx.adobe.com/photoshop-elements/kb/scroll-bar-missing-font-list.html

  • Magsafe has no light, MBP starts but just spins on the Apple Logo, more...

    This is a friends 17" 2.16 model
    Magsafe has no light but works, MBP starts but just spins on the Apple Logo, the battery has no charge. I have a 2.4ghz model so checked the charger... it works AND lights up on mine. The battery (a replacement battery, 8 months old) does not take a charge in my mbp (had it installed for 30"). I connected via firewire in Target mode - it didn't mount so I tried to "repair" the connected HD via Disk Utility.... after about 5" a simple message came up saying that it was unable to repair the drive.
    Ran Tech Tool Pro and only managed to run scan blocks on it which at least mounted the drive so I could retrieve files etc but no other diagnostic would work.
    Did a SMC on it - no change.
    When I tried starting it and held down any combination of alt, control, shift keys etc it would just immediately go into shutdown.
    Anybody have an idea what might be wrong and how much it might cost to repair?

    Does your friend's 2.16 MBP have the original hard drive? If so, the hard drive could be failing. It would be 3 years old, and the useful life of a hard drive is 3-5 years.
    Have you tried your known good battery in your friend's MBP? If the battery won't charge with a known good adaptor and a known good battery after a SMC, then there could be a problem with the Left I/O Board.
    I have heard of a dying hard drive affecting the optical drive as well. If TTP was not able to do any diagnostic test, I am wondering if the problem might be with the optical drive.
    The worst possibility would be a bad logic board.
    Have you tried a PRAM reset?
    http://support.apple.com/kb/HT1379?viewlocale=en_US
    These are just some guesses. With a known good battery and adaptor cable, you may be able to determine if the Left I/O Board is OK. However, you may end up needing to go to Apple or an AASP for a real diagnosis. If you are anywhere near an Apple Store, you can make an appointment at the genius bar and get an evaluation for free. If it's just a hard drive or the left I/O Board, the repair should not be too much. If the logic board, it could be quite expensive.
    Good luck!

  • HT1688 My iPhone accepts messages from a straight talk phone, when sending a text it looks like it goes through but never appears on the straight talk phone

    My iPhone accepts messages from a straight talk phone, when sending a text it goes through on my end but never appears on the straight talk phone. I'm having to use a secondary app that allows me to send a message that actually appears on the straight talk phone. I now have the iPhone 5 thinking it would fix the problem but it did not, and now that I have the 4G LTE it uses up my internet in a second.

    The iPad doesn't do SMS text messges which are necessary to send messges to a regular phone.

  • I've been trying no update itunes 11.5 to iTunes 11.1.0 but this appears on the screen error NSURLErrorDomain -1102).(102

    I've been trying no update itunes 11.5 to iTunes 11.1.0 but this appears on the screen (error NSURLErrorDomain -1102).(102)

    I had the same thing. I quit the App Store app and tried it again and it worked... sort of. iTunes is telling me that I have the latest version of 11.1 installed, but I do not see the iTunes Radio button. Is it because this feature is not available in Canada yet?

  • Computer turns on but nothing appears on the screen

    Hi,
    I have had this desktop computer for about 2 years. I usually use it almost daily and turn it off at the end of the day. Every few months or so the computer would turn on but nothing would appear on the screen. I would have to hold the power button to turn it off then turn in on a couple times or wait until the next day and the computer would turn on and everything would appear on the screen and work perfectly. Last week, the computer once again turned on but nothing appeared on the screen, except this time, after a week, the computer will now turn on except there is still nothing appearing on the screen. I no longer hear the fans running, however, I hear everything else running as normal. I have unplugged and re-plugged in all the cords multiple times and still, nothing.
    Please help! Thank you.

    Kelly, welcome to the forum.
    When requesting help you should always include the make/model (i.e. p6-xxxx) of the computer and/or monitor. This information is necessary for us to review the specifications of them.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • My Sky Sports Soccer 6 app has disappeared from my home page but still appears in the settings section but I can't delete it or open it

    Sky Sports Soccer 6 app has recently updated but has now disappeared from the folder I had it in. I can still see it in the settings section but I can't open it or delete it?
    Any ideas how I can solve this?

    From you home screen, swipe down on the middle of the screen in order to get the Spotlight Search feature to appear at the top. Type in the name of the app. If the app appears in the search - tap on it and it should launch. After it launches, double tap the home button and close it. This explains how to close it.
    iOS: Force an app to close - Support - Appl
    After you close tha app, see if it shows up on one of your screens. If it still doesn't appear, reboot your iPad and then see if it shows up.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Cross Reference Sources appearing in Story Editor view but not appearing in the Cross Ref pane

    I have imported a Word document containing working cross references into an InDesign document. The vast majority of these cross references import correctly and link to their destinations within the document, however there are some that are not working. If I view the text frame in the story editor view, I can see these "broken" cross reference sources that came in from the Word doc but on selecting them I can see that there isnt a corresponding entry for it in the cross reference pane. As said, there are only a few that are behaving like this.
    What could be causing these not to appear in the cross reference pane?
    Obviously as they are not appearing in the list of cross references I can't update them, and also, as they are technically broken cross references, because a source exists for them but there is no corresponding entry in the pane, then on export to epub, InDesign crashes (If there is one broken cross reference in a document, export to Epub will crash indesign).
    Also, to clarify, in the Word doc if I navigate to a cross reference that is failing once in InDesign, I can update it properly, and also navigate to its destination in the Word doc, so it's not as though these cross references are broken before coming into InDesign. Also I believe the destinations for these "broken" cross references are coming across properly to indesign too as I can see them in the story editor view.
    Supposed Cross Reference source selected in Story Editor view on left, but no corresponding cross reference highlighted in pane on right:
    Technical Details:
    InDesign CS5.5 - Version 7.5.3
    Microsoft Word 2010, File type .docx

    I have found the possible cause of this problem!
    If a table is used within the Word document somewhere between where the cross reference source is and its destination then that particular cross reference will be broken as described above in my initial post.
    So the "fix" is to remove any occurances of a table in the Word document and the cross references come into InDesign perfectly. This is actually not a fix at all. I need to use tables in the Word document for layout purposes so if they break cross references if they stand between them and their destinations then I have to compromise, i.e. use tables but with no cross references in the document or vice versa.
    I found a similar issue recently with index markers in Word causing a shift on the cross reference tags when bought into InDesign. The "fix" again for that was to remove all index markers from the Word document. See post about this here: http://forums.adobe.com/thread/1043981
    InDesign really needs to sort out the issues with importing of Word documents with cross references in them. If I can't use index markers and tables in a Word document without breaking its cross references then they can't claim to have the ability to import a Word document while maintaining its cross references into an InDesign document. It just doesnt work as ive painstakingly proven.

  • MBP  17" running OS10.9.2....... how do I reformat it and then instal OS 10.6.8 on it.... have put in SL disc and pressed C when starting but I cannot install the OS

    I have MBP 17" running OS 10.9.2....... I need to have OS 10.6.8 so I can contiue running Quicken 2006. I have this on my Mac Pro but am switching to iMac and hence will dedicate laptop to finances. I pressed option when starting and got disk utilities and erased the HD..... I put in the Snow Leopard disc and pressed C when starting but then when I try and install it shows icon of my HD and says I cannot start up from that disk....... I get the same thing when I insert the #1 instal disc that came with the computer. How do I instal OS 10.6.8 (if I go recovery mode it will insatll 10.9.2 which I don't want on this laptop.
    Thanks for any help.

    The grey disk says OS 10.6...... i tried it as well as the SL disk with the C pressed....... what happens is that it directs you to agree etc and then asks where you want it installed..... the icon of the computer HD however has the yellow exclammation sign saying I cannot start from that disk.
    My super drive is working.......
    Since I need to get to Quicken for taxes etc what I have done presently is formatted a LaCie rugged drive, partitioned it and when I attach that drive to the MBP and start up again I was able to install on the external drive....I am presently downloading the combo upgrade that will take me to 10.6.8
    I still don't understand why it wont instal on the MBP I i know you cannot go earlier than what the machine shipped with but since this is 10.6 it should.I have a Mac Pro with one internal drive running 10.9.2 and the other 10.6.8 and I'd select the earlier system to start when I wanted to do my finances. I have upgraded to an iMac and hence cannot use that for acessing the earlier system
    Interestingly, I partitioned another LaCie drive and was able when running 10.6.8 on Mac Pro to install on the external drive...... however when selecting that ext. HD for starting it never did restart with it , always restartd using the 10.9.2 system that was actiually on the other disc.

  • Email is sent correctly, but attachment appears in the body

    Hi,
    I am trying to send emails with attachments in pl/sql.
    I heard it can be done.
    I tried it, the code runs wiithout erros.
    But i cannot see the actual attachment.
    The content of the attachment appears in the body of the email.
    In the email i see this:
    This is an automated email. Please do not reply!
    MIME-Version: 1.0
    Content-Type: multipart/mixed; boundary="-----AABCDEFBBCCC0123456789DE"
    This is a multi-part message in MIME format.
    -------AABCDEFBBCCC0123456789DE
    Content-Type: text/html;US-ASCII
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename="your_file_name.csv"
    SYS,ICOL$,TABLE,2009-06-19 15:35:34
    SYS,I_USER1,INDEX,2009-06-19 15:35:34
    SYS,CON$,TABLE,2009-06-19 15:35:34
    SYS,UNDO$,TABLE,2009-06-19 15:35:34
    SYS,C_COBJ#,CLUSTER,2009-06-19 15:35:34
    SYS,I_OBJ#,INDEX,2009-06-19 15:35:34
    SYS,PROXY_ROLE_DATA$,TABLE,2009-06-19 15:35:34
    SYS,I_IND1,INDEX,2009-06-19 15:35:34
    SYS,I_CDEF2,INDEX,2009-06-19 15:35:34
    SYS,I_PROXY_ROLE_DATA$_1,INDEX,2009-06-19 15:35:34
    SYS,FILE$,TABLE,2009-06-19 15:35:34
    SYS,UET$,TABLE,2009-06-19 15:35:34
    SYS,I_FILE#_BLOCK#,INDEX,2009-06-19 15:35:34
    SYS,I_FILE1,INDEX,2009-06-19 15:35:34
    SYS,I_CON1,INDEX,2009-06-19 15:35:34
    SYS,I_OBJ3,INDEX,2009-06-19 15:35:34
    SYS,I_TS#,INDEX,2009-06-19 15:35:34
    SYS,I_CDEF4,INDEX,2009-06-19 15:35:34
    SYS,IND$,TABLE,2009-06-19 15:35:34
    -------AABCDEFBBCCC0123456789DE--
    The part between the boundry
    (-------AABCDEFBBCCC0123456789DE--) should come as an attachment.
    Code for attachment:
    PROCEDURE R040_attach
    IS
    v_clob clob := empty_clob();
    c_mime_boundary VARCHAR2(256) := '-----AABCDEFBBCCC0123456789DE';
    v_len INTEGER;
    v_index INTEGER;
    BEGIN
    FOR x IN (SELECT *
    FROM all_objects
    WHERE ROWNUM < 20)
    LOOP
    v_clob :=
    v_clob
    || x.owner
    || ','
    || x.object_name
    || ','
    || x.object_type
    || ','
    || TO_CHAR(x.created, 'yyyy-mm-dd hh24:mi:ss')
    || UTL_TCP.crlf;
    END LOOP;
    UTL_SMTP.write_data(c, 'MIME-Version: 1.0' || UTL_TCP.crlf);
    UTL_SMTP.write_data(
    c,
    'Content-Type: multipart/mixed; boundary="' || c_mime_boundary || '"' || UTL_TCP.crlf
    UTL_SMTP.write_data(c, UTL_TCP.crlf);
    UTL_SMTP.write_data(
    c,
    'This is a multi-part message in MIME format.' || UTL_TCP.crlf
    UTL_SMTP.write_data(c, '--' || c_mime_boundary || UTL_TCP.crlf);
    --UTL_SMTP.write_data(c, 'Content-Type: text/html;US-ASCII' || UTL_TCP.crlf);
    --Content-Type: image/jpeg
    UTL_SMTP.write_data(
    c,
    'Content-Type: text/html;US-ASCII'
    || UTL_TCP.crlf
    || 'Content-Transfer-Encoding: base64'
    || UTL_TCP.crlf
    -- Set up attachment header
    UTL_SMTP.write_data(
    c,
    'Content-Disposition: attachment; filename="'
    || 'your_file_name.csv'
    || '"'
    || UTL_TCP.crlf
    UTL_SMTP.write_data(c, UTL_TCP.crlf);
    -- Write attachment contents
    v_len := DBMS_LOB.getlength(v_clob);
    v_index := 1;
    WHILE v_index <= v_len
    LOOP
    UTL_SMTP.write_data(c, DBMS_LOB.SUBSTR(v_clob, 32000, v_index));
    v_index := v_index + 32000;
    END LOOP;
    -- End attachment
    UTL_SMTP.write_data(c, UTL_TCP.crlf);
    UTL_SMTP.write_data(c, '--' || c_mime_boundary || '--' || UTL_TCP.crlf);
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR( -20110, 'Dwx0110 - R030 - ' || SQLERRM );
    END R040_attach;
    Any help would be appreciated.
    Thank you.

    This is the forum for Oracle's SQL Developer tool, not for general SQL and PL/SQL questions.
    Questions like this will get a better response in the PL/SQL forum.
    Here is some code I have used to send emails with attachments.
      utl_smtp.open_data(conn);
      utl_smtp.write_data(conn,'Subject:'||subject);
       utl_smtp.write_data( conn, utl_tcp.crlf );
      utl_smtp.write_data( conn, 'Content-Disposition: attachment; filename="attachment"' || utl_tcp.crlf);
        utl_smtp.write_data( conn, 'Content-Transfer-Encoding: base64' || utl_tcp.crlf );
        utl_smtp.write_data( conn, utl_tcp.crlf );
        v_length := dbms_lob.getlength(attachment);
        <<while_loop>>
        while v_offset < v_length loop
          dbms_lob.read( attachment, v_buffer_size, v_offset, v_raw );
          utl_smtp.write_raw_data( conn, utl_encode.base64_encode(v_raw) );
          utl_smtp.write_data( conn, utl_tcp.crlf );
          v_offset := v_offset + v_buffer_size;
        end loop while_loop;
        utl_smtp.write_data( conn, utl_tcp.crlf );
      utl_smtp.write_data(conn,utl_tcp.crlf||utl_tcp.crlf);
      utl_smtp.write_data(conn,content);
      utl_smtp.write_data(conn,utl_tcp.crlf||utl_tcp.crlf);
      utl_smtp.close_data(conn);
    content is a varchar holding the body of the email.
    attachment is a blob holding the attachment.
    Edited by: Jim Smith on Nov 2, 2012 9:24 AM

Maybe you are looking for

  • Runtime error in process model and sequence still passes

    I am doing some custom initialization in the process model (in the ProcessSetup callback). I call a .NET module that may throw an exception under certain error conditions. This causes the the process model to jump to the Cleanup section of the proces

  • Using AppleScript to launch an application on a different machine

    Hi there, I'm trying to use AppleScript to enable a couple of my Macs to talk to each other. On one machine, I want to use this script: tell application "Finder" of machine "eppc://user:[email protected]" launch application "Rivet" of machine "eppc:/

  • How to get server date and time using java code

    Hi, I'm new to java. I have one doubt about getting date and time of the server. can anyone give some sample code to get that. thanks in regards Gopi.

  • Mail step in workflow is in infinite loop.

    Dear All,        I have created a workflow with deadline monitoring feature.In the workflow created,I have defined a mail step in a loop with loop condition priority = 8 and three minute for deadline.When the workflow gets triggered , the mail step i

  • Type document and sync to notes app

    Is there a way I can type a small document on my imac in word for example, and then sync that text into a new page on my "notes" app on my iPhone?