Oracle VM 3.3.x and later: getting error when deleting db "ERROR: unrecognized or misspelled option '--dbtype=MySQL' supplied."

(Doc ID 2329410.1)

Last updated on NOVEMBER 23, 2017

Applies to:

Oracle VM - Version 3.3.1 and later
Information in this document applies to any platform.

Symptoms

In Oracle VM 3.3.x or later version, when try to delete db with "--dbtype=" argument, error pops up as:

# sh ovm_upgrade.sh --deletedb --dbuser=ovs --dbpass=Welcome1 --dbhost=localhost --dbport=49500 --dbsid=ovs --dbtype=MySQL

COMMAND: ovm_upgrade.sh --deletedb --dbuser=ovs --dbpass=Welcome1 --dbhost=localhost --dbport=49500 --dbsid=ovs --dbtype=MySQL

ERROR: unrecognized or misspelled option '--dbtype=MySQL' supplied.

Exception in thread "main" java.lang.NoClassDefFoundError: oracle/security/jps/internal/policystore/JavaPolicyProvider
at com.oracle.ovm.mgr.api.util.ServiceFactory.populateServiceMap(ServiceFactory.java:94)
at com.oracle.ovm.mgr.api.util.ServiceFactory.getService(ServiceFactory.java:61)
at com.oracle.ovm.mgmt.upgrade.OvmUpgrade.<clinit>(OvmUpgrade.java:42)
Caused by: java.lang.ClassNotFoundException: oracle.security.jps.internal.policystore.JavaPolicyProvider
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 3 more

 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms