mirror of
https://github.com/oracle/skills.git
synced 2026-09-19 03:46:55 +08:00
2.3 KiB
2.3 KiB
Java Oracle JDBC
Overview
Use these skills when building Java applications that connect to Oracle Database with the Oracle JDBC Thin driver.
Start here when you need to choose the right ojdbc artifact, build a JDBC URL, execute SQL safely, configure UCP pooling, or prepare a Java service for production use with Oracle Database.
JDBC Skill Map
| Need | Use |
|---|---|
Choose ojdbc17, ojdbc11, or UCP artifacts; configure Maven or Gradle |
JDBC Dependencies |
| Build JDBC URLs; use Easy Connect, EZConnect+, TNS aliases, wallets, or TLS | JDBC Connections |
| Run queries, DML, batch operations, binds, and PL/SQL calls | JDBC SQL and PL/SQL |
| Configure UCP, Spring Boot datasource settings, security, and production practices | JDBC Pooling and Production |
Quick Defaults
- Use
ojdbc17for modern JDK 17+ applications. - Keep
ojdbcanducpartifacts on the same version. - Use JDBC URLs in the
jdbc:oracle:thin:@//host:port/service_nameform for Easy Connect. - Use
PreparedStatementor Oracle named binds for user input. - Use UCP or a framework-managed pool for production services.
- Use wallets or TLS configuration when connecting to Autonomous Database or secured deployments.