Error: NDMP operation failed due to media error

I scheduled a RMAN backup job on oracle 11g EM and sometime it failed when running datafile backup.  The log showed the error come from media layer and did not specify detail message. We used secure backup to transfer data to tape. There are 4 tape drivers in service, but only one of them always return this error.  Could anyone tell how to resolve the problem ?
RMAN-03009: failure of backup command on c1 channel at 01/23/2014 11:17:29
ORA-27192: skgfcls: sbtclose2 returned error - failed to close file
ORA-19511: Error received from media manager layer, error text:
   sbtclose2: Internal error - NDMP Data Service has exited prematurely.
   For more information, please check the transcript for this job ('oracle/33779.1').
ORA-27000: skgfqsbi: failed to initialize storage subsystem (SBT) layer
Additional information: 1292
ORA-19511: Error received from media manager layer, error text:
continuing other job steps, job failed will not be re-run
And I found below logs in the secure backup scripts log. it that mean a network error?
10:16:42 await_ndmp_event: sending progress update
    10:16:42 SPU: sending progress update
    10:17:43 QTOS: received osb_stats message for job oracle/33656.1, kbytes 10452672, nfiles 0
10:17:43 await_ndmp_event: sending progress update
    10:17:43 SPU: sending progress update
    10:19:35 NWEM: saw tape write error log message ("tape write failed due to media error")
tape write failed due to media error
    10:19:35 MNPO: mover halted with reason=media error
    10:19:35 MGS:  ms.record_size 65536, ms.record_num 0x28094, ms.bytes_moved 0x280940000
    10:19:35 QTOS: received osb_stats message for job oracle/33656.1, kbytes 10497280, nfiles 0
    10:19:35 MNPO: data service halted with reason=connection error
    10:19:35 SNPD: Data Service reported bytes processed 0x280B40000
    10:19:53 A_T:  suppressing filemark output due to NDMP having written one
    10:19:53 A_T:  writing marker label; here it is:

Judging by the transcript snips that you provided, I also believe that this is caused by a bad drive or bad media.
Start by looking at the output of the command :
  # obtool dumpdev <tape_drive_name>
(replace "<tape_drive_name>" by the name of the drive which was used during the failed job).
Look for any errors or warnings during the date/time the backup job failed. These message usually provide a good idea about the problem that occurred.
Next try the same backup using the same media in another drive to see it the problem reoccurs or not. In case the problem reoccurs, there's a good chance that the media is bad. If the backup succeeds on another drive, then try the same backup using the original drive but with a new media. If the backup fails again on the same drive using new media, you should open a support request with the tape drive vendor. In that case, collect the logs from the tape library (and dump the tape drives is possible).
HTH,
Gio

Similar Messages

  • Creating Protection Group Fails with Error:360 The operation failed due to a virtual disk service error

    Hello
    I'm setting up a DPM server (2012 R2) at a remote site; everything goes well with no issues until a protection group is created, at which point I get the following error;
    Create protection group: Protection Group 1 failed:
    Error 360: The operation failed due to a virtual disk service error
    Error details: The system cannot find the file specified
    Recommended action: Retry the operation.
    The environment is as follows;
    - Virtual Machine Running Server 2008 R2 Fully updated
    - Storage Pool is an iSCSI connection Thick Provisioned 1TB GPT and shows in Disk Management with no issues.
    - Have connected to Session 0 (console) 
    - Error log shows The provider did not receive a Plug and Play service notification for the volume. volume=10  for the VDS Dynamic Provider
    Can Anyone Help?
    Thanks
    .Adam Langdon

    Hi,
    Disk defrag is initiated when a volume shrink is attempted. See if there is any problem defragging a volume and correct any problems doing that.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • I am unable to burn mp3 audio files to cd.I have tried different speeds but every time it ays failed due to media write error.Can anyone help what to do?

    I am unable to burn mp3 audio files to cd.Every time it says failed due to media write error.I have tried different speeds.Can anyone help pls?

    There are several different incompatible media sold as writeable CDs. You MUST match the media to the abilities of your drive.
    I was flummoxed by buying 8x media when my drive was a 2x drive. I needed the other type, and there was nothing helpful in the diagnostics or the packaging that helped me understand that.
    EDIT: There is an interesting helpful feature buried in System Profiler ... (read the last two lines of the report):
    About this Mac > ( More Info ) > Report > Disc burning

  • Document Store Operation Failed due to missing authorisations.

    Hi
    I am using BW 3.5, One of the user is getting the following error message while accessing one of the report:
    Document Store Operation Failed due to missing authorisations.
    The user has previously accessed this report many times. But when I tied to access the report, there was no problem.
    Could any one of you advise me how to rectify this error?
    Many Thanks in advanc
    Regards
    Ishi

    Hi Suresh
    Thanks for the response; I have checked authorizations and user is authorised to access all the existing reports in BW. Checks were successful.
    What might be the reason then?
    Thanks

  • 'Document store operation failed due to missing authorization'

    Hi all,
      I am getting the error message 'Document store operation failed due to missing authorization' when trying to save the workbook as the existing Workbook after changing the structure for it. We are using the Authorization Hierarchies.
    What is the problem and how can I fix it, PLEASE ???
    Thanks.
    Message was edited by: Venkat Kodi

    check out the related thread:
    What is this error

  • Workbook: Document store operation failed due to missing authorization

    Hello authorizer gurus,
    I have got 3.5.
    I have transported.
    I try to open a workbook.
    I am getting a Error Message:
               Document store operation failed due to missing authorization
    Newly saved Queries as workbook can be openend.
    What's wrong ?
    Thank You
    Martin Sautter

    Martin,
    To get a detailed message about the error (including which authorization objects the user needs to have to be able to perform the action that caused the error) use ST22. It sounds like they are missing the Open authorization for workbooks.
    Cheers,
    Rusty

  • Starting firefox brings up a dialog box. Title is "Session Manager" and the message is "This operation failed due to a file access error: unknown error". What's up?

    Above says it all

    If anyone is is intrested. I figured out the solution. In the Weblogic Console Located in the JDBC Data Sources. Added correct JNDI Name for Name: soademoDatabase which was jdbc/soademoDatabase. Redeploy and restart server. Works fine

  • Trying to reinstall CS5.5 Master Collection from DVD media on Windows 7 64 bit - setup.exe fails due to msxml3.dll error PDApp message [FATAL] PIM - Failed to Create XML instance : DOMDocument40 ADXML::initWithXMLPath Error:80040154

    If anyone is able to solve this they are a genius (or I am doing something very stupid!)
    I am trying to reinstall CS5.5 Master Collection from DVD media on Windows 7 64 bit PC but setup.exe fails due to a msxml3.dll error.
    Following a big bundle of recent Windows 7 updates, I started getting 'bad image' msxml3.dll error messages when opening any CS5.5 master collection program (Eg Premiere / Photoshop / Illustrator / Dreamweaver). Following advice on some threads here I tried uninstalling and then using the Adobe CC Cleaner Tool to clean up install, then reinstalling from my original DVD media.
    Whenever I try using run setup.exe from installtion disc 1 the installing fails due to 'Missing files'. I have also tried dowloading trial versions and runing setup.exe fro mthe downloaded files but i still get the same message.
    I have searched the forum and others have experienced this error but none of the solutions I have found seem to be working for me - as many seem to relate to download installations whereas I am installing from original DVD media (which worked fine before on the same PC)
    These are the FATAL messages from the PDApp log
    12/11/2014 15:29:27 [FATAL] PIM - Failed to Create XML instance : DOMDocument40 ADXML::initWithXMLPath Error:80040154
    12/11/2014 15:29:27 [FATAL] Setup - Could not initialize ADXML object
    12/11/2014 15:29:27 [FATAL] Setup - Unable to initialize. Error parsing setup.xml file
    The PDApp troubleshooting seems to indicate that this is caused by error in downloads but I am getting it with both original media DVD and downloads.
    I have also tried using my logon (which has admin privileges) and under our main admin account - and I get the same errors.
    Is a clean install of Windows 7 + CS5.5 my only option?
    Any help / info / advice / solutions very much appreciated! I have spent the last 2 days trying to sort this out and seem to be getting nowhere.
    Thanks.

    Thanks for the reply kglad - much appreciated.
    I have already tried that option (along with downloading files) as it was one of the solutions mentioned on other threads, but that also failed.
    Any other ideas?

  • "JCA Binding execute of Reference operation 'Write' failed due to: Translation Error.

    Hi, i am trying to read a comma delimited file using an inbound file adapter, i have used a mediator to route records to the outbound file adapter.My input.txt file contains 10 records as Fname,Lname.I have used native format builder to generate xsd. To achieve transformation,in the mediator i have mapped only the Fname from source to traget using a for-each loop.I am trying to publish records in the batches of 2 so i have configured inbound file adapter accordingly.My inbound file adapter reads the first two records and the same is visible at the em console mediator instance(payload), i am even able to see the first two records being transformed in the transformed payload in the mediator instance detail but at the outbound file adapter i get an error saying :
    Error during invoking 1-way operation "Write" on target service "writeFile"
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'Write' failed due to: Translation Error. Translation Error. Error while translating message to native format. Please make sure that the payload for the outbound interaction conforms to the schema. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    When i map both the Fname and Lname in the xsl map file i get the output.But i only need one field at the outfile i:e either the Fname or the Lname.
    Given below are the details of the interface:
    My Interface Flow:       InboundFileAdapter--------ReadsFile------->Medaitor------Transformation----->OutboundFileAdapter-----writesFile
    Input Payload(comma delimited text file) as,
    Brad,Pitt
    Keanu,Reaves
    Martin,Lawrance
    Johnny,Depp
    etc
    etc
    Schema definition for payload:
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
                xmlns:tns="http://TargetNamespace.com/readFile"
                targetNamespace="http://TargetNamespace.com/readFile"
                elementFormDefault="qualified"
                attributeFormDefault="unqualified"
                nxsd:version="NXSD"
                nxsd:stream="chars"
                nxsd:encoding="US-ASCII">
      <xsd:element name="Root-Element">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="Employee" minOccurs="1" maxOccurs="unbounded">
              <xsd:complexType>
                <xsd:sequence>
                  <xsd:element name="Fname" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
                  <xsd:element name="Lname" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;" />
                </xsd:sequence>
              </xsd:complexType>
            </xsd:element>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
    </xsd:schema>
    XSL Map:
    <xsl:template match="/">
        <imp1:Root-Element>
          <xsl:for-each select="/imp1:Root-Element/imp1:Employee">
            <imp1:Employee>
              <imp1:Lname>
                <xsl:value-of select="imp1:Lname"/>
              </imp1:Lname>
            </imp1:Employee>
          </xsl:for-each>
        </imp1:Root-Element>
      </xsl:template>
    </xsl:stylesheet>
    Please help me with the above mentioned error and if above transformation is possible using a mediator instead of BPEL
    Regards,
    Saif

    Hi Saif,  Are you using the same xsd for the outbound (write) file adapter as well? In that case, you may need to map both the names (Fname and Lname) but leave the name which you do not want to be written to the file as an empty text. For example, if you would need to map only the Lname, but not the Fname, the xsl will be like,
    <xsl:template match="/">
        <imp1:Root-Element>
          <xsl:for-each select="/imp1:Root-Element/imp1:Employee">
            <imp1:Employee>
              <imp1:Fname>
              <xsl:text disable-output-escaping="no"></xsl:text>
              </imp1:Fname>
              <imp1:Lname>
                <xsl:value-of select="imp1:Lname"/>
              </imp1:Lname>
            </imp1:Employee>
          </xsl:for-each>
        </imp1:Root-Element>
      </xsl:template>
    </xsl:stylesheet>
    Another option is to have a separate xsd with only one element (Fname or Lname) for the outbound file adapter, in which case you would need to map only one field.

  • Backup to remote stage failed due to RFC error

    Hello!
    Recently I have problem to execute a successful online Backup to the external source.
    If I start backup from DB13 and analyse the work processes (Tcode SM50) I found the following:
    The responsible BGD-WP:
    status: On hold , reason: RFC, report: SAPLSSXP
    The dev_w8 trace retrieves the following error:
      Source RSCROSS10  Line 112.
      Error Code <b>DBIF_RSQL_SQL_ERROR</b>.
      Module  $Id: //bas/700_REL/src/krn/runt/absapsql.c#6 $ SAP.
      Function HandleRsqlErrors Line 761.
    The DB13-protocol retrieves the following information:
    BR0278E Command output of 'F:\usr\sap\DEV\SYS\exe\uc\NTAMD64\sapftp.exe -v -n -i 192.168.200.3 -u H:\oracle\DEV\sapbackup\.bdwkhbgq.ftp -b -c put E:\ORACLE\DEV\SAPDATA1\SR3_3\SR3.DATA3 /sap/DEVB/bdwkhbgq/SR3.DATA3':
    Connected to 192.168.200.3 Port 21.
    220-FTP server ready. 220 This is a private system - No anonymous login 331 User sapbackup OK. Password required 230-User sapbackup has group access to:  administrator    230-This server supports FXP transfers 230-OK. Current restricted directory is / 230-************************************************ 230-* Use SITE command to change client codepage:  * 230-* ie, site codepage [client codepage]          * 230 ************************************************ 200 TYPE is now 8-bit binary 200 PORT command successful 150 Connecting to port 2734 NiWrite error: -6, bytes to send: 32767 bytes written: 0
    BR0280I BRBACKUP time stamp: 2007-10-20 03.08.23
    BR0279E Return code from 'F:\usr\sap\DEV\SYS\exe\uc\NTAMD64\sapftp.exe -v -n -i 192.168.200.3 -u H:\oracle\DEV\sapbackup\.bdwkhbgq.ftp -b -c put E:\ORACLE\DEV\SAPDATA1\SR3_3\SR3.DATA3 /sap/DEVB/bdwkhbgq/SR3.DATA3': 1
    BR0222E Copying E:\ORACLE\DEV\SAPDATA1\SR3_3\SR3.DATA3 to/from /sap/DEVB/bdwkhbgq/SR3.DATA3 failed due to previous errors.
    Can some one help me with this issue?
    Thank you very much!
    regards
    Thom

    Hello Eric,
    unfortunately it is not possible to do it, because I have only remote access to the SAP system.
    Is it possible to analyse the problem with the log files?
    If yes --> which logs should I post here?
    I went through the monitors in RZ20 and found a lot of errors/warning:
    <b>Database:</b>
    DBIF_SETG_SQL_ERROR
    ORA-03106: fatal two-task communication protocol error
    DB error 24909 in FET
    SQL error 3106: WP in reconnect status
    <b>Background:</b>
    Job SAP_COLLECT_FOR_PERMONITOR terminated
    Utilisation:
    100% > 95% Background work process load exceeds threshold
    BackgroundService: SystemWideFree BPWP: 1 WPs > 2 WPs Current value over threshold value.
    Abap ErrorInUpdate
    <b>Syslog</b> : BasisSystem
    Operating system call recv failed (error no. & >E5)
    The log file dev_cp retrieves the following information after execution of DB Check:
    Trace file of control program (trace level 3)
    < Function: BtcTrcInit> Function: main SAPXPG 700
    2007-10-23--14-42-27 : Before BtcXpgDetach
    > Function: BtcXpgDetach < Function: BtcXpgDetach Accept RFC connection from R/3 system
    2007-10-23--14-42-27 : Before RfcAccept
    2007-10-23--14-42-27 : RfcAccept returned OK
    security check switched OFF
    Install RFC call SAPXPG_START_XPG
    Install RFC call SAPXPG_START_XPG_LONG
    Install RFC call SAPXPG_END_XPG
    Wait for RFC call SAPXPG_START_XPG or SAPXPG_START_XPG_LONG
    2007-10-23--14-42-27 : Before first call of RFCDispatch
    > Function: BtcXpgStartXpgLong
    2007-10-23--14-42-27 : Beginning of BtcXpgStartXpgLong
    > Function: BtcXpgStartXpgImportLong > Function: BtcXpgParam < Function: BtcXpgParam > Function: BtcXpgParam
    Line Text
    <No StdOut/StdErr output reported>
    Target log table is not identical to source
    ItGetLine terminated with NULL
    <Function: BtcXpgItTransfer > Function: BtcTrcReset < Function: BtcTrcReset Call mode: VIA RF
    Input arguments of BtcXpgStartXpg:
    My WP settings are:
    rdsip/wp_no_dia = 6
    rdsip/wp_no_btc = 3
    rdsip/wp_no_vb = 1
    rdsip/wp_no_vb2 = 1
    rdsip/wp_no_spo = 1
    Thank you!
    Thom

  • Getting error in mailing program :Cause: FDPSTP failed due to ORA-29277

    in the following program i am submitting a request and sending concurrent program log file (.REQ file)as an attachment but getting
    following error,plese tell me where i am wrong
    ORACLE error 29277 in FDPSTP
    Cause: FDPSTP failed due to ORA-29277: invalid SMTP operation
    ORA-06512: at "SYS.UTL_SMTP", line 44
    ORA-06512: at "SYS.UTL_SMTP", line 150
    ORA-06512: at "SYS.UTL_SMTP", line 383
    ORA-06512: at "SYS.UTL_SMTP", line 399
    ORA-0651
    code:
    CREATE OR REPLACE PACKAGE BODY APPS.xx_create_acct
    AS
       PROCEDURE submit_request(
          errbuf             OUT   VARCHAR2,
          retcode            OUT   VARCHAR2,
          Source_Application     varchar2,
    Application     number,
    Dummy_Parameter_0    varchar2,
    Ledger    number,
    Process_Category     varchar2,
    End_Date     varchar2,
    Create_Accounting_Flag    varchar2,
    Dummy_Parameter_1    varchar2,
    Accounting_Mode    varchar2,
    Dummy_Parameter_2    varchar2,
    Errors_Only_Flag    varchar2,
    Report    varchar2,
    Transfer_to_GL_Flag    varchar2,
    Dummy_Parameter_3    varchar2,
    Post_to_GL_Flag    varchar2,
    GL_Batch_Name    varchar2,
    Mixed_Currency_Precision    Number,
    Include_Zero_Amt_Lines_Flag    varchar2,
    Request_ID    varchar2,
    Entity_ID    Number,
    Source_Application_Name    varchar2,
    Application_Name    varchar2,
    Ledger_Name    varchar2,
    Process_Category_Name    varchar2,
    Create_Accounting    varchar2,
    Accounting_Mode_Name    varchar2,
    Errors_Only    varchar2,
    Report_Level    varchar2,
    Transfer_to_GL    varchar2,
    Post_in_GL    varchar2,
    Include_Zero_Amount_Lines    varchar2,
    Valuation_Method    varchar2,
    Security_ID_Integer_1    varchar2,
    Security_ID_Integer_2    varchar2,
    Security_ID_Integer_3    varchar2,
    Security_ID_Char_1    varchar2,
    Security_ID_Char_2    varchar2,
    Security_ID_Char_3    varchar2,
    Concurrent_Request_ID    number,
    P_INCLUDE_USER_TRX_ID_FLAG    varchar2,
    P_INCLUDE_USER_TRX_IDENTIFIERS    varchar2,
    P_DEBUG_FLAG     varchar2
       IS
          l_senderemail     VARCHAR2 (2000) := '[email protected]';
          l_request_id      NUMBER;
          errmsg            VARCHAR2 (1000);
          req_id            NUMBER;
          phase             VARCHAR2 (200);
          status            VARCHAR2 (200);
          dphase            VARCHAR2 (200);
          dstatus           VARCHAR2 (200);
          MESSAGE           VARCHAR2 (200);
          wait_stat         BOOLEAN;
          l_file_name       VARCHAR2 (200);
          l_file_path       VARCHAR2 (2000);
          crlf              VARCHAR2 (4)    := CHR (13) || CHR (10);
          v_set_layout_option  BOOLEAN;
           dir_name         varchar2(100);
        /*  CURSOR req_status
          IS
                        SELECT SUBSTR (outfile_name, 55, 23) filename,
                    SUBSTR (outfile_name, 1, 64) outfilepath
               FROM applsys.fnd_concurrent_requests
              WHERE request_id = l_request_id
                AND phase_code = 'C'
                AND status_code = 'C';*/
          directory_path    VARCHAR2 (2000);
          lv_subject        VARCHAR2 (100);
          lv_msg            VARCHAR2 (700);
          lv_msghdr         VARCHAR2 (100);
          lv_pdf_filename   VARCHAR2 (200);
       BEGIN
        apps.fnd_global.apps_initialize
                                   (user_id           => apps.fnd_global.user_id,
                                     resp_id           =>apps.fnd_global.resp_id,
                                    resp_appl_id      => apps.fnd_global.resp_appl_id
                 l_request_id :=
                apps.fnd_request.submit_request
                                      ( 'BOM',
                                        'CSTCRACCRCV',
                                         NULL,
                                         NULL,
                                         FALSE,                             
                                        Source_Application,
                                        Application     ,
                                        Dummy_Parameter_0,
                                        Ledger    ,
                                        Process_Category,
                                        End_Date     ,
                                        Create_Accounting_Flag,   
                                        Dummy_Parameter_1    ,
                                        Accounting_Mode    ,
                                        Dummy_Parameter_2,
                                        Errors_Only_Flag,
                                        Report    ,
                                        Transfer_to_GL_Flag,
                                        Dummy_Parameter_3,
                                        Post_to_GL_Flag    ,
                                        GL_Batch_Name    ,
                                        Mixed_Currency_Precision,
                                        Include_Zero_Amt_Lines_Flag,   
                                        Request_ID    ,
                                        Entity_ID,
                                        Source_Application_Name,
                                        Application_Name,
                                        Ledger_Name    ,
                                        Process_Category_Name,   
                                        Create_Accounting    ,
                                        Accounting_Mode_Name,
                                        Errors_Only    ,
                                        Report_Level,
                                        Transfer_to_GL,   
                                        Post_in_GL    ,
                                        Include_Zero_Amount_Lines,
                                        Valuation_Method    ,
                                        Security_ID_Integer_1,   
                                        Security_ID_Integer_2,   
                                        Security_ID_Integer_3,   
                                        Security_ID_Char_1    ,
                                        Security_ID_Char_2    ,
                                        Security_ID_Char_3    ,
                                        Concurrent_Request_ID,
                                        P_INCLUDE_USER_TRX_ID_FLAG,   
                                        P_INCLUDE_USER_TRX_IDENTIFIERS,   
                                        P_DEBUG_FLAG    
             COMMIT;
             IF (l_request_id <= 0)
             THEN
                errmsg := apps.fnd_message.get ();
             ELSE
                wait_stat :=
                   apps.fnd_concurrent.wait_for_request (l_request_id,
                                                         10,
                                                         360,
                                                         phase,
                                                         status,
                                                         dphase,
                                                         dstatus,
                                                         MESSAGE
                IF dphase = 'COMPLETE'
                THEN
                   dir_name :='XX_CREATE_ACCT_LOG';
                   l_file_name := 'l' || l_request_id || '.REQ';
                   lv_subject := NULL;
                   lv_msg := NULL;
                   lv_msghdr := NULL;
                   lv_pdf_filename := NULL;
                   lv_subject := 'testing mail :Request for Create Accounting not completed';
                   lv_msg :=
                         'Please find attachement here with the Status Of Create Accounting Reciving from cost management'
                   ||  crlf;
                   lv_msghdr := 'Dear Sir' ;
                   lv_pdf_filename := l_file_name;
                   send_mail (l_senderemail,
                              '[email protected]',
                              lv_subject,
                              lv_msghdr,
                              lv_msg,
                              lv_pdf_filename,
                              'text/application',
                              dir_name
                END IF;  
             END IF;
       END submit_request;
       PROCEDURE send_mail (
          p_sender        IN   VARCHAR2,
          p_recipient     IN   VARCHAR2,
          p_subject       IN   VARCHAR2,
          p_mailbodyhdr   IN   VARCHAR2,
          p_mailbody      IN   VARCHAR2,
          p_filename      IN   VARCHAR2,
          p_filetype      IN   VARCHAR2,
          dir_name        in   VARCHAR2
       AS
          v_msg                          VARCHAR2 (32000);
          src_file                       BFILE;
          i                              INTEGER             := 1;
          v_raw                          RAW (500);
          v_length                       INTEGER             := 0;
          v_buffer_size                  INTEGER             := 57;
          v_mailconn                     UTL_SMTP.connection;
          gc_crlf                        VARCHAR2 (4)      := CHR (13)
                                                              || CHR (10);
          gc_lf                          VARCHAR2 (4)        := CHR (10);
          crlf                           VARCHAR2 (2)      := CHR (13)
                                                              || CHR (10);
          gc_mailhost                    VARCHAR2 (255)      := '172.16.11.2';
          -- gc_maildomain                  VARCHAR2 (255)      := 'pune.com';
          msg                            VARCHAR2 (32767);
          boundary              CONSTANT VARCHAR2 (256)
                                               := '-----7D81B75CCC90D2974F7A1CBD';
          first_boundary        CONSTANT VARCHAR2 (256)
                                              := '--' || boundary || UTL_TCP.crlf;
          last_boundary         CONSTANT VARCHAR2 (256)
                                      := '--' || boundary || '--' || UTL_TCP.crlf;
    -- A MIME type that denotes multi-part email (MIME) messages.
          multipart_mime_type   CONSTANT VARCHAR2 (256)
                              := 'multipart/mixed; boundary="' || boundary || '"';
       BEGIN
          DBMS_OUTPUT.ENABLE (100000);
          --fnd_file.put_line (fnd_file.output, '------------------------------------------------------' );
          v_mailconn := UTL_SMTP.open_connection (gc_mailhost, 26);
          UTL_SMTP.helo (v_mailconn, gc_mailhost);
          UTL_SMTP.mail (v_mailconn, p_sender);
          UTL_SMTP.rcpt (v_mailconn, p_recipient);
          UTL_SMTP.open_data (v_mailconn);
          msg :=
                'Date: '
             || TO_CHAR (SYSDATE, 'Dy, DD Mon YYYY hh24:mi:ss')
             || crlf
             || 'From:[email protected] '
          --   || p_sender
             || crlf
             || 'Subject: '
             || p_subject
             || crlf
             || 'To: [email protected]'
            -- || p_recipient
             || crlf
             || 'MIME-Version: 3.1'
             || crlf
             ||                                          -- Use MIME mail standard
                'Content-Type: multipart/mixed;'
             || crlf
             || ' boundary="-----SECBOUND"'
             || crlf
             || crlf
             || '-------SECBOUND'
             || crlf
             || 'Content-Type: text/plain;'
             || crlf
             || 'Content-Transfer_Encoding: 7bit'
             || crlf
             || crlf
             || p_mailbodyhdr
             || crlf
             || crlf
             || p_mailbody
             || crlf
             || crlf
             || crlf
             || crlf
             ||                                                    -- Message body
                'Regards'
             || crlf
             || 'HR and Payroll Team'
             || crlf
             || crlf
             || ' Note- Please ignore the leave status and number of days.'
             || crlf
             || crlf
             || '-------SECBOUND'
             || crlf
             || 'Content-Type'
             || ': '
             || p_filetype
             || crlf
             || 'Content-Disposition: attachment; filename="'
           --  || 'Create Accounting'
            -- || '.REQ'     
             ||p_filename                                         -- p_filename
             || '"'
             || crlf
             || 'Content-Transfer-Encoding: base64'
             || crlf
             || crlf;
          UTL_SMTP.write_data (v_mailconn, msg);
          src_file := BFILENAME (dir_name, p_filename);
          DBMS_LOB.fileopen (src_file, DBMS_LOB.file_readonly);
          v_length := DBMS_LOB.getlength (src_file);
          WHILE i < v_length
          LOOP
             DBMS_LOB.READ (src_file, v_buffer_size, i, v_raw);
             UTL_SMTP.write_raw_data (v_mailconn,
                                      UTL_ENCODE.base64_encode (v_raw)
             UTL_SMTP.write_data (v_mailconn, UTL_TCP.crlf);
             i := i + v_buffer_size;
          END LOOP while_loop;
          UTL_SMTP.write_data (v_mailconn, last_boundary);
          UTL_SMTP.write_data (v_mailconn, UTL_TCP.crlf);
          DBMS_LOB.fileclose (src_file);
          UTL_SMTP.close_data (v_mailconn);
          UTL_SMTP.quit (v_mailconn);
       EXCEPTION
          WHEN OTHERS
          THEN
             UTL_SMTP.quit (v_mailconn);
             DBMS_OUTPUT.put_line (SQLCODE || SQLERRM);
       --   FND_FILE.PUT_LINE (FND_FILE.LOG,'error while fetching values from CO_CODE'|| SQLERRM );
       END send_mail;
    END xx_create_acct;Edited by: BluShadow on 18-Apr-2011 09:49
    added {noformat}{noformat} tags.  Please see the [url=SQL and PL/SQL FAQ and PL/SQL FAQ[/url] for info on how to post on the forums                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

    I didn't get the information, What I want. Anyway, in the BLOB writing portion you have to create a temporary LOB and load your file into that temporary LOB and the write it into chunks.
    Something like
    DBMS_LOB.OPEN(v_src_loc, DBMS_LOB.LOB_READONLY); --Read the file
      DBMS_LOB.CREATETEMPORARY(l_blob, TRUE); --Create temporary LOB to store the file.
      v_amount := DBMS_LOB.GETLENGTH(v_src_loc); --Amount to store.
      DBMS_LOB.LOADFROMFILE(l_blob, v_src_loc, v_amount); -- Loading from file into temporary LOB
    /* Writing the BLOL in chunks */
      WHILE l_pos < l_blob_len LOOP
        DBMS_LOB.READ(l_blob, l_amount, l_pos, l_buffer);
        UTL_SMTP.write_raw_data(v_connection_handle,
                                UTL_ENCODE.BASE64_ENCODE(l_buffer));
        UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
        l_buffer := NULL;
        l_pos    := l_pos + l_amount;
      END LOOP;For more example see these posts:
    Re: Sending UTL_SMTP mail with single jpg attachment issue
    Re: getting junk letters instead of photo in an email.

  • Activation failed due to sructure generation error.-URGENT

    i tried to check in an activity but activation failed due to the foloowing error:PLEASE HELP VERY URGENT
    Development Component Build (2008-03-14 10:09:20)
      Component name: tablist
      Component vendor: worldbank.org
      SC compartment: worldbank.org_GDB_OPERATIONS_1
      Configuration: WAS_MIGATEST_D
      Location: WAS_MIGATEST_D
      Source code location: http://sapjdi01:50000/dtr/ws/MIGATEST/worldbank.org_GDB_OPERATIONS/dev/active/DCs/worldbank.org/tablist/_comp/
      DC root folder: /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/worldbank.org/tablist/_comp/
      DC type: Web Dynpro
      Host: sapjdi01
    DC Model check:
              [dcmake] All used DCs are available locally
              [dcmake] validating dependency to build plugin "sap.com/tc/bi/bp/webDynpro"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/cmi"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/ddic/ddicruntime"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/ddic/metamodel/content"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/wd/webdynpro"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/logging"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/wdp/metamodel/content"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.aii.proxy.framework"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.aii.util.misc"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.exception"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.mw.jco"
              [dcmake] validating dependency to  public part "pp_connserv" of DC "worldbank.org/connserv"
              [dcmake] DC model check OK
    Start build plugin:
              [dcmake] using build plugin: sap.com/tc/bi/bp/webDynpro
              [dcmake] starting build plugin from : /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/bi/bp/webDynpro/_comp/gen/default/public/webDynpro/
    Build Plugin 'WebDynproPlugin', Version 6.40 SP 19 (630_VAL_REL, built on 2006-10-27 02:01:51 CEST)
       development component:  tablist (worldbank.org)
          software component:  GDB_OPERATIONS (worldbank.org)
                    location:  WAS_MIGATEST_D
                        type:  Web Dynpro
               build variant:  default
             source location:  http://sapjdi01:50000/dtr/ws/MIGATEST/worldbank.org_GDB_OPERATIONS/dev/active/
           plugin start time:  2008-03-14 10:09:21 GMT+00:00
                     Java VM:  Classic VM, 1.4.2 (IBM Corporation)
    General options:
      convert *.xlf to *.properties: yes
      include sources for debugging: yes
    Source folder META-INF exists but is empty.
    Source folder src/configuration exists but is empty.
    Plugin initialized in 1.026 seconds
    Warning: Runtime dependency to connserv (worldbank.org) not allowed (incompatible runtime type).
    Preparing data context..
    No 'default' JDK defined, will use running VM.
    Data context prepared in 0.128 seconds
    Executing macro file..
      Using macro file:     /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/bi/bp/webDynpro/_comp/gen/default/public/webDynpro/macros/build.vm
      Creating output file: /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/worldbank.org/tablist/_comp/gen/default/logs/build.xml
    Macro file executed in 3 seconds
    Starting Ant..
      Using build file:     /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/worldbank.org/tablist/_comp/gen/default/logs/build.xml
      Using build target:   build
      Generation folder:    /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/t/013EC0ABDECC3015F13C417F5CBF217B
      Using Ant version:    1.5.4
    prepare:
         [mkdir] Created dir: /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/worldbank.org/tablist/_comp/gen/default/deploy
    compile:
         [ddgen]
         [ddgen] [Info]    Property deployment is true: Deployment information is provided!
         [ddgen] [Info]    Property sourcepath: /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/worldbank.org/tablist/_comp/src/packages
         [ddgen] [Info]    Property targetpath: /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/t/013EC0ABDECC3015F13C417F5CBF217B/gdd
         [ddgen] [Info]    Property archivename: worldbank.org~tablist
         [ddgen] [Info]    Property vendor: worldbank.org
         [ddgen] [Info]    Property dcname: tablist
         [ddgen] [Info]    Property language: Available languages are automatically determined!
         [ddgen] [Info]    Property addpaths ...
         [ddgen] [Info]       SapMetamodelWebdynproContent.zip - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/bi/extmm/_comp/gen/default/public/def/lib/model
         [ddgen] [Info]       SapMetamodelDictionaryContent.zip - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/bi/extmm/_comp/gen/default/public/def/lib/model
         [ddgen] [Info]       worldbank.orgconnservpp_connserv.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/worldbank.org/connserv/_comp/gen/default/public/pp_connserv/lib/java
         [ddgen] [Info]       exception.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/com.sap.exception/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       SapDictionaryTypeServices.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/ddic/ddicruntime/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       SapDictionaryTypesRuntime.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/ddic/ddicruntime/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       jrfc.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/com.sap.mw.jco/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       SapMetamodelWebdynproContent.zip - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wdp/metamodel/content/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       aii_proxy_rt.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/com.sap.aii.proxy.framework/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       cmiapi.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/cmi/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproadmin.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynprobasesrvc.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproclientserver.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynpromodelimpl.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynpromodel_dynamicrfc.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynpropdfobject.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproprogmodel.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproruntime_designtime_coupling.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproruntime_designtime_coupling_api.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproruntime_repository.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproruntime_repository_pmr.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       webdynproservices.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       SapMetamodelDictionaryContent.zip - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/ddic/metamodel/content/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       aii_util_misc.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/com.sap.aii.util.misc/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       logging.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/logging/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]       logging.perf.jar - /usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/logging/_comp/gen/default/public/default/lib/java
         [ddgen] [Info]    Initialize generation templates from configuration jar:file:/usr/sap/WAS/DVEBMGS00/j2ee/cluster/server0/temp/CBS/199/.B/48895/DCs/sap.com/tc/bi/extddic/_comp/gen/default/public/def/lib/java/SapDictionaryGenerationCore.jar!/DictionaryGenerationConfigurationCompiled.xml
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Origin.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/PackagePointer.java
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Inves_Id.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Ccy_Code.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Subm_Type.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Uw_Upi.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Guar_Holder.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Conver_Type.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Doc_Num.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Sic_Cde.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Rcvr_Type.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Notif_Sndr.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Notif_Rcvr.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Modified_By.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Symsgid.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Status_Type.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Bapi_Msg.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Inves_Ty.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Reason_Dt.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Stl_Upi.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Balmnr.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Notif_Id.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Bapi_Line.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Frcast_Chk.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Migeo_Upi.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Waiv_Flag.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Item_Num.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Symsgno.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Status_Categ.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Mngmt_Gr.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Reg_Num.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Stat_Chng_Dt.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Migaorg_Code.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Rcvr_Grp.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Commnt_Eventtype.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Bapi_Param.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Doc_Typ.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Stl_Comment.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Src_Upi.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Notif_Eventtype.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Bapi_Mtype.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Sndr_Type.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Bapi_Fld.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Commnt_Doctype.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Cmmt_User.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Symsgv.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Sme_Share.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Description.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Balognr.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/Bapilogsys.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Amount.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Status.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Reason_Type.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Comment_Id.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Time_Stamp.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Reason.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__Miga_Source.gsimpletype
         [ddgen] [Info]    Generating datatypes/org/wb/operations/stl/types/__Miga__S_Doc_Typ.gstructure
         [ddgen] [Error]   Structure org.wb.operations.stl.types.__Miga__Appl is not generated
         [ddgen] [Error]   BuiltIn Type or Simple Type expected
         [ddgen] [Info]    Catching throwable null
         [ddgen] [Info]    com.sap.dictionary.generation.ant.GenerationAntTaskError
         [ddgen]      at com.sap.dictionary.generation.ant.GenerationAnt.showCheckResult(GenerationAnt.java:171)
         [ddgen]      at com.sap.dictionary.tools.generation.Generation.generatePersistentStructure(Generation.java:480)
         [ddgen]      at com.sap.dictionary.tools.generation.console.GenerationConsole.generate(GenerationConsole.java:168)
         [ddgen]      at com.sap.dictionary.generation.ant.GenerationAnt.main(GenerationAnt.java:47)
         [ddgen]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [ddgen]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
         [ddgen]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
         [ddgen]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
         [ddgen]      at java.lang.reflect.Method.invoke(Method.java:391)
         [ddgen]      at com.sap.dictionary.generation.ant.DDGenAntTask.execute(DDGenAntTask.java:219)
         [ddgen]      at org.apache.tools.ant.Task.perform(Task.java:341)
         [ddgen]      at org.apache.tools.ant.Target.execute(Target.java:309)
         [ddgen]      at org.apache.tools.ant.Target.performTasks(Target.java:336)
         [ddgen]      at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
         [ddgen]      at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:115)
         [ddgen]      at com.sap.tc.buildplugin.AbstractAntBuildAction.execute(AbstractAntBuildAction.java:65)
         [ddgen]      at com.sap.tc.buildplugin.AbstractPlugin.handleBuildStepSequence(AbstractPlugin.java:226)
         [ddgen]      at com.sap.tc.buildplugin.AbstractPlugin.performBuild(AbstractPlugin.java:202)
         [ddgen]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [ddgen]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
         [ddgen]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
         [ddgen]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
         [ddgen]      at java.lang.reflect.Method.invoke(Method.java:391)
         [ddgen]      at com.sap.tc.buildtool.PluginCommunicator.maybeInvoke(PluginCommunicator.java:114)
         [ddgen]      at com.sap.tc.buildtool.PluginCommunicatorV2.communicate(PluginCommunicatorV2.java:42)
         [ddgen]      at com.sap.tc.buildtool.PluginHandlerImpl.handlePluginCommunication(PluginHandlerImpl.java:354)
         [ddgen]      at com.sap.tc.buildtool.PluginHandlerImpl.execute(PluginHandlerImpl.java:176)
         [ddgen]      at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1726)
         [ddgen]      at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1498)
         [ddgen]      at com.sap.tc.buildcontroller.CBSBuildController.build(CBSBuildController.java:727)
         [ddgen]      at com.sap.tc.buildcontroller.CBSBuildController.execCommand(CBSBuildController.java:503)
         [ddgen]      at com.sap.tc.buildcontroller.CBSBuildController.evalCmdLine(CBSBuildController.java:442)
         [ddgen]      at com.sap.tc.buildcontroller.CBSBuildController.run(CBSBuildController.java:314)
         [ddgen]      at com.sap.tc.buildcontroller.CBSBuildController.exec(CBSBuildController.java:252)
         [ddgen]      at com.sap.tc.buildcontroller.CBSBuildController.mainLoop(CBSBuildController.java:207)
         [ddgen]      at com.sap.tc.buildcontroller.CBSBuildController.main(CBSBuildController.java:168)
         [ddgen] ERROR: Unknown exception during generation null (com.sap.dictionary.generation.ant.GenerationAntTaskError)
         [ddgen] ERROR: Generation failed due to errors (3 seconds)
    Ant runtime 5.593 seconds
    Ant build finished with ERRORS
    [Error]   Generation failed!
    Error: Build stopped due to an error: [Error]   Generation failed!
    Build plugin finished at 2008-03-14 10:09:32 GMT+00:00
    Total build plugin runtime: 10.143 seconds
    Build finished with ERROR

    I think the "," that comes in the flat file. CHange the number fields in the file from ",". If it has 1000 separator remove them. You need not have them in the file. In your case i think the decimals are coming as ",". In that case change your user settings for decimal places and then try to load.
    Hope this helps

  • Adobe update process fails due to Error 130200. solutions please

    adobe update process fails due to Error 130200. solutions please.  Shyam

    Is there anything else beside the number 130200?
    Try downloading the update from http://www.adobe.com/downloads/updates/
    If you still need help, please tell us your operating system details.

  • Moving big files(600MB) with FTP Adapter error The IO operation failed

    I everybody, I have the next trouble:
    I need to move big files from one server to another remote server through ftp protocol. All the configuration is correct and I am able to move little files
    with no problem, but when I move big files the server shows the next error:
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'readEBS'
    failed due to: The IO operation failed. The IO operation failed. The "OPER[NOOP][NONE]" IO operation for "/tmp/TestLogSOA/DetalleCostos3333333.dvd"
    failed. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: XA error: XAResource.XAER_NOTA start() failed on
    resource 'SOADataSource_ohsdomain': XAER_NOTA : The XID is not valid oracle.jdbc.xa.OracleXAException at
    oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:1532) at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:321) at
    weblogic.jdbc.wrapper.VendorXAResource.start(VendorXAResource.java:51) at weblogic.jdbc.jta.DataSource.start(DataSource.java:722) at
    weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1228) at
    weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1161) at
    weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:297) at
    weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:507) at
    weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:434) at
    weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1592) at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1496) at
    weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:439) at weblogic.jdbc.jta.DataSource.connect(DataSource.java:396) at
    weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:355) at
    oracle.integration.platform.xml.XMLDocumentManagerImpl.getConnection(XMLDocumentManagerImpl.java:623) at
    oracle.integration.platform.xml.XMLDocumentManagerImpl.insertDocument(XMLDocumentManagerImpl.java:208) at
    sun.reflect.GeneratedMethodAccessor1534.invoke(Unknown Source) at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at
    org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at
    org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at
    org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at
    org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at
    org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at
    org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy285.insertDocument(Unknown Source) at
    oracle.integration.platform.instance.store.MessageStore.savePayload(MessageStore.java:244) at
    oracle.integration.platform.instance.store.MessageStore.savePayloads(MessageStore.java:99) at
    oracle.integration.platform.instance.InstanceManagerImpl.persistPayloads(InstanceManagerImpl.java:773) at
    oracle.integration.platform.instance.InstanceManagerImpl.persistReferenceInstanceBean(InstanceManagerImpl.java:1106) at
    oracle.integration.platform.blocks.adapter.AbstractAdapterBindingComponent.createAndPersistBindingInstance(AbstractAdapterBindingComponent.java:502)
    at oracle.integration.platform.blocks.adapter.AdapterReference.createAndPersistBindingInstance(AdapterReference.java:356) at
    oracle.integration.platform.blocks.adapter.AdapterReference.request(AdapterReference.java:171) at
    oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139) at
    oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:179) at
    Thanks!!!

    Hi idavistro,
    You can try setting the XA Transaction Timeout for SOADataSource.
    1. Log in to the WebLogic Admin Console.
    2. Select in the left tree: Services-> Datasources-> SOADataSource->Transaction.
    2. Select Set XA Transaction Timeout.
    3. Set XA Transaction Timeout to 0.
    4. Restart the server and check if the error still appears.
    Regards,
    Neeraj Sehgal

  • Failed to mount database "General Users". Error: An Active Manager operation failed

    Failed to mount database "General Users". Error: An Active Manager operation failed. Error: The database action failed. Error: Database 'General Users' on server 'EX02' cannot be mounted due to a previous error: At '12/3/2014
    3:52:17 PM' the Exchange store database 'General Users' copy on this server appears to be inconsistent with the active database copy or is corrupted. For more details about the failure, consult the Event log on the server for other storage and "ExchangeStoreDb"
    events. A successful failover restored service. If you have addressed the underlying problem, or if you have decided to attempt to mount the database despite this error, the mount operation may be attempted by using the '-Force' parameter of the Mount-Database
    cmdlet. [Database: General Users, Server: EX02.domain.com]
    Md. Ramin Hossain

    Hi,
    From your description, it is recommended to suspend the failed database copy at first using the cmdlet below.
    Suspend-MailboxDatabaseCopy -Identity "xxx"
    And then reseed the database with a new copy using Update-MailboxDatabaseCopy -Identity "xxx" -DeleteExistingFiles cmdlet.
    What's more, here is a helpful thread for your reference.
    Update-MailboxDatabaseCopy
    http://technet.microsoft.com/en-us/library/dd335201(v=exchg.150).aspx
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

Maybe you are looking for