MINI MINI MANI MO
Rem
Rem $Header: javavm/ojvmwcu/install/install_ojvmwcu.sql /main/3 2017/04/03 20:11:34 kdere Exp $
Rem
Rem install_jersey.sql
Rem
Rem Copyright (c) 2015, 2017, Oracle and/or its affiliates.
Rem All rights reserved.
Rem
Rem NAME
Rem install_jersey.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/ojvmwcu/install_jersey.sql
Rem SQL_SHIPPED_FILE:
Rem SQL_PHASE:
Rem SQL_STARTUP_MODE: NORMAL
Rem SQL_IGNORABLE_ERRORS: NONE
Rem SQL_CALLING_FILE:
Rem END SQL_FILE_METADATA
Rem
Rem MODIFIED (MM/DD/YY)
Rem kdere 03/28/17 - Removing creation of install schema
Rem kdere 03/08/16 - Removing call to export_ojvmwcu.sql
Rem kdere 08/13/15 - Created
Rem
set serveroutput on;
set verify off;
@configure_ojvmwcu.sql
@load_ojvmwcu.sql
create or replace package ojvmwcu_init_utils authid current_user as
procedure init_check;
end ojvmwcu_init_utils;
/
create or replace package body ojvmwcu_init_utils as
procedure init_check as
user_exists integer := 0;
begin
select count(1) into user_exists from dba_users where username = 'OJVMWCU_INSTALL';
if user_exists != 0 then
dbms_output.put_line('WCU: Configuring ojvmwcu');
ojvmwcu_sys.configure();
dbms_output.put_line('WCU: Done Configuring ojvmwcu');
dbms_output.put_line('WCU: Loading Jersey jars');
ojvmwcu_install.load_ojvmwcu();
dbms_output.put_line('WCU: Done Loading Jersey jars');
else
dbms_output.put_line('WCU: Unable to find schema OJVMWCU_INSTALL. Before configuring ojvmwcu, Please make sure you have created OJVMWCU_INSTALL shcema which will be used to install ojvmwcu. Make note that, this new schema can not be used for any other purpose.');
end if;
end;
end ojvmwcu_init_utils;
/
call ojvmwcu_init_utils.init_check();
exit;
OHA YOOOO