4 Uninstalling SCP
SCP can be uninstalled as follows. Execute the following steps from a server that has access to Kubectl and helm commands.
- Execute the following command to uninstall SCP:
$ helm delete <SCP_deployment_namespace> --purge
- Execute the following command to remove SCP custom resources definitions:
$ kubectl get crds -o name | grep <SCP_deployment_namespace>.oracle.io | xargs kubectl delete
Example:
$ kubectl get crds -o name | grep scp.oracle.io | xargs kubectl delete
- Execute the following command to delete the
namespace:
kubectl delete namespace <SCP_deployment_namespace>
Note: Deleting the namespace deletes all the other Kubernates objects in that namespace.
- Execute the following steps to cleanup DB:
- Login to mysql client
on SQL NODE with scp user and password:
mysql -h <IP_adress of SQL Node> -uscpuser -pscppass
- Change to scp db and
drop the following tables:
mysql> use ocscpdb; mysql> drop table NF_PROFILES; mysql> drop table TOPOLOGY_SOURCE_INFO; mysql> drop table NRF_NF_DETAILS; mysql> drop table NF_SUBSCRIPTIONS;
- Optionally, AMF and SMF
subscriber data tables should be dropped if SDS app was enabled
and old subscriber data need to be purged before new
installation.
mysql> drop table SubscriberAmfBindingPei; mysql> drop table SubscriberAmfBindingGpsi; mysql> drop table SubscriberAmfBindingData; mysql> drop table SubscriberSmfBindingData;
- Login to mysql client
on SQL NODE with scp user and password: