In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
There is a complete attachment below.
The complete documentation and operation procedure are as follows
[root@rac01 ~] # cd OracleLinux-R6-U6-Server-x86_64-dvd/
[root@rac01 OracleLinux-R6-U6-Server-x86_64-dvd] # ls
EFI GPL LoadBalancer README-en.html RELEASE-NOTES-x86_64-en.html ResilientStorage Server
EULA HighAvailability media.repo RELEASE-NOTES-en RELEASE-NOTES-x86-en RPM-GPG-KEY supportinfo
Eula.en_US images Packages RELEASE-NOTES-en.html RELEASE-NOTES-x86-en.html RPM-GPG-KEY-oracle TRANS.TBL
Eula.py isolinux README-en RELEASE-NOTES-x86_64-en repodata ScalableFileSystem UEK3
[root@rac01 OracleLinux-R6-U6-Server-x86_64-dvd] # cd Packages/
[root@rac01 Packages] # cd / etc/yum.repos.d/
[root@rac01 yum.repos.d] # ls
Public-yum-ol6.repo
[root@rac01 yum.repos.d] # rm-rf *
[root@rac01 yum.repos.d] # vi local.repo
[kingsql]
Name=This is kingsql repo
Baseurl= file:///rpm/
Enabled=1
Gpgcheck=1
Gpgkey= file:///etc/pki/rpm-gpg/RPM-GPG-KEY
[root@rac01 yum.repos.d] # mkdir-p / rpm
[root@rac01 yum.repos.d] # cd / rpm
[root@rac01 rpm] cp / root/OracleLinux-R6-U6-Server-x86_64-dvd/Packages/* / rpm/
Rpm-ivh vsftpd-2.2.2-12.el6_5.1.x86_64.rpm
Rpm- ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
Rpm- ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
Rpm-ivh libxml2-2.7.6-14.el6_5.2.x86_64.rpm
Rpm-ivh libxml2-python-2.7.6-14.el6_5.2.x86_64.rpm
Rpm-ivh createrepo-0.9.9-22.el6.noarch.rpm
Rpm-ivh ksh-20120801-21.el6.x86_64.rpm
[root@rac01 rpm] # createrepo. /
Spawning worker 0 with 3848 pkgs
Workers Finished
Gathering worker results
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
[root@rac01 rpm] #
[root@rac01 rpm] # yum clean all kill-9 to end the process
[root@rac01 rpm] # yum makecache
[root@rac01 rpm] # yum install libXp* xterm* unixODBC* sysstat* make* libstdc++* libgomp* libgcc* libaio* kernel-headers* glibc* gcc* elfutils* binutils* bind bind-devel bind-chroot caching-nameserver compat-libcap1* compat-libstdc++-33* openssh* xdpyinfo vi unzip
[root@rac01 rpm] # yum install libXp* xterm* unixODBC* sysstat* make* libstdc++* libgomp* libgcc* libaio* kernel-headers*
Glibc* gcc* elfutils* binutils* bind bind-devel bind-chroot caching-nameserver compat-libcap1* compat-libstdc++-33* openssh*
Xdpyinfo vi unzip
Yum install oracle-database-server-11gR2-preinstall-y
-
First of all, select that the network card is bridged network and only the host is static and write the dns network on
Vi / etc/sysconfig/network-scripts/ifcfg-eth2 Editing the DNS configuration of two nodes two dns
Vi / etc/named.conf
Options {
Listen-on port 53 {any;}
Directory "/ var/named"
Dump-file "/ var/named/data/cache_dump.db"
Statistics-file "/ var/named/data/named_stats.txt"
Memstatistics-file "/ var/named/data/named_mem_stats.txt"
Allow-query {any;}
Recursion yes
Dnssec-enable yes
Dnssec-validation yes
/ * Path to ISC DLV key * /
Bindkeys-file "/ etc/named.iscdlv.key"
Managed-keys-directory "/ var/named/dynamic"
}
Logging {
Channel default_debug {
File "data/named.run"
Severity dynamic
}
}
Zone "." IN {
Type hint
File "/ dev/null"
}
Zone "kingsql.org" IN {
Type master
File "kingsql.org.zone"
}
Zone "56.168.192.in-addr.arpa" {
Type master
File "192.168.56.rev"
}
-
[root@rac01 named] # cd / var/named
[root@rac01 named] # pwd
/ var/named
[root@rac01 named] # vi kingsql.org.zone
$TTL 1D
@ IN SOA kingsql.org. Hostmaster.kingsql.org. (
0; serial
1D; refresh
1H; retry
1W; expire
3H); minimum
@ IN NS ns1.kingsql.org.
Ns1 IN A 192.168.56.101 own actual network
Ns2 IN A 192.168.56.101
Cluster-scan IN A 192.168.56.156
Cluster-scan IN A 192.168.56.157
Cluster-scan IN A 192.168.56.158
-
[root@rac01 named] # vi 192.168.56.rev
$TTL 1D
@ IN SOA kingsql.org. Hostmaster.kingsql.org. (
0; serial
1D; refresh
1H; retry
1W; expire
3H); minimum
@ IN NS ns1.kingsql.org.
Ns1 IN A 192.168.56.101
Ns2 IN A 192.168.56.101
156 IN PTR cluster-scan.kingsql.org.
157 IN PTR cluster-scan.kingsql.org.
158 IN PTR cluster-scan.kingsql.org.
-
Service network restart
Cat / etc/resolv.conf
Chkconfig named on
Service named start
Nslookup cluster-scan.kingsql.org
Nslookup 192.168.56.156
Nslookup 192.168.56.157
Nslookup 192.168.56.158
-not worthy of DNS.
[root@rac01 ~] # chkconfig iptables off
[root@rac01 ~] # service iptables stop
[root@rac01 ~] # vi / etc/selinux/config
Groupadd-g 1000 oinstall
Groupadd-g 1200 asmadmin
Groupadd-g 1201 asmdba
Groupadd-g 1202 asmoper
Groupadd-g 1300 dba
Groupadd-g 1301 oper
Useradd-m-u 1100-g oinstall-G asmadmin,asmdba,asmoper,dba-d / home/grid-s / bin/bash-c "Grid Infrastructure Owner" grid
Useradd-m-u 1101-g oinstall-G dba,oper,asmdba-d / home/oracle-s / bin/bash-c "Oracle Software Owner" oracle
Passwd grid
Passwd oracle
Mkdir-p / u01/app/grid
Mkdir-p / u01/app/11.2.4/grid
Chown-R grid:oinstall / U01
Mkdir-p / u01/app/oracle
Chown oracle:oinstall / u01/app/oracle
Chmod-R 775 / U01
-
Su-oracle
[oracle@rac1 ~] $vi .bash _ profile
# .bash _ profile
# Get the aliases and functions
If [- f ~ / .bashrc]; then
. ~ / .bashrc
Fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
Export PATH
Export ORACLE_BASE=/u01/app/oracle
Export ORACLE_HOME=/u01/app/oracle/product/11.2.4/dbhome_1
Export ORACLE_SID=kingsql
Export ORACLE_TERM=xterm
Export PATH=/usr/sbin:$PATH
Export PATH=/u01/app/ogg:$ORACLE_HOME/bin:$PATH
Export LD_LIBRARY_PATH=/u01/app/ogg:$ORACLE_HOME/lib:/lib:/usr/lib:$LD_LIBRARY_PATH
Export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
Export NLS_DATE_FORMAT= "yyyy-mm-dd HH24:MI:SS"
Export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
Export
Export ORACLE_UNQNAME=kingsql
If [$USER = "oracle"] | | [$USER = "grid"]; then
If [$SHELL = "/ bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Umask 022
Fi
-
Su-grid
[grid@rac1 ~] $vi .bash _ profile
# .bash _ profile
# Get the aliases and functions
If [- f ~ / .bashrc]; then
. ~ / .bashrc
Fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
Export PATH
Export ORACLE_BASE=/u01/app/grid
Export ORACLE_HOME=/u01/app/11.2.4/grid
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
If [$USER = "oracle"] | | [$USER = "grid"]; then
If [$SHELL = "/ bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Umask 022
Fi
Export
-
Su-root
Vi / etc/sysctl.conf
Fs.aio-max-nr = 1048576
Fs.file-max = 6815744
Kernel.shmmni = 4096
Kernel.sem = 250 32000 100 128
Net.ipv4.ip_local_port_range = 9000 65500
Net.core.rmem_default = 262144
Net.core.rmem_max = 4194304
Net.core.wmem_default = 262144
Net.core.wmem_max = 1048586
[root@rac01] # / sbin/sysctl-p
-
[root@rac01 ~] # vi / etc/security/limits.conf
Grid soft nproc 2047
Grid hard nproc 16384
Grid soft nofile 1024
Grid hard nofile 65536
Oracle soft nproc 2047
Oracle hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
[root@rac01 ~] # vi / etc/pam.d/login
Session required pam_limits.so
Root@rac01 ~] # vi / etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
:: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.56.101 rac01
192.168.56.102 rac02
192.168.56.111 rac01-vip
192.168.56.112 rac02-vip
192.168.1.222 rac01-priv
192.168.1.231 rac02-priv
192.168.56.158 cluster-scan
192.168.56.158 the URL above rac-cluster-scan is changed according to your own URL.
[root@rac01 ~] # vi / etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
:: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.56.105 rac01
192.168.56.106 rac02
192.168.56.111 rac01-vip
192.168.56.112 rac02-vip
192.168.1.221 rac01-priv
192.168.1.238 rac02-priv
192.168.56.158 the URL above cluster-scan is changed according to your own URL.
[root@rac1 ~] # service ntpd stop
Close ntpd: [failed]
[root@rac1 ~] # chkconfig ntpd off
[root@rac1 ~] # mv / etc/ntp.conf / etc/ntp.conf.original
[root@rac1 ~] # rm-rf / var/run/ntpd.pid
[root@rac01 ~] # shutdown-h now shutdown virtual machine creation disk (disk is set to shared mode)
One 12g and one 30g two disks
-,
[root@rac01 ~] # fdisk-l
Check the disk number
[root@rac1] # / sbin/scsi_id-u-g / dev/sdb
1ATA_VBOX_HARDDISK_VB1274608b-98003b66
[root@rac1] # / sbin/scsi_id-u-g / dev/sdc
1ATA_VBOX_HARDDISK_VBbf237514-f3435ff0
[root@rac1] # / sbin/scsi_id-u-g / dev/sdd
1ATA_VBOX_HARDDISK_VBc894130b-2f10eef0
[root@rac1] # / sbin/scsi_id-u-g / dev/sde
1ATA_VBOX_HARDDISK_VB58f6ed82-b0dc76dc
[root@rac1] # / sbin/scsi_id-u-g / dev/sdf
1ATA_VBOX_HARDDISK_VB0e0cbf34-6238f247
[root@rac1] # / sbin/scsi_id-u-g / dev/sdg
1ATA_VBOX_HARDDISK_VB98788216-29530089
Rac1 writes the file and then copy to other nodes
/ etc/udev/rules.d/99-oracle-asmdevices.rules
[root@rac01 ~] # vi / etc/udev/rules.d/99-oracle-asmdevices.rules
KERNEL== "sd*", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "", NAME= "asm-disk1", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd*", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "", NAME= "asm-disk2", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd*", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "1ATA_VBOX_HARDDISK_VB1274608b-98003b66", NAME= "asm-disk1", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd*", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "1ATA_VBOX_HARDDISK_VBbf237514-f3435ff0", SYMLINK+= "asm-disk2", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
/ / here are the UDEV bound in two ways. You can choose one of them. Do not copy them completely.
[root@rac1 ~] # scp / etc/udev/rules.d/99-oracle-asmdevices.rules rac02:/etc/udev/rules.d/99-oracle-asmdevices.rules
[root@rac01 ~] # start_udev
Starting udev: [OK]
[root@rac01 ~] # ls-l / dev/asm*
Brw-rw---- 1 grid asmadmin 8, May 16 17 12:09 / dev/asm-diskb
Lrwxrwxrwx 1 root root May 17 12:09 / dev/asm-diskc-> sdc
[root@rac01 ~] # mv p13390677_112040_Linux-x86-64_3of7.zip / home/grid/
-
Su-grid
-
[grid@rac01 ~] $unzip p13390677_112040_Linux-x86-64_3of7.zip
[grid@rac01 ~] $cd grid/
[grid@rac01 grid] $ls
Install response runInstaller sshsetup welcome.html
Readme.html rpm runcluvfy.sh stage
[grid@rac01 grid] $cd rpm/
[grid@rac01 rpm] $ls
Cvuqdisk-1.0.9-1.rpm
-
[grid@rac01 rpm] $su root
Password:
[root@rac1] # rpm-ivh / home/grid/grid/rpm/cvuqdisk-1.0.9-1.rpm
Preparing... # [100%]
Using default group oinstall to install package
1:cvuqdisk # # [100%]
-
-
Su-grid
[grid@rac01 grid] $. / runInstaller
Script 2 takes a long time to run
[root@rac01 ~] # / opt/ora11g/oraInventory/orainstRoot.sh execution script needs to be executed after rac01 executes the first script, after rac02 executes the first script
[root@rac02 ~] # / opt/ora11g/oraInventory/orainstRoot.sh
[root@rac01 ~] # / opt/ora11g/11.2.4/grid/root.sh execution script needs to be executed after rac01 has finished executing the second script, and after rac02 executes the second script
[root@rac02 ~] # / opt/ora11g/11.2.4/grid/root.sh
[root@rac01 ~] # su-grid
[grid@rac01] $crsctl status res-t
[grid@rac01 ~] $ping cluster-scan
[root@rac01 ~] # ping rac01-vip
[grid@rac01 grid] $asmca create a disk group
-
[root@rac01 ~] # su-oracle
[oracle@rac01 ~] $
[oracle@rac01 ~] $ls
-
P13390677_112040_Linux-x86-64_1of7.zip p13390677_112040_Linux-x86-64_2of7.zip
[oracle@rac01 ~] $unzip p13390677_112040_Linux-x86-64_1of7.zip
[oracle@rac01 ~] $unzip p13390677_112040_Linux-x86-64_2of7.zip
-
[oracle@rac01 database] $. / runInstaller
-
[root@rac01 ~] # / opt/ora11g/oracle/product/11.2.4/dbhome_1/root.sh
-
[oracle@rac01 ~] $dbca
-
-
[
[grid@rac01] $crsctl status res-t
NAME TARGET STATE SERVER STATE_DETAILS
Local Resources
Ora.DATA.dg
ONLINE ONLINE rac01
Ora.LISTENER.lsnr
ONLINE ONLINE rac01
Ora.OCR.dg
ONLINE ONLINE rac01
Ora.asm
ONLINE ONLINE rac01 Started
Ora.gsd
OFFLINE OFFLINE rac01
Ora.net1.network
ONLINE ONLINE rac01
Ora.ons
ONLINE ONLINE rac01
Cluster Resources
Ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE rac01
Ora.LISTENER_SCAN2.lsnr
1 ONLINE ONLINE rac01
Ora.LISTENER_SCAN3.lsnr
1 ONLINE ONLINE rac01
Ora.cvu
1 ONLINE ONLINE rac01
Ora.kingsql.db
1 ONLINE ONLINE rac01 Open
Ora.oc4j
1 ONLINE ONLINE rac01
Ora.rac01.vip
1 ONLINE ONLINE rac01
Ora.scan1.vip
1 ONLINE ONLINE rac01
Ora.scan2.vip
1 ONLINE ONLINE rac01
Ora.scan3.vip
1 ONLINE ONLINE rac01
[grid@rac01 ~] $sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Tue May 15 00:59:29 2018
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0-64bit Production
With the Real Application Clusters and Automatic Storage Management options
SQL > show parameter db_unique
NAME TYPE VALUE
-
Db_unique_name string + ASM
SQL > select instance_name from v$instance
INSTANCE_NAME
-
+ ASM1
SQL > quit
OEL installs DNS documentation 1.docx
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.