部署oracle 11g standone,安装grid时,以root执行第二个脚本报错


部署oracle 11g standone,安装grid时,以root执行第二个脚本报错


上网查询了一下,是一个bug,需要打上补丁,再次执行root.sh脚本。
相应补丁为p17475946_112040_Linux-x86-64.zip


环境:
OS:suse linux 11 64bit
Grid Infrastructure:11.2.0.4.0
Oracle database:11.2.0.4.0
PSU:11.2.0.4.8



db2-ora11g:~ # /oracle/grid/oraInventory/orainstRoot.sh
Changing permissions of /oracle/grid/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.


Changing groupname of /oracle/grid/oraInventory to dba.
The execution of the script is complete.
db2-ora11g:~ # 
db2-ora11g:~# /oracle/grid/crs_home/root.sh   --执行第二个脚本
Performing root user operation for Oracle 11g 


The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /oracle/grid/crs_home


Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.




Creating /etc/oratab file...
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 script.
Now product-specific root actions will be performed.
Using configuration parameter file: /oracle/grid/crs_home/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE 
Creating OCR keys for user 'grid', privgrp 'dba'..
Operation successful.
LOCAL ONLY MODE 
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node db2-ora11g successfully pinned.
Adding Clusterware entries to inittab
ACFS drivers installation failed
/oracle/grid/crs_home/perl/bin/perl -I/oracle/grid/crs_home/perl/lib -I/oracle/grid/crs_home/crs/install /oracle/grid/crs_home/crs/install/roothas.pl execution failed





--查看安装日志
/oracle/grid/crs_home/cfgtoollogs/crsconfig/roothas.log


grid[db2-ora11g]/oracle/grid/crs_home/cfgtoollogs/crsconfig> ls -l /oracle/grid/crs_home/cfgtoollogs/crsconfig
total 148
-rwxrwxr-x 1 grid dba 15600 Nov 19 18:11 crsdelete_db2-ora11g.log
-rwxrwx--- 1 grid dba 21509 Nov 19 17:37 roothas.log
-rwxrwx--- 1 grid dba 18784 Nov 19 17:37 srvmcfg0.log


grid[db2-ora11g]/oracle/grid/crs_home/cfgtoollogs/crsconfig> pwd
/oracle/grid/crs_home/cfgtoollogs/crsconfig


>  CRS-2672: Attempting to start 'ora.evmd' on 'db2-ora11g'
>  CRS-2676: Start of 'ora.evmd' on 'db2-ora11g' succeeded
>End Command output
2015-11-19 17:37:18: Start of resource "ora.evmd" Succeeded
2015-11-19 17:37:18: Executing '/oracle/grid/crs_home/bin/acfsroot install'
2015-11-19 17:37:18: Executing cmd: /oracle/grid/crs_home/bin/acfsroot install
2015-11-19 17:37:25: Command output:
>  ACFS-9300: ADVM/ACFS distribution files found.
>  ACFS-9307: Installing requested ADVM/ACFS software.
>  ACFS-9308: Loading installed ADVM/ACFS drivers.
>  ACFS-9321: Creating udev for ADVM/ACFS.
>  ACFS-9323: Creating module dependencies - this may take some time.
>  ACFS-9154: Loading 'oracleoks.ko' driver.
>  FATAL: Error inserting oracleoks (/lib/modules/3.0.76-0.11-default/extra/usm/oracleoks.ko): Invalid module format
>  ACFS-9109: oracleoks.ko driver failed to load.
>  ACFS-9428: Message 9428 not found;  product=usm; facility=acfs
>
>  ACFS-9310: ADVM/ACFS installation failed.
>End Command output
2015-11-19 17:37:25: /oracle/grid/crs_home/bin/acfsroot install ... failed
2015-11-19 17:37:25: USM driver install status is 0
2015-11-19 17:37:25: ACFS drivers installation failed




卸载


db2-ora11g:/oracle/grid/crs_home/bin # /oracle/grid/crs_home/crs/install/rootcrs.pl -deconfig -force
Using configuration parameter file: /oracle/grid/crs_home/crs/install/crsconfig_params
Usage: srvctl []
    commands: enable|disable|start|stop|status|add|remove|modify|getenv|setenv|unsetenv|config|upgrade
    objects: database|service|asm|diskgroup|listener|home|ons
For detailed help on each command and object and its options use:
  srvctl -h or
  srvctl -h
PRKO-2012 : nodeapps object is not supported in Oracle Restart
CRS-2613: Could not find resource 'ora.registry.acfs'.
CRS-4000: Command Stop failed, or completed with errors.
CRS-2613: Could not find resource 'ora.drivers.acfs'.
CRS-4000: Command Modify failed, or completed with errors.
CRS-2613: Could not find resource 'ora.drivers.acfs'.
CRS-4000: Command Delete failed, or completed with errors.
CRS-4013: This command is not supported in a single-node configuration.
CRS-4000: Command Stop failed, or completed with errors.
################################################################
# You must kill processes or reboot the system to properly #
# cleanup the processes started by Oracle clusterware          #
################################################################
error: package cvuqdisk is not installed
Successfully deconfigured Oracle clusterware stack on this node
db2-ora11g:/oracle/grid/crs_home/bin # 


上网查询了一下,是一个bug,需要打上补丁,再次执行root.sh脚本。
相应补丁为17475946




下面开始打补丁


打补丁前,查看补丁信息,目前没有应用任何补丁。
grid[db2-ora11g]/home/grid/orasoft> /oracle/grid/crs_home/OPatch/opatch lsinv
Oracle Interim Patch Installer version 11.2.0.3.6
Copyright (c) 2013, Oracle Corporation.  All rights reserved.




Oracle Home       : /oracle/grid/crs_home
Central Inventory : /oracle/grid/oraInventory
   from           : /oracle/grid/crs_home/oraInst.loc
OPatch version    : 11.2.0.3.6
OUI version       : 11.2.0.4.0
Log file location : /oracle/grid/crs_home/cfgtoollogs/opatch/opatch2015-11-19_23-02-17PM_1.log


Lsinventory Output file location : /oracle/grid/crs_home/cfgtoollogs/opatch/lsinv/lsinventory2015-11-19_23-02-17PM.txt


--------------------------------------------------------------------------------
Installed Top-level Products (1): 


Oracle Grid Infrastructure 11g                                       11.2.0.4.0
There are 1 product(s) installed in this Oracle Home.




There are no Interim patches installed in this Oracle Home.




--------------------------------------------------------------------------------


OPatch succeeded.
grid[db2-ora11g]/home/grid/orasoft> 


以grid用户打补丁
/oracle/grid/crs_home/OPatch/opatch napply -oh /oracle/grid/crs_home -local /home/grid/orasoft/17475946




grid[db2-ora11g]/home/grid/orasoft> /oracle/grid/crs_home/OPatch/opatch napply -oh /oracle/grid/crs_home -local /home/grid/orasoft/17475946
Oracle Interim Patch Installer version 11.2.0.3.6
Copyright (c) 2013, Oracle Corporation.  All rights reserved.




Oracle Home       : /oracle/grid/crs_home
Central Inventory : /oracle/grid/oraInventory
   from           : /oracle/grid/crs_home/oraInst.loc
OPatch version    : 11.2.0.3.6
OUI version       : 11.2.0.4.0
Log file location : /oracle/grid/crs_home/cfgtoollogs/opatch/opatch2015-11-19_23-03-34PM_1.log


Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   17475946  


Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name: 


You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]:  Y






Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/oracle/grid/crs_home')




Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '17475946' to OH '/oracle/grid/crs_home'


Patching component oracle.usm, 11.2.0.4.0...


Verifying the update...
Patch 17475946 successfully applied.
Log file location: /oracle/grid/crs_home/cfgtoollogs/opatch/opatch2015-11-19_23-03-34PM_1.log


OPatch succeeded.
grid[db2-ora11g]/home/grid/orasoft> 
grid[db2-ora11g]/home/grid/orasoft> /oracle/grid/crs_home/OPatch/opatch lsinv
Oracle Interim Patch Installer version 11.2.0.3.6
Copyright (c) 2013, Oracle Corporation.  All rights reserved.




Oracle Home       : /oracle/grid/crs_home
Central Inventory : /oracle/grid/oraInventory
   from           : /oracle/grid/crs_home/oraInst.loc
OPatch version    : 11.2.0.3.6
OUI version       : 11.2.0.4.0
Log file location : /oracle/grid/crs_home/cfgtoollogs/opatch/opatch2015-11-19_23-05-19PM_1.log


Lsinventory Output file location : /oracle/grid/crs_home/cfgtoollogs/opatch/lsinv/lsinventory2015-11-19_23-05-19PM.txt


--------------------------------------------------------------------------------
Installed Top-level Products (1): 


Oracle Grid Infrastructure 11g                                       11.2.0.4.0
There are 1 product(s) installed in this Oracle Home.




Interim patches (1) :


Patch  17475946     : applied on Thu Nov 19 23:04:11 CST 2015
Unique Patch ID:  18978376
Patch description:  "ACFS Interim patch for 17475946"
   Created on 29 May 2015, 06:35:10 hrs PST8PDT
   Bugs fixed:
     17475946






--------------------------------------------------------------------------------


OPatch succeeded.
grid[db2-ora11g]/home/grid/orasoft> 

通过opatch lsinv查看,17475946补丁已经打上。


打补丁前查询
grid[db2-ora11g]/home/grid> ls -l /oracle/grid/crs_home/install/usm/Novell/SLES11/x86_64
total 0
drwxr-xr-x 4 grid dba 30 Nov 19 22:41 2.6.27.19-5
drwxr-xr-x 4 grid dba 30 Nov 19 22:41 2.6.32.12-0.7
drwxr-xr-x 4 grid dba 30 Nov 19 22:41 3.0.13-0.27
drwxr-xr-x 4 grid dba 30 Nov 19 22:41 3.0.61-0.9


打上补丁后,在如下目录多了3个子目录SP1,SP2,SP3


grid[db2-ora11g]/home/grid/orasoft> ls -l /oracle/grid/crs_home/install/usm/Novell/SLES11/x86_64
total 0
drwxr-xr-x 4 grid dba 30 Nov 19 22:41 2.6.27.19-5
drwxr-xr-x 4 grid dba 30 Nov 19 22:41 2.6.32.12-0.7
drwxr-xr-x 4 grid dba 30 Nov 19 22:41 3.0.13-0.27
drwxr-xr-x 4 grid dba 30 Nov 19 22:41 3.0.61-0.9
drwxr-xr-x 3 grid dba 26 Nov 19 23:04 SP1
drwxr-xr-x 3 grid dba 24 Nov 19 23:04 SP2
drwxr-xr-x 3 grid dba 24 Nov 19 23:04 SP3
grid[db2-ora11g]/home/grid/orasoft> 


重新执行第二个root脚本前,查看grid的状态
grid[db2-ora11g]/home/grid/orasoft> crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora.cssd       ora.cssd.type  OFFLINE   OFFLINE               
ora.diskmon    ora....on.type OFFLINE   OFFLINE               
ora.evmd       ora.evm.type   ONLINE    ONLINE    db2-ora11g  
ora.ons        ora.ons.type   OFFLINE   OFFLINE   


再次执行root.sh脚本,成功执行。


db2-ora11g:~ # /oracle/grid/crs_home/root.sh
Performing root user operation for Oracle 11g 


The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /oracle/grid/crs_home


Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.




Creating /etc/oratab file...
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 script.
Now product-specific root actions will be performed.
Using configuration parameter file: /oracle/grid/crs_home/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE 
Creating OCR keys for user 'grid', privgrp 'dba'..
Operation successful.
LOCAL ONLY MODE 
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node db2-ora11g successfully pinned.
Adding Clusterware entries to inittab


db2-ora11g     2015/11/19 23:07:47     /oracle/grid/crs_home/cdata/db2-ora11g/backup_20151119_230747.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server
db2-ora11g:~ # 


 重新执行第二个root脚本后,查看grid的状态        
grid[db2-ora11g]/home/grid/orasoft> crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora.DATADG.dg  ora....up.type ONLINE    ONLINE    db2-ora11g  
ora....ER.lsnr ora....er.type ONLINE    ONLINE       db2-ora11g  
ora.asm        ora.asm.type   ONLINE    ONLINE    db2-ora11g  
ora.cssd       ora.cssd.type  ONLINE    ONLINE    db2-ora11g  
ora.diskmon    ora....on.type OFFLINE   OFFLINE               
ora.evmd       ora.evm.type   ONLINE    ONLINE    db2-ora11g  
ora.ons        ora.ons.type   OFFLINE   OFFLINE               


执行完第二个root脚本后,grid安装完毕,grid的状态正常。







你可能感兴趣的:(安装)