1、 如何用 toad 导入 excel 报表经常有人问 excel 报表如何导入到 oracle 里,toad 提供了这个功能,我们来做个简单的实验,一步一步把 excel 报表导入到 oracle 里。一:先建立个测试的 excel 报表 test.xls(图 1)(图 1)二:oraclehundsun $ sqlplus / as sysdbaSQL*Plus: Release 10.2.0.1.0 - Production on Thu Dec 6 19:33:52 2007Copyright (c) 1982, 2005, Oracle. All rights reserved.Con
2、nected to an idle instance.idle startupORACLE instance started.Total System Global Area 167772160 bytesFixed Size 1218316 bytesVariable Size 75499764 bytesDatabase Buffers 88080384 bytesRedo Buffers 2973696 bytesDatabase mounted.Database opened.idle exitDisconnected from Oracle Database 10g Enterpri
3、se Edition Release 10.2.0.1.0 - ProductionWith the Partitioning, OLAP and Data Mining optionsoraclehundsun $ sqlplus / as sysdbaSQL*Plus: Release 10.2.0.1.0 - Production on Thu Dec 6 19:34:21 2007Copyright (c) 1982, 2005, Oracle. All rights reserved.Connected to:Oracle Database 10g Enterprise Editio
4、n Release 10.2.0.1.0 - ProductionWith the Partitioning, OLAP and Data Mining optionssysNIUGE conn scott/tigerConnected.scottNIUGE create table t(id_no int,id_no1 int,id_no2 int,id_no3 int,id_no4 int,id_no5 int);create table t(id_no int,id_no1 int,id_no2 int,id_no3 int,id_no4 int,id_no5 int)*ERROR at
5、 line 1:ORA-00955: name is already used by an existing objectscottNIUGE c /t(/test(/1* create table test(id_no int,id_no1 int,id_no2 int,id_no3 int,id_no4 int,id_no5 int)scottNIUGE r1* create table test(id_no int,id_no1 int,id_no2 int,id_no3 int,id_no4 int,id_no5 int)Table created.scottNIUGE select
6、* from test;no rows selected三:进入 toad 选择 Database-Import-Table Data (如图 2)(图 2)四: Schema 选择 SCOTT (如图 3)(图 3)五:Table 选择 TEST (如图 4)(图 4)六:Commit Mode 选择第二项,可以根据实际情况自己选择(如图 5)(图 5)七:点击 Show Data 选项 ,然后在点击 Execute Wizard 选项- 选择 Excel file 选项(如图6)(图 6)八:选择需要 Import 的 excel 文件,File Origin 默认选项(如图 7)(图 7
7、)九:点击 next 后如图,俺默认,可根据实际情况自己来选择(如图 8)(图 8)十: 点击 Next 后如下图,选择默认(如图 9)(图 9)十一:点击 Next 后如下图,选择默认(如图 10)(图 10)十二:点击 Next 后如下图,选择默认(如图 11)(图 11)十三:点击 Next 后进入如下图,点击 Excute(如图 12)(图 12)十四:点击 Next 后进入如下图,选择第一项(如图 13)(图 13)十五:点击 OK 后如下图(图 14) ,导入结束( 图 14)十六:scottNIUGE select * from test;ID_NO ID_NO1 ID_NO2 ID_NO3 ID_NO4 ID_NO5- - - - - -0 0 0 0 0 01 1 1 1 1 12 2 2 2 2 23 3 3 3 3 34 4 4 4 4 45 5 5 5 5 56 6 6 6 6 67 rows selected.