TimesTen更改CacheGroup管理用户ORACLE结束和TT结束password【TimesTen操作和维修基地】
Oracle 操作 管理 用户 更改 结束 password 维修
2023-09-27 14:27:01 时间
password管理一直操作的一部分的安全管理和维护。CacheGroup管理用户password虽然并不复杂变化。然而,这是用于生产,改不好比较easy导致失败。简介点击这里CacheGroup管理用户password的改动。便于入门的兄弟学习。
1、在主备节点改动sys.odbc.ini配置文件
$ cd $TT_HOME/info
$ vi sys.odbc.ini
[$DSN]
OracleNetServiceName=ORA11G
OraclePWD=cgpasswd ##此处即改动后的password
2、停掉主备节点CacheAgent和Replication
主节点:
$ ttadmin -cachestop $DSN
$ ttadmin -repstop $DSN
或
ttisql -connstr <DSN> -v 1 -e "call ttcachestop;bye;"
ttisql -connstr <DSN> -v 1 -e "call ttcachestop;bye;"
备节点:
$ ttadmin -cachestop $DSN
$ ttadmin -repstop $DSN
或
ttisql -connstr <DSN> -v 1 -e "call ttcachestop;bye;"
ttisql -connstr <DSN> -v 1 -e "call ttcachestop;bye;"
3、在TT库主备节点同步改动Cache Group管理用户password:
主节点:
ttisql -connstr <DSN> -v 1 -e "call ttcacheuidpwdset('cgadmin','cgpasswd');bye;"
备节点:
ttisql -connstr <DSN> -v 1 -e "call ttcacheuidpwdset('cgadmin','cgpasswd');bye;"
4、开启CacheAgent和Replication进程:
主节点:
$ ttadmin -cachestart $DSN
$ ttadmin -repstart $DSN
或
ttisql -cachestart <DSN> -v 1 -e "call ttcachestart;bye;"
ttisql -repstart <DSN> -v 1 -e "call ttcachestart;bye;"
备节点:
$ ttadmin -cachestop $DSN
$ ttadmin -repstop $DSN
或
ttisql -connstr <DSN> -v 1 -e "call ttcachestart;bye;"
ttisql -connstr <DSN> -v 1 -e "call ttrepstart;bye;"
5、再一次在主备节点重新启动CacheAgent进程:
主节点:
$ ttadmin -cachestart $DSN
$ ttadmin -repstart $DSN
或
ttisql -cachestart <DSN> -v 1 -e "call ttcachestart;bye;"
ttisql -repstart <DSN> -v 1 -e "call ttcachestart;bye;"
备节点:
$ ttadmin -cachestop $DSN
$ ttadmin -repstop $DSN
或
ttisql -connstr <DSN> -v 1 -e "call ttcachestart;bye;"
ttisql -connstr <DSN> -v 1 -e "call ttrepstart;bye;"
6、重新启动Cache Group成功后,分别在主备节点执行ttstatus命令检查Cache Group和Replication进程执行状态。
$ttstatus
--检查主备复制及Cache Group刷新状态:
ttisql -connstr <DSN> -v 1 -e "call ttbookmark;bye;"
ttisql -connstr <DSN> -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 ?
1、在主备节点改动sys.odbc.ini配置文件
$ cd $TT_HOME/info
$ vi sys.odbc.ini
[$DSN]
OracleNetServiceName=ORA11G
OraclePWD=cgpasswd ##此处即改动后的password
2、停掉主备节点CacheAgent和Replication
主节点:
$ ttadmin -cachestop $DSN
$ ttadmin -repstop $DSN
或
ttisql -connstr <DSN> -v 1 -e "call ttcachestop;bye;"
ttisql -connstr <DSN> -v 1 -e "call ttcachestop;bye;"
备节点:
$ ttadmin -cachestop $DSN
$ ttadmin -repstop $DSN
或
ttisql -connstr <DSN> -v 1 -e "call ttcachestop;bye;"
ttisql -connstr <DSN> -v 1 -e "call ttcachestop;bye;"
3、在TT库主备节点同步改动Cache Group管理用户password:
主节点:
ttisql -connstr <DSN> -v 1 -e "call ttcacheuidpwdset('cgadmin','cgpasswd');bye;"
备节点:
ttisql -connstr <DSN> -v 1 -e "call ttcacheuidpwdset('cgadmin','cgpasswd');bye;"
4、开启CacheAgent和Replication进程:
主节点:
$ ttadmin -cachestart $DSN
$ ttadmin -repstart $DSN
或
ttisql -cachestart <DSN> -v 1 -e "call ttcachestart;bye;"
ttisql -repstart <DSN> -v 1 -e "call ttcachestart;bye;"
备节点:
$ ttadmin -cachestop $DSN
$ ttadmin -repstop $DSN
或
ttisql -connstr <DSN> -v 1 -e "call ttcachestart;bye;"
ttisql -connstr <DSN> -v 1 -e "call ttrepstart;bye;"
5、再一次在主备节点重新启动CacheAgent进程:
主节点:
$ ttadmin -cachestart $DSN
$ ttadmin -repstart $DSN
或
ttisql -cachestart <DSN> -v 1 -e "call ttcachestart;bye;"
ttisql -repstart <DSN> -v 1 -e "call ttcachestart;bye;"
备节点:
$ ttadmin -cachestop $DSN
$ ttadmin -repstop $DSN
或
ttisql -connstr <DSN> -v 1 -e "call ttcachestart;bye;"
ttisql -connstr <DSN> -v 1 -e "call ttrepstart;bye;"
6、重新启动Cache Group成功后,分别在主备节点执行ttstatus命令检查Cache Group和Replication进程执行状态。
$ttstatus
--检查主备复制及Cache Group刷新状态:
ttisql -connstr <DSN> -v 1 -e "call ttbookmark;bye;"
ttisql -connstr <DSN> -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>
至此,主备password同步,改动password成功。
注意事项
9、检查主备同步
通过ttisql -connstr <DSN> -v 1 -e "call ttbookmark;bye;" 命令检查主备同步情况。
检查tterrors.log日志信息
检查cachegroup刷新状态
=============End=================================================================
版权声明:本文博主原创文章,博客,未经同意不得转载。
相关文章
- 调用脚本的方式自动的创建或者是更新oracle数据库自带的Seq序列号的值
- oracle提高查询效率的34条方法
- python操作oracle完整教程
- oracle数据库中创建具有自增主键的表
- Navicat能连接,但pl/sql无法连接oracle数据库
- Oracle 常用操作【01】修改、更新数据
- 重磅!JDK 17 发布,Oracle 宣布从 JDK 17 开始正式免费。。
- Oracle报错ORA-12516 TNS:listener could not find available handler with matching protocol stack
- [置顶] Oracle学习路线与方法
- Ubuntu-20.04.1 安装 oracle 12.2.0.1 数据库database软件
- Oracle 11gR2 11.2.0.1 ( 11.2.0.1的BUG?):ohasd不能正常启动:ioctl操作:npohasd的问题:【chmod a+wr /var/tmp/.oracle/npohasd】
- ORACLE SYNONYM详解
- Oracle 索引数据字典、基于函数的索引
- oracle 操作实例(一)----redolog 损坏恢复
- oracle表查询优化
- Oracle集群(RAC)时间同步(ntp和CTSS)
- Oracle备份的几种方式
- Linux下oracle数据库启动和关闭操作
- Oracle系列:记录Record
- Oracle 11g安装步骤详谈
- Oracle Data Integrator 介绍
- Oracle分区表常见操作