首页上一页 1 下一页尾页 9 条记录 1/1页
发表在Java图书答疑
2012-05-15
是否精华
是
否
版块置顶:
是
否
设置时间:
非永久
永久
起始时间:
结束时间:
是否扣分:
是
否
按照书中教程无法导入,加入地址后可以导入,但是程序又不能运行了.
C:\Users\liu>imp personnel_manage/mwq@DBSQL file=c:\personnel_manage.dmp fromuse
r=personnel_manage ignore=y commit=y grants=y
Import: Release 11.2.0.1.0 - Production on 星期二 5月 15 16:00:14 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
IMP-00058: 遇到 ORACLE 错误 12154
ORA-12154: TNS: 无法解析指定的连接标识符
IMP-00000: 未成功终止导入
C:\Users\liu>imp personnel_manage/mwq@127.0.0.1/DBSQL file=c:\personnel_manage.d
mp fromuser=personnel_manage ignore=y commit=y grants=y
Import: Release 11.2.0.1.0 - Production on 星期二 5月 15 16:00:48 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
经由常规路径由 EXPORT:V10.02.01 创建的导出文件
已经完成 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集中的导入
. 正在将 PERSONNEL_MANAGE 的对象导入到 PERSONNEL_MANAGE
. . 正在导入表 "TB_ACCESSION_FORM"导入了 2 行
. . 正在导入表 "TB_ACCOUNT_ITEM"导入了 6 行
. . 正在导入表 "TB_BRING_UP_CONTENT"导入了 0 行
. . 正在导入表 "TB_BRING_UP_ONTENT"导入了 0 行
. . 正在导入表 "TB_DEPT"导入了 5 行
. . 正在导入表 "TB_DUTY"导入了 3 行
. . 正在导入表 "TB_DUTY_INFO"导入了 0 行
. . 正在导入表 "TB_MANAGER"导入了 0 行
. . 正在导入表 "TB_NATION"导入了 5 行
. . 正在导入表 "TB_NATIVE_PLACE"导入了 4 行
. . 正在导入表 "TB_PERSONAL_INFO"导入了 0 行
. . 正在导入表 "TB_RECKONING"导入了 2 行
. . 正在导入表 "TB_RECKONING_INFO"导入了 0 行
. . 正在导入表 "TB_RECKONING_LIST"导入了 0 行
. . 正在导入表 "TB_RECORD"导入了 0 行
. . 正在导入表 "TB_REWARDS_AND_PUNISHMENT"导入了 0 行
. . 正在导入表 "TB_TIMECARD"导入了 0 行
成功终止导入, 没有出现警告。
C:\Users\liu>imp personnel_manage/mwq@DBSQL file=c:\personnel_manage.dmp fromuse
r=personnel_manage ignore=y commit=y grants=y
Import: Release 11.2.0.1.0 - Production on 星期二 5月 15 16:00:14 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
IMP-00058: 遇到 ORACLE 错误 12154
ORA-12154: TNS: 无法解析指定的连接标识符
IMP-00000: 未成功终止导入
C:\Users\liu>imp personnel_manage/mwq@127.0.0.1/DBSQL file=c:\personnel_manage.d
mp fromuser=personnel_manage ignore=y commit=y grants=y
Import: Release 11.2.0.1.0 - Production on 星期二 5月 15 16:00:48 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
经由常规路径由 EXPORT:V10.02.01 创建的导出文件
已经完成 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集中的导入
. 正在将 PERSONNEL_MANAGE 的对象导入到 PERSONNEL_MANAGE
. . 正在导入表 "TB_ACCESSION_FORM"导入了 2 行
. . 正在导入表 "TB_ACCOUNT_ITEM"导入了 6 行
. . 正在导入表 "TB_BRING_UP_CONTENT"导入了 0 行
. . 正在导入表 "TB_BRING_UP_ONTENT"导入了 0 行
. . 正在导入表 "TB_DEPT"导入了 5 行
. . 正在导入表 "TB_DUTY"导入了 3 行
. . 正在导入表 "TB_DUTY_INFO"导入了 0 行
. . 正在导入表 "TB_MANAGER"导入了 0 行
. . 正在导入表 "TB_NATION"导入了 5 行
. . 正在导入表 "TB_NATIVE_PLACE"导入了 4 行
. . 正在导入表 "TB_PERSONAL_INFO"导入了 0 行
. . 正在导入表 "TB_RECKONING"导入了 2 行
. . 正在导入表 "TB_RECKONING_INFO"导入了 0 行
. . 正在导入表 "TB_RECKONING_LIST"导入了 0 行
. . 正在导入表 "TB_RECORD"导入了 0 行
. . 正在导入表 "TB_REWARDS_AND_PUNISHMENT"导入了 0 行
. . 正在导入表 "TB_TIMECARD"导入了 0 行
成功终止导入, 没有出现警告。
精彩评论 9
2012-05-15
沙发
2012-5-15 16:18:21 org.hibernate.cfg.Environment <clinit>
信息: Hibernate 3.2.6
2012-5-15 16:18:21 org.hibernate.cfg.Environment <clinit>
信息: hibernate.properties not found
2012-5-15 16:18:21 org.hibernate.cfg.Environment buildBytecodeProvider
信息: Bytecode provider name : cglib
2012-5-15 16:18:21 org.hibernate.cfg.Environment <clinit>
信息: using JDK 1.4 java.sql.Timestamp handling
2012-5-15 16:18:21 org.hibernate.cfg.Configuration configure
信息: configuring from resource: /hibernate.cfg.xml
2012-5-15 16:18:21 org.hibernate.cfg.Configuration getConfigurationInputStream
信息: Configuration resource: /hibernate.cfg.xml
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbDept.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbDept -> tb_dept
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbPersonalInfo.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbPersonalInfo -> tb_personal_info
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbNativePlace.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbNativePlace -> tb_native_place
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbBringUpContent.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbBringUpContent -> tb_bring_up_content
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbReckoningList.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbReckoningList -> tb_reckoning_list
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbManager.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbManager -> tb_manager
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbRewardsAndPunishment.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbRewardsAndPunishment -> tb_rewards_and_punishment
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbAccountItem.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbAccountItem -> tb_account_item
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbDutyInfo.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbDutyInfo -> tb_duty_info
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbReckoning.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbReckoning -> tb_reckoning
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbTimecard.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbTimecard -> tb_timecard
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbNation.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbNation -> tb_nation
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbRecord.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbRecord -> tb_record
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbReckoningInfo.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbReckoningInfo -> tb_reckoning_info
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbAccessionForm.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbAccessionForm -> tb_accession_form
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbDuty.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbDuty -> tb_duty
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbBringUpOntent.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbBringUpOntent -> tb_bring_up_ontent
2012-5-15 16:18:21 org.hibernate.cfg.Configuration doConfigure
信息: Configured SessionFactory: null
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbDept.tbDepts -> tb_dept
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbDept.tbDutyInfos -> tb_duty_info
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbBringUpContent.tbBringUpOntents -> tb_bring_up_ontent
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbReckoning.tbReckoningInfos -> tb_reckoning_info
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbReckoning.tbReckoningLists -> tb_reckoning_list
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbRecord.tbBringUpOntents -> tb_bring_up_ontent
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbRecord.tbTimecardsForRecordId -> tb_timecard
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbRecord.tbRewardsAndPunishmentsForRecordId -> tb_rewards_and_punishment
2012-5-15 16:18:21 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: Using Hibernate built-in connection pool (not for production use!)
2012-5-15 16:18:21 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: Hibernate connection pool size: 20
2012-5-15 16:18:21 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: autocommit mode: false
2012-5-15 16:18:21 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@//127.0.0.1:1521/DBSQL
2012-5-15 16:18:21 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: connection properties: {user=PERSONNEL_MANAGE, password=****}
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
警告: Could not obtain connection metadata
java.sql.SQLException: ORA-01017: invalid username/password; logon denied
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.O3log.receive2nd(O3log.java:496)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:278)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298)
at com.mwq.hibernate.HibernateSessionFactory.<clinit>(HibernateSessionFactory.java:17)
at com.mwq.hibernate.BaseDao.queryList(BaseDao.java:29)
at com.mwq.hibernate.Dao.queryManagerOfNatural(Dao.java:141)
at com.mwq.frame.LandFrame.<init>(LandFrame.java:100)
at com.mwq.PersonnelManage.land(PersonnelManage.java:32)
at com.mwq.PersonnelManage$1.run(PersonnelManage.java:26)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2012-5-15 16:18:21 org.hibernate.dialect.Dialect <init>
信息: Using dialect: org.hibernate.dialect.OracleDialect
2012-5-15 16:18:21 org.hibernate.dialect.Oracle9Dialect <init>
警告: The Oracle9Dialect dialect has been deprecated; use either Oracle9iDialect or Oracle10gDialect instead
2012-5-15 16:18:21 org.hibernate.dialect.OracleDialect <init>
警告: The OracleDialect dialect has been deprecated; use Oracle8iDialect instead
2012-5-15 16:18:21 org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
信息: Using default transaction strategy (direct JDBC transactions)
2012-5-15 16:18:21 org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
信息: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Automatic flush during beforeCompletion(): disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Automatic session close at end of transaction: disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Scrollable result sets: disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: JDBC3 getGeneratedKeys(): disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Connection release mode: auto
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Default batch fetch size: 1
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Generate SQL with comments: enabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Order SQL updates by primary key: disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Order SQL inserts for batching: disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
信息: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
2012-5-15 16:18:21 org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
信息: Using ASTQueryTranslatorFactory
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Query language substitutions: {}
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: JPA-QL strict compliance: disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Second-level cache: enabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Query cache: disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory createCacheProvider
信息: Cache provider: org.hibernate.cache.NoCacheProvider
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Optimize cache for minimal puts: disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Structured second-level cache entries: disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Echoing all SQL to stdout
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Statistics: disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Deleted entity synthetic identifier rollback: disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Default entity-mode: pojo
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Named query checking : enabled
2012-5-15 16:18:21 org.hibernate.impl.SessionFactoryImpl <init>
信息: building session factory
2012-5-15 16:18:21 org.hibernate.impl.SessionFactoryObjectFactory addInstance
信息: Not binding factory to JNDI, no JNDI name configured
2012-5-15 16:18:23 org.hibernate.util.JDBCExceptionReporter logExceptions
警告: SQL Error: 1017, SQLState: 72000
2012-5-15 16:18:23 org.hibernate.util.JDBCExceptionReporter logExceptions
严重: ORA-01017: invalid username/password; logon denied
Exception in thread "AWT-EventQueue-0" org.hibernate.exception.GenericJDBCException: Cannot open connection
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
at org.hibernate.loader.Loader.doQuery(Loader.java:673)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
at org.hibernate.loader.Loader.doList(Loader.java:2213)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
at org.hibernate.loader.Loader.list(Loader.java:2099)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at com.mwq.hibernate.BaseDao.queryList(BaseDao.java:31)
at com.mwq.hibernate.Dao.queryManagerOfNatural(Dao.java:141)
at com.mwq.frame.LandFrame.<init>(LandFrame.java:100)
at com.mwq.PersonnelManage.land(PersonnelManage.java:32)
at com.mwq.PersonnelManage$1.run(PersonnelManage.java:26)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.O3log.receive2nd(O3log.java:496)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:278)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
... 26 more
信息: Hibernate 3.2.6
2012-5-15 16:18:21 org.hibernate.cfg.Environment <clinit>
信息: hibernate.properties not found
2012-5-15 16:18:21 org.hibernate.cfg.Environment buildBytecodeProvider
信息: Bytecode provider name : cglib
2012-5-15 16:18:21 org.hibernate.cfg.Environment <clinit>
信息: using JDK 1.4 java.sql.Timestamp handling
2012-5-15 16:18:21 org.hibernate.cfg.Configuration configure
信息: configuring from resource: /hibernate.cfg.xml
2012-5-15 16:18:21 org.hibernate.cfg.Configuration getConfigurationInputStream
信息: Configuration resource: /hibernate.cfg.xml
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbDept.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbDept -> tb_dept
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbPersonalInfo.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbPersonalInfo -> tb_personal_info
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbNativePlace.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbNativePlace -> tb_native_place
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbBringUpContent.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbBringUpContent -> tb_bring_up_content
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbReckoningList.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbReckoningList -> tb_reckoning_list
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbManager.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbManager -> tb_manager
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbRewardsAndPunishment.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbRewardsAndPunishment -> tb_rewards_and_punishment
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbAccountItem.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbAccountItem -> tb_account_item
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbDutyInfo.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbDutyInfo -> tb_duty_info
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbReckoning.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbReckoning -> tb_reckoning
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbTimecard.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbTimecard -> tb_timecard
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbNation.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbNation -> tb_nation
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbRecord.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbRecord -> tb_record
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbReckoningInfo.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbReckoningInfo -> tb_reckoning_info
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbAccessionForm.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbAccessionForm -> tb_accession_form
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbDuty.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbDuty -> tb_duty
2012-5-15 16:18:21 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/mwq/hibernate/mapping/TbBringUpOntent.hbm.xml
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.mwq.hibernate.mapping.TbBringUpOntent -> tb_bring_up_ontent
2012-5-15 16:18:21 org.hibernate.cfg.Configuration doConfigure
信息: Configured SessionFactory: null
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbDept.tbDepts -> tb_dept
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbDept.tbDutyInfos -> tb_duty_info
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbBringUpContent.tbBringUpOntents -> tb_bring_up_ontent
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbReckoning.tbReckoningInfos -> tb_reckoning_info
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbReckoning.tbReckoningLists -> tb_reckoning_list
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbRecord.tbBringUpOntents -> tb_bring_up_ontent
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbRecord.tbTimecardsForRecordId -> tb_timecard
2012-5-15 16:18:21 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: com.mwq.hibernate.mapping.TbRecord.tbRewardsAndPunishmentsForRecordId -> tb_rewards_and_punishment
2012-5-15 16:18:21 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: Using Hibernate built-in connection pool (not for production use!)
2012-5-15 16:18:21 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: Hibernate connection pool size: 20
2012-5-15 16:18:21 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: autocommit mode: false
2012-5-15 16:18:21 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@//127.0.0.1:1521/DBSQL
2012-5-15 16:18:21 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: connection properties: {user=PERSONNEL_MANAGE, password=****}
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
警告: Could not obtain connection metadata
java.sql.SQLException: ORA-01017: invalid username/password; logon denied
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.O3log.receive2nd(O3log.java:496)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:278)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298)
at com.mwq.hibernate.HibernateSessionFactory.<clinit>(HibernateSessionFactory.java:17)
at com.mwq.hibernate.BaseDao.queryList(BaseDao.java:29)
at com.mwq.hibernate.Dao.queryManagerOfNatural(Dao.java:141)
at com.mwq.frame.LandFrame.<init>(LandFrame.java:100)
at com.mwq.PersonnelManage.land(PersonnelManage.java:32)
at com.mwq.PersonnelManage$1.run(PersonnelManage.java:26)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2012-5-15 16:18:21 org.hibernate.dialect.Dialect <init>
信息: Using dialect: org.hibernate.dialect.OracleDialect
2012-5-15 16:18:21 org.hibernate.dialect.Oracle9Dialect <init>
警告: The Oracle9Dialect dialect has been deprecated; use either Oracle9iDialect or Oracle10gDialect instead
2012-5-15 16:18:21 org.hibernate.dialect.OracleDialect <init>
警告: The OracleDialect dialect has been deprecated; use Oracle8iDialect instead
2012-5-15 16:18:21 org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
信息: Using default transaction strategy (direct JDBC transactions)
2012-5-15 16:18:21 org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
信息: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Automatic flush during beforeCompletion(): disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Automatic session close at end of transaction: disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Scrollable result sets: disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: JDBC3 getGeneratedKeys(): disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Connection release mode: auto
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Default batch fetch size: 1
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Generate SQL with comments: enabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Order SQL updates by primary key: disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Order SQL inserts for batching: disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
信息: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
2012-5-15 16:18:21 org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
信息: Using ASTQueryTranslatorFactory
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Query language substitutions: {}
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: JPA-QL strict compliance: disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Second-level cache: enabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Query cache: disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory createCacheProvider
信息: Cache provider: org.hibernate.cache.NoCacheProvider
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Optimize cache for minimal puts: disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Structured second-level cache entries: disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Echoing all SQL to stdout
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Statistics: disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Deleted entity synthetic identifier rollback: disabled
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Default entity-mode: pojo
2012-5-15 16:18:21 org.hibernate.cfg.SettingsFactory buildSettings
信息: Named query checking : enabled
2012-5-15 16:18:21 org.hibernate.impl.SessionFactoryImpl <init>
信息: building session factory
2012-5-15 16:18:21 org.hibernate.impl.SessionFactoryObjectFactory addInstance
信息: Not binding factory to JNDI, no JNDI name configured
2012-5-15 16:18:23 org.hibernate.util.JDBCExceptionReporter logExceptions
警告: SQL Error: 1017, SQLState: 72000
2012-5-15 16:18:23 org.hibernate.util.JDBCExceptionReporter logExceptions
严重: ORA-01017: invalid username/password; logon denied
Exception in thread "AWT-EventQueue-0" org.hibernate.exception.GenericJDBCException: Cannot open connection
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
at org.hibernate.loader.Loader.doQuery(Loader.java:673)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
at org.hibernate.loader.Loader.doList(Loader.java:2213)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
at org.hibernate.loader.Loader.list(Loader.java:2099)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at com.mwq.hibernate.BaseDao.queryList(BaseDao.java:31)
at com.mwq.hibernate.Dao.queryManagerOfNatural(Dao.java:141)
at com.mwq.frame.LandFrame.<init>(LandFrame.java:100)
at com.mwq.PersonnelManage.land(PersonnelManage.java:32)
at com.mwq.PersonnelManage$1.run(PersonnelManage.java:26)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.O3log.receive2nd(O3log.java:496)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:278)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
... 26 more
2012-05-15
4L
[FIELDSET][LEGEND]引自:3楼[/LEGEND]
读者您好:
请看一下配置文件中对Oracle数据库连接的参数是否正确~
[/FIELDSET]
回复:为什么imp personnel_manage/mwq@DBSQL file=c:\personnel_manage.dmp fromuse
r=personnel_manage ignore=y commit=y grants=y 导入不了,
imp personnel_manage/mwq@127.0.0.1/DBSQL file=c:\personnel_manage.d
mp fromuser=personnel_manage ignore=y commit=y grants=y可以导入成功
配置文件没改过,如下,[font color=#FF0000]1521用户名,密码,端口没问题,还有什么连接参数呢?:[/font]
<property name="connection.driver_class"><!-- 配置数据库的驱动类 -->
oracle.jdbc.driver.OracleDriver
</property>
<property name="connection.url"><!-- 配置数据库的连接路径 -->
jdbc:oracle:thin:@127.0.0.1:1521:DBSQL
</property>
<property name="connection.username">PERSONNEL_MANAGE</property><!-- 配置数据库的连接用户名 -->
<property name="connection.password">MWQ</property><!-- 配置数据库的连接密码,这里密码为空,在这种情况下也可以省略该行配置代码 -->
<property name="dialect"><!-- 配置数据库使用的方言 -->
org.hibernate.dialect.OracleDialect
读者您好:
请看一下配置文件中对Oracle数据库连接的参数是否正确~
[/FIELDSET]
回复:为什么imp personnel_manage/mwq@DBSQL file=c:\personnel_manage.dmp fromuse
r=personnel_manage ignore=y commit=y grants=y 导入不了,
imp personnel_manage/mwq@127.0.0.1/DBSQL file=c:\personnel_manage.d
mp fromuser=personnel_manage ignore=y commit=y grants=y可以导入成功
配置文件没改过,如下,[font color=#FF0000]1521用户名,密码,端口没问题,还有什么连接参数呢?:[/font]
<property name="connection.driver_class"><!-- 配置数据库的驱动类 -->
oracle.jdbc.driver.OracleDriver
</property>
<property name="connection.url"><!-- 配置数据库的连接路径 -->
jdbc:oracle:thin:@127.0.0.1:1521:DBSQL
</property>
<property name="connection.username">PERSONNEL_MANAGE</property><!-- 配置数据库的连接用户名 -->
<property name="connection.password">MWQ</property><!-- 配置数据库的连接密码,这里密码为空,在这种情况下也可以省略该行配置代码 -->
<property name="dialect"><!-- 配置数据库使用的方言 -->
org.hibernate.dialect.OracleDialect
2012-05-18
7L
[FIELDSET][LEGEND]引自:4楼[/LEGEND]
[FIELDSET][LEGEND]引自:3楼[/LEGEND]
读者您好:
请看一下配置文件中对Oracle数据库连接的参数是否正确~
[/FIELDSET]
回复:为什么imp personnel_manage/mwq@DBSQL file=c:\personnel_manage.dmp fromuse
r=personnel_manage ignore=y commit=y grants=y 导入不了,
imp personnel_manage/mwq@127.0.0.1/DBSQL file=c:\personnel_manage.d
mp fromuser=personnel_manage ignore=y commit=y grants=y可以导入成功
配置文件没改过,如下,[font color=#FF0000]1521用户名,密码,端口没问题,还有什么连接参数呢?:[/font]
<property name="connection.driver_class"><!-- 配置数据库的驱动类 -->
oracle.jdbc.driver.OracleDriver
</property>
<property name="connection.url"><!-- 配置数据库的连接路径 -->
jdbc:oracle:thin:@127.0.0.1:1521:DBSQL
</property>
<property name="connection.username">PERSONNEL_MANAGE</property><!-- 配置数据库的连接用户名 -->
<property name="connection.password">MWQ</property><!-- 配置数据库的连接密码,这里密码为空,在这种情况下也可以省略该行配置代码 -->
<property name="dialect"><!-- 配置数据库使用的方言 -->
org.hibernate.dialect.OracleDialect
[/FIELDSET]
回复:你的Oracle数据库密码也是MWQ?
[FIELDSET][LEGEND]引自:3楼[/LEGEND]
读者您好:
请看一下配置文件中对Oracle数据库连接的参数是否正确~
[/FIELDSET]
回复:为什么imp personnel_manage/mwq@DBSQL file=c:\personnel_manage.dmp fromuse
r=personnel_manage ignore=y commit=y grants=y 导入不了,
imp personnel_manage/mwq@127.0.0.1/DBSQL file=c:\personnel_manage.d
mp fromuser=personnel_manage ignore=y commit=y grants=y可以导入成功
配置文件没改过,如下,[font color=#FF0000]1521用户名,密码,端口没问题,还有什么连接参数呢?:[/font]
<property name="connection.driver_class"><!-- 配置数据库的驱动类 -->
oracle.jdbc.driver.OracleDriver
</property>
<property name="connection.url"><!-- 配置数据库的连接路径 -->
jdbc:oracle:thin:@127.0.0.1:1521:DBSQL
</property>
<property name="connection.username">PERSONNEL_MANAGE</property><!-- 配置数据库的连接用户名 -->
<property name="connection.password">MWQ</property><!-- 配置数据库的连接密码,这里密码为空,在这种情况下也可以省略该行配置代码 -->
<property name="dialect"><!-- 配置数据库使用的方言 -->
org.hibernate.dialect.OracleDialect
[/FIELDSET]
回复:你的Oracle数据库密码也是MWQ?
2012-05-22
8L
[FIELDSET][LEGEND]引自:7楼[/LEGEND]
[FIELDSET][LEGEND]引自:4楼[/LEGEND]
[FIELDSET][LEGEND]引自:3楼[/LEGEND]
读者您好:
请看一下配置文件中对Oracle数据库连接的参数是否正确~
[/FIELDSET]
回复:为什么imp personnel_manage/mwq@DBSQL file=c:\personnel_manage.dmp fromuse
r=personnel_manage ignore=y commit=y grants=y 导入不了,
imp personnel_manage/mwq@127.0.0.1/DBSQL file=c:\personnel_manage.d
mp fromuser=personnel_manage ignore=y commit=y grants=y可以导入成功
配置文件没改过,如下,[font color=#FF0000]1521用户名,密码,端口没问题,还有什么连接参数呢?:[/font]
<property name="connection.driver_class"><!-- 配置数据库的驱动类 -->
oracle.jdbc.driver.OracleDriver
</property>
<property name="connection.url"><!-- 配置数据库的连接路径 -->
jdbc:oracle:thin:@127.0.0.1:1521:DBSQL
</property>
<property name="connection.username">PERSONNEL_MANAGE</property><!-- 配置数据库的连接用户名 -->
<property name="connection.password">MWQ</property><!-- 配置数据库的连接密码,这里密码为空,在这种情况下也可以省略该行配置代码 -->
<property name="dialect"><!-- 配置数据库使用的方言 -->
org.hibernate.dialect.OracleDialect
[/FIELDSET]
回复:你的Oracle数据库密码也是MWQ?
[/FIELDSET]
回复:
密码是小写的mwq,更改后通过
[FIELDSET][LEGEND]引自:4楼[/LEGEND]
[FIELDSET][LEGEND]引自:3楼[/LEGEND]
读者您好:
请看一下配置文件中对Oracle数据库连接的参数是否正确~
[/FIELDSET]
回复:为什么imp personnel_manage/mwq@DBSQL file=c:\personnel_manage.dmp fromuse
r=personnel_manage ignore=y commit=y grants=y 导入不了,
imp personnel_manage/mwq@127.0.0.1/DBSQL file=c:\personnel_manage.d
mp fromuser=personnel_manage ignore=y commit=y grants=y可以导入成功
配置文件没改过,如下,[font color=#FF0000]1521用户名,密码,端口没问题,还有什么连接参数呢?:[/font]
<property name="connection.driver_class"><!-- 配置数据库的驱动类 -->
oracle.jdbc.driver.OracleDriver
</property>
<property name="connection.url"><!-- 配置数据库的连接路径 -->
jdbc:oracle:thin:@127.0.0.1:1521:DBSQL
</property>
<property name="connection.username">PERSONNEL_MANAGE</property><!-- 配置数据库的连接用户名 -->
<property name="connection.password">MWQ</property><!-- 配置数据库的连接密码,这里密码为空,在这种情况下也可以省略该行配置代码 -->
<property name="dialect"><!-- 配置数据库使用的方言 -->
org.hibernate.dialect.OracleDialect
[/FIELDSET]
回复:你的Oracle数据库密码也是MWQ?
[/FIELDSET]
回复:
密码是小写的mwq,更改后通过