My Oracle Support Banner

DCS-10001 error when running odacli update-dbhome (Doc ID 2818029.1)

Last updated on JANUARY 30, 2022

Applies to:

Oracle Database Appliance Software - Version 19.7.0.0.0 Bare Metal and later
Information in this document applies to any platform.

Symptoms

NOTE: In the images, examples and document that follow, user details, cluster names, hostnames, directory paths, filenames, etc. represent a fictitious sample (and are used to provide an illustrative example only). Any similarity to actual persons, or entities, living or dead, is purely coincidental and not intended in any manner.


When running "odacli update-dbhome", it may fails due to DCS-10001 error.
DCS-10001 is retuened due to failure to stop the oracle home.

# /opt/oracle/dcs/bin/odacli describe-job -i <job_id>

Job details
----------------------------------------------------------------
ID: <job_id>
Description: DB Home Patching: Home Id is <home_id>
Status: Failure
Created: October 20, 2021 3:18:01 PM JST
Message: DCS-10001:Internal error encountered: Failed to stop the oracle home:<path of db_home>

In dcs-agent.log, "srvctl stop home" command receives 1 as return code.

<< dcs-agent.log >>
2021-10-20 15:28:27,668 DEBUG [db upgrade : JobId=<job_id>] [] c.o.d.c.u.CommonsUtils:
run: cmd= '[su,
oracle,
-c,
export ORACLE_BASE=/u01/app/oracle;
export ORACLE_HOME=<path of db_home>;
<path of db_home>/bin/srvctl stop home -o <path of db_home> -s /tmp/dcsfiles/srvctl_status_home2021-10-20_15-28-27.0661339.temp -n <hostname>]'
2021-10-20 15:28:27,889 DEBUG [Thread-283] [] c.o.d.c.u.CommonsUtils: Output :
PRKO-3243 : The '-statfile <state_file>' option value "/tmp/dcsfiles/srvctl_status_home2021-10-20_15-28-27.0661339.temp" is a file under a non-writable directory
2021-10-20 15:28:27,897 DEBUG [db upgrade : JobId=<job_id>] [] c.o.d.c.u.c.DCSProcessBuilder: Return code: 1
2021-10-20 15:28:27,897 DEBUG [db upgrade : JobId=<job_id>] [] c.o.d.c.u.c.CommandExecutor: Return code: 1
2021-10-20 15:28:27,897 DEBUG [db upgrade : JobId=<job_id>] [] c.o.d.c.u.CommonsUtils: Output :
PRKO-3243 : The '-statfile <state_file>' option value "/tmp/dcsfiles/srvctl_status_home2021-10-20_15-28-27.0661339.temp" is a file under a non-writable directory
2021-10-20 15:28:27,899 ERROR [db upgrade : JobId=<job_id>] [] c.o.d.c.j.JsonRequestProcessor: RPC request invocation failed on request: {"classz":"com.oracle.dcs.agent.rpc.service.patching.PatchingActions","method":"applyPatch","params":[{"type":"java.lang.String","value":"19.10.0.0.210119"},{"type":"java.lang.String","value":"db"},{"type":"java.lang.String","value":"<job_id>"}],"revertable":false,"threadId":339}
! com.oracle.dcs.commons.exception.DcsException: DCS-10001:Internal error encountered: Failed to stop the oracle home:<path of db_home>.
! at com.oracle.dcs.commons.exception.DcsException$Builder.build(DcsException.java:119)
! at com.oracle.dcs.agent.rpc.service.patching.PatchingOperations.precheckOnAppliedPatch(PatchingOperations.java:1522)
! at com.oracle.dcs.agent.rpc.service.patching.PatchingActions.applyDbPatch(PatchingActions.java:860)
! at com.oracle.dcs.agent.rpc.service.patching.PatchingActions.applyPatch(PatchingActions.java:658)
! at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
! at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
! at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
! at java.lang.reflect.Method.invoke(Method.java:498)
! at com.oracle.dcs.commons.jrpc.JsonRequestProcessor.invokeRequest(JsonRequestProcessor.java:143)
! at com.oracle.dcs.commons.jrpc.JsonRequestProcessor.process(JsonRequestProcessor.java:185)
! at com.oracle.dcs.agent.task.TaskZJsonRpcExt.callInternal(TaskZJsonRpcExt.java:112)
! at com.oracle.dcs.agent.task.TaskZJsonRpc.call(TaskZJsonRpc.java:283)
! at com.oracle.dcs.agent.task.TaskZJsonRpc.call(TaskZJsonRpc.java:78)
! at com.oracle.dcs.commons.task.TaskWrapper.call(TaskWrapper.java:113)
! at com.oracle.dcs.commons.task.TaskApi.call(TaskApi.java:63)
! at com.oracle.dcs.commons.task.TaskSequential.call(TaskSequential.java:65)
! at com.oracle.dcs.commons.task.TaskSequential.call(TaskSequential.java:36)
! at com.oracle.dcs.commons.task.TaskWrapper.call(TaskWrapper.java:113)
! at com.oracle.dcs.commons.task.TaskApi.call(TaskApi.java:63)
! at com.oracle.dcs.commons.task.TaskSequential.call(TaskSequential.java:65)
! at com.oracle.dcs.commons.task.TaskSequential.call(TaskSequential.java:36)
! at com.oracle.dcs.commons.task.TaskWrapper.call(TaskWrapper.java:113)
! at com.oracle.dcs.commons.task.TaskApi.call(TaskApi.java:63)
! at com.oracle.dcs.commons.task.TaskSequential.call(TaskSequential.java:65)
! at com.oracle.dcs.commons.task.TaskSequential.call(TaskSequential.java:36)
! at com.oracle.dcs.commons.task.TaskWrapper.call(TaskWrapper.java:113)
! at com.oracle.dcs.commons.task.TaskApi.call(TaskApi.java:63)
! at com.oracle.dcs.commons.task.TaskSequential.call(TaskSequential.java:65)
! at com.oracle.dcs.agent.task.TaskZLockWrapper.call(TaskZLockWrapper.java:122)
! at com.oracle.dcs.agent.task.TaskZLockWrapper.call(TaskZLockWrapper.java:64)
! at com.oracle.dcs.commons.task.TaskWrapper.call(TaskWrapper.java:113)
! at com.oracle.dcs.commons.task.TaskApi.call(TaskApi.java:63)
! at com.oracle.dcs.commons.task.TaskSequential.call(TaskSequential.java:65)
! at com.oracle.dcs.commons.task.TaskSequential.call(TaskSequential.java:36)
! at com.oracle.dcs.commons.task.TaskWrapper.call(TaskWrapper.java:113)
! at com.oracle.dcs.commons.task.TaskWrapper.call(TaskWrapper.java:57)
! at java.util.concurrent.FutureTask.run(FutureTask.java:266)
! at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
! at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
! at java.lang.Thread.run(Thread.java:748)

When "srvctl stop home" succeeds, 0 is returned as return code in dcs-agent.log.

2021-10-13 19:00:46,782 DEBUG [db upgrade : JobId=<job_id>] [] c.o.d.c.u.CommonsUtils:
run: cmd= '[su,
oracle,
-c,
export ORACLE_BASE=/u01/app/oracle;
export ORACLE_HOME=<path of db_home>;
<path of db_home>/bin/srvctl stop home -o <path of db_home> -s /tmp/dcsfiles/srvctl_status_home2021-10-13_19-00-46.0772219.temp -n <hostname>]'
2021-10-13 19:01:29,944 DEBUG [db upgrade : JobId=<job_id>] [] c.o.d.c.u.c.DCSProcessBuilder: Return code: 0
2021-10-13 19:01:29,945 DEBUG [db upgrade : JobId=<job_id>] [] c.o.d.c.u.c.CommandExecutor: Return code: 0
2021-10-13 19:01:29,945 DEBUG [db upgrade : JobId=<job_id>] [] c.o.d.c.u.CommonsUtils: Output : EMPTY CONTENT
2021-10-13 19:01:29,945 DEBUG [db upgrade : JobId=<job_id>] [] c.o.d.a.r.s.p.PatchingOperations: output of srvctl is empty, means there are no db under this dbhome.

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.