在數據遷徙的時候需要使源和目標資料庫的字元集、版本等信息統一…… 這裡是對一個資料庫的設置,需要在兩邊進行同樣的操作。 SYS@PROD1> select userenv('language') from dual; USERENV('LANGUAGE') AMERICAN_AMERICA.ZHS1 ...
在數據遷徙的時候需要使源和目標資料庫的字元集、版本等信息統一……
這裡是對一個資料庫的設置,需要在兩邊進行同樣的操作。
SYS@PROD1> select userenv('language') from dual;
USERENV('LANGUAGE')
----------------------------------------------------
AMERICAN_AMERICA.ZHS16GBK
SYS@PROD1> startup mount
ORACLE instance started.
Total System Global Area 638853120 bytes
Fixed Size 2255952 bytes
Variable Size 255853488 bytes
Database Buffers 373293056 bytes
Redo Buffers 7450624 bytes
Database mounted.
SYS@PROD1> ALTER SESSION SET SQL_TRACE=TRUE;
Session altered.
SYS@PROD1> ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
System altered.
SYS@PROD1> ALTER SYSTEM SET AQ_TM_PROCESSES=0;
System altered.
SYS@PROD1>
SYS@PROD1>
SYS@PROD1> ALTER SYSTEM ENABLE RESTRICTED SESSION;
System altered.
SYS@PROD1> alter database open;
Database altered.
SYS@PROD1> alter database character set internal_use WE8MSWIN1252;
Database altered.
SYS@PROD1> alter system disable restricted session;
System altered.
SYS@PROD1> execute sys.dbms_metadata_util.load_stylesheets;
PL/SQL procedure successfully completed.
SYS@PROD1> select userenv('language') from dual;
USERENV('LANGUAGE')
--------------------------------------------------------------------------------
AMERICAN_AMERICA.WE8MSWIN1252
查看已經更改,這裡需要把之前修改的參數改回去:
SYS@PROD1> alter system set job_queue_processes=30 ;
System altered.
SYS@PROD1> alter system set AQ_TM_PROCESSES=1;
重啟(實驗環境下強制重啟)
SYS@PROD1> startup force ;
ORACLE instance started.
Total System Global Area 638853120 bytes
Fixed Size 2255952 bytes
Variable Size 255853488 bytes
Database Buffers 373293056 bytes
Redo Buffers 7450624 bytes
Database mounted.
Database opened.
完成~