Datas extracted from production tables in Oracle into pipe delimited flat f

Hi
Plz anyone tel me the query how to extract data in oracle into pipe delimited flat files using plsql stored procedure and also do incremental updates.plz tel me its urgent

how to extract data in oracle into pipe delimited flat files using plsql stored procedure You can try utl_file.
and also do incremental updates.This part I don't get. Updates to what? The above file?
plz tel me its urgentWe don't care.

Similar Messages

  • Performance Tunning- data extraction from FMGLFLEXA table

    Hi,
      Need to fetch data from FMGLFLEXA table based on below condtion.
           WHERE rfund IN s_rfund
               AND rgrant_nbr IN s_rgnbr
               AND rbusa IN s_rbusa
               AND budat LE v_hbudat.
    Please tell me how can i optimize this extaraction b'coz in production system there are lacks of records.
    Regards,
    Shweta.

    create a index on these fields due to which data extraction from table will be fast.

  • Data extract from huge table

    Hi,
    I am extracting data from a table which has more than 25 million records without using any where condition.
    45000 records in a file, in multiple files.
    What is the best way to write the select statement.
    Thanks,
    fract

    Don't know why you're extracting 25,000,000 records, but package size would be my first choice....something like:
    types: gtyp_int type i.
    data: itab type table of <dbtab>.
    parameters: p_pkg type i default 45000.
    start-of-selection.
    perform myform.
    form myform.
    data: file_cnt type gtyp_int.
    select * from <dbtab> into table <itab>
    package size p_pkg.
      file_cnt = file_cnt + 1.
    do something with itab contents
    case file_cnt.
      when 1.
         append lines of itab to ....  "or do a table copy.
    when 2.
    endcase.
    endselect.
    endform.

  • Data extraction from shared table

    Hello All,
        I have a scenario where I have two different software systems (SAP and xyz systems), where a intermediate table will be created in between the two systems that is shared. Data will be updated by the xyz systems into this shared table. Now, my questions regarding this shared table.
       1) Can we write some program or something to get the data from shared table to update the SAP?
       2) If possible send me the suggestions
       3) Please also send me the sample code to get the data from the shared table
    Thanks in advance,
      SDN powered

    HI,
    Where will this shared table resides ? In SAP system ? or any database ?
    If any database, you can extract the data from there and update/insert the data into SAP table thru XI. For this you need to query the shared table with JDBC adapter and post the information...
    It is easy, if you give the informations about shared system ..
    Regards,
    moorthy

  • Re: Data Extraction from Multik R/3 systems into one Infosouce

    Hi Experts,
    In my current project there is a requirement to bring data from two different R/3 clients(systems) into one BW sytem.
    The inforsouce is the same. For example The FI GL data needs to upload into BW through the Infosource 0FI_GL_4 from two different R/3 clients ; 100 and 150. Is it possible?
    Curreny set up is to bring data only from R/3 system 100. Now the requirement change and have to bring data from R/3 system 150. This is the situation in production client.
    Please advise and share your view.
    Thanks in advance

    Luis:
    Thanks for the response.
    In both R/3 clients Data Source is 0FI_GL_4. The infosource is 0FI_GL_4. I am loading data into FIGL ODS. Are  0GN_R3_SSY and 0LOG_SYS_BE two infoobjects to be included into the FIGL ODS?
    Another question - The data source for one client is in the revised mode in BW production client. Can I install the data source in the BW production client by generating transfer rule/transfer structure? Or do I need to transport it from the R/3 client and replicate it in BW?
    Please respond.
    Thanks

  • Data extract from hr-tables to sybase

    hello Gurus
    i am extracting data from hr-tables to flatfile . i have data in pa0001 ,pa0002,pa0006,hrp1208,hrp1000,t513s data .
    i am extracting data from pa0001 to pa0006 with the help of select query but where as with hrp tables i am facing a problem with the relationship between pa0001 and hrp1208 tables.
    plz help me in this regard with some sample code.so that i can solve my problem
    thanks
    rad

    Rad,
    May be you should use 'object type', 'begin date' and 'end date' as the key combination. Try this. May be helpful.
    Thanks,

  • Data extraction from CO tables

    Hi,
      How does the accounting document no in bseg table related to the co-pa table ie. ce1***table.
      The fields paobjnr pasubnr in the bseg table for my accounting document no is not available. Then how can i get the data from co-pa table for that accounting document number.
    Regards,
    Nagendra Prasad.J

    Hi Nagendra,
    To find the CO-PA data, you must go with paobjnr field in bseg  to the ce4***_acct table and use ce4key field to extract details in ce4**. Please don´t use ce1** table.
    regards,
    Rodrigo Ramirez

  • How to extract table from oracle in to delimited flat files

    Hi i have the following requirement.i tried one dump procedure but i could extract table one by one.i need to do extract on regular basis using plsql procedure.
    Data will be extracted from production tables in Oracle into pipe delimited flat files that will be sent by SFTP. The list below represents the tables that will be used for extract along with a notation whether the entire table is extracted or only incremental transactional data.
    Table name extraction type No of records
    EXPIRE     All Records     157 - One Time     All Records     17
    ACE All Records     7,970
    DATA All Records     5,868
    MEMBER     All Records     24,794,879
    MEMBER Incremental & Update     13,893,587 (Initial Load)
    MEMBERRED All Records     25,108,606
    MEMBERPOINT     All Records     42,487,640
    MEMBERCOM     Incremental & Update     14,337,561 (Initial Load)
    MEMBERCODE     Incremental Only     14,985,568 (Initial Load)
    MEMBERDETAIL     Incremental Only     14,341,890 (Initial Load)
    MEMBERHISTORY     Incremental Only     70,021,067 (Initial Load)
    suggest me how can i extract these tables by using plsql procedure.In the above table some table has be extract select list of column.

    Saubhik wrote:
    This may help you.
    Re: Dynamic Fetch on dynamic Sql
    Well I was going to post my standard response, but I see I don't have to. ;)

  • Extracting Data From a Table in Oracle

    How would one extract the data from a table in oracle and put in ascii format file?
    Do you use sql loader?

    http://asktom.oracle.com/pls/ask/f?p=4950:8:6139291395251309702::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:68212348056,
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:464420312302

  • DATA EXTRACTION FROM ORACLE & SYBASE

    Hello members...
    Good day. This is my first posting in this site. I am new to Oracle and have a question regarding Data extraction from Oracle and Sybase.
    My project has two applications one having Oracle as the database and the other has Sybase as the database. On the proposed production schedule, there would be a interface data update from the Oracle database to the Sybase database.
    My aim is to check if the data update is in sync after the update. We plan to extract the data from the two databases (Oracle and Sybase) and compare in a Third Party tool. We have the tool to compare. Can any of you suggest a nice data extraction tool. I have to set this data extraction as a batch in the nightly batch schedule.
    Thanks in advance,
    Regards,
    Krishna Kumar...

    Sybase provides the best data extraction utility called BCP. You can load and extract data. It is very user friendly. From your unix prompt if you type in BCP ? you will all the switches and
    help messages you need to use. It is so simple.
    Oracle dosn't have such a utility to extract data from table.
    You need to write a Stored procedure and use UTF_FILE package to
    extract data from table and write into a file.

  • Import data from few tables and export into the same tables on different db

    I want to import data from few tables and export into the same tables on different database. But on the target database, additional columns have been added
    to the same tables. how can i do the import?
    Its urgent can anyone please help me do this?
    Thanks.

    Hello Junior DBA,
    maybe try it with the "copy command".
    http://download.oracle.com/docs/cd/B14117_01/server.101/b12170/apb.htm
    Have a look at the section "Understanding COPY Command Syntax".
    Here is an example of a COPY command that copies only two columns from the source table, and copies only those rows in which the value of DEPARTMENT_ID is 30:Regards
    Stefan

  • Data Extraction from AR Aging Tables to Acess

    Hi
    I used to work on developing the reports.But I am a new to the Data Extraction from AR Aging Tables into Acess and the data is upload from Acess to SAP.
    Can anybody help me to relove this issue.I really appreciate to you.After mapping then the data is loaded to SAP.

    Hi
    I used to work on developing the reports.But I am a new to the Data Extraction from AR Aging Tables into Acess and the data is upload from Acess to SAP.
    Can anybody help me to relove this issue.I really appreciate to you.After mapping then the data is loaded to SAP.

  • How to retrieve data from catsdb table and convert into xml using BAPI

    How to retrieve data from catsdb table and convert into xml using BAPI
    Points will be rewarded,
    Thank you,
    Regards,
    Jagrut BharatKumar Shukla

    Hi,
    This is not your requirment but u can try this :
    CREATE OR REPLACE DIRECTORY text_file AS 'D:\TEXT_FILE\';
    GRANT READ ON DIRECTORY text_file TO fah;
    GRANT WRITE ON DIRECTORY text_file TO fah;
    DROP TABLE load_a;
    CREATE TABLE load_a
    (a1 varchar2(20),
    a2 varchar2(200))
    ORGANIZATION EXTERNAL
    (TYPE ORACLE_LOADER
    DEFAULT DIRECTORY text_file
    ACCESS PARAMETERS
    (FIELDS TERMINATED BY ','
    LOCATION ('data.txt')
    select * from load_a;
    CREATE TABLE A AS select * from load_a;
    SELECT * FROM A
    Regards
    Faheem Latif

  • Data fetch from two table without refresh

    hi Friends,
    I have a problem i want to extract data from two table without refresh into text field when i'll enter any value in a text field then corressponding value should come in to corressponding textfield.
    eg. there two table A and B.
    Table A has Colunm
    s_id Number;
    c_id Varchar2(30);
    sec varchar2(4);
    Second Table B Colunm Name
    s_id Number;
    f_name varchar(30);
    l_name varchar(20);
    when i enter s_id 101 in a text field then the c_id ,sec,first_name and last_name should come in to corressponding text fields without refresh.
    How Can I do this.
    Thanks
    Manoj

    Hi Manoj,
    You have to make an Ajax call to display data without refreshing the page. Search this forum for Ajax and you can find lots of related posts. This link might help too. http://www.dba-oracle.com/t_html_db_apex_ajax_application_express.htm
    Thanks,
    Manish.

  • Data Loading from one table to another in the Same Database based on conditions .

    Hi ALL ,
    I have 2 tables Products and Product_info .
    Product_info table Product_id is Primary key but not an identity column so auto increment of number needs to be performed from the Package only .
    Requirement is :
    IF the Product_ID is = 20 and Date lies in the previous month not the current month in the Products table then 
    insert into the Product_info table based on below mentioned information .
    1.If the Name  has tap then ignore it completely don't perform any insert for it.
    2.If the Name has Zork in it then perform 2 inserts in the Product_info table having Product_info_id's 1 and 2 .
    3.If the Name doesn't contains Zork or tap insert it in the Product_info table having Product_info_id 4.
    Very new to SSIS package development it will be helpful if you can provide detailed information .
    Source Table (Products table )
    ID
    NAME
    Product_ID
    Date 
    Area_ID
    1
    P_tap_rus
    20
    13-01-2014
    3
    2
    Enc_sap_top
    10
    15-01-2014
    4
    3
    Yorl
    20
    05-02-2014
    5
    4
    zork
    20
    20-01-2014
    6
    5
    fadbt
    10
    22-01-2014
    6
    6
    xyzzz_oprt
    20
    28-01-2014
    5
    7
    def_type_ru
    20
    06-02-2014
    2
    8
    acd_inc_tup
    10
    07-02-2014
    3
    9
    bnf_dlk_fbg
    20
    03-02-2014
    4
    10
    rtyui_vnmghj_sfdl
    10
    12-01-2014
    5
    11
    wlwf_10103_123
    10
    04-02-2014
    9
    Destination table  (Product_info)
    Porduct_ID
    ID
    Area_ID 
    Product_info_ID
    Column1
    1
    3
    5
    4
    As NameString doesn’t contain Zork or Tap 
    2
    4
    3
    1
    As Id is 4 so 2 inserts one for 1 and other for 2 in the Product_info_id column
    3
    4
    3
    2
    4
    6
    5
    4
    5
    10
    5
    4
    6
    11
    9
    4
    Please let me know if any other information is required .
    Thanks
    Priya

    Hi Priya,
    You mentioned this was coming from two tables right? I believe I would try to perform the transformations with T-SQL in my source (If this is a possibility for you). Below is an example of something you could do.
    WITH CTE
    AS
    SELECT ID, Product_ID, [Date], Area_ID,
    CASE
    WHEN Name like '%Zork%' THEN 1
    ELSE 4
    END AS Product_Info_ID
    FROM [YourTable]
    WHERE Product_ID = 20 and MONTH([DATE]) = MONTH(DATEADD(MM, -1, GETDATE())) AND NAME NOT LIKE '%tap%'
    SELECT *
    FROM CTE
    UNION
    SELECT ID, Product_ID, [Date], Area_ID, '2' AS Product_Info_ID
    FROM CTE WHERE Product_Info_ID = 1
    I hope this helps, Regards.

Maybe you are looking for

  • ITunes 8.1 breaks syncing with 2nd gen iPod shuffle

    So, I downloaded iTunes 8.1 as soon as it came out as all the new features seemed pretty benign, and I've never had issues with any iTunes update going all the way back to 1.0. However, the 8.1 update rendered my 2nd gen shuffle no better than a $5 M

  • Links in photo captions

    I'm working on a slight variation of the photo gallery, and want to put links in the captions I've created in the XML file. my captions show up without a problem, but whenever i put a link in the <caption> </caption> field, the whole caption doesn't

  • Hyperlink problem when converting Word to PDF

    Hi everyone. I am using Adobe Acrobat 7.0 Standard version 7.1.4 on a Windows 2000 environment. I am using Word XP/2002 SP3. I have a couple of problems when converting Word to PDF. When converting a long link which is in 2 lines, PDF just takes one

  • How do I get my macbook to stop scrolling up and down screens, mainly in safari, when hitting the space bar?

    every time I hit the space bar while in safari, my page scrolls down and then back up.  and when I hit the backspace/delete key, it takes me back to the previous page.  I need this to stop.  I cannot get anything done with this going on.

  • 8.1.7 LoadJava. Where do the class files get Stored

    I am using an 8.1.7 Database. I have class files in my database that were loaded using loadjava. I want to extract these class files to do a binary comparison. Does anyone know where a users schema the actual class files are stored. In 9i i believe t