ORA-12899 error from function invoked from SQL*Loader

I am getting the above error when I call a function from my SQL*Loader script, and I am not seeing what the problem is. As far as I can see, there should be no problem with the field lengths, unless the length of the automatic variable within my function is somehow being set at 30? Here are the details (in the SQL*Loader script, the field of interest is the last one):
====
Error:
====
Record 1: Rejected - Error on table TESTM8.LET_DRIVE_IN_FCLTY, column DIF_CSA_ID.
ORA-12899: value too large for column "TESTM8"."LET_DRIVE_IN_FCLTY"."DIF_CSA_ID" (actual: 30, maximum: 16)
=======
Function:
=======
CREATE OR REPLACE FUNCTION find_MCO_id (di_oid_in DECIMAL)
RETURN CHAR IS mco_id CHAR;
BEGIN
SELECT AOL_MCO_LOC_CD INTO mco_id
FROM CONV_DI_FLCTY
WHERE DIF_INST_ELMNT_OID = di_oid_in;
RETURN TRIM(mco_id);
END;
==============
SQL*Loader Script:
==============
LOAD DATA
INFILE 'LET_DRIVE_IN_FCLTY.TXT'
BADFILE 'LOGS\LET_DRIVE_IN_FCLTY_BADDATA.TXT'
DISCARDFILE 'LOGS\LET_DRIVE_IN_FCLTY_DISCARDDATA.TXT'
REPLACE
INTO TABLE TESTM8.LET_DRIVE_IN_FCLTY
FIELDS TERMINATED BY '~' OPTIONALLY ENCLOSED BY '"'
DIF_DRIVE_IN_OID DECIMAL EXTERNAL,
DIF_FCLTY_TYPE_OID DECIMAL EXTERNAL NULLIF DIF_FCLTY_TYPE_OID = 'NULL',
DIF_INST_ELMNT_OID DECIMAL EXTERNAL,
DIF_PRI_PERSON_OID DECIMAL EXTERNAL NULLIF DIF_PRI_PERSON_OID = 'NULL',
DIF_SEC_PERSON_OID DECIMAL EXTERNAL NULLIF DIF_SEC_PERSON_OID = 'NULL',
DIF_CREATE_TS TIMESTAMP "yyyy-mm-dd-hh24.mi.ss.ff6",
DIF_LAST_UPDATE_TS TIMESTAMP "yyyy-mm-dd-hh24.mi.ss.ff6",
DIF_ADP_ID CHAR NULLIF DIF_ADP_ID = 'NULL',
DIF_CAT_CLAIMS_IND CHAR,
DIF_CAT_DIF_IND CHAR,
DIF_DAYLT_SAVE_IND CHAR,
DIF_OPEN_PT_TM_IND CHAR,
DIF_CSA_ID CONSTANT "find_MCO_id(:DIF_DRIVE_IN_OID)"
============
Table Definitions:
============
SQL> describe CONV_DI_FLCTY;
Name Null? Type
DIF_INST_ELMNT_OID NOT NULL NUMBER(18)
AOL_MCO_LOC_CD NOT NULL VARCHAR2(3)
SQL> describe LET_DRIVE_IN_FCLTY;
Name Null? Type
DIF_DRIVE_IN_OID NOT NULL NUMBER(18)
DIF_INST_ELMNT_OID NOT NULL NUMBER(18)
DIF_FCLTY_TYPE_OID NUMBER(18)
DIF_ADP_ID VARCHAR2(10)
DIF_CAT_DIF_IND NOT NULL VARCHAR2(1)
DIF_CAT_CLAIMS_IND NOT NULL VARCHAR2(1)
DIF_CSA_ID VARCHAR2(16)
DIF_DAYLT_SAVE_IND NOT NULL VARCHAR2(1)
DIF_ORG_ENTY_ID VARCHAR2(16)
DIF_OPEN_PT_TM_IND NOT NULL VARCHAR2(1)
DIF_CREATE_TS NOT NULL DATE
DIF_LAST_UPDATE_TS NOT NULL DATE
DIF_ITM_FCL_MKT_ID NUMBER(18)
DIF_PRI_PERSON_OID NUMBER(18)
DIF_SEC_PERSON_OID NUMBER(18)
=========================
Thanks for any help with this one!

I changed one line of the function to:
RETURN CHAR IS mco_id VARCHAR2(16);
But I still get the same error:
ORA-12899: value too large for column "TESTM8"."LET_DRIVE_IN_FCLTY"."DIF_CSA_ID" (actual: 30, maximum: 16)
I just am not seeing what is being defined as 30 characters. Any ideas much appreciated!

Similar Messages

  • DBMS_LDAP call fails with ORA-06512 Error Mapping function

    Hi,
    I am facing a problem with workflow integration with LDAP.
    I receive
    ORA-6512 Error Mapping Function on one particular line within the WF_LDAP.get_cfg_val procedure.
    WHILE my_entry IS NOT NULL
    LOOP
    my_vals := DBMS_LDAP.get_values (p_session,
    my_entry,
    p_name);
    The documentation says:
    ORA-06521 PL/SQL: Error mapping function
    Cause: An error was detected by PL/SQL trying to map the mentioned
    function dynamically.
    Action: Check the stacked error (if any) for more details.
    This is the trace of the error:
    ORA-06521 PL/SQL Error mapping Function
    ORA-06512 at SYS.DBMS_LDAP_API_FFI line 0
    ORA-06512 at SYS.DBMS_LDAP line 1332
    ORA-06512 at SYS.DBMS_LDAP line 1302
    ORA-06512 at SYS.DBMS_LDAP line 582
    This is the header of the catldap.sql file
    Rem
    Rem $Header: catldap.sql 07-jan-2000.19:15:20 akolli Exp $
    Rem
    Rem catldap.sql
    Rem
    Rem $Header: dbmsldap.sql 14-dec-2001.23:25:22 rbollu Exp $
    Rem
    Rem dbmsldap.sql
    Rem
    This is the output while running it (No errors):
    Library created.
    Package created.
    Package created.
    Package created.
    Package body created.
    Package body created.
    Package body created.
    Synonym created.
    Grant succeeded.
    Synonym created.
    Grant succeeded.
    Database is :
    compatible 9.2.0.0.0
    Am I missing something?
    I have searched all the forums and although there are many references to "Error Mapping Function", noone has reported it in the context of WF - LDAP Integration. So I am not sure how to proceed.
    Please help.
    thanks in advance,
    Libin

    Hi Libin,
    Can you please explain to me the parameters that you put in the Global Preferences, the LDAP_port,LDAP_user,and the others, because I don�t know where I need to search in the server this parameters and I don�t understand su much of OID.
    if you can give to me and little description of that parameters,this would thank for much.
    anticipated thanks
    Arlet

  • ORA-12571 error while creating packages from Windows clients

    Hello,
    We are facing the ORA-12571 error while creating / replacing packages from Windows Clients connected to a 8.1.7.2.0 db on a Solaris server.
    However, there are
    1. no errors in connecting and creating transactions from a Sql session
    2. no errors in creating / replacing unwrapped/wrapped small (few lines) packages
    3. no errors in connecting from a Unix session (remote telnet sessions inclusive).
    This happens only when creating wrapped/unwrapped packages, source code of which is greater than 500 kb approx.
    Can somebody help me resolve this issue. Any Help would be greatly appreciated.
    Regards.
    Lakshmanan, K

    Update: I had unintentionally left my custom tablespace in READONLY state after an earlier experiment with transportable tablespaces. After putting the tablespace back into READ WRITE mode and creating a new template, I was successfully able to create a new db from the template.
    I'm still a little curious why this procedure wouldn't work properly with a READONLY tablespace, however.
    Ben

  • ORA-20100: Error occurred while parsing (from xml in custom schema)

    Hi,
    I am using xmlParser and xmlDom to extract information from xml document. My whole process works perfectly in the APPS schema on the Oracle e-Business Suite. The minute I move it to a custom schema (ie new User) I get this error.
    ORA-20100: Error occurred while parsing: Element '' used but not declared.
    This only occures at runtime. I am pretty sure I grant the correct SELECT and EXECUTE privileges to this Schema. If I hadn't then it would not compile. It compiles without errors on the Database.
    Any help will be appreciated.
    Thanks in advance.
    Regards
    Dave

    I just tried this again. I have Oracle9i 9.0.1.1 on my Windows
    2000 laptop.
    I went to OTN and downloaded the XDK 9.0.2D for PL/SQL
    I used loadjava to load the \oracle\ora90\rdbms\jlib\xdb_g.jar
    file into the database (shouldn't have had to do this) into the
    XMLBOOK account. Filed a bug for needing to do this by hand.
    I ran "xdkload.bat" with xmlbook/xmlbook as the username/password
    I made sure the proxy server name was set correctly in the
    example (if you don't need a proxy server, comment out that line
    in the parse_xml_news.sql example, or that could cause your
    error!!)
    I ran the parse_xml_news.sql script, and I get:
    Top Stories on XML from Moreover.com on December 21st, 2001
    ( 1) CEO highlights Mercator Softwares single biggest opportunity
    ( 2) WWRE Chooses webMethods
    ( 3) WebMethods, retail exchange ink deal
    ( 4) Worldwide Retail Exchange Chooses webMethods
    ( 5) Worldwide Retail Exchange Chooses webMethods
    ( 6) WorldWide Retail Exchange choses webMethods for integration
    ( 7) XML: Wherever You Go, There You Are
    ( 8) Chap. 13: Metadata
    ( 9) Enterprise Adoption of XML Made Simple
    (10) XML Databases
    (11) Using CSS2 to display XML documents
    (12) How XML could bring an end to all of your troubles
    (13) Effort Launched To Bring Classic Macs Rich Metadata To Mac
    (14) Sneak attack on Pearl Harbor roused publics anger, resolve
    (15) Drug dogs whiff worth $230,000
    (16) PORTLAND Police target
    (17) 11-year-old cant seem to get out of jury duty
    (18) Another casualty of war: Proposed waterfront museum
    (19) webMethods Establishes Sales Operations in Brussels
    (20) Using Emacs for XML documents
    (21) Gates: XML could be everything we dreamed...
    (22) XML: The end of all your troubles?
    (23) Java XML
    (24) Tool To Compare XML Files
    (25) Fairfax County Sends webMethods to School
    (26) webMethods Embraces Web Services
    (27) WebMethods Supports Web Services
    (28) Accessing metadata through Reflection
    (29) When format is foremost
    (30) Views from Abroad: XML Pipelines and Delta XML

  • ORA-01092 error while upgrading database from 9.2.0.6 to 10.2.0.1

    Hi ,
    Am getting ORA-01092 error while upgrading database to 10.2.0.1 from 9.2.0.6
    I executed the catupgrd.sql successfully and recompiled invaild objects.
    After that i tried to startup the database,but am getting the error:
    sql>startup
    oracle instance started
    database mounted
    ORA-01092 : Oracle instance terminated. Disconnection forced
    I checked alert log file.
    I am getting the following errors
    Errors in file /u01/......./udump/VIS_ora/7179.trc
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00607: internal error occurred while making change to a datablock
    ORA-00600: internal error code, arguments [4194],[70] ,[39] [ ] []
    Error 604 happened during database open . Shutting down database
    instance terminated by USER pid =7179
    ORA-01092 error Signaled during alter database open
    Is there any block corruption? could u please share the solution for these errors?

    Hi;
    You are hitting ORA-00600: error which mean you may need to work oracle support for your issue.Pelase check below note if its not help i suggest rise sr
    Troubleshoot an ORA-600 or ORA-7445 Error Using the Error Lookup Tool [ID 153788.1]
    Regard
    Helios

  • Ora -20001 error coming while updating from a tabular form

    Hi
    I have a tabular form , which updates a table in the database.
    Whenever I update the record first time I getting an error as
    Error in MRU internal routine ORA-20001.Error in MRU:row=1,
    ORA-1403 no_data_found, update abc.sale_forcast_temp set "PK_ID"=:b1,"W27"=:b2
    Error unable to update process
    But when I press Ok return to the form and then again try to update , records gets successfully updated
    Regards
    Shashi

    Kamal,
    This will be the pseudocode.
    Procedure A()
    select * from EMP bulk collect into records_array; --Of type RECORD_ARRAY
    batch_count = (records_array.length) / batch_size;
    --batch_size is say 5000 rows and batch_count is the number of batches  
    for i in 1..(batch_count+1)
    B( records_array);
    C();
    commit;
    Procedure B(records_array in RECORD_ARRAY )
    INSERT /*+PARALLEL(EMP_DUMMY, 2) */
    INTO TABLE EMP_DUMMY
    SELECT * from TABLE(CAST(records_array as RECORD_ARRAY) ;
    Procedure C()
    Other operations which include reads on the EMP_DUMMY table;
    This is the top view of how it looks like. Actually the Select statement for the insert statement is very complex and I do a join on the records that are being passed in by casting it into a table. This query is taking about 40 minutes for 10,000 rows in the records_array. I need to parellelise this query because each row of the records_array yields a different row for the EMP_DUMMY table.
    I hope that I made it clear for you.
    Can you also tell me if procedure C in which I shall be doing a read on the EMP_DUMMY table, has any affect of the parallel insert
    Thanks for your help.

  • Scrip Error when Action invoked from Bridge Image Processor

    I am running Photoshop CC and while I can create a new simple Action and execute it successfully, if the same Action is invoked from the Image processor in Bridge, the Action fails witha script error and messaeg "Sorry, I could not proecess the following file: xxxxxxxxxxxx"  In CS6 this used to be related to History entry size  but it is not the same in CC.  I can execute other actions but NOT the one I just created, no matter how simple it is.  Help! 

    After renew settings in preferences the basic set from PS is active. Go trough it and look around what you can use, explore it.
    Most important is scratch disk setting, ammount of RAM and I find it useful to change the cursor setting to the last checkboxes.
    Read the manual that came with your copy and or try one of the thousands tutorials that are available either free or for sale. There are very good DVD's that shows you the screen from the teacher on your own screen and so you can see what he or she does. Total Training is a good start but there are others.
    start here and find your way: http://www.adobe.com/training/

  • How can I invoke a sql loader from oracle form?

    I'm got a problem on invoking sql loader command from oracle form where the sql loader product has been installed in Window NT.
    Thanks for your help!

    U can use HOST procedure with NO_SCREEN option.
    this will go like
    Host('d:\orant\bin\SQLLDR80 USERID=username/password@connect CONTROL=contril_file.CTL LOG=log_file.LOG discard=discard_file.dis bad=bad_file.bad', NO_SCREEN);
    Hope this will Work
    Good Luck :-)
    Naren

  • ORA-01041 Error while query in PL/SQl Developer

    Hi All,
    I am trying to execute a simple select statement in PL/SQL developer. After the query gets executed i am getting a error
    ORA-01041 internal error. hostdef extension doesn`t exist.
    But when i perform the same query in sqlplus, i do not receive this kinda error.
    Does any 1 have a idea on this error?
    Regards,
    Ritesh Khuller

    PL/SQL Developer is a third-party tool and not from oracle.
    maybe you have better chances in the rdbms-forum where they know more about hostdef's
    PL/SQL
    General Database Discussions

  • ORA-12899 error

    I am getting this error:
    ERROR at line 61:
    ORA-12899: value too large for column "T1600"."S1_CONTRACT"."DEFAULT_TERM_CODE_FLAG" (actual: 3, maximum: 1)
    However, when i run this script:
    select contract_nbr, DEFAULT_TERM_CODE_FLAG, length(DEFAULT_TERM_CODE_FLAG)
    from tmp_contract
    where length(DEFAULT_TERM_CODE_FLAG) <> 1;
    I get this result:
    T1600@testers11g> T1600@testers11g> T1600@testers11g> T1600@testers11g> T1600@testers11g> T1600@testers11g>
    no rows selected
    I do not understand this.
    Environment:
    Oracle 11.2.0.2
    Windows 64-bit

    Your columns are positionally off from what you think they are. Count and number them. Put the columns in the correct order in the query.
    default_term_code_flag is the 26th from the bottom in the top part.
    tariff_multiplier is the 26th from the bottom in the query.
    INSERT INTO s1_contract (contract_nbr,
                             contract_id,
                             plc_id,
                             contract_type,
                             pricing_type_code,
                             contract_date,
                             commodity_id,
                             pricing_status_code,
                             contract_status,
                             activity_status_code,
                             trader_id,
                             vendor_customer_id,
                             contract_reference,
                             quantity,
                             quantity_uom,
                             price_future,
                             price_basis,
                             price,
                             market_month,
                             iv_pricing_point_code,
                             ship_mode_code,
                             schedule_code,
                             remarks,
                             hold_flag,
                             expedite_flag,
                             confirm_pricing_flag,
                             weight_govern_nbr,
                             grade_govern_nbr,
                             protein_govern_nbr,
                             gl_acct_nbr,
                             commodity_note_code,
                             add_by,
                             add_date,
                             change_by,
                             change_date,
                             number_of_loads,
                             delivery_vehicle_code,
                             sched_ship_start_date,
                             sched_ship_end_date,
                             shipment_note,
                             ship_to_id,
                             market_zone_frt_adj,
                             fob_point,
                             spec_org_flag,
                             trade_rule_nbr,
                             contract_schedule,
                             broker_id,
                             broker_rate,
                             broker_uom_code,
                             broker_currency_code,
                             signed_flag,
                             printed_flag,
                             currency_code,
                             initial_price,
                             contract_format_nbr,
                             grade,
                             bill_to_id,
                             schedule_date,
                             protein_table_nbr,
                             protein_date,
                             schedule_type,
                             protein_type,
                             settle_surplus_flag,
                             tolerance_quantity,
                             weight_govern_status,
                             grade_govern_status,
                             manual_close_flag,
                             workback_flag,
                             alternate_ship_mode_code,
                             load_based_flag,
                             term_code,
                             contract_format_code,
                             buy_exchange_rate,
                             sell_exchange_rate,
                             other_exchange_rate,
                             storage,
                             crc_data,
                             alt_basis_price,
                             alt_futures_price,
                             alt_price,
                             qty_price_conv_factor,
                             alt_price_uom,
                             alt_sales_carry,
                             sales_carry,
                             sales_carry_month,
                             broker_contract,
                             broker_paid_by_status,
                             broker_contact_id,
                             farm_gate_deduction,
                             dp_from_date,
                             dp_to_date,
                             sales_carry_string,
                             settlement_relationship,
                             pickup_flag,
                             rolled_flag,
                             dp_printed_flag,
                             paid_ticket_flag,
                             settlement_eligible_flag,
                             additional_contract_desc,
                             deduction_addition_amount,
                             vc_contact_id,
                             product_disc_prem_date_status,
                             product_disc_prem_date,
                             last_print_date,
                             alt_unit_value,
                             unit_value,
                             cross_application_flag,
                             area_uom_code,
                             area_unit_nbr,
                             tax_schedule_id,
                             bot_uom,
                             ps_nbr,
                             original_contract_nbr,
                             mirror_contract_nbr,
                             rpa_flag,
                             rpa_status,
                             back_to_back_contract_nbr,
                             od_description,
                             hold_advance_settlement_flag,
                             misc_column_item_nbr1,
                             misc_column_item_nbr2,
                             misc_column_item_nbr3,
                             misc_column_item_nbr4,
                             misc_column_item_nbr5,
                             misc_column_item_nbr6,
                             print_futures_flag,
                             species_serial_nbr,
                             species_count,
                             freight_term_serial_nbr,
                             city,
                             state_province_code,
                             email_status,
                             last_email_date,
                             advance_price,
                             alt_advance_price,
                             misc_column_item_nbr7,
                             misc_column_item_nbr8,
                             misc_column_description1,
                             misc_column_description2,
                             misc_column_description3,
                             misc_column_description4,
                             misc_column_description5,
                             misc_column_description6,
                             misc_column_description7,
                             misc_column_description8,
                             default_term_code_flag,  -----------   26th
                             tariff_multiplier,
                             call_option_month,
                             strike_price,
                             call_option_date,
                             call_option_time,
                             call_option_am_pm,
                             call_option_time_zone,
                             second_quantity,
                             second_option_month,
                             second_alt_futures_price,
                             second_date,
                             second_time,
                             second_am_pm,
                             second_time_zone,
                             min_premium_price_status,
                             ivc_last_received_cost,
                             delivery_point_id,
                             delivery_point_mandatory_flag,
                             contract_term_serial_nbr,
                             program_schedule_serial_nbr,
                             add_client_account_id,
                             change_client_account_id,
                             sales_carry_limit_date,
                             alt_standard_cost,
                             sop_contract_nbr)
       SELECT contract_nbr,
              contract_id,
              plc_id,
              contract_type,
              pricing_type_code,
              contract_date,
              commodity_id,
              pricing_status_code,
              contract_status,
              activity_status_code,
              trader_id,
              vendor_customer_id,
              contract_reference,
              ROUND (quantity, 6),
              quantity_uom,
              price_future,
              price_basis,
              price,
              market_month,
              iv_pricing_point_code,
              ship_mode_code,
              schedule_code,
              remarks,
              hold_flag,
              expedite_flag,
              confirm_pricing_flag,
              weight_govern_nbr,
              grade_govern_nbr,
              protein_govern_nbr,
              gl_acct_nbr,
              commodity_note_code,
              add_by,
              add_date,
              change_by,
              change_date,
              number_of_loads,
              delivery_vehicle_code,
              sched_ship_start_date,
              sched_ship_end_date,
              shipment_note,
              ship_to_id,
              market_zone_frt_adj,
              fob_point,
              spec_org_flag,
              trade_rule_nbr,
              contract_schedule,
              broker_id,
              broker_rate,
              broker_uom_code,
              broker_currency_code,
              signed_flag,
              printed_flag,
              currency_code,
              initial_price,
              contract_format_nbr,
              grade,
              bill_to_id,
              schedule_date,
              protein_table_nbr,
              protein_date,
              schedule_type,
              protein_type,
              settle_surplus_flag,
              ROUND (tolerance_quantity, 6),
              weight_govern_status,
              grade_govern_status,
              manual_close_flag,
              workback_flag,
              alternate_ship_mode_code,
              load_based_flag,
              term_code,
              contract_format_code,
              buy_exchange_rate,
              sell_exchange_rate,
              other_exchange_rate,
              storage,
              crc_data,
              alt_basis_price,
              alt_futures_price,
              alt_price,
              qty_price_conv_factor,
              alt_price_uom,
              alt_sales_carry,
              sales_carry,
              sales_carry_month,
              broker_contract,
              broker_paid_by_status,
              broker_contact_id,
              farm_gate_deduction,
              dp_from_date,
              dp_to_date,
              sales_carry_string,
              settlement_relationship,
              pickup_flag,
              rolled_flag,
              dp_printed_flag,
              paid_ticket_flag,
              settlement_eligible_flag,
              additional_contract_desc,
              deduction_addition_amount,
              vc_contact_id,
              product_disc_prem_date_status,
              product_disc_prem_date,
              last_print_date,
              alt_unit_value,
              unit_value,
              cross_application_flag,
              area_uom_code,
              area_unit_nbr,
              tax_schedule_id,
              bot_uom,
              ps_nbr,
              original_contract_nbr,
              mirror_contract_nbr,
              rpa_flag,
              rpa_status,
              back_to_back_contract_nbr,
              od_description,
              hold_advance_settlement_flag,
              misc_column_item_nbr1,
              misc_column_item_nbr2,
              misc_column_item_nbr3,
              misc_column_item_nbr4,
              misc_column_item_nbr5,
              misc_column_item_nbr6,
              print_futures_flag,
              species_serial_nbr,
              species_count,
              freight_term_serial_nbr,
              city,
              state_province_code,
              email_status,
              last_email_date,
              advance_price,
              alt_advance_price,
              misc_column_item_nbr7,
              misc_column_item_nbr8,
              misc_column_description1,
              misc_column_description2,
              misc_column_description3,
              misc_column_description4,
              misc_column_description5,
              misc_column_description6,
              misc_column_description7,
              misc_column_description8,
              tariff_multiplier, ---------------------------- 26
              default_term_code_flag,  ----------------- 25
              call_option_month,
              strike_price,
              call_option_date,
              call_option_time,
              call_option_am_pm,
              call_option_time_zone,
              ROUND (second_quantity, 6),
              second_option_month,
              second_alt_futures_price,
              second_date,
              second_time,
              second_am_pm,
              second_time_zone,
              min_premium_price_status,
              ivc_last_received_cost,
              delivery_point_id,
              delivery_point_mandatory_flag,
              contract_term_serial_nbr,
              program_schedule_serial_nbr,
              add_client_account_id,
              change_client_account_id,
              sales_carry_limit_date,
              alt_standard_cost,
              sop_contract_nbr
         FROM tmp_contract
    /

  • Not loading from flat file using SQL*Loader

    Hi,
    I am trying to load from an excel file.
    first i converted excel file into csv file and save it as as dat file.
    in the excel file one column is salary and the data is like $100,000
    while converting xls to csv the salary is changed to "$100,000 " (with quotes and a space after the amount)
    after the last digit it will put a space.
    in the control file of sql*loader i had given
    salary "to_number('L999,999')"
    my problem is the space after the salary in the dat file.---> "$100,000 "
    what changes i have to make in the to_number function which is in the control file.
    Please guide me.
    Thanks & Regards
    Salih KM
    Message was edited by:
    kmsalih

    Thanks a lot Jens Petersen
    It's is loading ..........
    MI means miniute.
    am i correct.
    but i didn't get the logic behind that.
    can u please explain that.
    Thanks & Regards
    Salih KM

  • How to Load Arabic Data from flat file using SQL Loader ?

    Hi All,
    We need to load Arabic data from an xls file to Oracle database, Request you to provide a very good note/step to achieve the same.
    Below are the database parameters used
    NLS_CHARACTERSET AR8ISO8859P6
    nls_language american
    DB version:-10g release 2
    OS: rhel 5
    Thanks in advance,
    Satish

    Try to save your XLS file into CSV format and set either NLS_LANG to the right value or use SQL*Loader control file parameter CHARACTERSET.
    See http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_control_file.htm#i1005287

  • Convert from sybase bcp to sql*loader

    I'm an oracle newbie. (Oracle 8i, HP Unix)
    Is there any way to convert sybase bcp format
    files into sql*loader control files? If not
    is there any way to take an existing table
    description and generate a sql*loader control file from it? If anyone has already written a procedure or knows where one can be found I'd really appreciate it. We're doing a mass conversion from sybase to oracle and would like an easy way to re-write all our loads.
    Thanks! Eileen from Polaroid.

    The Oracle Migration Workbench will produce the appropriate bcp and sqlldr scripts if you are using the workbench for the migration. The latest workbench runs on windows but can connect to sybase on unix and oracle on unix over the network.
    Turloch
    Oracle Migration Workbench Team

  • Loading from text file using Sql Loader

    I need to load data from a text file into Oracle table. The file has long strings of text in the following format:
    12342||||||Lots and lots of text with all kinds of characters including
    ^&*!#%#^@ etc.xxxxxxxxxxxxxxxxxxxxxxx
    yyyyyyyyyyyyyyyyyyyyyyyyytrrrrrrrrrrrrrrrrrrr
    uuuuuuuuuuuuuuuuuuurtgggggggggggggggg.||||||||
    45356|||||||||||again lots and lots of text.uuuuuudccccccccccccccccccccd
    gyhjjjjjjjjjjjjjjjjjjjjjjjjkkkkkkkkkkkkklllllllllllnmmmmmmmmmmmmnaaa|||||||.
    There are pipes within the text as well. On the above example, the line starting with 12342 is an entire record that needs to be loaded into a CLOB column. The next record would be the 45356 one. Therefore, all records have a bunch of pipes at the end, so the only way to know where a new record starts is to see where the next number is after all the ending pipes. The only other thing I know is that there are a fixed number of pipes in each record.
    Does anyone have any ideas on how I can load the data into the table either using sql loader or any other utility? Any input would be greatly appreciated. Thanks.

    STFF [url http://forums.oracle.com/forums/thread.jspa?messageID=1773678&#1764219]Sqlldr processing of records with embedded newline and delimiter

  • Invoking Oracle SQL Loader

    I am looking at doing some re-factoring on data load process for inventory feed. Current process takes over an hour to process the file.
    My thought is to go down this road
    1. Using Oracle SQL Loader - load the inventory data into a temp table
    2. Using a view to create the differences between ATG Inventory repository and what is in the temp table
    3. Using the results to update the ATG Inventory stock levels
    So questions are
    1. Is it possible to call the Oracle SQL Loader from a ATG service component - if so how?
    2. Would it be better/faster/possible to create the difference when loading the temp tables
    3. How to create ATG view?

    user7047382 wrote:
    Hello,
    I am trying to load a CSV file located on my C:\ drive on a WIndows XP system into an 'external table'. Everyting used to work correctly when using Oracle XE (iinstalled also locally on my WIndows system).
    However, once I am trynig to load the same file into a Oracle 11g R2 database on UNIX, I get the following errr:
    ORA-29913: Error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    error opening file ...\...\...nnnnn.log
    Please let me know if I can achieve the same functionality I had with Oracle XP.
    (Note: I cannot use SQL*Loader approach, I am invoking Oracle stored procedures from VB.Net that are attempting to load data into external tables).
    Regards,
    M.R.So your database is on a unix box, but the file is on your Windows desktop machine? So .... how is it you are making your file (on your desktop) visible to your database (on a unix box)???????

Maybe you are looking for

  • Download Stack from SAP Marketplace to my ECC 6.0 (abap+java)

    Hi gurus I have a doubt about the process of support package (stack) download. I don´t want downloading from maintenance optimizer, I´m doing this process directly from Sap Marketplace, in first step (1 of 3) I have to select the target stack (which

  • 6d wrong choice for portrait work?

    Ok guys, I was debating for quite some time whether to by the 6d or the 70d. Then I debated the 6d vs 5dIII. I went with the 6d based on many reviews, opinins and some great help on this forum. I haven't really had the chance to put it through it's p

  • Transfer between two co.codes and two diff plants

    Hi All, I am trasferring material between two co.codes and two diff plants.I have choosen NB doc type. I am facing problem in PO "Customer P2301 does not exist (please change entry in plant 2301)". is that I have missed some settings?

  • CKM error in interface

    Hi Gurus, I try to make basic interface in ODI, but it shows me an error ODI-15018: CKM not selected. It is basic interface with data source on localhost database and the same database for target. I put IKM, map columns from source to target tables a

  • After Upgrade to Snow Leopard booting Stops at Apple sign plus spinning cir

    I changes the harddrive in my mac Book pro (Late 2008). Before i had a fujitsu 400 gb harddrive. It was Slow, but it worked. Now i changed it into a hitachi travelstar 500 gb 7k500. Installing Leopard no problem. It worked just Fine. Then i installed