`

use either Oracle9iDialect or Oracle10gDialect instead

阅读更多
10:30:16,909  WARN Oracle9Dialect:62 - HHH000063: The Oracle9Dialect dialect has been deprecated; use either Oracle9iDialect or Oracle10gDialect instead
10:30:16,914  WARN OracleDialect:48 - HHH000064: The OracleDialect dialect has been deprecated; use Oracle8iDialect instead




<bean id="sessionFactory"
		class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
		<!-- 注入数据源 -->
		<property name="dataSource" ref="dataSource" />
		<!-- 设置Spring取那个包中查找相应的实体类 -->
		<property name="packagesToScan">
			<value>com.lj.basic.model</value>
		</property>
		<property name="hibernateProperties">
			<!-- <value> hibernate.dialect=org.hibernate.dialect.HSQLDialect </value> -->
			<props>
				<prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
				<prop key="hibernate.show_sql">true</prop>
				<prop key="hibernate.hbm2ddl.auto">update</prop>
				<prop key="hibernate.format_sql">false</prop>
			</props>
		</property>
	</bean>


由于我使用的Oracle版本是11g, 这里必须使用Oracle10gDialect,

之前使用的是org.hibernate.dialect.OracleDialect, 结果就报了如上的错误。
分享到:
评论

相关推荐

    oracle-use.rar_Oracle drop use_oracle

    "oracle-use.rar_Oracle drop use_oracle"这个压缩包包含了与Oracle数据库使用相关的多个文档,包括查询、操作、PL/SQL语法、数据导入导出、连接配置以及备份恢复等方面的知识。 首先,我们来关注"插入数据"这一...

    Expert Oracle Database Architecture 9i and 10g programming Techniques and Solutions

    why you would consider using a particular feature or implementation. I feel it is important to understand not only the “how” behind things, but also the “when” and “why”—as well as the “when ...

    Oracle连接数据库JDBC驱动包

    Oracle连接数据库JDBC驱动包,对于老版本的oracle,连接驱动比较难找比较难找,甲骨文官网下载难以查找旧版JDBC驱动。 压缩包搜集了几个版本的JDBC驱动,适用于Oracle9i 10,11等。

    oracle的hint函数

    介绍了oracle中的hint,常用的 ordered、use_nl、use_hash、index、full 五种, 给出使用实例和适用场景

    Windows Server 2003上安装Oracle10g(10.2.0.1)并升级至补丁(10.2.0.4)图解

    - Oracle Database 10g (10.2.0.1) or later **二、升级安装前的准备工作** 1. **关闭数据库** 使用 SQL 命令 `SHUTDOWN` 关闭数据库服务。 2. **停止所有服务** - 关闭所有可能访问数据库的工具软件和服务进程...

    Direct Oracle Access 4.1.2 Full Source for Delphi 2010

    If you use Delphi or C++Builder to access an Oracle database, this component set can make your life a lot easier. With the Direct Oracle Access components and objects you access an Oracle database ...

    2010年10月最新ORACLE OCP培训教程

    Preface 1 Introduction Course Objectives 1-2 Suggested Schedule 1-3 Lesson Objectives 1-4 Oracle Products and Services 1-5 ...Oracle Internal & Oracle Academy Use Only.............................

    Oracle Developer Tools for VS 2017 MSI Installer

    If there is then please use OUI to uninstall Oracle Developer Tools for Visual Studio before proceeding with this install. Failure to uninstall may result in errors when launching Visual Studio or ...

    让Oracle跑得更快 Oracle 10g性能分析与优化思路.part2.rar

    6.4.1 use_hash,use_nl和use_merge hint 127 6.4.2 no_use_hash hint 132 6.4.3 no_use_merge hint 133 6.4.4 no_use_nl hint 133 6.5 并行执行相关的hint 134 6.5.1 parallel hint 134 6.5.2 no_parallel hint 134...

    DBD-Oracle1.8

    DBD-Oracle1.8是Perl编程语言中用于与Oracle数据库交互的一个重要模块。这个模块提供了Perl应用程序连接到Oracle数据库的必要驱动,确保了开发者能够顺利地进行数据存取、查询和其他数据库操作。在没有DBD-Oracle的...

    Oracle Essbase

    Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. Intel and Intel Xeon are trademarks or registered trademarks of ...

    oracle 10g RAC for windows

    ### Oracle 10g RAC for Windows:详细安装与配置指南 #### 1. 引言 Oracle 10g RAC(Real Application Clusters)是Oracle数据库的一个关键组件,它允许在一个集群环境中运行多个数据库实例,从而提高可用性和...

    Oracle Database Server 'TNS Listener'远程数据投毒漏洞(CVE-2012-1675)的解决文档

    1234 SolutionRecommendations for protecting against this vulnerability can be found at:My Oracle Support Note 1340831.1 for Oracle Database deployments that use Oracle Real Application Clusters (RAC)....

    ORACLE9i_优化设计与系统调整

    第一部分 ORACLE系统优化基本知识 23 第1章 ORACLE结构回顾 23 §1.1 Oracle数据库结构 23 §1.1.1 Oracle数据字典 23 §1.1.2 表空间与数据文件 24 §1.1.3 Oracle实例(Instance) 24 §1.2 Oracle文件 26 §1.2.1...

    Oracle SQL Tuning with Oracle SQLTXPLAIN: Oracle Database 12c Edition

    Oracle SQL Tuning with Oracle SQLTXPLAIN: Oracle Database 12c Edition by Stelios Charalambides English | 8 May 2017 | ISBN: 1484224353 | 408 Pages | PDF | 24.39 MB Learn through this practical guide ...

    [Oracle] Oracle Spatial 应用扩展 (英文版)

    Understand how to develop Oracle Spatial data models and applications that use PL/SQL and Java to solve common problems using practical, hands-on examples Design a data model for spatial applications ...

    RHEL3上ORACLE9I备份与迁移

    例如,可以使用`alter system set log_archive_dest_1='location=/oracle/archivelog'`和`alter system set log_archive_dest_2='location=use_db_recovery_file_dest'`来设定归档日志的存储位置。 接下来,关闭并...

    Oracle中文架构PPT

    Oracle中文架构PPT,虽然10g版本,但是学习oracle哪怕10g都没问题 Oracle架构01_intro.ppt Oracle架构02_con_rman.ppt Oracle架构03_use_rman.ppt Oracle架构04_nc_rec.ppt Oracle架构05_recover.ppt Oracle...

Global site tag (gtag.js) - Google Analytics