设为首页 加入收藏

TOP

TimesTen修改CacheGroup管理用户在ORACLE端及TT端密码【TimesTen运维基础】
2015-07-24 11:47:54 来源: 作者: 【 】 浏览:2
Tags:TimesTen 修改 CacheGroup 管理 用户 ORACLE 端及 密码 基础
密码管理一直是运维中安全管理的一部分,CacheGroup管理用户密码的修改虽然不复杂,但是对于生产来说,修改不完善比较容易引发故障。这里介绍一下CacheGroup管理用户密码的修改,便于入门的兄弟学习。
1、在主备节点修改sys.odbc.ini配置文件
$ cd $TT_HOME/info
$ vi sys.odbc.ini
[$DSN]
OracleNetServiceName=ORA11G
OraclePWD=cgpasswd ##此处即修改后的密码

2、停掉主备节点CacheAgent和Replication
主节点:
$ ttadmin -cachestop $DSN
$ ttadmin -repstop $DSN

ttisql -connstr -v 1 -e "call ttcachestop;bye;"
ttisql -connstr -v 1 -e "call ttcachestop;bye;"

备节点:
$ ttadmin -cachestop $DSN
$ ttadmin -repstop $DSN

ttisql -connstr -v 1 -e "call ttcachestop;bye;"
ttisql -connstr -v 1 -e "call ttcachestop;bye;"

3、在TT库主备节点同步修改Cache Group管理用户密码:

主节点:
ttisql -connstr -v 1 -e "call ttcacheuidpwdset('cgadmin','cgpasswd');bye;"

备节点:
ttisql -connstr -v 1 -e "call ttcacheuidpwdset('cgadmin','cgpasswd');bye;"

4、开启CacheAgent和Replication进程:
主节点:
$ ttadmin -cachestart $DSN
$ ttadmin -repstart $DSN

ttisql -cachestart -v 1 -e "call ttcachestart;bye;"
ttisql -repstart -v 1 -e "call ttcachestart;bye;"

备节点:
$ ttadmin -cachestop $DSN
$ ttadmin -repstop $DSN

ttisql -connstr -v 1 -e "call ttcachestart;bye;"
ttisql -connstr -v 1 -e "call ttrepstart;bye;"

5、再一次在主备节点重启CacheAgent进程:
主节点:
$ ttadmin -cachestart $DSN
$ ttadmin -repstart $DSN

ttisql -cachestart -v 1 -e "call ttcachestart;bye;"
ttisql -repstart -v 1 -e "call ttcachestart;bye;"

备节点:
$ ttadmin -cachestop $DSN
$ ttadmin -repstop $DSN

ttisql -connstr -v 1 -e "call ttcachestart;bye;"
ttisql -connstr -v 1 -e "call ttrepstart;bye;"

6、重启Cache Group成功后,分别在主备节点执行ttstatus命令检查Cache Group和Replication进程运行状态。
$ttstatus

--检查主备复制及Cache Group刷新状态:
ttisql -connstr -v 1 -e "call ttbookmark;bye;"
ttisql -connstr -v 1 -e "select 'PERM' type,
to_char(round(perm_allocated_size/1024)),
to_char(round(perm_in_use_size/1024)),
to_char(round(perm_in_use_high_water/1024)),
to_char(round(perm_in_use_size*100/perm_allocated_size,2))
from sys.monitor
union all
select 'TEMP' type,
to_char(round(temp_allocated_size/1024)),
to_char(round(temp_in_use_size/1024)),
to_char(round(temp_in_use_high_water/1024)),
to_char(round(temp_in_use_size*100/temp_allocated_size,2))
from sys.monitor;
call ttBlockInfo;bye;"

7、修改TT端Cache Group管理用户口令操作标准流程
登陆主节点,修改Cache Group管理用户口令:
主节点:
$ ttisql $DSN
Command> alter user cgadmin identified by "cgpasswd";
User altered.
The command succeeded.

8、在主节点修改成功后,登陆备节点验证口令:
$ttisql "dsn=$DSN;uid=cgadmin;pwd=Szng!123"

Copyright (c) 1996-2011, Oracle. All rights reserved.
Type ? or "help" for help, type "exit" to quit ttIsql.

connect "dsn=cbe;uid=TTCBE;pwd=Szng!123";
Command>
至此,主备密码同步,修改密码成功。
注意事项
9、检查主备同步
通过ttisql -connstr -v 1 -e "call ttbookmark;bye;" 命令检查主备同步情况。
检查tterrors.log日志信息
检查cachegroup刷新状态

=============End=================================================================
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇CentOS-6.4-DVD系统中安装Oracle-.. 下一篇OracleRAC环境下配置statspack

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·Announcing October (2025-12-24 15:18:16)
·MySQL有什么推荐的学 (2025-12-24 15:18:13)
·到底应该用MySQL还是 (2025-12-24 15:18:11)
·进入Linux世界大门的 (2025-12-24 14:51:47)
·Download Linux | Li (2025-12-24 14:51:44)