1.查看数据库运行状态

$ srvctl status database -d rone
Instance rone_2 is running on node rone2
Online relocation: INACTIVE

2.开始迁移

$ srvctl relocate database -d rone -n rone1

3.迁移结束后查看

$ srvctl status database -d rone
Instance rone_1 is running on node rone1
Online relocation: INACTIVE

源节点对应的alert日志信息:

Fri Sep 23 02:58:04 2016
Decreasing number of real time LMS from 1 to 0
Fri Sep 23 03:01:05 2016
Reconfiguration started (old inc 6, new inc 8)
List of instances:
1 2 (myinst: 2)
Global Resource Directory frozen
Communication channels reestablished
Fri Sep 23 03:01:05 2016
* domain 0 valid = 1 according to instance 1
Master broadcasted resource hash value bitmaps
Non-local Process blocks cleaned out
Fri Sep 23 03:01:05 2016
LMS 0: 0 GCS shadows cancelled, 0 closed, 0 Xw survived
Set master node info
Submitted all remote-enqueue requests
Dwn-cvts replayed, VALBLKs dubious
All grantable enqueues granted
Submitted all GCS remote-cache requests
Fix write in gcs resources
Reconfiguration complete
Fri Sep 23 03:01:18 2016
ALTER SYSTEM SET service_names='rone' SCOPE=MEMORY SID='rone_2';
Shutting down instance (transactional local)
Shutting down instance: further logons disabled
Fri Sep 23 03:01:21 2016
Stopping background process CJQ0
Stopping background process QMNC
Stopping background process MMNL
Stopping background process MMON
Local transactions complete. Performing immediate shutdown
License high water mark = 6
All dispatchers and shared servers shutdown
ALTER SYSTEM SET _shutdown_completion_timeout_mins=30 SCOPE=MEMORY;
ALTER DATABASE CLOSE NORMAL /* db agent *//* {2:16649:279} */
Fri Sep 23 03:01:28 2016
SMON: disabling tx recovery
Stopping background process RCBG
SMON: disabling cache recovery
Fri Sep 23 03:01:33 2016
NOTE: Deferred communication with ASM instance
NOTE: deferred map free for map id 11
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
Thread 2 closed at log sequence 1
Successful close of redo thread 2
Fri Sep 23 03:01:33 2016
NOTE: Deferred communication with ASM instance
NOTE: deferred map free for map id 4
Fri Sep 23 03:01:33 2016
Completed: ALTER DATABASE CLOSE NORMAL /* db agent *//* {2:16649:279} */
ALTER DATABASE DISMOUNT /* db agent *//* {2:16649:279} */
Shutting down archive processes
Archiving is disabled
Fri Sep 23 03:01:33 2016
NOTE: Deferred communication with ASM instance
NOTE: deferred map free for map id 2
Completed: ALTER DATABASE DISMOUNT /* db agent *//* {2:16649:279} */
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Fri Sep 23 03:01:33 2016
NOTE: force a map free for map id 2
NOTE: force a map free for map id 4
NOTE: force a map free for map id 11
Fri Sep 23 03:01:33 2016
Stopping background process VKTM
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Fri Sep 23 03:01:34 2016
NOTE: Shutting down MARK background process
Fri Sep 23 03:01:35 2016
freeing rdom 0
Fri Sep 23 03:01:40 2016
Instance shutdown complete

目标节点的alert日志信息:

Fri Sep 23 03:00:53 2016
Starting ORACLE instance (normal)
************************ Large Pages Information *******************
Per process system memlock (soft) limit = UNLIMITED Total Shared Global Region in Large Pages = 0 KB (0%) Large Pages used by this instance: 0 (0 KB)
Large Pages unused system wide = 0 (0 KB)
Large Pages configured system wide = 0 (0 KB)
Large Page size = 2048 KB RECOMMENDATION:
Total System Global Area size is 566 MB. For optimal performance,
prior to the next instance restart:
1. Increase the number of unused large pages by
at least 283 (page size 2048 KB, total size 566 MB) system wide to
get 100% of the System Global Area allocated with large pages
********************************************************************
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Initial number of CPU is 1
Private Interface 'eth1:1' configured from GPnP for use as a private interconnect.
[name='eth1:1', type=1, ip=169.254.210.154, mac=08-00-27-3c-72-c7, net=169.254.0.0/16, mask=255.255.0.0, use=haip:cluster_interconnect/62]
Public Interface 'eth0' configured from GPnP for use as a public interface.
[name='eth0', type=1, ip=192.168.56.131, mac=08-00-27-95-e5-90, net=192.168.56.0/24, mask=255.255.255.0, use=public/1]
Public Interface 'eth0:1' configured from GPnP for use as a public interface.
[name='eth0:1', type=1, ip=192.168.56.135, mac=08-00-27-95-e5-90, net=192.168.56.0/24, mask=255.255.255.0, use=public/1]
Public Interface 'eth0:3' configured from GPnP for use as a public interface.
[name='eth0:3', type=1, ip=192.168.56.133, mac=08-00-27-95-e5-90, net=192.168.56.0/24, mask=255.255.255.0, use=public/1]
CELL communication is configured to use 0 interface(s):
CELL IP affinity details:
NUMA status: non-NUMA system
cellaffinity.ora status: N/A
CELL communication will use 1 IP group(s):
Grp 0:
Picked latch-free SCN scheme 3
Using LOG_ARCHIVE_DEST_1 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options.
ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1
System name: Linux
Node name: rone1.example.com
Release: 2.6.32-358.el6.x86_64
Version: #1 SMP Tue Jan 29 11:47:41 EST 2013
Machine: x86_64
Using parameter settings in server-side pfile /u01/app/oracle/product/11.2.0/dbhome_1/dbs/initrone_1.ora
System parameters with non-default values:
processes = 150
spfile = "+DATA/rone/spfilerone.ora"
sga_target = 564M
control_files = "+DATA/rone/controlfile/current.260.923215671"
control_files = "+CRS/rone/controlfile/current.256.923215671"
db_block_size = 8192
compatible = "11.2.0.4.0"
cluster_database = TRUE
db_create_file_dest = "+DATA"
db_recovery_file_dest = "+CRS"
db_recovery_file_dest_size= 5007M
remote_login_passwordfile= "EXCLUSIVE"
db_domain = ""
dispatchers = "(PROTOCOL=TCP) (SERVICE=roneXDB)"
remote_listener = "rone-scan:1521"
audit_file_dest = "/u01/app/oracle/admin/rone/adump"
audit_trail = "DB"
db_name = "rone"
open_cursors = 300
pga_aggregate_target = 187M
diagnostic_dest = "/u01/app/oracle"
Cluster communication is configured to use the following interface(s) for this instance
169.254.210.154
cluster interconnect IPC version:Oracle UDP/IP (generic)
IPC Vendor 1 proto 2
Fri Sep 23 03:01:03 2016
PMON started with pid=2, OS id=5284
Fri Sep 23 03:01:03 2016
PSP0 started with pid=3, OS id=5286
Fri Sep 23 03:01:04 2016
VKTM started with pid=4, OS id=5288 at elevated priority
VKTM running at (1)millisec precision with DBRM quantum (100)ms
Fri Sep 23 03:01:04 2016
GEN0 started with pid=5, OS id=5292
Fri Sep 23 03:01:04 2016
DIAG started with pid=6, OS id=5294
Fri Sep 23 03:01:04 2016
DBRM started with pid=7, OS id=5296
Fri Sep 23 03:01:04 2016
PING started with pid=8, OS id=5298
Fri Sep 23 03:01:04 2016
ACMS started with pid=9, OS id=5300
Fri Sep 23 03:01:04 2016
DIA0 started with pid=10, OS id=5302
Fri Sep 23 03:01:04 2016
LMON started with pid=11, OS id=5304
Fri Sep 23 03:01:04 2016
LMD0 started with pid=12, OS id=5306
* Load Monitor used for high load check
* New Low - High Load Threshold Range = [960 - 1280]
Fri Sep 23 03:01:04 2016
LMS0 started with pid=13, OS id=5308 at elevated priority
Fri Sep 23 03:01:04 2016
RMS0 started with pid=14, OS id=5312
Fri Sep 23 03:01:04 2016
LMHB started with pid=15, OS id=5314
Fri Sep 23 03:01:04 2016
MMAN started with pid=16, OS id=5316
Fri Sep 23 03:01:04 2016
DBW0 started with pid=17, OS id=5318
Fri Sep 23 03:01:04 2016
LGWR started with pid=18, OS id=5320
Fri Sep 23 03:01:04 2016
CKPT started with pid=19, OS id=5322
Fri Sep 23 03:01:04 2016
SMON started with pid=20, OS id=5324
Fri Sep 23 03:01:04 2016
RECO started with pid=21, OS id=5326
Fri Sep 23 03:01:04 2016
RBAL started with pid=22, OS id=5328
Fri Sep 23 03:01:04 2016
ASMB started with pid=23, OS id=5330
Fri Sep 23 03:01:04 2016
MMON started with pid=24, OS id=5332
Fri Sep 23 03:01:04 2016
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
Fri Sep 23 03:01:04 2016
MMNL started with pid=25, OS id=5336
NOTE: initiating MARK startup
starting up 1 shared server(s) ...
Starting background process MARK
Fri Sep 23 03:01:04 2016
MARK started with pid=27, OS id=5340
NOTE: MARK has subscribed
lmon registered with NM - instance number 1 (internal mem no 0)
Reconfiguration started (old inc 0, new inc 8)
List of instances:
1 2 (myinst: 1)
Global Resource Directory frozen
* allocate domain 0, invalid = TRUE
Communication channels reestablished
* domain 0 valid according to instance 2
* domain 0 valid = 1 according to instance 2
Master broadcasted resource hash value bitmaps
Non-local Process blocks cleaned out
LMS 0: 0 GCS shadows cancelled, 0 closed, 0 Xw survived
Set master node info
Submitted all remote-enqueue requests
Dwn-cvts replayed, VALBLKs dubious
All grantable enqueues granted
Submitted all GCS remote-cache requests
Fix write in gcs resources
Reconfiguration complete
Fri Sep 23 03:01:05 2016
LCK0 started with pid=30, OS id=5348
Starting background process RSMN
Fri Sep 23 03:01:05 2016
RSMN started with pid=31, OS id=5350
ORACLE_BASE not set in environment. It is recommended
that ORACLE_BASE be set in the environment
Fri Sep 23 03:01:06 2016
ALTER SYSTEM SET local_listener=' (ADDRESS=(PROTOCOL=TCP)(HOST=192.168.56.133)(PORT=1521))' SCOPE=MEMORY SID='rone_1';
ALTER DATABASE MOUNT /* db agent *//* {2:16649:255} */
NOTE: Loaded library: System
SUCCESS: diskgroup DATA was mounted
NOTE: dependency between database rone and diskgroup resource ora.DATA.dg is established
SUCCESS: diskgroup CRS was mounted
NOTE: dependency between database rone and diskgroup resource ora.CRS.dg is established
Successful mount of redo thread 1, with mount id 643541812
Database mounted in Shared Mode (CLUSTER_DATABASE=TRUE)
Lost write protection disabled
Completed: ALTER DATABASE MOUNT /* db agent *//* {2:16649:255} */
ALTER DATABASE OPEN /* db agent *//* {2:16649:255} */
Picked broadcast on commit scheme to generate SCNs
Fri Sep 23 03:01:14 2016
Thread 1 opened at log sequence 4
Current log# 2 seq# 4 mem# 0: +DATA/rone/onlinelog/group_2.262.923215683
Current log# 2 seq# 4 mem# 1: +CRS/rone/onlinelog/group_2.258.923215687
Successful open of redo thread 1
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Fri Sep 23 03:01:14 2016
SMON: enabling cache recovery
[5352] Successfully onlined Undo Tablespace 2.
Undo initialization finished serial:0 start:576094 end:576424 diff:330 (3 seconds)
Verifying file header compatibility for 11g tablespace encryption..
Verifying 11g file header compatibility for tablespace encryption completed
SMON: enabling tx recovery
Database Characterset is AL32UTF8
No Resource Manager plan active
Fri Sep 23 03:01:16 2016
Starting background process GTX0
Fri Sep 23 03:01:16 2016
GTX0 started with pid=34, OS id=5377
Starting background process RCBG
Fri Sep 23 03:01:16 2016
RCBG started with pid=35, OS id=5379
replication_dependency_tracking turned off (no async multimaster replication found)
Fri Sep 23 03:01:16 2016
minact-scn: Inst 1 is a slave inc#:8 mmon proc-id:5332 status:0x2
minact-scn status: grec-scn:0x0000.00000000 gmin-scn:0x0000.00000000 gcalc-scn:0x0000.00000000
Starting background process QMNC
Fri Sep 23 03:01:16 2016
QMNC started with pid=36, OS id=5381
Completed: ALTER DATABASE OPEN /* db agent *//* {2:16649:255} */
Fri Sep 23 03:01:19 2016
Starting background process CJQ0
Fri Sep 23 03:01:19 2016
CJQ0 started with pid=44, OS id=5418
Fri Sep 23 03:01:19 2016
ALTER SYSTEM SET service_names='bbone' SCOPE=MEMORY SID='rone_1';
minact-scn: Inst 1 is now the master inc#:8 mmon proc-id:5332 status:0x7
minact-scn status: grec-scn:0x0000.00000000 gmin-scn:0x0000.00000000 gcalc-scn:0x0000.00000000
minact-scn: Master returning as live inst:2 has inc# mismatch instinc:0 cur:8 errcnt:0
Fri Sep 23 03:01:35 2016
Reconfiguration started (old inc 8, new inc 10)
List of instances:
1 (myinst: 1)
Global Resource Directory frozen
* dead instance detected - domain 0 invalid = TRUE
Communication channels reestablished
Master broadcasted resource hash value bitmaps
Non-local Process blocks cleaned out
Fri Sep 23 03:01:35 2016
LMS 0: 0 GCS shadows cancelled, 0 closed, 0 Xw survived
Set master node info
Submitted all remote-enqueue requests
Dwn-cvts replayed, VALBLKs dubious
All grantable enqueues granted
Post SMON to start 1st pass IR
Submitted all GCS remote-cache requests
Post SMON to start 1st pass IR
Fix write in gcs resources
Reconfiguration complete
Fri Sep 23 03:01:35 2016
Instance recovery: looking for dead threads
Instance recovery: lock domain invalid but no dead threads

  

命令说明:

Command: srvctl relocate database -d <db_unique_name> {[-n <target>] [-w <timeout>] | -a [-r]} [-v]
-d <db_unique_name> Unique name of database to relocate
-n <target> Target node to which to relocate database
-w <timeout> Online relocation timeout in minutes
-a Abort failed online relocation
-r Remove target node of failed online relocation request from the candidate server list of administrator-managed RAC One Node database
-v Verbose output
-h Print usage

  

rac one node在线relocation的更多相关文章

  1. Oracle HA 之 RAC one node实战

    --创建rac one node步骤 安装grid软件,配置grid集群:安装oracle软件:dbca创建rac one node. >试验创建的rac one node数据库信息如下: gl ...

  2. RAC One Node转换为RAC

    1.查看状态 [oracle@rone1 ~]$ srvctl config database -d rone Database unique name: rone Database name: ro ...

  3. RAC转换为RAC One Node

    1.查看数据库状态 [oracle@rone1 ~]$ srvctl config database -d rone Database unique name: rone Database name: ...

  4. 【总文档】rac增加新节点的方法步骤 How to Add Node/Instance or Remove Node/Instance in 10gR2, 11gR1, 11gR2 and 12c Oracle Clusterware and RAC

    [总文档]How to Add Node/Instance or Remove Node/Instance in 10gR2, 11gR1, 11gR2 and 12c Oracle Clusterw ...

  5. 模拟生产搭建Standby RAC实验环境(11.2.0.4 DG)

    模拟生产搭建Standby RAC实验环境(11.2.0.4 DG) 环境:RHEL 6.5 + Oracle 11.2.0.4 GI.DB 1.需求背景介绍 2.准备工作 3.主库配置 4.备库配置 ...

  6. RAC的QA

    RAC: Frequently Asked Questions [ID 220970.1]   修改时间 13-JAN-2011     类型 FAQ     状态 PUBLISHED   Appli ...

  7. Oracle 11g RAC features

    <一,> oracle 11g r2 RAC提供了以下功能: 高可用:shared-everything 模式保证了单节点的故障不会停止服务,集群中的其他节点将快速接管 可扩展性:多节点分 ...

  8. 深入理解Oracle RAC 12c 笔记

    深入理解Oracle RAC 12c 跳转至: 导航. 搜索 文件夹 1 概述 2 集群件管理和故障诊断 3 执行实践 4 新特性 5 存储和ASM 6 应用设计上的问题 7 管理和调优一个复杂的RA ...

  9. Oracle 11gR2 RAC 新特性说明

    最近接触了一下Oracle 11g R2 的RAC,发现变化很大. 所以在自己动手做实验之前还是先研究下它的新特性比较好. 一.    官网介绍 先看一下Oracle 的官网文档里对RAC 新特性的一 ...

随机推荐

  1. [EF1]POCOs(Plain Old C# Object)Entity Framework 4.x: POCOs入门

    原文链接:http://www.cnblogs.com/hjzhang/archive/2011/05/18/2050530.html POCOs 是在Visual Studio 2010和ASP.N ...

  2. 基于Typecho CMS框架开发大中型应用

    基于Typecho CMS框架开发大中型应用 大中型应用暂且定义为:大于等于3个数据表的应用!汗吧! Typecho原本是一款博客系统,其框架体系有别于市面上一般意义MVC框架,主体代码以自创的Wid ...

  3. WPF以Clickonce方式发布后使用管理员身份运行

    WPF的程序,在发布时采用的Clickonce方式发布,Win7的用户安装完成之后,发现执行某些操作的时候会导致程序异常.在排查后发现,是权限问题导致.如图: 是执行File.Move时引发的异常:对 ...

  4. Hadoop新版本中map任务待处理split大小的计算方法

    1. split大小的计算公式 minSize=max{minSplitSize,mapred.min.split.size} (minSplitSize大小默认为1B) maxSize=mapred ...

  5. ZOJ 3713 In 7-bit (题意不好理解,十进制、二进制、十六进制的转换问题)

    考验理解能力的时候到了 T^T Very often, especially in programming contests, we treat a sequence of non-whitespac ...

  6. Android中常用的颜色

    代码: <?xml version=”″ ?> <resources> <color name=”white”>#ffffff</color><! ...

  7. Linux知识积累 (9) 创建用户、分配权限和更改所有者

    一.useradd和adduser 1.useradd命令: 用于Linux中创建的新的系统用户. useradd可用来建立用户帐号.帐号建好之后,再用passwd设定帐号的密码. 而可用userde ...

  8. week 10--了解原型设计的工具

    了解原型设计的工具 随着原型应用的普及,越来越多的产品会采用原型设计来表述.完善整体需求,这样做自然有其原因.首先原型的制作成本和演示成本都比较低,除非比较复杂或者保真度要求比较高的原型,在描述一个功 ...

  9. Django与Vue交互,实现注册的图片验证码没有加载的原因

    注册功能之图片验证码: 1.实现过程: 传递uuid给后端,再发送图片验证码的请求给后端,后端存储uuid并生成图片验证码保存到redis,然后将图片验证码返回给前端. 当用户输入图片验证码的时候,前 ...

  10. PO_从PO追溯PR的方式和表(分析)

    2014-06-03 Created By BaoXinjian