Kamis, 30 Agustus 2018

Install/Upgrade Oracle APEX 18.1 on Oracle Database Cloud Service (DBaaS)

Assumption
  • You can connect to DBaaS through Putty and FileZilla
  • Oracle Database 12c Release 2 install on plugable db: PDB1
  • You have the required version of the cloud tooling
Steps
  1. Log in to the compute node as the oracle user.
  2. Log in to SQL Plus as the SYS user.
  3. Upload Oracle Application Express 18.1 to the compute node: /home/oracle/tmp
  4. Go to /home/oracle/tmp directory unzip to /u01/app/oracle/product/apex/18.1.0.00.45 directory:
  5. unzip apex_18.1_en.zip
    mv /home/oracle/tmp/apex/ /u01/app/oracle/product/apex/18.1.0.00.45/
    
  6. Final directory preview
  7. Go to /u01/app/oracle/product/apex/18.1.0.00.45/ directory
  8. Make sure you can connect using ORDS_PUBLIC_USER, by default will have same password like sys,system on DBaaS creation.
  9. sqlplus /nolog 
    SQL> CONNECT ORDS_PUBLIC_USER 
    Password: 
    Connected. 
    SQL>
    
  10. Intall APEX 18.1
    • Log in to SQL Plus as the SYS user and install
    • ALTER SESSION SET CONTAINER=PDB1; 
      @dbcsins.sql SYSAUX SYSAUX TEMP /i/18.1.0.00.45/ <ORDS_PUBLIC_USER_PASSWORD> 
      
    • Check the installation went fine by issuing the following command (Using the same sqlplus session or at lease issuing the statement to the same container you installed APEX into)

    • SELECT VERSION, STATUS, SCHEMA FROM DBA_REGISTRY WHERE COMP_ID = 'APEX';
      
  11. Create a link to the APEX images in ORDS' docroot by executing the below command as the oracle user

  12. ln -sfn /u01/app/oracle/product/apex/18.1.0.00.45/images/ /u01/app/oracle/product/ords/conf/ords/standalone/doc_root/i/18.1.0.00.45 
    

  13. Configure Oracle Application Express by executing the Oracle REST Data Services (ORDS) assistant:

  14. Log in to the compute node as the opc user
  15. Start a root-user shell:
  16. $ sudo -s 
    
  17. Change to the ords directory:
  18. # cd /var/opt/oracle/ocde/assistants/ords
    
  19. Execute the ORDS assistant:
  20. # ./ords -out="/var/opt/oracle/ocde/res/ords.out" -ords_action="configure_apex"
    
  21. Restart ORDS:
  22. # /etc/init.d/ords restart
    
  23. Exit the root-user shell and log out of the compute node.
Reference