Hi,
I will explain ODA ( Oracle Database Appliance ) VM Administration via OAKCLI tool in this article.
Read the previous article before this.
If you want to Manage and maintain Oracle Database Appliance components as ODA Admin or Oracle DBA, you should use Oracle Appliance Manager Command-Line Utility (OAKCLI), also known as the Oracle Appliance Kit Command Line Interface, or OAKCLI.
To list All VM on ODA Base, execute following query.
[root@DEVECIORA01 ~]# oakcli show vm
NAME NODENUM MEMORY VCPU STATE REPOSITORY
DEVECIAPP01 1 32768M 4 ONLINE vm_data
DEVECIAPP02 0 32768M 4 ONLINE vm_data
DEVECIAPP03 0 16384M 4 ONLINE vm_data
DEVECIAPP04 1 16384M 4 ONLINE vm_data
DEVECIAPP05 1 24576M 2 ONLINE vm_data
DEVECIAPP06 1 16384M 2 ONLINE vm_data
DEVECIAPP07 0 16384M 2 ONLINE vm_data
DEVECIAPP08 0 32768M 4 ONLINE vm_data
DEVECIAPP09 1 32768M 4 ONLINE vm_data
DEVECIAPP10 0 16384M 2 ONLINE vm_data
DEVECIWEB01 1 16384M 2 ONLINE vm_data
DEVECIWEB02 0 8192M 2 ONLINE vm_data
DEVECIWEB03 0 16384M 4 ONLINE vm_data
[root@DEVECIORA01 ~]#
To Stop any VM on ODA Base, execute following query.
[root@DEVECIORA01 ~]# oakcli stop vm DEVECIAPP01
Stopped VM : DEVECIAPP01
[root@DEVECIORA01 ~]#
To start any VM on ODA Base, execute following query.
[root@DEVECIORA01 ~]# oakcli start vm DEVECIAPP01
Started VM : DEVECIAPP01 on Node Number : 1
[root@DEVECIORA01 ~]#
Sometimes eventhough you execute stop command, it may not stop. You should use stop force option in this case like following.
[root@DEVECIORA01 ~]# oakcli stop vm DEVECIAPP01 -force
OAKERR : Resource DEVECIAPP01 is already OFFLINE
[root@DEVECIORA01 ~]#