Export of table to flat file

OWB 10.2.0.1
DB 10.2.0.4

I need to export data to a flat file, and the ADMINISTRATOR has implemented a directory object:
CREATE DIRECTORY "TEST_OUT" AS '(PATH ON THE SERVER)'
Warehouse Builder can use it in a file location (and if so, how)?

An alternative would be to put the utl_file_dir in the init.ora file and then create a file location that refers to the value utl_file_dir?

If none of those who won't work, which is a good way to export data from flat files?

Thanks in advance.

If you create a connector to the location of the Oracle where the mapping will be deployed to a location where the file is configured (in OWB) and name the connector with the same name as the SQL directory it should do the trick. OWB mapping with the file as a target use UTL_FILE routines with a Directory SQL name. OWB can give you cannot create directory SQL errors because it exists, but you should ignore these and be OK. A small number of if and of but here in version 11 GR 2, we have the same functionality as db links where the connector can use an existing or create a new.

See you soon
David

Tags: Business Intelligence

Similar Questions

  • Export tables to flat files

    Hello

    Can I export tables to flat files (csv) using pl/sql. I mean suppose I have 2 paintings "student" and "topic" and I want to create two files student.csv and subject.csv please let me know, if I can do using pl/sql for tables at once.

    Even if I can do it for a single table, I can write a script to automate for all tables. Please let me know with your suggestions. Appreciate your help.

    Thank you

    As user sys:

    CREATE OR REPLACE DIRECTORY TEST_DIR AS '\tmp\myfiles'
    /
    GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser
    /
    

    As myuser:

    CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2
                                         ,p_dir IN VARCHAR2
                                         ,p_header_file IN VARCHAR2
                                         ,p_data_file IN VARCHAR2 := NULL) IS
      v_finaltxt  VARCHAR2(4000);
      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_fh        UTL_FILE.FILE_TYPE;
      v_samefile  BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file);
    BEGIN
      c := DBMS_SQL.OPEN_CURSOR;
      DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
      d := DBMS_SQL.EXECUTE(c);
      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,2000);
          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,2000);
        END CASE;
      END LOOP;
      -- This part outputs the HEADER
      v_fh := UTL_FILE.FOPEN(upper(p_dir),p_header_file,'w',32767);
      FOR j in 1..col_cnt
      LOOP
        v_finaltxt := ltrim(v_finaltxt||','||lower(rec_tab(j).col_name),',');
      END LOOP;
      --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
      UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      IF NOT v_samefile THEN
        UTL_FILE.FCLOSE(v_fh);
      END IF;
      --
      -- This part outputs the DATA
      IF NOT v_samefile THEN
        v_fh := UTL_FILE.FOPEN(upper(p_dir),p_data_file,'w',32767);
      END IF;
      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 DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
                        v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
            WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
                        v_finaltxt := ltrim(v_finaltxt||','||v_n_val,',');
            WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
                        v_finaltxt := ltrim(v_finaltxt||','||to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),',');
          ELSE
            v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
          END CASE;
        END LOOP;
      --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
        UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      END LOOP;
      UTL_FILE.FCLOSE(v_fh);
      DBMS_SQL.CLOSE_CURSOR(c);
    END;
    

    This allows the header line and the data to write into files separate if necessary.

    for example

    SQL> exec run_query('select * from emp','TEST_DIR','output.txt');
    
    PL/SQL procedure successfully completed.
    

    Output.txt file contains:

    empno,ename,job,mgr,hiredate,sal,comm,deptno
    7369,"SMITH","CLERK",7902,17/12/1980 00:00:00,800,,20
    7499,"ALLEN","SALESMAN",7698,20/02/1981 00:00:00,1600,300,30
    7521,"WARD","SALESMAN",7698,22/02/1981 00:00:00,1250,500,30
    7566,"JONES","MANAGER",7839,02/04/1981 00:00:00,2975,,20
    7654,"MARTIN","SALESMAN",7698,28/09/1981 00:00:00,1250,1400,30
    7698,"BLAKE","MANAGER",7839,01/05/1981 00:00:00,2850,,30
    7782,"CLARK","MANAGER",7839,09/06/1981 00:00:00,2450,,10
    7788,"SCOTT","ANALYST",7566,19/04/1987 00:00:00,3000,,20
    7839,"KING","PRESIDENT",,17/11/1981 00:00:00,5000,,10
    7844,"TURNER","SALESMAN",7698,08/09/1981 00:00:00,1500,0,30
    7876,"ADAMS","CLERK",7788,23/05/1987 00:00:00,1100,,20
    7900,"JAMES","CLERK",7698,03/12/1981 00:00:00,950,,30
    7902,"FORD","ANALYST",7566,03/12/1981 00:00:00,3000,,20
    7934,"MILLER","CLERK",7782,23/01/1982 00:00:00,1300,,10
    

    The procedure allows for the header and the data to separate files if necessary. Just by specifying the file name "header" will put the header and the data in a single file.

    Adapt to the exit of styles and different types of data are needed.

  • 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

  • Trying to export essbase data to flat file

    Hi I'm on v9.3,

    When I export essbase data to flat file, ESSBASE is export data in a row rather than in different lines even if I use (DataExportColFormat ON ;)

    Any help

    Thank you
    RRB

    You must have a dimension of column heading, it recovers the default period, column header cannot be a dense dimension and is defined using

    DataExportColHeader 'DenseDimenionName ';

    See you soon

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

  • Create scripts to populate tables from flat files

    Hello

    How can I create scripts to complete the flat files using pl/sql tables.

    Kindly help me.

    Kind regards

    Prasad K T,.

    9840021070

    Hi PrasadKT,

    As Tsharma pointed out just save the .xls (or xlsx) file in the .csv file.

    Please see steps that I show below...

    My XLS file looks like this... (I wish I could paste pictures here :-()

    1 AAA JJJ QQQ 23.2
    2 BBB ASDA QQQ 12.111
    3 CCBC ERTE WER 10
    4 FFFFFFF ASDA GODSWILL 0
    5 YY DDD SNOW DEPOSITS 12

    Once saved as CSV (separator: semicolon) (*.csv) the contents of the file in Notepad looks like this...

    1, AAA, DDD, QQQ, 23.2

    2, BBB, ASDA, QQQ, 12.111

    3, FCCC, ERTE, wer, 10

    4, FFFFFFF, ASDA, GODSWILL, 0

    5, YY, DDD, MALDINI, 12

    Create a directory in Oracle... (This must be SYSDBA user)

    > create or replace directory xtern_data_dir as 'C:\TEMP '.

    Created XTERN_DATA_DIR directory.

    > grant read, write on directory xtern_data_dir to HR

    Grant succeeded.

    Log in HR (or normal user) and create an external table... If you are running on ODCIEXTTABLEOPEN error, please make sure that the user of the OS which launched the Oracle process has READ/write permission on the directory of the OS

    > left autotrace

    People with disabilities autotrace

    > drop table xtern_table

    table deleted XTERN_TABLE.

    Elapsed time: 00:00:00.052

    > create table xtern_table

    (varchar2 (10) c1,)

    C2 varchar2 (10),

    C3 varchar2 (10),

    C4 varchar2 (5).

    C5 varchar2 (10)

    )

    external organization

    (type ORACLE_LOADER default directory xtern_data_dir

    access settings

    (fields ended by ',')

    MISSING FIELD VALUES ARE NULL

    REJECT ROWS WITH ALL FIELDS are NULL (c1, c2, c3, c4, c5)

    )

    location ("mycsv.csv")

    )

    table created XTERN_TABLE.

    Elapsed time: 00:00:00.013

    > proprietary format of col A10

    > col format a20 directory_name

    > select master, SYS.all_directories directory_name

    OWNER NOM_REPERTOIRE

    ---------- ----------------------------------------

    SYS EXT_INPUT

    SYS XTERN_DATA_DIR

    Elapsed time: 00:00:00.014

    > select * from xtern_table

    C1 C2 C3 C4 C5

    ---------- ---------- ---------- ----- ----------

    1 DDD AAA QQQ 23.2

    2 BBB ASDA QQQ 12.111

    CCBC ERTE wer 10 3

    FFFFFFF ASDA GODSWILL 4 0

    5 AA JJJ SDFS 12

    Elapsed time: 00:00:34.419

    I hope this helps.

    VR

    Sudhakar

  • Export data to a flat file HRMS

    Hi all!

    Are there ways to export related employees data in a flat file without using a client (PeopleCode or Integration Broker) application, it's simply generate a CSV of power of the UI?

    You can schedule a query and specify the output text format. Note that when you select View Log/Trace in the process monitor, you will see a file with a .csv extension. However, it opens by default in Excel, and even if you select Save instead of open, he will try to change the .xls extension. You will need to return to .csv.

  • Export of data to flat file

    Hello

    I want to put the db oracle table data to simple text file / flat or in Formate of cvs. Please suggest me the procedure. I use 10g.

    Looking for an answer.

    Kind regards

    D.Abbasi

    Hello

    I want to put the db oracle table data to simple text file / flat or in Formate of cvs. Please suggest me the procedure. I use 10g.

    You can do this easily using TOAD, Oracle sql developer, Quest Pl/sql developer

    Hope helps

  • 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 a table for the flat file and must insert sysdate in flat file column

    Hi, I created an interface allowing to export an oracle table to a csv file. All the columns in the table work well. Then I need to insert the sysdate in a column in the csv file.

    I made the map as working in the transit area, implementation is to_char(sysdate,'dd/mm/yyyy'). But the result is insert in column 14.

    I tried to create a variable refreshing that choose double to_char(sysdate,'dd/mm/yyyy'), maps then as the csv file column, but he only insert 1 row and the format is YYYYMMDD.

    I tried to use SELECT '< % = odiRef.getSysDate ("YYYYMMDD") % >' double to the variable and it also only insert a line in the flat file.

    I used the same methodology in ODI10g, it works fine.

    So, I wonder how it can be implemented in 11g.

    Thank you

    It turns out that I used the snapshot_date as a field name, it may be a reserved word. After that I changed the name of the field, it works fine. Thank you.

  • Export a Table to a flat file and upload to a FTP server for external provider

    I did some extensive research on forums and I think I have an idea, but really need help. Basically to have a table that is to be exported in a flat file and uploaded to an FTP server so that our provider can obtain the data from Monday to Saturday and automated by sysdate. These data are used to produce daily letters that come out to customers.

    After doing some research I came across the UTL_FILE package and read more into that right now, but I don't know if that's what I use to create the file.
    I use TOAD right now and see how the do it manually but really need the file to create itself and send it automatically to 06:00 Monday - Saturday, with the date at the end of the name of the file, which makes a single file for each day.

    Thanks in advance for all your help.

    As Justin and others have said that I wrote [XUTL_FTP | http://www.chrispoole.co.uk/apps/xutlftp.htm] If you won't find in the Oracle documentation. It is pure PL/SQL using UTL_TCP and implements a built-in FTP from PL/SQL client / API. One of its many procedures overloaded FTP the contents of a refcursor directly to an FTP server of your choice, which means that no intermediate file is necessary. Since it is pure PL/SQL, it is trivial to program using DBMS_JOB/DBMS_SCHEDULER.

    Any questions just ask.

    HTH Chris

  • How to export data from flat file with ODI DB?

    We want to export flat files DB2 tables.
    Who can tell me how to do it with ODI?
    Please give me a simple example or steps.
    Thank you.

    There are two ways

    Either use IKM Sql to add files

    (or)

    OdiSqlUnload
    For OdiSqlUnload, you can use this technique to provide the connection parameters - http://odiexperts.com/?p=1985

  • How to load flat files without header to table in ODI

    I try to get data from a flat file, but it doesn't have any header

    as 1, tom, 36, usa.

    I have a table with id column, name, age, country, and I want to get the data. Please let me know how to proceed.

    Thanks in advance

    If you add columns manually in the data model there is no need to reverse engineering. If you reverse engineer with header set to 0 ODI will simply give the columns arbitrary identifiers such as C1, C2, C3 etc. That you can leave or change.

  • Is a database table that is required for the temporary interfaces with the data flat file source?

    People, this is the situation I ODI 11.1.1.7

    1. I have an interface temporary (yellow), called MJ_TEMP_INT, which uses data from TWO sets of data from the source in a temporary target (TEMP_TARG). Wrestling is a shot of a data set from a table while the other set of data extracted from a flat file.  A union is made on data sets.
    2. I then create another interface, called MJ_INT, which uses the MJ_TEMP_INT as the source and the target is a real database. table called "REAL_TARGET".

    Two questions:

    1. When I run my second interface (MJ_INT), I get a message "ORA-00942: table or view does not exist" because it is looking for a real TEMP_TARG db table. Why I have to have one? because I am pulling a flat file?
    2. On my second interface (MJ_INT) when I look at the interface of my source MJ_TEMP_INT (yellow) property sheet, the box 'Use the temporary interface as a Derived table' is DISABLED.  Why? Is also because my temporary interface is pulling from a flat file?

    I am attaching a file that shows a screenshot of my studio ODI.

    Furthermore, IF my temporary source interface has only a single set of data by pulling from a database. Table to table in a temporary target, called MJ_TEMP2_TARG, and then when I use this temporary interface as a source to the other another real db. target table (REAL2_TARGET), THEN everything works.  ODI requires me to have a real database. Table MJ_TEMP2_TARG and the checkbox for "interface temporary use as a Derived table" is NOT DISABLED and my REAL2_TARGET table gets filled.

    Thank you in advance.

    Mr. Jamal.

    You quite rightly assume the reasons that you have questions is because you try to attach a file. A file I always have to be materialized in the transit zone, as a temporary table and then have the data loaded in it.

  • Is there a way to export / print to a pdf file which is flat? That is like printing on paper and a new analysis?

    Is it possible (if not, there should be MAOIs) export / print to a pdf file which is flat? That is like printing on paper and a new analysis? (I do not want to use this last)

    I could list 100 reasons why it would be useful to be able to do this, then please none of the usual "why would you do that?' or ' is not the right way... blah blah blah" which is too often here.

    If you are Windows on a machine, you can print the file to the Adobe PDF printer, thus creating a new copy of it.

    If you want to convert the entire file of images, then you can export it to the image files (PNG, for example) and then create a new PDF from that.

    If you want to flatten the dynamic objects (such as form, comments, links, etc.) then you can use a simple script to do.

    There are many ways, your request may be interpreted... If you provide information on what you are trying to achieve it will be easier to help you do.

  • Create the flat file data from the oracle table

    d_adp_num char (10)
    d_schd_date tank (8)
    d_sched_code tank (25)
    d_pay_code char (50)
    d_mil_start char (4)
    d_mil_end char (4)
    d_duration char (5)
    d_site_code char (4)
    d_dept_id tank (6)

    Select payroll_id,
    schedule_date,
    reason_code, (sched_code)
    reason_code, (pay_code)
    start_time,
    end_time,
    total_hours,
    site_code,
    department_id
    of dept_staff
    where schedule_date between (sysdate + 1) and (sysdate + 90)


    loading data for the date range instead.
    sched_code - if 'Unavailable' reason_code = 'OD' and 'THE '.

    pay_code - "Berevevement BD" If reason_code = "BD".
    "UP PTO without reasonable excuse" If reason_code = 'UP '.
    "RG" If reason_code = "SH".
    "PTO" If reason_code = "GO".
    Here are some...

    start_time and end_time - convert military time
    based on start_ampm and end_ampm

    On this basis, I need help to create a flat file. Sewing of the flat and data file in dept_staff sample

    If site_code is there so no need to get department_id (see the sample flat file)
    ------------------------------------

    examples of data to flat file

    ZZW002324006072012 PTO
    0800160008.00
    ZZW002428106072012 RG
    1015174507.50HM34
    ZZW002391606072012 RG
    1100193008.50
    ZZW002430406072012 RG
    1100193008.50 130000
    ----------------------------

    dept_staff table data

    REASON_CODE_1 PAYROLL_ID SCHEDULE_DATE REASON_CODE START_TIME, END_TIME START_AMPM END_AMPM TOTAL_HOURS SITE_CODE DEPARTMENT_ID
    ZZW0024468 08/06/2012 HS HS 730 HAS 400 850 12 P
    ZZW0000199 08/06/2012 HS HS 730 HAS 400 850 14 P
    ZZW0023551 08/06/2012 SH SH 1145 A 930 975 GH08 95 P
    ZZW0024460 08/06/2012 SH SH 515 HAS 330 P 1025 GH08 95
    ZZW0023787 08/06/2012 SH SH 630 HAS 300 850 24 P
    ZZW0024595 08/06/2012 TR TR 730 HAS 400 850 90 P
    ZZW0023516 08/06/2012 OD OD 800 HAS 400 800 95 P
    ZZW0023784 08/06/2012 OD OD 800 HAS 400 800 5 P
    ZZW0024445 08/06/2012 SH SH 1145 A GH08 930 975 5 P
    ZZW0024525 08/06/2012 OD OD 800 HAS 400 800 23 P
    ZZW0024592 08/06/2012 TR TR 730 HAS 400 850 5 P
    ZZW0024509 08/06/2012 SH SH 95 MK21 830 HAS 330 P 700

    ZZW0023916 06/14/2012 SH SH 1100 A 850 27 730 P

    How to ask questions
    SQL and PL/SQL FAQ

    UTL_FILE allows to write the OS file

Maybe you are looking for