Oracle Virtual Server Manager 3.4.5: Database reset

Oracle Virtual Server Manager 3.4.5:  Database reset
(This comman should work with OVMM 3.3 and above)

[root@oel75 ~]# service ovmm stop
Stopping ovmm (via systemctl):                             [  OK  ]
[root@oel75 ~]# service ovmcli stop
Stopping ovmcli (via systemctl):                           [  OK  ]

Change PASSWORD with your ovmm password.

[root@oel75 ~]# cd /u01/app/oracle/ovm-manager-3/ovm_upgrade/bin
[root@oel75 bin]# sh ./ovm_upgrade.sh --deletedb --dbuser=ovs --dbpass=PASSWORD --dbhost=localhost --dbport=49500 --dbsid=ovs

COMMAND: ./ovm_upgrade.sh --deletedb --dbuser=ovs --dbpass=PASSWORD --dbhost=localhost --dbport=49500 --dbsid=ovs

Copying deleted classes files to patch path location
2018-08-11 12:16:14,481  INFO Oracle OVM Manager Upgrade Processor
2018-08-11 12:16:14,481  INFO
Aug 11, 2018 12:16:14 PM oracle.security.jps.JpsStartup start
INFO: Jps initializing.
Aug 11, 2018 12:16:16 PM oracle.security.jps.JpsStartup start
INFO: Jps started.
2018-08-11 12:16:16,178  INFO Upgrade Initialization Starting
2018-08-11 12:16:16,301  INFO Oracle Distributed Object Fabric (ODOF): Copyright (C) 2007, 2016 Oracle.  All rights reserved.
2018-08-11 12:16:16,301  INFO ODOF Version: 1.3.1.4
2018-08-11 12:16:16,301  INFO Initializing...
Security framework of XStream not initialized, XStream is probably vulnerable.
2018-08-11 12:16:16,677  INFO Initialization Complete
2018-08-11 12:16:16,678  INFO Upgrade Initialization Complete
2018-08-11 12:16:16,678  INFO Database Wipe Starting
2018-08-11 12:16:16,678  INFO Wiping Exchange
2018-08-11 12:16:16,694  INFO Initializing / Clearing Database Tables
2018-08-11 12:16:23,191  INFO Wiping Complete!
2018-08-11 12:16:23,191  INFO Database Wipe Complete

[root@oel75 bin]# service ovmm start
Starting ovmm (via systemctl):                             [  OK  ]
[root@oel75 bin]# /u01/app/oracle/ovm-manager-3/bin/configure_client_cert_login.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

2018-08-11 12:18:33,889 [main] INFO  ovm.wlst.commands - Connecting using URL t3://localhost:7001

2018-08-11 12:18:36,137 [main] INFO  ovm.wlst.commands - Undeploying ovm_console
Undeploying application ovm_console ...
<Aug 11, 2018 12:18:36 PM PDT> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating undeploy operation for application, ovm_console [archive: null], to AdminServer .>
.Completed the undeployment of Application with status completed
Current Status of your Deployment:
Deployment command type: undeploy
Deployment State : completed
Deployment Message : no message
2018-08-11 12:18:40,243 [main] INFO  ovm.wlst.commands - Undeploying ovm_core
Undeploying application ovm_core ...
<Aug 11, 2018 12:18:40 PM PDT> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating undeploy operation for application, ovm_core [archive: null], to AdminServer .>
..............Completed the undeployment of Application with status completed
Current Status of your Deployment:
Deployment command type: undeploy
Deployment State : completed
Deployment Message : no message
2018-08-11 12:19:22,778 [main] INFO  ovm.wlst.domainbuilder.Domain - Stopping AdminServer...
Stopping Weblogic Server...

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Connecting to t3://localhost:7001 with userid weblogic ...
Successfully connected to Admin Server "AdminServer" that belongs to domain "ovm_domain".

Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.

Shutting down the server AdminServer with force=false while connected to AdminServer ...
Disconnected from weblogic server: AdminServer

Exiting WebLogic Scripting Tool.

Done
Stopping Derby Server...
Derby server stopped.
2018-08-11 12:19:29,916 [main] INFO  ovm.wlst.domainbuilder.Domain - Starting AdminServer...
2018-08-11 12:19:29,921 [main] INFO  ovm.wlst.domainbuilder.Domain - Trying to connect to t3://localhost:7001...
2018-08-11 12:19:42,024 [main] INFO  ovm.wlst.domainbuilder.Domain - Trying to connect to t3://localhost:7001...
2018-08-11 12:19:53,911 [main] INFO  ovm.wlst.domainbuilder.Domain - Trying to connect to t3://localhost:7001...
2018-08-11 12:20:05,883 [main] INFO  ovm.wlst.domainbuilder.Domain - Trying to connect to t3://localhost:7001...

2018-08-11 12:20:07,981 [main] INFO  ovm.wlst.domainbuilder.Domain - Connected.
2018-08-11 12:20:08,017 [main] INFO  ovm.wlst.domainbuilder.Domain - AdminServer state is RUNNING
2018-08-11 12:20:08,018 [main] INFO  ovm.wlst.commands - Deploying ovm_core
Deploying application from /u01/app/oracle/ovm-manager-3/ovm_wlst/deploy/ovm_core/app/ovm_core_3.4.5.1919.ear to targets AdminServer (upload=false) ...
<Aug 11, 2018 12:20:08 PM PDT> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, ovm_core [archive: /u01/app/oracle/ovm-manager-3/ovm_wlst/deploy/ovm_core/app/ovm_core_3.4.5.1919.ear], to AdminServer .>
...Completed the deployment of Application with status completed
Current Status of your Deployment:
Deployment command type: deploy
Deployment State : completed
Deployment Message : no message
Already in Domain Config Tree

Already in Domain Config Tree

2018-08-11 12:20:18,397 [main] INFO  ovm.wlst.domainbuilder.Domain - Created a user named appframework
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/u01/app/oracle/ovm-manager-3/ovm_cli/lib/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/u01/app/oracle/Middleware/wlserver/modules/features/weblogic.server.merged.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Aug 11, 2018 12:20:19 PM oracle.security.jps.JpsStartup start
INFO: Jps initializing.
Aug 11, 2018 12:20:21 PM oracle.security.jps.JpsStartup start
INFO: Jps started.
2018-08-11 12:20:23,167 [main] INFO  com.oracle.appfw.ovm.ws.client.KeytoolHelper - Writing cacert.pem
2018-08-11 12:20:23,169 [main] INFO  com.oracle.appfw.ovm.ws.client.KeytoolHelper - Importing cacert.pem with alias ovmca
2018-08-11 12:20:23,559 [main] INFO  com.oracle.appfw.ovm.ws.client.KeytoolHelper - Generating key pair for appframework in /u01/app/oracle/ovm-manager-3/domains/ovm_domain/security/ovmclient.jks
2018-08-11 12:20:24,406 [main] INFO  com.oracle.appfw.ovm.ws.client.KeytoolHelper - Exporting clientcert.pem from /u01/app/oracle/ovm-manager-3/domains/ovm_domain/security/ovmclient.jks
2018-08-11 12:20:24,582 [main] INFO  com.oracle.appfw.ovm.ws.client.KeytoolHelper - Reading clientcert.pem
2018-08-11 12:20:24,584 [main] INFO  com.oracle.appfw.ovm.ws.client.SSLClientUtil - Signing certificate
2018-08-11 12:20:24,733 [main] INFO  com.oracle.appfw.ovm.ws.client.KeytoolHelper - Writing clientcert.pem
2018-08-11 12:20:24,733 [main] INFO  com.oracle.appfw.ovm.ws.client.KeytoolHelper - Importing clientcert.pem with alias appframework
2018-08-11 12:20:25,348 [main] INFO  com.oracle.appfw.ovm.ws.client.SSLClientUtil - Deleting cacert.pem
2018-08-11 12:20:25,348 [main] INFO  com.oracle.appfw.ovm.ws.client.SSLClientUtil - Deleting clientcert.pem
2018-08-11 12:20:25,367 [main] INFO  ovm.wlst.commands - Deploying ovm_console
Deploying application from /u01/app/oracle/ovm-manager-3/ovm_wlst/deploy/ovm_console/app/ovm_console_3.4.5.1919.ear to targets AdminServer (upload=false) ...
<Aug 11, 2018 12:20:25 PM PDT> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, ovm_console [archive: /u01/app/oracle/ovm-manager-3/ovm_wlst/deploy/ovm_console/app/ovm_console_3.4.5.1919.ear], to AdminServer .>
.............Completed the deployment of Application with status completed
Current Status of your Deployment:
Deployment command type: deploy
Deployment State : completed
Deployment Message : no message
<Aug 11, 2018 12:21:06 PM PDT> <Warning> <JNDI> <BEA-050001> <WLContext.close() was called in a different thread than the one in which it was created.>

Client certificate login configuration complete