- METHOD 1: Click Tools → Import → Import Wizard. This window can be used to import data from various kinds of source files into a table.
- METHOD 2: SQL*Loader You can use TOAD's interface to a program from Oracle called sqlloader. Save the Excel file as a comma-delimited (.csv) or tab-delimited (.txt) file. If your data has commas within a text field, save your file as tab-delimited.
- Open DBA→Sql Loader Wizard
- Choose "build a new control file". Next.
- Click "Add". Choose your comma-delimited or tab-delimited file. Next.
- Click "Add". Choose your table.
- If you are loading a comma-delimited file, type a comma in the "all fields delimited by" combo box. If you are loading a tab-delimited file, select "TAB" from the "all fields delimited by" combo box. Next.
- Choose a "load method" noting the following:
- TRUNCATE will erase whatever is in the table before loading.
- INSERT will insert data if table is empty but will return an error if table has any data in it.
- APPEND will insert data without deleting any existing data. You might get duplicates this way but it's a good method if you're trying to get that last line that somehow got munged for some reason or another.
- If your file has column headers in its first row, type a 1 in the skip box. Next.
- Type a control file name in the control file name box. Next.
- Choose either "execute now" to load the data now or "just build the control file" to build the .ctl file. Once you have the ctl file theoretically you don't even need TOAD, as you could just use sqlloader on any machine that has sqlloader and can connect to the database. But why would you want to. :) I choose execute now.
Note: If you are working with Oracle 8.0 or earlier on a Windows 2000 or later OS, uncheck "Watch Progress"
Note: once you have a ctl file you can:
- Choose DBA→Sql Loader Wizard
- Choose "Use control file". Next.
- Select your control file. Next.
- Choose "execute now". Finish.
***Update*** the above answer is obselete, instead please go to the Toadworld blog post "Create and Load Oracle Tables from Excel Spreadsheet using Toad" at http://www.toadworld.com/products/toad-for-oracle/b/weblog/archive/2013/03/29/create-and-load-oracle-tables-from-excel-spreadsheet-using-toad