ERROR LOADING bcp -w option generated data files
Hi,
I have to migrate data from SQL Server to Oracle.
The unload_script is this:
bcp "CLEPSIDRA.dbo.InversionesAceptadas" out "[CLEPSIDRA].[dbo].[InversionesAceptadas].dat" -q -c -t "<EOFD>" -r "<EORD>" -Usa -Pas -STIEPO
When I execute the load script, the data is loaded ok.
But I have a field that contains character like á,é,ñ,...so I changed my unload script to:
bcp "CLEPSIDRA.dbo.InversionesAceptadas" out "[CLEPSIDRA].[dbo].[InversionesAceptadas].dat" -q -w -t "<EOFD>" -r "<EORD>" -Usa -Pas -STIEPO
If I execute the new unload_script, the data file generated is ok, with the characters like á,é,ñ...
But when I trying to execute the load script, I have errors like 'field is not a valid number..'...
But if I open the first (-c option generated) data file and replace it's content with the content of the second (-w option generated) data file and save it, the load script works ok!
How can I solve this?
Thanks
Hi user616069,
There is a preference in SQLDeveloper for encoding.
Tools->Preferences->Environment->Encoding
Do you have a reproducible test case you can give us a URL to, including for example a single fictional record?
-Turloch
Similar Messages
-
If I generate loader / Insert script from Raptor, it's not working for Clob columns.
I am getting error:
SQL*Loader-510: Physical record in data file (clob_table.ldr) is long
er than the maximum(1048576)
What's the solution?
Regards,Hi,
Has the file been somehow changed by copying it between windows and unix? Ora file transfer done as binary or ASCII? The most common cause of your problem. Is if the end of line carriage return characters have been changed so they are no longer /n/r could this have happened? Can you open the file in a good editor or do an od command in unix to see what is actually present?
Regards,
Harry
http://dbaharrison.blogspot.co.uk/ -
Generate .DAT file for CG33
Hi Experts,
Can you please explain in details how can we generate .DAT file to use for importing specification through CG33.
Thanks in Advance.
Regards
KapilHello Kapil,
You can create a *-DAT file by Exporting a Specification from TR CG02 see
http://help.sap.com/erp2005_ehp_04/helpdata/en/a7/287c910a6c11d28a220000e829fbbd/content.htm?frameset=/en/a1/4eeaa2eaab5f4ebd8272e143831f06/frameset.htm¤t_toc=/en/c1/eda0f591ec12408b25e7a1b369ca45/plain.htm&node_id=390
Please read this post as well: http://scn.sap.com/thread/1654090
There used to be a tool called DATA Editor from TechniData/SAP that created a DAT file based on an Excel file.
- but is available as a Migration Serice which you can order from SAP via your SAP Account Manager.
Regards
Mark -
SQL Loader: handling difference datatypes in data file and table column
Hi,
I am not sure if my question is valid but I am having this doubt.
I am trying to load data from my data file into a table with just a single column of FLOAT datatype using SQL Loader. But very few insertions take place, leaving a large number of record rejected for the same reason-
Record 7: Rejected - Error on table T1, column MSISDN.
ORA-01722: invalid number
The data in my datafile goes like this: (with a single space before every field)
233207332711<EOFD><EORD> 233208660745<EOFD><EORD> 233200767380<EOFD><EORD>
Here I want to know if there is any way to type cast the data read from the data file to suit my table column's datatype.
How do I handle this? I want to load all the data from my datafile into my table.Pl continue the discussion in your original post - Pls help: SQL Loader loads only one record
-
I am getting error when I try to generate Data Preview
Hi Friends,
I have created a view and Validated also activated which was successful, Now when I try to generate data preview it is giving me error
The error says:
com.sap.db.jdbc.exceptions.JDBCDriverException:SAP DBTech JDBC: [391] (at 130) : Invalidated view : P1163893/EXP_ONE: Line 1 Col 13(at POS 130)
Kindly help what went wrong in this process.
Thanks,
GunaHello,
this is well known bug/feature of SAP HANA
issue is explained in following SAP note:
1612696 - "Invalidated view" error when using analytical views
[https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1612696]
You need to execute following statements:
grant select on schema <SCHEMA> to _SYS_REPO with grant option
Where <SCHEMA> is schema of tables used in the view definition.
(If you used several schemas - you need to do this for every schema.)
Tomas -
834 Benefit Extracts - Error in Extract Definition Upload from Data File
Hi all,
I try uploading the Extract Definition of 834 Benefit Extract definition data file to create 834 Benefit Extract File layout in the system.
But it has errors as mention below and no clue in it to get through with the uploading process .
am providing the error info which i got from the log file.
Upload from stage tables
Error loading seed data for EXT_WHERE_CLAUSE8: FILE_NAME = ALB_ANSI-834 Full Profile, RECORD_NAME = ALB SE - Transaction Set Trailer, DATA_ELEMT_NAME = ALB SE01_Total, PARENT_RECORD_NAME = ALB SE - Transaction Set Trailer, PARENT_ELEMENT_NAME = , DATA_ELMT_NAME = ALB SE01_Total, COND_DATA_ELMT_NAME = ALB SE01_REF, ORA-01403: no data found
Start of log messages from FND_FILE
WARNING : Element ALB INS04 Decode Value 14 not uploaded
WARNING : Element ALB INS04 Decode Value 03 not uploaded
WARNING : Element ALB INS04 Decode Value 01 not uploaded
WARNING : Element ALB INS04 Decode Value 07 not uploaded
WARNING : Element ALB INS04 Decode Value 04 not uploaded
WARNING : Element ALB INS08 Decode Value FT not uploaded
WARNING : Element ALB INS08 Decode Value TE not uploaded
WARNING : Element ALB INS08 Decode Value RT not uploaded
WARNING : Element ALB DMG05 Decode Value O not uploaded
WARNING : Element ALB DMG05 Decode Value J not uploaded
WARNING : Element ALB DMG05 Decode Value H not uploaded
WARNING : Element ALB DMG05 Decode Value I not uploaded
WARNING : Element ALB DMG05 Decode Value B not uploaded
WARNING : Element ALB DMG05 Decode Value A not uploaded
WARNING : Element ALB HD03 Decode Value PPO not uploaded
WARNING : Element ALB HD03 Decode Value PPO not uploaded
WARNING : Element ALB HD03 Decode Value PPO not uploaded
WARNING : Element ALB HD05 Decode Value SPO not uploaded
WARNING : Element ALB HD05 Decode Value ESP not uploaded
WARNING : Element ALB HD05 Decode Value EMP not uploaded
WARNING : Element ALB HD05 Decode Value E1D not uploaded
WARNING : Element ALB HD05 Decode Value FAM not uploaded
WARNING : Element ALB HD01_TERM Decode Value 024 not uploaded
WARNING : Element ALB HD01_TERM Decode Value 024 not uploaded
End of log messages from FND_FILE
thanks & regards,
V.Leelaprasath.Hi
Use the PERFORM OPEN_GROUP after the enddo.
open dataset v_data for input in text mode encoding default.
do.
read dataset v_data into < itab-fields>
if sy-subrc <> 0.
message e001(yarcjosh).
else.
Append itab.
clear itab.
endif.
enddo.
perform open_group.
loop at record.
perform bdc_dynpro using 'SAPLMGMM' '0060'.
endloop.
Reward points if useful
Regards
Anji -
Error REP-52005 while using cgicmd.dat file
Hi,
Per Oracle manual I added a simple key to cgicmd.dat
statement: userid=uid/passwd@db report=stmt2.rdf
Stopped and Started all 10gAS processes which includes Report service via OEM.
Then I used the following URL in the browser,
http:\\bigdaddy\reports\rwservlet?statement, I received the following error:
REP-52005: The specified key statement does not exist in the key map file.
Then I used one of the Oracle suppled keys such as oraqa. I received the simnlar message that it could not find key oraqa.
What I did I need to do to fix this ?
Thanks.
SureshHi all,
Resolved my own problem. You need to add %* as the last item of your key. From the documentation in cgicmd.dat it is not quite clear what it is supposed to do. So when I changed my key to
statement: userid=uid/passwd@db report=stmt2.rdf %*
it worked fine. Also, at least in 10gAS Midtier, you do not need to stop and start OC4J, OC4J_BI_forms or the report server as many have you believe.
I checked if the key has been parsed by using the showmaps URL and clicking on parsed map file entries to see if the key has everything that I wanted it to have without re-starting anything.
http://bigdaddy/reports/rwservlet/showmaps
Suresh -
Error: Remote host did not accept data file
Went to tiger 10.4.4 and cannot print. Wireless connection to HP photosmart 1215 via SMC 2804 router was working with Gimp print driver - photosmart 1100 (1215 driver never did work). After months of fooling around after Jaguar to Tiger upgrade and similar printer failure, I was finally able to get this option (hp 1100) to work. Now, another update and no printing AGAIN. G5 iMac, other mac - G4 iMac - doesn't work after update either. What is going on??
iMac G5 Mac OS X (10.4.4)That seems to be an LPD error message, so you could try setting the printer up as either IPP or JetDirect, if the interface supports either one.
-
Hi,
I'm just attempting to setup an iSCSI target on a freshly installed Windows 2012r2 box, but I get the following error when attempting to Create and iSCSI virtual disk via the wizard after a successful
installation of the iSCSI target role.
The full error is:
Cannot find the Windows PowerShell data file 'ImportExportIscsiTargetConfiguration.psd1' in directory 'C:\Windows\System32\WindowsPowerShell\v1.0\Modules\IscsiTarget\en-GB\', or in any parent culture.
I tried to uninstall, then reinstall the role but no go.
The Server Locale and UI was all updated to en-GB but this folder does not appear to exist in this location. Rather, the folder I can see is:
'C:\Windows\System32\WindowsPowerShell\v1.0\Modules\IscsiTarget\en-US\'
I'm going to attempt to copy the 'en-US' folder to 'en-GB' to see what happens, but I would like to know why this has occurred in the first place? Other roles have installed (such as AD DS AD CS and
IIS) on other machines with no issue.
Many thanks
Chris
ChrisHi Chris,
The error "Cannot find the Windows PowerShell data file 'ImportExportIscsiTargetConfiguration.psd1'" occured, because the file 'ImportExportIscsiTargetConfiguration.psd1' can't be loaded under the folder en-GB with current culture.
I recommend you can copy this .psd1 file under 'C:\Windows\System32\WindowsPowerShell\v1.0\Modules\IscsiTarget'. Essentially if PowerShell can’t find the specified data file for the current culture it will “fallback” to the top-level data
file in this case.
For more detailed information, please refer to this article:
Windows PowerShell 2.0 String Localization
If there is anything else regarding this issue, please feel free to post back.
Best Regards,
Anna Wang
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
SQL*Loader Sequential Data File Record Processing?
If I use the conventional path will SQL*Loader process a data file sequentially from top to bottom? I have a file comprised of header and detail records with no value found in the detail records that can be used to relate to the header records. The only option is to derive a header value via a sequence (nextval) and then populate the detail records with the same value pulled from the same sequence (currval). But for this to work SQL*Loader must process the file in the exact same sequence that the data has been written to the data file. I've read through the 11g Oracle® Database Utilities SQL*Loader sections looking for proof that this is what will happen but haven't found this information and I don't want to assume that SQL*Loader will always process the data file records sequentially.
Thank youOracle Support responded with the following statement.
"Yes, SQL*LOADER process data file from top to bottom.
This was touched in the note below:
SQL*Loader - How to Load a Single Logical Record from Physical Records which Include Linefeeds (Doc ID 160093.1)"
Jason -
PHP generated XML files in Flash
I want to create a flash based frontend for my image gallery
system. I need to load in an php generated xml file (something like
images.php). But Flash seems to load the unparsed xml file
(webserver with php works fine). Maybe that's just happening in the
authoring environment. I'm trying to load the xml file with the
XML-connector. Can someone give me an advice before I do hours of
trial'n'error business?It seems like I don't get my foot into the AS/XML door. My
XML looks like this:
<root>
<image>
<url>
<name>
<etc>
(Close tags not shown)
The XML file is valid and works with XML-connector. I try to
access the XML data with this AS:
xml_doc = new XML();
xml_doc.load('flash.xml');
xml_doc.onLoad = function(success) {
//trace(this.toString());
xml_doc.ignoreWhite = true;
//trace(xml_doc.toString());
trace(xml_doc);
var mainnode:XMLNode = xml_doc.firstChild;
var imagenodes:Array = xml_doc.firstChild.childNodes;
for (var i:Number = 0; i < imagenodes.length; i++) {
// for each person node:
var imagenode:XMLNode = imagenodes
images.push(
{i:i+1,
url:imagenode.childNodes[0].nodeValue,
imagename:imagenode.childNodes[1].nodeValue
trace(images);
I'm not getting any values out (just 'undefined'). There
seems to be something missing, but I just don't find out what.
Cheers,
Martin -
Validation with data file failed
Hello All
I have loaded the Currency Exchange Rates from BW cube into Rate Model in BPC upto March 2014 and then our BW cube get updated the Exchange Rates for April 2014.
Now I am trying to load the Exchange Rates for April 2014 only into Rate model and for that I am validating the Transformation File but it was failed. It shows 'VALIDATION WITH DATA FILE FAILED'.
Rejected list option showing blank screen.
With the same Transformation file I have loaded the data upto March 2014 successfully.
I have compressed the source cube, reactivate the source cube after all am unable to validate the Transformation file. Below is my transformation file screen shot.
Please let me know if you need any more details from my side.
Thanku you all in advance.
Please help
Regards
SrikantHi Shaik
Thanks for your reply.
I have validate the Transformaiton file by given vlaue in MAXREJECTCOUNT= 10000 but there is no chage same error is coming. 'Validation with data file failed' without any errors.
Thanks
Srikant -
Sqlldr error510 Physical record in data file is longer than the max 1048576
SQL*Loader: Release 10.2.0.2.0 - Production on Fri Sep 21 10:15:31 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Control File: /apps/towin_p/bin/BestNetwork.CTL
Data File: /work/towin_p/MyData.dat
Bad File: /apps/towin_p/bin/BestNetwork.BAD
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Continuation: none specified
Path used: Direct
Load is UNRECOVERABLE; invalidation redo is produced.
Table "BN_ADM"."DWI_USAGE_DETAIL", loaded from every logical record.
Insert option in effect for this table: APPEND
TRAILING NULLCOLS option in effect
Column Name Position Len Term Encl Datatype
USAGE_DETAIL_DT FIRST * , DATE MM/DD/YYYY HH24:MI:SS
UNIQUE_KEY SEQUENCE (MAX, 1)
LOAD_DT SYSDATE
USAGE_DETAIL_KEY NEXT * , CHARACTER
RATE_AREA_KEY NEXT * , CHARACTER
UNIT_OF_MEASURE_KEY NEXT * , CHARACTER
CALL_TERMINATION_REASON_KEY NEXT * , CHARACTER
RATE_PLAN_KEY NEXT * , CHARACTER
CHANNEL_KEY NEXT * , CHARACTER
SERIALIZED_ITEM_KEY NEXT * , CHARACTER
HOME_CARRIER_KEY NEXT * , CHARACTER
SERVING_CARRIER_KEY NEXT * , CHARACTER
ORIGINATING_CELL_SITE_KEY NEXT * , CHARACTER
TERMINATING_CELL_SITE_KEY NEXT * , CHARACTER
CALL_DIRECTION_KEY NEXT * , CHARACTER
SUBSCRIBER_LOCATION_KEY NEXT * , CHARACTER
OTHER_PARTY_LOCATION_KEY NEXT * , CHARACTER
USAGE_PEAK_TYPE_KEY NEXT * , CHARACTER
DAY_OF_WEEK_KEY NEXT * , CHARACTER
FEATURE_KEY NEXT * , CHARACTER
WIS_PROVIDER_KEY NEXT * , CHARACTER
SUBSCRIBER_KEY NEXT * , CHARACTER
SUBSCRIBER_ID NEXT * , CHARACTER
SPECIAL_NUMBER_KEY NEXT * , CHARACTER
TOLL_TYPE_KEY NEXT * , CHARACTER
BILL_DT NEXT * , DATE MM/DD/YYYY HH24:MI:SS
BILLING_CYCLE_KEY NEXT * , CHARACTER
MESSAGE_SWITCH_ID NEXT * , CHARACTER
MESSAGE_TYPE NEXT * , CHARACTER
ORIGINATING_CELL_SITE_CD NEXT * , CHARACTER
TERMINATING_CELL_SITE_CD NEXT * , CHARACTER
CALL_ACTION_CODE NEXT * , CHARACTER
USAGE_SECONDS NEXT * , CHARACTER
SUBSCRIBER_PHONE_NO NEXT * , CHARACTER
OTHER_PARTY_PHONE_NO NEXT * , CHARACTER
BILLED_IND NEXT * , CHARACTER
NO_USERS_IN_CALL NEXT * , CHARACTER
DAP_NO_OF_DSAS_USED NEXT * , CHARACTER
USAGE_SOURCE NEXT * , CHARACTER
SOURCE_LOAD_DT NEXT * , DATE MM/DD/YYYY HH24:MI:SS
SOURCE_UPDATE_DT NEXT * , DATE MM/DD/YYYY HH24:MI:SS
RATE_PLAN_ID NEXT * , CHARACTER
NETWORK_ELEMENT_KEY NEXT * , CHARACTER
SQL string for column : "-2"
SQL*Loader-510: Physical record in data file (/work/towin_p/MyData.dat) is longer than the maximum(1048576)
SQL*Loader-2026: the load was aborted because SQL Loader cannot continue.
Table "BN_ADM"."DWI_USAGE_DETAIL":
0 Rows successfully loaded.
0 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Date conversion cache disabled due to overflow (default size: 1000)
Bind array size not used in direct path.
Column array rows : 5000
Stream buffer bytes: 256000
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 7000382
Total logical records rejected: 0
Total logical records discarded: 0
Total stream buffers loaded by SQL*Loader main thread: 1666
Total stream buffers loaded by SQL*Loader load thread: 4996
Run began on Fri Sep 21 10:15:31 2007
Run ended on Fri Sep 21 10:27:14 2007
Elapsed time was: 00:11:43.56
CPU time was: 00:05:36.81What options are you using on the CTL file? How does your data file looks like (e.g. One line per record, one line only)?
-
Increase free space in data files
Hello All,
We are running netweaver 04s on sql server. In our EPR landscape, we are having message no free space in file in db02 transaction. It reports error when we execute DB02 and does not allows or shows us the DBCC check options. Strangely, this message appears even if the auto grow option in data files is on.
Could you please let me know what would be the impact if I increase the datafiles initial size?
Thanks,
GauravHello Jeff,
Thanks for the response!
The odd thing out is that, we do have autogrowth on, and I am sure the data file size is getting increased on all the datafiles, otherwise the database would have struck up but the information that we get on DB02 transaction is wrong or the correct information is not bieng reflected.
Also, I am not able to run the DBCC checks via dbacockpit!
Please share your thoughts!
Thanks,
Gaurav -
How do I send a blank value to a MailMerge data file cell
I have a Client_OLE2 process that loads individual data cells used for mailmerging to a word document. The process loads a cell, moves on to the next cell and loads that with data.
Everything works fine until I try and load a cell with a blank or a null. The process stops dead and issues a 100501 exception.
Is there a work around for trying to load blanks or nulls into data file cells?
A sample of my code is below: (Say for example that 'ADDRESS2' is blank)
APPLICATION := CLIENT_OLE2.CREATE_OBJ('Word.Application');
CLIENT_OLE2.SET_PROPERTY(APPLICATION,'Visible', 1); -- VBA CODE
WORD.APP := APPLICATION;
WORD.SEL := CLIENT_OLE2.GET_OBJ_PROPERTY(WORD.APP,'SELECTION');
args:=CLIENT_OLE2.create_arglist;
CLIENT_OLE2.add_arg(args,3); --Unit :=wdCell
CLIENT_OLE2.add_arg(args,1); --Count:=1
--- Insert GOVERNOR_NAME name
CLIENT_OLE2.SET_PROPERTY(WORD.SEL,'Text',GOV_NAME);
CLIENT_OLE2.INVOKE(WORD.SEL,'Move',args);
--- Insert sysdate "Letter Date"
CLIENT_OLE2.SET_PROPERTY(WORD.SEL,'Text',LETTER_DATE);
CLIENT_OLE2.INVOKE(WORD.SEL,'Move',args);
--- Insert INMATE_NAME_NUMBER OR ATTORNEY NAME
CLIENT_OLE2.SET_PROPERTY(WORD.SEL,'Text',NAME_1);
CLIENT_OLE2.INVOKE(WORD.SEL,'Move',args);
--- Insert PRISON_NAME OR ATTORNEY FIRM NAME
CLIENT_OLE2.SET_PROPERTY(WORD.SEL,'Text',NAME_2);
CLIENT_OLE2.INVOKE(WORD.SEL,'Move',args);
--- Insert PRISON_ADDR1 OR ATTORNEY ADDRESS1
CLIENT_OLE2.SET_PROPERTY(WORD.SEL,'Text',ADDRESS1);
CLIENT_OLE2.INVOKE(WORD.SEL,'Move',args);
--- Insert PRISON_addr2 OR ATTORNEY ADDRESS2
CLIENT_OLE2.SET_PROPERTY(WORD.SEL,'Text',ADDRESS2);
CLIENT_OLE2.INVOKE(WORD.SEL,'Move',args);
CLIENT_OLE2.destroy_arglist(args);
Any advice would be appreciated. thanksHi,
It is actually possible to do this on a computer.
Copy whatever is in the spoiler tag and send it to him. The text is very small, but it's still there.
Spoiler (Highlight to read)
If my post above answered your question, please click "Accept as Solution". Also feel free to give Kudos to my post if you found it helpful.
Also — I’m back!
Thanks and kind regards.
Maybe you are looking for
-
Good day to all! My WRT110 drops connection from time to time, once or twice at random per evening + when one of my other PCs boot up. I have a Synology DS209 NAS wired, a broadband internet connection (through a modem) and several PCs on wireless. I
-
I am trying to set up a way to use my iPhone during a conference call. About 20 people in one room with 8 calling in from a distance. I can get speakers hooked but is there any microphone available so that people at a distance from the phone can cont
-
Rendering taking longer than usual
I'm cutting on FCP 6.0.6. I've noticed its taking a lot longer to render these days. Anyone know why? Thanks.
-
Svrmgrl - disable password for connect internal
I have installed Oracle 8.1.5. When I tried to create a database using svrmgrl manually, I entered the following: svrmgrl svrmgrl> connect internal; Password: Please advise how I can turn off the Password option for connect internal as in previous ve
-
Clone Stamp Tool Align Function
I am using Elements 4.0 on a PC with XP Pro and I can't seem to get the Align option to turn off when I use the Clone Stamp Tool. Deselecting the "Aligned" option on the options toolbar has no effect: the pesky plus sign still follows the cursor ever