Spring+mybatis+oracle ORA-00923: Expected from keyword not found

Source: Internet
Author: User

An error encountered during the use of spring+mybatis+oracle.

Finally see the online sharing to solve this problem, mark.

The main problem is that the configuration of the mybatis is problematic. I'm going to copy it right here.

Original link: http://hellostory.iteye.com/blog/1416507

Thank the original author again. Thx!

Checked for database connection pool configuration error (Content.xml)!

When you configure the SQL Server (MySQL same) database connection pool, the property validationquery default value is "SELECT 1",

In the Oracle database connection pool should be set to "validationquery=" Select 1 from Dual ""

SQL Server(mysql same) database connection pool configuration:

 <Context>      <Resourcename= "Jdbc/myoracle"type= "Javax.sql.DataSource"username= "Test"Password= "Test"Driverclassname= "Oracle.jdbc.driver.OracleDriver"Maxidle= "5"maxwait= "the" validationquery= "Select 1" URL= "Jdbc:oracle:thin:@192.168.1.1:1521:mydb"maxactive= " the"       />  </Context> 

Oracle database Connection Pool configuration:

<Context>      <Resourcename= "Jdbc/myoracle"type= "Javax.sql.DataSource"username= "Test"Password= "Test"Driverclassname= "Oracle.jdbc.driver.OracleDriver"Maxidle= "5"maxwait= "the" validationquery= "Select 1 from dual" URL= "Jdbc:oracle:thin:@192.168.1.1:1521:mydb"maxactive= " the"       />  </Context>

Spring+mybatis+oracle ORA-00923: Expected from keyword not found

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.