Skip to Main Content

Containers, Cloud Native & Kubernetes

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Database persistence

iñigo MurgaSep 18 2024

I´m working on a cluster of Kubernetes and I´m using docker. I have created a deployment with the Oracle 23 ai image and when I restart the pod the changes I´ve made have dissapeared. this is my declaration of the volume at the yaml archive:

volumeMounts:

- mountPath: /opt/oracle/oradata  

   name: oraclelite-data-volume

If I let this configuration, the pod doesn´t work because of an error of permission denied and checking the official website I´ve found this: -v /opt/oracle/oradata
The data volume to use for the database.
Has to be writable by the Unix "oracle" (uid: 54321) user inside the container.
If omitted the database will not be persisted over container recreation.

But I can´t grant those permissions or I don´t know how to do it.

Thank you very much

Comments
Post Details
Added on Sep 18 2024
2 comments
78 views