环境介绍:
OS:Red Hat Enterprise 6.5 x86_64 Oracle:11.2.0.4.0
静默安装操作系统
出现以下安装界面,按ESC键
出现boot提示符,输入linux text进入文本安装:
跳过光盘检查:
设置网关,主机名,配置网络:
配置Hosts文件:
cat >>/etc/hosts <<EOF #Public IP 192.168.34.181 rac01 192.168.34.182 rac02 #Private IP 1.1.1.1 rac01-priv 1.1.1.2 rac02-priv #Vitual IP 192.168.34.183 rac01-vip 192.168.34.184 rac02-vip #SCAN IP 192.168.34.180 rac-scan EOF
#配置yum
mount /dev/sr0 /mnt/ mv rhel-source.repo rhel-source.repo.bak cat > /etc/yum.repos.d/rhel-local.repo << EOF [Redhat6] name= Enterpress6.5 baseurl=file:///mnt/Server enabled=1 gpgcheck=0 EOF
安装依赖包:
yum -y install binutils compat-libstdc++-33 elfutils-libelf \ elfutils-libelf-devel elfutils-libelf-devel-static gcc gcc-c++ glibc glibc-common \ glibc-devel kernel-headers ksh libaio libaio-devel libgcc libgomp libstdc++ libstdc++-devel \ make numactl-devel sysstat unixODBC unixODBC-devel pdksh
关闭防火墙:
[root@rac01 yum.repos.d]# service iptables stop iptables: Setting chains to policy ACCEPT: filter [ OK ] iptables: Flushing firewall rules: [ OK ] iptables: Unloading modules: [ OK ] [root@rac01 yum.repos.d]# service ip6tables stop ip6tables: Setting chains to policy ACCEPT: filter [ OK ] ip6tables: Flushing firewall rules: [ OK ] ip6tables: Unloading modules: [ OK ] [root@rac01 yum.repos.d]# chkconfig iptables off [root@rac01 yum.repos.d]# chkconfig ip6tables off
关闭selinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
修改内核参数:
cat>>/etc/sysctl.conf<<EOF fs.file-max = 6815744 kernel.sem = 250 32000 100 128 kernel.shmmni = 4096 kernel.shmall = 1073741824 kernel.shmmax = 4398046511104 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576 fs.aio-max-nr = 1048576 net.ipv4.ip_local_port_range = 9000 65500 EOF /sbin/sysctl -p cat >> /etc/security/limits.conf << EOF grid soft nofile 1024 grid hard nofile 65536 grid soft nproc 2047 grid hard nproc 16384 grid soft stack 10240 grid hard stack 32768 oracle soft nofile 1024 oracle hard nofile 65536 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft stack 10240 oracle hard stack 32768 EOF
cat >> /etc/pam.d/login << EOF session required pam_limits.so EOF
创建用户及目录:
groupadd -g 500 oinstall groupadd -g 501 asmadmin groupadd -g 502 asmdba groupadd -g 503 dba useradd -u 500 -g oinstall -G asmadmin,asmdba,dba grid useradd -u 501 -g oinstall -G dba,asmdba oracle echo -n 123123 | passwd --stdin grid echo -n 123123 | passwd --stdin oracle mkdir -p /oracle/software chown -R grid:oinstall /oracle/software chmod -R 775 /oracle/software mkdir -p /oracle/oraInventory chown -R grid:oinstall /oracle/oraInventory chmod -R 775 /oracle/oraInventory mkdir -p /oracle/grid_base mkdir -p /oracle/grid_home chown -R grid:oinstall /oracle/grid_base chown -R grid:oinstall /oracle/grid_home chmod -R 775 /oracle/grid_base chmod -R 775 /oracle/grid_home mkdir -p /oracle/app/cfgtoollogs mkdir -p /oracle/app/db_home chown -R oracle:oinstall /oracle/app chmod -R 775 /oracle/app
配置环境变量;
(grid) export TMP=/tmp export TMPDIR=$TMP export ORACLE_HOSTNAME=rac01 export ORACLE_BASE=/oracle/grid_base export ORACLE_HOME=/oracle/grid_home export ORACLE_SID=+ASM1 export PATH=/usr/sbin:$PATH export PATH=$ORACLE_HOME/bin:$PATH export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib (oracle) export TMP=/tmp export TMPDIR=$TMP export ORACLE_HOSTNAME=rac01 export ORACLE_UNQNAME=mecbs export ORACLE_BASE=/oracle/app export ORACLE_HOME=/oracle/app/db_home export ORACLE_SID=mecbs1 export PATH=/usr/sbin:$PATH export PATH=$ORACLE_HOME/bin:$PATH export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
配置grid和oracle用户的等效性:
各个节点:
[root@rac01 yum.repos.d]# su - grid [grid@rac01 ~]$ mkdir ~/.ssh [grid@rac01 ~]$ chmod 700 .ssh/ [grid@rac01 ~]$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/grid/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/grid/.ssh/id_rsa. Your public key has been saved in /home/grid/.ssh/id_rsa.pub. The key fingerprint is: 20:e0:bb:2a:02:98:41:31:94:56:99:f8:e3:7a:a9:19 grid@rac01 The key's randomart image is: +--[ RSA 2048]----+ |.+*.o | | *.+ | |o o . . | |. + . . | |.oo . S | |+ o | |.Eo . | |oooo | |+oo | +-----------------+ [grid@rac01 .ssh]$ cat id_rsa.pub >>authorized_keys rac01 [grid@rac01 .ssh]$ ssh rac02 cat ~/.ssh/id_rsa.pub >> authorized_keys [grid@rac01 .ssh]$ scp authorized_keys rac02:~/.ssh [grid@rac01 .ssh]$ ssh rac02 date && date Sat Sep 12 21:29:51 CST 2015 Sat Sep 12 21:29:51 CST 2015
同理配置oracle用户
上传软件包,解压,
用udev配置共享存储:
[root@rac01 ~]# cat udev.sh for i in b c d e do echo "KERNEL==\"sd*\", BUS==\"scsi\", PROGRAM==\"/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/\$name\", RESULT==\"`/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/sd$i`\", NAME=\"asm-disk$i\", OWNER=\"grid\", GROUP=\"asmadmin\", MODE=\"0660\"" >>/etc/udev/rules.d/99-oracle-asmdevices.rules done [root@rac01 ~]# /sbin/start_udev Starting udev: [ OK [root@rac01 ~]# ls -l /dev/asm* brw-rw---- 1 grid asmadmin 8, 16 Sep 12 15:50 /dev/asm-diskb brw-rw---- 1 grid asmadmin 8, 32 Sep 12 15:50 /dev/asm-diskc brw-rw---- 1 grid asmadmin 8, 48 Sep 12 15:50 /dev/asm-diskd brw-rw---- 1 grid asmadmin 8, 64 Sep 12 15:50 /dev/asm-diske
安装前验证:
[grid@rac01 grid]$ ./runcluvfy.sh stage -pre crsinst -n rac01,rac02 -verbose
编辑grid响应文件:
oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v11_2_0 ORACLE_HOSTNAME=rac01 INVENTORY_LOCATION=/oracle/oraInventory SELECTED_LANGUAGES=en oracle.install.option=CRS_CONFIG ORACLE_BASE=/oracle/grid_base ORACLE_HOME=/oracle/grid_home oracle.install.asm.OSDBA=asmdba oracle.install.asm.OSASM=asmadmin oracle.install.crs.config.gpnp.scanName=rac-scan oracle.install.crs.config.gpnp.scanPort=1521 oracle.install.crs.config.clusterName=rac-cluster oracle.install.crs.config.gpnp.configureGNS=false oracle.install.crs.config.clusterNodes=rac01:rac01-vip,rac02:rac02-vip oracle.install.crs.config.networkInterfaceList=eth0:192.168.34.0:1,eth1:1.1.1.0:2 oracle.install.crs.config.storageOption=ASM_STORAGE oracle.install.crs.config.useIPMI=false oracle.install.asm.SYSASMPassword=123123 oracle.install.asm.diskGroup.name=CRS oracle.install.asm.diskGroup.redundancy=EXTERNAL oracle.install.asm.diskGroup.AUSize=1 oracle.install.asm.diskGroup.disks=/dev/asm-diskb oracle.install.asm.diskGroup.diskDiscoveryString=/dev/asm-disk* oracle.install.asm.monitorPassword=123123 oracle.installer.autoupdates.option=SKIP_UPDATES
开始安装:
[grid@rac01 grid]$ /oracle/software/grid/runInstaller -silent -ignoreSysPrereqs -ignorePrereq -showProgress -responseFile /home/grid/grid_install.rsp Starting Oracle Universal Installer... Checking Temp space: must be greater than 120 MB. Actual 15509 MB Passed Checking swap space: must be greater than 150 MB. Actual 3056 MB Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-09-12_05-55-04PM. Please wait ...[grid@rac01 grid]$ [WARNING] [INS-30011] The SYS password entered does not conform to the Oracle recommended standards. CAUSE: Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9]. ACTION: Provide a password that conforms to the Oracle recommended standards. [WARNING] [INS-30011] The ASMSNMP password entered does not conform to the Oracle recommended standards. CAUSE: Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9]. ACTION: Provide a password that conforms to the Oracle recommended standards. You can find the log of this install session at: /oracle/oraInventory/logs/installActions2015-09-12_05-55-04PM.log Prepare in progress. .................................................. 9% Done. Prepare successful. Copy files in progress. .................................................. 15% Done. .................................................. 20% Done. .................................................. 25% Done. .................................................. 30% Done. .................................................. 35% Done. .................................................. 40% Done. .................................................. 45% Done. ........................................ Copy files successful. Link binaries in progress. Link binaries successful. .................................................. 62% Done. Setup files in progress. Setup files successful. .................................................. 76% Done. Perform remote operations in progress. .................................................. 89% Done. Perform remote operations successful. The installation of Oracle Grid Infrastructure 11g was successful. Please check '/oracle/oraInventory/logs/silentInstall2015-09-12_05-55-04PM.log' for more details. .................................................. 94% Done. Execute Root Scripts in progress. As a root user, execute the following script(s): 1. /oracle/oraInventory/orainstRoot.sh 2. /oracle/grid_home/root.sh Execute /oracle/oraInventory/orainstRoot.sh on the following nodes: [rac01, rac02] Execute /oracle/grid_home/root.sh on the following nodes: [rac01, rac02] .................................................. 100% Done. Execute Root Scripts successful. As install user, execute the following script to complete the configuration. 1. /oracle/grid_home/cfgtoollogs/configToolAllCommands RESPONSE_FILE=<response_file> Note: 1. This script must be run on the same host from where installer was run. 2. This script needs a small password properties file for configuration assistants that require passwords (refer to install guide documentation). Successfully Setup Software.
执行root.sh报错:
[root@rac01 ~]# tail -f /oracle/grid_home/install/root_rac01_2015-09-12_18-51-15.log 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_home/crs/install/crsconfig_params Creating trace directory User ignored Prerequisites during installation Installing Trace File Analyzer Failed to create keys in the OLR, rc = 127, Message: /oracle/grid_home/bin/clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory
缺libcap相关的包,yum install libcap* -y and yum install compat-libcap1* -y 解决。
删除CRS配置:
[root@rac01 install]# ./rootcrs.pl -verbose -deconfig -force ....... Successfully deconfigured Oracle clusterware stack on this node [root@rac01 install]# ./roothas.pl -verbose -deconfig -force ...... Successfully deconfigured Oracle Restart stack
重新在rac01上执行root.sh
Performing root user operation for Oracle 11g The following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /oracle/grid_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_home/crs/install/crsconfig_params Creating trace directory User ignored Prerequisites during installation Installing Trace File Analyzer OLR initialization - successful root wallet root wallet cert root cert export peer wallet profile reader wallet pa wallet peer wallet keys pa wallet keys peer cert request pa cert request peer cert pa cert peer root cert TP profile reader root cert TP pa root cert TP peer pa cert TP pa peer cert TP profile reader pa cert TP profile reader peer cert TP peer user cert pa user cert Adding Clusterware entries to upstart CRS-2672: Attempting to start 'ora.mdnsd' on 'rac01' CRS-2676: Start of 'ora.mdnsd' on 'rac01' succeeded CRS-2672: Attempting to start 'ora.gpnpd' on 'rac01' CRS-2676: Start of 'ora.gpnpd' on 'rac01' succeeded CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac01' CRS-2672: Attempting to start 'ora.gipcd' on 'rac01' CRS-2676: Start of 'ora.gipcd' on 'rac01' succeeded CRS-2676: Start of 'ora.cssdmonitor' on 'rac01' succeeded CRS-2672: Attempting to start 'ora.cssd' on 'rac01' CRS-2672: Attempting to start 'ora.diskmon' on 'rac01' CRS-2676: Start of 'ora.diskmon' on 'rac01' succeeded CRS-2676: Start of 'ora.cssd' on 'rac01' succeeded ASM created and started successfully. Disk Group CRS created successfully. clscfg: -install mode specified Successfully accumulated necessary OCR keys. Creating OCR keys for user 'root', privgrp 'root'.. Operation successful. CRS-4256: Updating the profile Successful addition of voting disk aa14b0b895944febbffcc8b5a1182fce. Successfully replaced voting disk group with +CRS. CRS-4256: Updating the profile CRS-4266: Voting file(s) successfully replaced ## STATE File Universal Id File Name Disk group -- ----- ----------------- --------- --------- 1. ONLINE aa14b0b895944febbffcc8b5a1182fce (/dev/asm-diskb) [CRS] Located 1 voting disk(s). CRS-2672: Attempting to start 'ora.asm' on 'rac01' CRS-2676: Start of 'ora.asm' on 'rac01' succeeded CRS-2672: Attempting to start 'ora.CRS.dg' on 'rac01' CRS-2676: Start of 'ora.CRS.dg' on 'rac01' succeeded Configure Oracle Grid Infrastructure for a Cluster ... succeeded RAC02: [root@rac02 grid_home]# ./root.sh Performing root user operation for Oracle 11g The following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /oracle/grid_home Enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ... 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_home/crs/install/crsconfig_params Creating trace directory User ignored Prerequisites during installation Installing Trace File Analyzer OLR initialization - successful Adding Clusterware entries to upstart CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node rac01, number 1, and is terminating An active cluster was found during exclusive startup, restarting to join the cluster Configure Oracle Grid Infrastructure for a Cluster ... succeeded
在rac01上执行:
su - grid cat >/oracle/grid_home/cfgtoollogs/cfgrsp.properties << EOF oracle.assistants.asm|S_ASMPASSWORD=123123 oracle.assistants.asm|S_ASMMONITORPASSWORD=123123 EOF /oracle/grid_home/cfgtoollogs/configToolAllCommands RESPONSE_FILE=/oracle/grid_home/cfgtoollogs/cfgrsp.properties
查看集群资源:
[root@rac02 bin]# ./crsctl stat res -t -------------------------------------------------------------------------------- NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------- ora.CRS.dg ONLINE ONLINE rac01 ONLINE ONLINE rac02 ora.asm ONLINE ONLINE rac01 Started ONLINE ONLINE rac02 Started ora.gsd OFFLINE OFFLINE rac01 OFFLINE OFFLINE rac02 ora.net1.network ONLINE ONLINE rac01 ONLINE ONLINE rac02 ora.ons ONLINE ONLINE rac01 ONLINE ONLINE rac02 ora.registry.acfs ONLINE ONLINE rac01 ONLINE ONLINE rac02 -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.LISTENER_SCAN1.lsnr 1 ONLINE ONLINE rac01 ora.cvu 1 ONLINE ONLINE rac01 ora.oc4j 1 ONLINE ONLINE rac01 ora.rac01.vip 1 ONLINE ONLINE rac01 ora.rac02.vip 1 ONLINE ONLINE rac02 ora.scan1.vip 1 ONLINE ONLINE rac01
创建ASM磁盘组和添加磁盘:
[grid@rac01 ~]$ asmca -silent -createDiskGroup -diskGroupName DATA -diskList '/dev/asm-diskc' -redundancy EXTERNAL Disk Group DATA created successfully. [grid@rac01 ~]$ asmca -silent -addDisk -diskGroupName DATA -diskList '/dev/asm-diskd','/dev/asm-diske' Disks added successfully to disk group DATA
SQL> select name,path from v$asm_disk order by path; NAME PATH ------------------------------ ---------------------------------------- CRS_0000 /dev/asm-diskb DATA_0000 /dev/asm-diskc DATA_0001 /dev/asm-diskd DATA_0002 /dev/asm-diske SQL> select name,state,type,total_mb,free_mb from v$asm_diskgroup; NAME STATE TYPE TOTAL_MBFREE_MB ------------------------------ ----------- ------ ---------- ---------- CRS MOUNTED EXTERN5120 4724 DATA MOUNTED EXTERN 30720 30621
安装oracle 数据库软件:
安装前验证:
./runcluvfy.sh stage -pre dbinst -n rac01,rac02 -verbose
编辑oracle响应文件:
cat > /home/oracle/db_install.rsp << EOF oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0 oracle.install.option=INSTALL_DB_SWONLY ORACLE_HOSTNAME=rac01 UNIX_GROUP_NAME=oinstall INVENTORY_LOCATION=/oracle/oraInventory SELECTED_LANGUAGES=en ORACLE_HOME=/oracle/app/db_home ORACLE_BASE=/oracle/app oracle.install.db.InstallEdition=EE oracle.install.db.EEOptionsSelection=false oracle.install.db.DBA_GROUP=dba oracle.install.db.CLUSTER_NODES=rac01,rac02 DECLINE_SECURITY_UPDATES=true oracle.installer.autoupdates.option=SKIP_UPDATES EOF
开始安装:
[oracle@rac01 ~]$ /oracle/software/database/runInstaller -silent -showProgress -responseFile /home/oracle/db_install.rsp Starting Oracle Universal Installer... Checking Temp space: must be greater than 120 MB. Actual 10957 MB Passed Checking swap space: must be greater than 150 MB. Actual 3071 MB Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-09-12_10-05-22PM. Please wait ...[oracle@rac01 ~]$ [WARNING] [INS-13014] Target environment do not meet some optional requirements. CAUSE: Some of the optional prerequisites are not met. See logs for details. /oracle/oraInventory/logs/installActions2015-09-12_10-05-22PM.log ACTION: Identify the list of failed prerequisite checks from the log: /oracle/oraInventory/logs/installActions2015-09-12_10-05-22PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually. You can find the log of this install session at: /oracle/oraInventory/logs/installActions2015-09-12_10-05-22PM.log Prepare in progress. .................................................. 9% Done. Prepare successful. Copy files in progress. .................................................. 15% Done. .................................................. 20% Done. .................................................. 25% Done. .................................................. 30% Done. .................................................. 36% Done. .................................................. 41% Done. .................................................. 46% Done. .................................................. 51% Done. .................................................. 56% Done. Copy files successful. .......... Link binaries in progress. Link binaries successful. .................................................. 77% Done. Setup files in progress. .................................................. 94% Done. Setup files successful. The installation of Oracle Database 11g was successful. Please check '/oracle/oraInventory/logs/silentInstall2015-09-12_10-05-22PM.log' for more details. Execute Root Scripts in progress. As a root user, execute the following script(s): 1. /oracle/app/db_home/root.sh Execute /oracle/app/db_home/root.sh on the following nodes: [rac01, rac02] .................................................. 100% Done. Execute Root Scripts successful. Successfully Setup Software.
静默建库:
编辑响应文件:
cat > /home/oracle/dbca.rsp << EOF [GENERAL] RESPONSEFILE_VERSION = "11.2.0" OPERATION_TYPE = "createDatabase" [CREATEDATABASE] GDBNAME = "mecbs" SID = "mecbs" NODELIST = rac01,rac02 TEMPLATENAME = "General_Purpose.dbc" SYSPASSWORD = "123123" SYSTEMPASSWORD = "123123123" STORAGETYPE = ASM DISKGROUPNAME = DATA CHARACTERSET = "AMERICAN_AMERICA.AL32UTF8" NATIONALCHARACTERSET= "AL16UTF16" EOF
[oracle@rac01 ~]$ dbca -silent -createDatabase -responseFile /home/oracle/dbca.rsp Copying database files 1% complete 3% complete 9% complete 15% complete 21% complete 27% complete 30% complete Creating and starting Oracle instance 32% complete 36% complete 40% complete 44% complete 45% complete 48% complete 50% complete Creating cluster database views 52% complete 70% complete Completing Database Creation 73% complete 76% complete 85% complete 94% complete 100% complete Look at the log file "/oracle/app/cfgtoollogs/dbca/mecbs/mecbs.log" for further details.
查看服务及数据库运行状态:
[grid@rac01 ~]$ crsctl stat res -t -------------------------------------------------------------------------------- NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------- ora.CRS.dg ONLINE ONLINE rac01 ONLINE ONLINE rac02 ora.DATA.dg ONLINE ONLINE rac01 ONLINE ONLINE rac02 ora.LISTENER.lsnr ONLINE ONLINE rac01 ONLINE ONLINE rac02 ora.asm ONLINE ONLINE rac01 Started ONLINE ONLINE rac02 Started ora.gsd OFFLINE OFFLINE rac01 OFFLINE OFFLINE rac02 ora.net1.network ONLINE ONLINE rac01 ONLINE ONLINE rac02 ora.ons ONLINE ONLINE rac01 ONLINE ONLINE rac02 ora.registry.acfs ONLINE ONLINE rac01 ONLINE ONLINE rac02 -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.LISTENER_SCAN1.lsnr 1 ONLINE ONLINE rac02 ora.cvu 1 ONLINE ONLINE rac02 ora.mecbs.db 1 ONLINE ONLINE rac01 Open 2 ONLINE ONLINE rac02 Open ora.oc4j 1 ONLINE ONLINE rac02 ora.rac01.vip 1 ONLINE ONLINE rac01 ora.rac02.vip 1 ONLINE ONLINE rac02 ora.scan1.vip 1 ONLINE ONLINE rac02 [oracle@rac01 ~]$ srvctl status database -d mecbs Instance mecbs1 is running on node rac01 Instance mecbs2 is running on node rac02
手动安装图形界面:
yum -y groupinstall 'X Window System' && yum -y groupinstall 'Desktop' && yum -y install nautilus-open-terminal*
vi /etc/inittab id:3:initdefault: ----->
id:5:initdefault:
init 5
启用图形界面: