java ,sqlldr and shell script use for 10 million data
I want to upload 10 million data to oracle DB from a file which is in FTP.I am using a Java +shell script+SQLLDR combination in following way--
- upload the 10 million data file in FTP manually.
- run a java code
- call a .sh from within the java code
- the .sh removes the duplicates from the 10 million data file and creates a new file free from duplicates
- the .sh calls SQLLDR to load the new duplic开发者_高级运维ate free file data in oracle DB
Please advice me if I am following the optimum way .thanks to all :)
I presume that you sort your data file to remove duplicates. In that case you can get better performance using direct path loading with SORTED INDEXES parameter.
精彩评论