apex installation on linux


SUBMITTED BY: santori22

DATE: May 4, 2016, 6:12 a.m.

FORMAT: Text only

SIZE: 3.3 kB

HITS: 731

  1. APEX installation on Linux - Step by Step
  2. Here the step by stepforAPEXinstallation on Linux.
  3. You can download the latestApexversion from: http://www.oracle.com/technetwork/developer-tools/apex/downloads/index.html
  4. 1. Copy the apex_4.2.2_en.zip to /home/oracle
  5. cp apex_4.2.2_en.zip /home/oracle
  6. 2. Extract apex_4.2.2_en.zip : cd /home/oracle; unzip apex_4.2.2_en.zip;cd /home/oracle/apex
  7. 3. Create a new tablespace for Apex objects:
  8. Sqlplus /nologs
  9. create TABLESPACE APEX
  10. DATAFILE '/full_path_for_data_directory/apex01.dbf' SIZE 1000M AUTOEXTEND ON NEXT 100M MAXSIZE 8000M;
  11. 4. Start APEX installation: sqlplus sys as sysdba
  12. @apexins.sql APEX APEX TEMP /i/
  13. 5. Change ADMIN account password:
  14. sqlplus sys as sysdba
  15. @apxchpwd.sql
  16. *** The password mst contait least one punctuation character: (!”#$%&()“*+,-/:;?_).
  17. 6. Run the Embedded @apex_epg_config.sql /home/oracle(full path)
  18. Update the APEX images with those from the new release:
  19. sqlplus sys as svadba
  20. @apxldimg.sql /home/oracle (full path)
  21. 8. Make sure that the following accounts are unlocked and not expired:
  22. 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_040200 ACCOUNT UNLOCK;
  23. 9. Enable network services (ACL) and XML DB HTTP server:
  24. sqlplus sys as sysdba
  25. exec dbms_xdb.sethttpport(8080);
  26. Verify the port:
  27. SELECT DBMS_XDB.GETHTTPPORT FROM DUAL;
  28. 10. Enable remote HTTP connections: sqlplus sys as sysdba
  29. exec dbms_xdb.setlistenerlocalaccess(l_access => false);
  30. 11. Grant connect privileges to any host for the APEX_040200 database user:
  31. sqlplus sys as sysdba
  32. 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','*');
  33. END; / COMMIT;
  34. run also the following command:
  35. Alter system set shared_servers=20;
  36. *add shared_servers=20 scope=boths;
  37. 12. Check that Apex was installed:
  38. SELECT comp_name, version, status FROM dba_registry WHERE comp_id='APEX'; COMP_NAME VERSION STATUS ------------------------------ ------------------------------ ----------- Oracle Application Express 4.2.2.00.11 VALID
  39. 13. Login first time.
  40. You will be asked to change ADMIN password:
  41. http://localhost:8080/apex/apex_admin
  42. 14. Workspace login page: http://localhost:8080/apex
  43. Workspace: INTERNAL
  44. Username: ADMIN

comments powered by Disqus