Java. SQL. sqlexception: ORA-00600: Internal error code, parameter: [ttcgcshnd-1], [0], [], [], [], [], [], [], []

Source: Internet
Author: User

Jdbc connects to the oracle database. What should I do if the table name in the SQL statement contains the '$' symbol?

The SQL statement is as follows: "select * from v $ session"

The error message is as follows:
Java. SQL. SQLException: ORA-00600: Internal error code, parameter: [ttcgcshnd-1], [0], [], [], [], [], [], [], []

At oracle. jdbc. dbaccess. DBError. throwSqlException (DBError. java: 168)
At oracle. jdbc. ttc7.TTIoer. processError (TTIoer. java: 208)
At oracle. jdbc. ttc7.Oall7. receive (Oall7.java: 543)
At oracle. jdbc. ttc7.TTC7Protocol. doOall7 (TTC7Protocol. java: 1405)
At oracle. jdbc. ttc7.TTC7Protocol. fetch (TTC7Protocol. java: 889)
At oracle. jdbc. driver. OracleStatement. doExecuteQuery (OracleStatement. java: 1681)
At oracle. jdbc. driver. OracleStatement. doExecuteWithTimeout (OracleStatement. java: 1870)
At oracle.jdbc.driver.OracleStatement.exe cute (OracleStatement. java: 737)
At components. netdevice. DatabaseReport. getConnAmount (DatabaseReport. java: 52)
At components. netdevice. databasereport. Main (databasereport. Java: 35)

As long as the fields in the table have data types such as varchar () or char (), an error occurs. I read some posts and said it was a driver problem. I held a skeptical attitude. It is clear that there is only one JDBC driver package in the class path, and it is impossible to make an error.
It was later confirmed that it was a driver problem. Other jar packages contain the Oracle driver. The two packages conflict with each other. After replacement, the solution is solved.

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.