Export - date in filename

hi all,
i need to export some tables in several days and i'd like to have file like common_date.dmp
i'm in windows env
any idea??

type them in by hand.
Sorry but that's what happens when you choose to use obsolete and deprecated tools.
On the other hand if you use DataPump via the built-in DBMS_DATAPUMP package you can do anything you want.
http://www.morganslibrary.org/reference/dbms_datapump.html
There are export and import demos at page bottom.

Similar Messages

  • Help needed with Export Data Pump using API

    Hi All,
    Am trying to do an export data pump feature using the API.
    while the export as well as import works fine from the command line, its failing with the API.
    This is the command line program:
    expdp pxperf/dba@APPN QUERY=dev_pool_data:\"WHERE TIME_NUM > 1204884480100\" DUMPFILE=EXP_DEV.dmp tables=PXPERF.dev_pool_data
    Could you help me how should i achieve the same as above in Oracle Data Pump API
    DECLARE
    h1 NUMBER;
    h1 := dbms_datapump.open('EXPORT','TABLE',NULL,'DP_EXAMPLE10','LATEST');
    dbms_datapump.add_file(h1,'example3.dmp','DATA_PUMP_TEST',NULL,1);
    dbms_datapump.add_file(h1,'example3_dump.log','DATA_PUMP_TEST',NULL,3);
    dbms_datapump.metadata_filter(h1,'NAME_LIST','(''DEV_POOL_DATA'')');
    END;
    Also in the API i want to know how to export and import multiple tables (selective tables only) using one single criteria like "WHERE TIME_NUM > 1204884480100\"

    Yes, I have read the Oracle doc.
    I was able to proceed as below: but it gives error.
    ============================================================
    SQL> SET SERVEROUTPUT ON SIZE 1000000
    SQL> DECLARE
    2 l_dp_handle NUMBER;
    3 l_last_job_state VARCHAR2(30) := 'UNDEFINED';
    4 l_job_state VARCHAR2(30) := 'UNDEFINED';
    5 l_sts KU$_STATUS;
    6 BEGIN
    7 l_dp_handle := DBMS_DATAPUMP.open(
    8 operation => 'EXPORT',
    9 job_mode => 'TABLE',
    10 remote_link => NULL,
    11 job_name => '1835_XP_EXPORT',
    12 version => 'LATEST');
    13
    14 DBMS_DATAPUMP.add_file(
    15 handle => l_dp_handle,
    16 filename => 'x1835_XP_EXPORT.dmp',
    17 directory => 'DATA_PUMP_DIR');
    18
    19 DBMS_DATAPUMP.add_file(
    20 handle => l_dp_handle,
    21 filename => 'x1835_XP_EXPORT.log',
    22 directory => 'DATA_PUMP_DIR',
    23 filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
    24
    25 DBMS_DATAPUMP.data_filter(
    26 handle => l_dp_handle,
    27 name => 'SUBQUERY',
    28 value => '(where "XP_TIME_NUM > 1204884480100")',
    29 table_name => 'ldev_perf_data',
    30 schema_name => 'XPSLPERF'
    31 );
    32
    33 DBMS_DATAPUMP.start_job(l_dp_handle);
    34
    35 DBMS_DATAPUMP.detach(l_dp_handle);
    36 END;
    37 /
    DECLARE
    ERROR at line 1:
    ORA-39001: invalid argument value
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 3043
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 3688
    ORA-06512: at line 25
    ============================================================
    i have a table called LDEV_PERF_DATA and its in schema XPSLPERF.
    value => '(where "XP_TIME_NUM > 1204884480100")',above is the condition i want to filter the data.
    However, the below snippet works fine.
    ============================================================
    SET SERVEROUTPUT ON SIZE 1000000
    DECLARE
    l_dp_handle NUMBER;
    l_last_job_state VARCHAR2(30) := 'UNDEFINED';
    l_job_state VARCHAR2(30) := 'UNDEFINED';
    l_sts KU$_STATUS;
    BEGIN
    l_dp_handle := DBMS_DATAPUMP.open(
    operation => 'EXPORT',
    job_mode => 'SCHEMA',
    remote_link => NULL,
    job_name => 'ldev_may20',
    version => 'LATEST');
    DBMS_DATAPUMP.add_file(
    handle => l_dp_handle,
    filename => 'ldev_may20.dmp',
    directory => 'DATA_PUMP_DIR');
    DBMS_DATAPUMP.add_file(
    handle => l_dp_handle,
    filename => 'ldev_may20.log',
    directory => 'DATA_PUMP_DIR',
    filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
    DBMS_DATAPUMP.start_job(l_dp_handle);
    DBMS_DATAPUMP.detach(l_dp_handle);
    END;
    ============================================================
    I dont want to export all contents as the above, but want to export data based on some conditions and only on selective tables.
    Any help is highly appreciated.

  • Exporting data from table to Excel in a particular format using BSP.

    Hello all,
          I am creating a application in BSP  wherein i have to export data to excel sheet.
      I am able to do that but the output in excel sheet is not formatted. it is displaying the data in a single 
    column. For example, the internal table which i am exporting to excel contains fields "product
    name", "area name", country name", "values". all these should be displayed in different columns.How 
    can i achieve this functionality.A sample code will be of great help..
    Below is the code i hav written for exporting to excel :
         data: l_len type i,
               l_string type string,
               app_type type string,
               file_content type xstring,
               file_mime_type type string.
         create OBJECT cached_response TYPE cl_http_response EXPORTING add_c_msg = 1.
         cached_response->set_data( file_content ).
         cached_response->set_header_field(
                          name = if_http_header_fields=>content_type
                          value = file_mime_type ).
    LOOP AT itab_xls INTO wa_xls.
       CONCATENATE L_STRING wa_xls-product_name
       wa_xls-area_name
       wa_xls-landx
       CL_ABAP_CHAR_UTILITIES=>CR_LF INTO L_STRING SEPARATED BY SPACE.
    ENDLOOP.
      APP_TYPE = 'APPLICATION/MSEXCEL; charset=utf-16le'.
      data: l_xstring type xstring.
    call function 'SCMS_STRING_TO_XSTRING'
        exporting
          text = l_string
          MIMETYPE = 'APPLICATION/MSEXCEL; charset=utf-16le'
        IMPORTING
          BUFFER = l_xstring.
    Add the Byte Order Mark - UTF-16 Little Endian
      concatenate  cl_abap_char_utilities=>byte_order_mark_little
                   l_xstring
                   into l_xstring in byte mode.
       cached_response->set_data( l_xstring ).
       cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                         value = 'APPLICATION/MSEXCEL; charset=utf-16le' ).
    *Set the filename into the response header
       cached_response->set_header_field( name  = 'Content-Disposition'
                                  value = 'attachment; filename=gkb_excel.xls' ).
    *Set the Response Status
       cached_response->set_status( code = 200 reason = 'OK' ).
    *Set the Cache Timeout - 60 seconds - we only need this in the cache
    *long enough to build the page and allow the IFrame on the Client to request it.
       cached_response->server_cache_expire_rel( expires_rel = 60 ).
        CALL FUNCTION 'GUID_CREATE'
        IMPORTING
          ev_guid_32 = guid.
        CONCATENATE runtime->application_url '/' guid '.xls' INTO url.
        cl_http_server=>server_cache_upload( url      = url
                                           response = cached_response ).
    Can anyone help me with some solution.
    Thanks in advance.
    Gurmahima.

    the issue is here
    LOOP AT itab_xls INTO wa_xls.
    CONCATENATE L_STRING wa_xls-product_name
    wa_xls-area_name
    wa_xls-landx
    CL_ABAP_CHAR_UTILITIES=>CR_LF INTO L_STRING SEPARATED BY SPACE.
    ENDLOOP.
    instead do the following
    LOOP AT itab_xls INTO wa_xls.
    CONCATENATE L_STRING wa_xls-product_name ','
    wa_xls-area_name  ','
    wa_xls-landx  ','
    CL_ABAP_CHAR_UTILITIES=>CR_LF INTO L_STRING .
    ENDLOOP.
    and then change the file name extension from xls to csv. it should open properly in excel.
    Note that this is only excel csv file. if you want a proper excel excel file, then
    option one: build a html table with your data into a string and pass it to excel
    option 2: build excel xml using your data into a string and pass it to excel.
    Regards
    Raja

  • Export data from an iView to Excel, get a login screen displayed in Excel

    Hi
    I'm trying to export data from a tableview to excel, I followed the instruction posted by Detlev Beutner, created a class extends AbstractPortalComponent, and overwrote the doOnNodeReady:
    HttpServletResponse response = request.getServletResponse(true);
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-Disposition", "filename=\"text.xls\"");
    I did write some test output in doContent:
             aResponse.write("Filed11,Filed12,Field13");
             aResponse.write("Field21,Field22,Field23");
    I was hoping to see the excel to display the content "Field11 Field12...", but I got a portal login screen displayed in Excel.
    Does anyone have the same experience and and idea on this?
    Thanks
    Yutong

    Sure, here is the sample code for method doOnNodeReady
    protected void doOnNodeReady(IPortalComponentRequest request,
          IEvent event)
      //set http content type to excel format
      HttpServletResponse response = request.getServletResponse(true);
      response.setContentType("application/vnd.ms-excel");
      response.setHeader("Content-Disposition", "attachement;filename=\"abc.xls\"");
      java.io.PrintWriter out = response.getWriter();
      // print out the header
      out.print(headerSubject + "\t");
      out.print(headerDueDate + "\t");
      // then print out your data
      out.close();

  • Export data to Excel

    Hello All,
                I am trying to export data to Excel from a report output. Its a simple report. I have tried the below FM
    CALL FUNCTION 'RH_START_EXCEL_WITH_DATA'
    EXPORTING
      DATA_FILENAME             =
      DATA_PATH_FLAG            = 'W'
      DATA_ENVIRONMENT          =
      DATA_TABLE                =
      MACRO_FILENAME            =
      MACRO_PATH_FLAG           = 'E'
      MACRO_ENVIRONMENT         =
      WAIT                      = 'X'
      DELETE_FILE               = 'X'
    EXCEPTIONS
      NO_BATCH                  = 1
      EXCEL_NOT_INSTALLED       = 2
      INTERNAL_ERROR            = 3
      CANCELLED                 = 4
      DOWNLOAD_ERROR            = 5
      NO_AUTHORITY              = 6
      FILE_NOT_DELETED          = 7
      OTHERS                    = 8
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    This FM when executed without passing any data is able to open an empty excel sheet but when I try to pass an internal table to DATA_TABLE  its giving a dump. The run time error is CALL_FUNCTION_CONFLICT_TYPE.
    Error:
    **"The function module interface allows you to specify only fields      
    of a particular type under "TABNAME". The field "ITAB1" specified here
    has a different field type."**
    Please let me know if Im missing something.
    Thanks in advance.

    Hi SAP,
    Simply List -> Save -> File -> spreadsheet -> file.xls
    Or check this weblog..
    <a href="/people/dennis.vandenbroek/blog/2007/02/14/simple-function-module-to-export-any-internal-table-to-ms-excel:///people/dennis.vandenbroek/blog/2007/02/14/simple-function-module-to-export-any-internal-table-to-ms-excel
    or
    try this code..
    DATA : file_name TYPE ibipparms-path,
    lc_filename TYPE string.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    PROGRAM_NAME = SYST-CPROG
    DYNPRO_NUMBER = SYST-DYNNR
    FIELD_NAME = ' '
    IMPORTING
    file_name = file_name .
    lc_filename = file_name.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE =
    filename = lc_filename
    filetype = 'DAT'
    TABLES
    data_tab = gt_itab.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Revert back for more help
    Reward points if helpful
    Regards
    Naresh

  • Problem in exporting data to excel in nwds 7.3

    Hi All,
    I was using the following code for exporting data to excel in NWDS 7.3
    private IWDCachedWebResource getCachedWebResource(byte[] file, String name,
    WDWebResourceType type) {
    IWDCachedWebResource cachedWebResource = null;
    if (file != null) {
    cachedWebResource = WDWebResource.getWebResource(file, type);
    cachedWebResource.setResourceName(name);
    return cachedWebResource;
    I was getting the error in the following line cachedWebResource = WDWebResource.getWebResource(file, type); when I clicked the quick help it ststed the getWebResource method is depricated.  Kindly provide some assistance on what is the new method in its place.
    Thank you
    Regards,
    Preet Kaur

    Hi Ganesh,
    Thanks that worked fine, but when we go further we are facing problem ie
    byte[] excelXMLFile;
    IWDCachedWebResource cachedExcelResource = null;
    String fileName = dataNode.getNodeInfo().getName() + ".xls";
    try {
    // create Excel 2003 XML data as a byte array for the given context node,
    // attributes and headers
    excelXMLFile = toExcel(dataNode, columnInfos).getBytes("UTF-8");
    // create a cached Web Dynpro XLS resource for the given byte array
    // and filename
    cachedExcelResource = getCachedWebResource(
    excelXMLFile, fileName, WDWebResourceType.XLS);
    // Store URL and file name of cached Excel resource in context.
    if (cachedExcelResource != null) {
    wdContext.currentContextElement().setExcelFileURL(
    cachedExcelResource.getURL());
    wdContext.currentContextElement().setExcelFileName(
    cachedExcelResource.getResourceName());
    // Open popup window with a link to the cached Excel file Web resource.
    openExcelLinkPopup();
    } else {
    wdComponentAPI.getMessageManager().reportException(
    "Failed to create Excel file from table!", true);
    } catch (UnsupportedEncodingException e) {
    wdComponentAPI.getMessageManager().reportException(
    e.getLocalizedMessage(), true);
    } catch (WDURLException e) {
    wdComponentAPI.getMessageManager().reportException(
    e.getLocalizedMessage(), true);
    The above bold lines also would need to be converted to inputstream, but not sure how to correct that
    We are following the below pdf for the implementation.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/edc2f3c2-0401-0010-8898-acd5b6a94353?QuickLink=index&overridelayout=true
    Thank you
    Regards,
    Jaspreet Kaur

  • Exporting data into text file

    Hi!
    I use this process in apex to export data from table into txt files with fixed length, so without any delimeter
    >
    declare
    v_file_name VARCHAR2 (2000) := 'test.txt';
    id varchar2(9);
    worker varchar2(30);
    address varchar2(26);
    begin
    OWA_UTIL.mime_header ('application/txt', FALSE);
    htp.p('Content-Disposition:attachment;filename="'|| v_file_name|| '"');
    OWA_UTIL.http_header_close;
    FOR x in (select id id from workers where col00 like '1000')
    LOOP
    select col01,col02,col03 into id, worker, addressfrom un_web_prenosi where id = x.id;
    htp.p(id||worker||address);
    END LOOP;
    apex_application.g_unrecoverable_error:=true;
    exception when others then
    null;
    end;
    and I have problem, because if I open file with notepad is everything in one line, but if I open file in notepad++ or I copy content of file in word then I see contents just like it should be (each record in one line). Do you know how can I solve this problem?

    I solved my problem. I forget to put chr(13) into htp.p(id||worker||address); so this line must be like htp.p(id||worker||address||chr(13));

  • How to export data to an excel by preserving styles

    Hi All,
    I am trying to export data to an excel using ColdFusion. Below is my code.
    <cfheader name="content-disposition" value="attachment; filename=dashboard.xls">
    <cfcontent type="application/msexcel">
    <table width="200" border="1">
      <tr>
        <td width="40"> </td>
        <td width="160">
          <table width="160" border="1">
          <tr>
            <td width="20" bgcolor="red"> </td><td width="20" bgcolor="black"> </td><td width="20" bgcolor="red"> </td><td width="20" bgcolor="black"> </td>
            <td width="20" bgcolor="red"> </td><td width="20" bgcolor="black"> </td><td width="20" bgcolor="red"> </td><td width="20" bgcolor="black"> </td>
          </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td width="40"> </td>
       <td width="160">
          <table width="160" border="1">
          <tr>
            <td width="20" bgcolor="red"> </td><td width="20" bgcolor="black"> </td><td width="20" bgcolor="red"> </td><td width="20" bgcolor="black"> </td>
            <td width="20" bgcolor="red"> </td><td width="20" bgcolor="black"> </td><td width="20" bgcolor="red"> </td><td width="20" bgcolor="black"> </td>
          </tr>
          </table>
        </td>
      </tr>
    </table>
    When I try to execute above code by commenting <cfheader><cfcontent> then the output is perfect. styles are preserved. And when I uncomment <cfheader><cfcontent> and execute code, then an excel file will get open. But all the styles are lost. So how to preserve all styles(table width etc.) in excel.
    Can anybody please assist me on this. Thanks in advance.
    Regards,
    Manoz.

    I copied your code and did the test. Result: no problem.
    However, I used the following table data in my test. Did you use any data in yours? To fully test an HTML table, you have to put in some data.
    <!--- <cfheader name="content-disposition" value="attachment; filename=dashboard.xls">
    <cfcontent type="application/vnd.ms-excel"> --->
    <table width="200" border="1">
      <tr>
        <td width="40">xxx</td>
        <td width="160">
          <table width="160" border="1">
          <tr>
            <td width="20" bgcolor="red">AAA</td><td width="20" bgcolor="black">ccc</td><td width="20" bgcolor="red">eee</td><td width="20" bgcolor="black">ggg</td>
            <td width="20" bgcolor="red">&n b s p;</td><td width="20" bgcolor="black">ddd</td><td width="20" bgcolor="red">fff</td><td width="20" bgcolor="black">hhh</td>
          </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td width="40">yyy</td>
       <td width="160">
          <table width="160" border="1">
          <tr>
            <td width="20" bgcolor="red">111</td><td width="20" bgcolor="black">333</td><td width="20" bgcolor="red">555</td><td width="20" bgcolor="black">&n b s p;</td>
            <td width="20" bgcolor="red">222</td><td width="20" bgcolor="black">444</td><td width="20" bgcolor="red">666</td><td width="20" bgcolor="black">888</td>
          </tr>
          </table>
        </td>
      </tr>
    </table>
    Two other things to note. First, I have used &n b s p; for empty table-data. Secondly, though the MIME type you have used for excel might work, the correct  value is application/vnd.ms-excel.

  • Export data from forms to excel

    HI
    In my application im trying to export data from forms to excel.Everything works fine.First of all im using get_file_name for selecttion of file and passing it to ole2 package as follows
    FILENAME := GET_FILE_NAME(File_Filter=> 'XLS Files (*.xls)|*.xls|',dialog_type=>SAVE_FILE);
         ARGS:=OLE2.CREATE_ARGLIST;
         oLE2.ADD_ARG(ARGS,Filename);
         OLE2.INVOKE(WORKSHEET,'SAVEAS',ARGS);
    The problem is if i select an existing file the get_file_name itself raises one message ".....file already exists Replace an existing file?"
    Similarly the excel also also raises the same message "".....file already exists Replace an existing file?".I want to suppress atleast one of them? Could anyone help for this problem?
    appreciate ur help
    THANKS

    Looks like...
    ole2.set_property( ex_app, 'DisplayAlerts', false );
    where "ex_app" variable Excel Application -
         ex_app:=     ole2.create_obj('Excel.Application');
    and more Question:
    When i close excel app - in process viewer i see "excel.exe"
    ole2.release_obj don't work :(

  • Export data to CSV in SQL Server

    Hi,
    I am trying to write a Java JDBC program exporting data
    from the database into CSV file using SQL Server 2005 DB.
    From that query:
    String="SELECT * into OUTFILE '"+filename+'" FIELDS TERMINATED BY ',' FROM table1";
    getting: "SQLException: Incorrect syntax near 'myfilename.csv'
    Yes, I put filename in single quotes. Same problem without them, but it strips out csv file extension.
    Using JTDS driver 1.2.4 on WinXP.
    Will later need to insert that into a batch process.
    What is a reason for that error? - I saw many many posts on the net, but no good explanations so far.
    So how do I fix that ?
    Is there a better way of doing it in SQL server ?
    I am a Java developer, not a DBA or Unix Sys Admin ;-)
    Please help !
    TIA,
    Oleg.

    Here is one way to do it in Java. You can customize as you like. Do a Google on how to get a DataSource (or DriverManager) connection for SqlServer. If you do not know how to get a PrintWriter, you do something like:
    PrintWriter writer = new PrintWriter(new FileOutputStream('results.csv");This will generate a generic CSV. It is probably not ideal, but should get you started.
        public final void serialize(final DataSource ds, final String sql, final PrintWriter writer)
            throws SQLException {
            Connection conn = null;
            PreparedStatement stmt = null;
            ResultSet results = null;
            try {
                conn = ds.getConnection();
                stmt = conn.prepareStatement(sql);
                results = stmt.executeQuery();
                ResultSetMetaData meta = results.getMetaData();
                int columnCount = meta.getColumnCount();
                while (results.next()) {
                    for (int current = 0; current < columnCount; current++) {
                        Object value = results.getObject(current + 1);
                        if (current > 0) {
                            writer.print(", ");
                        writer.print("\"" + (value == null ? "" : value.toString()) + "\"");
                    writer.println();
                writer.flush();
            finally {
                if (results != null) {
                    try {
                        results.close();
                    catch (SQLException e) {
                        e.printStackTrace();
                if (stmt != null) {
                    try {
                        stmt.close();
                    catch (SQLException e) {
                        e.printStackTrace();
                if (conn != null) {
                    try {
                        conn.close();
                    catch (SQLException e) {
                        e.printStackTrace();
        }My advice is to use BCP to start. The docs for the tool are here: [http://msdn.microsoft.com/en-us/library/aa174646(SQL.80).aspx]. You can manipulate the results in Access or Excel if you need to. Since it seems you are being thrown into an emergency and getting it fast is more important than you spending months learning additional Java API's.
    - Saish

  • Export data form JTable to excel

    Hi! i want to export data from JTable to excel.
    could you help me please?

    Despite your question looks doesn't seems to be very complex, I feel pity I am a newbie can not offer you the answers. I am more familiar with exporting data to excel in C#. I've worked with a Data Grid control, just like the JTable. Here are some C# code example. Maybe you can take them as a kind of reference.
    ExportToExcelML exporter = new ExportToExcelML(this.ketticGridView1);
    exporter.HiddenColumnOption = Kettic.WinForm.UI.Export.HiddenOption.DoNotExport;
    exporter.ExportVisualSettings = true;
    exporter.SheetMaxRows = ExcelMaxRows._1048576;
    exporter.SheetName = "NewSheet";
    exporter.SummariesExportOption = SummariesOption.DoNotExport;
    string fileName = "C:\\ExportedGridData1.xls";
    exporter.RunExport(fileName);

  • Exporting data

    Hi all
    I am trying to export a cube into a text file for archiving purposes. I am using application manager 6.5.3.
    I click on Database > Export and select 'All data', tick the Export in Column Format button and type in the pathway of a location on my c:\ drive. I then get the error
    "Ascii Backup:Failed to open [C:\xxxxxxx].
    From having a quick browse of the forums it appears that you can only ecport in this fashion to the actual server essbase is installed on, so I tried just putting the filename in the Server File Name and that seems to work.
    However, being a relative essbase virgin I'm not sure where the file actaully goes on the server! Can anyone help, ideally I would like a way I can export cubes directly to my C:\drive as txt files but if there is a simple workround that would be great as well.
    Thanks in advance
    Kryz

    Hi,
    The tech ref I believe has enough information to get you started :- http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/techref.htm
    I know it is for 9.3.1 but in the maxl section there is an overview of what is new in each version so you don't try and use a command that is not available in the version you are using.
    Have a look at the export data command.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Export data forms from unix

    Hi,
    we have installed planning in Unix,Can any body help on, how to export data forms?
    we have tried to export as normal way...but its not wrking....see below wt it is giving after enter the correct format...
    server(user):./FormDefUtil.sh export "Form1" localhost admin passwrd TestApp
    Usage: HspFormDefUtil <import/export> <filename/formname/-all> <server> <username> <password> <application>
    Please help on it....
    Note: i heard that we can't run from unix box? if it is correct then how can we export the forms?
    Thanks,

    Hi John,
    Thanks for quick reply.
    we are using Planning 9.3.1.1 version.
    Its not updating any log...its just giving like below.....
    just its coming out.that's it. its not updating any log(planning log/FormDefUtil.log)
    server(user):./FormDefUtil.sh export "Form1" localhost admin passwrd TestApp
    Usage: HspFormDefUtil <import/export> <filename/formname/-all> <server> <username> <password> <application>
    server(user):
    Even FormDefUtil.log also not updated anything...
    Please help.

  • Export data with Dreamweaver (TXT, CSV)

    Hi to all of the Adobe community.
    My question to me is a little hard for my level of knowledge.
    I'm using Dreamweaver using technology PHP / MySQL, in my database have a table in MySQL called mailing list, with the fields name and email.
    I have a php page that I developed using the Dynamic Table where it returns me a list of names and e-mail registrations. What I would like to make is that at the end of this table I have a link or a button called export data. I wish that when you export this data be txt or csv format.
    How?
    Export data and further define the format to be exported.
    I'm using Dreamweaver CS4.
    Rodrigo Vieira da Silva Eufrasio
    E-mail: rodrigo.mct @ gmail.com
    Mobile: +55 11 8183-9484
    Brazil - Osasco - SP

    It is doable.
    Assume for the moment that you are not paging the query results (that is, you are display ALL results at one time).
    You would need to do the following when the button is clicked (the action calling a separate file for the processing):
    Open a file on the server for writing ($ofile = fopen("data.txt","w");)
    Repeat your query but instead of echo $row_Record set.... you would use fwrite($ofile, $row_Recordset...
    In between fields you would need fwrite($ofile, "\t") to put in a tab or fwrite($ofile, ",") for a CSV,
    At the end of every line you would need a <cr><lf>: fwrite ($ofile, "\r\n");
    Close the file - fclose ($ofile);
    Then use the header function to force the download of this file like this.
    header('Content-disposition: attachment; filename=data.txt');
    header('Content-type: text');
    readfile('data.txt);
    The header function has to be the first thing sent to the user. Any white space would cause it to fail. I haven't tried this part after a DB query, but it should work. If it doesn't you will have to invoke the header routine in a separate file.
    Hope this helps.
    Barry

  • Exporting Data using exp not working

    I am trying to export data from an applicaion and the vendor gave me a par file to help. Here is my problem.
    This is what I have tried.
    exp \"sys/****@Fieldmgr as SYSDBA\" parfile=fm_export.par
    I get this...
    About to export specified tables via Conventional Path ...
    EXP-00011: SYS.MATSRC does not exist
    EXP-00011: SYS.FIELDS does not exist
    Export terminated successfully with warnings.
    It is prefixing sys. Before everything and that seems to be the problem.
    This is how I have modified the par file.
    FILE="D:\exported\fm43.dmp"
    LOG="D:\exported\fm43_log.log"
    BUFFER=100000
    ROWS=yes
    GRANTS=yes
    INDEXES=yes
    TABLES =(MATSRC,
    FIELDS,
    SETTINGS,
    CHARLARG)
    What is causing the command to prefix sys before the table names and how can I prevent this?
    Thanks,
    Jim

    Too much is missing from your posts.
    1. Can you list both the export.par file and the import.par file. This will help clear things up.
    1) Create a new database (schema & instance) in 10g.
    Not sure what they mean by schema & instance. I've created a new database called Fieldmgr
    This means to create the database and the users. Specifically the user where you want the data to live.
    grant connect,resource to user1_name identified by user1_password;
    2) Modify the export par file as appropriate for your Oracle environment.
    I prefixed fmdb. to the tablenames.You say that you prefixed fmdb to the tablenames. I'm not sure why you did this. The dumpfile has names tab1, tab2, tab3.
    If you said tables=fmdb_tab1, fmdb_tab2, fmdb_tab3. These are not in the dumpfile. The imp utilitye will look for tables called fmdb_tab1, etc and won't find any. This is probably your biggest problem. Don't change the tablenames in the parfile. If you exported
    tables=tab1, tab2, tab3
    You need to import
    tables=tab1, tab2, tab3
    or a subset like:
    tables=tab2
    >
    3) Use the export par file on the disc to create a dump of the 9i database.
    This appeared to work and I got a 63 MB data file which seems about right and there were no warnings or errors.
    4) Modify the import par file for your environment.
    Not sure what to do here other than point to the files. I've already explained what they said here which seems incorrect from your post.
    According to the applicaion vendor I should replace these variables in the import file.
    REM * <fm_source_db> - database the dmp file was from *
    REM * <fm_dest_db> - database to load the dmp file intoThe above 2 parameters are not valid parameters for imp. I would remove them from the parfile.
    FROMUSER=<fm_source_db>
    TOUSER=<fm_dest_db>These 2 parameters are for remapping a schema name. If the source database has a user called source_user1 and you wanted these imported into the target database as targer_user5, then you would use:
    FROMUSER=SOURCE_USER1
    TOUSER=TARGET_USER5
    This would mean that in step 1 above you would use
    grant connect,resource to target_user5 identified by my_password;
    >
    5) Run the import par to move the 9i dump into the new 10g database.
    This never works. The commands I am trying are.
    imp \"sys/****@fieldmgr as sysdba\" parfile="filename.par"
    imp \"sys/**** as sysdba\" parfile="filename.par"This didn't work because you renamed the table names, you appended fmdb to the tables. These tables are not in the dumpfile so that is why you get the table not found error.
    Dean

Maybe you are looking for

  • Express not showing up..What worked for me...

    After my 1st generation Express died last week, I got the new 802.11n-enabled unit. I was able to use Airport Utility to set the device up initially, but after rebooting the unit, it disappeared from my network, a WPA protected WDS-type with one Extr

  • System locks up when trying to play streaming media after installing i-tune

    Hi Folks, Ive just bought the greatest piece of kit ever, a 2Gb Nano. Great kit but since installing i-tunes my system locks up whenever I try to play any streaming media (wmv etc) via windows media player. Cntrl-Alt-Del even locked out. Total lock u

  • Session Handling in Weblogic Portal 9.2

    Hi All, I have posted a strange problem that i have been facing. It was that my previously visited page was getting rendered when i used to perform some action on my current page. I attributed this to some caching that might be happening. I want to k

  • TS3697 Many of my photos over 3,000 pixels will not sync.  I'm using latest updated iTunes and iOS.

    Several of my large file size photos (over 3,000 pixel width) will mot sync, or sync but show different photos.  Using latest updated iOS and iTunes software. After several calls, finally had sr. Tech support advise that there is a bug.  I have Windo

  • Download for later install?

    trying to figure out how to download the mavericks installer for a later install. everything i've seen says 'install os x mavericks.app' will be in my main applications folder. i don't see it during the download, though, and am really paranoid about