Steps to install Apex 4 on linux

本文介绍Oracle Application Express (Oracle APEX) 的安装步骤及配置要求。Oracle APEX 是一种快速Web应用程序开发工具,适用于Oracle数据库。文章详细说明了浏览器、HTTP服务器的需求,以及安装过程中的各项配置步骤。

Oracle Application Express (Oracle APEX) is a rapid web application development tool for the Oracle database. Using only a web browser and limited programming experience, you can develop and deploy professional applications that are both fast and secure. Oracle APEX is a fully supported, no cost option of the Oracle database.

一、安装需求

Browser Requirement:
To view or develop Oracle Application Express applications, Web browsers must
support JavaScript and the HTML 4.0 and CSS 1.0 standards. The following browsers meet this requirement:
1) Microsoft Internet Explorer 6.0 or later version
2) Firefox 1.0 or later

HTTP Server Requirements:
In order to run, Oracle Application Express must have access to one of the following:
1) Embedded PL/SQL gateway
2)Oracle HTTP Server and mod_plsql
Oracle XML DB HTTP Server with the embedded PL/SQL gateway installs with
Oracle Database 11g. It provides the database with a Web server and also the necessary infrastructure to create dynamic applications.

Oracle Application Express requires the shared_pool_size of the target database to be at least 100 MB.

Disk Space Requirement:
Oracle Application Express disk space requirements are as follows:
1)Free space for Oracle Application Express software files on the file system: 450 MB
2)Free space in Oracle Application Express tablespace: 100MB
3)Free space in SYSTEM tablespace: 85 MB
Free space in Oracle Application Express tablespace for each additional language
(other than English) installed: 30MB

二、安装步骤

1.      Download and Install the latest the APEX

installer:

http://www.oracle.com/technetwork/developer-tools/apex/overview/index.html

 

unzipapex_4.1.zip

Change your working directory to apex.

cdapex

 

$sqlplus /nolog

SQL>CONNECT SYS as SYSDBA

Enterpassword: SYS_password

 

@apexinsSYSAUX SYSAUX TEMP /i/

 

2.      Change the Password for the ADMIN Account

 

$sqlplus /nolog

SQL>CONNECT SYS as SYSDBA

Enterpassword: SYS_password

 

@apxchpwd

Enter a password:

Welcome1

3.       Running the apex_epg_config.sql Configuration Script

Run apex_epg_config.sql passing the file systempath to the base directory where the Oracle Application Express software wasunzipped

 

@apex_epg_config /home/software

 

ALTERUSER ANONYMOUS ACCOUNT UNLOCK;

 

4.    Verifyingthe Oracle XML DB HTTP ServerPort

Enter the following statement to verify the port number:

 

SELECTDBMS_XDB.GETHTTPPORT FROM DUAL;

EXECDBMS_XDB.SETHTTPPORT(8888);

5.      Granting ConnectPrivileges

DECLARE
  ACL_PATH  VARCHAR2(4000);
  ACL_ID    RAW(16);
BEGIN
  -- Look for the ACL currently assigned to '*' and give APEX_030200
  -- the "connect" privilege if APEX_030200 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;
 
  -- Before checking the privilege, ensure that the ACL is valid
  -- (for example, does not contain stale references to dropped users).
  -- If it does, the following exception will be raised:
  --
  -- ORA-20000ORA-29855ORA-44416ORA-06512ORA-44416ORA-06512ORA-44416ORA-20000ORA-29855ORA-44416ORA-06512ORA-44416ORA-06512ORA-44416: Invalid ACL: Unresolved principal 'APEX_030200'
  -- : at "XDB.DBMS_XDBZ", line ...
  --
  SELECT SYS_OP_R2O(extractValue(P.RES, '/Resource/XMLRef')) INTO ACL_ID
    FROM XDB.XDB$ACL A, PATH_VIEW P
   WHERE extractValue(P.RES, '/Resource/XMLRef') = REF(A) AND
         EQUALS_PATH(P.RES, ACL_PATH) = 1;
 
  DBMS_XDBZ.ValidateACL(ACL_ID);
   IF DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(ACL_PATH, 'APEX_030200', 
     'connect') IS NULL THEN 
      DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(ACL_PATH, 
     'APEX_030200', 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_030200', TRUE, 'connect');
  DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL('power_users.xml','*');
END;
/
COMMIT;

三、验证安装是否成功

安装完之后:

(1)shutdown Oracle DB: SQL>shutdown immediate 

(2)重新启动Oracle database listener:

    cd $ORACLE_HOME

    ./lsnrctl start

(3)启动Oracle DB SQL>startup

1.管理界面

http://localhost:8080/apex/apex_admin 

admin/Welcome_1

2.开发界面

http://localhost:8080/apex

参考:

[1]http://www.articlesbase.com/databases-articles/steps-to-install-apex-4-on-linux-3966758.html

[2]http://docs.oracle.com/cd/E11882_01/install.112/e12196/overview.htm


# Environment Setup We describe steps (in Linux command line) to setup the environment for SparseFusion. ## Conda Environment We install and setup a conda environment. ### (optional) Install Conda Required if conda not installed. ```bash cd ~ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh chmod +x Miniconda3-latest-Linux-x86_64.sh ./Miniconda3-latest-Linux-x86_64.sh export PATH="/home/username/miniconda/bin:$PATH" conda init source ~/.bashrc ``` ### Create New Environment ```bash conda create -n sparsefusion python=3.8 conda activate sparsefusion ``` ## Install Dependencies We install the necessary dependencies. ### GCC and Cuda Make sure to do this first! We also assume that nvidia drivers and `cuda=11.3.x` is installed. ```bash conda install -c conda-forge cxx-compiler=1.3.0 conda install -c conda-forge cudatoolkit-dev conda install -c conda-forge ninja ``` ### Python Libraries ```bash conda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit=11.3 -c pytorch conda install -c fvcore -c iopath -c conda-forge fvcore iopath conda install -c pytorch3d pytorch3d ``` ### Support Stable Diffusion ```bash pip install transformers==4.19.2 pytorch-lightning==1.4.2 torchmetrics==0.6.0 pip install -e git+https://github.com/CompVis/taming-transformers.git@master#egg=taming-transformers ``` ### (optional) Install CO3D Required if using full CO3D dataset. ```bash git clone https://github.com/facebookresearch/co3d cd co3d pip install -r requirements.txt pip install -e . ``` ### Install Other SparseFusion Requirements ```bash cd sparsefusion pip install -r requirements.txt ``` ## Building Extensions We require a few extensions from [torch-ngp](https://github.com/ashawkey/torch-ngp). We detail how to install them below. See more details on the [torch-ngp](https://github.com/ashawkey/torch-ngp) Github. ### Build gridencoder ```bash pip install ./external/gridencoder ``` ### Build raymarcher ```bash pip install ./raymarching ```
最新发布
06-03
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值