public-oracle-expert-base
Skill25 starsChanged 4 months agoApache-2.0View on GitHub
Oracle 知识基座。覆盖 Connection Types、JDBC Driver、Connection Pool、LOB Handling、Character Set、SQL Dialect。供 devlab-oracle-usage 通过 extends 继承。
In this repository57 other files it gives its agents.
- base-cn-registry-mirror-strategySkill
- base-manual-captureSkill
- devlab-ai-agent-engineeringSkill
- devlab-ai-kit-minerSkill
- devlab-cicd-onboardSkill
- devlab-contract-web-serverSkill
- devlab-dao-sql-compatSkill
- devlab-db-data-migrationSkill
- devlab-eval-driven-agentSkill
- devlab-integration-fullstackSkill
- devlab-srv-test-apiSkill
- devlab-tech-debt-opsSkill
- devlab-test-expertSkill
- devlab-test-onboardSkill
- devlab-web-contextSkill
- devlab-web-deep-acceptanceSkill
- devlab-web-echarts-usageSkill
- devlab-web-engineeringSkill
- devlab-web-extension-bootstrapSkill
- devlab-web-skywalking-rum-usageSkill
- devlab-web-test-e2eSkill
- devlab-web-visual-opsSkill
- devlab-web-xyflow-usageSkill
- diag-container-oomSkill
- diag-k8s-node-pressureSkill
- diag-k8s-pod-crashloopSkill
- diag-mysql-deadlockSkill
- diag-mysql-replicationSkill
- diag-mysql-slow-querySkill
- diag-network-port-unreachSkill
- infra-dify-opsSkill
- infra-harbor-opsSkill
- infra-jenkins-pipeline-opsSkill
- infra-nexus-opsSkill
- infra-ragflow-opsSkill
- infra-sonarqube-opsSkill
- infra-system-env-opsSkill
- infra-woodpecker-pipeline-opsSkill
- markitdownSkill
- patent-disclosure-workflowSkill
- patent-reviewSkill
- patent-specification-writerSkill
- public-git-workflow-expert-baseSkill
- public-kafka-expert-baseSkill
- public-mongodb-expert-baseSkill
- public-mysql-expert-baseSkill
- public-nl2sql-expert-baseSkill
- public-postgres-expert-baseSkill
- public-rabbitmq-expert-baseSkill
- public-redis-expert-baseSkill
- work-convertSkill
- work-exportSkill
- work-markitdownSkill
- work-sc-document-sop-builderSkill
- work-sc-docx-comment-replySkill
- work-sc-patent-specification-writerSkill
- work-sc-software-copyright-writerSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Use ojdbc8.jar for JDK 8+, ojdbc11.jar for JDK 11+.
- Very specific: line 30
Add orai18n.jar for internationalization support.
- Very specific: line 50
Use setStringForClob() / setBinaryStream() for inserts.
- Distinctive: line 75
Use Service Name format, not SID.
- Distinctive: line 76
Always use connection pooling (UCP or HikariCP).
- Distinctive: line 77
Use bind variables (prepared statements) — never string concatenation for SQL.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Oracle Database Knowledge Base
Source: Compiled from Oracle official documentation, JDBC best practices, and common integration patterns.
Connection Types
| Format | Example | Status |
| Service Name | jdbc:oracle:thin:@//host:port/service_name | Recommended |
| SID (legacy) | jdbc:oracle:thin:@host:port:SID | Legacy, avoid |
| TNS | jdbc:oracle:thin:@tns_alias | Enterprise with tnsnames.ora |
| EZConnect | jdbc:oracle:thin:@host:port/service_name | Simple, no config file |
- Always prefer Service Name over SID for new projects.
- Easy Connect Plus (19c+):
jdbc:oracle:thin:@tcp://host:port/service_name?wallet_location=/path.
JDBC Driver
| Type | Description | When to use |
| Thin (Type 4) | Pure Java, no Oracle client | Default choice |
| Thick (OCI, Type 2) | Requires Oracle Client | Advanced features (TAF, Advanced Queuing) |
| UCP | Universal Connection Pool | Production pooling |
- Thin driver is sufficient for 95% of use cases.
- Use
ojdbc8.jarfor JDK 8+,ojdbc11.jarfor JDK 11+. - Add
orai18n.jarfor internationalization support.
Connection Pool
| Pool | Recommended for |
| UCP (Oracle) | Oracle-specific features, best performance |
| HikariCP | Spring Boot, general-purpose, simpler config |
HikariCP config for Oracle:
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
spring.datasource.url=jdbc:oracle:thin:@//host:1521/service_name
spring.datasource.hikari.maximum-pool-size=20
spring.datasource.hikari.connection-timeout=5000
spring.datasource.hikari.idle-timeout=300000
spring.datasource.hikari.connection-test-query=SELECT 1 FROM DUALLOB Handling
CLOBfor large text (>4000 chars);BLOBfor binary data.- Use
setStringForClob()/setBinaryStream()for inserts. - For reads, use
getCharacterStream()/getBinaryStream()— avoidgetString()on large CLOBs. - LOB locator vs data:
oracle.jdbc.useStreamForLobOutput=truefor streaming writes.
Character Set
- AL32UTF8 is the recommended database character set (Unicode).
- JDBC driver auto-detects charset from database; no client-side config needed.
- Verify:
SELECT value FROM nls_database_parameters WHERE parameter='NLS_CHARACTERSET';
SQL Dialect Differences (vs MySQL/PostgreSQL)
| Feature | Oracle | MySQL/PostgreSQL | ||||
| Auto-increment | SEQUENCE + TRIGGER or IDENTITY (12c+) | AUTO_INCREMENT / SERIAL | ||||
| LIMIT | FETCH FIRST n ROWS ONLY (12c+) or ROWNUM | LIMIT n | ||||
| String concat | ` | ` operator | CONCAT() / ` | ` | ||
| Date functions | SYSDATE, ADD_MONTHS(), MONTHS_BETWEEN() | NOW(), DATE_ADD() | ||||
| Boolean | No native BOOLEAN in SQL (use NUMBER(1)) | Native BOOLEAN | ||||
| Outer join syntax | (+) legacy or ANSI LEFT JOIN | ANSI LEFT JOIN |
Oracle Wallet
- Wallet stores credentials for mutual TLS authentication.
- Location: set
oracle.net.wallet_locationin connection properties. - For Autonomous Database: download wallet zip, extract to directory, reference in connection string.
Guardrails
- Use Service Name format, not SID.
- Always use connection pooling (UCP or HikariCP).
- Use bind variables (prepared statements) — never string concatenation for SQL.
- Set
oracle.jdbc.ReadTimeoutandoracle.net.CONNECT_TIMEOUT. - For LOBs >4KB, always use streaming API.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

