啟用Oracle 11g中的Apex

來源:互聯網
上載者:User

 

ORACLE 的資訊生命週期管理工具ILMA的使用前提是Apex.
Apex在oracle 11g Release 2版本中是預設安裝的。但安裝後沒有啟用。可以使用下面方法啟用它。
SQL> show user
USER is "SYS"
SQL> spool apex
查看安裝的Apex詳情。
SQL> select * from dba_registry where comp_id = 'APEX';

APEX
Oracle Application Express
3.2.1.00.10                    VALID       02-APR-2010 14:20:27
SERVER                         SYS
APEX_030200
VALIDATE_APEX

FLOWS_FILES

SQL>
SQL> @%oracle_home%\RDBMS\ADMIN\epgstat.sql
+--------------------------------------+
| XDB protocol ports:                  |
|  XDB is listening for the protocol   |
|  when the protocol port is non-zero. |
+--------------------------------------+

        0        0

1 row selected.

+---------------------------+
| DAD virtual-path mappings |
+---------------------------+

/apex/*                          APEX

1 row selected.

+----------------+
| DAD attributes |
+----------------+

APEX         database-username        ANONYMOUS
             default-page             apex
             document-table-name      wwv_flow_file_objects$
             request-validation-funct wwv_flow_epg_include_modules.authorize
             ion

             document-procedure       wwv_flow_file_mgr.process_download
             nls-language             american_america.al32utf8
             document-path            docs

7 rows selected.

+---------------------------------------------------+
| DAD authorization:                                |
|  To use static authentication of a user in a DAD, |
|  the DAD must be authorized for the user.         |
+---------------------------------------------------+

no rows selected

+----------------------------+
| DAD authentication schemes |
+----------------------------+

APEX                 ANONYMOUS                        Anonymous

1 row selected.

+--------------------------------------------------------+
| ANONYMOUS user status:                                 |
|  To use static or anonymous authentication in any DAD, |
|  the ANONYMOUS account must be unlocked.               |
+--------------------------------------------------------+

ANONYMOUS       EXPIRED & LOCKED

1 row selected.

+-------------------------------------------------------------------+
| ANONYMOUS access to XDB repository:                               |
|  To allow public access to XDB repository without authentication, |
|  ANONYMOUS access to the repository must be allowed.              |
+-------------------------------------------------------------------+

false

1 row selected.

SQL>
查看HTTP所使用的port,其中0表示沒有開啟。
SQL> select dbms_xdb.getHTTPPort from dual;

          0

1 row selected.

SQL>
設定port並查看。
SQL> begin
  2    dbms_xdb.setHTTPPort(8080);
  3    commit;
  4  end;
  5  /

PL/SQL procedure successfully completed.

SQL>
SQL> select dbms_xdb.getHTTPPort from dual;

       8080

1 row selected.
啟用匿名帳號。
SQL> ALTER USER ANONYMOUS ACCOUNT UNLOCK;
修改密碼:
SQL> @%Oracle_home%\apex\apxchpwd.sql
Enter a value below for the password for the Application Express ADMIN user.

Enter a password for the ADMIN user              []

Session altered.

...changing password for ADMIN

PL/SQL procedure successfully completed.

Commit complete.

User altered.

SQL>
SQL>
修改存取權限:
SQL> begin
  2    DBMS_XDB.SETLISTENERLOCALACCESS (FALSE);
  3  end;
  4  /

PL/SQL procedure successfully completed.
通過下面連結訪問Apex.

http://localhost:8080/apex/apex_admin

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.