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.