RAC 는 Oacle, grid 사용자 암 호 를 직접 수정 할 수 있 습 니까?

6682 단어 RACOracle
RAC (11g, 12c) 를 설치 하면 Oacle, grid 의 비밀 번 호 를 수정 할 수 있 습 니까?인터넷 에서 찾 아 봤 는데 괜 찮 대요. 오늘 테스트 해 볼 게 요.
oracle 비밀번호 수정:
[root@rac1 ~]# passwd oracle
Changing password for user oracle.
New password: 
BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: is too simple
Retype new password: 
passwd: all authentication tokens updated successfully.

인증:
[oracle@rac1 ~]$ ssh rac1 date
Wed Sep 10 11:08:06 CST 2014
[oracle@rac1 ~]$ ssh rac2 date
Wed Sep 10 11:08:10 CST 2014
[oracle@rac1 ~]$ ssh rac1-priv date
Wed Sep 10 11:08:12 CST 2014
[oracle@rac1 ~]$ ssh rac2-priv date
Wed Sep 10 11:08:18 CST 2014

[oracle@rac2 ~]$ ssh rac1 date
Wed Sep 10 11:23:17 CST 2014
[oracle@rac2 ~]$ ssh rac2 date
Wed Sep 10 11:23:20 CST 2014
[oracle@rac2 ~]$ ssh rac1-priv date
Wed Sep 10 11:23:23 CST 2014
[oracle@rac2 ~]$ ssh rac2-priv date
Wed Sep 10 11:23:27 CST 2014

데이터베이스 상태:
[grid@rac1 ~]$ srvctl status database -d ora12c
Instance ora12c1 is running on node rac1
Instance ora12c2 is running on node rac2

[grid@rac1 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.CRS.dg
               ONLINE  ONLINE       rac1                     STABLE
               ONLINE  ONLINE       rac2                     STABLE
ora.DAT.dg
               ONLINE  ONLINE       rac1                     STABLE
               ONLINE  ONLINE       rac2                     STABLE
ora.LISTENER.lsnr
               ONLINE  ONLINE       rac1                     STABLE
               ONLINE  ONLINE       rac2                     STABLE
ora.asm
               ONLINE  ONLINE       rac1                     Started,STABLE
               ONLINE  ONLINE       rac2                     Started,STABLE
ora.net1.network
               ONLINE  ONLINE       rac1                     STABLE
               ONLINE  ONLINE       rac2                     STABLE
ora.ons
               ONLINE  ONLINE       rac1                     STABLE
               ONLINE  ONLINE       rac2                     STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       rac1                     STABLE
ora.MGMTLSNR
      1        ONLINE  ONLINE       rac1                     169.254.124.125 10.10.10.60,STABLE
ora.cvu
      1        ONLINE  ONLINE       rac1                     STABLE
ora.mgmtdb
      1        ONLINE  ONLINE       rac1                     Open,STABLE
ora.oc4j
      1        ONLINE  ONLINE       rac1                     STABLE
ora.ora12c.db
      1        ONLINE  ONLINE       rac1                     Open,STABLE
      2        ONLINE  ONLINE       rac2                     Open,STABLE
ora.rac1.vip
      1        ONLINE  ONLINE       rac1                     STABLE
ora.rac2.vip
      1        ONLINE  ONLINE       rac2                     STABLE
ora.scan1.vip
      1        ONLINE  ONLINE       rac1                     STABLE

grid 사용자 비밀번호 수정:
[root@rac1 ~]# passwd grid
Changing password for user grid.
New password: 
BAD PASSWORD: it is too simplistic/systematic
BAD PASSWORD: is too simple
Retype new password: 
passwd: all authentication tokens updated successfully.

인증:
[grid@rac1 rac1]$ ssh rac1 date
Wed Sep 10 11:22:28 CST 2014
[grid@rac1 rac1]$ ssh rac2 date
Wed Sep 10 11:22:32 CST 2014
[grid@rac1 rac1]$ ssh rac2-priv date
Wed Sep 10 11:22:35 CST 2014
[grid@rac1 rac1]$ ssh rac1-priv date
Wed Sep 10 11:22:39 CST 2014

[grid@rac2 ~]$ ssh rac1 date
Wed Sep 10 11:24:46 CST 2014
[grid@rac2 ~]$ ssh rac2 date
Wed Sep 10 11:24:49 CST 2014
[grid@rac2 ~]$ ssh rac1-priv date
Wed Sep 10 11:24:53 CST 2014
[grid@rac2 ~]$ ssh rac2-priv date
Wed Sep 10 11:24:55 CST 2014

클 러 스 터 상태:
[grid@rac1 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.CRS.dg
               ONLINE  ONLINE       rac1                     STABLE
               ONLINE  ONLINE       rac2                     STABLE
ora.DAT.dg
               ONLINE  ONLINE       rac1                     STABLE
               ONLINE  ONLINE       rac2                     STABLE
ora.LISTENER.lsnr
               ONLINE  ONLINE       rac1                     STABLE
               ONLINE  ONLINE       rac2                     STABLE
ora.asm
               ONLINE  ONLINE       rac1                     Started,STABLE
               ONLINE  ONLINE       rac2                     Started,STABLE
ora.net1.network
               ONLINE  ONLINE       rac1                     STABLE
               ONLINE  ONLINE       rac2                     STABLE
ora.ons
               ONLINE  ONLINE       rac1                     STABLE
               ONLINE  ONLINE       rac2                     STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       rac1                     STABLE
ora.MGMTLSNR
      1        ONLINE  ONLINE       rac1                     169.254.124.125 10.10.10.60,STABLE
ora.cvu
      1        ONLINE  ONLINE       rac1                     STABLE
ora.mgmtdb
      1        ONLINE  ONLINE       rac1                     Open,STABLE
ora.oc4j
      1        ONLINE  ONLINE       rac1                     STABLE
ora.ora12c.db
      1        ONLINE  ONLINE       rac1                     Open,STABLE
      2        ONLINE  ONLINE       rac2                     Open,STABLE
ora.rac1.vip
      1        ONLINE  ONLINE       rac1                     STABLE
ora.rac2.vip
      1        ONLINE  ONLINE       rac2                     STABLE
ora.scan1.vip
      1        ONLINE  ONLINE       rac1                     STABLE

또한 클 러 스 터 와 데이터베이스 alert 로그 에 도 error, ora 또는 warning 정보 가 없습니다.
설명: 사용자 의 비밀번호 가 아 닌 키 로 만 든 신뢰 관 계 를 저장 하기 때문에 비밀 번 호 는 마음대로 수정 할 수 있 습 니 다.

좋은 웹페이지 즐겨찾기