TimesTen修改CacheGroup管理使用者在ORACLE端及TT端密碼
密碼管理一直是運維中安全管理的一部分,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=================================================================
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
ttisql -connstr
備節點:
$ ttadmin -cachestop $DSN
$ ttadmin -repstop $DSN
或
ttisql -connstr
ttisql -connstr
3、在TT庫主備節點同步修改Cache Group管理使用者密碼:
主節點:
ttisql -connstr
備節點:
ttisql -connstr
4、開啟CacheAgent和Replication程式:
主節點:
$ ttadmin -cachestart $DSN
$ ttadmin -repstart $DSN
或
ttisql -cachestart
ttisql -repstart
備節點:
$ ttadmin -cachestop $DSN
$ ttadmin -repstop $DSN
或
ttisql -connstr
ttisql -connstr
5、再一次在主備節點重啟CacheAgent程式:
主節點:
$ ttadmin -cachestart $DSN
$ ttadmin -repstart $DSN
或
ttisql -cachestart
ttisql -repstart
備節點:
$ ttadmin -cachestop $DSN
$ ttadmin -repstop $DSN
或
ttisql -connstr
ttisql -connstr
6、重啟Cache Group成功後,分別在主備節點執行ttstatus命令檢查Cache Group和Replication程式執行狀態。
$ttstatus
--檢查主備複製及Cache Group重新整理狀態:
ttisql -connstr
ttisql -connstr
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
檢查tterrors.log日誌資訊
檢查cachegroup重新整理狀態
=============End=================================================================
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24930246/viewspace-1176581/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Windows10修改遠端桌面密碼Windows密碼
- Oracle 限制業務使用者自身修改密碼Oracle密碼
- oracle如何修改單個使用者密碼永不過期Oracle密碼
- 忘記oracle的sys密碼該如何重置;附如何修改oracle資料庫使用者密碼Oracle密碼資料庫
- 修改git使用者密碼Git密碼
- macos下parallel Desktop 中centos忘記密碼及修改原使用者密碼MacParallelCentOS密碼
- 遷移oracle使用者密碼Oracle密碼
- Oracle 重置密碼及基本操作Oracle密碼
- 推特建議所有使用者修改密碼:故障導致使用者密碼在公司內部曝光密碼
- 怎樣修改網站管理密碼?網站密碼
- 在Linux中修改MySQL的密碼LinuxMySql密碼
- 管理使用者前後端後端
- mysql8.0+修改使用者密碼MySql密碼
- Ubuntu18.04修改使用者密碼Ubuntu密碼
- Kali Linux 2020.1修改root使用者密碼Linux密碼
- mysql如何修改root使用者的密碼MySql密碼
- Mysql的下載,安裝,遠端連線,密碼加密規則修改。MySql密碼加密
- 修改Jenkins預設管理員admin密碼Jenkins密碼
- 任意使用者密碼重置(二):重置憑證接收端可篡改密碼
- 檢視及修改遠端倉庫地址
- Kali Linux 2020.1快速修改root使用者密碼Linux密碼
- 公司網站使用者名稱密碼修改?網站密碼
- 無密碼驗證:客戶端密碼客戶端
- git本地修改賬號密碼及郵箱Git密碼
- 公司網站怎麼修改密碼,如何安全地修改公司網站的管理員密碼網站密碼
- Oracle 11g的使用者密碼預設為180天過期的修改方法Oracle密碼
- ansible 修改密碼密碼
- Ubuntu 修改密碼Ubuntu密碼
- oracle使用者密碼有效期設定Oracle密碼
- Linux基礎命令---修改使用者密碼passwdLinux密碼
- 修改使用者的密碼為無限期限密碼
- MongoDB 資料庫安全之使用者密碼修改MongoDB資料庫密碼
- SSH 遠端登入「記住密碼」密碼
- Linux雲端計算-04_Linux使用者及許可權管理Linux
- 公司網站密碼怎麼修改?修改密碼網站?網站密碼
- win10 mstsc怎麼儲存遠端密碼_win10 mstsc如何儲存遠端密碼Win10密碼
- 【轉載】Linux忘記root密碼--進入單使用者模式修改root密碼Linux密碼模式
- 網站登入密碼admin怎麼修改,如何安全地修改網站管理員登入密碼網站密碼
- mysql-8.0.16-winx64/Linux修改root使用者密碼MySqlLinux密碼