oracle 11g rac 修改字元集

來源:互聯網
上載者:User

標籤:inter   job   lin   驗證   bit   bms   open   server   shutdown   

系統版本:
Oracle Linux Server release 5.7
資料庫版本:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
查看字元集:
SQL>select userenv(‘language‘) from dual;
USERENV(‘LANGUAGE‘)AMERICAN_AMERICA.AL32UTF8
關閉RAC其中一個節點:
[[email protected] ~]#cd /u01/app/11.2.0/grid/bin/crsctl
[[email protected] ~]#./crsctl stop cluster
在另一個節點執行:
SQL>alter system set cluster_database=false scope=spfile;
關閉資料庫:
SQL>shutdown immediate;
SQL>startup mount;
SQL> ALTER SYSTEM ENABLE RESTRICTED SESSION;
System altered.
SQL> ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
System altered.
SQL> ALTER SYSTEM SET AQ_TM_PROCESSES=0;
System altered.
SQL> alter database open;
Database altered.
修改字元集:
SQL> ALTER DATABASE character set INTERNAL_USE ZHS16GBK;
Database altered.
恢複資料庫為RAC:
SQL> alter system set cluster_database=true scope=spfile;
SQL> shutdown immediate;
SQL>startup;
SQL> execute sys.dbms_metadata_util.load_stylesheets;
啟動另一節點cluster服務並驗證:
[[email protected] ~]#./crsctl start cluster
查看字元集:
SQL>select userenv(‘language‘) from dual;
USERENV(‘LANGUAGE‘)

AMERICAN_AMERICA.ZHS16GBK

參考博文:http://blog.itpub.net/28939273/viewspace-1061440/

oracle 11g rac 修改字元集

聯繫我們

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