日志如下
[DAS.SYS][][2017-11-17 10:48:15,474][DEBUG][:]Using 95 castor for Castors(org.nutz.castor.Castors:115)
[DAS.SYS][][2017-11-17 10:48:15,561][INFO ][:]Init file-pool by: C:\Users\Administrator/.nutz/tmp/dao/ [200000](org.nutz.filepool.NutFilePool:23)
[DAS.SYS][][2017-11-17 10:48:15,562][DEBUG][:]file-pool.home: 'C:\Users\Administrator\.nutz\tmp\dao'(org.nutz.filepool.NutFilePool:37)
[DAS.SYS][][2017-11-17 10:48:15,563][INFO ][:]file-pool.cursor: 0(org.nutz.filepool.NutFilePool:66)
[DAS.SYS][][2017-11-17 10:48:15,691][DEBUG][:]Jdbcs init complete(org.nutz.dao.jdbc.Jdbcs:90)
[DAS.SYS][][2017-11-17 10:48:15,692][INFO ][:]Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure(org.nutz.dao.jdbc.Jdbcs:103)
[DAS.SYS][][2017-11-17 10:48:16,640][DEBUG][:]select expert : org.nutz.dao.impl.jdbc.oracle.OracleJdbcExpert(org.nutz.dao.impl.DaoSupport:189)
[DAS.SYS][][2017-11-17 10:48:16,645][DEBUG][:]JDBC Driver --> 11.2.0.2.0(org.nutz.dao.impl.DaoSupport:200)
[DAS.SYS][][2017-11-17 10:48:16,646][DEBUG][:]JDBC Name --> Oracle JDBC driver(org.nutz.dao.impl.DaoSupport:201)
[DAS.SYS][][2017-11-17 10:48:16,646][DEBUG][:]JDBC URL --> jdbc:oracle:thin:@192.168.10.205:1521:develop(org.nutz.dao.impl.DaoSupport:203)
[DAS.SYS][][2017-11-17 10:48:16,646][DEBUG][:]Database info --> ORACLE:[Oracle - Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options](org.nutz.dao.impl.DaoSupport:222)
[DAS.SYS][][2017-11-17 10:48:16,712][DEBUG][:]delete from dn_test_1(org.nutz.dao.impl.sql.run.NutDaoExecutor:388)
[DAS.SYS][][2017-11-17 10:48:16,777][DEBUG][:]delete from dn_test_2(org.nutz.dao.impl.sql.run.NutDaoExecutor:388)
[DAS.SYS][][2017-11-17 10:48:16,781][DEBUG][:]insert into dn_test_1 (COLUNM_A) values ('code_1')(org.nutz.dao.impl.sql.run.NutDaoExecutor:388)
[DAS.SYS][][2017-11-17 10:48:16,783][DEBUG][:]insert into dn_test_1 (COLUNM_A) values ('code_2')(org.nutz.dao.impl.sql.run.NutDaoExecutor:388)
[DAS.SYS][][2017-11-17 10:48:16,787][DEBUG][:]insert into dn_test_1 (COLUNM_A) values ('code_3')(org.nutz.dao.impl.sql.run.NutDaoExecutor:388)
[DAS.SYS][][2017-11-17 10:48:16,793][INFO ][:]Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure(org.nutz.dao.jdbc.Jdbcs:103)
[DAS.SYS][][2017-11-17 10:48:16,913][DEBUG][:]select expert : org.nutz.dao.impl.jdbc.oracle.OracleJdbcExpert(org.nutz.dao.impl.DaoSupport:189)
[DAS.SYS][][2017-11-17 10:48:16,914][DEBUG][:]JDBC Driver --> 11.2.0.2.0(org.nutz.dao.impl.DaoSupport:200)
[DAS.SYS][][2017-11-17 10:48:16,914][DEBUG][:]JDBC Name --> Oracle JDBC driver(org.nutz.dao.impl.DaoSupport:201)
[DAS.SYS][][2017-11-17 10:48:16,914][DEBUG][:]JDBC URL --> jdbc:oracle:thin:@192.168.10.205:1521:develop(org.nutz.dao.impl.DaoSupport:203)
[DAS.SYS][][2017-11-17 10:48:16,914][DEBUG][:]Database info --> ORACLE:[Oracle - Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options](org.nutz.dao.impl.DaoSupport:222)
[DAS.SYS][][2017-11-17 10:48:16,915][DEBUG][:]insert into dn_test_2 (colunm_a, colunm_b) select oo.colunm_a, ? from (select co.colunm_a, rownum rn from (select it.colunm_a from dn_test_1 it order by it.colunm_a) co where rownum <= ?) oo where rn >= ?
| 1 | 2 | 3 |
|---|---|---|
| 1 | 1 | 1 |
| 2 | 2 | 2 |
| 3 | 3 | 3 |
For example:> "insert into dn_test_2 (colunm_a, colunm_b) select oo.colunm_a, 1 from (select co.colunm_a, rownum rn from (select it.colunm_a from dn_test_1 it order by it.colunm_a) co where rownum <= 1) oo where rn >= 1"(org.nutz.dao.impl.sql.run.NutDaoExecutor:388)