Oracle Application Express (APEX) Installation
A brief overview of the installation process for Application Express (APEX) for releases from 5.x onward.
oracle miscconfigurationintermediate
by OracleDba
13 views
A brief overview of the installation process for Application Express (APEX) for releases from 5.x onward.
12345
-- For Oracle Managed Files (OMF).
CREATE TABLESPACE apex DATAFILE SIZE 100M AUTOEXTEND ON NEXT 1M;
-- For non-OMF.
CREATE TABLESPACE apex DATAFILE '/path/to/datafiles/apex01.dbf' SIZE 100M AUTOEXTEND ON NEXT 1M;1234567891011121314151617181920212223242526272829
$ cd /home/oracle/apex
SQL> CONN sys@pdb1 AS SYSDBA
SQL> -- @apexins.sql tablespace_apex tablespace_files tablespace_temp images
SQL>
SQL> @apexins.sql APEX APEX TEMP /i/
SQL> CONN sys@pdb1 AS SYSDBA
SQL> @apxchpwd.sql
BEGIN
APEX_UTIL.set_security_group_id( 10 );
APEX_UTIL.create_user(
p_user_name => 'ADMIN',
p_email_address => '[email protected]',
p_web_password => 'PutPasswordHere',
p_developer_privs => 'ADMIN' );
APEX_UTIL.set_security_group_id( null );
COMMIT;
END;
/
SQL> CONN sys@pdb1 AS SYSDBA
SQL> @apex_rest_config.sql
SQL> CONN sys@pdb1 AS SYSDBA
SQL> @apex_rest_config.sql ApexPassword1 ApexPassword212345678910111213141516171819202122232425262728293031
SQL> CONN sys@pdb1 AS SYSDBA
SQL> @apex_epg_config.sql /home/oracle
SQL> CONN sys@cdb1 AS SYSDBA
DECLARE
l_passwd VARCHAR2(40);
BEGIN
l_passwd := DBMS_RANDOM.string('a',10) || DBMS_RANDOM.string('x',10) || '1#';
-- Remove CONTAINER=ALL for non-CDB environments.
EXECUTE IMMEDIATE 'ALTER USER anonymous IDENTIFIED BY ' || l_passwd || ' ACCOUNT UNLOCK CONTAINER=ALL';
END;
/
SQL> CONN sys@pdb1 AS SYSDBA
SQL> SELECT DBMS_XDB.gethttpport FROM DUAL;
GETHTTPPORT
-----------
0
1 row selected.
SQL>
SQL> CONN sys@pdb1 AS SYSDBA
SQL> EXEC DBMS_XDB.sethttpport(8080);
PL/SQL procedure successfully completed.
SQL>1234567891011121314151617181920212223242526
SQL> ALTER USER APEX_PUBLIC_USER IDENTIFIED BY myPassword ACCOUNT UNLOCK;
<Location /apex>
Order deny,allow
PlsqlDocumentPath docs
AllowOverride None
PlsqlDocumentProcedure wwv_flow_file_mgr.process_download
PlsqlDatabaseConnectString pdb1 TNSFormat
PlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8
PlsqlAuthenticationMode Basic
SetHandler pls_handler
PlsqlDocumentTablename wwv_flow_file_objects$
PlsqlDatabaseUsername APEX_PUBLIC_USER
PlsqlDefaultPage apex
PlsqlDatabasePassword myPassword
PlsqlRequestValidationFunction wwv_flow_epg_include_modules.authorize
PlsqlPathAlias r
PlsqlPathAliasProcedure wwv_flow.resolve_friendly_url
Allow from all
</Location>
$ $FR_INST/bin/opmnctl restartproc process-type=OHS
$ cp -R /tmp/apex/images $FR_INST/config/OHS/ohs1/htdocs/apex_images
Alias /i/ "/u01/app/oracle/middleware/FR_inst/config/OHS/ohs1/htdocs/apex_images/"Please to add comments
No comments yet. Be the first to comment!