Home » RDBMS Server » Server Utilities » Unable to load CSV file to Oracle Table (SQL Loader, Windows)
Unable to load CSV file to Oracle Table [message #683639] |
Tue, 09 February 2021 05:24 |
|
srai.bi
Messages: 11 Registered: February 2021
|
Junior Member |
|
|
Hi,
I am trying to load a CSV file generated by Oracle Hyperion Planning system to Oracle Table using SQL Loader.
When I open the CSV file in excel all data looks perfect!!
The file contains 50 columns out of which 5 columns contains formulas. Example: @VAR("Forecast","Budgets");
Though the formula contains "," it is still appearing properly in excel (.csv) but when I load it to the table I face following issues:
1. Data from formula columns gets loaded to other columns.
2. @VAR("Forecast","Budgets"); gets loaded as @VAR(""Forecast"",""Budgets""); ---> with extra double quote
Below is my control file: I tried using FILLER for formula columns which I don't want in table. I mean, even if formula column data gets loaded its fine or I can skip it also.
OPTIONS (SKIP=1)
LOAD DATA
TRUNCATE
INTO TABLE FRS.PBCS_CLASS_CODE_EXTRACT_STG
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '""'
TRAILING NULLCOLS
( CLASSCODES,
PARENT,
ALIASDEFAULT,
VALIDFORCONSOLIDATIONS,
DATASTORAGE,
TWOPASSCALCULATION,
DESCRIPTION,
FORMULA FILLER,
FORMULADESCRIPTION,
UDA,
SMARTLIST,
DATATYPE,
HIERARCHYTYPE,
ENABLEFORDYNAMICCHILDREN,
NUMOFPOSSIBLEDYNCHILD,
ACCESSGRANTEDTOMEMBERCREATOR,
ALLOWUPPERLEVELENTITYINPUT,
PROCESSMANAGEMENTENABLED,
UUID,
DATAID,
OLDNAME,
OLDUNIQUENAME,
ACCOUNTTYPE,
TIMEBALANCE,
SKIPVALUE,
EXCHANGERATETYPE,
VARIANCEREPORTING,
SOURCEPLANTYPE,
PLANTYPEFINPLAN,
AGGREGATIONFINPLAN,
DATASTORAGEFINPLAN,
FORMULAFINPLAN FILLER,
FORMULADESCFINPLAN,
PLANTYPEFINRPT,
AGGREGATIONFINRPT,
DATASTORAGEFINRPT,
FORMULAFINRPT FILLER,
SOLVEORDERFINRPT,
FORMULADESCFINRPT,
PLANTYPEASR,
AGGREGATIONASR,
DATASTORAGEASR,
FORMULAASR FILLER,
FORMULADESCASR,
PLANTYPEMYB,
AGGREGATIONMYB,
DATASTORAGEMYB,
FORMULAMYB FILLER,
FORMULADESCMYB,
OPERATION
)
CALL sqlldr !ouser!/!opwd!@!odb! CONTROL="..\ControlFiles\CC_SQL.ctl" LOG="..\Logs\CC_SQL_!filename!.log" BAD="..\Logs\CC_SQL_!filename!.bad" DATA="%extractmetadatadir%\!filename!"
Please help. Thanks.
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sun Sep 08 11:44:29 CDT 2024
|