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

Apex Ins

apex installation

Uploaded by

yasit10
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views

Apex Ins

apex installation

Uploaded by

yasit10
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

ords serve --secure --port 8443

setx JAVA_HOME "C:\Program Files\Java\jdk-21"

CREATE PLUGGABLE DATABASE apex_approot1 AS APPLICATION CONTAINER admin


user admin IDENTIFIED
BY okadmin FILE_NAME_CONVERT=('pdbseed','apex_approot1');

ALTER PLUGGABLE DATABASE apex_approot1 open;

ALTER PLUGGABLE DATABASE PDB open;


ALTER PLUGGABLE DATABASE ORCLPDB open;

ALTER SESSION SET CONTAINER = apex_approot1;

ALTER PLUGGABLE DATABASE ORCLPDB open;

ALTER SESSION SET CONTAINER = ORCLPDB;

select name from v$datafile;

create tablespace apex datafile 'C:\WORK\ORACLE\ORADATA\APORCL\ORCLPDB\


APEXDATA.DBF' size 200M autoextend on next 10m maxsize unlimited;

C:\work\Apex\Software\apex23\apex\@apexins.sql SYSAUX SYSAUX TEMP /i/

show con_name
show pdbs
show con_id

@apexins.sql APEX APEX TEMP /i/

The structure of the link to the Oracle APEX administration services is as follows:
http://host:port/ords/apex_admin

The structure of the link to the Oracle APEX development interface is as follows:
http://host:port/ords

@apexins.sql SYSAUX SYSAUX TEMP /i/

@apxchpwd.sql

@apex_rest_config.sql

after pluggable database all open;

Application for Oracle ERP Technical Consultant Position

(make sure you read in the documentation the right arguments to the validate
function, the following example is specific to my install and does not mean the
database is called ‘apex’).

cd /var/lib/tomcat/webapps
java -jar ords.war validate –database apex

Requires SYS AS SYSDBA to verify Oracle REST Data Services schema.


Enter the database password for SYS AS SYSDBA:
Confirm password:

OKapex_1973

@apex_rest_config.sql

alter user ORDS_PUBLIC_USER account unlock

JAVA_TOOL_OPTIONS
-Dconfig.url=C:\work\Apex\ords

====

java -jar ords.war --config C:\work\Apex\ords\config install

java -jar ords.war --config C:\work\Apex\ords\config uninstall

@apxremov.sql

=================================
Thank you for installing Oracle APEX 23.2.0

Oracle APEX is installed in the APEX_230200 schema.

The structure of the link to the Oracle APEX administration services is as follows:
http://host:port/ords/apex_admin

The structure of the link to the Oracle APEX development interface is as follows:
http://host:port/ords

timing for: Phase 3 (Switch)


Elapsed: 0.22

timing for: Complete Installation


Elapsed: 6.42

========================================
alter user ANONYMOUS account unlock;
alter user APEX_PUBLIC_USER account unlock;
alter user ANONYMOUS account unlock;
alter user APEX_230100 account unlock;
alter user APEX_LISTENER account unlock;
alter user APEX_REST_PUBLIC_USER account unlock;

alter user ORDS_PUBLIC_USER identified by okadmin

select username from all_users where username like '%APEX%'

APEX_230100
APEX_PUBLIC_USER
APEX_LISTENER
APEX_REST_PUBLIC_USER
========================
ORDS :
select DBMS_XDB.GETHTTPPORT from dual

EXEC DBMS_XDB.SETHTTPPORT(0);

@apxchpwd.sql

OKapex_1973
@apex_rest_config.sql
ords --config c:\work\ords\config install

ords --config c:\work\ords\config uninstall

to fix app unavailable


ords --config c:\work\ords\config config --db-pool default set plsql.gateway.mode
proxied

to run ords jre1.8.0_202

ords --config C:\work\Apex\ords\config serve

============bat file
@ECHO OFF
cd C:\work\Apex\ords\
ords --config C:\work\Apex\ords\config serve
PAUSE
================

ORDS was installed with following command line:


$/usr/local/bin/ords --config $ORDS_CONFIG install
ORDS: Release 23.3 Production on Fri Oct 27 09:38:20 2023
Copyright (c) 2010, 2023, Oracle.
Configuration:
/etc/ords/config/The configuration folder /etc/ords/config does not contain any
configuration files.

Oracle REST Data Services - Interactive Install

Enter a number to select the type of installation


[1] Install or upgrade ORDS in the database only
[2] Create or update a database pool and install/upgrade ORDS in the database
[3] Create or update a database pool only
Choose [2]: 2
Enter a number to select the database connection type to use
[1] Basic (host name, port, service name)
[2] TNS (TNS alias, TNS directory)
[3] Custom database URL
Choose [1]: 2
Enter the TNS location: /u01/app/oracle/product/network/admin
Enter a number to select the TNS Network alias to use
[1] PDB1 …SERVICE_NAME=pdb1)))
[2] PDB2 …SERVICE_NAME=pdb2)))
Choose [1]: 1
Provide database user name with administrator privileges.
Enter the administrator username: ORDS_INSTALL_ADMIN
Enter the database password for ORDS_INSTALL_ADMIN:
Connecting to database user: ORDS_INSTALL_ADMIN url:
jdbc:oracle:thin:@PDB1?TNS_ADMIN=/u01/app/oracle/product/network/admin
Retrieving information.
Connecting to database user: ORDS_PUBLIC_USER url:
jdbc:oracle:thin:@PDB1?TNS_ADMIN=/u01/app/oracle/product/network/admin
Enter a number to select additional feature(s) to enable:
[1] Database Actions (Enables all features)
[2] REST Enabled SQL and Database API
[3] REST Enabled SQL
[4] Database API
[5] None
Choose [1]: 1
Enter a number to configure and start ORDS in standalone mode
[1] Configure and start ORDS in standalone mode
[2] Skip
Choose [1]: 1
Enter a number to select the protocol
[1] HTTP
[2] HTTPS
Choose [1]: 1
Enter the HTTP port [8080]: 8080
Enter the APEX static resources location: /u01/app/oracle/product/apex/images

As per standard installation ORDS was installed after APEX and all Database Actions
have been deployed.
Issue

Unfortunately ORDS is providing a 404 error when trying to access APEX from the
URL:
http://mywebappserver:8080/ords/apex

Also when accessing the ORDS landing page with following URL, APEX is unavailable:
http://mywebappserver:8080/ords/_landing

You might also like