Oracle 11g新特性注意事項

來源:互聯網
上載者:User

Oracle 11g新特性注意事項

在從Oracle 10g升級到Oracle 11g後,就需要對Oracle 11g的新特性進行瞭解,這些特性可能會對應用及效能產生影響,需要調整。

1. Oracle11g密碼到期策略

oracle11g中預設在default概要檔案中設定了PASSWORD_LIFE_TIME=180天后到期,到期後會自動改密碼, 會影響應用的應用。

SQL> alter profile default limit password_life_time unlimited;

2. Oracle11g對使用者名稱密碼大小寫敏感

Oracle11g中預設使用者名和密碼大小寫敏感,oracle10g就是沒有這個問題。

SQL> alter system set sec_case_sensitive_logon=false scope=spfile;

3. Oracle11g空表不會立即建立segment,預設是true. 在oracle11.2.0.1這樣就會產生一些問題,最大的問題就是exp匯出時,空表不會匯出資料。對於使用oracle11.2.0.1 exp用戶端匯入11.2.0.2以上版本資料庫時會出現EXP-00001錯誤。

SQL> alter system set deferred_segment_creation = false scope=spfile;

對於已經是空表問題的解決方式如下,找到表空,並立即分配空間:

SQL> select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0 ;

'ALTERTABLE'||TABLE_NAME||'ALLOCATEEXTENT;' 
-----------------------------------------------------------   
alter table C allocate extent;   
alter table B allocate extent;   
alter table A allocate extent;   
alter table ABC allocate extent;   
alter table TEST_LOCK allocate extent;

4. Oracle11g預設是開啟審記功能的,開啟審記功能是會對效能產生影響的,可以考慮關閉。

SQL> alter system set audit_trail=none scope=spfile;

在CentOS 6.4下安裝Oracle 11gR2(x64)

Oracle 11gR2 在VMWare虛擬機器中安裝步驟

Debian 下 安裝 Oracle 11g XE R2

Oracle Linux 6.5安裝Oracle 11.2.0.4 x64

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.