Oracle Apex 3.2.1 @11gR2(1)(轉)
11G 上的Apex和XE上的是一樣的都採用embedded pl/sql gateway的方式,(文件1.4.2)要更改裡面的images內容或上傳新的圖片就比較費勁了,因為不能像Apache 的mod_plsql那樣從檔案系統的目錄裡可以看到相應的路徑去更改。這是就需要進行一下設定使其能夠進行FTP的訪問,
SQL*Plus: Release 11.2.0.1.0 Production on Sun Sep 20 09:39:14 2009
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter user-name: / as sysdba
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining
and Real Application Testing options
SQL> select banner from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL> exec dbms_xdb.setftpport(2100);
PL/SQL procedure successfully completed.
SQL> alter system register;
System altered.
SQL> host
oracle@oracle11gr2:~> ftp localhost 2100
Connected to localhost.
220- oracle11gr2
Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution.
220 oracle11gr2 FTP Server (Oracle XML DB/Oracle Database) ready.
Name (localhost:oracle): system
331 pass required for SYSTEM
Password:
230 SYSTEM logged in
Remote system type is Unix.
ftp> ls
227 Entering Passive Mode (127,0,0,2,144,155)
wrong server: return code must be 229
227 Entering Passive Mode (127,0,0,2,60,148)
150 ASCII Data Connection
drw-r--r-- 2 SYS oracle 0 AUG 13 23:17 OLAP_XDS
drw-r--r-- 2 SYS oracle 0 SEP 04 16:54 home
drw-r--r-- 2 SYS oracle 0 AUG 13 23:34 images
drw-r--r-- 2 SYS oracle 0 AUG 13 23:17 olap_data_security
drw-r--r-- 2 SYS oracle 0 AUG 13 23:10 public
drw-r--r-- 2 SYS oracle 0 SEP 04 16:54 sys
-rw-r--r-- 1 SYS oracle 0 SEP 20 13:40 xdbconfig.xml
drw-r--r-- 2 SYS oracle 0 AUG 13 23:17 xds
226 ASCII Transfer Complete
ftp> cd images
250 CWD Command successful
ftp> ls
227 Entering Passive Mode (127,0,0,2,41,87)
150 ASCII Data Connection
-rw-r--r-- 1 SYS oracle 130 AUG 13 23:34 16admin.gif
-rw-r--r-- 1 SYS oracle 43 AUG 13 23:34 1pixelbeige.gif
-rw-r--r-- 1 SYS oracle 799 AUG 13 23:34 1px_gray.gif
-rw-r--r-- 1 SYS oracle 43 AUG 13 23:34 1px_trans.gif
...........省略200多行!
-rw-r--r-- 1 SYS oracle 42 AUG 13 23:34 yellow.gif
-rw-r--r-- 1 SYS oracle 90 AUG 13 23:34 yellow_flag.gif
-rw-r--r-- 1 SYS oracle 1599 AUG 13 23:34 yes.gif
226 ASCII Transfer Complete
ftp> bye
221 QUIT Goodbye.
oracle@oracle11gr2:~> exit
exit
這樣應該會比較直觀的看到目錄裡的內容,進行上傳和下載檔案了。
另,為了安全。使用完後再把FTP 的port設定取消就行了。
SQL> exec dbms_xdb.setftpport(0);
PL/SQL procedure successfully completed.
SQL> alter system register;
System altered.
--EOF [/quote]
SQL*Plus: Release 11.2.0.1.0 Production on Sun Sep 20 09:39:14 2009
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter user-name: / as sysdba
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining
and Real Application Testing options
SQL> select banner from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL> exec dbms_xdb.setftpport(2100);
PL/SQL procedure successfully completed.
SQL> alter system register;
System altered.
SQL> host
oracle@oracle11gr2:~> ftp localhost 2100
Connected to localhost.
220- oracle11gr2
Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution.
220 oracle11gr2 FTP Server (Oracle XML DB/Oracle Database) ready.
Name (localhost:oracle): system
331 pass required for SYSTEM
Password:
230 SYSTEM logged in
Remote system type is Unix.
ftp> ls
227 Entering Passive Mode (127,0,0,2,144,155)
wrong server: return code must be 229
227 Entering Passive Mode (127,0,0,2,60,148)
150 ASCII Data Connection
drw-r--r-- 2 SYS oracle 0 AUG 13 23:17 OLAP_XDS
drw-r--r-- 2 SYS oracle 0 SEP 04 16:54 home
drw-r--r-- 2 SYS oracle 0 AUG 13 23:34 images
drw-r--r-- 2 SYS oracle 0 AUG 13 23:17 olap_data_security
drw-r--r-- 2 SYS oracle 0 AUG 13 23:10 public
drw-r--r-- 2 SYS oracle 0 SEP 04 16:54 sys
-rw-r--r-- 1 SYS oracle 0 SEP 20 13:40 xdbconfig.xml
drw-r--r-- 2 SYS oracle 0 AUG 13 23:17 xds
226 ASCII Transfer Complete
ftp> cd images
250 CWD Command successful
ftp> ls
227 Entering Passive Mode (127,0,0,2,41,87)
150 ASCII Data Connection
-rw-r--r-- 1 SYS oracle 130 AUG 13 23:34 16admin.gif
-rw-r--r-- 1 SYS oracle 43 AUG 13 23:34 1pixelbeige.gif
-rw-r--r-- 1 SYS oracle 799 AUG 13 23:34 1px_gray.gif
-rw-r--r-- 1 SYS oracle 43 AUG 13 23:34 1px_trans.gif
...........省略200多行!
-rw-r--r-- 1 SYS oracle 42 AUG 13 23:34 yellow.gif
-rw-r--r-- 1 SYS oracle 90 AUG 13 23:34 yellow_flag.gif
-rw-r--r-- 1 SYS oracle 1599 AUG 13 23:34 yes.gif
226 ASCII Transfer Complete
ftp> bye
221 QUIT Goodbye.
oracle@oracle11gr2:~> exit
exit
這樣應該會比較直觀的看到目錄裡的內容,進行上傳和下載檔案了。
另,為了安全。使用完後再把FTP 的port設定取消就行了。
SQL> exec dbms_xdb.setftpport(0);
PL/SQL procedure successfully completed.
SQL> alter system register;
System altered.
--EOF [/quote]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7656893/viewspace-666164/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle Apex 3.2.1 @11gR2(1)Oracle
- [APEX] APEX無法連線
- Oracle apex3.2 語言問題Oracle
- 部署Oracle 11gR2 Data Guard安裝記錄(1)Oracle
- (轉)使用Oracle 11GR2 資料庫Flash CacheOracle資料庫
- Oracle APEX皇家國際線上hj8828.vip Oracle APEX, 讓你秒變全棧開發的黑科技Oracle全棧
- Oracle 11gR2 RAC 常用維護操作 說明(轉)Oracle
- Oracle 11gR2 ASM磁碟組管理與新特性實踐[1]OracleASM
- 【轉】Oracle 11gR2 RAC ORA-00845 解決方法Oracle
- oracle 11gr2 drop asmOracleASM
- oracle 11GR2 新特性Oracle
- Oracle效能調整-1(轉)Oracle
- Oracle的Index-1(轉)OracleIndex
- 【oracle】靜默安裝 oracle 11gr2Oracle
- Oracle 11gR2 New Features Oracle RestartOracleREST
- 11GR2新特性(轉)
- 升級APEX 元件元件
- windows apex 安裝Windows
- Oracle 11gR2 RAC 單網路卡轉雙網路卡繫結配置Oracle
- Oracle 11GR2 Duplicate from BackupOracle
- oracle 11gR2 install problemOracle
- oracle 11gr2 SCAN LISTENER配置Oracle
- oracle 11gr2 rac 安裝Oracle
- oracle 11gR2 如何修改vipOracle
- Oracle 11gr2提供下載Oracle
- [Developer] Oracle sendmail procedure(1)(轉載)DeveloperOracleAI
- Oracle常見提問1(轉)Oracle
- Oracle初學者問題1(轉)Oracle
- ORACLE應用經驗(1)(轉)Oracle
- 3.2.1 Mounting a Database to an InstanceDatabase
- Spring Framework 3.2.1 釋出SpringFramework
- apex在steam上怎麼玩 國區steam玩apex方法教程
- 【Oracle12C】11GR2升級到12CR1並插入CDBOracle
- Oracle 11gR2 RAC修改SCAN IPOracle
- ORACLE 11gr2 ASM redo log 增加OracleASM
- oracle 11gR2 scan ip (DNS模式)OracleDNS模式
- oracle 11gR2 如何修改public ipOracle
- oracle 11gR2 如何修改 private ipOracle