17 Oracle Database Appliance Command-Line Interface for KVM
Use odacli
commands to manage Oracle Linux Kernel-based
Virtual Machine (KVM) on Oracle Database Appliance.
Note:
If you have enabled multi-user access, then you can run all supported ODACLI commands on KVM and DB systems, after logging in asodaadmin
.
- About Command-Line Interface for Kernel-Based Virtual Machine (KVM)
Theodacli
commands are the primary method for performing database and system administration on Oracle Database Appliance Kernel-Based Virtual Machine (KVM). - About ODACLI Commands Supported on Oracle KVM Database System
Understand theodacli
commands supported on Oracle Database Appliance Kernel-Based Virtual Machine (KVM) Database System in this release. - odacli DB System Commands for KVM
Use the odacli DB system commands to manage databases on Oracle Database Appliance for Oracle KVM. - odacli VM Storage Commands for KVM
Use the odacli virtual machine storage commands to manage storage on Oracle Database Appliance for Oracle KVM. - odacli Virtual Disk Commands for Oracle KVM
Use the odacli virtual disk commands to manage virtual disks on Oracle Database Appliance for Oracle KVM. - odacli CPU Pool Commands for Bare Metal and KVM
Use odacli commands to manage resource allocations on Oracle Database Appliance for bare metal and KVM deployments. - odacli VM Network Commands for KVM
Use the odacli virtual machine network commands to manage network on Oracle Database Appliance for Oracle KVM. - odacli Virtual Machine Commands for Oracle KVM
Use the odacli virtual machine commands to manage virtual machines on Oracle Database Appliance for Oracle KVM.
About Command-Line Interface for Kernel-Based Virtual Machine (KVM)
The odacli
commands are the primary method
for performing database and system administration on Oracle Database Appliance Kernel-Based
Virtual Machine (KVM).
-
Manage VM instances
-
Manage VM storage
-
Manage virtual disks
-
Manage virtual network
-
Manage CPU pools
ODACLI Command Location and Path Configuration
The odacli
command-line interface is in the following directory:
/opt/oracle/dcs/bin/odacli
Configure the root
user account on your Oracle Database Appliance
servers to have the PATH
variable defined to search for odacli
commands in the path /opt/oracle/dcs/bin/odacli
.
ODACLI Syntax
Oracle Appliance Manager command-line interface commands and parameters are case-sensitive.
An odacli
command uses the following command syntax:
odacli command object [options]
-
command
is an action you want to perform on the appliance. For example:show
,locate
,apply
. -
object
is the target or object on which theodacli
command performs the operation. For example, you issue a command to create or configure a virtual disk, or a network, or perform other system or software administration. You can also use object abbreviations. -
options
are optional parts of theodacli
command. Options can consist of one or more options that extend the use of theodacli
command carried out on an object. Options include additional information about the action that you want to perform on the object. Option names are preceded with a dash. Many options require the name of an object for the command to perform the action that you want to carry out. The help option (-h
) is an option that is available with every command. When you include the-h
option, you can obtain additional information about the command that you want to perform.
Oracle Appliance Manager Command-Line Interface Help
Run the following command to see the usage information for all odacli
commands available for your Oracle Database Appliance:
odacli -h
Run the following command to see detailed help about a specific odacli
command:
odacli command -h
Run the following command to see detailed help about a specific odacli
command carried out on an object, and the options
that are available for you to use with that object.
odacli command object -h
Parent topic: Oracle Database Appliance Command-Line Interface for KVM
About ODACLI Commands Supported on Oracle KVM Database System
Understand the odacli
commands supported on
Oracle Database Appliance Kernel-Based Virtual Machine (KVM) Database System in this
release.
odacli create-dbsystem
or the Browser User
Interface. The following ODACLI commands are supported on Oracle KVM Database System on
Oracle Database Appliance:
-
odacli ping-agent
-
odacli delete-agentconfig-parameters
-
odacli list-agentconfig-parameters
-
odacli modify-agentconfig-parameters
-
odacli restore-archivelog
-
odacli create-auto-logclean-policy
-
odacli delete-auto-logclean-policy
-
odacli list-auto-logclean-policy
-
odacli list-availablepatches
-
odacli create-backup
-
odacli delete-backup
-
odacli create-backupconfig
-
odacli delete-backupconfig
-
odacli describe-backupconfig
-
odacli list-backupconfigs
-
odacli modify-backupconfig
-
odacli describe-backupreport
-
odacli describe-component
-
odacli set-credential
-
odacli create-database
-
odacli delete-database
-
odacli describe-database
-
odacli irestore-database
-
odacli list-databases
-
odacli modify-database
-
odacli recover-database
-
odacli register-database
-
odacli configure-dataguard
-
odacli deconfigure-dataguard
-
odacli failover-dataguard
-
odacli reinstate-dataguard
-
odacli register-dataguard
-
odacli switchover-dataguard
-
odacli describe-dataguardstatus
-
odacli list-dataguardstatus
-
odacli create-dbhome
-
odacli delete-dbhome
-
odacli describe-dbhome
-
odacli list-dbhomes
-
odacli create-dbstorage
-
odacli delete-dbstorage
-
odacli describe-dbstorage
-
odacli list-dbstorages
-
odacli describe-job
-
odacli list-jobs
-
odacli create-jobdata-retention-policy
-
odacli delete-jobdata-retention-policy
-
odacli list-jobdata-retention-policy
-
odacli describe-latestpatch
-
odacli create-logcleanjob
-
odacli describe-logcleanjob
-
odacli list-logcleanjobs
-
odacli list-logspaceusage
-
odacli describe-network
-
odacli list-networks
-
odacli describe-networkinterface
-
odacli list-networkinterfaces
-
odacli list-nodes
-
odacli create-objectstoreswift
-
odacli delete-objectstoreswift
-
odacli describe-objectstoreswift
-
odacli list-objectstoreswifts
-
odacli modify-objectstoreswift
-
odacli list-osconfigurations
-
odacli modify-osconfigurations
-
odacli list-pendingjobs
-
odacli create-prepatchreport
-
odacli delete-prepatchreport
-
odacli describe-prepatchreport
-
odacli list-prepatchreports
-
odacli create-purge-jobdata-job
-
odacli list-purge-jobdata-jobs
-
odacli describe-schedule
-
odacli list-schedules
-
odacli modify-schedule
-
odacli list-scheduled-executions
-
odacli describe-systemcomponent
-
odacli list-tdebackupreports
-
odacli restore-tdewallet
Note:
No other ODACLI commands than the ones above are supported on Oracle Database Appliance KVM Database System, in this release.Parent topic: Oracle Database Appliance Command-Line Interface for KVM
odacli DB System Commands for KVM
Use the odacli DB system commands to manage databases on Oracle Database Appliance for Oracle KVM.
- odacli create-dbsystem
Use theodacli create-dbsystem
command to create a new database system on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli modify-dbsystem
Use theodacli modify-dbsystem
command to modify a DB system on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli modify-dbfileattributes
Use theodacli modify-dbfileattributes
command to properly set the file attributes (permissions and ownership) of files on Oracle ASM disk group on a bare metal host to support a dbsystem. Only run this command if prompted by theodacli create-dbsystem
command. - odacli list-dbsystems
Use theodacli list-dbsystems
command to view the database systems on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli describe-dbsystem
Use theodacli describe-dbsystem
command to describe a database system on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli describe-dbsystem-image
Use theodacli describe-dbsystem-image
command to view the supported Oracle Grid Infrastructure and Oracle Database versions and the availability of the clone files and Database System KVM image in the Oracle Database Appliance system. - odacli start-dbsystem
Use theodacli start-dbsystem
command to start a database system on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli stop-dbsystem
Use theodacli stop-dbsystem
command to stop a database system on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli delete-dbsystem
Use theodacli delete-dbsystem
command to delete a DB system on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Parent topic: Oracle Database Appliance Command-Line Interface for KVM
odacli create-dbsystem
Use the odacli create-dbsystem
command to create a new
database system on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli create-dbsystem [-f] [-p json_payload_path] [-t template] [-ta] [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
(Optional) Specifies the input parameters file path for DB system creation. |
|
(Optional) Forces the operation with the specified parameters. |
|
(Optional) Specifies the path where the template with sample values will be created. |
|
(Optional) Displays the DB system template with field descriptions. |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Usage Notes
For example JSON files that you can use to create the DB system, see the Example JSON File to Create a High-Availability DB System and Example JSON File to Create a Single-Node DB System topics in this guide.
Example
# odacli create-dbsystem -p example_system.json
Job details
----------------------------------------------------------------
ID: fcfe305c-3e75-4af4-8702-992aa15619d0
Description: DB System example_system creation
Status: Created
Created: December 8, 2024 9:28:03 AM CST
Message:
Task Name Start Time End Time Status
---------------------------------------- ----------------------------------- ----------------------------------- ----------
odacli modify-dbsystem
Use the odacli modify-dbsystem
command to modify a DB system
on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli modify-dbsystem -n name [-cp cpu_pool_name] [-no-cp] [-r] [-avd v_disk_to_attach] [-avn v_network] [-dvd v_disk_to_detach] [-dvn v_networks_to_detach] [-en] [-gw gateway] [-ip ip_address] [-nm netmask] [-tvm vm_name] [-sip scan_ip_address] [-sn scan_name] [-s shape] [-vips vip_address] [-vt v_network_type] [-m] [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
(Mandatory) Describes the name of the DB system. |
|
(Optional) Specifies the VM storage redundancy for a DB system. The value can be HIGH or MIRROR. This option is not supported for DB systems on non-FLEX disk group. The options can be MIRROR or HIGH. The default option is MIRROR. |
|
(Optional) Specifies the vdisk to attach. |
|
(Optional) Specifies the name of the vnetwork to attach. |
|
(Optional) Specifies the shared DB System CPU Pool name. |
|
(Optional) Specifies the vdisk to detach. |
|
(Optional) Specifies the name of the vnetworks to detach. |
|
(Optional) Enables NUMA configuration for the DB System. |
|
(Optional) Specifies the network gateway. |
|
(Optional) Specifies the network IP address. |
|
(Optional) Specifies the netmask of the network. |
|
(Optional) Specifies to dissociate the current DB System CPU Pool name. |
|
(Optional) Specifies the DB system host name to attach or detach a vdisk. |
|
(Optional) Specifies the SCAN IP of the network. |
|
(Optional) Specifies the SCAN of the network. |
|
(Optional) Specifies the new shape. You can specify a higher or lower value than the current shape. This option only changes the shape of the DB system. It does not change the shape of databases in the DB system. |
|
(Optional) Specifies the virtual IP of the network in the
format |
|
(Optional) Specifies the vnetwork type to attach. |
|
(Optional) Defines the memory size. The format is M|G. |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Usage Notes
- The
odacli modify-dbsystem
command supports the following use cases:- attach or detach the shared DB system cpupools.
Attaching a CPU pool:
odacli modify-dbsystem --name dbsystem_name -cp cpupool
Detaching a CPU pool:odacli modify-dbsystem --name dbsystem_name --no-cp
- Change DB system shape, that is, scale up (increase) or scale
down
(decrease):
odacli modify-dbsystem -n dbsystem name -s new_shape
- Enable NUMA for the existing DB system. NUMA is enabled on Oracle
Database Appliance release 19.12 and later. For existing DB sytems created
before release 19.12, use the
odacli modify-dbsystem --enable_numa
command to enable the NUMA for the DB system. This command includes enabling the NUMA for the VM configuration, operation system, and the database inside the DB system.odacli modify-dbsystem --name dbsystem name --enable_numa
- Attach or detach new network to the DB system. Before attaching a
vnetwork, ensure that the vnetwork exists. You must specify the IP address and
netmask to configure the new network interface inside the DB system. If the
network type is
database
ordataguard
, specify the VIPs, SCAN name, and SCAN IPs.odacli modify-dbsystem -n dbsystem1 -avn vnet2 -t Dataguard -ip 192.168.10.119,192.168.10.120 -nm 255.255.240.0 -gw 192.168.10.1 -sn scan1 -sip 192.168.10.30,192.168.10.31 -vips vip1:0:192.168.15.57,vip2:1:192.168.15.58
To detach a network from DB system:odacli modify-dbsystem -n dbsystem1 -dvn vnet2
- attach or detach the shared DB system cpupools.
- Starting with Oracle Database Appliance release 19.23, the
odacli modify-dbsystem --shape
command only changes the shape of the DB system; it does not change the shapes of the database inside the DB system any more. You must modify database shapes accordingly based on the new shape of the DB system. Ensure that you scale up database shapes after the DB system shape is scaled up. Similarly, scale down database shapes before DB system shape is scaled down, otherwise databases could fail to start because of reduced DB system memory. - To attach a vdisk to a DB system, note the following:
- The vdisk must already exist.
- When you attach a vdisk, the vdisk attaches to the DB system and displays in
the DBVM operating system as a block device, for example,
/dev/vdc
. You must format and create a file system with the block device and maintain the device in the DB system. - For high-availability systems, you must specify the DB system to attach the
vdisk, using the
--target-vm
option. Specify the VM host name without the domain name in the--target-vm
option. You can view the VM host name with theodacli describe-dbsystem
command. - On high-availability systems, the vdisk attached to the two nodes on the DB system is local to the DBVM it is attached to. The vdisk is not shared and cannot be shared between two DBVMs in the DB system.
- To detach a vdisk from a DB system, note the following:
- Detaching a vdisk from the DB system removes the vdisk from the DBVM. The
block device, for example,
/dev/vdc
is removed from the DBVM operating system level. You must ensure that sufficient care is exercised at the operating system level, for example, properly back up the content of the file system, remove the block device from logical volume manager, or remove the block device from/etc/fstab
, before you detach the vdisk. Without proper handling, the DBVM could fail to restart after running the detach vdisk operation. - For high-availability systems, you must specify the DB system from which to
detach the vdisk, using the
--target-vm
option. Specify the VM host name without the domain name in the--target-vm
option. You can view the VM host name with theodacli describe-dbsystem
command. - If the detach vdisk operation fails, then you can retry the detach operation
with the
--force, -f
parameter to ensure that the vdisk is detached from the device block list and the metadata as well.
- Detaching a vdisk from the DB system removes the vdisk from the DBVM. The
block device, for example,
- The attach and detach vdisk operations restart the DB system.
Example: Modify a KVM DB system
# odacli modify-dbsystem -n example_system1 -cp example_pool -s new_shape
Example: Increase the DB System memory to 24 GB
The command supports increasing the DB system memory. To reduce the DB system memory,
use the --shape
option with the command odacli
modify-dbsystem
.
# odacli modify-dbsystem -n dbsystem_name -m 24G
odacli modify-dbfileattributes
Use the odacli modify-dbfileattributes
command to properly
set the file attributes (permissions and ownership) of files on Oracle ASM disk group on a
bare metal host to support a dbsystem. Only run this command if prompted by the
odacli create-dbsystem
command.
Syntax
odacli modify-dbfileattributes [-in db_name] [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
(Optional) Describes the name of the database for which you want to modify the file attributes. |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Usage Notes
- To create the database system, access control must be enabled in Oracle ASM running on bare metal system. When the bare metal system is newly provisioned or patched to Oracle Database Appliance release 19.26, access control is already enabled. This helps you set appropriate file ownerships for all the files created in DB systems and on bare metal.
- Before you create the database system, the files on Oracle ASM disk
groups that do not have file ownership must be set up with ownership. The
creation of dbsystem fails, and you are prompted to run the
odacli modify-dbfileattributes
command to set up the file ownership and permission. Since there can be many files on Oracle ASM disk group, the user can run this step at their own convenience. Use theodacli modify-dbfileattributes
command to set up the file ownerships. - This command sets the file attributes (permissions and ownership)
of all files on Oracle ASM disk group. The files include database files and also
Oracle Clusterware files such as OCR (Oracle Clusterware Registry). Before
creating the first DB system, set up attributes for files owned by both Oracle
Grid Infrastructure and Oracle Database by running the
odacli modify-dbfileattributes
command with no arguments. - If the overall operation was successful for many files, but failed for some files, then you can run the command again by specifying the database names.
Example
# odacli modify-dbfileattributes -in example_db_name
Parent topic: odacli DB System Commands for KVM
odacli list-dbsystems
Use the odacli list-dbsystems
command to view the database
systems on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli list-dbsystems [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
# odacli list-dbsystems
Name Shape Cores Memory Status Created Updated
-------------------- ---------- ----- --------- –------ ----------------------- -----------------------
dbsystem1 odb4 4 32.00 GB CONFIGURED 2020-12-08 17:39:00 CST 2020-12-08 17:39:00 CST
dbsystem2 odb2 2 16.00 GB CREATING 2020-12-16 09:28:03 CST 2020-12-16 09:28:03 CST
Parent topic: odacli DB System Commands for KVM
odacli describe-dbsystem
Use the odacli describe-dbsystem
command to describe a
database system on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli describe-dbsystem -n db_system_name [-p payload] [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
(Mandatory) Describes the name of the DB system. |
|
(Optional) Displays the payload describing the specified DB system.
The option that can be specified is |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Usage Notes
Image version: 19.25.0.0.0
Current version: 19.26.0.0.0
Example
# odacli describe-dbsystem -n example_system1
DB System details
--------------------------------------------------------------------------------
ID: 04f718f8-ddc9-4b45-8e8e-07d14165eb9c
Name: example_system2
Image version: 19.26.0.0.0
Current version: 19.26.0.0.0
Shape: odb2
Cluster name: dbsa4b75be52
Grid version: 19.26.0.0.250121
Memory: 16.00 GB
NUMA enabled: YES
Status: CONFIGURED
Created: 2023-04-19 10:00:08 UTC
Updated: 2023-04-19 10:04:02 UTC
CPU Pool
--------------------------
Name: c4bfa26faa
Number of cores: 2
Host: n1
Effective CPU set: 0-1,20-21
Online CPUs: 0, 1, 20, 21
Offline CPUs: NONE
Host: n2
Effective CPU set: 0-1,20-21
Online CPUs: 0, 1, 20, 21
Offline CPUs: NONE
VM Storage
--------------------------
Disk group: DATA
Volume name: S4BFA26FAA
Volume device: /dev/asm/s4bfa26faa-497
Size: 400.00 GB
Mount Point: /u05/app/sharedrepo/example_system
VMs
--------------------------
Host: host1
VM Name: x4bfa26faa
VM Host Name: example_domain1
VM image path: /vm_image_path1
Target State: ONLINE
Current State: ONLINE
Host: host2
VM Name: y4bfa26faa
VM Host Name: example_domain2
VM image path: /vm_image_path2
Target State: ONLINE
Current State: ONLINE
VNetworks
--------------------------
Host: example_domain1
VM Name: x4bfa26faa
Public: xxx.xxx.xxx.xxx / xxx.xxx.xxx.xxx / ens3 / BRIDGE(pubnet)
ASM: xxx.xxx.xxx.xxx / xxx.xxx.xxx.xxx / ens4 / BRIDGE(privasm) VLAN(icbond0.100)
Interconnect: xxx.xxx.xxx.xxx / xxx.xxx.xxx.xxx / ens5 /
Host: example_domain2
VM Name: y4bfa26faa
Public: xxx.xxx.xxx.xxx / xxx.xxx.xxx.xxx / ens3 / BRIDGE(pubnet)
ASM: xxx.xxx.xxx.xxx / xxx.xxx.xxx.xxx / ens4 / BRIDGE(privasm) VLAN(icbond0.100)
Interconnect: xxx.xxx.xxx.xxx / xxx.xxx.xxx.xxx / ens5 /
Databases
--------------------------
Name: flashvm
Resource ID: 350b72f7-2351-49e7-ada3-4051af9594f0
Unique name: flashvmU
Database ID:
Domain name: domain_name
DB Home ID: 617664f6-0a16-4922-8346-9eeb3d7256ee
Shape: odb2
Version: 19.0.0.0
Edition: EE
Type: SI
Role: PRIMARY
Class: OLTP
Storage: ASM
Redundancy:
Target node name:
Character set: AL32UTF8
NLS character set:
Language: AMERICAN
Territory: AMERICA
Console enabled: false
SEHA enabled: false
Associated networks: NONE
Backup config ID:
Level 0 Backup Day: sunday
Autobackup enabled: true
TDE enabled: true
CDB type: false
PDB name:
PDB admin user:
# odacli describe-dbsystem -n example_system3
DB System details
--------------------------------------------------------------------------------
ID: 0c5280a1-3ee1-438e-ad11-1cee23de17fd
Name: example_system3
Image version: 19.16.0.0.0
Current version: 19.16.0.0.0
Shape: odb2
Cluster name: dbsa4b75be52
Grid version: 19.26.0.0.250121
Memory: 16.00 GB
NUMA enabled: YES
Status: CONFIGURED
Created: 2020-12-10 02:11:11 UTC
Updated: 2020-12-10 02:11:11 UTC
CPU Pool
--------------------------
Name: ce2ab55255
Number of cores: 2
Host: node1
Effective CPU set: 4-5,24-25
Online CPUs: 4, 5, 24, 25
Offline CPUs: NONE
Host: node2
Effective CPU set: 4-5,24-25
Online CPUs: 4, 5, 24, 25
Offline CPUs: NONE
VM Storage
--------------------------
Disk group: DATA
Volume name: SE2AB55255
Volume device: /dev/asm/se2ab55255-187
Size: 400.00 GB
Mount Point: /u05/app/sharedrepo/example_system
VMs
--------------------------
Host: host1
VM Name: xe2ab55255
VM Host Name: host_name1
VM image path: /vm_image_path1
Target State: ONLINE
Current State: ONLINE
Host: host2
VM Name: ye2ab55255
VM Host Name: host_name2
VM image path: /vm_image_path2
Target State: ONLINE
Current State: ONLINE
VNetworks
--------------------------
Host: node1
VM Name: xe2ab55255
Public: xxx.xxx.xxx.xxx /xxx.xxx.xxx.xxx / ens3 / BRIDGE(pubnet)
ASM: xxx.xxx.xxx.xxx / xxx.xxx.xxx.xxx / ibbond0 / VF(90:03.5)
Interconnect: xxx.xxx.xxx.xxx / xxx.xxx.xxx.xxx / ibbond1 / VF(90:01.7)
Host: node2
VM Name: ye2ab55255
Public: xxx.xxx.xxx.xxx / xxx.xxx.xxx.xxx / ens3 / BRIDGE(pubnet)
ASM: xxx.xxx.xxx.xxx / xxx.xxx.xxx.xxx / ibbond0 / VF(90:01.0)
Interconnect: xxx.xxx.xxx.xxx / xxx.xxx.xxx.xxx / ibbond1 / VF(90:01.6)
Databases
--------------------------
Name: datavm
Resource ID: 6aac341a-3c73-46eb-af2a-1eada9b57661
Unique name: datavmU
Database ID: 3806144946
Domain name: domain_name
DB Home ID: dcc928f1-5eb3-477b-875d-050640b7f68c
Shape: odb2
Version: 19.26.0.0.250121
Edition: EE
Type: RAC
Role: PRIMARY
Class: OLTP
Storage: ASM
Redundancy:
Target node name:
Character set: AL32UTF8
NLS character set:
Language: AMERICAN
Territory: AMERICA
Console enabled: false
SEHA enabled: false
Associated networks: NONE
Backup config ID:
Level 0 Backup Day: sunday
Autobackup enabled: true
TDE enabled: true
CDB type: false
PDB name:
PDB admin user:
# odacli describe-dbsystem -n scaoda815c2 -p
{
"forced" : null,
"system" : {
"name" : "scaoda815c2",
"shape" : "odb4",
"customMemorySize" : "32.00 GB",
"cpuPoolName" : "c519cd5314",
"useReservedCores" : false,
"diskGroup" : "DATA",
"systemPassword" : null,
"timeZone" : "UTC",
"enableRoleSeparation" : true,
"singleNode" : null,
"failOver" : false,
"customRoleSeparation" : {
"groups" : [ {
"id" : 1001,
"name" : "oinstall",
"role" : "oinstall"
}, {
"id" : 1002,
"name" : "dbaoper",
"role" : "dbaoper"
}, {
"id" : 1003,
"name" : "dba",
"role" : "dba"
}, {
"id" : 1004,
"name" : "asmadmin",
"role" : "asmadmin"
}, {
"id" : 1005,
"name" : "asmoper",
"role" : "asmoper"
}, {
"id" : 1006,
"name" : "asmdba",
"role" : "asmdba"
} ],
"users" : [ {
"id" : 1000,
"name" : "grid",
"role" : "gridUser"
}, {
"id" : 1001,
"name" : "oracle",
"role" : "oracleUser"
} ]
},
"redundancy" : "MIRROR"
},
"network" : {
"domainName" : "us.oracle.com",
"ntpServers" : [ ],
"dnsServers" : [ "10.209.76.198" ],
"scanName" : "scaoda815c2-scan",
"scanIps" : [ "10.32.68.17", "10.32.70.94" ],
"nodes" : [ {
"number" : 1,
"name" : "scaoda815c2n2",
"ipAddress" : "10.32.68.20",
"netmask" : "255.255.248.0",
"gateway" : "10.32.64.1",
"vipName" : "scaoda815c2n2-vip",
"vipAddress" : "10.32.68.21"
}, {
"number" : 0,
"name" : "n1",
"ipAddress" : "10.32.68.18",
"netmask" : "255.255.248.0",
"gateway" : "10.32.64.1",
"vipName" : "n1-vip",
"vipAddress" : "10.32.68.19"
} ],
"publicVNetwork" : null,
"clusterInterconnect" : null
},
"grid" : {
"language" : "en",
"enableAFD" : false
},
"database" : {
"name" : "mydb2",
"uniqueName" : "mydb2u",
"domainName" : "domainname",
"adminPassword" : null,
"version" : "19.17.0.0.221018",
"edition" : "EE",
"type" : "RAC",
"dbClass" : "OLTP",
"shape" : "odb4",
"role" : "PRIMARY",
"redundancy" : "MIRROR",
"characterSet" : {
"characterSet" : "AL32UTF8",
"nlsCharacterset" : "AL16UTF16",
"dbTerritory" : "AMERICA",
"dbLanguage" : "AMERICAN"
},
"enableDbConsole" : false,
"enableSEHA" : false,
"enableEEHA" : false,
"enableFlashStorage" : false,
"rmanBackupPassword" : null,
"level0BackupDay" : "sunday",
"enableTDE" : false,
"tdePassword" : null,
"enableUnifiedAuditing" : false,
"isCdb" : true,
"pdbName" : "pdb1",
"pdbAdminUser" : "pdbadmin",
"targetNodeNumber" : 0,
"dbStorage" : "ASM"
}
}
Parent topic: odacli DB System Commands for KVM
odacli describe-dbsystem-image
Use the odacli describe-dbsystem-image
command to view the
supported Oracle Grid Infrastructure and Oracle Database versions and the availability of
the clone files and Database System KVM image in the Oracle Database Appliance
system.
Syntax
odacli describe-dbsystem-image [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
View details of a KVM database system image
# odacli describe-dbsystem-image
DB System Image details
--------------------------------------------------------------------------------
Component Name Supported Versions Available Versions
-------------------- -------------------- --------------------
DBVM 19.10.0.0.0 19.10.0.0.0
GI 19.10.0.0.210119 19.10.0.0.210119
DB 19.10.0.0.210119 19.10.0.0.210119
View details of a system where KVM database system image is not available
# odacli describe-dbsystem-image
DB System Image details
--------------------------------------------------------------------------------
Component Name Supported Versions Available Versions
-------------------- -------------------- --------------------
DBVM 19.10.0.0.0 not-available
GI 19.10.0.0.210119 19.10.0.0.210119
DB 19.10.0.0.210119 19.10.0.0.210119
The output shows that the KVM Database System image is not yet available on the
system. Download the image and run the odacli update-repository
to
import the image to the repository. The output shows that the Oracle Grid
Infrastructure and Oracle Database clones are already available on the system.
Parent topic: odacli DB System Commands for KVM
odacli start-dbsystem
Use the odacli start-dbsystem
command to start a database
system on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli start-dbsystem -n dbsystem_name [-nn node_name] [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
(Mandatory) Describes the name of the DB system. |
|
(Optional) Specifies the bare metal system node name on which to start the DB system VM. |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
# odacli start-dbsystem -n example_system
Job details
----------------------------------------------------------------
ID: 68044afa-d3cc-4024-9dc8-50fcf847642c
Description: DB System scaoda8s008c4 start
Status: Success
Created: December 16, 2020 9:12:51 AM UTC
Message:
Task Name Start Time End Time Status
---------------------------------------- ----------------------------------- ----------------------------------- ----------
Start DB System December 16, 2020 9:12:51 AM UTC December 16, 2020 9:12:52 AM UTC Success
Parent topic: odacli DB System Commands for KVM
odacli stop-dbsystem
Use the odacli stop-dbsystem
command to stop a database
system on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli stop-dbsystem -n dbsystem_name [-nn node_name] [-f] [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
(Mandatory) Describes the name of the DB system. |
|
(Optional) Forces the operation to stop the DB system. |
|
(Optional) Specifies the bare metal system node name on which to stop the DB system VM. |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
# odacli stop-dbsystem -n example_system
Job details
----------------------------------------------------------------
ID: 68044afa-d3cc-4024-9dc8-50fcf847642c
Description: DB System scaoda8s008c4 start
Status: Success
Created: December 16, 2020 9:12:51 AM UTC
Message:
Task Name Start Time End Time Status
---------------------------------------- ----------------------------------- ----------------------------------- ----------
Stop DB System December 16, 2020 9:12:51 AM UTC December 16, 2020 9:12:52 AM UTC Success
Parent topic: odacli DB System Commands for KVM
odacli delete-dbsystem
Use the odacli delete-dbsystem
command to delete a DB system
on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli delete-dbsystem -n dbsystem_name [-f] [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
(Mandatory) Describes the name of the DB system. |
|
(Optional) If specified, then the operation deletes the database system, Oracle Clusterware files, and the database files. |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Usage Notes
- If you do not specify the
-f
option, then the delete DB system operation validates that the DB system does not contain any database. If there are any databases within the DB system, then the following error message is displayed:DB System 'name' must not have any database in order to be deleted, found following databases: list_of_databases
- Specify the
-f
option to delete the DB system, the Oracle Clusterware files, and the database files. - The
odacli delete-dbsystem
command does not delete the database files. This is expected behavior so that you can archive the database files, if required, or manually restore the database with these database files. Use the--force
option to delete the database files completely.
Example
[root@node1ha17c1n1 log]# odacli delete-dbsystem -n dbsfe0bd8
WARNING: Use --force option to delete the database and datafiles.
Do you confirm delete DB System 'dbsfe0bd8'? (Options: y/n, default: n): y
DCS-10045:Validation error encountered: DB System 'dbsfe0bd8' must not have any database in order to be deleted, found following databases: dbb34f97.
[root@node1ha17c1n1 log]# odacli describe-job -i 41de9e46-e1d4-44c0-b0ab-c6049579e9f8
Job details
----------------------------------------------------------------
ID: 41de9e46-e1d4-44c0-b0ab-c6049579e9f8
Description: DB System dbs7283a3 deletion [Forced]
Status: Success
Created: June 13, 2024 8:14:08 PM UTC
Message:
Task Name Node Name Start Time End Time Status
---------------------------------------- ------------------------- ---------------------------------------- ---------------------------------------- ----------------
Delete database node1ha17c1n1 June 13, 2024 8:14:08 PM UTC June 13, 2024 8:14:09 PM UTC Success
Remove DB System from Clusterware node1ha17c1n1 June 13, 2024 8:14:09 PM UTC June 13, 2024 8:14:09 PM UTC Success
Delete ASM client cluster config node1ha17c1n1 June 13, 2024 8:14:09 PM UTC June 13, 2024 8:14:09 PM UTC Success
Deprovision DB System VM(s) node1ha17c1n1 June 13, 2024 8:14:09 PM UTC June 13, 2024 8:14:10 PM UTC Success
Delete DB System ACFS filesystem node1ha17c1n1 June 13, 2024 8:14:10 PM UTC June 13, 2024 8:14:11 PM UTC Success
Delete DB System ACFS mount point node1ha17c1n1 June 13, 2024 8:14:11 PM UTC June 13, 2024 8:14:11 PM UTC Success
Delete DB System ASM volume node1ha17c1n1 June 13, 2024 8:14:11 PM UTC June 13, 2024 8:14:12 PM UTC Success
Delete DB System Networks node1ha17c1n1 June 13, 2024 8:14:12 PM UTC June 13, 2024 8:14:12 PM UTC Success
Remove unused network interfaces node1ha17c1n1 June 13, 2024 8:14:12 PM UTC June 13, 2024 8:14:12 PM UTC Success
Delete imported certificates node1ha17c1n1 June 13, 2024 8:14:12 PM UTC June 13, 2024 8:14:13 PM UTC Success
Delete DB System metadata node1ha17c1n1 June 13, 2024 8:14:13 PM UTC June 13, 2024 8:14:13 PM UTC Success
Parent topic: odacli DB System Commands for KVM
odacli VM Storage Commands for KVM
Use the odacli virtual machine storage commands to manage storage on Oracle Database Appliance for Oracle KVM.
- odacli create-vmstorage
Use theodacli create-vmstorage
command to create a new VM storage on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli list-vmstorages
Use theodacli list-vmstorages
command to list all VM storages on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli describe-vmstorage
Use theodacli describe-vmstorage
command to describe VM storage on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli modify-vmstorage
Use theodacli modify-vmstorage
command to modify VM storage configuration on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli delete-vmstorage
Use theodacli delete-vmstorage
command to delete a vmstorage configuration on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Parent topic: Oracle Database Appliance Command-Line Interface for KVM
odacli create-vmstorage
Use the odacli create-vmstorage
command to create a new VM
storage on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli create-vmstorage -n name -s size -dg disk_group [-r {MIRROR|HIGH}] [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Name assigned to the VM storage. |
|
Specifies the storage size. Format is K|M|G|T. Minimum Size is 1024M (1G) |
|
(Optional) Defines the ASM disk group of the VM storage (Default: DATA). |
|
(Optional) Specifies the VM storage redundancy for a DB system. The value can be HIGH or MIRROR. This option is not supported for DB systems on non-FLEX disk group. The options can be MIRROR or HIGH. The default option is MIRROR. |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
share1
of 8
GB.# odacli create-vmstorage -n share1 -s 8G
Parent topic: odacli VM Storage Commands for KVM
odacli list-vmstorages
Use the odacli list-vmstorages
command to list all VM
storages on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli list-vmstorages [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
# odacli list-vmstorages
Parent topic: odacli VM Storage Commands for KVM
odacli describe-vmstorage
Use the odacli describe-vmstorage
command to describe VM
storage on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli describe-vmstorage -n name [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the name of the VM storage. |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example: Describing a VM Storage named
share1
# odacli describe-vmstorage -n share1
Parent topic: odacli VM Storage Commands for KVM
odacli modify-vmstorage
Use the odacli modify-vmstorage
command to modify VM storage
configuration on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli modify-vmstorage -n name -i increment [-r {MIRROR|HIGH}] [-s decrement] [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the VM storage name |
|
(Optional) Defines the size to grow the VM storage. Format is K|M|G|T |
|
(Optional) Defines the size to shrink the VM storage. Format is K|M|G|T |
|
(Optional) Specifies the VM storage redundancy for a DB system. The value can be HIGH or MIRROR. This option is not supported for DB systems on non-FLEX disk group. The options can be MIRROR or HIGH. The default option is MIRROR. |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
Increase the size of a VM storage named share1
by 10 gigabytes.
# odacli modify-vmstorage -n share1 -i 10G
Parent topic: odacli VM Storage Commands for KVM
odacli delete-vmstorage
Use the odacli delete-vmstorage
command to delete a
vmstorage configuration on Oracle Database Appliance Kernel-based Virtual Machine
(KVM).
Syntax
odacli delete-vmstorage -n name [-f] [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the vmstorage name to be deleted |
|
(Optional) Specifies the force option |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
Delete a VM storage named share1
.
odacli delete-vmstorage -n share1
Parent topic: odacli VM Storage Commands for KVM
odacli Virtual Disk Commands for Oracle KVM
Use the odacli virtual disk commands to manage virtual disks on Oracle Database Appliance for Oracle KVM.
- odacli create-vdisk
Use theodacli create-vdisk
command to create a new virtual disk in a VM storage on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli list-vdisks
Use theodacli list-vdisks
command to list all virtual disks on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli describe-vdisk
Use theodacli describe-vdisk
command to describe a virtual disk on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli modify-vdisk
Use theodacli modify-vdisk
command to modify a virtual disk on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli clone-vdisk
Use theodacli clone-vdisk
command to clone a virtual disk on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli delete-vdisk
Use theodacli delete-vdisk
command to delete a virtual disk on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Parent topic: Oracle Database Appliance Command-Line Interface for KVM
odacli create-vdisk
Use the odacli create-vdisk
command to create a new virtual
disk in a VM storage on Oracle Database Appliance Kernel-based Virtual Machine
(KVM).
Syntax
odacli create-vdisk -n name -vms vmstorage_name -s size -sh -sp [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Name assigned to the virtual disk that is unique within the name repository |
|
Name of the VM storage where the virtual disk will be created |
|
Amount of storage to be assigned from the shared repository to the shared disk. The default unit is G (for gigabytes) and the minimum size is 500 M (for megabytes). Format is K|M|G|T |
|
(Optional) Sets the option of allowing the virtual disk to be shared by more than
one virtual machine ( |
|
(Optional) Creates a sparse vdisk. Use the default option, non-sparse, to
pre-allocate the full vdisk size in the vdisk image. Specify sparse
vdisk with the |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
Create a 2 GB non-sparse and shareable Virtual Disk named vdisk1
inside the VM storage vms1
.
odacli create-vdisk -n vdisk1 -vms vms1 -s 2G -sh
Parent topic: odacli Virtual Disk Commands for Oracle KVM
odacli list-vdisks
Use the odacli list-vdisks
command to list all virtual disks
on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli list-vdisks [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
odacli list-vdisks
Parent topic: odacli Virtual Disk Commands for Oracle KVM
odacli describe-vdisk
Use the odacli describe-vdisk
command to describe a virtual
disk on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli describe-vdisk -n name [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the name of the virtual disk. |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example: Describing a Virtual Disk named
vdisk1
odacli describe-vdisk -n vdisk1
Parent topic: odacli Virtual Disk Commands for Oracle KVM
odacli modify-vdisk
Use the odacli modify-vdisk
command to modify a virtual disk
on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli modify-vdisk -n name -i [-no-s|-s] [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the virtual disk name |
|
Defines the size to increase the virtual disk. Format is value units, units are K|M|G|T |
|
(Optional) Set the Virtual Disk as non-shareable |
|
(Optional) Set the Virtual Disk as shareable |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
Increase the size of a virtual disk named vdisk1
by 4
gigabytes.
# odacli modify-vdisk -n vdisk1 -i 4G
Parent topic: odacli Virtual Disk Commands for Oracle KVM
odacli clone-vdisk
Use the odacli clone-vdisk
command to clone a virtual disk
on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli clone-vdisk -n name -cn clone_name [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the virtual disk name to be cloned |
|
Specifies the name of the cloned virtual disk |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
Create a clone of a virtual disk named vdisk1
, with the name
vdisk1_clone
. The cloned disk is created on the same storage as
vdisk1
.
# odacli clone-vdisk -n vdisk1 -cn vdisk1_clone
Parent topic: odacli Virtual Disk Commands for Oracle KVM
odacli delete-vdisk
Use the odacli delete-vdisk
command to delete a virtual disk
on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli delete-vdisk -n name [-f] [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the virtual disk name to be deleted |
|
(Optional) Specifies the force option |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
Delete a virtual disk named vdisk1
.
# odacli delete-vdisk -n vdisk1
Parent topic: odacli Virtual Disk Commands for Oracle KVM
odacli CPU Pool Commands for Bare Metal and KVM
Use odacli commands to manage resource allocations on Oracle Database Appliance for bare metal and KVM deployments.
CPU pools enable management of CPU resources in both bare metal and KVM environments. There are two types of CPU pools, that is, BM and VM.
Use the BM CPU pool to ensure that the database on a bare metal host runs exclusively on the CPUs specified in the CPU pool.
Use the VM CPU pools to cage and manage CPU resource allocations to workloads for virtual machines. Workloads are isolated by creating CPU pools and assigning or pinning virtual machines to a specific CPU pool. When you pin a virtual machine to a CPU pool, you ensure that the virtual machine uses CPUs in only that CPU pool.
Resources in CPU pools cannot overlap, that is, CPU pools cannot share CPUs.
- odacli create-cpupool
Use theodacli create-cpupool
command to create a new CPU pool on Oracle Database Appliance Bare Metal or Kernel-based Virtual Machine (KVM) deployment. - odacli remap-cpupools
Use theodacli remap-cpupools
command to remap CPU pools to NUMA allocation on Oracle Database Appliance Bare Metal or Kernel-based Virtual Machine (KVM) deployment. - odacli list-cpupools
Use theodacli list-cpupools
command to list all CPU Pools on Oracle Database Appliance Bare Metal or Kernel-based Virtual Machine (KVM) deployment. - odacli describe-cpupool
Use theodacli describe-cpupool
command to describe CPU Pools on Oracle Database Appliance Bare Metal or Kernel-based Virtual Machine (KVM) deployment. - odacli modify-cpupool
Use theodacli modify-cpupool
command to modify a CPU Pool configuration on Oracle Database Appliance Bare Metal or Kernel-based Virtual Machine (KVM) deployment. - odacli delete-cpupool
Use theodacli delete-cpupool
command to delete a CPU Pool configuration on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli list-auditrecords
Use theodacli list-auditrecords
command to list the audit records for a CPU Pool on Oracle Database Appliance Bare Metal or Kernel-based Virtual Machine (KVM) deployment. - odacli describe-auditrecord
Use theodacli describe-auditrecord
command to describe the audit record for a CPU Pool on Oracle Database Appliance Bare Metal or Kernel-based Virtual Machine (KVM) deployment.
Parent topic: Oracle Database Appliance Command-Line Interface for KVM
odacli create-cpupool
Use the odacli create-cpupool
command to create a new CPU
pool on Oracle Database Appliance Bare Metal or Kernel-based Virtual Machine (KVM)
deployment.
Syntax
odacli create-cpupool -n name -c number_of_cores {-bm|-vm} [-nn node_name] [-s socket] [-dbs] [-urc] [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the CPU Pool name. |
|
Specifies the CPU Pool cores. |
|
(Optional) Specifies the CPU Pool as Bare Metal. |
|
(Optional) Specifies the CPU Pool as Virtual Machine. |
|
(Optional) Specifies the CPU Pool type as DB System. |
|
(Optional) Specifies the socket to use. If not specified, then use all available sockets. |
|
(Optional) Specifies to use reserved CPU cores. |
|
(Optional) Specifies the node where the CPU Pool will be created. On High-Availability deployment, if this option is not specified, then the CPU pool is created on both nodes. |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Usage Notes
- Attach the BM CPU pool to databases. Bare metal CPU pools can be assigned to multiple databases.
- Attach VM CPU pool VM to guest machines. VM CPU pools can be assigned to multiple VMs.
- Attach dbsystem CPU pool to DB systems. dbsystem CPU pool can be assigned to multiple DB systems. After you create a dbsystem CPU pool, you can create a new DB system with this CPU pool by adding the new CPU pool parameter in the create-dbsystem json file, or modify-dbsystem to attach CPU pool to an existing DB system.
- Resources in CPU pools cannot overlap, that is, CPU pools cannot share CPUs.
- After you create a BM CPU pool, you can associate this CPU pool to a database
using the
create-database
ormodify-database
command. - After you create a VM CPU pool, you can associate this CPU pool to a VM using
the
create-vm
ormodify-vm
command. - Number of cores must be an even number between 2 and the total number of available cores on the system.
- By default, a CPU in the CPU pool is allocated across two sockets in release 19.12 and later. Optionally, you can choose to allocate the CPU based on the socket number (0 or 1). This is especially useful to support Standard Edition licensing. It is recommended that you use the default allocation and do not mix two types of allocation.
- By default, the first core of the socket is reserved and cannot be used by the
VM and DB system CPU pools for optimal performance. Use the
--use-reserved-cores
option to enable use of the first core of socket for VM and DB system CPU pools.
Example
cpupool1
with 6 cores
associated to
it.# odacli create-cpupool -n cpupool1 -c 6 -bm
cpupool2
with 6 cores associated to
it.# odacli create-cpupool -n cpupool2 -c 6 -vm
cpupool3
with 6 cores
associated to
it.# odacli create-cpupool -n cpupool3 -c 6 -dbs
cpupool4
with 4 cores
of CPUs allocated from socket 0.
# odacli create-cpupool -n cpupool4 -dbs -s 0 -c 4
Parent topic: odacli CPU Pool Commands for Bare Metal and KVM
odacli remap-cpupools
Use the odacli remap-cpupools
command to remap CPU pools to
NUMA allocation on Oracle Database Appliance Bare Metal or Kernel-based Virtual Machine
(KVM) deployment.
Syntax
odacli remap-cpupools -f -urc [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
(Optional) Specifies to force the operation. |
|
(Optional) Specifies to use reserved CPU cores. |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Usage Notes
If the odacli remap-cpupools
command fails with the error
DCS-10001:Internal error encountered: Not enough physical CPUs available
for CPU Pool 'cpupool_name' on node 'node_name
', run the
odacli remap-cpupools
command again with the
--use_reserved-cores
option.
Use the --force
option to remap CPU pools even if the
CPU pool is marked as NUMA-enabled. You must use odacli
remap-cpupools
command, after updating the bare metal CPU cores with
the command odacli modify-cpucores
for CPU core number changes.
By default, the first core of the socket is reserved and cannot be used
by the VM and DB system CPU pools for optimal performance. Use the
--use-reserved-cores
option to enable use of the first core of
socket for VM and DB system CPU pools.
Example
# odacli remap-cpupools
odacli list-cpupools
Use the odacli list-cpupools
command to list all CPU Pools
on Oracle Database Appliance Bare Metal or Kernel-based Virtual Machine (KVM)
deployment.
Syntax
odacli list-cpupools [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
# odacli list-cpupools
Parent topic: odacli CPU Pool Commands for Bare Metal and KVM
odacli describe-cpupool
Use the odacli describe-cpupool
command to describe CPU
Pools on Oracle Database Appliance Bare Metal or Kernel-based Virtual Machine (KVM)
deployment.
Syntax
odacli describe-cpupool -n name [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the name of the CPU Pool. |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example: Describing a CPU pool named
cpupool1
# odacli describe-cpupool -n cpupool1
Parent topic: odacli CPU Pool Commands for Bare Metal and KVM
odacli modify-cpupool
Use the odacli modify-cpupool
command to modify a CPU Pool
configuration on Oracle Database Appliance Bare Metal or Kernel-based Virtual Machine (KVM)
deployment.
Syntax
odacli modify-cpupool -n name -c cores -f -l [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the CPU Pool name |
|
Specifies the new number of CPU cores |
|
(Optional) Forces the operation |
|
(Optional) Applies the changes to running VMs |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Usage Notes
For VM CPU pool, if --live
is not specified, then the
changes are applied to the VM configuration file and will be activated next time the
VM is started. If --live
is specified, then the changes will be
applied to both VM configuration file and to the running VM.
Example
Set the size of a CPU Pool cpupool1
to 10. If --live is not
specified, the change is applied to the VM configuration file and will be activated
next time the VM is started.
# odacli modify-cpupool -n cpupool1 -c 10
Parent topic: odacli CPU Pool Commands for Bare Metal and KVM
odacli delete-cpupool
Use the odacli delete-cpupool
command to delete a CPU Pool
configuration on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli delete-cpupool -n name -f [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the CPU Pool name to be deleted |
|
(Optional) Forces deletion. |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
Delete a CPU pool named cpupool1
.
# odacli delete-cpupool -n cpupool1
Parent topic: odacli CPU Pool Commands for Bare Metal and KVM
odacli list-auditrecords
Use the odacli list-auditrecords
command to list the audit
records for a CPU Pool on Oracle Database Appliance Bare Metal or Kernel-based Virtual
Machine (KVM) deployment.
Syntax
odacli list-auditrecords -du dcs-username -f from_date-range -l latest -nn node_name -ot operation_type -ou OS_username -rn resource_name -rt resource_type -t to_date-range [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
(Optional) Specifies the DCS user name. |
|
(Optional) Specfies the from date in the date range for the CPU pool audit records. |
|
(Optional) Specifies the latest number of CPU pool audit records. |
|
(Optional) Specifies the node name. |
|
(Optional) Specifies the type of operation. |
|
(Optional) Specifies the operating system user. |
|
(Optional) Specifies the resource name. |
|
(Optional) Specifies the resource type. |
|
(Optional) Specfies the to date in the date range for the CPU pool audit records. |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
# odacli list-auditrecords ID Resource type Resource name Operation type DCS username OS username Timestamp ------------------------------------ -------------------- -------------------- --------------- --------------- --------------- ----------------------- 41295d99-f263-4284-b6d9-2aff1ae0f850 BM_CPU_POOL testbmpool CREATE oda-admin root 2020-10-08 13:27:05 UTC 0f07a013-5bb4-4cd8-bd49-04dc61fcd454 BM_CPU_POOL pool_9f74a8e9- DELETE oda-admin root 2020-10-08 12:26:30 UTC d858269b-6c28-4bc2-af71-79004f3561e6 BM_CPU_POOL pool_9f74a8e9- CREATE oda-admin root 2020-10-08 12:24:36 UTC 9d7852c1-93fb-410e-9e0c-8c0a95ed3f0c VM_CPU_POOL pool_d48e81e4- DELETE oda-admin root 2020-10-08 12:06:45 UTC 0235cc84-9345-40bc-ac4f-7de3f63202e2 VM_CPU_POOL pool_4fe0b4f4- DELETE oda-admin root 2020-10-08 12:06:45 UTC 762f7263-7bd9-4b12-b891-48305165bf36 VM_CPU_POOL pool_4fe0b4f4- MODIFY oda-admin root 2020-10-08 12:06:22 UTC 0bd2a25d-2327-4918-bd47-8c00f7406f92 VM_CPU_POOL pool_4fe0b4f4- MODIFY
Parent topic: odacli CPU Pool Commands for Bare Metal and KVM
odacli describe-auditrecord
Use the odacli describe-auditrecord
command to describe the
audit record for a CPU Pool on Oracle Database Appliance Bare Metal or Kernel-based Virtual
Machine (KVM) deployment.
Syntax
odacli describe-auditrecord -i [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Describes the ID of the audit record. |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
# odacli describe-auditrecord -i 41295d99-f263-4284-b6d9-2aff1ae0f850 Audit Record details -------------------------------------------------------------------------------- Event details -------------------------- Record ID: 41295d99-f263-4284-b6d9-2aff1ae0f850 Record timestamp: 2020-10-08 13:27:05 UTC DCS username: oda-admin OS username: root Cluster ID: test_cluster-c Node ID: test_cluster Resource/Operation -------------------------- Resource type: BM_CPU_POOL Resource ID: b17cb623-bf79-491f-86d8-d8502987e26c Resource name: testbmpool Operation type: CREATE Operation description: Created with '2' cores and allocation 'test_cluster:1-2,17-18'
Parent topic: odacli CPU Pool Commands for Bare Metal and KVM
odacli VM Network Commands for KVM
Use the odacli virtual machine network commands to manage network on Oracle Database Appliance for Oracle KVM.
- odacli create-vnetwork
Use theodacli create-vnetwork
command to create a new network on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli list-vnetworks
Use theodacli list-vnetworks
command to list all virtual networks on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli describe-vnetwork
Use theodacli describe-vnetwork
command to describe virtual networks on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli start-vnetwork
Use theodacli start-vnetwork
command to start a virtual network on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli stop-vnetwork
Use theodacli stop-vnetwork
command to stop a virtual network on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli modify-vnetwork
Use theodacli modify-vnetwork
command to modify a network on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli delete-vnetwork
Use theodacli delete-vnetwork
command to delete a virtual network configuration on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Parent topic: Oracle Database Appliance Command-Line Interface for KVM
odacli create-vnetwork
Use the odacli create-vnetwork
command to create a new
network on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli create-vnetwork -n name -if interface-name -t type -br bridge -g gateway -ip IP-address -nm netmask -u uniform -vlan VLAN-network ID [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the virtual network name. |
|
Specifies the the network interface on the host. This can be physical interface or bonded interface. |
|
Specifies the virtual network type. Values are bridged or bridged-vlan. |
|
(Optional) Specifies the name of the bridge. |
|
(Optional) Specifies the virtual network gateway |
|
(Optional) Specifies the virtual network addresses. For
more than one address, use the format
" |
|
(Optional) Specifies the virtual network netmask |
|
(Optional) Specifies whether the virtual network is created on both nodes in a high-availability deployment |
|
(Optional) Specifies the VLAN network ID |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Usage Notes
If you did not specify the IP address, or netmask, or gateway during vnetwork
creation, then you can add them later using the odacli
modify-vnetwork
command.
Example
bridged
using the interface
btbond2
.# odacli create-vnetwork -n vnet1 -if btbond2 -type bridged
Parent topic: odacli VM Network Commands for KVM
odacli list-vnetworks
Use the odacli list-vnetworks
command to list all virtual
networks on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli list-vnetworks [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
# odacli list-vnetworks
Parent topic: odacli VM Network Commands for KVM
odacli describe-vnetwork
Use the odacli describe-vnetwork
command to describe virtual
networks on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli describe-vnetwork -n [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the name of the virtual network. |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example: Describing a VM Network named
vnet1
# odacli describe-vnetwork -n vnet1
Parent topic: odacli VM Network Commands for KVM
odacli start-vnetwork
Use the odacli start-vnetwork
command to start a virtual
network on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli start-vnetwork -n name [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the virtual machine name to be stopped |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
Start a virtual network named vnet1
.
# odacli start-vnetwork -n vnet1
Parent topic: odacli VM Network Commands for KVM
odacli stop-vnetwork
Use the odacli stop-vnetwork
command to stop a virtual
network on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli stop-vnetwork -n name [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the virtual network to be stopped |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
Stop a virtual network named vnet1
.
# odacli stop-vnetwork -n vnet1
Parent topic: odacli VM Network Commands for KVM
odacli modify-vnetwork
Use the odacli modify-vnetwork
command to modify a network
on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli modify-vnetwork -n name -if -t -br -gw -ip -nm -u -vlan [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the virtual network name. |
|
(Optional) Specifies the virtual network gateway |
|
(Optional) Specifies the virtual network addresses. For
more than one address, use the format
" |
|
(Optional) Specifies the virtual network netmask |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
# odacli modify-vnetwork -n vnet1 -g 10.11.44.41
Parent topic: odacli VM Network Commands for KVM
odacli delete-vnetwork
Use the odacli delete-vnetwork
command to delete a virtual
network configuration on Oracle Database Appliance Kernel-based Virtual Machine
(KVM).
Syntax
odacli delete-vnetwork -n name [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the vnetwork name to be deleted |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
Delete a VM network named vnet1
.
# odacli delete-vnetwork -n vnet1
Parent topic: odacli VM Network Commands for KVM
odacli Virtual Machine Commands for Oracle KVM
Use the odacli virtual machine commands to manage virtual machines on Oracle Database Appliance for Oracle KVM.
- odacli create-vm
Use theodacli create-vm
command to create a new virtual machine on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli list-vms
Use theodacli list-vms
command to list all virtual machines on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli describe-vm
Use theodacli describe-vm
command to describe a virtual machine on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli modify-vm
Use theodacli modify-vm
command to modify a virtual machine on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli start-vm
Use theodacli start-vm
command to start a virtual machine on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli stop-vm
Use theodacli stop-vm
command to stop a virtual machine on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli migrate-vm
Use theodacli migrate-vm
command to migrate a virtual machine on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli clone-vm
Use theodacli clone-vm
command to clone a virtual machine configuration on Oracle Database Appliance Kernel-based Virtual Machine (KVM). - odacli delete-vm
Use theodacli delete-vm
command to delete a virtual machine configuration on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Parent topic: Oracle Database Appliance Command-Line Interface for KVM
odacli create-vm
Use the odacli create-vm
command to create a new virtual
machine on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli create-vm -n name -m memory -bo boot_options -src source -vc vcpus -vms vmstorage -cp cpupool -d description -g graphics -mm max-mem-size -mvc max-vcpu-count -osv os_variant -pn preferred_node -s disk_size -vd vdisks -vn virtual_network_names -ea extra_args -esrc extra_srcs [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the VM name |
|
Specifies the size of the VM memory. The format is "value_unit". Unit is M|G. |
|
Specifies the source installation. If local, it can be an ISO or a bootable disk image. If remote, it can be an URI pointing to an install tree hosted remotely over HTTP, HTTPS, or FTP. |
|
Specifies the number of vCPUs to use. |
|
Specifies the VM storage name. |
|
Specifies the VM boot options. |
|
(Optional) Specifies the CPU pool name |
|
(Optional) Specifies the extra sources for the guest VM that are mounted as CDROM devices |
|
(Optional) Specifies the VM description |
|
(Optional) Specifies the extra arguments for the VM installer. |
|
(Optional) Specifies the graphics settings for the VM |
|
(Optional) Specifies the maximum size of the VM memory. The format is "value_unit". Unit is M|G. |
|
(Optional) Specifies the maximum number of VCPUs |
|
(Optional) Specifies the operating system variant. Use
the command |
|
(Optional) Specifies the preferred node to run the VM |
|
(Optional) Specifies the size of the VM. The format is "value_unit". Unit is K|M|G|T. |
|
(Optional) Specifies the names of the vdisks to use |
|
(Optional) Specifies the names of the virtual networks to use |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Usage Notes
- Use the
--extra-args
parameter to add kickstart configuration file, kernel parameters for example, serial console. For example:--extra-args "console=tty0 console=ttyS0,115200 ks=http://192.168.122.100:80/ks.txt"
Example
Create a VM named vm1
with 8 vcpus and 8 GB memory. The VM is
stored in the VM Storage vms1
. The source used for the installation
is located on /u01/OL7.iso
.
# odacli create-vm -n vm1 -vc 8 -m 8G -vms vs1 -src /u01/OL7.iso
Example
If the installation source is located through network, the network
configuration of the VM must be provided by --extra-args
so that
the network can be setup at the bootstrap of the VM, to reach the installation
source over the network. For example, to create a VM from source
https://example.com/iso/OracleLinux/OL7/u9/x86_64/OracleLinux-R7-U9-Server-x86_64-dvd/
:
# odacli create-vm -vn pubnet -m 4G -vc 8 -src https://example.com/iso/OracleLinux/OL7/u9/x86_64/OracleLinux-R7-U9-Server-x86_64-dvd/ -vd vmstorage_vdisk2 -vms vmstore -g vnc,listen=0.0.0.0,port=5949 -n vm1 -s 20G --extra-args "dns=<dns_server_ip_addr> ip=<vm1_ip_addr>::<gateway_ip>:<netmask>:<vm1_hostname>:ens3:none"
Parent topic: odacli Virtual Machine Commands for Oracle KVM
odacli list-vms
Use the odacli list-vms
command to list all virtual machines
on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli list-vms [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
# odacli list-vms
Parent topic: odacli Virtual Machine Commands for Oracle KVM
odacli describe-vm
Use the odacli describe-vm
command to describe a virtual
machine on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli describe-vm -n name [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the name of the virtual machine. |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example: Describing a Virtual Machine named
vm1
# odacli describe-vm -n vm1
Parent topic: odacli Virtual Machine Commands for Oracle KVM
odacli modify-vm
Use the odacli modify-vm
command to modify a virtual machine
on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli modify-vm -n name -as -en -bo boot_options -cfg -avd attach_vdisks -avn attach_vnetworks -dev device -d description -dn -dvd detach-vdisk -dvn detach-vnetworks -mm max-memory -mvc max-vcpuc -m memory -no-cp -pn preferred-node -vc vcpu_count -di disk-increment -en -fo -g graphics -l -no-as [-f] [-g] [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the VM name |
|
(Optional) Specifies if the auto-start option must be set for the VM |
|
(Optional) Disables the auto-start option for the VM |
|
(Optional) Specifies the the boot options to use |
|
(Optional) Specifies whether the changes persist. |
|
(Optional) Indicates whether the specified changes take place live (true) or after the next boot (false). Default is false |
|
(Optional) Enables NUMA configuration for the VM. |
|
(Optional) Disables NUMA configuration for the VM. |
|
(Optional) Specifies the CPU pool name |
|
(Optional) Specifies the VM description |
|
(Optional) Specifies the configuration for the failover |
|
(Optional) Specifies the configuration for the failover |
|
(Optional) Specifies the number of vCPUs. |
|
(Optional) Specifies the memory size of the VM. The format is "value_unit". Unit is M|G. |
|
(Optional) Specifies the maximum memory size of the VM. The format is "value_unit". Unit is M|G. |
|
(Optional) Specifies the maximum number of vCPUs. |
|
(Optional) Dissasociates the associated CPU Pool |
|
(Optional) Specifies the names of the virtual disks to detach |
|
(Optional) Specifies the names of the virtual networks to detach |
|
(Optional) Specifies the preferred node to run the VM |
|
Specifies the change in size of the VM. The format is "value_unit". Unit is K|M|G|T. |
|
(Optional) Specifies the names of the vdisks to attach |
|
(Optional) Specifies the names of the virtual networks to attach |
|
(Optional) Modifies the device as specified in the expression: Where device_expression =
|
|
(Optional) Specifies to force the operation. |
|
(Optional) Defines the graphics settings for the VM. The
supported graphics setting is VNC. For example,
|
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Usage Tips
--live
: The change is applied to the running VM instance, but does not persist after the VM stops.--enable-numa
: Use this option to enable NUMA for an existing VM.--config
: The change persists in the configuration of VM instance and takes effect on subsequent reboots.- If neither
--live
or--config
is specified, then the default behavior is--config
. - You can specify both the
--live
or--config
options if you want the modification to take effect immediately and on subsequent boots. - When an application VM is created, a default network interface is created by default in the VM. This interface is attached to the default kvm bridge (virbr0) at the host. This interface is intended for convenient communication between the host and VM. This interface does not attach to any physical network interface at the host. Do not configure this interface to use for any external communication.
- You must create a vnetwork using the command
odacli create-vnetwork
and attach the vnetwork (odacli modify-vm -avn
) to the VM. This creates a second interface in the VM. Configure this network interface for your network requirement. - The network interface name in the VM depends on the operating system.
Modifying CPU Count and Memory for a VM
Update the configuration of a VM named vm1
, setting the CPU count
to 6 and the maximum memory to 6 gigabytes on both the running VM and subsequent
boots.
# odacli modify-vm -n vm1 -vc 6 -mm 6G --live --config
Enabling NUMA
--enable-numa
to enable NUMA for the VM
configuration. The command odacli modify-dbsystem --enable-numa
is
only supported on application VMs with even number of CPU cores so that CPU cores
can be evenly distributed to NUMA nodes. In Oracle Database Appliance, one CPUcore
is equal to 2 vCPU. For more information, see About Enabling NUMA
on Oracle Database
Appliance.# odacli modify-vm --name name --enable-numa
Modifying a VM to attach a vnetwork
# odacli modify-vm -n vm_name -avn vnetwork_name
Modifying a VM to change the bus type for the VM image
# odacli modify-vm -dev "bus=sata" -n winvm
Modifying a VM to change the bus type for a specific vdisk attached to the VM
# odacli modify-vm -dev "vdisk=vdisk_name, bus=sata" -n winvm
The command changes the winvm
bus type of
vdisk_name
to sata. If you do not specify the vdisk
parameter, the command changes the bus type to the vdisk that holds the VM image.
odacli start-vm
Use the odacli start-vm
command to start a virtual machine
on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli start-vm -n name -nn [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the virtual machine name to be stopped |
|
(Optional) Specifies the node name where the virtual machine will be started |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Usage Notes
- If
pref-node
is defined for the VM, then the VM starts on thepref-node
. Ifpref-node
is not defined for the VM, then the VM can start on any node, in a high-availability deployment. - If you specify the node name
-n
, then the VM starts on the specified node, even if the preferred node is defined.
Example
Start a virtual machine named vm1
.
# odacli start-vm -n vm1
Parent topic: odacli Virtual Machine Commands for Oracle KVM
odacli stop-vm
Use the odacli stop-vm
command to stop a virtual machine on
Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli stop-vm -n name [-f] [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the virtual machine name to be stopped |
|
(Optional) Specifies the force option |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
Stop a virtual machine named vm1
.
# odacli stop-vm -n vm1
Parent topic: odacli Virtual Machine Commands for Oracle KVM
odacli migrate-vm
Use the odacli migrate-vm
command to migrate a virtual
machine on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli migrate-vm -n name -th node_name [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the virtual machine name to be migrated. |
|
Specifies the destination node name. |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
Migrate a virtual machine named vm1
to node named
oda1
.
odacli migrate-vm -n vm1 -th oda1
Parent topic: odacli Virtual Machine Commands for Oracle KVM
odacli clone-vm
Use the odacli clone-vm
command to clone a virtual machine
configuration on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
# odacli clone-vm -n name_of_vm_to_clone_from -cn clone_name [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the virtual machine name to be cloned |
|
Specifies the name of the cloned virtual machine |
|
(Optional) Specifies the description of the virtual machine |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
Create a clone of a virtual machine named vm1
, with the name
vm1_clone
. The cloned VM is created on the same storage as
vm1
.
# odacli clone-vm -n vm1 -cn vm1_clone
Parent topic: odacli Virtual Machine Commands for Oracle KVM
odacli delete-vm
Use the odacli delete-vm
command to delete a virtual machine
configuration on Oracle Database Appliance Kernel-based Virtual Machine (KVM).
Syntax
odacli delete-vm -n name [-f] [-j] [-h]
Parameters
Parameter | Description |
---|---|
|
Specifies the virtual machine name to be deleted |
|
(Optional) Specifies the force option |
|
(Optional) Displays output in JSON format. |
|
(Optional) Displays help for using the command. |
Example
Delete a virtual machine named vm1
.
odacli delete-vm -n vm1
Parent topic: odacli Virtual Machine Commands for Oracle KVM