17.2.4 Shutting Down the OAM Domain
Run the following commands to shutdown the Oracle Access Management (OAM) 12c
deployment:
- Shut down the OAM deployment using the following
command:
For example:kubectl patch domain %DOMAIN_UID% -n %NAMESPACE% --type=merge --patch "{\"spec\": {\"serverStartPolicy\": \"Never\"}}"
The output will look similar to the following:kubectl patch domain accessdomain -n oamns --type=merge --patch "{\"spec\": {\"serverStartPolicy\": \"Never\"}}"domain.weblogic.oracle/accessdomain patched - Run the following kubectl command to view the
pods:
For example:kubectl get pods -n %NAMESPACE%
The output will look similar to the following:kubectl get pods -n oamnsNAME READY STATUS RESTARTS AGE accessdomain-adminserver 1/1 Running 0 21h accessdomain-oam-policy-mgr1 1/1 Running 0 21h accessdomain-oam-server1 0/1 Terminating 0 21hThe Administration Server pods and Managed Server pods will move to a
STATUSofTerminating.After a few minutes, run the command again and make sure the pods should have disappeared before continuing.
- If a helper pod exists, then delete
it:
For example:kubectl delete pod helper -n %NAMESPACE%kubectl delete pod helper -n oamns