ADF 11g中檔案上傳配置

2021-07-01 18:38:09 字數 2367 閱讀 1354

adf10g和11g檔案上傳時web.xml的配置有所區別,如下:

10g包名是oracle.adf.view.faces

[html]view plain

copy

<

context-param

>

<

param-name

>

oracle.adf.view.faces.upload_max_memory

param-name

>

<

param-value

>

512000

param-value

>

context-param

>

<

context-param

>

<

param-name

>

oracle.adf.view.faces.upload_max_disk_space

param-name

>

<

param-value

>

5120000

param-value

>

context-param

>

<

context-param

>

<

param-name

>

oracle.adf.view.faces.upload_temp_dir

param-name

>

<

param-value

>

/tmp/adfuploads/

param-value

>

context-param

>

<

param-name

>

org.apache.myfaces.trinidad.upload_max_memory

param-name

>

<

param-value

>

512000

param-value

>

context-param

>

<

context-param

>

<

param-name

>

org.apache.myfaces.trinidad.upload_max_disk_space

param-name

>

<

param-value

>

5120000

param-value

>

context-param

>

<

context-param

>

<

param-name

>

org.apache.myfaces.trinidad.upload_temp_dir

param-name

>

<

param-value

>

/tmp/trinidaduploads/

param-value

>

context-param

>

file upload. -->

<

filter

>

<

filter-name

>

trinidad

filter-name

>

<

filter-class

>

filter-class

>

filter

>

特別注意包名的不同!!

另外在adf 11g的trinidad-config.xml中有如下標籤

[html]view plain

copy

<

uploaded-file-max-disk-space

>

uploaded-file-max-disk-space

>

<

uploaded-file-max-memory

>

uploaded-file-max-memory

>

<

uploaded-file-temp-dir

>

uploaded-file-temp-dir

>

這些標籤的設定將覆蓋web.xml中設定,並且在這裡支援el表示式輸入。

參見**:

Oracle診斷檔案 11g

通過diagnostic desc引數檢視adr的根目錄。show parameter diagnostic dest 通過v diag info檢視檢視adr目錄結構的細節。select name,value from v diag info 檢視報警檔案的儲存位置 show parameter ...

USE11 上oracle11匯入資料中文亂碼

原因 資料庫字元編碼與suse11系統編碼不一致 解決辦法 系統nls lang 檢視suse11系統是否有nls lang環境變數,如果沒有,使用root賬號在 etc profile檔案末尾加入 export nls lang american america.zhs16gbk 資料庫字元 檢視...

Linux下安裝Oracle11g中文亂碼

解決辦法1 linux下安裝oracle11g中文亂碼 linux下安裝oracle11g,安裝介面亂碼問題解決方法 解決安裝時中文是 囗囗囗囗囗囗囗囗 1.進入剛解壓的database stage components oracle.jdk 1.5.0.17.0 1 datafiles all.j...