Creating a file in append mode

Hi All,
I have a requirement where in i need to create a flat file in append mode . The requirement is as follows :
- In a week , SAP sends certain number of IDOCs to XI . For the first IDOC that comes in ,XI has create a file and later for the rest of the IDOCs ,XI just has to append the file contents .
- During the End of the week , the target system picks this file for processing.
My file structure is as follows:
Header
seg1
seg2
seg2
seg3
seg3
seg1
seg2
seg2
seg3
seg3
Trailer.
So ,while creating a file in append mode , is there any way apart from creating one more interface to pick the finally created file , i can make sure that the file gets written in the above format without header and trailer getting repeated.
Regards
Vinay P.

Hi, Vinay
If you don't want to use a new interface, you can use a operating system command in your target communication channel..
The OS script must:
pick up only one header line and move it to a temporal file. For example, with UNIX command you can do that with
        grep "criteria" file | head -1 > temporal_file
pick up each detail line and move it to the temporal file.
pick up only  the last trailer line and move it to the temporal file
Rename temporal file to final flat file.
Regards,
Carme.

Similar Messages

  • Creating file in append mode

    Hi All,
    I have below problem, please let me know your views.
    I have requirement to trigger huge data using proxy from ECC and create a single file out of it on file server. Since the data is huge, in order to avoid performance issues,  I am planning to trigger multiple message from ECC to XI. Say after every 2000 records are processed, proxy message will be triggered to XI and the program will continue execution.
    Now my problem is on the receiver side I need a single file to be created out of all the messages triggered from ECC during a single run. This i think can be done using File adapter in "Append" mode.
    However the problem is, data will contain 1 Header record and multiple Item records. In append mode the Header record will be appended multiple times in the file which is not desirable.
    Is there any way to avoid this?
    Is there any other approach that is feasible in this case where in I need to extract large data from ECC using proxy program and write it to a single file?
    Thanks for your help.
    Anand

    Hi Anand,
    I also faced this requirement and solved successfullyby using CREATEIF node function. Please follow below approach...
    So your proxy will send several files which you need to create as single file at receiver side. First file only has to create with header. So for this The proxy data which is coming first time should have header data, now compare in mapping whether header data coming in sender proxy data or not. If Header data coming then by using CREATEIF node function, create the target header structure in mapping(target header structure should have 0..1 occurance). If header data is not coming in sender proxy(this is not first proxy execution as it is not having header data) CREATEIF node function doesnt create the target header structure.
                    In receiver file adapter select append mode so that first time file will create with header as CREATEIF node function create the target structure and for the next executions of proxy it will create only data records.
    thanks,
    madhu

  • Open file in append mode

    I am using JSR-75 for file IO. How can i open a file for writing in append mode?

    Don't create multple threads on the same topic:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=505132&tstart=0&trange=30
    Now people don't know which thread is the active thread or which one they should respond to.

  • File in appending mode

    hi all
    when i try to write to a file i just have the last line added and the pervoiuse ones are overwritten
    how can i keep everything added to the file appear??
    what is the appending mode for the file to keep accumelating things rather than overwrite them??

    ok here you are
         PrintWriter outT=
                        new PrintWriter(     
                          new BufferedWriter(
                                  new OutputStreamWriter(
                                          new FileOutputStream("D:/eng.txt"),
                                          enc)) );
               outT.close();
    //These   appending mode
               outT = new PrintWriter(     
                          new BufferedWriter(
                                  new OutputStreamWriter(
                                          new FileOutputStream("D:/eng.txt",true),
                                          enc)) );maybe the problem is with the menu?? cos each time i use getSelectedText() and then i add the selected text to the file and after another select also i want to keep it in the same file
    so select add then select add and so on but each time i just have the last choosen text
    what is your suggestion now????

  • Download created XML File in batch mode // Parse XML file into single lines

    Hello!
    I upload a CSV file and based on that CSV file I create an XML "object". First I uploaded and downloaded it via gui frontendclass, but as it has to be run in a batch in the night I need to upload and download the data via OPEN DATASET.
    The import and transformation of the CSV file works fine, also the transfer into an itab with the same structure as a CSV line is ok. I also create the XML file, which could be downloaded easily with gui-download but it is not permittet.
    Import of data: I scan the folder and get the filenames into a itab, I loop over that itab and read the single files like this:
         OPEN DATASET ls_convert_batch FOR INPUT IN TEXT MODE ENCODING DEFAULT.
          CLEAR tab.
          IF sy-subrc = 0.
            DO.
              READ DATASET ls_convert_batch INTO line.
              IF sy-subrc <> 0.
                EXIT.
              ELSE.
                CLEAR tmptab.
                SPLIT line AT ';' INTO  tmptab-product
                                        tmptab-contract
                                        tmptab-extagent.
                APPEND tmptab TO tab.
              ENDIF.
            ENDDO.
          ENDIF.
    The XML file has a strucutre like
    <file>
    - <file formant_no="1.1" format_date="02.10.2003">
      <status>V</status>
      <number>001001025</numbner>
      <name>Schmeisser,Christof</name>
    - <details>
    -    <detail>
             <contract>00000003494</contract>
             <name>Schmeisser, Christof</name>
             <invoice_no>000000003840</invoice_no>
             <due_date>20100601</due_date>
             <amount>140,00</amount>
         </detail>
    -    <detail>
             <contract>00000003495</contract>
             <name>Schmeisser, Christof</name>
             <invoice_no>000000003841</invoice_no>
             <due_date>20100601</due_date>
             <amount>130,00</amount>
         </detail>
    - </details>
    <elements>2</elements>
    <amount_overall>270</amount_overall>
    </file>
    At the moment I download it like this:
    CALL METHOD cl_gui_frontend_services=>gui_download
            EXPORTING
              bin_filesize = l_xml_size
              filename     = filename
              filetype     = 'BIN'
    *        CONFIRM_OVERWRITE = '0'
            CHANGING
              data_tab     = l_xml_table
            EXCEPTIONS
              OTHERS       = 24.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                       WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ELSEIF sy-subrc = 0.
            lv_create_counter = lv_create_counter + 1.
          ENDIF.
    But I need to download it via OPEN TRANSFER CLOSE Dataset as it has to run in batch mode.
    Anyone has an idea? I am really desperate here. One idea would be to parse the single lines into a string and then create the XML file line by line as text and save it with ending XML, should work. But I don't know how!
    Thank you very much in advance,
    kind regards from Tallinn, Estonia,
    Christof!
    Edited by: Christof Schmeisser on Nov 25, 2010 7:51 PM
    I edited the heading, would be too general and missleading!

    Tipos Pools
    TYPE-POOLS: ixml.
    CLASS cl_ixml DEFINITION LOAD.
    TYPES: BEGIN OF xml_node_type,
             node   TYPE char50,
             vlnode TYPE string,
           END OF xml_node_type,
           BEGIN OF xml_line_type,
             data(256) TYPE x,
           END OF xml_line_type.
    Tabelas Internas
    DATA: ti_xml_node        TYPE TABLE OF xml_node_type.
    Variáveis TYPE REF
    *Type REF para utilizar no XML
    DATA: ixml_type             TYPE REF TO if_ixml,
          streamfactory_type    TYPE REF TO if_ixml_stream_factory,
          ostream_type          TYPE REF TO if_ixml_ostream,
          istream_type          TYPE REF TO if_ixml_istream,
          parser_type           TYPE REF TO if_ixml_parser,
          renderer_type         TYPE REF TO if_ixml_renderer,
          document_type         TYPE REF TO if_ixml_document,
          encoding_type         TYPE REF TO if_ixml_encoding,
          node_type             TYPE REF TO if_ixml_node,
          element_dtrans_type   TYPE REF TO if_ixml_element,
          element_xml_in_type   TYPE REF TO if_ixml_element,
          element_roteiros_type TYPE REF TO if_ixml_element,
          element_roteiro_type  TYPE REF TO if_ixml_element,
          element_vias_type     TYPE REF TO if_ixml_element,
          element_via_type      TYPE REF TO if_ixml_element,
          element_dummy_type    TYPE REF TO if_ixml_element,
          gw_xml_node           TYPE TABLE OF xml_node_type,
          gw_xml_node_ret       TYPE TABLE OF xml_node_type,
          gw_xml_node_err       TYPE TABLE OF xml_node_type,
          gw_xml_node_xml       TYPE TABLE OF xml_node_type,
          gw_xml_table          TYPE TABLE OF xml_line_type,
          gw_xml_table2         TYPE TABLE OF xml_line_type,
          gs_xml_node           TYPE xml_node_type,  "WA para leitura do xml
          gs_xml_node_ret       TYPE xml_node_type,  "WA para leitura do xml retorno
          gs_xml_node_err       TYPE xml_node_type,  "WA para leitura do xml erro
          gs_xml_node_xml       TYPE xml_node_type,  "WA para leitura do xml info sucesso
          gs_xml_table2         TYPE xml_line_type.  "WA para importar xml
    Variáveis do Programa
    DATA: l_value              TYPE string,
          l_rc                 TYPE i,
          l_xml_size           TYPE i,
          cod_cartaorepom      TYPE char20 VALUE '123456789',
          v_caminho_exp        TYPE string VALUE 'C:TEMP',
          v_salvaarquivo       TYPE string,
          v_nomearquivo        TYPE string,
          w_nodetext           TYPE string,
          v_roteiros           TYPE string,
          v_roteiro            TYPE string,
          v_roteiro_codigo     TYPE string,
          v_percurso_codigo    TYPE string,
          v_percurso_descricao TYPE string,
          v_cidade_origem      TYPE string,
          v_estado_origem      TYPE string,
          v_cidade_destino     TYPE string,
          v_estado_destino     TYPE string,
          v_transporte_tipo    TYPE string,
          v_cartao_taxa        TYPE string,
          v_cobra_taxa         TYPE string.
    Constants
    CONSTANTS: cc_39         TYPE string VALUE '39', " Numero 39.
               cc_dt_trans   TYPE string VALUE 'data_transfer'," document_type(name)
               cc_metodo_cod TYPE string VALUE 'metodo_codigo'," document_type(name)
               cc_xml_in     TYPE string VALUE 'xml_in'," document_type(name)
               cc_ct_tx_ativ TYPE string VALUE 'cartao_taxa_ativacao'," document_type(name)
               cc_cartao     TYPE string VALUE 'cartao', " Parâmetro Perform.
               cc_xml        TYPE string VALUE '.XML'," extenção
               cc_bin        TYPE char10 VALUE 'BIN'." filetype
    START-OF-SELECTION.
      PERFORM yf_inicia_criacao_xml USING cc_39.
      element_roteiro_type  = document_type->create_simple_element(
                     name   = cc_ct_tx_ativ
                     parent = element_xml_in_type  ).
      PERFORM yf_dummy_roteiro USING cod_cartaorepom cc_cartao.
      PERFORM yf_finaliza_xml.
      PERFORM yf_exporta_xml USING v_caminho_exp.
      PERFORM yf_convert_xml_to_itab TABLES gw_xml_node_ret
                                      USING v_salvaarquivo.
    END-OF-SELECTION.
    *&      Form  yf_inicia_criacao_xml
          text
         -->VALUE(P_0783)  text
    FORM yf_inicia_criacao_xml USING value(p_0783).
      DATA: s_encoding_type TYPE string VALUE 'ISO-8859-1'.
    Cria o ixml factory
      ixml_type = cl_ixml=>create( ).
    *Cria o objeto com modelo
      document_type = ixml_type->create_document( ).
    *Cria o cabeçalho encoding="iso-8859-1"
      encoding_type = ixml_type->create_encoding( byte_order = 0
                        character_set = s_encoding_type ).
    *Cria o root "DATA_TRANSFER"
      element_dtrans_type = document_type->create_simple_element(
                    name  = cc_dt_trans
                  parent  = document_type ).
    *Cria o node "METODO_CODIGO" e preenche com um valor passado no L_VALUE
      l_value = p_0783.
      CONDENSE l_value.
      element_dummy_type = document_type->create_simple_element(
                    name = cc_metodo_cod
                   value = l_value
                  parent = element_dtrans_type ).
    *Cria o node "XML_IN"
      element_xml_in_type   = document_type->create_simple_element(
                  name   = cc_xml_in
                  parent = element_dtrans_type  ).
    ENDFORM.                    " yf_inicia_criacao_xml
    *&      Form  yf_dummy_roteiro
          text
         -->VALUE(P_0996)  text
         -->VALUE(P_0997)  text
    FORM yf_dummy_roteiro USING value(p_0996)
                                value(p_0997).
      l_value  = p_0996.
      CONDENSE l_value.
      element_dummy_type = document_type->create_simple_element(
                    name = p_0997
                   value = l_value
                  parent = element_roteiro_type ).
    ENDFORM.                    " yf_dummy_roteiro
    *&      Form  yf_finaliza_xml
          text
    FORM yf_finaliza_xml.
    *Cria o stream factory
      streamfactory_type = ixml_type->create_stream_factory( ).
    *Conecta a internal table de XML com o stream factory
      ostream_type = streamfactory_type->create_ostream_itable( table = gw_xml_table  ).
      CALL METHOD ostream_type->set_encoding
        EXPORTING
          encoding = encoding_type.
    *Rendering the document
      renderer_type = ixml_type->create_renderer( ostream  = ostream_type
                                            document = document_type ).
      l_rc = renderer_type->render( ).
    *Salva o documento XML
      l_xml_size = ostream_type->get_num_written_raw( ).
    ENDFORM.                    " yf_finaliza_xml
    *&      Form  yf_exporta_xml
          text
         -->VALUE(P_0783)  text
    FORM yf_exporta_xml USING value(p_0783).
      CONCATENATE cod_cartaorepom
                  sy-datum
                  sy-uzeit
                  cc_xml
             INTO v_nomearquivo.
      CONCATENATE p_0783
                  v_nomearquivo
             INTO v_salvaarquivo.
      TRANSLATE v_nomearquivo TO UPPER CASE.
    *Exporta o XML
      CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
          bin_filesize = l_xml_size
          filename     = v_salvaarquivo
          filetype     = cc_bin
        CHANGING
          data_tab     = gw_xml_table
        EXCEPTIONS
          OTHERS       = 24.
      IF sy-subrc = 0.
       PERFORM yf_sapgui_progress_indicator USING cc_msg_xml_ok.
      ELSE.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " yf_exporta_xml
    *&      Form  yf_convert_xml_to_itab
          text
         -->P_GW_XML_NODE_RET  text
         -->P_FILENAME         text
    FORM yf_convert_xml_to_itab  TABLES p_gw_xml_node_ret LIKE gw_xml_node
                                USING  p_filename.
      DATA l_count.
      ixml_type = cl_ixml=>create( ).
    Now Create Stream Factory
      streamfactory_type = ixml_type->create_stream_factory( ).
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename   = p_filename
          filetype   = cc_bin
        IMPORTING
          filelength = l_xml_size
        CHANGING
          data_tab   = gw_xml_table2
        EXCEPTIONS
          OTHERS     = 19.
      IF sy-subrc = 0.
        istream_type = streamfactory_type->create_istream_itable( table = gw_xml_table2
                                                            size  = l_xml_size ).
        document_type = ixml_type->create_document( ).
        parser_type = ixml_type->create_parser( stream_factory = streamfactory_type
                                         istream         = istream_type
                                         document        = document_type ).
        IF parser_type->parse( ) NE 0.
          IF parser_type->num_errors( ) NE 0.
            l_count = parser_type->num_errors( ).
          ENDIF.
        ENDIF.
        CALL METHOD istream_type->close( ).
        CLEAR istream_type.
        node_type = document_type.
        PERFORM yf_get_data USING node_type.
        p_gw_xml_node_ret[] = gw_xml_node[].
        CLEAR gw_xml_node[].
      ENDIF.
    ENDFORM.                    " yf_convert_xml_to_itab
    *&      Form  yf_get_data
          text
         -->VALUE(X_NODE)  text
    FORM yf_get_data    USING value(x_node) TYPE REF TO if_ixml_node.
      DATA: indent      TYPE i.
      DATA: ptext       TYPE REF TO if_ixml_text.
      DATA: string      TYPE string.
      DATA: temp_string(100).
      CASE x_node->get_type( ).
        WHEN if_ixml_node=>co_node_element.
          string = x_node->get_name( ).
          w_nodetext = string.
          CLEAR string.
          string = x_node->get_value( ).
          IF NOT w_nodetext IS INITIAL OR
             NOT string IS INITIAL.
            gs_xml_node-node   = w_nodetext.
            gs_xml_node-vlnode = string.
            IF NOT gs_xml_node-vlnode IS INITIAL.
              APPEND gs_xml_node TO gw_xml_node.
              CLEAR  gs_xml_node.
            ENDIF.
          ENDIF.
      ENDCASE.
    Get the next child
      x_node = x_node->get_first_child( ).
    Recurse
      WHILE NOT x_node IS INITIAL.
        PERFORM yf_get_data USING x_node.
        x_node = x_node->get_next( ).
      ENDWHILE.
    ENDFORM.                    "yf_get_data

  • Open file in append mode in JSP

    Hi;
    I am using the java.io.* import attribute in my jsp page and I can write to a txt file, bvut it overwrites on the older file. How do I append to the file, here is my code
    import="java.io.*" %>
    <%
    File fileObject = new File("C:/db/data.txt");
    fileObject.createNewFile();
    FileOutputStream fileStream = new FileOutputStream(fileObject);
    DataOutputStream dataStream = new DataOutputStream(fileStream);
    dataStream.writeChars("Line one\n\r");
    dataStream.writeChars("Line two\n\r");
    dataStream.close();
    out.print("The new file has been created <br>");
    %>
    </body>
    Appreciate help!!! Thanks
    lakshmi

    Go and read the API for java.io
    Use the alternate constructor, which takes a boolean parameter, saying whether to append to the file.
    ie
    new FileOutputStream(fileObject, true);
    If you are writing a text file, you might consider using a FileWriter rather than a FileOutputStream.
    Cheers,
    evnafets

  • Receiver File adapter Append Mode

    Hi
    I have scenario where i am sending multiple idocs to file ...when i putting the file construction mode to append i can put multiple idoc in to file but i wanna do it on daily basis Means i wanna send the newly crated or changed Idoc on a daily basis to a single file ..
    How can i achieve that
    SV

    Hi
    You can achieve this using dynamic file names.
    Every day different files
    FileName-<DD>-<MMM>
    chk these
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    /people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi
    /people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12
    rgds
    Arun

  • Create temporary file while appending

    Dear experts,
          In the file reciever adapter we have to append to a file for each recordset. But in the reciever side we are not allowed to append. So we were asked to append to a temp file and then create the complete file in the reciever side. How do we do it. Each recordset is a message.
    Thanks,
    Aju

    use the option
    Put File
    If the file is to be created on the server immediately, select Directly.
    If the content is to be gathered in a temporary file first before the final file is put on the server, choose Use Temporary File.
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    and also use append mode

  • Corrupt file error while writting a file in compress mode

    Hello,
    I have a scenario where i am writting data in a file in appending mode with filter 'compress' addition using open dataset, on Al11 for the first set of records it works fine but if this file is accessed again for writting data in next select statement ( its between select endselect),the file is getting corrupted, if i try to open this file corrupt file error come. can someone help.
    Thanks and Regards,
    Gunjan

    Hi Gunjan,
    Unfortunately, you can't do in that way. The behaviour of that OPEN and FILTER 'compress' clause is to create a compacted file, to be read later, but it can be appended... all your writes go to a pipe and when you close the file this is sent to 'compress' program or other filter and than a compacted file is created.
    You can't go back and start inserting again after close it.
    Follow documentation:
    http://help.sap.com/abapdocu_70/en/ABAPOPEN_DATASET_OS_ADDITION.htm
    The addition FILTER must not be used together with the addition AT POSITION or for the access type FOR UPDATE.
    Regards, Fernando Da Ró

  • File Adapter Append issue

    Hi Iam trying to write a write a file in append mode using a file adapter(on a file which already exits)...but it says...file already exists...What might be the issue...?
    Thanks in advance!
    Larry

    Hi Guys,
    I shall explain the issue Iam having...Iam using the File Content Parameters..and the output is a plaint text file(Flat File).We are using Dynamic file configuration to populate the file name as per our requirements.When I dont use the dynamic config...(giving the name in the communication channel) the file is created @ the first time and its getting appended the next time..But when I use the Dynamic Configuration the file is not getting appended and it leaves an error saying the file is already there and cannot be overwritten...
    Please advise!
    Thanks in advance!

  • Output text file in fpga mode

    Hi. I tried to get data from my crio. I started my project with fpga wizard on the getting started window. I created target vi and host vi. In the host vi, I put "file dialog" function to create text data file but it doesn't pop up in the start-up. Can anyone tell me what's wrong with my vi's? I just want to get position and time data.
    untitled 47 is my host vi
    Attachments:
    Quad Ctr.vi ‏1069 KB
    Untitled 47.vi ‏366 KB

    Stick to one thread for the same question.
    http://forums.ni.com/t5/LabVIEW/can-not-create-text-file-in-fpga-mode/td-p/1406470

  • Problem with Append mode in File Receiver

    Hello,
    I am facing some problem with Append Mode in File Receiver.
    In channel config, i have given :
    Construction Mode : Append
    File Type : Text
    Message Protocol : File Content Conversion
    The size of the file which i am trying to send is about 9.5MB.
    I got this error,
    "Recovering from loss of connection to database; message
    loaded into queue by recover job: System Job (Failover Recovery)".
    So, it would seem that there was a loss of connnection to the database    
    while the file was being written.
    Note -  XI successfully recovered from the connection loss and   
    successfully wrote the file, however since the communication channel  
    was set to append, it appended to the partial file that was written   
    before the database connection loss. This is not correct. The file    
    should have been overwritten after the recovery even though the communication
    channel was configured to append.                                     
    Can anyone help me on this regard.
    Thanks,
    Soorya.

    Hi Venkat,
    I would suggest u to split the file in to chunks if u face any problem in processing at a time in append mode and also
    Memory Requirements are must 4 processing huge files:
    Q: Which memory requirements does the File Adapter have? Is there a restriction on the maximum file size it can process?
    A: The maximum file size that can be processed by the File Adapter depends on a number of factors:
    o The most important one is the size of the Java heap, which is shared among all messages processed at a certain point in time. In order to be able to process larger messages without an out of memory error (OOM), it is recommended to increase the size of the available Java heap and/or to reduce the concurrency in the system so that fewer messages are processed in parallel.
    o Another factor negatively influencing the maximum message size in releases up to and including XI 3.0 SP 13 is an enabled charcter set (encoding) conversion if the message type is set to "Text".
    o Using the transport protocol "File Transfer Protocol (FTP)" also uses more memory for processing than the transport protocol "File System (NFS)" (up to and including XI 3.0 SP 13).
    o If the Message Protocol "File Content Conversion" is used in a File Sender channel, consider that not only the size of the input file affects the File Adapter's memory usage, but even more the size of the XML resulting from the conversion, which is usually a few factors larger than the original plain text file.
    To reduce the memory consumption in this scenario, consider configuring the setting "Maximum Recordsets per Message" for the sender channel. This will cause the input file to be split into multiple smaller mesages.
    Plz do refer the following links:
    U may plan the availability of ur communication channel using "Planning Availability Times" feature
    http://help.sap.com/saphelp_nw04/helpdata/en/45/06bd029da31122e10000000a11466f/frameset.htm
    /people/sravya.talanki2/blog/2005/11/29/night-mare-processing-huge-files-in-sap-xi
    hi check the below links for reference
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10748ef7-b2f0-2910-7cb8-c81e7f284af5
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7086f109-aaa7-2a10-0cb5-f69bd2affd2b
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2498bf90-0201-0010-4884-83568752a857
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cc1ec146-0a01-0010-90a9-b1df1d2f346f
    Regards,
    Vinod.

  • Error when creating Oracle12c PDB using DBCA response file in silent mode

    I am getting an Oracle dbca NullPointerException when trying to create a PDB (Pluggable Database) usingdbca response file in silent mode.
    I have a Oracle 12c CDB up and running, listener is also up, $ORACLE_HOME and $ORACLE_SID are also set correctly.
    After database install and creating CDB using response files, I am now trying to create a PDB using dbca response file. Contents of dbca.rsp -
    [GENERAL]
    RESPONSEFILE_VERSION = "12.1.0"
    OPERATION_TYPE = "createPluggableDatabase"
    [CREATEPLUGGABLEDATABASE]
    SOURCEDB = "orcl"
    PDBNAME = "dev"
    CREATEPDBFROM = "DEFAULT"
    PDBADMINUSERNAME = "oracle"
    PDBADMINPASSWORD = "oracle"
    CREATEUSERTABLESPACE = "true" 
    I tried following commands:
    dbca -silent -responseFile /<file path>/dbca.rsp dbca -silent -createPluggableDatabase -responseFile /<file path>/dbca.rsp
    Both give same error:
    ---- Begin output of /u01/app/oracle/product/12c/db_1/bin/dbca -silent -responseFile /<file path>/dbca.rsp
    STDOUT:
    STDERR: Exception in thread "main" java.lang.NullPointerException
    at oracle.sysman.assistants.dbca.backend.CommandLineArguments.processResponseFile(CommandLineArguments.java:6885)
    at oracle.sysman.assistants.dbca.backend.CommandLineArguments.process(CommandLineArguments.java:4544)
    at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:110) at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:184)
    However when I pass exact same parameters as command line arguments, dbca works absolutely fine and PDB is created: Following command runs succefully.
    dbca -silent -createPluggableDatabase -sourceDB orcl -pdbName dev -createPDBFrom default -pdbAdminUserName oracle -pdbAdminPassword oracle -createUserTableSpace true
    My environment need installation using response files only. I had used a dbca response file with "createDatabase" option for CDB and it worked fine. Error is observed only when I run it with OPERATION_TYPE as "createPluggableDatabase".
    There is an option to create PDBs along with CDB creation when OPERATION_TYPE is "createDatabase". But Oracle does not give flexibility to name PDBs in this option. If I ask Oracle to create 3 PDBs, it will name them itself like PDB01, PDB02, PDB03 and so on. This doesn't work in my deployment because of applications compile time dependencies on specific PDB names.

    Yes, I am pointing to correct response file. I have two of these. One for "createDatabase" and another one for "createPluggableDatabase".
    While the first one works absolutely fine, the one which creates PDBs always gives error.
    I tried renaming the response file like dbca_dev.rsp for PDB install but same error message. I read in another forum that rename dbca.rsp is not a good idea.
    So I kept it as dbca.rsp but built it using PDB template.
    When I try after removing -silent, it tries to launch a UI installer. Since I am in Amazon AWS platform, my instance is CentOS based which doesn't support Xwindows display.
    I am stuck with -silent install only. When I try with -progressOnly, I get exactly same error.
    Also tried removing some parameters but still get exact same error message.
    Tried same trick with "createDatabase" response file, now I see parameters missing error message.
    It seems like Oracle doesn't like response file install for "createPluggableDatabase".

  • OBIEE : Newly created rpd file not showing in the online mode in Admin tool

    Hi,
    I have recently installed OBIEE 10.1.3.4.2 and Oracle XE databse in a Windows XP (Professional version 2002 Service Pack 3) virtual machine on my Windows 7 machine.
    1) I have create an rpd file in Admin tool (all three layers). But I can only load this rpd file in offline mode, not in online mode.
    a)Saved the file sanjay1.rpd in c:\OracleBI\server\Repository directory
    b)Updated the c:\OracleBI\server\config\NQSConfig.ini (commented out the existing Star entry and replaced it with Star = sanjay1.rpd, DEFAULT;),
    c)Modified the C:\OracleBIData\web\config\instanceconfig.xml and made change to the CatalogPath entry (<CatalogPath>C:/OracleBIData/web/catalog/sanjay1</CatalogPath>)
    d)Stopped and restarted OC4J, “Oracle BI Presentation Server” and “Oracle BI Server” services.
    But I am still not able to load sanjay1.rpd in the Admin tool in the online mode. It is showing up only in the offline mode. What do I need to do load the file in the online mode.
    2)The existing Start entry in NQSConfig.ini was Star = samplesales.rpd, DEFAULT before I updated it. But samplesales.rpd is not showing up in online mode either. When I am selecting File/Open/Online a popup is coming up with title "Open Online AnalyticsWeb" and prompting to enter Administrator password. I would like to know why samplesales.rpd was not showing up in online mode and where is AnalyticsWeb coming from.
    Thanks
    Sanjay

    Dear Muram,
    Is did not work.
    1)Wihile the servers were running I opened the rpd in offline mode. It displayed the message the file can only be opened in the Read-Only mode. I accepted the message, opened the file and clsoed it and exited from Admin tool. I stopped the 2 services “Oracle BI Presentation Server” and “Oracle BI Server” in that order, and restrated them in the reverse order. In the admin tool it is still showing in the offline mode only
    2)I have as such no interest in AnalyticsWeb that is showing in the online mode. I did not create it, it must have been installed along with OBIEE. But I am curious where it is coming from. Because A)There is no rpd file for AnalyticsWeb in the Repository Directory B)Before I edited the NQSConfig.ini the default setting was samplesales.rpd. So AnalyticsWeb was never included in the NQSConfig.ini file C) samplesales.rpd was included in the NQSConfig.ini once, but it never showed up online.
    Thanks
    Sanjay

  • About  "Append mode" of cs6, cc & cc2014 project file in order to insert xml sequence which is sent from 3rd-party tool

    let me ask you all something about  “Append mode” of cs6, cc & cc2014 project file in order to insert multiple xml sequence  which is sent from 3rd-party tool  into specific project file .
    Finalcut pro 7 & x  was supported this , but i am not sure will support this on cs6, cc & cc2014 .
    is this possible ??
    could someone  let me know about this - append mode possible or not ?? 

    let me ask you all something about  “Append mode” of cs6, cc & cc2014 project file in order to insert multiple xml sequence  which is sent from 3rd-party tool  into specific project file .
    Finalcut pro 7 & x  was supported this , but i am not sure will support this on cs6, cc & cc2014 .
    is this possible ??
    could someone  let me know about this - append mode possible or not ?? 

Maybe you are looking for

  • Print report in Thai and English Characters

    Hi , I able to enter Thai characters from front end but at backend(database) it looks like this '¿¿¿' .someone has any idea why is it so? Also, I am using some logic to print amount in words in oracle report builder 6i.Our client requirement is to pr

  • How to load a background Image on a JDialog object

    Hi All, Actually i am new to java programing and i am stuck in this problem. I am developing a java application which is dialog based (using JDialog objects) and i want to load a background image on my dialog. I hope this could be done and i really a

  • WBS settle to AUC in error

    We have a WBS element that was set up incorrectly to settle to an AUC asset. As a result, there has already been settlement activity (CJ8G) in past, closed fiscal years. So now we have an AUC asset that should not exist. I have been reading other iss

  • Example for LVUserEvent

    Hi, I am looking for examples for using LVUserEvent. In found this: http://zone.ni.com/devzone/cda/epd/p/id/1480 but the zip-archive is not including any vi, only c-code and the dll, so I have difficulties to understand how it works. I am looking for

  • ASM_PREFERRED_READ_FAILURE_GROUPS

    Hi, the ASM_PREFERRED_READ_FAILURE_GROUPS parameters is very useful for exented/streched Cluster to minise the traffic between all the extende Node. In the same idea and to design extended cluster with Exadata somebody have any idea of parameter insi