0% found this document useful (0 votes)
58 views

Apexins

The document describes the steps taken to install Apex and ORDS on an Oracle database. It includes creating tablespaces for Apex data and temporary usage. It then installs the Apex software, configures users and passwords, installs the ORDS middleware, and configures the Java environment for ORDS.

Uploaded by

nagendraoraapps
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views

Apexins

The document describes the steps taken to install Apex and ORDS on an Oracle database. It includes creating tablespaces for Apex data and temporary usage. It then installs the Apex software, configures users and passwords, installs the ORDS middleware, and configures the Java environment for ORDS.

Uploaded by

nagendraoraapps
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

create tablespace apex_ts_data datafile '/d01/oracle/db/data/apex_ts_data.

dbf' size
1g autoextend on next 100m maxsize unlimited;
alter tablespace apex_ts_data add datafile '/d01/oracle/db/data/apex_ts_data01.dbf'
size 1g autoextend on next 100m maxsize unlimited;
alter tablespace apex_ts_data add datafile '/d01/oracle/db/data/apex_ts_data02.dbf'
size 1g autoextend on next 100m maxsize unlimited;
alter tablespace apex_ts_data add datafile '/d01/oracle/db/data/apex_ts_data03.dbf'
size 1g autoextend on next 100m maxsize unlimited;

Step4 Create a temporary tablespace for apex installation

create temporary tablespace apex_temp tempfile


'/d01/oracle/db/data/apex_temp.dbf' size 1g autoextend on next 100m maxsize
unlimited;
alter tablespace apex_temp add tempfile '/d01/oracle/db/data/apex_temp01.dbf'
size 1g autoextend on next 100m maxsize unlimited;

alter tablespace apex_temp add tempfile '/d01/oracle/db/data/apex_temp02.dbf'


size 1g autoextend on next 100m maxsize unlimited;

Take the backup of database objects

create table dba_inv_apex_pre as select * from dba_objects;

cd /d01/oracle/db/dbhome_1
mv apex/ apex_orig_15AUG2021

cd /home/oradev/APEX/apex
@apexins.sql apex_ts_data apex_ts_data apex_temp /i/

@apxchpwd.sql
Oracle_123

SQL> select username from dba_users where username like 'APEX%';

USERNAME
------------------------------
APEX_200100
APEX_PUBLIC_USER
APEX_INSTANCE_ADMIN_USER
SQL>

SQL> alter user APEX_200100 account unlock;

User altered.

SQL> alter user FLOWS_FILES account unlock;

User altered.

SQL> alter user APEX_PUBLIC_USER account unlock;

User altered.
alter user APEX_200100 identified by Oracle_123;

ALTER USER APEX_PUBLIC_USER identified by Oracle_123;

@apex_rest_config.sql
Oracle_123

SQL> select username,account_status from dba_users where username like 'APEX%';

USERNAME ACCOUNT_STATUS
------------------------------ --------------------------------
APEX_LISTENER OPEN
APEX_REST_PUBLIC_USER OPEN
APEX_200100 EXPIRED
APEX_PUBLIC_USER EXPIRED
APEX_INSTANCE_ADMIN_USER EXPIRED & LOCKED

SQL> select DBMS_XDB.GETHTTPPORT from dual;

GETHTTPPORT
-----------
0

Apex and ORDS Installation:


**********************

Create user:

CREATE USER XXAPEX


IDENTIFIED BY xxapex
DEFAULT TABLESPACE APPS_TS_TX_DATA
TEMPORARY TABLESPACE TEMP
PROFILE DEFAULT
ACCOUNT UNLOCK
ENABLE EDITIONS;

create tablespace apex_ts_data datafile '/d01/oracle/TEST/data/apex_ts_data.dbf'


size 1g autoextend on next 100m maxsize unlimited;
alter tablespace apex_ts_data add datafile
'/d01/oracle/TEST/data/apex_ts_data01.dbf' size 1g autoextend on next 100m maxsize
unlimited;
alter tablespace apex_ts_data add datafile
'/d01/oracle/TEST/data/apex_ts_data02.dbf' size 1g autoextend on next 100m maxsize
unlimited;
alter tablespace apex_ts_data add datafile
'/d01/oracle/TEST/data/apex_ts_data03.dbf' size 1g autoextend on next 100m maxsize
unlimited;

create temporary tablespace apex_temp tempfile


'/d01/oracle/TEST/data/apex_temp.dbf' size 1g autoextend on next 100m maxsize
unlimited;
alter tablespace apex_temp add tempfile '/d01/oracle/TEST/data/apex_temp1.dbf' size
1g autoextend on next 100m maxsize unlimited;
alter tablespace apex_temp add tempfile '/d01/oracle/TEST/data/apex_temp2.dbf' size
1g autoextend on next 100m maxsize unlimited;

create table dba_inv_apex_pre as select * from dba_objects;

cd /d01/db/dbhome_1
mv apex/ apex_orig

SQL> select username from dba_users where username like '%APEX%';

SQL> select username from dba_users where username like '%APEX%';

USERNAME
------------------------------
XX_APEX

select owner, object_name, object_type from dba_objects where object_name like


'WWV_%' or object_name like 'APEX_%' ;
select 'drop '||object_type||' '||owner||'.'||object_name||';' cmd from dba_objects
where object_type='SYNONYM' and (object_name like 'WWV_%' or object_name like
'APEX_%');
select 'drop public '||object_type||' '||object_name||';' cmd from dba_objects
where object_type='SYNONYM' and (object_name like 'WWV_%' or object_name like
'APEX_%');
select 'drop '||object_type||' '||owner||'.'||object_name||';' cmd from dba_objects
where object_type='PACKAGE' and (object_name like 'WWV_%' or object_name like
'APEX_%');
select 'drop '||object_type||' body '||owner||'.'||object_name||';' cmd from
dba_objects where object_type='PACKAGE BODY' and (object_name like 'WWV_%' or
object_name like 'APEX_%');
select 'drop '||object_type||' '||owner||'.'||object_name||';' cmd from dba_objects
where (object_name like 'WWV_%' or object_name like 'APEX_%');

cd /d01/db/dbhome_1

unzip /home/oratest/apexins/apex_20.1.zip

cd apex

sqlplus / as sysdba

@apexins.sql apex_ts_data apex_ts_data apex_temp /i/

Thank you for installing Oracle Application Express 20.1.0.00.13


Oracle Application Express is installed in the APEX_200100 schema.

The structure of the link to the Application Express administration


services is as follows:
http://host:port/pls/apex/apex_admin (Oracle HTTP Server with
mod_plsql)
http://host:port/apex/apex_admin (Oracle XML DB HTTP listener with
the embedded PL/SQL gateway)
http://host:port/apex/apex_admin (Oracle REST Data Services)

The structure of the link to the Application Express development


interface is as follows:
http://host:port/pls/apex (Oracle HTTP Server with mod_plsql)
http://host:port/apex (Oracle XML DB HTTP listener with the
embedded PL/SQL gateway)
http://host:port/apex (Oracle REST Data Services)

timing for: Phase 3 (Switch)


Elapsed: 00:01:57.82
timing for: Complete Installation
Elapsed: 00:09:29.44

PL/SQL procedure successfully completed.

1 row selected.

sqlplus "/as sysdba" @apxchpwd.sql

QL> @@apxchpwd.sql
...set_appun.sql
================================================================================
This script can be used to change the password of an Application Express
instance administrator. If the user does not yet exist, a user record will be
created.
================================================================================
Enter the administrator's username [ADMIN]
User "ADMIN" does not yet exist and will be created.
Enter ADMIN's email [ADMIN]
Enter ADMIN's password []
Created instance administrator ADMIN.

Oracle_123

SQL> select username from dba_users where username like 'APEX%';

USERNAME
------------------------------
APEX_PUBLIC_USER
APEX_200100
APEX_INSTANCE_ADMIN_USER

If EXPIRED - Change password for following users :


ANONYMOUS,XDB,APEX_PUBLIC_USER,FLOWS_FILES,APEX_040200.
IF LOCKED - Unlock:
ALTER USER ANONYMOUS ACCOUNT UNLOCK;
ALTER USER XDB ACCOUNT UNLOCK;
ALTER USER APEX_PUBLIC_USER ACCOUNT UNLOCK;
ALTER USER FLOWS_FILES ACCOUNT UNLOCK;
ALTER USER APEX_200100 ACCOUNT UNLOCK;

alter user APEX_PUBLIC_USER identified by Oracle_123;


alter user APEX_200100 identified by Oracle_123;
alter user APEX_INSTANCE_ADMIN_USER identified by Oracle_123;

select DBMS_XDB.GETHTTPPORT from dual;

unzip jdk file and move it

mv jdk1.8.0_231 jdk8u231

unzip /home/oratest/apexins/ords-19.2.0.199.1647.zip

/home/oradev/apexinstallation/jdk8u231/bin/java -jar ords.war configdir


/d01/oracle/db/dbhome_1/ords

/home/oratest/apexins/jdk8u231/bin/java -jar ords.war configdir


/d01/oracle/db/dbhome_1/ords

[oradev@oradev ords]$ /home/oratest/apexinstallation/jdk8u231/bin/java -jar


ords.war configdir /d01/oracle/TEST/oradb/product/11.2.0/dbhome_1/ords

/home/oratest/apexins/jdk8u231/bin/java -jar ords.war configdir


/d01/oracle/TEST/oradb/product/11.2.0/dbhome_1/ords

Sep 05, 2021 2:46:06 PM


INFO: Set config.dir to /d01/db/dbhome_1/ords in: /d01/db/dbhome_1/ords/ords.war

cd ../apex
cp -r images /d01/oracle/db/dbhome_1/ords/

cd /d01/db/dbhome_1/ords
/home/oradev/apexinstallation/jdk8u231/bin/java -jar ords.war install advanced

/home/oratest/apexins/jdk8u231/bin/java -jar ords.war install advanced

shut immediate
orapwd file=/d01/oracle/TEST/oradb/product/11.2.0/dbhome_1/dbs/orapwDBTEST
password=Oracle_123 entries=10
startup

Oracle_123

/home/oratest/apexins/jdk8u231/bin/java -jar ords.war install advanced


export JAVA_HOME=/d01/apexin/jdk1u131
LOGFILE=/home/oradev/Scripts/log/ords-`date +"%Y""%m""%d"`.log
cd /d01/oracle/db/dbhome_1/ords
export JAVA_OPTIONS="-Dorg.eclipse.jetty.server.Request.maxFormContentSize=3000000"
nohup $JAVA_HOME/bin/java ${JAVA_OPTIONS} -Xmx2048m -Xms1024m -jar
/d01/oracle/db/dbhome_1/ords/ords.war standalone >> $LOGFILE 2>&1 &
echo "View log file with : tail -f $LOGFILE"

export JAVA_HOME=/home/oratest/apexins/jdk8u231
LOGFILE=/home/oratest/scripts/log/ords-`date +"%Y""%m""%d"`.log
cd /d01/oracle/TEST/oradb/product/11.2.0/dbhome_1/ords
export JAVA_OPTIONS="-Dorg.eclipse.jetty.server.Request.maxFormContentSize=3000000"
nohup $JAVA_HOME/bin/java ${JAVA_OPTIONS} -Xmx2048m -Xms1024m -jar
/d01/oracle/TEST/oradb/product/11.2.0/dbhome_1/ords/ords.war standalone >> $LOGFILE
2>&1 &
echo "View log file with : tail -f $LOGFILE"

CREATE USER XXAPEX


IDENTIFIED BY xxapex
DEFAULT TABLESPACE APPS_TS_TX_DATA
TEMPORARY TABLESPACE TEMP
PROFILE DEFAULT
ACCOUNT UNLOCK
ENABLE EDITIONS;

select username from dba_users where username like 'XXA%';

You might also like