Example 13-20 Updating the Repository
The server patch zip file is located in the
/u01/tmpdir
directory. The following
example updates the repository with the latest server patch and then lists the job to
verify that the update is successful:
# ./odacli update-repository -f /u01/tmpdir/oda-sm-12.2.1.1.0-171031-server.zip
{
"jobId" : "d3510276-da05-447b-990e-6d30964f8f79",
"status" : "Created",
"message" : "/u01/tmpdir/oda-sm-12.2.1.1.0-171031-server.zip",
"reports" : [ ],
"createTimestamp" : "July 26, 2018 14:13:45 AM CST",
"description" : "Repository Update",
"updatedTime" : "July 26, 2018 14:13:45 AM CST"
}
[root@oak1 tmpdir]# ./odacli list-jobs
# odacli list-jobs
ID Description Created Status
---------------------------- ---------------- ---------------------------- -------
6f27a29a-959f-44e1-b984-7473e3c918ad Server Patching July 26, 2018 14:19:05 AM CST Success
odacli update-server
Use the
odacli update-server
command to update the operating system,
firmware, Oracle Appliance Kit, Oracle Clusterware, and all other infrastructure
components.
File Path
/opt/oracle/dcs/bin/odacli
Syntax
odacli update-server -v version [-j] [-h]
Parameters
Parameter
Description
--precheck
,
–p
Analyzes the patch.
--version
,
–v
Defines the version to update.
--json
,
-j
(Optional) Displays JSON output. The default is false.
--help
,
-h
(Optional) Displays help for using the command.
Usage Notes
The
update-server
command applies the patches to various infrastructure
components and Oracle Clusterware. Before executing the
update-server
command , use the
update-dcsagent
command to update the agent to the current
version.
On Oracle Database Appliance X7-2-HA, you must run the command on both nodes.
After the update is applied, the agent automatically restarts. It will take a few minutes
to reconnect to the server. Wait until the agent shuts down and completes restarting
before performing any tasks. Allow at least two (2) minutes before running the next
command.
Chapter 13
odacli Apply Patch and Update Commands
13-26
Summary of Contents for Database Appliance X6-2-HA
Page 15: ...Index xv...