在數據遷徙的時候須要使源和目標數據庫的字符集、版本等信息統一……數據庫
這裏是對一個數據庫的設置,須要在兩邊進行一樣的操做。session
SYS@PROD1> select userenv('language') from dual;spa
USERENV('LANGUAGE')
----------------------------------------------------
AMERICAN_AMERICA.ZHS16GBKrest
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.io
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.select
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.meta
SYS@PROD1> select userenv('language') from dual;
USERENV('LANGUAGE')
--------------------------------------------------------------------------------
AMERICAN_AMERICA.WE8MSWIN1252queue
查看已經更改,這裏須要把以前修改的參數改回去:數據
SYS@PROD1> alter system set job_queue_processes=30 ;
System altered.
SYS@PROD1> alter system set AQ_TM_PROCESSES=1;db
重啓(實驗環境下強制重啓)
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.
完成~