oracle-db-examples | Examples of applications and tool usage for Oracle Database | Database library
kandi X-RAY | oracle-db-examples Summary
kandi X-RAY | oracle-db-examples Summary
This repository stores a variety of examples demonstrating how to use the Oracle Database.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- This function increments the total salary and returns the result set .
- Demonstrates how to run with non - harvestable connections .
- Returns a list of TaskListener
- Starts the UCP connect .
- Demonstrates how to show the max connection reusing times .
- dump all object types
- Initializes the content model .
- This is a helper method to insert values into a batch of values .
- Demonstrates how to show an inactivity connection timeout .
- Process the task .
oracle-db-examples Key Features
oracle-db-examples Examples and Code Snippets
Community Discussions
Trending Discussions on oracle-db-examples
QUESTION
I am currentliy experimenting with the native-image tool from GraalVM and the Oracle-driver. The source code compiles and generates an exe File without errors. But when I start the program it gets a java.lang.RuntimeException: Missing character set id 170 not loaded at image build time.
I am connecting to a database with characterset NLS_CHARACTERSET = EE8MSWIN1250. When I use a database with NLS_CHARACTERSET = AL32UTF8 the connection works fine.
I am using GraalVM CE 21.0.0.2 (build 11.0.10+8-jvmci-21.0-b06 and ojdbc11-21.1.0.0.jar on a Windows 10 64bit Computer.
Below ist the error message and the source code. I used the sample code from https://github.com/oracle/oracle-db-examples/blob/master/java/jdbc/ConnectionSamples/DataSourceSample.java
Exception in thread "main" java.lang.RuntimeException: Missing character set id 170 not loaded at image build time at oracle.sql.CharacterSet.make(CharacterSet.java:121) at oracle.jdbc.driver.DBConversion.init(DBConversion.java:184) at oracle.jdbc.driver.DBConversion.(DBConversion.java:137) at oracle.jdbc.driver.T4CConnection.doCharSetNegotiation(T4CConnection.java:2607) at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:2176) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:644) at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:1069) at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:90) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:681) at oracle.jdbc.datasource.impl.OracleDataSource.getPhysicalConnection(OracleDataSource.java:569) at oracle.jdbc.datasource.impl.OracleDataSource.getConnection(OracleDataSource.java:355) at oracle.jdbc.datasource.impl.OracleDataSource.getConnectionInternal(OracleDataSource.java:2014) at oracle.jdbc.datasource.impl.OracleDataSource.getConnection(OracleDataSource.java:330) at oracle.jdbc.datasource.impl.OracleDataSource.getConnection(OracleDataSource.java:291) at DataSourceSample.main(DataSourceSample.java:24)
DataSourceSample.java
...ANSWER
Answered 2021-Mar-02 at 10:48I'm not 100% sure that it's the culprit, but here's the general idea about native image and charsets.
Native image doesn't include all possible charsets by default, you can configure it to do so by using the following option:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install oracle-db-examples
You can use oracle-db-examples like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the oracle-db-examples component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page