4.4.5 Uninstall the OML4Py Server from an On-Premises Database 23ai

Instructions for uninstalling the on-premises OML4Py server components from an on-premises Oracle Database 23ai.

Uninstall the On-Premises OML4Py Server for Linux

To uninstall the on-premises OML4Py server for Linux, do the following:

  1. Verify that the PYTHONHOME environment variable is set to the Python3.12 directory.
    echo $PYTHONHOME
  2. Verify that PYTHONPATH environment variable is set to the directory in which the oml modules are installed.
    echo $PYTHONPATH

    If it is not set to the proper directory, set it.

    export PYTHONPATH=$ORACLE_HOME/oml4py/modules
  3. Change directories to the directory containing the server installation zip file.
    cd $ORACLE_HOME/oml4py
  4. Run the server uninstall script pyquncfg.sql, the script is under $ORACLE_HOME/oml4py/server.
    cd $ORACLE_HOME/oml4py/server

    Start SQL*Plus, connect to the PDB.

    $ sqlplus / as sysdba;
    SQL*Plus: Release 23.0.0.0.0 - Production on Tue Apr 30 12:40:18 2024
    Version 23.4.0.24.05
    
    Copyright (c) 1982, 2024, Oracle. All rights reserved.
    
    
    Connected to:
    Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - Production
    Version 23.4.0.24.05
    

    Run the pyquncfg.sql script to record the log, spool, and the installation steps to an external file.

    
    SQL> spool install.txt
    SQL> alter session set container=ORCLPDB;
    SQL> @pyquncfg.sql