Problem to Load the data Flat file to Oracle table on Linux Machine

hi,
when i change the path of source flat file from windows to Linux machine. Now it gives the error. Basicalyy this file will load the files names into Oracle table. but in windows path its fine. All things r running fine in Linux. when i run the interface it gives this>>>>>>>>
SQL*Loader: Release 11.2.0.1.0 - Production on Wed Dec 19 16:40:16 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
ORA-12162: TNS:net service name is incorrectly specified
Thanks
Regards,
Edited by: AMSI on Dec 19, 2012 6:01 AM

I assume you're using the "LKM file to Oracle SQL Loader".
For test purpose, can you just try with "LKM file to SQL" (slower) ?
We could check if the problem comes from the SQL Loader.
Your unix server has access to the oracle database ?

Similar Messages

  • Load the data from a transparent customised table in BW to an ODS

    Hi there,
    How can you load the data from a transparent customised table created in BW to an ODS.
    Many thanks.
    Sarah

    Hi,
    just create a generic datasource in rso2 for that table, replicate the datasource for source system 'myself', create a infosource and assign the new datasource to that infosource. Create a update rule from infosource to ods, create a infopackage and load the data.
    regards
    Siggi

  • OWB - Flat file to oracle table

    Second message, please read.
    OS- Microsoft windows 2000 5.00.2195 Service Pack 2
    OWB client---9.0.3.33.0
    OWB Repository--9.0.3.0.1
    Database--oracle 9i Enterprise Edition 9.0.1.3.1 with the partioning option Jserver Release9.0.1.3.0
    OEM--9.0.1.0.0
    I have created mapping between the source(flat file)and target(oracle)using Oracle Warehouse Builder. Mapping was validated, configured and it successfully generated without errors. The ‘Deploy’ button and the ‘Run’ button are disabled. How can I run/deploy this mapping ?
    The above OWB copy was downloaded from the Oracle corp website. Is this version an evaluation copy? Alternatively Is this a beta copy ?
    Please help.

    Dear All,
    I have a problem with loading flat files to oracle tables using OWB 9.2
    i created a map with my flat file as a source and my oracle table as a target,and i created a connector between the target location and the flat file location.And i deployed the connector and registered the flat file location using my PC information and the path of the files on my pc.
    I generated the map and saved the .ctl file and deployed the map,and hence trying to load the ctl file using the sql loader as the following:
    C:\Documents and Settings\CORAL 2000>sqlldr owb_rt_rep/owb_rt_rep@ofsa
    control = D:\oracle2\ofsa\owb\codegen\BM_DEBIT_CARDS_DAT_MAP.ctl
    ---where owb_rt_rep is my runtime repository user.
    I got the following error:
    SQL*Loader-350: Syntax error at line 18.
    Expecting "(", found ".".
    INTO TABLE "{{TRG_LOC1.Schema}}"."BM_DEBIT_CARDS_DAT"
    --where trg_loc1 is my target location and bm_debit_cards_dat is my target table.
    I tried to grant from the target schema the privelages to the runtime user incase its the problem,but still it didn't work.
    Any ideas??
    Dina Nagia
    Message was edited by:
    Dina Nagia

  • Map FLAT file to oracle table using 9.04 version - PLS HELP!!!!

    Hello all
    I am having a problem with mapping a flat file to oracle table. The validation is successful, when I go to Project/Deployment manager. Try to deploy the mapping itself and the target table. It said succesful, and the last step is another "Deploy", this one is fail. Saying could not locate the file (which is a flat file) , but it is there on the server.
    I have read all the help on line and follow what they show me, but still not work
    Any ideas? Please provide detail answer if you know it.
    Thank in advance

    Hallo,
    just give a rights on connector
    Variant 1
    1. connect to user sys
    2. grant read,write on directory <connector_name> to <target_schema>;
    or
    Variant 2
    1. as user sys or system give CREATE_ANY_DIRECTORY to <target_schema>
    2. manualy make CREATE DIRECTORY <connector_name> as '<full_path_to_directory>';
    and enjoy :)
    PS: <connector_name> you can take from script CREATE_TABLE wisch in Generation phase was created!
    Kirill

  • Conversion of fixed length flat files to oracle table

    hello friends
    Please help me getting the code for conversion of fixed length flat files to oracle table
    Should the tables be pre-defined ?????
    In this case the de-limiters are variable length spaces and not commas.Please help me with the same
    Regards,
    -Mahesh

    You can use SQL*Loader to load fixed-width files into Oracle. Instructions on writing appropriate control files are in the Oracle Utilities manual
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch03.htm#1004687
    You can also use external tables, assuming you're using 9i or later (the syntax for external table definitions is nearly identical to the syntax for SQL*Loader control files).
    You'll need to create a table definition in Oracle. You can either create a "normal" table and use SQL*Loader to populate it or you can create an external table definition.
    Justin

  • Extracting a flat file from oracle table

    I have moved the knowledge module KIM ISO SQL to FileAppend from the Metadata to my project folder.
    But when I create an interface mapping the oracle table and a flat file on a different unix server, in the drop down menu , it shows only KIM SQL TO SQL and KIM Control Append.It does not show up the SQL to FileAppend knowledge module option.
    What should I do to extract a flat file from oracle table?
    Thanks
    Hima
    Overstock.com

    All IKM in the Drop Down Menu are dependent of the target technology.
    A question, at this interface, is your target table a file ?

  • Problem in loading the jaxrpc war file - URGENT

    hi
    i am getting the exception when i tried to load the jaxrpc war file in JWSDP2.0 version.
    please see the following exception.
    javax.servlet.ServletException
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.init(JAXRPCServletDelegate.java:50)
    at com.sun.xml.rpc.server.http.JAXRPCServlet.init(JAXRPCServlet.java:40)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:919)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:811)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3288)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3468)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:545)
    at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:256)
    at org.apache.catalina.core.StandardHost.install(StandardHost.java:739)
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:474)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:381)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:780)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:339)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1194)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:705)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1186)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:339)
    at org.apache.catalina.core.StandardService.start(StandardService.java:496)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:699)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:497)
    at org.apache.catalina.startup.Catalina.execute(Catalina.java:397)
    at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
    [ERROR] http - -null <javax.servlet.ServletException>
    thanx in advance
    ~prasad

    Yes, that's true, but I think that happens because you deploy the web service in a non public area as your home directory. If you put it in a public area, your service should have 'running' status.
    Pedro Salazar.
    This is not a solution but I am posting this because
    this might help in guessing the cause of the error.
    I had similar problem. When I installed JWSDP, I
    copied the hello example from the tutorial example to
    my home directory. I also copied the "common"
    directory which is required by the build.xml.
    (common/target.xml is included in build.xml).
    Then I ran "ant build" and "ant install". I made
    required change in the "build.properties" in the
    "common" directory. But after this when I do "ant
    list" it shows me all the services running but this
    hello server as stopped.
    Then I copied the war file of the service (generated
    using "ant package") to the <JWSDP_HOME>/webapps. Then
    "ant list" showed me the hello service as running. I
    don't know why this is happening.
    regards
    Pankaj

  • Problem while loading the data

    Hi Gurus,
    I am facing aproblem in PSA.Acctually the problem is that when we are  loading the data from R/3 to BI side sold to party errors were occured.I edited that error records and manual update done.But in cube manage i find that trasfore records are only 6 which are edited in PSA and added recordrs are 2651.But in that datapacket total records are 3061.
    My cube was rollup also.
    pls give my solution.I'll assigne points.
    Regards
    Roy

    Hi Raj,
    No need to match  datapacket total records to your target.Because depend on the design records are going to change.
    Thnx,
    Assign points if useful.

  • Date problem while loading the data

    Hi Guys,
    When we are extraction the data from the DataSource  0CRM_SALES_ACT_1, it is giving an error for 0calday.
    If the date is greater than 2012, it is giving an error. i.e., it is taking date upto 31.12.2012. If the date is greater than that date is giving an error as "date is later than factory calendar definition".
    In that case we are modifying the date in the PSA and make date less than 2013 and loading the data.
    Even we have done Transfer Global setting at the source system and we checked the factory calendar in SCAL tcode it is setup to 2098.
    Can you please advice how to solve the problem when we are loading the date which is greater than 31.12.2012.
    Thanks in advance
    Jagan

    Hi Jagan,
    In the info package selections tab.
    for 0CALDAY field give to value as 31.12.9999 and try loading you will get all the records
    Regards,
    Venkatesh

  • Conversion of csv in flat file to oracle table format

    hi friends
    I have written a C code for conversion of flat file data to Comma seperated values
    Now i have to put this .csv file into oracle tables.
    Please suggest me a solution to this so that i can put this values into oracle tables
    Regards,
    Mahesh

    You can use Sql*Loader (sqlldr) :
    TEST@db102 SQL> create table test (a varchar2(30), b varchar2(30), c varchar2(30));
    Table created.
    TEST@db102 SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    $ cat test.csv
    aaa,bbb,ccc
    ddd,eee,fff
    111,222,333
    $ cat test.ctl
    load data
    infile 'test.csv'
    replace into table test
    fields terminated by ','
    (a char, b char, c char)
    $ sqlldr test/test control=test.ctl
    SQL*Loader: Release 10.2.0.1.0 - Production on Wed Mar 8 15:42:42 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Commit point reached - logical record count 3
    $ sqlplus test/test
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Mar 8 15:42:48 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    TEST@db102 SQL> select * from test;
    A                    B                    C
    aaa                  bbb                  ccc
    ddd                  eee                  fff
    111                  222                  333
    TEST@db102 SQL>                                                                                                             But probably there's no need to convert the flat file to csv...

  • SSIS package to order all the CSV files based on their date of creation/modification mentioned in a filename and load the least recent file in oracle Destination

    HI,
    I need a help for creating SSIS package which has flat file source (specifically , delimited csv files) which are placed in a shared folder
    having file names as  File_1_2015-04-30 08:54:13.900.csv, File_2_2015-04-30 07:54:13.900.csv.
    So, I wanted to use foreach loop to find out the oldest file amongst that(through script task) and need to transform that file in Oracle Destination. After that, I want to archive that file and need to continue this action uptil the most recent file gets
    loaded in destination.
    So, Could you guys please guide me?
    Thanks in advance

    I'd say you need two loops, one to cycle through all the files and collect their names. Then sort them based on your criterion
    Perhaps you can start by seeing http://www.sqlis.com/sqlis/post/Looping-over-files-with-the-Foreach-Loop.aspx
    Collect the file names into a Recodset Destination, then shred it http://www.sqlis.com/sqlis/post/Shredding-a-Recordset.aspx
    perhaps you need an outer loop to iterate over each file to compare the files for dates.
    Do each piece and post here where you needed to stop.
    Arthur
    MyBlog
    Twitter

  • Loading Date fields from flat file to Oracle tables

    Hi,
    I have a flat file with a few date columns. I have given the format for the date field while creating the data store for the flat file. The format I used is 'YYYY-MM-DD'.
    But I get an error when I execute it after associating the module with LKM & IKM.
    The error message is as follows:
    org.apache.bsf.BSFException: exception from Jython: Traceback (innermost last):
    File "<string>", line 3, in ?
    OS command has signalled errors
    Can anyone help me out.
    Thanks

    At the time of DataStore creation. You take that date field as string.
    After this, in interface, when you map this date field with table field. You should use CONVERT(<field name>,DATE) in expression editor.

  • Problem in loading the data into Infocube. 3.5 BW

    Performed full load to Infocube but unable to get total records. For example from 1000 records got 990 records. In PSA it shows 1000 records. Request has performed no-errors.
    Thanks in advance.

    Hi Ahmed,
    Infocube stores data in aggregated level, which means the key figures will be summed up instead of overwriting. The same property can be checked in your transformation rule types and make sure that the Aggregation Type is "Summation' and not "Overwrite". Please check for the summation of any one of your keyfigures and compare the same with that of PSA's Sum. If you find any difference then try to filter out records with smaller selections so that you can identify where the data is incorrect. Then probably you can take some corrective actions accordingly.
    Regards,
    Banu.

  • Create flat file from oracle table data

    d_adp_num char(10)
    d_schd_date char(8)
    d_sched_code char(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 char(6)
    select payroll_id,
    schedule_date,
    reason_code ,(sched_code)
    reason_code, (pay_code)
    start_time,
    end_time,
    total_hours,
    site_code,
    department_id
    from dept_staff
    where schedule_date between (sysdate+1) and (sysdate+90)
    loading some data instead for the date range.
    sched_code - 'Unavailable' if reason_code = 'OD' and 'LA'
    pay_code - 'BD Berevevement' if reason_code = 'BD'
    'UP Unexcused PTO' if reason_code = 'UP'
    'RG' if reason_code = 'SH'
    'PTO' if reason_code = 'VA'
    these are a few.....
    start_time and end_time - convert into military time
    based on start_ampm and end_ampm
    Based on this, I need help to create a flat file. Attaching sample of flat file and data from dept_staff
    If site_code is there then no need to get department_id( see sample flat file)
    sample data for flat file
    ZZW002324006072012 PTO
    0800160008.00
    ZZW002428106072012 RG
    1015174507.50HM34
    ZZW002391606072012 RG
    1100193008.50
    ZZW002430406072012 RG
    1100193008.50 130000
    dept_staff table data
    PAYROLL_ID     SCHEDULE_DATE     REASON_CODE     REASON_CODE_1     START_TIME     START_AMPM     END_TIME     END_AMPM     TOTAL_HOURS     SITE_CODE     DEPARTMENT_ID
    ZZW0024468     6/8/2012     SH     SH     730     A     400     P     850          12
    ZZW0000199     6/8/2012     SH     SH     730     A     400     P     850          14
    ZZW0023551     6/8/2012     SH     SH     1145     A     930     P     975     GH08     95
    ZZW0024460     6/8/2012     SH     SH     515     A     330     P     1025     GH08     95
    ZZW0023787     6/8/2012     SH     SH     630     A     300     P     850          24
    ZZW0024595     6/8/2012     TR     TR     730     A     400     P     850          90
    ZZW0023516     6/8/2012     OD     OD     800     A     400     P     800          95
    ZZW0023784     6/8/2012     OD     OD     800     A     400     P     800          5
    ZZW0024445     6/8/2012     SH     SH     1145     A     930     P     975     GH08     5
    ZZW0024525     6/8/2012     OD     OD     800     A     400     P     800          23
    ZZW0024592     6/8/2012     TR     TR     730     A     400     P     850          5
    ZZW0024509     6/8/2012     SH     SH     830     A     330     P     700     MK21     95
    ZZW0023916     6/14/2012     SH     SH     1100     A     730     P     850          27

    user_anumoses wrote:
    Any examples, please provide? Thankshttp://www.lmgtfy.com/?q=oracle+utl_file+example
    Handle:     user_anumoses
    Status Level:     Newbie
    Registered:     Jun 9, 2009
    Total Posts:     155
    Total Questions:     60 (55 unresolved)
    why so MANY unanswered questions?

  • SSIS - Exporting Data into flat files from Oracle Table as batchwise process

    Hi All,
    Thanks in advance.
    I have a Large Table in Oracle Database with some 3 Lakhs record. I need to fetch the 10,000 records for every iteration and export it into the flat file. This process should occur recursively until the table becomes empty.
    Hence, For every iteration on flat file to be generated with 10,000 records.
    Please help how to proceed further in SSIS.
    Thanks
    Pyarajan.S

    Yes, it always helps if your question doesn't specify the actual requirements...
    Use the FOR loop container to control the iterations of the data flow. For each run you read 10,000 rows from the table and dump them in a flat file. Either move the flat file, or use an expression on the flat file connection manager to give them dynamic
    file names.
    30 million rows is also not a problem by the way, it just takes a bit longer.
    MCSE SQL Server 2012 - Please mark posts as answered where appropriate.

Maybe you are looking for