Skip to content

Database connection and file permission issues #4

@ysdkzhh

Description

@ysdkzhh

Hi, I did the following according to the readme file:

 mkdir -p /opt/oracle/oradata
 mkdir -p /opt/oracle/user_projects
 # Make sure that your oracle user on the Docker Host got:
 # uid=54321(oracle) gid=54321(oinstall)
 chown -R oracle:oinstall /opt/oracle/oradata
 chown -R oracle:oinstall /opt/oracle/user_projects
 chmod -R 777 /opt/oracle/oradata
 chmod -R 777 /opt/oracle/user_projects

I also have a running database that I can connect from my laptop, and modified DC_HOSTNAME, SID, PDB in the setenv.sh file to connect to that database. But I got the following errors with database connection:

    RCU Logfile: /tmp/RCU2018-10-25_18-33_1725930400/logs/rcu.log

Processing command line ....
Unable to connect to the database using the provided details.
Enter a valid hostname and port or check if the listener is up and running.

ERROR - RCU-6090 Connection step validation failed.
CAUSE - RCU-6090 Skipping main operation: failed to connect to database because database details were missing or invalid.
ACTION - RCU-6090 Provide correct database details and try again.

and then a few steps down this error:

--> Step: writeDomain and closeTemplate

com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.jython.WLSTException: Error writing domain:
com.oracle.cie.domain.script.ScriptException: 60308: Domain location not writable.
60308: The domain location does not have write permission.
60308: Correct permissions or select different domain location.

Error: runCmd() failed. Do dumpStack() to see details.
mkdir: cannot create directory '/opt/oracle/user_projects/domains': Permission denied

Can you please tell me what I missed here and how to fix the errors?

Thanks,
Heather

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions