Export data then reload

Hello

I have the such Scenario than real dimension, forecast, Budget, forecast 2, FY10 Budget, etc. I want to export data for only 2 forecasts and Budget FY10, so here is my script:

ESS_LOCALE English_UnitedStates.Latin1@Binary
SET DATAEXPORTOPTIONS
{
DataExportLevel 'all '.
DataExportColFormat
WE DataExportDynamicCalc;


};
DIFFICULTY ("FY10 Budget", "Preview 2");
DATAEXPORT 'File' ',' 'D:\testexport.txt ';
ENDFIX;

The file is generated, and then erase FY10 Budget and forecasting 2 block and try to load the data in the cube with the same dimensoin, I got error such as:

«Unkonwn Item ["Feb", "Mar", "CalQ1", "Apr"...»

What I'm doing wrong here?

Thank you

Published by: Alain on November 15, 2010 07:50

Published by: Alain on November 15, 2010 07:51
I feel is my delimiter, I use the comma in my calc script, but it seems it is tab or space, which is the problem here, how can I specify tab or space as the delimiter in my dataexport option?

^ ^ ^ I'm not sure that the separator is the issue, but certainly try it. If you put a "" you will get a space as a separator. If you put "" (not really a tab, but must be EAS/editor of your choice I can't tab in the my computer window) you get tab as a delimiter. That's all there is to it. It's a thread from last week - I learn new things all the time on this forum.

Kind regards

Cameron Lackpour

Tags: Business Intelligence

Similar Questions

  • export data to sql

    Hello

    I'm trying to export essbase data then reload it into the sql table, I to the right, click Export, then choose "All data" and check "Export to the format column", if I get the text file. However, when I try to import into a sql table, it's just a great column.

    What is the best way to export data out essbase and then import them into a table in sql, the idea is that I want to just export, for example, budget data, and then import them into sql.

    Thank you

    If you read my blog, you will see that you can really control the export format except in the designate one of the dense dimensions such as columns. The rest follows the contour. I'll guess that your periods dimension is what is prevalent throughout. While you can not retrieve the columns in the desired order. If it is still a cube of dev, you can add a dense dimension with a single member and use it as your column. It would not affect the performance of the cube, but would affect any charge the rules or you get already.

    If you need to format you describe, another suggestion would be to export the format as you see, then put views above it that unions periods to take a single column of data and forcing a month name in it.

    If your table looks like the year, scenario, dept, acct, per1, Per2, Per3etc
    Then, you could do a view as
    Select the year, scenario, dept, Acct, 'Jan', table 1, where 1 is not null
    Union
    Select the year, scenario, dept, Acct, 'February', Per2 table where Per2is not null
    etc.

  • Export data to Excel does not work in the build (.exe)

    I'm new to LabView 2010, but made a small application which works as expected when run as a VI in the Labview environment. This is a simple data acquisition where the results are displayed in a waveform graph. I used the method "Export data to Excel" to present the request to transfer the results on the chart in an Excel file programmatically.

    However, when I build the application and run the exe, the application works very well outside the export to Excel. Excel does not start, and when I right click on the graph for "export data to Excel" manually, it doesn't work anymore. The data can be exported to the Clipboard and then pasted into Excel, which is doable, but not very elegant solution...

    Any thoughts?

    Hi CFNoergaard,

    This issue has been corrected in LabVIEW 2010 SP1.

    If you upgrade to this version, it should do the trick.

  • How do you export data in form of Acrobat Reader?

    I have Adobe Acrobat Reader XI (last version) with Windows 8.1.  I would like to know how to export data from a form field so another can import it.

    Hey astromath,

    This can be done using the software Adobe Acrobat and Reader not.

    You can export the data as a file FDF, and then re-import the TOT TOT another file (don't forget that PDF forms must have the same field names).

    To export the data to a FDF file in Acrobat, choose forms > manage form data > export data and save it to your computer and do the same thing to import it into the new PDF.

    Hope it will be useful to you.

    Kind regards

    Ana Maria

  • Reg: Export data of the physical database system standby.

    Hi all

    We have a standard edition one 11 GR 1 material oracle environment, I need to export the data from the physical monitoring system.

    If anyone can suggest me, how to do it safely (up state).

    Kind regards

    Konda.

    Oracle Data Guard is available only as a feature of Oracle Database Enterprise Edition. It is not available with Oracle database Standard edition.

    Then you must export data only from primary or you use EXP instead of EXPDP on the standby database. Because EXPDP create a temporary table export process duration.

    Concerning

    Mr. Mahir Quluzade

  • Export data in a flat file without use of FL

    Hello

    I'm looking for options where I can export data into a flat file without using a FL (line Layout) i.e., using only the App Engine.

    Please share your experience if you did something like this

    Thank you

    A simple way to export any folder (table/view) to a csv gall, is to create a set of lines and loops through all fields of record like below example code

    Local Rowset &RS;
    Local Record &Rec;
    Local File &MYFILE;
    Local string &FileName, &strRecName, &Line, &Seperator, &Value;
    Local number &numRow, &numField;
    
    &FileName = "c:\temp\test.csv";
    &strRecName = "PSOPRDEFN";
    &Seperator = ";";
    
    &RS = CreateRowset(@("Record." | &strRecName));
    &RS.Fill();
    
    &MYFILE = GetFile(&FileName, "W", %FilePath_Absolute);
    
    If &MYFILE.IsOpen Then
    
       For &numRow = 1 To &RS.ActiveRowCount
          &Rec = &RS(&numRow).GetRecord(@("RECORD." | &strRecName));
    
          For &numField = 1 To &Rec.FieldCount
             &Value = String(&Rec.GetField(&numField).Value);
             If &numField = 1 Then
                &Line = &Value;
             Else
                &Line = &Line | &Seperator | &Value;
             End-If;
    
          End-For;
          &MYFILE.WriteLine(&Line);
       End-For;
    
    End-If;
    
    &MYFILE.Close(); 
    

    You can of course create an application for generic class call this piece of code.

    It will be useful.

    Note:
    Do not complain to me ;) on performance issues

  • Export data from one schema to another SQL schema

    Hello.

    I have 2 plans. One is called MICC_ADMIN and the other is called MICC_PROD. What I want is to export from MICC_ADMIN to import into MICC_PROD. I tried to do with the tool of data workshop, one of the table has approximately 19,000 records, so he gets frozen trying to export data. So I was wondering if is it possible to do this via the sql command. Thank you.

    Best regards, Bernardo.

    Hello

    You give the right to select on MICC_APEX_ADMIN. SRDB_MAIN to MICC_APEX_PROD;
    Then sign in as MICC_APEX_ADMIN and run

    GRANT SELECT ON MICC_APEX_ADMIN.SRDB_MAIN TO MICC_APEX_PROD;
    

    Then log in as MICC_APEX_PROD and INSERT performance

    Kind regards
    Jari

  • export data from the table in xml files

    Hello

    This thread to get your opinion on how export data tables in a file xml containing the data and another (xsd) that contains a structure of the table.
    For example, I have a datamart with 3 dimensions and a fact table. The idea is to have an xml file with data from the fact table, a file xsd with the structure of the fact table, an xml file that contains the data of the 3 dimensions and an xsd file that contains the definition of all the 3 dimensions. So a xml file fact table, a single file xml combining all of the dimension, the fact table in the file a xsd and an xsd file combining all of the dimension.

    I never have an idea on how to do it, but I would like to have for your advise on how you would.

    Thank you in advance.

    You are more or less in the same situation as me, I guess, about the "ORA-01426 digital infinity. I tried to export through UTL_FILE, content of the relational table with 998 columns. You get very quickly in this case in these ORA-errors, even if you work with solutions CLOB, while trying to concatinate the column into a CSV string data. Oracle has the nasty habbit in some of its packages / code to "assume" intelligent solutions and converts data types implicitly temporarily while trying to concatinate these data in the column to 1 string.

    The second part in the Kingdom of PL/SQL, it is he's trying to put everything in a buffer, which has a maximum of 65 k or 32 k, so break things up. In the end I just solved it via see all as a BLOB and writing to file as such. I'm guessing that the ORA-error is related to these problems of conversion/datatype buffer / implicit in the official packages of Oracle DBMS.

    Fun here is that this table 998 column came from XML source (aka "how SOA can make things very complicated and non-performing"). I have now 2 different solutions 'write data to CSV' in my packages, I use this situation to 998 column (but no idea if ever I get this performance, for example, using table collections in this scenario will explode the PGA in this case). The only solution that would work in my case is a better physical design of the environment, but currently I wonder not, engaged, as an architect so do not have a position to impose it.

    -- ---------------------------------------------------------------------------
    -- PROCEDURE CREATE_LARGE_CSV
    -- ---------------------------------------------------------------------------
    PROCEDURE create_large_csv(
        p_sql         IN VARCHAR2 ,
        p_dir         IN VARCHAR2 ,
        p_header_file IN VARCHAR2 ,
        p_gen_header  IN BOOLEAN := FALSE,
        p_prefix      IN VARCHAR2 := NULL,
        p_delimiter   IN VARCHAR2 DEFAULT '|',
        p_dateformat  IN VARCHAR2 DEFAULT 'YYYYMMDD',
        p_data_file   IN VARCHAR2 := NULL,
        p_utl_wra     IN VARCHAR2 := 'wb')
    IS
      v_finaltxt CLOB;
      v_v_val VARCHAR2(4000);
      v_n_val NUMBER;
      v_d_val DATE;
      v_ret   NUMBER;
      c       NUMBER;
      d       NUMBER;
      col_cnt INTEGER;
      f       BOOLEAN;
      rec_tab DBMS_SQL.DESC_TAB;
      col_num NUMBER;
      v_filehandle UTL_FILE.FILE_TYPE;
      v_samefile BOOLEAN      := (NVL(p_data_file,p_header_file) = p_header_file);
      v_CRLF raw(2)           := HEXTORAW('0D0A');
      v_chunksize pls_integer := 8191 - UTL_RAW.LENGTH( v_CRLF );
    BEGIN
      c := DBMS_SQL.OPEN_CURSOR;
      DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
      DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
      --
      FOR j IN 1..col_cnt
      LOOP
        CASE rec_tab(j).col_type
        WHEN 1 THEN
          DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,4000);
        WHEN 2 THEN
          DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val);
        WHEN 12 THEN
          DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val);
        ELSE
          DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,4000);
        END CASE;
      END LOOP;
      -- --------------------------------------
      -- This part outputs the HEADER if needed
      -- --------------------------------------
      v_filehandle := UTL_FILE.FOPEN(upper(p_dir),p_header_file,p_utl_wra,32767);
      --
      IF p_gen_header = TRUE THEN
        FOR j        IN 1..col_cnt
        LOOP
          v_finaltxt := ltrim(v_finaltxt||p_delimiter||lower(rec_tab(j).col_name),p_delimiter);
        END LOOP;
        --
        -- Adding prefix if needed
        IF p_prefix IS NULL THEN
          UTL_FILE.PUT_LINE(v_filehandle, v_finaltxt);
        ELSE
          v_finaltxt := 'p_prefix'||p_delimiter||v_finaltxt;
          UTL_FILE.PUT_LINE(v_filehandle, v_finaltxt);
        END IF;
        --
        -- Creating creating seperate header file if requested
        IF NOT v_samefile THEN
          UTL_FILE.FCLOSE(v_filehandle);
        END IF;
      END IF;
      -- --------------------------------------
      -- This part outputs the DATA to file
      -- --------------------------------------
      IF NOT v_samefile THEN
        v_filehandle := UTL_FILE.FOPEN(upper(p_dir),p_data_file,p_utl_wra,32767);
      END IF;
      --
      d := DBMS_SQL.EXECUTE(c);
      LOOP
        v_ret := DBMS_SQL.FETCH_ROWS(c);
        EXIT
      WHEN v_ret    = 0;
        v_finaltxt := NULL;
        FOR j      IN 1..col_cnt
        LOOP
          CASE rec_tab(j).col_type
          WHEN 1 THEN
            -- VARCHAR2
            DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
            v_finaltxt := v_finaltxt || p_delimiter || v_v_val;
          WHEN 2 THEN
            -- NUMBER
            DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
            v_finaltxt := v_finaltxt || p_delimiter || TO_CHAR(v_n_val);
          WHEN 12 THEN
            -- DATE
            DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
            v_finaltxt := v_finaltxt || p_delimiter || TO_CHAR(v_d_val,p_dateformat);
          ELSE
            v_finaltxt := v_finaltxt || p_delimiter || v_v_val;
          END CASE;
        END LOOP;
        --
        v_finaltxt               := p_prefix || v_finaltxt;
        IF SUBSTR(v_finaltxt,1,1) = p_delimiter THEN
          v_finaltxt             := SUBSTR(v_finaltxt,2);
        END IF;
        --
        FOR i IN 1 .. ceil( LENGTH( v_finaltxt ) / v_chunksize )
        LOOP
          UTL_FILE.PUT_RAW( v_filehandle, utl_raw.cast_to_raw( SUBSTR( v_finaltxt, ( i - 1 ) * v_chunksize + 1, v_chunksize ) ), TRUE );
        END LOOP;
        UTL_FILE.PUT_RAW( v_filehandle, v_CRLF );
        --
      END LOOP;
      UTL_FILE.FCLOSE(v_filehandle);
      DBMS_SQL.CLOSE_CURSOR(c);
    END create_large_csv;
    
  • Export data from the table

    Hello. Is it possible to export data from a table in Oracle using SQL Loader? If Yes, can you tell a good examples?

    Hello

    Hello. Is it possible to export data from a table in Oracle using SQL Loader?

    No, with SQL * Loader, you can load data from external files into tables not export.

    coil c:\temp\empdata.txt
    sqlplus abc.sql (assumes that abc.sql runs select * from emp)
    spool off

    It cannot work like this, because the declaration of the COIL is not recognized outside the SQL * Plus the term.

    But, you can include the statement of the COIL in abc.sql like this:

    spool c:\temp\empdata.txt
    select * from emp;
    spool off
    

    Then, you just have to run the SQL script as follows:

    sqlplus  @abc.sql 
    

    However, I advise you to use Oracle SQL Developer, this is a free tool and with it you can export a Table in several types of format (html, xml, csv, xls,...).

    Please find attached a link to this tool:

    http://www.Oracle.com/technetwork/developer-tools/SQL-Developer/Overview/index.html

    Hope this helps.
    Best regards
    Jean Valentine

  • Can not find the file of exported data

    I have exported databases using EAS and cannot find the files.

    Have you tried to name the file without an extension, as well as including a .txt extension in the name of the export file. In each case, the le panneau panel message confirms that the 'export data... succeeded. "

    Yet, when I try to perform an import, the file I created is not anywhere in the server, directories of application or database appear in the dialog box for EAS.

    I'm sure I'm forgetting something obvious, but documentation did not help, either.

    Advice woud greatly appreciated.

    What version are you on anway file must be where essbase is installed, it will be in \app
    If you want to import then move from the to \app \app\appname\dbname

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Export data from the database to excel file using the procedure

    Hello

    I need to export data from database to oracle 10 g for the excel file, I try this code:

    First, I create directory to the user sys and give permition to user that I'm working on it
    create or replace directory PALPROV_REPORTS as 'c:\temp';
    
    grant read, write on directory PALPROV_REPORTS to user12 ;
    then I run this code
    declare
        output utl_file.file_type;
    begin
        output := utl_file.fopen( 'user12' , 'emp1.slk', 'w',32000 );
        utl_file.put_line(output, 'line one: some text');
        utl_file.fclose( output );
    end;
    the problem appears as
    ORA-29280: invalid path ORA-06512: at "SYS." UTL_FILE", line 29 ORA-06512: at"SYS." UTL_FILE", line 448 ORA-06512: at line 4

    Notice that I use the operating system windows as a client and a linux as a server database

    The file will be written to the database server or your GNU / linux and I'm quite sure, there is no folder named "c:\temp" on linux. It will probably be ' / tmp' on a unix server.

    And open the file, you must give the name logic directory 'PALPROV_REPORTS' it instead of the user name "utilisateur12".

  • Export data from the database Table in the CSV file with OWB mapping

    Hello

    is it possible to export data from a database table in a CSV with an owb mapping. I think that it should be possible, but I didn't yet. Then someone can give me some tips how to handle this? Someone has a good article on the internet or a book where such a problem is described.

    Thank you

    Greetings Daniel

    Hi Daniel,.

    But how do I set the variable data file names in the mapping?

    Look at this article on blog OWB
    http://blogs.Oracle.com/warehousebuilder/2007/07/dynamically_generating_target.html

    Kind regards
    Oleg

  • Developer SQL 2.1.0.63.73 exports DATE as a TIMESTAMP

    In my view, that it is a bug. When I export a table to a XLS file, the values in the DATE columns are saved as if they were TIMESTAMP:
    for example. December 31 09 12:00:00 AM exported as 31 December 09 12.00.00.000000000 AM

    Not really a huge deal until you try to import, in which case you cannot import a TIMESTAMP into a DATE column. First of all, you will get an error from the Miss AM / A.M.. or AM/PM. You cannot explicitly specify the date format then import either as rejects Oracle it since it is not supported. The proper way is to cast to a date, but you can do this through the import feature.

    Nevertheless, I think the export function should export DATEs according to the NLS Date Format settings, but it is not.

    If it makes any difference, I use the 64-bit version of Windows of SQL Developer on Windows 7 64 - bit with the Oracle 64-bit client.

    Hello

    Don't know if it's something related to my previous problem.
    My SQL Dev gives the correct date format to export to Excel, but fails on an insert export

    Verdin, a member of the sql dev team gave this workaround solution that solved my problem
    >
    You can add the following in the sqldeveloper.conf to ensure that the driver tell not the column of a DATE in the TIMESTAMP column type.

    AddVMOption - Doracle.jdbc.mapDateToTimestamp = false
    >

    as suggested in this thread
    Re: 2.1 EA1: problems with Date type columns

    Hope this helps,

    Buntoro

  • Export data from the forms to Excel

    Hello

    I am facing a problem with exporting data from a form to excel.

    When I go to the menu - and file-> export. The export starts then progress, then disappears.

    If I do just steps above and hold down the CTRL key... the excel opens.

    I remember there was a setting to recognize that this export goes to Excel. But have forgotten what I did to solve the problem.

    My pop Blocker is turned off.


    If anyone can help out me... that would be greatly appreciated.

    Thank you

    Hello

    In the browser, please add the URL of the application to the trusted sites list and sign the application again.

    Also, be sure that no errors are reported in the log database (no space).

    Export option in menu Apps does not work under Windows-XP OS
    Export option in menu Apps does not work under Windows-XP OS

    Export form data to Excel the FILE using file > EXPORT
    Export form data to Excel the FILE using file > EXPORT

    Kind regards
    Hussein

  • Cannot export data so WHERE clause AND/OR

    I am able to export the results of a query if the WHERE clause has only one condition. But if there are and AND or a RC, you can right-click and choose export data, but nothing happens.

    For example, the following text exports very well:

    SELECT * FROM DUAL
    WHERE ROWNUM = 1;

    But throw in an 'AND', and it will not be exported:

    SELECT * FROM DUAL
    WHERE ROWNUM = 1 AND ROWNUM < 2;

    I'm running worm 1.5.3 and did not apply the patches.

    Unfortunately, in the framework of trying to solve other problems with the export feature, 1.5.3 presented problems where certain types of SQL statements would not export (nothing happened like you are seeing or reports of the errors like ORA-936). While it is not yet perfect, 1.5.5 manages exporters results much better (it fits your case who fails in 1.5.3), then I would say that you upgrade to 1.5.5.

    theFurryOne

Maybe you are looking for