在RAC 环境下使用DataPump工具,alert log会出现修改SERVICE_NAMES参数的提示。
如:
Sat Sep 1 13:33:20 2012
ALTER SYSTEM SETservice_names='pmos','SYS$SYS.KUPC$C_1_20120901133317.PMOS' SCOPE=MEMORY SID='pmos1';
Sat Sep 1 13:33:20 2012
ALTER SYSTEM SETservice_names='SYS$SYS.KUPC$C_1_20120901133317.PMOS','pmos','SYS$SYS.KUPC$S_1_20120901133317.PMOS'SCOPE=MEMORY SID='pmos1';
kupprdp: master process DM00 started withpid=46, OS id=1171590
to execute - SYS.KUPM$MCP.MAIN('SYS_EXPORT_TABLE_03', 'PMOS','KUPC$C_1_20120901133317', 'KUPC$S_1_20120901133317', 0);
kupprdp: worker process DW01 started withworker id=1, pid=48, OS id=1830944
to execute - SYS.KUPW$WORKER.MAIN('SYS_EXPORT_TABLE_03', 'PMOS');
Sat Sep 1 13:34:45 2012
ALTER SYSTEM SETservice_names='SYS$SYS.KUPC$S_1_20120901133317.PMOS','pmos' SCOPE=MEMORYSID='pmos1';
……
Sat Sep 1 14:21:43 2012
ALTER SYSTEM SETservice_names='SYS$SYS.KUPC$S_1_20120901142120.PMOS','pmos' SCOPE=MEMORYSID='pmos1';
Sat Sep 1 14:21:43 2012
ALTER SYSTEM SETservice_names='pmos' SCOPE=MEMORY SID='pmos1';
Sat Sep 1 14:21:58 2012
RFS[1]: Archived Log:'/arch1/2_14256_654056896.dbf'
DataPump不会修改已经存在的servicename,但会添加一个新到到操作队列。 比如之前是PMOS1和PMOS2,那么会在DataPump 开始的时候添加一个service name到到操作队列,到操作结束之后在修改为原来的值。
在上面的alert log中可以验证,操作开始是执行:
ALTER SYSTEM SETservice_names='pmos','SYS$SYS.KUPC$C_1_20120901133317.PMOS' SCOPE=MEMORYSID='pmos1';
操作结束之后执行:
ALTER SYSTEM SET service_names='pmos'SCOPE=MEMORY SID='pmos1';
我们不用关心DataPump 修改的SERVICE_NAME的值,如果instance 用默认的database name来作为service name,那么在添加新的service name到操作队列时,alert 警告中不会显示service_name(默认值database name),并且在操作结束之后,会将service name 设置为null。
设置为null 不会有其他影响,因为service 的默认值一直都是databaename。如果在data pump 操作结束后重启了监听,那么pmon也会自动把service 注册到listener里。
参考:
On RAC, expdp Removes the Service Name [ID1269319.1]
DataPump Export: Rac InstanceStartup/Shutdown Alters SERVICE_NAMES [ID 363396.1]
-------------------------------------------------------------------------------------------------------
版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!
Skype: tianlesoftware
QQ: tianlesoftware@gmail.com
Email: tianlesoftware@gmail.com
Blog: http://www.tianlesoftware.com
Weibo: http://weibo.com/tianlesoftware
Twitter: http://twitter.com/tianlesoftware
Facebook: http://www.facebook.com/tianlesoftware
Linkedin: http://cn.linkedin.com/in/tianlesoftware
-------加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请----
DBA1 群:62697716(满); DBA2 群:62697977(满) DBA3 群:62697850(满)
DBA 超级群:63306533(满); DBA4 群:83829929 DBA5群: 142216823
DBA6 群:158654907 DBA7 群:172855474 DBA总群:104207940