1、在建庫時,catproc一定要運行,否則用rman時會出現如下字符集的錯誤: rman-00554: initialization of internal recovery manager package failed rman-04005: error from target database: ora-06553: pls-213: package standard noe rman-04015: error setting target database character set to zhs16cgb231280 如果建庫時沒有問題,那么可以re-run catproc.sql. this will in turn call the dbmsbkrs.sql script which creates the dbms_backup_restore package.
2、中文字符集說明 zhs16cgb231280 cgb2312-80 16-bit simplified chinese mb, ascii zhs16gbk gbk 16-bit simplified chinese mb, ascii, udc 簡單地說zhs16gbk是zhs16cgb231280的超集。 一九九○年中國、日本、韓國共同制定的統一東亞表意文字字符集,即常稱的國標擴展碼字符集(gbk)。
3、如何避免中文支持問題 我們的一貫建議是在建庫時就做好規劃,這樣以后就不會有問題了。 1)create database character set zhs16gbk national character set zhs16gbk 2)環境變量:nls_lang=american_america.zhs16gbk 最好export nls_date_format='yyyy-mm-dd hh24:mi:ss'指明日期格式; 3)如果建庫時指定了props$中characterset肯定就是zhss16gbk了: nls_characterset zhs16gbk nls_nchar_characterset zhs16gbk 如果不是可以使用update改變,但這樣做對于已有數據會有影響,甚至會導致整個數據庫不能用,所以還是在建庫之后就進行驗證,一個好的dba就是能夠盡量避免問題的發生,而不是等到出了問題再去救火。