Skip to content

Oracle 12c in docker doesn't run scripts on container startup #1563

@teju188

Description

@teju188

Hi,

I have created Oracle12c docker container in Linux environment. I am trying to run docker container which will do volume mounting to run the SQL scripts on every startup of docker container using below command. Though after startup of container, files are getting copied to mounted directory location but it is not getting executed. I have tried same example provided on below github article but no luck.

https://github.com/oracle/docker-images/tree/master/OracleDatabase/SingleInstance/samples/customscripts

Docker Command:
docker run --name customscripts -p 1528:1521 -p 5500:5500 -e ORACLE_SID=ORCLSCRIPT -e ORACLE_PDB=CUSTOMSCRIPTS -v /home/oracle/oradata:/opt/oracle/oradata -v /home/oracle/myScripts:/opt/oracle/scripts/startup container-registry.oracle.com/database/enterprise:12.2.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions