11.2 RAC 修改了uid後crs不能啟動的解決方法
[oracle@enmoedu2 bin]$ ./crsctl stat res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE enmoedu2
ora.LISTENER.lsnr
ONLINE ONLINE enmoedu2
ora.asm
ONLINE ONLINE enmoedu2 Started
ora.ons
OFFLINE OFFLINE enmoedu2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
1 ONLINE ONLINE enmoedu2
ora.diskmon
1 OFFLINE OFFLINE
ora.evmd
1 ONLINE ONLINE enmoedu2
先構造錯誤:
[root@enmoedu2 ~]# vi /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
news:x:9:13:news:/etc/news:
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
rpc:x:32:32:Portmapper RPC user:/:/sbin/nologin
amanda:x:33:6:Amanda user:/var/lib/amanda:/bin/bash
mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin
nscd:x:28:28:NSCD Daemon:/:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
oprofile:x:16:16:Special user account to be used by OProfile:/home/oprofile:/sbin/nologin
uuidd:x:100:101:UUID generator helper daemon:/var/lib/libuuid:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
ident:x:98:98::/:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
avahi:x:70:70:Avahi daemon:/:/sbin/nologin
pegasus:x:66:65:tog-pegasus OpenPegasus WBEM/CIM services:/var/lib/Pegasus:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
avahi-autoipd:x:101:106:avahi-autoipd:/var/lib/avahi-autoipd:/sbin/nologin
xfs:x:43:43:X Font Server:/etc/X11/fs:/sbin/nologin
oracle:x:503:501::/home/oracle:/bin/bash---這裡我把之前的502改成503了
gdm:x:42:42::/var/gdm:/sbin/nologin
sabayon:x:86:86:Sabayon user:/home/sabayon:/sbin/nologin
~
~
~
"/etc/passwd" 39L, 1894C written
[root@enmoedu2 ~]# su - oracle
su: warning: cannot change directory to /home/oracle: Permission denied
-bash: /home/oracle/.bash_profile: Permission denied
-bash-3.2$ exit
logout
-bash: /home/oracle/.bash_logout: Permission denied
[root@enmoedu2 ~]# chown oracle:oinstall /home/oracle -R
[root@enmoedu2 ~]# su - oracle
[oracle@enmoedu2 ~]$ exit
logout
[root@enmoedu2 bin]# ps -ef |grep asm
502 11859 1 0 16:36 ? 00:00:00 asm_pmon_+ASM
502 11861 1 0 16:36 ? 00:00:00 asm_psp0_+ASM
502 11863 1 0 16:36 ? 00:00:01 asm_vktm_+ASM
502 11867 1 0 16:36 ? 00:00:00 asm_gen0_+ASM
502 11869 1 0 16:36 ? 00:00:00 asm_diag_+ASM
502 11871 1 0 16:36 ? 00:00:00 asm_dia0_+ASM
502 11873 1 0 16:36 ? 00:00:00 asm_mman_+ASM
502 11875 1 0 16:36 ? 00:00:00 asm_dbw0_+ASM
502 11879 1 0 16:36 ? 00:00:00 asm_lgwr_+ASM
502 11881 1 0 16:36 ? 00:00:00 asm_ckpt_+ASM
502 11883 1 0 16:36 ? 00:00:00 asm_smon_+ASM
502 11885 1 0 16:36 ? 00:00:00 asm_rbal_+ASM
502 11887 1 0 16:36 ? 00:00:00 asm_gmon_+ASM
502 11889 1 0 16:36 ? 00:00:00 asm_mmon_+ASM
502 11891 1 0 16:36 ? 00:00:00 asm_mmnl_+ASM
[root@enmoedu2 bin]# ps -ef |grep 11.2.0
502 11570 1 0 16:35 ? 00:00:01 /u01/app/11.2.0/grid/bin/ohasd.bin reboot
502 11698 1 0 16:36 ? 00:00:01 /u01/app/11.2.0/grid/bin/oraagent.bin
502 11711 1 0 16:36 ? 00:00:00 /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr LISTENER -inherit
502 11736 1 0 16:36 ? 00:00:00 /u01/app/11.2.0/grid/bin/evmd.bin
502 11743 1 0 16:36 ? 00:00:00 /u01/app/11.2.0/grid/bin/cssdagent
502 11769 1 0 16:36 ? 00:00:00 /u01/app/11.2.0/grid/bin/ocssd.bin
502 11793 11736 0 16:36 ? 00:00:00 /u01/app/11.2.0/grid/bin/evmlogger.bin -o /u01/app/11.2.0/grid/evm/log/evmlogger.info -l /u01/app/11.2.0/grid/evm/log/evmlogger.log
root 12557 4515 0 16:46 pts/3 00:00:00 grep 11.2.0
[root@enmoedu2 bin]#find / -uid 502 -exec chown oracle {} \;
只需要這麼一個簡單的find命令就可以搞定。隨後將叢集重新啟動即可。
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE enmoedu2
ora.LISTENER.lsnr
ONLINE ONLINE enmoedu2
ora.asm
ONLINE ONLINE enmoedu2 Started
ora.ons
OFFLINE OFFLINE enmoedu2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
1 ONLINE ONLINE enmoedu2
ora.diskmon
1 OFFLINE OFFLINE
ora.evmd
1 ONLINE ONLINE enmoedu2
先構造錯誤:
[root@enmoedu2 ~]# vi /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
news:x:9:13:news:/etc/news:
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
rpc:x:32:32:Portmapper RPC user:/:/sbin/nologin
amanda:x:33:6:Amanda user:/var/lib/amanda:/bin/bash
mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin
nscd:x:28:28:NSCD Daemon:/:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
oprofile:x:16:16:Special user account to be used by OProfile:/home/oprofile:/sbin/nologin
uuidd:x:100:101:UUID generator helper daemon:/var/lib/libuuid:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
ident:x:98:98::/:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
avahi:x:70:70:Avahi daemon:/:/sbin/nologin
pegasus:x:66:65:tog-pegasus OpenPegasus WBEM/CIM services:/var/lib/Pegasus:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
avahi-autoipd:x:101:106:avahi-autoipd:/var/lib/avahi-autoipd:/sbin/nologin
xfs:x:43:43:X Font Server:/etc/X11/fs:/sbin/nologin
oracle:x:503:501::/home/oracle:/bin/bash---這裡我把之前的502改成503了
gdm:x:42:42::/var/gdm:/sbin/nologin
sabayon:x:86:86:Sabayon user:/home/sabayon:/sbin/nologin
~
~
~
"/etc/passwd" 39L, 1894C written
[root@enmoedu2 ~]# su - oracle
su: warning: cannot change directory to /home/oracle: Permission denied
-bash: /home/oracle/.bash_profile: Permission denied
-bash-3.2$ exit
logout
-bash: /home/oracle/.bash_logout: Permission denied
[root@enmoedu2 ~]# chown oracle:oinstall /home/oracle -R
[root@enmoedu2 ~]# su - oracle
[oracle@enmoedu2 ~]$ exit
logout
[root@enmoedu2 bin]# ps -ef |grep asm
502 11859 1 0 16:36 ? 00:00:00 asm_pmon_+ASM
502 11861 1 0 16:36 ? 00:00:00 asm_psp0_+ASM
502 11863 1 0 16:36 ? 00:00:01 asm_vktm_+ASM
502 11867 1 0 16:36 ? 00:00:00 asm_gen0_+ASM
502 11869 1 0 16:36 ? 00:00:00 asm_diag_+ASM
502 11871 1 0 16:36 ? 00:00:00 asm_dia0_+ASM
502 11873 1 0 16:36 ? 00:00:00 asm_mman_+ASM
502 11875 1 0 16:36 ? 00:00:00 asm_dbw0_+ASM
502 11879 1 0 16:36 ? 00:00:00 asm_lgwr_+ASM
502 11881 1 0 16:36 ? 00:00:00 asm_ckpt_+ASM
502 11883 1 0 16:36 ? 00:00:00 asm_smon_+ASM
502 11885 1 0 16:36 ? 00:00:00 asm_rbal_+ASM
502 11887 1 0 16:36 ? 00:00:00 asm_gmon_+ASM
502 11889 1 0 16:36 ? 00:00:00 asm_mmon_+ASM
502 11891 1 0 16:36 ? 00:00:00 asm_mmnl_+ASM
[root@enmoedu2 bin]# ps -ef |grep 11.2.0
502 11570 1 0 16:35 ? 00:00:01 /u01/app/11.2.0/grid/bin/ohasd.bin reboot
502 11698 1 0 16:36 ? 00:00:01 /u01/app/11.2.0/grid/bin/oraagent.bin
502 11711 1 0 16:36 ? 00:00:00 /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr LISTENER -inherit
502 11736 1 0 16:36 ? 00:00:00 /u01/app/11.2.0/grid/bin/evmd.bin
502 11743 1 0 16:36 ? 00:00:00 /u01/app/11.2.0/grid/bin/cssdagent
502 11769 1 0 16:36 ? 00:00:00 /u01/app/11.2.0/grid/bin/ocssd.bin
502 11793 11736 0 16:36 ? 00:00:00 /u01/app/11.2.0/grid/bin/evmlogger.bin -o /u01/app/11.2.0/grid/evm/log/evmlogger.info -l /u01/app/11.2.0/grid/evm/log/evmlogger.log
root 12557 4515 0 16:46 pts/3 00:00:00 grep 11.2.0
[root@enmoedu2 bin]#find / -uid 502 -exec chown oracle {} \;
只需要這麼一個簡單的find命令就可以搞定。隨後將叢集重新啟動即可。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24500180/viewspace-2071841/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle 10g crs 不能啟動問題解決案例Oracle 10g
- crs_stop -all 命令後遇到 UNKNOWN解決及RAC資源啟動順序
- oracle 10g CRS不能啟動解決過程(hp-ux)Oracle 10gUX
- 關於監聽不能啟動的解決方法
- Oracle Rac crs無法啟動Oracle
- 伺服器不能啟動,修復後部分檔案丟失怎麼解決伺服器
- centos重啟不能自動聯網的解決方法CentOS
- 遠端服務不能啟動問題的解決方法
- 10G rac 因為ocr原因導致crs不能啟動的排查二例
- win10 ghost備份後提示windows不能啟動最佳解決方法Win10Windows
- 陣列櫃損壞修復後oracle資料庫不能正常啟動解決辦法陣列Oracle資料庫
- 解決Win2000 不能啟動的幾種方法
- 不能雙擊開啟盤的解決方法
- 禁止和允許Oracle RAC的CRS隨作業系統啟動的方法Oracle作業系統
- 手動清除Oracle 10g RAC CRS的方法Oracle 10g
- 天貓魔盒斷電重啟後不能自動連無線怎麼辦?解決方法
- win10不能拖動開啟怎麼辦 win10不能拖動開啟解決方法Win10
- 【RAC】啟動/關閉CRS, OHAS, ASM & RDBMS 的步驟ASM
- CRS啟動的三個主要的後臺程式
- AWR不能自動生成快照解決方法?
- Rac中使用create pfile from spfile後的解決方法
- windows10未能啟動怎麼修復_windows10無法啟動解決方法Windows
- 11gR2私有ip修改錯誤導致crs無法啟動解決方法
- dell電腦win10啟動修復無法修復你的電腦的解決方法Win10
- vbsedit 安裝高版本後不能使用的解決方法
- win10快速啟動不生效怎麼辦_win10快速啟動不能用的解決方法Win10
- stop/start The CRS, OHAS, ASM, RDBMS & ACFS Services on RAC 11.2_1355977.1ASM
- 自動修復電腦未正確啟動怎麼修 電腦開機顯示自動修復電腦未正確啟動的解決方法
- 修改域名之後的資料庫服務不能啟動的問題解決過程資料庫
- win10快速啟動後重啟怎麼辦_win10開機快速啟動後重啟解決方法Win10
- tomcat啟動超時以及啟動之後開啟網頁報404錯誤的解決方法Tomcat網頁
- 升級win10系統後不能投影的解決方法Win10
- SQLServer資料庫MMC不能開啟檔案的解決方法SQLServer資料庫
- 電腦顯示自動修復啟動不了怎麼辦 電腦一直自動修復的解決方法
- win10 ghsot啟動失敗怎麼修復_win10 ghsot未能啟動解決方法Win10
- 帝國cms更改了欄目路徑後內容頁就打不開的解決方法
- dbsnmp啟動失敗解決方法
- mysql不能啟動如何解決MySql