楼主: wzy25

[精华] oracle 10gas 之 集群

[复制链接]
论坛徽章:
62
马上加薪
日期:2014-02-19 11:55:142011新春纪念徽章
日期:2011-02-18 11:43:332010广州亚运会纪念徽章:田径
日期:2011-02-17 18:03:352011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:41:502011新春纪念徽章
日期:2011-01-25 15:41:012010广州亚运会纪念徽章:三项全能
日期:2010-11-15 13:36:51ITPUB9周年纪念徽章
日期:2010-10-08 09:34:02
11#
 楼主| 发表于 2004-9-14 12:15 | 只看该作者
到此为止,集群已经配置完成,接下来讲如何发布基于基于集群的程序。


注意事项

1.由于是 file-based repository ,考虑到性能没有 data-based repository的性能好。再这种方式下,最好不要创建多于六个node的集群。
2.如果你的应用涉及到大量得session操作,
需要耗用很多资源进行session复制,那么需要对instance进行分组,减少session复制带来的资源消耗。

使用道具 举报

回复
论坛徽章:
0
12#
发表于 2004-9-14 15:41 | 只看该作者
你好,在配置IAS Cluster过程中,当进行joinfarm的时候出现了错误。
在两台物理server中分别安装了IAS,相同的操作系统rhel3,相同的用户,相同的安装路径。同样j2ee and webcache类型,构建file-based群集。
server1:192.168.18.51 test1.myias.com server2:192.168.18.52 test2.myias.com
完成安装后,进行群集的配置,test1作为Repository host
[cluster@test1 cluster]$dcmctl getrepositoryid
test1.myias.com:7101
[cluster@test1 cluster]$dcmctl joinfarm -r test1.myias.com:7101

//操作是成功的

然后登陆test2服务器
[cluster@test21 cluster]$dcmctl joinfarm -r test1.myias.com:7101
出现错误,错误消息如下:
dcmctl joinfarm -r hutu.bannerline.com:7101

//----------------------------------------------

ADMN-202500
The exception 202037, has occurred in the cache layer of the persistence manager

"The repository was not found.
Resolution: The most likely cause is the DCM daemon at the repository host is not running. If the daemon is running verify the correct cache repository id is being used. Run dcmctl getRepositoryId at the current instance and at the repository instance. Both ids should be the same. Also make sure that the current instance and the repository instance have the same SSL mode in $ORACLE_HOME/dcm/config/dcmCache.xml. All the instances should have consistent SSL mode.".
Please, refer to the base exception for the details.
oracle.ias.sysmgmt.exception.CachePersistenceException: The exception 202037, has occurred in the cache layer of the persistence manager

"The repository was not found.
Resolution: The most likely cause is the DCM daemon at the repository host is not running. If the daemon is running verify the correct cache repository id is being used. Run dcmctl getRepositoryId at the current instance and at the repository instance. Both ids should be the same. Also make sure that the current instance and the repository instance have the same SSL mode in $ORACLE_HOME/dcm/config/dcmCache.xml. All the instances should have consistent SSL mode.".
Resolution: Please, refer to the base exception for the details.
        at oracle.ias.sysmgmt.persistence.cache.CacheTopology.getCurrentCacheInventory(Unknown Source)
        at oracle.ias.sysmgmt.persistence.cache.CacheTopology.getCurrentCacheInventory(Unknown Source)
        at oracle.ias.sysmgmt.persistence.cache.CacheTopology.getCacheInventory(Unknown Source)
        at oracle.ias.sysmgmt.persistence.cache.CacheTopology.farms(Unknown Source)
        at oracle.ias.sysmgmt.persistence.cache.CacheTopology.instances(Unknown Source)
        at oracle.ias.sysmgmt.persistence.PersistenceManager.getPersistenceInstance(Unknown Source)
        at oracle.ias.sysmgmt.persistence.PersistenceManager.getPersistenceInstance(Unknown Source)
        at oracle.ias.sysmgmt.persistence.PersistenceManager.getPersistenceInstance(Unknown Source)
        at oracle.ias.sysmgmt.persistence.PersistenceManager.create(Unknown Source)
        at oracle.ias.sysmgmt.persistence.PersistenceManager.<init>(Unknown Source)
        at oracle.ias.sysmgmt.task.FarmManager.joinFarm(Unknown Source)
        at oracle.ias.sysmgmt.clustermanagement.IASInstanceImpl.joinFarm(Unknown Source)
        at oracle.ias.sysmgmt.cmdline.DcmCmdLine.joinFarm(Unknown Source)
        at oracle.ias.sysmgmt.cmdline.DcmCmdLine.execute(Unknown Source)
        at oracle.ias.sysmgmt.cmdline.DcmCmdLine.main(Unknown Source)
Local Stack:
oracle.ias.sysmgmt.exception.PersistenceException: The repository was not found.
Resolution: The most likely cause is the DCM daemon at the repository host is not running. If the daemon is running verify the correct cache repository id is being used. Run dcmctl getRepositoryId at the current instance and at the repository instance. Both ids should be the same. Also make sure that the current instance and the repository instance have the same SSL mode in $ORACLE_HOME/dcm/config/dcmCache.xml. All the instances should have consistent SSL mode.
        at oracle.ias.sysmgmt.persistence.cache.InventoryLoader.load(Unknown Source)
        at oracle.ias.cache.CacheHandle.findObject(Unknown Source)
        at oracle.ias.cache.CacheHandle.locateObject(Unknown Source)
        at oracle.ias.cache.CacheAccess.get(Unknown Source)
        at oracle.ias.sysmgmt.persistence.cache.CacheTopology.getCurrentCacheInventory(Unknown Source)
        at oracle.ias.sysmgmt.persistence.cache.CacheTopology.getCurrentCacheInventory(Unknown Source)
        at oracle.ias.sysmgmt.persistence.cache.CacheTopology.getCacheInventory(Unknown Source)
        at oracle.ias.sysmgmt.persistence.cache.CacheTopology.farms(Unknown Source)
        at oracle.ias.sysmgmt.persistence.cache.CacheTopology.instances(Unknown Source)
        at oracle.ias.sysmgmt.persistence.PersistenceManager.getPersistenceInstance(Unknown Source)
        at oracle.ias.sysmgmt.persistence.PersistenceManager.getPersistenceInstance(Unknown Source)
        at oracle.ias.sysmgmt.persistence.PersistenceManager.getPersistenceInstance(Unknown Source)
        at oracle.ias.sysmgmt.persistence.PersistenceManager.create(Unknown Source)
        at oracle.ias.sysmgmt.persistence.PersistenceManager.<init>(Unknown Source)
        at oracle.ias.sysmgmt.task.FarmManager.joinFarm(Unknown Source)
        at oracle.ias.sysmgmt.clustermanagement.IASInstanceImpl.joinFarm(Unknown Source)
        at oracle.ias.sysmgmt.cmdline.DcmCmdLine.joinFarm(Unknown Source)
        at oracle.ias.sysmgmt.cmdline.DcmCmdLine.execute(Unknown Source)
        at oracle.ias.sysmgmt.cmdline.DcmCmdLine.main(Unknown Source)



//-------------------------------------------------

可是通过哦opmnct stats命令查看,两个ias instance中的dcm-daemon均为alive,尝试过好几次,均出现改问题。不知道是什么问题!!!
感谢你的帮助

使用道具 举报

回复
论坛徽章:
62
马上加薪
日期:2014-02-19 11:55:142011新春纪念徽章
日期:2011-02-18 11:43:332010广州亚运会纪念徽章:田径
日期:2011-02-17 18:03:352011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:41:502011新春纪念徽章
日期:2011-01-25 15:41:012010广州亚运会纪念徽章:三项全能
日期:2010-11-15 13:36:51ITPUB9周年纪念徽章
日期:2010-10-08 09:34:02
13#
 楼主| 发表于 2004-9-14 20:41 | 只看该作者
检查一下 /etc/hosts文件
把  test1.myias.com  的解析加上

使用道具 举报

回复
论坛徽章:
0
14#
发表于 2004-9-15 09:20 | 只看该作者
/etc/hosts文件没有问题,每个server上都有彼此的解析声明。
192.168.18.51 test1.myias.com test1
192.168.18.52 test2.myias.com test2
尝试每个instance使用自己作为Repository host,操作均成功,只是加入远端的时候报错,怀疑网络或者系统存在问题,但是仔细检查始终没有结果。

使用道具 举报

回复
论坛徽章:
62
马上加薪
日期:2014-02-19 11:55:142011新春纪念徽章
日期:2011-02-18 11:43:332010广州亚运会纪念徽章:田径
日期:2011-02-17 18:03:352011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:41:502011新春纪念徽章
日期:2011-01-25 15:41:012010广州亚运会纪念徽章:三项全能
日期:2010-11-15 13:36:51ITPUB9周年纪念徽章
日期:2010-10-08 09:34:02
15#
 楼主| 发表于 2004-9-15 10:35 | 只看该作者
我刚才在双机上测试过了,没有问题得
node2

[ias10g@findev Disk1]$ dcmctl whichFarm
Farm Name: .tpdata.ias10g.OraHome1.dcm.repository
Host Instance: iastest.finproduction.tplife.com
Host Name: finproduction.tplife.com
Repository Type: Distributed File Based
SSL In Use: false

node1

[ias10g@finproduction home]$ dcmctl  whichfarm
Farm Name: .tpdata.ias10g.OraHome1.dcm.repository
Host Instance: iastest.finproduction.tplife.com
Host Name: finproduction.tplife.com
Repository Type: Distributed File Based (host)
SSL In Use: false

使用道具 举报

回复
论坛徽章:
62
马上加薪
日期:2014-02-19 11:55:142011新春纪念徽章
日期:2011-02-18 11:43:332010广州亚运会纪念徽章:田径
日期:2011-02-17 18:03:352011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:41:502011新春纪念徽章
日期:2011-01-25 15:41:012010广州亚运会纪念徽章:三项全能
日期:2010-11-15 13:36:51ITPUB9周年纪念徽章
日期:2010-10-08 09:34:02
16#
 楼主| 发表于 2004-9-15 10:59 | 只看该作者
我刚才在双机上测试过了,没有问题得
node2

[ias10g@findev Disk1]$ dcmctl whichFarm
Farm Name: .tpdata.ias10g.OraHome1.dcm.repository
Host Instance: iastest.finproduction.tplife.com
Host Name: finproduction.tplife.com
Repository Type: Distributed File Based
SSL In Use: false

node1

[ias10g@finproduction home]$ dcmctl  whichfarm
Farm Name: .tpdata.ias10g.OraHome1.dcm.repository
Host Instance: iastest.finproduction.tplife.com
Host Name: finproduction.tplife.com
Repository Type: Distributed File Based (host)
SSL In Use: false

使用道具 举报

回复
论坛徽章:
0
17#
发表于 2004-9-15 11:17 | 只看该作者
能把两个节点的hosts贴出来么?的确像你说的好像是它的问题,刚刚改了一下,结果以本机作Repository Host也出现了问题。
下面是我作测试使用的
server1:
127.0.0.1 localhost.localdomain localhost
192.168.18.51 test1.myias.com test1
192.168.18.52 test2.myias.com test2

server2:
127.0.0.1 localhost.localdomain localhost
192.168.18.51 test1.myias.com test1
192.168.18.52 test2.myias.com test2

使用道具 举报

回复
论坛徽章:
62
马上加薪
日期:2014-02-19 11:55:142011新春纪念徽章
日期:2011-02-18 11:43:332010广州亚运会纪念徽章:田径
日期:2011-02-17 18:03:352011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:41:502011新春纪念徽章
日期:2011-01-25 15:41:012010广州亚运会纪念徽章:三项全能
日期:2010-11-15 13:36:51ITPUB9周年纪念徽章
日期:2010-10-08 09:34:02
18#
 楼主| 发表于 2004-9-15 12:09 | 只看该作者
cat /etc/hosts

127.0.0.1       localhost.localdomain localhost
10.1.18.1   finproduction.tplife.com finproduction
10.1.18.2          findev.tplife.com findev

使用道具 举报

回复
论坛徽章:
62
马上加薪
日期:2014-02-19 11:55:142011新春纪念徽章
日期:2011-02-18 11:43:332010广州亚运会纪念徽章:田径
日期:2011-02-17 18:03:352011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:41:502011新春纪念徽章
日期:2011-01-25 15:41:012010广州亚运会纪念徽章:三项全能
日期:2010-11-15 13:36:51ITPUB9周年纪念徽章
日期:2010-10-08 09:34:02
19#
 楼主| 发表于 2004-9-15 12:10 | 只看该作者
server 1
cat /etc/hosts

127.0.0.1       localhost.localdomain localhost
10.1.18.1   finproduction.tplife.com finproduction
10.1.18.2          findev.tplife.com findev

server 2

[root@findev root]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1     localhost.localdomain localhost
10.1.3.10       pard_standby.tplife.com pard_standby
10.1.18.2          findev.tplife.com findev
10.1.18.1           finproduction.tplife.com

使用道具 举报

回复
论坛徽章:
0
20#
发表于 2004-9-16 09:36 | 只看该作者
更换了两台机器,由操作系统开始从新安装,没有出现任何问题,非常轻松的加入了。之前的Linux是我的长期开发环境,可能因为某些网络设置或者其他问题造成的。准备继续鼓捣鼓捣,看看究竟是什么原因。非常感谢!!!

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表