Edit D:\app\Administrator\product\11.2.0\dbhome_1\apex\apxrtins.sql
Rem Copyright (c) Oracle Corporation 1999 - 2007. All Rights Reserved. Rem Rem NAME Rem apxrtins.sql Rem Rem DESCRIPTION Rem Rem NOTES Rem Assumes the SYS user is connected. Rem Rem REQUIRENTS Rem - Oracle Database 9.2.0.3 or later Rem Rem Arguments: Rem Position 1: Name of tablespace for Application Express application user Rem Position 2: Name of tablespace for Application Express files user Rem Position 3: Name of temporary tablespace Rem Position 4: Virtual directory for APEX images Rem Rem Example: Rem Rem 1)Local Rem sqlplus "sys/syspass as sysdba" @apxrtins SYSAUX SYSAUX TEMP /i/ Rem Rem Rem MODIFIED (MM/DD/YYYY) Rem jstraub 07/11/2007 - Created Rem jkallman 08/02/2007 - Change FLOWS_030000 references to FLOWS_030100 Rem jstraub 08/16/2007 - Removed password as positional parameter and made random Rem jstraub 09/17/2007 - Updated comments to reflect correct number of arguments and updated example Rem jstraub 11/26/2007 - Added runtime_grant_revoke.sql Rem jstraub 12/19/2007 - Added logic to exit if not connected as SYSDBA Rem jstraub 02/08/2008 - Added alter session set nls_length_semantics = byte Rem jkallman 09/09/2008 - Change FLOWS_030100 references to APEX_030200 Rem jstraub 03/24/2009 - Added spool off, removed from coreins.sql for catupgrd alter session set nls_length_semantics = byte; prompt . ____ ____ ____ ____ prompt . / \ | \ /\ / | / prompt .| || / / \ | | | prompt .| ||--- ---- | | |--- prompt .| || \ / \ | | | prompt . \____/ | \/ \ \____ |____ \____ prompt . prompt . Application Express Runtime Installation. prompt ........................................... set define '^' set concat on set concat . set verify off set termout off spool off set termout on Rem Rem Check that user has SYSDBA privilege before proceeding Rem set termout off define foo2 = 'NOSYSDBA' column foo new_val foo2 select privilege foo from session_privs where privilege = 'SYSDBA'; set termout on whenever sqlerror exit set serveroutput on begin if '^foo2' = 'NOSYSDBA' then dbms_output.put_line('Application Express installation requires a connection with the SYSDBA privilege.'); execute immediate 'bogus statement to force exit'; end if; end; / whenever sqlerror continue column foo3 new_val LOG1 select 'installrt'||to_char(sysdate,'YYYY-MM-DD_HH24-MI-SS')||'.log' foo3 from dual; define LOG2 = ^LOG1.english.log define LOG3 = ^LOG1.english.bad spool ^LOG1 define UPGRADE = '1' define INSTALL_TYPE = 'RUNTIME' define APPUN = 'APEX_030200' column foo2 new_val UPGRADE select '2' foo2 from dba_users where (username in ('FLOWS_030100','FLOWS_030000','FLOWS_020200','FLOWS_020100','FLOWS_020000','FLOWS_010600','FLOWS_010500')) and rownum = 1; define DATTS = '^1' define FF_TBLS = '^2' define TEMPTBL = '^3' define IMGPR = '^4' define DB_VERSION = '10' define PREFIX = '@' column :rnd_pwd new_value ADM_PWD NOPRINT variable rnd_pwd varchar2(30) begin :rnd_pwd := dbms_random.string('X',30); end; / select :rnd_pwd from dual; @@coreins.sql ^LOG1 ^UPGRADE ^APPUN ^TEMPTBL ^IMGPR ^DATTS ^FF_TBLS ^ADM_PWD ^PREFIX @^PREFIX.core/runtime_grant_revoke.sql spool off exit
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de