|
2018-03-17星期六
- /u01/app/oracle/product/11.2.0/grid/crs/install/roothas.pl -deconfig
复制代码- /bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1
- /bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1
- /bin/dd: 正在打开"/var/tmp/.oracle/npohasd": 没有那个文件或目录
复制代码
[root@station20 grid]# /u01/app/oracle/product/11.2.0/grid/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/11.2.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2018-03-17 15:48:48: Checking for super user privileges
2018-03-17 15:48:48: User has super user privileges
2018-03-17 15:48:48: Parsing the host name
Using configuration parameter file: /u01/app/oracle/product/11.2.0/grid/crs/install/crsconfig_params
LOCAL ADD MODE
Creating OCR keys for user 'oracle', privgrp 'oinstall'..
Operation successful.
CRS-4664: Node station20 successfully pinned.
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
ADVM/ACFS is not supported on redhat-release-server-6Server-6.9.0.4.el6.x86_64
station20 2018/03/17 15:49:22 /u01/app/oracle/product/11.2.0/grid/cdata/station20/backup_20180317_154922.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server
Updating inventory properties for clusterware
正在启动 Oracle Universal Installer...
检查交换空间: 必须大于 500 MB。 实际为 4095 MB 通过
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
'UpdateNodeList' 成功。
[root@station20 grid]#
如果网络报错的原因,准备重试:
1. /etc/hosts
2. # service iptables stop ; service iptables save ; chkconfig iptables off; SELINUX
3. 设ORACLE_HOME TNS_ADMIN
如果ASM失败,准备重试:
vim /etc/sysconfig/oracleasm
修改了ORACLEASM_USE_LOGICAL_BLOCK_SIZE=true 参数
service oracleasm restart
---------------------------------------------------------
这一步装好的标准:
- [root@station20 grid]# /u01/app/oracle/product/11.2.0/grid/bin/crs_stat -t
- Name Type Target State Host
- ------------------------------------------------------------
- ora.cssd ora.cssd.type OFFLINE OFFLINE
- ora.diskmon ora....on.type OFFLINE OFFLINE
复制代码
1Z0-052 2-26:
- [root@station20 11.2.0.1]# /u01/app/oracle/product/11.2.0/grid/bin/crs_stat -t
- Name Type Target State Host
- ------------------------------------------------------------
- ora.DATA.dg ora....up.type ONLINE ONLINE station20
- ora....ER.lsnr ora....er.type ONLINE ONLINE station20
- ora.asm ora.asm.type ONLINE ONLINE station20
- ora.cssd ora.cssd.type ONLINE ONLINE station20
- ora.diskmon ora....on.type ONLINE ONLINE station20
复制代码
试一试Oracle Restart :
11.2.0.1:
root:
/etc/rc.local
- /etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null &
复制代码
----------------------------------------------------------------------------------------------------------------------------
如果出错了:
1. root删除 /etc/oracle; /etc/oratab ; /etc/oraInst.loc
2. root删除 /etc/rc.d/init.d/*has* (共两个)
3. /etc/inittab 最后一行“h1:35:respawn:/etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null”删除
4. rm -rf /u01/app/oracle/*
5. rm -rf /u01/app/oraInventory
6. dd if=/dev/zero of=/dev/vda[1-5替换成你的那些盘] bs=100M count=1
7. 重启Linux
8. oracleasm configure -i ......
|
|