Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.4K Intelligent Advisor
- 75 Insurance
- 537.7K On-Premises Infrastructure
- 138.7K Analytics Software
- 38.6K Application Development Software
- 6.1K Cloud Platform
- 109.6K Database Software
- 17.6K Enterprise Manager
- 8.8K Hardware
- 71.3K Infrastructure Software
- 105.4K Integration
- 41.6K Security Software
adrci gets "Permission denied" when trying to get a file lock - DIA-48110

Emerson Prado
Member Posts: 2 Red Ribbon
Dear all,
I'm trying to set up shortp_policy and longp_policy in an ADR repository but, when I issue the required command, I get a DIA-48110 error regarding file lock:
DIA-48110: error encountered while attempting to get a file lock [ADR_CONTROL] [<ADR Base>/lck/AM_3216668543_3129272988.lck] DIA-48180: OS open system call failure Linux-x86_64 Error: 13: Permission denied Additional information: 1
The environment is correct, as I can issue queries inside adrci. But the file mentioned in the error belongs to root, instead of oracle:
ls -l <ADR Base>/lck/AM_3216668543_3129272988.lck -rw-r----- 1 root asmadmin 0 May 26 2021 <ADR Base>/lck/AM_3216668543_3129272988.lck
There's no adrci process at least as old as this lock:
ps -C adrci o start,state,args STARTED S COMMAND 08:49:10 D adrci pp/oracle/product/18.0.0.0/dbhome_1/bin/adrci
Is this an expected behaviour? How can I tell what created that lock? Why is adrci trying to overwrite it?
Thanks,
Emerson
Answers
-
It just occurred me to check system boot date/time. And it's newer than the lock:
who -b system boot 2021-06-22 15:45
Can the lock be still valid?