MINI MINI MANI MO
Rem BEGIN SQL_FILE_METADATA
Rem SQL_SOURCE_FILE: javavm/install/jvma121.sql
Rem SQL_SHIPPED_FILE: javavm/install/jvma121.sql
Rem SQL_PHASE: UPGRADE
Rem SQL_STARTUP_MODE: UPGRADE
Rem SQL_IGNORABLE_ERRORS: NONE
Rem END SQL_FILE_METADATA
-- actions to upgrade 12.1 components to 12.2
-- Perhaps the following two alters are not needed if upgrade is from pre-12.1
-- (since jvm_ojds would have run in that case which would have created the
-- tables with correct column size (128)).
alter table OJVMSYS.ojds$inode$ modify owner varchar2(128);
alter table OJVMSYS.ojds$permissions$ modify schema varchar2(128);
@@jvm_exp
begin
initjvmaux.drp('drop role dbjavascript');
initjvmaux.exec('create role dbjavascript');
initjvmaux.exec('grant dbjavascript to sys');
initjvmaux.drp('drop package sqljutl2');
end;
/
-- grant permissions to use JavaScript (Nashorn)
call dbms_java.grant_permission( 'DBJAVASCRIPT', 'SYS:java.lang.RuntimePermission', 'oracle.DbmsJavaScriptUser', '' );
-- Update OJVMSYS authentication
-- this should take care of the expiry on the account --
-- if this is run in the pdb before the root then it will not make the
-- change.
declare
acct_string varchar2(32);
begin
select account_status into acct_string from dba_users where username='OJVMSYS';
if instr(acct_string,'EXPIRED',1,1) != 0 then
initjvmaux.exec('alter user OJVMSYS no authentication account lock');
initjvmaux.exec('revoke inherit privileges on user OJVMSYS from public');
end if;
exception
when others then
if sqlcode not in (-65050) then raise; end if;
end;
/
-- actions to upgrade 12.2 components to next higher release or patch set
@@jvma122
OHA YOOOO