wscherphof / oracle-12c

Docker image with Oracle database server on Oracle Linux. Formerly known as https://registry.hub.docker.com/u/wscherphof/oracle-12c/
Other
123 stars 94 forks source link

SP2-0310: unable to open file "/u01/...createdb.sql" on step 2.3 #32

Open njgraham opened 8 years ago

njgraham commented 8 years ago

Reproduction:

[root@b7d7d0583940 /]# /tmp/create
Wed Jul 13 20:12:40 UTC 2016
Creating database...

SQL*Plus: Release 12.1.0.2.0 Production on Wed Jul 13 20:12:40 2016

Copyright (c) 1982, 2014, Oracle.  All rights reserved.

SP2-0310: unable to open file "/u01/app/oracle/product/12.1.0/dbhome_1/config/scripts/createdb.sql"

Various seemingly random files in the /u01/app/oracle directory are owned by root and only rw by owner.

Workaround:

[root@1fd1cc35b02e /]# chown -R oracle /u01/app/oracle

Environment: SUSE Linux Enterprise Server 12 SP1 Docker version 1.10.3, build 9e83765

Other Notes After step3, the database wouldn't start up - I had to run the chown -R command again as the /tmp/start script seemed to get stuck due to permissions errors.

I've used this project before without problem on other platforms/docker versions. I'm not sure what's different here but maybe adding the appropriate chmod to the script would fix it for my environment and not harm others.

Here's hoping I get around to trying it out and generating a pull request.