Rem
Rem $Header: javavm/install/deinstall_fips.sql /st_javavm_19.0.0.0.0ojvmru/1 2024/03/02 07:42:15 etucker Exp $
Rem
Rem deinstall_fips.sql
Rem
Rem Copyright (c) 2023, 2024, Oracle and/or its affiliates.
Rem
Rem    NAME
Rem      deinstall_fips.sql - <one-line expansion of the name>
Rem
Rem    DESCRIPTION
Rem      <short description of component this file declares/defines>
Rem
Rem    NOTES
Rem      <other useful comments, qualifications, etc.>
Rem
Rem    BEGIN SQL_FILE_METADATA
Rem    SQL_SOURCE_FILE: javavm/install/deinstall_fips.sql
Rem    SQL_SHIPPED_FILE: javavm/install/deinstall_fips.sql
Rem    SQL_PHASE: UTILITY
Rem    SQL_STARTUP_MODE: NORMAL
Rem    SQL_IGNORABLE_ERRORS: NONE
Rem    END SQL_FILE_METADATA
Rem
Rem    MODIFIED   (MM/DD/YY)
Rem    etucker     07/14/23 - Created
Rem

@@?/rdbms/admin/sqlsessstart.sql

-- set echo on
-- the code below is required to run in CDB$ROOT first and then any PDB that
-- is to support FIPS.
begin
  dbms_java.revoke_permission('PUBLIC','SYS:java.io.FilePermission', 'jlib/jcmFIPS.jar', 'read' );

  dbms_java.dropjava('-v -s -jarsasdbobjects jlib/cryptojce.jar jlib/cryptojcommon.jar jlib/jcmFIPS.jar');

  dbms_java.dropjava('-v -s -jarsasdbobjects jlib/osdt_cert.jar jlib/osdt_core.jar jlib/oraclepki.jar');
end;
/


@?/rdbms/admin/sqlsessend.sql
 
