Bo's Oracle Station

查看: 2793|回复: 0

活动第3/4次(2018-03-17星期六上下午)

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2018-3-17 15:42:20 | 显示全部楼层 |阅读模式
2018-03-17星期六
  1. /u01/app/oracle/product/11.2.0/grid/crs/install/roothas.pl -deconfig
复制代码
  1. /bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1


  2. /bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1
  3. /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



---------------------------------------------------------
这一步装好的标准:
  1. [root@station20 grid]# /u01/app/oracle/product/11.2.0/grid/bin/crs_stat -t
  2. Name           Type           Target    State     Host        
  3. ------------------------------------------------------------
  4. ora.cssd       ora.cssd.type  OFFLINE   OFFLINE               
  5. ora.diskmon    ora....on.type OFFLINE   OFFLINE               
复制代码

1Z0-052  2-26:

  1. [root@station20 11.2.0.1]# /u01/app/oracle/product/11.2.0/grid/bin/crs_stat -t
  2. Name           Type           Target    State     Host        
  3. ------------------------------------------------------------
  4. ora.DATA.dg    ora....up.type ONLINE    ONLINE    station20   
  5. ora....ER.lsnr ora....er.type ONLINE    ONLINE    station20   
  6. ora.asm        ora.asm.type   ONLINE    ONLINE    station20   
  7. ora.cssd       ora.cssd.type  ONLINE    ONLINE    station20   
  8. ora.diskmon    ora....on.type ONLINE    ONLINE    station20   
复制代码

试一试Oracle Restart :
11.2.0.1:
root:
/etc/rc.local
  1. /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 ......
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-11-21 22:21 , Processed in 0.035295 second(s), 24 queries .

快速回复 返回顶部 返回列表