Oracle資料庫從Linux x86單機遷移到Solaries雙節點RAC叢集經驗分享-生產環境切換
本文分享了一次真實的遷移案例,將某業務系統生產環境Oracle資料庫進行遷移,資料庫版本為11.2.0.4。資料庫遷移之前部署在RedHat6.5作業系統中,以單機單例項檔案系統部署;遷移之後部署在Solaries11作業系統中,以ASM雙節點RAC叢集部署。本文分享的主要內容是遷移過程中對生產環境的變更和調整思路,以及遷移過程中遇到問題的解決方案,整個遷移過程包括測試環境驗證、備份策略驗證、生產環境切換等三大步驟,並未涉及資料庫的安裝部署。希望文章的整體處理思路對讀者有幫助。
備份策略驗證的目的如下:
(1)將生產環境資料庫切換到Solaries雙節點RAC叢集
(2)將測試環境已驗證步驟在生產環境實施
(3)次日可驗證定時任務執行情況
目錄結構搶先看
1.清理RAC叢集中測試資料
2.清理RAC叢集中RMAN備份檔案
3.清理RAC叢集中邏輯備份檔案
4.在第RAC第一個節點調整directory路徑,指向NFS檔案系統
5.測試新directory備份許可權
6.原生產環境日結關門
7.原生產環境關閉電票前置機應用
8.原生產環境關閉應用
9.原生產環境資料庫備份後下線
10.修改RAC叢集的scan ip為生產資料庫IP
11.關閉生產環境歸檔
12.還原最新生產資料
13.刪除匯入時提示的無效物件
14.開啟生產環境歸檔
15.部署生產環境RMAN策略,並執行全量備份
16.手工收集統計資訊
17.修改生產應用中資料庫連線為service連線
18.啟動生產環境應用並驗證
19.驗證批次功能
20.生產環境資料庫查詢使用者設定
21.開啟電票前置機
22.其他問題處理
23.隔日檢查RMAN備份集,確認生產執行情況
下面是操作全流程:
1.清理RAC叢集中測試資料
(1)關閉應用伺服器所有應用
(2)刪除資料庫中所有使用者資料
DROP USER "XXXX" CASCADE;
2.清理RAC叢集中RMAN備份檔案
oracle@cwgsdb1:~$ rman target /Recovery Manager: Release 11.2.0.4.0 - Production on Thu Oct 25 10:34:39 2018 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to target database: CAMS (DBID=2649374962) RMAN> delete backup; using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=4048 instance=cams1 device type=DISK List of Backup Pieces BP Key BS Key Pc# Cp# Status Device Type Piece Name ------- ------- --- --- ----------- ----------- ---------- 1 1 1 1 AVAILABLE DISK +DATADG/cams/rman/rmanarch_cams_20181025_3.bak 2 2 1 1 AVAILABLE DISK +DATADG/cams/rman/rmanarch_cams_20181025_4.bak 3 3 1 1 AVAILABLE DISK +DATADG/cams/rman/rmanarch_cams_20181025_1.bak 4 4 1 1 AVAILABLE DISK +DATADG/cams/rman/rmanarch_cams_20181025_2.bak 5 5 1 1 AVAILABLE DISK +DATADG/cams/rman/rmanfullback_cams_20181025_6.bak 6 6 1 1 AVAILABLE DISK +DATADG/cams/rman/rmanfullback_cams_20181025_7.bak 7 7 1 1 AVAILABLE DISK +DATADG/cams/rman/rmanfullback_cams_20181025_5.bak 8 8 1 1 AVAILABLE DISK +DATADG/cams/rman/rmanfullback_cams_20181025_8.bak 9 9 1 1 AVAILABLE DISK +DATADG/cams/rman/rmanarch_cams_20181025_9.bak 10 10 1 1 AVAILABLE DISK +DATADG/cams/rman/rmanarch_cams_20181025_10.bak 11 11 1 1 AVAILABLE DISK /u01/app/oracle/product/11.2.0/dbhome_1/dbs/c-2649374962-20181025-00 12 12 1 1 AVAILABLE DISK +DATADG/cams/rman/rmanarch_cams_20181025_12 13 13 1 1 AVAILABLE DISK /u01/app/oracle/product/11.2.0/dbhome_1/dbs/c-2649374962-20181025-01 14 14 1 1 AVAILABLE DISK +DATADG/cams/rman/rmanarch_cams_20181025_14 15 15 1 1 AVAILABLE DISK /u01/app/oracle/product/11.2.0/dbhome_1/dbs/c-2649374962-20181025-02 16 16 1 1 AVAILABLE DISK /u01/app/oracle/product/11.2.0/dbhome_1/dbs/c-2649374962-20181025-03 17 17 1 1 AVAILABLE DISK +DATADG/cams/rman/rmanarch_cams_20181025_17 18 18 1 1 AVAILABLE DISK +DATADG/cams/rman/rmanarch_cams_20181025_18 19 19 1 1 AVAILABLE DISK +DATADG/cams/rman/rmanarch_cams_20181025_19 20 20 1 1 AVAILABLE DISK /u01/app/oracle/product/11.2.0/dbhome_1/dbs/c-2649374962-20181025-04 Do you really want to delete the above objects (enter YES or NO)? YES deleted backup piece backup piece handle=+DATADG/cams/rman/rmanarch_cams_20181025_3.bak RECID=1 STAMP=990407128 deleted backup piece backup piece handle=+DATADG/cams/rman/rmanarch_cams_20181025_4.bak RECID=2 STAMP=990407199 deleted backup piece backup piece handle=+DATADG/cams/rman/rmanarch_cams_20181025_1.bak RECID=3 STAMP=990407128 deleted backup piece backup piece handle=+DATADG/cams/rman/rmanarch_cams_20181025_2.bak RECID=4 STAMP=990407128 deleted backup piece backup piece handle=+DATADG/cams/rman/rmanfullback_cams_20181025_6.bak RECID=5 STAMP=990407239 deleted backup piece backup piece handle=+DATADG/cams/rman/rmanfullback_cams_20181025_7.bak RECID=6 STAMP=990407241 deleted backup piece backup piece handle=+DATADG/cams/rman/rmanfullback_cams_20181025_5.bak RECID=7 STAMP=990407238 deleted backup piece backup piece handle=+DATADG/cams/rman/rmanfullback_cams_20181025_8.bak RECID=8 STAMP=990407287 deleted backup piece backup piece handle=+DATADG/cams/rman/rmanarch_cams_20181025_9.bak RECID=9 STAMP=990407292 deleted backup piece backup piece handle=+DATADG/cams/rman/rmanarch_cams_20181025_10.bak RECID=10 STAMP=990407292 deleted backup piece backup piece handle=/u01/app/oracle/product/11.2.0/dbhome_1/dbs/c-2649374962-20181025-00 RECID=11 STAMP=990407294 deleted backup piece backup piece handle=+DATADG/cams/rman/rmanarch_cams_20181025_12 RECID=12 STAMP=990407671 deleted backup piece backup piece handle=/u01/app/oracle/product/11.2.0/dbhome_1/dbs/c-2649374962-20181025-01 RECID=13 STAMP=990407673 deleted backup piece backup piece handle=+DATADG/cams/rman/rmanarch_cams_20181025_14 RECID=14 STAMP=990414011 deleted backup piece backup piece handle=/u01/app/oracle/product/11.2.0/dbhome_1/dbs/c-2649374962-20181025-02 RECID=15 STAMP=990414013 deleted backup piece backup piece handle=/u01/app/oracle/product/11.2.0/dbhome_1/dbs/c-2649374962-20181025-03 RECID=16 STAMP=990410565 deleted backup piece backup piece handle=+DATADG/cams/rman/rmanarch_cams_20181025_17 RECID=17 STAMP=990414012 deleted backup piece backup piece handle=+DATADG/cams/rman/rmanarch_cams_20181025_18 RECID=18 STAMP=990414013 deleted backup piece backup piece handle=+DATADG/cams/rman/rmanarch_cams_20181025_19 RECID=19 STAMP=990414014 deleted backup piece backup piece handle=/u01/app/oracle/product/11.2.0/dbhome_1/dbs/c-2649374962-20181025-04 RECID=20 STAMP=990414016 Deleted 20 objects RMAN> list backup; specification does not match any backup in the repository
3.清理RAC叢集中邏輯備份檔案
(1)檢視所有在用directories
SQL> set lines 300; SQL> col OWNER for a30; SQL> col DIRECTORY_NAME for a30; SQL> col DIRECTORY_PATH for a50; SQL> select * from dba_directories where DIRECTORY_NAME in ('DIR_DP','DPDATA1'); OWNER DIRECTORY_NAME DIRECTORY_PATH ------------------------------ ------------------------------ -------------------------------------------------- SYS DPDATA1 /u01/app/oracle/dump SYS DIR_DP /u01/app/oracle/admin/cams/dpdump/
(2)清理directories路徑下檔案
oracle@cwgsdb1:~$ cd /u01/app/oracle/dumporacle@cwgsdb1:/u01/app/oracle/dump$ ls camsData20181017.dmp camsData20181017.log impdp_camsData20181017.log oracle@cwgsdb1:/u01/app/oracle/dump$ rm * oracle@cwgsdb1:/u01/app/oracle/dump$ cd /u01/app/oracle/admin/cams/dpdump/ oracle@cwgsdb1:/u01/app/oracle/admin/cams/dpdump$ ls channel20181024173831.dmp channel20181024173831.log core20181024173831.dmp core20181024173831.log cwap20181024173831.dmp cwap20181024173831.log oracle@cwgsdb1:/u01/app/oracle/admin/cams/dpdump$ rm * oracle@cwgsdb1:/u01/app/oracle/admin/cams/dpdump$ ls
4.在第RAC第一個節點調整directory路徑,指向NFS檔案系統
(1)該伺服器掛載NFS,檢視NFS資訊:
oracle@cwgsdb1:~$ df -k Filesystem 1024-blocks Used Available Capacity Mounted on rpool/ROOT/solaris 205406208 26547648 100958072 21% / /devices 0 0 0 0% /devices /dev 0 0 0 0% /dev ctfs 0 0 0 0% /system/contract proc 0 0 0 0% /proc mnttab 0 0 0 0% /etc/mnttab swap 11726088 2912 11723176 1% /system/volatile objfs 0 0 0 0% /system/object sharefs 0 0 0 0% /etc/dfs/sharetab fd 0 0 0 0% /dev/fd rpool/ROOT/solaris/var 205406208 415600 100958072 1% /var swap 11725976 2800 11723176 1% /tmp rpool/VARSHARE 205406208 3432 100958072 1% /var/share rpool/export 205406208 304 100958072 1% /export rpool/export/home 205406208 320 100958072 1% /export/home rpool/export/home/grid 205406208 1128 100958072 1% /export/home/grid rpool/export/home/oracle 205406208 592 100958072 1% /export/home/oracle rpool/repo 205406208 20656608 100958072 17% /repo rpool 205406208 384 100958072 1% /rpool rpool/VARSHARE/zones 205406208 288 100958072 1% /system/zones rpool/VARSHARE/pkg 205406208 304 100958072 1% /var/share/pkg rpool/VARSHARE/pkg/repositories 205406208 288 100958072 1% /var/share/pkg/repositories 100.100.100.54:/impbackup 51606140 15116928 33867772 31% /backup
(2)調整directory路徑:
create or replace directory dir_dp as '/backup/'; grant read,write on directory dir_dp to public;
(3)檢視NFS檔案許可權:
oracle@cwgsdb1:~$ ls -lrt / total 1692 dr-xr-xr-x 2 root root 2 Oct 6 2015 home drwxr-xr-x 2 root root 2 Sep 28 22:47 media drwxr-xr-x 18 root sys 18 Sep 29 06:58 kernel drwxr-xr-x 7 root sys 23 Sep 29 07:01 platform drwxr-xr-x 3 root sys 5 Sep 29 07:01 boot lrwxrwxrwx 1 root root 10 Sep 29 07:01 sbin -> ./usr/sbin lrwxrwxrwx 1 root root 9 Sep 29 07:01 bin -> ./usr/bin drwxr-xr-x 2 root sys 2 Sep 29 07:01 mnt drwxr-xr-x 7 root root 7 Sep 29 07:04 system drwxr-xr-x 3 root sys 3 Sep 29 07:04 export drwxr-xr-x 4 grid oinstall 7 Sep 30 01:49 soft drwxr-xr-x 2 root root 2 Oct 2 01:36 iso drwxr-xr-x 3 root root 15 Oct 2 01:41 repo drwxr-xr-x 12 root bin 335 Oct 2 01:54 lib drwxr-xr-x 43 root sys 50 Oct 2 02:22 var drwxr-xr-x 4 root root 4 Oct 2 21:02 rpool drwxr-xr-x 3 root oinstall 3 Oct 2 21:07 u01 drwx------ 21 root root 30 Oct 2 23:34 root drwxr-xr-x 35 root sys 47 Oct 3 00:12 usr drwxr-xr-x 2 grid asmadmin 7 Oct 3 04:52 sharedisk drwxr-xr-x 7 root sys 7 Oct 3 07:31 opt drwxr-xr-x 4 root sys 8 Oct 24 01:13 devices drwxr-xr-x 193 root sys 193 Oct 24 01:13 dev dr-xr-xr-x 1 root root 1 Oct 24 01:14 net dr-xr-xr-x 1 root root 1 Oct 24 01:14 nfs4 drwxrwxrwx 2 nobody nobody 4096 Oct 25 14:36 backup drwxr-xr-x 98 root sys 194 Oct 25 16:40 etc drwxrwxrwt 10 root sys 862 Oct 25 16:46 tmp dr-xr-xr-x 192 root root 480032 Oct 25 16:47 proc
5.測試新directory備份許可權
oracle@cwgsdb1:/backup$ expdp directory=dir_dp schemas=hr dumpfile=hr.dmp logfile=hr.log parallel=2 CLUSTER=N Export: Release 11.2.0.4.0 - Production on Thu Oct 25 17:18:54 2018 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. Username: system Password: Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options Starting "SYSTEM"."SYS_EXPORT_SCHEMA_02": system/******** directory=dir_dp schemas=hr dumpfile=hr.dmp logfile=hr.log parallel=2 CLUSTER=N Estimate in progress using BLOCKS method... Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA Total estimation using BLOCKS method: 448 KB . . exported "HR"."COUNTRIES" 6.367 KB 25 rows . . exported "HR"."DEPARTMENTS" 7.007 KB 27 rows . . exported "HR"."EMPLOYEES" 16.80 KB 107 rows . . exported "HR"."JOBS" 6.992 KB 19 rows . . exported "HR"."JOB_HISTORY" 7.054 KB 10 rows . . exported "HR"."LOCATIONS" 8.273 KB 23 rows . . exported "HR"."REGIONS" 5.476 KB 4 rows Processing object type SCHEMA_EXPORT/USER Processing object type SCHEMA_EXPORT/SYSTEM_GRANT Processing object type SCHEMA_EXPORT/ROLE_GRANT Processing object type SCHEMA_EXPORT/DEFAULT_ROLE Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE Processing object type SCHEMA_EXPORT/TABLE/TABLE Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT Processing object type SCHEMA_EXPORT/TABLE/COMMENT Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS Processing object type SCHEMA_EXPORT/VIEW/VIEW Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT Processing object type SCHEMA_EXPORT/TABLE/TRIGGER Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS Master table "SYSTEM"."SYS_EXPORT_SCHEMA_02" successfully loaded/unloaded ****************************************************************************** Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_02 is: /backup/hr.dmp Job "SYSTEM"."SYS_EXPORT_SCHEMA_02" successfully completed at Thu Oct 25 17:19:21 2018 elapsed 0 00:00:13
6.原生產環境日結關門
在業務人員完成當日業務後,機構關門,防止業務人員登入系統做業務。計劃在資料庫遷移完成之後執行日結跑批。
7.原生產環境關閉電票前置機應用
登陸電票前置機weblogic控制檯,使用tail -f命令檢視當前是否在刷日誌,如果沒有刷日誌,則透過控制檯關閉電票前置機應用。
8.原生產環境關閉應用
按照應用關閉的邏輯順序,依次關閉原生產環境應用。
9.原生產環境資料庫備份後下線
(1)原資料庫備份命令
expdp \'/ as sysdba\' DIRECTORY=dpdata1 DUMPFILE=camsData20181025.dmp SCHEMAS=xxxx,yyyy logfile=camsData20181025.log
(2)檔案壓縮
tar zcvf camsData20181025.tar.gz camsData20181025.dmp camsData20181025.log
(3)將檔案傳輸至新生產資料庫伺服器第一個節點中
scp camsData20181025.tar.gz oracle@100.100.100.215:/u01/app/oracle/dump
(4)關閉老生產資料庫
$ lsnrctl stop $ sqlplus / as sysdba SQL> shutdown immediate;
(5)關閉定時任務,在任務之前加#
crontab -e
(6)修改舊資料庫伺服器IP地址為其他地址。
10.修改RAC叢集的scan ip為生產資料庫IP
按照測試環境驗證過的流程,修改RAC叢集的scan ip為生產資料庫IP。
11.關閉生產環境歸檔
oracle@cwgsdb1:~$ srvctl stop database -d cams oracle@cwgsdb1:~$ srvctl start database -d cams -o mount oracle@cwgsdb1:~$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Thu Oct 25 20:13:32 2018 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options SQL> alter database noarchivelog; Database altered. SQL> alter database open; Database altered. SQL> archive log list; Database log mode No Archive Mode Automatic archival Disabled Archive destination +DATADG Oldest online log sequence 3 Current log sequence 6 另一個節點也執行: SQL> alter database open; Database altered. SQL> select open_mode from gv$database; OPEN_MODE -------------------- READ WRITE READ WRITE
檢查資料庫狀態
grid@cwgsdb1:~$ crsctl stat res -t-------------------------------------------------------------------------------- NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------- ora.DATADG.dg ONLINE ONLINE cwgsdb1 ONLINE ONLINE cwgsdb2 ora.LISTENER.lsnr ONLINE ONLINE cwgsdb1 ONLINE ONLINE cwgsdb2 ora.SYSTEMDG.dg ONLINE ONLINE cwgsdb1 ONLINE ONLINE cwgsdb2 ora.asm ONLINE ONLINE cwgsdb1 Started ONLINE ONLINE cwgsdb2 Started ora.gsd OFFLINE OFFLINE cwgsdb1 OFFLINE OFFLINE cwgsdb2 ora.net1.network ONLINE ONLINE cwgsdb1 ONLINE ONLINE cwgsdb2 ora.ons ONLINE ONLINE cwgsdb1 ONLINE ONLINE cwgsdb2 ora.registry.acfs ONLINE ONLINE cwgsdb1 ONLINE ONLINE cwgsdb2 -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.LISTENER_SCAN1.lsnr 1 ONLINE ONLINE cwgsdb2 ora.cams.db 1 ONLINE ONLINE cwgsdb1 Open 2 ONLINE ONLINE cwgsdb2 Open ora.cvu 1 ONLINE ONLINE cwgsdb1 ora.cwgsdb1.vip 1 ONLINE ONLINE cwgsdb1 ora.cwgsdb2.vip 1 ONLINE ONLINE cwgsdb2 ora.oc4j 1 ONLINE ONLINE cwgsdb1 ora.scan1.vip 1 ONLINE ONLINE cwgsdb2
12.還原最新生產資料
(1)解壓最新生產資料
oracle@cwgsdb1:~$ cd oracle@cwgsdb1:~$ cd /u01/app/oracle/dump/ oracle@cwgsdb1:/u01/app/oracle/dump$ ls camsData20181025.tar.gz oracle@cwgsdb1:/u01/app/oracle/dump$ tar zxvf camsData20181025.tar.gz x camsData20181025.dmp, 7310499840 bytes, 14278320 tape blocks x camsData20181025.log, 345007 bytes, 674 tape blocks
(2)執行匯入命令
impdp \'/ as sysdba\' DIRECTORY=dpdata1 DUMPFILE=camsData20181025.dmp SCHEMAS=xxxx,yyyy logfile=impdp_camsData20181025.log cluster=N
13.刪除匯入時提示的無效物件
(注:這裡需要和開發人員確認,確認後刪除)
drop FUNCTION "DATABUFF"."ELEMIDX";drop FUNCTION "DB2ODESK"."FSBN"; drop PROCEDURE "DB2ODESK"."BATCH_DELETE"; drop PROCEDURE "DB2ODESK"."SP_DESK_CURRZS"; drop PACKAGE BODY "DATABUFF"."MIGRATION_TRANSFORMER"; drop FUNCTION "CAMS_BCE"."TX_ZD2"; drop FUNCTION "CAMS_BCE"."TX_ZD3";
14.開啟生產環境歸檔
oracle@cwgsdb1:/u01/app/oracle/dump$ srvctl stop database -d cams oracle@cwgsdb1:/u01/app/oracle/dump$ srvctl start database -d cams -o mount oracle@cwgsdb1:/u01/app/oracle/dump$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Thu Oct 25 20:52:54 2018 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options SQL> alter database archivelog; Database altered. SQL> alter database open; Database altered. SQL> archive log list; Database log mode Archive Mode Automatic archival Enabled Archive destination +DATADG Oldest online log sequence 4 Next log sequence to archive 7 Current log sequence 7 另一個節點也執行: SQL> alter database open; Database altered. SQL> select open_mode from gv$database; OPEN_MODE -------------------- READ WRITE READ WRITE
15.部署生產環境RMAN策略,並執行全量備份
按照測試環境驗證過的流程,部署生產環境RAMN策略,並執行 手工全量備份。
16.手工收集統計資訊
exec dbms_stats.gather_schema_stats('XXXX');
17.修改生產應用中資料庫連線為service連線
按照測試環境驗證過的流程, 修改生產應用中資料庫連線為service連線
18.啟動生產環境應用並驗證
(注:生產系統使用查詢交易進行驗證)
按順序依次啟動應用,測試多組跨子系統的查詢交易,然後在資料匯流排監控平臺上檢視交易的報文以及成功狀態。
19.驗證批次功能
(注:如果遇到問題,需第一時間處理)
生產環境執行跑批操作,將會計日期跑到第二日,同時驗證功能是否正常。
20.生產環境資料庫查詢使用者設定
(這裡選擇現有使用者scott作為插敘使用者,只賦予查詢許可權)
由於測試階段已經將scott使用者解鎖,這裡不再重複操作。
select 'grant select on XXXX.' || OBJECT_NAME || ' to scott;' from DBA_OBJECTS where owner='XXXX' and object_type in ('TABLE','VIEW');
執行上述語句生成的SQL,可為scott使用者賦予查詢所有業務表和檢視的許可權。
21.開啟電票前置機
登陸電票前置機weblogic控制檯,透過控制檯開啟電票前置機應用。
22.其他問題處理
(1)由於遷移時遇到ORA-04063: view "CAMS_CWAP.QUERYSHOUXIN_V" 有錯誤的問題,為保證資料表、檢視許可權完整性,單獨執行報表許可權指令碼。
(2)Linux和Unix系統中date命令不一樣,遷移後需單獨調整。
(3)Linux和Unix系統中nc命令不一樣,遷移後需單獨調整。
(4)測試過程發現新生產資料庫與測試環境未進行網路隔離,存在一定風險。已通知網路工程師處理。
23.隔日檢查RMAN備份集,確認生產執行情況
經過確認,RMAN已經按照既定策略執行備份和歷史檔案刪除,生產環境執行穩定。
至此,生產環境切換工作全部完成完畢,生產環境Oracle資料庫成功從Linux X86單機遷移到Solaries雙節點RAC叢集。
如果您對整個處理流程存在問題,歡迎留言交流!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31394774/viewspace-2219308/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle資料庫從Linux x86單機遷移到Solaries雙節點RAC叢集經驗分享-測試環境驗證Oracle資料庫Linux
- Oracle資料庫從Linux x86單機遷移到Solaries雙節點RAC叢集經驗分享-備份策略驗證Oracle資料庫Linux
- 規劃單節點遷移到rac
- 【RAC】刪除RAC資料庫節點(六)——刪除Oracle叢集服務資料庫Oracle
- 【RAC】刪除RAC資料庫節點(七)——刪除Oracle叢集軟體資料庫Oracle
- 單例項資料庫expdp遷移到RAC庫單例資料庫
- 從庫轉換成PXC叢集的節點
- 生產環境中mysql資料庫由主從關係切換為主主關係MySql資料庫
- mongodb叢集節點故障的切換方法MongoDB
- 從單例項資料庫轉換到RAC環境——RAC的建立和配置單例資料庫
- Oracle RAC恢復成單節點資料庫Oracle資料庫
- 從MySQL遷移到VoltDB的一點經驗MySql
- Oracle RAC 10g叢集節點增加Oracle
- ORACLE資料庫切換和遷移方案Oracle資料庫
- ORACLE RAC環境下刪除節點Oracle
- Elasticsearch叢集搭建教程及生產環境配置Elasticsearch
- 生產環境的redis高可用叢集搭建Redis
- Oracle DataBase單例項遷移到Oracle RACOracleDatabase單例
- Win環境至Linux環境Oracle資料庫遷移全過程LinuxOracle資料庫
- 生產環境資料遷移問題彙總
- 單例項資料遷移到RAC補充單例
- RAC 雙節點 轉單節點流程
- Oracle RAC 高可用性體系結構與叢集 單例項環境與 Oracle RAC 環境對比Oracle單例
- 將pentaho資料庫遷移到oracle資料庫資料庫Oracle
- Oracle11g使用rman從rac遷移到racOracle
- RAC叢集資料庫搭建資料庫
- Oracle11g使用rman從單例項遷移到racOracle單例
- 效能優化資料庫篇-從單機到叢集優化資料庫
- RAC環境STANDBY的SWITCHOVER切換
- 【實驗】Oracle 10g RAC生產資料庫RMAN方式恢復到異地單機資料庫全程記錄Oracle 10g資料庫
- 【RAC】Oracle RAC叢集環境下日誌檔案結構Oracle
- OpenStack 之vmware機器遷移到openstack叢集
- ORACLE RAC資料庫配置Dataguard環境(3)Oracle資料庫
- ORACLE RAC資料庫配置Dataguard環境(2)Oracle資料庫
- ORACLE RAC資料庫配置Dataguard環境(1)Oracle資料庫
- 應用程式的資料庫從Sql Server遷移到Oracle資料庫SQLServerOracle
- 將OPEN BRAVO資料庫從oracle 遷移到DB2資料庫OracleDB2
- 生產環境中如何切換MySQL儲存引擎GAMySql儲存引擎