Showing posts with label Apex. Show all posts
Showing posts with label Apex. Show all posts

Thursday, February 24, 2022

APEX 19.2 installation

 CREATE TABLESPACE APEXTS DATAFILE '/u01/app/oracle/app/oracle/oradata/cdb1/misapex/apexts01.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 1024M;


@apexins APEXTS APEXTS TEMP /i192/


@apxconf.sql

 

@apex_epg_config.sql /u01/soft/apex19c     -- Embedded PL/SQL gateway and Load Image


@apex_rest_config.sql 


ABCD1234


alter user anonymous account unlock;

alter user xdb account unlock;

alter user APEX_190200 identified by "XXXXX" account unlock;

alter user FLOWS_FILES account unlock;

alter user APEX_PUBLIC_USER identified by xxxxx;


alter user xdb identified by "xxxxx" account unlock;



alter user anonymous identified by "xxxx" account unlock;


alter user anonymous account unlock;



select dbms_xdb.gethttpport from dual;




apex 21 installation

 CREATE TABLESPACE APEXTS DATAFILE '/u01/app/oracle/oradata/ntest/apexts/apexts01.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 1024M;


@apexins.sql sysaux sysaux temp /i212/


alter session set "_oracle_script"=true;

drop user APEX_210200 cascade;



SQL> select dbms_xdb.gethttpport from dual;


GETHTTPPORT

-----------

          0



SQL> EXEC dbms_xdb.sethttpport(8089);


PL/SQL procedure successfully completed.



@apex_rest_config.sql


ABCD1234



[oracle@BAMISDB ORDS]$ which java

/usr/bin/java





/u01/ORDS/conf_ords



Connecting to database user: SYS AS SYSDBA url: jdbc:oracle:thin:@//10.xx.1.xxx:1521/misapex




[oracle@BAMISDB ORDS]$ which java

/usr/bin/java

[oracle@BAMISDB ORDS]$

[oracle@BAMISDB ORDS]$ /usr/bin/java -jar mis.war install

This Oracle REST Data Services instance has not yet been configured.

Please complete the following prompts



Enter the location to store configuration data: /u01/ORDS/conf_ords

Enter the name of the database server [localhost]:10.88.1.112

Enter the database listen port [1521]:1521

Enter 1 to specify the database service name, or 2 to specify the database SID [1]:

Enter the database service name:misapex

Enter the database password for ORDS_PUBLIC_USER:

Confirm password:

Requires to login with administrator privileges to verify Oracle REST Data Services schema.


Enter the administrator username:sys

Enter the database password for SYS AS SYSDBA:

Confirm password:

Connecting to database user: SYS AS SYSDBA url: jdbc:oracle:thin:@//10.xx.1.xx:1521/misapex


Retrieving information.

Enter 1 if you want to use PL/SQL Gateway or 2 to skip this step.

If using Oracle Application Express or migrating from mod_plsql then you must enter 1 [1]:1

Enter the database password for APEX_PUBLIC_USER:

Confirm password:

Enter 1 to specify passwords for Application Express RESTful Services database users (APEX_LISTENER, APEX_REST_PUBLIC_USER) or 2 to skip this step [1]:1

Enter the database password for APEX_LISTENER:

Confirm password:

Enter the database password for APEX_REST_PUBLIC_USER:

Confirm password:

Enter a number to select a feature to enable:

   [1] SQL Developer Web  (Enables all features)

   [2] REST Enabled SQL

   [3] Database API

   [4] REST Enabled SQL and Database API

   [5] None

Choose [1]:

2021-11-22T09:03:54.347Z INFO        reloaded pools: []

Installing Oracle REST Data Services version 21.3.1.r3012050

... Log file written to /home/oracle/ords_install_core_2021-11-22_150354_00509.log

... Verified database prerequisites

... Created Oracle REST Data Services proxy user

... Created Oracle REST Data Services schema

... Granted privileges to Oracle REST Data Services

... Created Oracle REST Data Services database objects

... Log file written to /home/oracle/ords_install_datamodel_2021-11-22_150414_00405.log

... Log file written to /home/oracle/ords_install_apex_2021-11-22_150417_00351.log

Completed installation for Oracle REST Data Services version 21.3.1.r3012050. Elapsed time: 00:00:26.6


Enter 1 if you wish to start in standalone mode or 2 to exit [1]:2

[oracle@BAMISDB ORDS]$




[oracle@BAMISDB apex]$ sqlplus / as sysdba


SQL*Plus: Release 12.1.0.2.0 Production on Mon Nov 22 17:23:03 2021


Copyright (c) 1982, 2014, Oracle.  All rights reserved.



Connected to:

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options


SQL> alter session set container=misapex;


Session altered.


SQL> @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] info@bankasia-bd.com

Enter ADMIN's password []

--------------------------------------------------------------------------------

Password does not conform to this site's password complexity rules.

* Password must contain at least one punctuation character

(!"`'#$%&()[]{},.*+-/|\:;?_~).

* Password must contain at least one lower-case alphabetic character.

--------------------------------------------------------------------------------

declare

*

ERROR at line 1:

ORA-20001: Password validation failed.

ORA-06512: at line 30




SQL> @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] info@bankasia-bd.com

Enter ADMIN's password []

Created instance administrator ADMIN.


SQL>

SQL>

SQL>

Tuesday, June 5, 2018

Apex Installation

Go to the apex directory:
C:\apex>
C:\apex>sqlplus sys/sys123 as sysdba

SQL>

@apexins.sql SYSAUX SYSAUX TEMP /i/

@apxrtins.sql SYSAUX SYSAUX TEMP /i/

@apxchpwd.sql

alter  user apex_public_user account unlock;

alter  user apex_public_user identified by Apex_123;

exec dbms_xdb.sethttpport(0);

@apex_rest_config.sql

----==below script run==
DECLARE
 ACL_PATH VARCHAR2(4000);
BEGIN
 -- Look for the ACL currently assigned to '*' and give APEX_040200
 -- the "connect" privilege if APEX_040200 does not have the privilege yet.
 SELECT ACL INTO ACL_PATH FROM DBA_NETWORK_ACLS
 WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL;
 IF DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(ACL_PATH, 'APEX_040200',
 'connect') IS NULL THEN
 DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(ACL_PATH,
 'APEX_040200', TRUE, 'connect');
 END IF;
EXCEPTION
 -- When no ACL has been assigned to '*'.
 WHEN NO_DATA_FOUND THEN
 DBMS_NETWORK_ACL_ADMIN.CREATE_ACL('power_users.xml',
 'ACL that lets power users to connect to everywhere',
 'APEX_040200', TRUE, 'connect');
 DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL('power_users.xml','*');
END;
/

@apex_epg_config.sql C:\