You connect. You dig. You need sqlplus inside OpenShift, fast. No hacks. No blind guesses. Just a clear way to run Oracle SQL commands from inside a containerized world that doesn’t forgive sloppy setups.
Running sqlplus in OpenShift isn’t just about installing a binary. The platform’s security constraints mean you can’t run as root, and each container image must align with OpenShift’s security context. Mounting Oracle client libraries from some random dependency won’t pass a hardened deployment. You need a container image built for OpenShift that includes the Oracle Instant Client and sqlplus, runs as a non-root user, and passes the platform’s built-in checks.
Start with a base image like Red Hat UBI or any OpenShift-approved image. Install the Oracle Instant Client RPMs, confirm the sqlplus binary runs without root, and test it locally with oc run or inside a dev namespace. Include your TNS configuration in a ConfigMap or mount it as a secret for credentials. Every connection string should be environment-driven, not baked into the image. This makes the deployment portable across dev, stage, and prod without rebuilding.
For troubleshooting, don’t rely solely on pod logs. Open an interactive session with: