This content has been marked as final. Show 2 replies
We have an excel sheet which contains a table(with datas) along with some comments(some extra information on table columns) below the table.We need to import only table data into oracle table.We dont need those comments data to be imported into the oracle table.Can you please let us know how to do it?
We have tried using import option and external table in sql developer.But we are not getting the desired result.
Well the obvious way is to delete the comments and load the data the traditional way.
If you are using 11g you could also write a simple filter program to filter the data and then specify the filter app in the external table PREPROCESSOR parameter.
See this Oracle article on how to use this feature
And this example Oracle-base article has an examplel also
Oracle 11g Release 2 introduced the PREPROCESSOR clause to identify a directory object and script used to process the files before they are read by the external table. This feature was backported to 11gR1 (18.104.22.168). The PREPROCESSOR clause is especially useful for reading compressed files, since they are unzipped and piped straight into the external table process without ever having to be unzipped on the file system.
Can you please tell how to write a filter preprocessor program for eliminating comments and only picking up desired table?