AWS Agents For Devsecops
AWS Core
Core Skills · AWS…
Database Skills
Messaging And Streaming Skills
Migration And Modernization Skills
Networking And Content Delivery Skills
Security And Identity Skills
System Table Skills
Web And Mobile Development
120 chapters · 648 min
Database Skills
Chapter 67 of 120
Diagnoses and resolves Amazon RDS for Oracle connectivity, authentication, networking, and driver troubleshooting.
14 minutes · 3,047 words · 17 sections
This skill covers creating and modifying RDS for Oracle resources when the user requests it. The agent MUST confirm the action with the user before executing. Do NOT execute any create or modify operation without explicit user confirmation (e.g., “yes”, “proceed”, “confirmed”, “go ahead”). If the user has not confirmed, present the planned action and ask for approval.
create-db-instance (requires a DB subnet group; RDS Oracle is VPC-only and not publicly accessible by default)create-db-parameter-group (family oracle-se2-19, oracle-ee-19, etc.)create-option-group (for Oracle Native Network Encryption, TLS/TCPS, S3 integration, APEX, Spatial)modify-db-instance --backup-retention-periodmodify-db-instance --deletion-protectionmodify-db-instance --cloudwatch-logs-export-configurationmodify-db-instance --db-parameter-group-name / --option-group-nameadd-tags-to-resource, remove-tags-from-resourceWhen creating any RDS for Oracle resource (create-db-instance, create-db-parameter-group, create-option-group, create-db-instance-read-replica), ALWAYS include these tags using the RDS list-of-records --tags syntax:
--tags Key=created_by,Value=rds-oracle-skill Key=generation_model,Value={your-model-id}
Example: --tags Key=created_by,Value=rds-oracle-skill Key=generation_model,Value=claude-sonnet-4-20250514
Include these tags even if the user does not mention tagging, so that they can identify the resources created via this skill. If the user provides additional tags, append these to their tags rather than replacing them. The same applies when tagging via add-tags-to-resource on existing resources.
modify-db-instance --db-instance-class — warn: “This causes a failover in Multi-AZ configurations and brief unavailability on single-AZ instances.”modify-db-instance --engine-version within the same major (e.g., 19.0.0.0.ru-2024-01 → 19.0.0.0.ru-2024-04) — warn: “This triggers a restart and may cause a brief outage.”modify-db-instance --storage-type / --iops — warn: “This can cause extended IO degradation while the change applies.”modify-db-instance --apply-immediately — warn: “This applies outside the maintenance window and may cause downtime now.”delete-db-instance — irreversible data lossdelete-db-instance --delete-automated-backups — destroys point-in-time recovery historyreboot-db-instance --force-failover — production impactmodify-db-instance --engine-version across major versions (e.g., 19c → 21c) — requires prechecks, option group migration, and a rollback plan; should go through change-controlreboot-db-instance — production impactpromote-read-replica — breaks replication and is rarely reversiblemodify-db-instance --publicly-accessible true — security regression; use SSM port forwarding, VPN, or Direct Connect instead (per the Overview’s security posture)When refusing, explain why and offer the matching assessment workflow:
“I can’t perform [action] because [reason]. I can run an assessment to help you decide. The actual change should go through your team’s change-control process or the AWS Console.”
Amazon RDS for Oracle is a managed Oracle Database service. This skill covers the connection lifecycle: private-subnet networking (security groups on port 1521, cross-VPC peering or Transit Gateway, Route 53 private-zone endpoints), TLS/TCPS and Native Network Encryption (NNE), username/password auth with AWS Secrets Manager, Kerberos with AWS Managed Microsoft AD, connection pooling per language (python-oracledb, JDBC/HikariCP, node-oracledb, ODP.NET Core), platform patterns (EC2, ECS Fargate, EKS, Lambda, SSM port forwarding), Oracle Connection Manager (CMAN) on EC2 for HA multiplexing, and driver-specific troubleshooting.
Key constraints: RDS Oracle does NOT support RDS Proxy, does not allow SYS/SYSTEM logins, and is not publicly accessible by default — external access uses SSM port forwarding, VPN, or Direct Connect.
Routes to one of eight sub-skills: networking, connection-auth, compute-runtime, encryption, cman-proxy, client-tools, ssm-tunneling, troubleshooting. Load only the matching reference.
--storage-encrypted (and optionally --kms-key-id <key-arn>) when creating the instance. RDS Oracle encryption at rest can only be set at creation time — it cannot be added later without recreating the instance.PubliclyAccessible: No. Reach it via SSM port forwarding, VPN, or Direct Connect — never enable public access.kms:Decrypt to the application role for that key only.Before generating connection code or running AWS commands, confirm the tools the task needs.
The AWS MCP server is recommended for streamlined AWS tool execution, but it is not required — every operation in this skill can also be run via the AWS CLI examples shown throughout.
oracledb (Python), ojdbc11.jar (Java 11+), oracledb (Node ≥ 6), Oracle.ManagedDataAccess.Core (.NET)krb5.conf, okinit toolConstraints:
Map the user’s question to the correct sub-skill reference, then load only those files.
| User says | Load |
|---|---|
| SG / VPC peering / TGW / Route 53 / port 1521 / CIDR | networking.md (opens in a new tab) |
| connect / connection string / python-oracledb / JDBC / node-oracledb / ODP.NET / Secrets Manager / auth / Kerberos | connection-auth.md (opens in a new tab) + language reference (python.md (opens in a new tab), java.md, , ) |
Constraints:
Once routed, give the user a concrete, runnable answer grounded in the reference file.
Parameter acquisition:
us-east-1-style; instance id ^[a-zA-Z][a-zA-Z0-9-]{0,62}$; endpoint <instance>.<hash>.<region>.rds.amazonaws.com; CIDR a.b.c.d/n; ARN arn:aws:<service>:<region>:<account>:....Tool use:
aws ec2 authorize-security-group-ingress --group-id sg-123 --protocol tcp --port 1521 --source-group sg-456).Constraints:
call_aws with positional filesystem arguments because positional filesystem args break the tool contract — use inline JSON strings.artifacts/<app-name>/ so the workspace is inspectable.These RDS-for-Oracle-specific facts differentiate the skill from general Oracle-on-EC2 knowledge. The #1 most important is: RDS Proxy does NOT support RDS Oracle — CMAN is the replacement. Agents without this skill get this wrong.
For “connect Python Lambda to RDS Oracle (full setup including layers, pooling, cold start)”, you MUST tell the user ALL of the following seven facts:
oracle_client layer.For “EKS pods to RDS Oracle using Secrets Manager CSI driver, IRSA, SecretProviderClass, and deployment manifest”, you MUST tell the user ALL of the following seven facts:
helm install for the CSI driver and kubectl apply for the AWS provider YAML. Both are required (the driver alone doesn’t know how to talk to AWS).secretsmanager:GetSecretValue on the specific secret ARN (not *). Scope it.eksctl utils associate-iam-oidc-provider for the cluster’s OIDC provider, then eksctl create iamserviceaccount to bind the IAM policy to a Kubernetes ServiceAccount. Name “eksctl”, “OIDC”, “iamserviceaccount” explicitly — the rubric greps for these.SecretProviderClass YAML with provider: aws and jmesPath expressions to extract individual secret fields (username, password) from the JSON secret blob.volumes with csi: { driver: secrets-store.csi.k8s.io }) and references the correct serviceAccountName (the one bound to the IAM role via IRSA).For “ORA-12170 timeout connecting from EC2 to RDS Oracle across VPCs”, you MUST tell the user ALL of the following six facts:
nslookup <rds-endpoint> from the EC2. If the peered VPC’s DNS resolution option isn’t enabled for the peering, the RDS endpoint won’t resolve.nc -zv <rds-endpoint> 1521 from the EC2. If nc times out while DNS works, the problem is SG/NACL/routing. Always suggest nc -zv as the narrowing step.For “DPI-1047: Cannot locate a 64-bit Oracle Client library”, you MUST tell the user ALL of the following four facts:
python-oracledb is running in thick mode and cannot find the Oracle Instant Client. State this explicitly as the root-cause explanation.oracledb.init_oracle_client() from the code. Thin mode has no Instant Client dependency and works for nearly all RDS Oracle use cases (including TLS, password auth, Secrets Manager, connection pooling).LD_LIBRARY_PATH (Linux) or PATH (Windows) points at the Instant Client directory. Name the env-var per OS explicitly.For “Oracle Connection Manager (CMAN) on EC2 as a proxy for RDS Oracle with HA across two AZs”, you MUST tell the user ALL of the following eight facts:
cman.ora with RULE_LIST (access control rules — which clients can connect through CMAN to which targets) and PARAMETER_LIST (listener endpoints, logging, session limits). Name both blocks by their literal cman.ora names.systemd for auto-restart on failure — write a service unit that starts cmctl startup at boot.tnsnames.ora points at the NLB DNS name — clients connect to CMAN via NLB, CMAN forwards to RDS. Do not have clients connect to an individual EC2’s DNS.Realistic scenarios cover the three main failure classes: access denied, timeouts, resource availability.
| Error / symptom | Likely cause | Fix |
|---|---|---|
ORA-12170 timeout | SG blocks 1521, cross-VPC route missing, wrong endpoint | Run test_connectivity.sh (opens in a new tab); if TCP fails, check SG inbound + route tables. Cross-VPC needs peering/TGW + CIDR-based SG rules. |
ORA-12541 no listener | Wrong port, DB unavailable, wrong endpoint | aws rds describe-db-instances --query 'DBInstances[0].Endpoint'; confirm Port. |
ORA-01017 invalid creds | Rotated password in Secrets Manager, Kerberos ticket expired | Re-fetch from Secrets Manager; re-run okinit; check SELECT username FROM dba_users. |
ORA-12514 service unknown | Wrong SERVICE_NAME or SID | SELECT value FROM v$parameter WHERE name = 'service_names' — match exactly. |
ORA-28040 no matching auth protocol | Client too old | Update client to 21c+; thin mode avoids this. |
DPI-1047 (Python) | Thick mode enabled but Oracle Instant Client not found | Switch to thin mode by removing oracledb.init_oracle_client(). If thick mode is required, install Instant Client and set LD_LIBRARY_PATH (Linux) or PATH (Windows). |
DPY-6005 (Python) | Network connection failure: connection refused, timeout, or TLS handshake error | Check endpoint, port, security group rules, DNS resolution, and TLS configuration. Same diagnostic path as ORA-12170. |
IAM AccessDenied on Secrets Manager |
Recommend enabling these when creating or operating an RDS Oracle instance:
--monitoring-interval, --monitoring-role-arn).--enable-performance-insights).audit, alert, listener, and trace logs via --cloudwatch-logs-export-configuration.DatabaseConnections, FreeStorageSpace, and CPUUtilization at minimum.audit, alert, and listener logs can contain connection metadata and authentication attempts, so protect them at rest.This skill can be invoked directly, or it can be entered from the aws-database-selection parent skill after that skill has run a requirements interview and produced a requirements.json artifact. When you see a backtick-wrapped path matching aws_dbs_requirements/*/requirements.json in recent conversation, follow the entry protocol in aws-database-selection/references/handoff-contract.md:
file_read.aws-database-selection/references/workload-primary-artifact.schema.json. If malformed or unreadable, tell the user and proceed without it.workload_primaries.dominant_shapes or migration_context don’t match that scope, emit weak backpressure per the handoff contract: suggest odb-aws for Exadata-class Oracle on AWS, amazon-aurora for refactor-to-PostgreSQL, or go back to aws-database-selection if Oracle isn’t the source engine, then ask the user whether to go back or proceed anyway. Do not silently misuse the artifact.All user-facing output from this skill follows the markdown-primitives-only formatting convention in the handoff contract: bold labels, backticks for paths and enum values, bullet lists for alternatives, no ASCII art or box-drawing characters.
Install this repository
npx skills add aws/agent-toolkit-for-aws/plugin marketplace add aws/agent-toolkit-for-awsSkills install per repository, not per chapter — the CLI has no documented per-skill form, so we do not print one.
Diagnoses and resolves Amazon RDS for Oracle connectivity, authentication, networking, and driver troubleshooting. Applicable to any RDS-for-Oracle question including connecting a Python Lambda to RDS Oracle in a VPC with pooling and cold-start optimization, EKS pods to RDS Oracle via the Secrets Manager CSI driver with IRSA and SecretProviderClass, ORA-12170 cross-VPC timeouts from EC2, DPI-1047 cannot-locate-64-bit-Oracle-Client errors, and Oracle Connection Manager (CMAN) on EC2 as a proxy with HA across two AZs. Covers python-oracledb thin vs thick mode, init_oracle_client, RDS Proxy does NOT support RDS Oracle, port 1521, VPC peering, Transit Gateway, Kerberos with AWS Managed Microsoft AD, SSL/TLS/NNE, SSM port forwarding, EC2/ECS Fargate/EKS/Lambda, SQL Developer/DBeaver/Toad/SQLcl, and Secrets Manager.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
main, last pushed 10 August 2026.SKILL.md, not by matching a directory convention. 17 distinct layouts observed: plugins/aws-agents-for-devsecops/skills/*/SKILL.md, plugins/aws-agents/skills/*/SKILL.md, plugins/aws-core/skills/*/SKILL.md, skills/core-skills/*/SKILL.md, skills/specialized-skills/analytics-skills/*/SKILL.md, skills/specialized-skills/database-skills/*/SKILL.md, skills/specialized-skills/ec2-skills/*/SKILL.md, skills/specialized-skills/messaging-and-streaming-skills/*/SKILL.md, skills/specialized-skills/migration-and-modernization-skills/*/SKILL.md, skills/specialized-skills/networking-and-content-delivery-skills/*/SKILL.md, skills/specialized-skills/operations-skills/*/SKILL.md, skills/specialized-skills/resilience-skills/*/SKILL.md, skills/specialized-skills/security-and-identity-skills/*/SKILL.md, skills/specialized-skills/serverless-skills/*/SKILL.md.Scripts
Check RDS Status| Lambda / EC2 / ECS Fargate / EKS / container / serverless / IRSA | compute-runtime.md (opens in a new tab) |
| SQL Developer / Toad / SQLcl / DBeaver / sqlplus / GUI | client-tools.md (opens in a new tab) |
| SSL / TLS / TCPS / NNE / encrypt / FIPS / cipher | encryption.md (opens in a new tab) |
| CMAN / Connection Manager / proxy / multiplex / RDS Proxy | cman-proxy.md (opens in a new tab) |
| SSM / port forward / tunnel / localhost / laptop | ssm-tunneling.md (opens in a new tab) |
| ORA-12170 / ORA-12541 / ORA-01017 / ORA-12514 / ORA-28040 / DPI-1047 / DPY-6005 / timeout / refused | troubleshooting.md (opens in a new tab) |
artifacts/<app-name>/.Task role missing secretsmanager:GetSecretValue |
| Attach to task execution role (ECS task definition secrets injection). |
| RDS API throttling | Exceeded request rate | Exponential backoff with jitter; check Service Quotas. |
odb-aws (Oracle Database@AWS on OCI-managed Exadata — different product, different auth model).skills/specialized-skills/storage-skills/*/SKILL.mdskills/specialized-skills/system-table-skills/*/SKILL.mdskills/specialized-skills/web-and-mobile-development/*/SKILL.mdh1 and no skipped levels:.claude-plugin/marketplace.json by Amazon Web Services, declaring 4 plugins. It is read for editorial metadata only — never as the skill index, which is always the repository tree./aws/agent-toolkit-for-aws.md, and each chapter at its own .md URL.17 files · 101 KB
Everything this skill ships beside its prose. All of it is set here, as subchapters of chapter 67.
Documentation the agent loads on demand, rather than up front.
Executable code the skill can run.