Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enterprise:21.3.0.0] Permission Denied #2874

Open
CapybaraHa opened this issue Sep 29, 2024 · 0 comments
Open

[enterprise:21.3.0.0] Permission Denied #2874

CapybaraHa opened this issue Sep 29, 2024 · 0 comments

Comments

@CapybaraHa
Copy link

CapybaraHa commented Sep 29, 2024

Machine: Mac book 2019 pro
Mac OS Version: 14.6.1 
Colima Version: 0.6.9
Docker Client Version: 26.1.0

When running
docker run -d --name oracledb -p 1521:1521 -p 5500:5500 -e ORACLE_PWD=oracledb -v /Users/user/oradata:/opt/oracle/oradata container-registry.oracle.com/database/enterprise:21.3.0.0
I get the following permission error:

SQL> SQL> Disconnected
ORACLE_HOME = [/home/oracle] ? ORACLE_BASE environment variable is not being set since this
information is not available for the current user ID .
You can set ORACLE_BASE manually if it is required.
Resetting ORACLE_BASE to its previous value or ORACLE_HOME
The Oracle base remains unchanged with value /opt/oracle
/opt/oracle/checkDBStatus.sh: line 26: sqlplus: command not found
mkdir: cannot create directory '/opt/oracle/oradata/dbconfig': Permission denied
mv: cannot stat '/opt/oracle/dbs/spfileORCLCDB.ora': No such file or directory
mv: cannot stat '/opt/oracle/dbs/orapwORCLCDB': No such file or directory
mv: cannot move '/opt/oracle/homes/OraDB21Home1/network/admin/sqlnet.ora' to '/opt/oracle/oradata/dbconfig/ORCLCDB/': No such file or directory
mv: cannot move '/opt/oracle/homes/OraDB21Home1/network/admin/listener.ora' to '/opt/oracle/oradata/dbconfig/ORCLCDB/': No such file or directory
mv: cannot move '/opt/oracle/homes/OraDB21Home1/network/admin/tnsnames.ora' to '/opt/oracle/oradata/dbconfig/ORCLCDB/': No such file or directory
mv: cannot move '/opt/oracle/product/21c/dbhome_1/install/.docker_enterprise' to '/opt/oracle/oradata/dbconfig/ORCLCDB/': No such file or directory
cp: cannot create regular file '/opt/oracle/oradata/dbconfig/ORCLCDB/': No such file or directory
ln: failed to create symbolic link '/opt/oracle/homes/OraDB21Home1/network/admin/sqlnet.ora': File exists
ln: failed to create symbolic link '/opt/oracle/homes/OraDB21Home1/network/admin/listener.ora': File exists
ln: failed to create symbolic link '/opt/oracle/homes/OraDB21Home1/network/admin/tnsnames.ora': File exists
cp: cannot stat '/opt/oracle/oradata/dbconfig/ORCLCDB/oratab': No such file or directory

Executing user defined scripts
/opt/oracle/runUserScripts.sh: running /opt/oracle/scripts/extensions/setup/swapLocks.sh
Traceback (most recent call last):
  File "/opt/oracle/lock.py", line 178, in <module>
    main()
  File "/opt/oracle/lock.py", line 169, in main
    sys.exit(acquire_lock(args.lock_file, sock_file, args.block, args.heartbeat))
  File "/opt/oracle/lock.py", line 41, in acquire_lock
    lock_handle = open(lock_file, 'a')
IOError: [Errno 13] Permission denied: '/opt/oracle/oradata/.ORCLCDB.exist_lck'

DONE: Executing user defined scripts

ORACLE_HOME = [/home/oracle] ? ORACLE_BASE environment variable is not being set since this
information is not available for the current user ID .
You can set ORACLE_BASE manually if it is required.
Resetting ORACLE_BASE to its previous value or ORACLE_HOME
The Oracle base remains unchanged with value /opt/oracle
/opt/oracle/checkDBStatus.sh: line 26: sqlplus: command not found
#####################################
########### E R R O R ###############
DATABASE SETUP WAS NOT SUCCESSFUL!
Please check output for further info!
########### E R R O R ###############
#####################################
The following output is now a tail of the alert.log:
tail: cannot open '/opt/oracle/diag/rdbms/*/*/trace/alert*.log' for reading: No such file or directory
tail: no files remaining

I referred some resolved issue, but all methods not worked for me.
#783: Changing the folder owner in the host to 54321 cannot solve my problem.
#736: Adding the dba group and oracle user has no effect.

Can anyone give me more suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant