How to import a large file of 5 gb
Hi all,
I have a file of 5gb to be loaded into Oracle 10g in to a single column and add a primary key to it in another column, actually I need to correct some records in the file after loading for which I have script
one records in file is as below
could any one of you help in writing a loader or any other way of loading this file as below
11232| kklauire| ajskldfjakl kljdklsf| kkkk| | | | | |iuueoiui
I want it to be loaded as below
Id col
1 11232| kklauire| ajskldfjakl kljdklsf| kkkk| | | | | |iuueoiui
2 44444| kklauire| ajskldfjakl kljdklsf| kkkk| | |a|c | |iuueoiui
.I have only sql*plus as the tool for this, is any more information needed plz let me know
Regards,
A
Edited by: user605246 on Apr 1, 2010 2:45 AM
Hi Blushadow,
I have to clean it before loading it into the final table, as the records got splitted in to multiple line, along with delimiter and with out delimiter. remember for this you have given me a script to clean a week back ( Re: help needed for correcting records in a table )
with res as (select dtt_id,
txt,
ceil(sum(length(txt) - length(replace(txt, '|'))) over (order by dtt_id)/4) grp
from t), -- assuming that your table is called t.
final as (select replace(sys_connect_by_path(txt, '$'), '$') full_txt,
level
from res
WHERE CONNECT_BY_ISLEAF = 1
connect by grp = prior grp
and dtt_id = prior dtt_id + 1)
select case when length(full_txt) - length(replace(full_txt, '|')) = 11 then full_txt end full_txt
from final
where case when length(full_txt) - length(replace(full_txt, '|')) = 11 then full_txt end is not null;
IN TSQL I have used the below script for the above task, as finally I want to load this file to sql
DECLARE @max bigint,@c bigint
SELECT @max = MAX(rn),@c = 1 from @X
DECLARE @targ varchar(max)
WHILE @max <> 0
BEGIN
SELECT @targ = txt FROM @X WHERE rn = @max
IF (@targ not like '%|%|%|%|%') -- | = number of delimiter in the file
BEGIN
UPDATE @X SET txt = txt+@targ WHERE rn = @max - 1
DELETE FROM @X WHERE rn = @max
END
SET @max = @max - 1
ENDEdited by: user605246 on Apr 1, 2010 4:13 AM
Edited by: user605246 on Apr 1, 2010 4:15 AM
Similar Messages
-
i imported a large file of photos from my computer to my iphone by accident. how can i remove them all??
Resync to itunes. Images placed in the Photo app via sync cannot be deleted directly from the device.
-
How to resume import of large file in iTunes after breakdown ?
iTunes crashed, with a damaged library. I messed around with the previous libraries, import of xml etc, and ended up with my music folder splitted in two folders. One is about 192 GB, the other 165 GB.
Songs from a same album are lister over the two folders. So moving the artist folder together, wouldn't work, as they would override eachother.
I tried to set up a new iTunes library, and import everything to consolidate. The process was stopped often by error -50, but after hitting enter, continued. Until suddently the process stopped. I'm about the letter N of my collection.
On top of all, the music doens't appear in iTunes. I have the .xml file, .itl-file but no library itself.
Questions:
How to best consolidate large files in iTunes, as the process seems to crash in between ?
How to resume after crash ? If you point to the same folder, it will double the ones already imported, right ?
How come the library file wasn't created ?Peter,
> 1) Firstly, on loading the iView it gives me a portal
> login screen that does not let me in.(Although I am
> already autheticated as a super_admin) However, it
> runs perfectly as long as I have not added the POST
> command to the iView.
Do I understand correctly that you logged on to the portal with your browser and then tried uploading your data by using curl? In this case, you are authenticated in your browser session - but not in curl's.
> 2) Secondly, the portal denies my URL call from the
> cURL application telling me that "iView is not
> compatible with your browser". Figures, since that I
> am not using a standard browser for calling the URL!
Well, indeed SAP portal is not compatible with curl, it's not on the PAM (sorry, couldn't resist).
Anyway: Have you tried using the portal GUI for batch uploading data (check import/export in role "user administration)?
Alternatively you might consider filling the user store directly (instead of using the portal / UME)? Where is your user and group information physically stored?
Regards,
Dominik -
Hello, I would like to know how to import a large .pdf file to my iPad?
Hello, I would like to know how to import a large .pdf file to my iPad?
This document should help:
http://forums.adobe.com/docs/DOC-2532
How large? It could be limited by the RAM in your iPad. -
How do I move large files from a Windows computer to my MacBook Pro? There are a lot of photos (tiffs, jpgs, some photoshopped files), iTunes library, word docs. Is there a particular type of external hard drive that can be used or am I limited to copying stuff onto z-drive and moving that way?
If both computers are on the same network, you can share the files from the Windows host using SMB and mount the share on the Mac. Otherwise, the Mac should be able to read (not necessarily write) any storage device formatted in Windows.
-
How to import a jar file in JSP
How to import a Jar file in JSP Page.
please reply its very urgent!Hey I am facing a similar problem:
I have this jar file lbswebservice.jar that I have to use for my application.
I added it to the classpath, I copied it in my WEB-INF/lib folder, but when I try to access classes in this package, it doesnt work.
For example the jar contains the package com.blipsystems.lbs.ws.messages.* ; that contains different classes, like the Campaign class.
I tried to use this class (just to create an object) in different context (through jsp, or just through java test classes), but it never works, i get the error: com.blipsystems.lbs.ws.messages.Campaign cannot be resolved to a type
I am a bit desperate here... -
How can I delete large files on my MacBook Pro?
How can I delete large files on my MacBook Pro? Also my Emails wont delete, how can I delete them?
Which email client are you using & which version? Your emails are not appearing in the email trashcan?
-
How to send a large file in XI ?
How to send a large file in XI ?
hi,
use a splitting mechanism to convert large files into smaller files and process them as if they where independent.
You can use the "Recordsets Per Message" parameter in the File Adapter sender comm channel by using File Content Conversion, to create a new message for each 1000,10000,etc records in the source file...this could be a way of splitting.
If you scenario works ok for small files, maybe you can develop another scenario that runs previous the current one, that only splits files (e.g. File-XI-File) and then puts the output smaller files in the directory that your current scenario monitors.
Check this blog for huge file processing
/people/alessandro.guarneri/blog/2007/02/21/sap-xi-acting-as-a-huge-file-mover
Thanks,
Vijaya -
How do I delete large files, so they don't take 12 to 16 hours to delete?
Don't use the Secure Empty Trash option on items which don't contain sensitive data. If the Trash is always doing it, create two folders with the same name in different locations, drag the files into one, and move the other into the folder which contains the first.
(51817) -
How do i delete large files and pics of my mac book pro
how do i delete large files and pics of my mac book pro
Make sure that you do not delete any system file, or part of an application.
Use Omnidisksweeper as a search tool http://www.omnigroup.com/more -
How to import a XML file into the document?
Hai,
i had created a table using xml file....
Now i want to import that xml file tabel into the document...
Can any one tell me how to import the xml file into the document?
thanks
senthilHai...
this is senthil...
i'm beginner for creating adobe indesign plugins..
i want to import a html file in the document...
i want to create a table by using html tags and
that table will be imported into the document..
How shall i do it?
can any one plzz explain me? -
How to import a Photoshop file into Indesign CS6 so that it's layers show in InDesign and it can then be edited/saved as an InDesign file?
MyTienN wrote:
Someone had mentioned the possibility of saving each individual layer in Photoshop as a png file and importing into Indesign and adjusting it in there
What do you mean by "adjust"? Editing of Photoshop images should be done in Photoshop.
Sure, it's possible to save individual layers from an image in Photoshop as inidvidual files in a variety of formats, but what's the point? You could just as easily import the layered file, then copy/paste it into a new layer for each layer in the image and use layer visibility to control which ones show. I don't think that will do you a lot of good, though, if you use adjustment layers or opacity controls on the layer in Photoshop. -
How to import external jar file
i am using bcprov-jdk14-124.jar file for my project. i can import this jar file through eclipse project properties but this is not worklng when i create jar file for my project. This is worked in eclipse only. i want to use that jar file in my project current path. so any body help me how to import this jar file? ( i am using mac os to develop java project )
You need to specify the classpath when you execute it outside of Eclipse.
Kaj -
How to import an .tar file in to NWDS
Hi,
Could any one let me know how to import an .tar file into NWDS
Laasya.i don't think it is supported
-
Hi ,
I amwriting a BDC Program..
How to import a Excel File by Browsing the Excel file from the Directory and Storing that values in the internal table.
Can any one send the code for this,
Points will be awarded.
Regards,
Jayasimha Jangam.Hi,
Create a select parameter. at selection screen, use FM F4_FILENAME to get the dialog box.
see the sample code.
*& Form display_dialog
To display the pop up dialog box
FORM display_dialog.
Calling FM to display File Select dialog box
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
FIELD_NAME = ' '
IMPORTING
file_name = p_file .
ENDFORM. " display_dialog
FORM upload_data.
DATA : lt_itab TYPE STANDARD TABLE OF alsmex_tabline,
ls_itab TYPE alsmex_tabline,
ls_upload TYPE ty_upload_data.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = p_file
i_begin_col = 1
i_begin_row = 2
i_end_col = 5
i_end_row = 50000
TABLES
intern = lt_itab[]
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE i000 WITH text-t04.
LEAVE LIST-PROCESSING.
ENDIF.
CLEAR ls_itab.
LOOP AT lt_itab INTO ls_itab.
CASE ls_itab-col.
WHEN 1.
ls_upload-matnr = ls_itab-value.
WHEN 2.
PERFORM convert_to_decimal USING ls_itab-value.
ls_upload-bmeng = ls_itab-value.
WHEN 3.
ls_upload-idnrk = ls_itab-value.
WHEN 4.
PERFORM convert_to_decimal USING ls_itab-value.
ls_upload-menge = ls_itab-value.
WHEN 5.
ls_upload-meins = ls_itab-value.
ENDCASE.
AT END OF row.
APPEND ls_upload TO gt_upload.
CLEAR ls_upload.
ENDAT.
CLEAR ls_itab.
ENDLOOP.
Deleting the contents of internal table
FREE lt_itab.
Maybe you are looking for
-
Device not recognized by Windows or iTunes - Blinking green light
When I try to connect my iPod shuffle to my computer (Windows XP), it's not recognized by Windows or iTunes. (i.e. device does not appear in Windows explorer or iTunes) While in the USB port, the Shuffle's green light blinks incessantly. My wife uses
-
Urgent: Problem to load Flat file using DTP.
Hi Experts, I try to load a flat file PSA->DSO->INFOCUBE using DTP. I my flatfile in the application server in csv format. in the My data source I opted Adapter as Load Text -Type file from Application Server. Data Format : I test with both the pot
-
Tcode for Assign CoCode to a Workflow Variant for Parking Document
HI, what is is the Tcode and path for Assign CoCode to a Workflow Variant for Parking Document. regards JK
-
have tried 2 formuals i got from help sites to try to access itunes 11 library without results. i am now taking laptop to tech and paying to get to my itune library. am i the only idgit that got into itunes 11 and messed up my music world?
-
How do I install Lens Correction Files (.lcp) files into PS CS5?
Hi - I have a specific .lcp file I need to install into Photoshop CS5 but the folder it says to install to doesn't seem to exist. Help please!! This is where it says to install, but I can't find any folders after "users"? /Users/[username]/Library/Ap