ORACLE --- Aix7.1 installed version of the database Oracle11.2.0.4

=== refer support.oracle.com official installation documentation
https://docs.oracle.com/cd/E11882_01/install.112/e24335/toc.htm


=== AIX difference under the command smit and smitty command
1, in the character interface: smitty and smit effect is the same.
2, the graphical interface:
System Management smitty start with the characters
start with graphics smit System Management


=== IBM AIX system is mirrored rootvg  https://jingyan.baidu.com/article/fc07f9891c516412ffe519fe.html
[@ infowms_test1 the root /] # // determine the lsvg -l rootvg rootvg pvs = 1, and can be seen lp = pp out, rootvg is no mirror
[root @ infowms_test1 /] # lspv // Check AIX system disk situation.
[root @ infowms_test1 /] # lsattr -El hdisk0 // further confirmation hdisk0 hdisk1 capacity and consistent, the same two disk capacity can mirror
[root @ infowms_test1 /] # lsattr -El hdisk1 // hdisk0 and further confirmation hdisk1 whether the same capacity, the same two disk capacity can mirror
[root @ infowms_test1 /] # bootinfo -B hdisk1 // return value is 1, then the system can boot hdisk1 otherwise not suitable hdisk0 described hdisk1 mirror
[root @ infowms_test1 /] # extendvg -f rootvg hdisk1 // hdisk1 will be incorporated into the rootvg
[root @ infowms_test1 /] # lspv // Check AIX system disk case
[root @ infowms_test1 /] # after chvg -Qn rootvg // command is completed, the value QUORUM becomes 1 (Disabled), rootvg only two disks, and simple image, it is necessary to cancel the physical volume limits the rootvg
[root @ infowms_test1 /] # mirrorvg -c 2 rootvg hdisk1 // to be mirrored rootvg

// Create the boot information on the two rootvg disk, and then modify the boot order list of equipment.
[root @ infowms_test1 /] # bootlist -m normal -o // boot device sequence
[root @ infowms_test1 /] # bosboot -ad / dev / hdisk1 // create the boot record
[root @ infowms_test1 /] # bootlist -m normal hdisk0 hdisk1 // change the boot sequence
[root @ infowms_test1 /] # bootlist -m normal -o // boot device sequence


=== AIX system also supports RPM installation package :( I install graphical tools such as VNC)
[root @ infowms_test1 /] # RPM -qa | grep VNC (version comes with tigervnc1.3.10-1 to uninstall, or in the runInstaller various open graphical interface)
TightVNC-Server-1.3.10-1
[@ infowms_test1 the root / tmp] # TightVNC RPM -e-Server-1.3.10-1
[@ infowms_test1 the root / tmp] # RPM -ivh VNC -3.3.3r2-6.aix5.1.ppc.rpm
[root @ infowms_test1 / tmp] # RPM -qa | grep VNC



(1. 7 --- all the configuration, and then restart the machine disposable shutdown -Fr, all arranged such that force)
1, a hardware environment check:
[@ infowms_test1 the root /] DF # -g / tmp // General 1GB to satisfy
[ root @ infowms_test1 /] # / usrand 8G production environment generally requires more than
[root @ infowms_test1 /] # /general settings to between 8--32Gb
[root @ infowms_test1 /] # / usr / sbin / -s // Check the lsps swap usage

Available RAM                       Swap Space Required
Between 1 GB and 2 GB       1.5 times the size of the RAM
Between 2 GB and 16 GB      Equal to the size of the RAM
More than 16 GB                   16 GB

[root @ infowms_test1 /] # / usr / bin / getconf HARDWARE_BITMODE // View server-digit
[root @ infowms_test1 /] # bootinfo -K // View server-digit

[root @ infowms_test1 /] # prtconf | grep Processor // Check CPU type
[root @ infowms_test1 /] # lsattr -El proc0 // view a CPU state
[root @ infowms_test1 /] # oslevel -s // Check OS version
[ root @ infowms_test1 /] # instfix -i | grep ML // Check OS version


===检查大网IP网卡是否绑定多网卡,生产环境一般要求双网卡绑定
[root@infowms_test1/]# smit etherchannel ---> List All EtherChannels / Link Aggregations
EtherChannel / Link Aggregation: ent8
Status: Available
Attributes:
      adapter_names   ent0           EtherChannel Adapters
      alt_addr        0x000000000000 Alternate EtherChannel Address
      auto_recovery   yes            Enable automatic recovery after failover
      backup_adapter  ent4           Adapter used when whole channel fails
      hash_mode       default        Determines how outgoing adapter is chosen
      interval        long           Determines interval value for IEEE 802.3ad mode
      mode            standard       EtherChannel mode of operation
      netaddr         0              Address to ping
      noloss_failover yes            Enable lossless failover after ping failure
      num_retries     3              Times to retry ping before failing
      retry_time      1              Wait time (in seconds) between pings
      use_alt_addr    no             Enable Alternate EtherChannel Address
      use_jumbo_frame no             Enable Gigabit Ethernet Jumbo Frames


=== Configuration search the domain name server and dns the IP
[@ infowms_test1 the root /] # VI /etc/resolv.conf
search oracle.com.cn
nameserver 10.30.XX.XX
nameserver 10.40.XX.XX
  
=== DNS resolution check sequence
[ root @ infowms_test1 /] # more /etc/netsvc.conf
suggestions: hosts = local, bind, nis


=== If you use the domain name database, then notify network engineers to configure IP binding domain in the DNS, if a RAC, configure multiple SCAN VIP
example: testdb.learn.oracle.com.cn
[root @ infowms_test1 /] # nslookup testdb. learn


2, modify the host name (required reboot to take effect)
[root @ infowms_test1 /] [# hostname infowms_test1 into force provisionally restart failure]

[root @ infowms_test1 /] # smit tcpip ---> futher configureation ---> hostname ---> set the hostname [permanent, you need to restart]
[root @ infowms_test1 /] # smit ---> communication Application and Services ---> TCP / IP ---> futher configureation ---> hostname ---> set the hostname [permanent, you need to restart] or so

[root@infowms_test1/]#cat /etc/hosts
10.xx.xx.xx    infowms_test1

Final confirmation in / etc / hosts the data is consistent.


3, turn off the firewall
to open the firewall
smit ---> communication Application and Services --- > TCP / IP ---> configure IP security (ipv4) ---> Start / stop ip security ----> start IP security
Close firewall
smit ---> communication Application and Services --- > TCP / IP ---> configure IP security (ipv4) ---> Start / stop ip security ----> stop IP security
configuration of firewall rules
smit - -> communication Application and Services ---> TCP / IP ---> configure IP security (ipv4) ---> Advantanced IP Security Configuration


4, check the software environment, install Oracle dependence, as well as operating system patches
at The following are Operating System filesets required for AIX 7.1:
bos.adt.base
bos.adt.lib
bos.adt.libm
bos.perf.libperfstat
bos.perf.perfstat
bos.perf.proctools
xlC.rte.11.1.0.2 or later
gpfs.base 3.3.0.11

=== lslpp check whether the required system dependencies installed file set (the filesets)
[the root @ infowms_test1 /] # the lslpp -l bos.adt.base bos.adt.lib bos.adt.libm bos.perf.perfstat BOS. perf.libperfstat bos.perf.proctools xlC.rte gpfs.base

[root @ infowms_test1 /] # lslpp -l gpfs.base == If such a state is not installed
lslpp: 0504-132 Fileset gpfs.base not installed.

[root @ infowms_test1 /] # lslpp -l xlC.rte == If such a state is installed
  on the Fileset Level State the Description        
  ------------------------ -------------------------------------------------- -
the path: / usr / lib / objrepos
  the xlC.rte 13.1.3.1 the Runtime COMMITTED the IBM XL C ++ for the AIX
 
=== required to install the system dependencies
[root @ infowms_test1 /] # smit install_latest
select the installation path, such as / dev / cd0
the INPUT Device / Directory for software [/ dev / cd0]
on the software options installed, press F4 or Esc + 4, open the software list, you can use the "/" find the file you need to install the set. As found bos.adt, and then press F7 or Esc + 7 select the software you want to install:
    > bos.adt ALL
      5.2.0.50 Base the Debuggers the Application Development
      5.2.0.40 Base Application Development Graphics Include Files
Enter, to determine the installation option
     PREVIEW only (the NOT install Operation by Will Occur) NO?
     COMMIT the Updates Software yes?
     The SAVE REPLACED Files NO?
Which:
PREVIEW only represent a preview installation, if you choose yes you can first test installation
COMMIT software updates represent an immediate commit, if selected yes, the SAVE replaced files to no.
ACCEPT new license agreements generally chosen yes, accepted the license agreement.


===安装AIX系统补丁
[root@infowms_test1/]# /usr/sbin/instfix -ik "IZ87216 IZ87564 IZ89165 IZ97035"
    All filesets for IZ87216 were found.
    All filesets for IZ87564 were found.
    All filesets for IZ89165 were found.
    All filesets for IZ97035 were found.


=== check which detailed system patches are installed
[root @ infowms_test1 /] # / usr / sbin / instfix -a -ivk IZ87216


=== install system patches
[root @ infowms_test1 /] # smit update_by_fix
selected installation directory, such as the
INPUT device / directory for software [/ dev / cd0]
open installation list, select the patch to be installed, such as
      IY35795 smitty causes an error of invalid in ja_JP strings of length
     > IY35810 extendvg Enhanced Concurrent with 3 or More Nodes May Fail
       IY35817 the pthread Debug Resource owner Broken for 64-bit the MODE-
determined mounting options, whether to commit, whether to save the last version, etc., submitted to the Executive after installation OK.


5, the core configuration parameters
=== A, UDP and TCP port range check:
[@ infowms_test1 the root /] # / usr / sbin / NO -a | fgrep ephemeral
       tcp_ephemeral_high = 65535
        tcp_ephemeral_low = 32768
       udp_ephemeral_high = 65535
        udp_ephemeral_low = 32768 
Review 9000 -65 500:
[@ infowms_test1 the root /] # / usr / sbin / NO -p -o -o tcp_ephemeral_high tcp_ephemeral_low = 9000 = 65500
[@ infowms_test1 the root /] # / usr / sbin / NO = -p 9000 -o -o udp_ephemeral_low udp_ephemeral_high = 65500

[root@infowms_test1/]# /usr/sbin/no -a | fgrep ephemeral   (再次查看)
       tcp_ephemeral_high = 65500
        tcp_ephemeral_low = 9000
       udp_ephemeral_high = 65500
        udp_ephemeral_low = 9000


=== B, AIX 6.1 and 7.1 inspection system asynchronous IO, AIO may be prompted to improve I / O throughput and performance. [The recommended value for aio_maxreqs is 64k ( 65536) ]
View system asynchronous IO
[root @ infowms_test1 /] # the ioo -o aio_maxreqs
aio_maxreqs = 131072
set the system asynchronous IO size
[root @ infowms_test1 /] # aio_maxreqs the ioo -o = 65536
Setting aio_maxreqs to 65536
detects the current number using
[root @ infowms_test1 / etc] # PS either -ek | grep -v grep | grep -v posix_aioserver | grep -c aioserver
0


=== C, the virtual memory manager to optimize
[@ infowms_test1 the root /] -o # -p the vmo the minperm% =. 3
[@ infowms_test1 the root /] -p -o the maxperm the vmo # = 90%
[@ infowms_test1 the root /] # the vmo - -o the maxclient = 90% P
[@ infowms_test1 the root /] # -p -o strict_maxclient the vmo. 1 =
[@ infowms_test1 the root /] -p -o strict_maxperm the vmo # = 0

vmo -p -o lru_file_repage = 0 --AIX7.1 not required, the parameter AIX6.1
given: vmo: 1485-110 Invalid tunable name lru_file_repage

查看:
[root@infowms_test1/]# vmo -a  --查看所有
[root@infowms_test1/]# vmo -a |grep minperm%
[root@infowms_test1/]# vmo -a |grep maxperm%
[root@infowms_test1/]# vmo -a |grep maxclient%
[root@infowms_test1/]# vmo -a |grep strict_maxclient 
[root@infowms_test1/]# vmo -a |grep strict_maxperm


=== D, adjusted operating systems ARG / ENV space [Oracle recommends that you increase the space allocated for ARG / ENV list to 128 ]
[root @ infowms_test1 /] # lsattr -El sys0 -a ncargs - see
[root @ infowms_test1 /] # chdev -l sys0 -a ncargs = 256 - Review


=== E, configure the maximum number of user processes
[root @ infowms_test1 /] # / usr / sbin / lsattr -E -l sys0 -a maxuproc - see
[root @ infowms_test1 /] # smitty chgsys - see
[root @ infowms_test1 /] # / usr / sbin / chdev -l sys0 -a maxuproc = 16384 - Review


===F、配置SSH LoginGraceTime(Oracle recommends uncommenting the LoginGraceTime parameter in the OpenSSH configuration file /etc/ssh/sshd_config, and setting it to a value of 0 (unlimited).)
[root@infowms_test1/]# vi /etc/ssh/sshd_config
LoginGraceTime  0

重启SSH:
[root@infowms_test1/]# stopsrc -s sshd
[root@infowms_test1/]# startsrc -s sshd


6, the network configuration optimization parameters
[root @ infowms_test1 /] # no -a | grep -E "ipqmaxlen | rfc1323 | sb_max | tcp_recvspace | tcp_sendspace | udp_recvspace | udp_sendspace" - Check
ipqmaxlen has = 100
The rfc1323 = 0
the sb_max = 1048576
The tcp_recvspace = 16384
= 16384 for tcp_sendspace
The udp_recvspace = 42080
The udp_sendspace = 9216

To change the parameters, verify whether the compatibility mode:
[@ infowms_test1 the root /] # of sys0 the lsattr -E -l -a pre520tune
pre520tune disable PreS-MODE True compatibility 520. Tuning

disable模式修改参数:
[root@infowms_test1/]# /usr/sbin/no -r -o ipqmaxlen=512
[root@infowms_test1/]# /usr/sbin/no -p -o rfc1323=1
[root@infowms_test1/]# /usr/sbin/no -p -o sb_max=4194304
[root@infowms_test1/]# /usr/sbin/no -p -o tcp_recvspace=65536
[root@infowms_test1/]# /usr/sbin/no -p -o tcp_sendspace=65536
[root@infowms_test1/]# /usr/sbin/no -p -o udp_recvspace=655360
[root@infowms_test1/]# /usr/sbin/no -p -o udp_sendspace=65536

enable模式修改参数:
[root@infowms_test1/]# vi /etc/rc.net
if [ -f /usr/sbin/no ] ; then
    /usr/sbin/no -o udp_sendspace=65536
    /usr/sbin/no -o udp_recvspace=655360
    /usr/sbin/no -o tcp_sendspace=65536
    /usr/sbin/no -o tcp_recvspace=65536
    /usr/sbin/no -o rfc1323=1
    /usr/sbin/no -o sb_max=4194304
    /usr/sbin/no -o ipqmaxlen=512
fi

Using the card private rfc1323 aix command to adjust parameters:
[@ infowms_test1 the root /] # the smitty chinet select the public network card (eth8,) and the private network card (eth1, eth5), then modify rfc1323 = 1

Restart the server (shutdown -Fr)

再次检查:
[root@infowms_test1/]# no -a | grep -E "ipqmaxlen|rfc1323|sb_max|tcp_recvspace|tcp_sendspace|udp_recvspace|udp_sendspace"
                ipqmaxlen = 512
                  rfc1323 = 1
                   sb_max = 4194304
            tcp_recvspace = 65536
            tcp_sendspace = 65536
            udp_recvspace = 655360
            udp_sendspace = 65536

See the following documents, represent the next server restart parameters has the same effect as:
[root @ infowms_test1 /] # More / etc / tunables / nextboot


7, modify user restrictions
[root @ infowms_test1 /] # vi /etc/security/limits.conf ( such as the original to be deleted exists, stack_hard be set, or can not modify the stack limit)
default:
        fsize = -1
        Core = 2097151
        CPU = - . 1
        Data = -1
        RSS = -1
        stack_hard = -1
        Stack = -1
        the nofiles = -1

After the restart inspection :( need to restart the server -Fr the shutdown)
[root @ infowms_test1 /] # ulimit -a

Modify (effective immediately) :( the first letter of the above options)
[root @ infowms_test1 /] # ulimit -f Unlimited (modified fsize)


8、创建orcale用户,将其加入dba组
[root@infowms_test1/]# mkgroup -'A' id='1000' adms='root' oinstall
[root@infowms_test1/]# mkgroup -'A' id='1001' adms='root' dba
[root@infowms_test1/]# mkuser id='1101' pgrp='oinstall' groups='dba' home='/home/oracle' oracle
[root@infowms_test1/]# passwd oracle


9、创建目录
[root@infowms_test1/]# mkdir -p /u01/app/oracle
[root@infowms_test1/]# mkdir -p /u01/app/oraInventory
[root@infowms_test1/]# mkdir -p /u01/app/oracle/product/11.2.0/dbhome_1
[root@infowms_test1/]# chown -R oracle:oinstall /u01/app/oracle
[root@infowms_test1/]# chown -R oracle:oinstall /u01/app/oraInventory
[root@infowms_test1/]# chown -R oracle:oinstall /u01/app/oracle/product/11.2.0/dbhome_1
[root@infowms_test1/]# chmod -R 775 /u01


10、设置oracle用户环境变量
[oracle@infowms_test1/home/oracle]# vi .profile
[oracle@infowms_test1/home/oracle]# cat .profile
export ORACLE_SID=SCPRD
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export NLS_DATE_FORMAT="YYYY-MM-DD HH24:MI:SS"
export NLS_LANG='AMERICAN_AMERICA.AL32UTF8'
export TNS_ADMIN=$ORACLE_HOME/network/admin
export PATH=PATH:$ORACLE_HOME/bin:/bin:/usr/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
umask 022

Check environment configuration is complete
.profile.
Env | grep ORA


11, the graphical interface installation
1, unzip the file
[@ infowms_test1 the root /] # SU - Oracle
[Oracle @ infowms_test1 / Home / Oracle] # CD / Data
[Oracle @ infowms_test1 / Data] # the unzip p13390677_112040_AIX64-5L_1of7.zip
[Oracle @ infowms_test1 / data] # unzip p13390677_112040_AIX64-5L_2of7.zip

p6880880_112000_AIX64-5L.zip (opatch Kit)
p27967757_112040_AIX64-5L.zip (PSU patch installation see other articles I wrote)


2, installation (landing using VNC, Remote Desktop to)
[root @ infowms_test1 /] # RPM -qa | grep VNC (need to install tigervnc, if not installed TigerVNC)
VNC-3.3.3r2-6

[root@infowms_test1/data/database]#./rootpre.sh
./rootpre.sh output will be logged in /tmp/rootpre.out_19-08-26.16:14:25

Checking if group services should be configured....
Nothing to configure.

[@ infowms_test1 the root /] the xhost + #
[@ infowms_test1 the root /] # SU - Oracle
[Oracle @ infowms_test1 / Home / Oracle] # Export the DISPLAY = 10.xx.xx.xx: 1.0
if garbled, select a different one of the following LANG and the environment variable
[Oracle @ infowms_test1 / Home / Oracle] # Export
[Oracle @ infowms_test1 / Home / Oracle] # Export
[Oracle @ infowms_test1 / Home / Oracle] # CD / Data
[Oracle @ infowms_test1 / Data] # CD Database
[ oracle @ infowms_test1 / data / database] # ./runInstaller

Graphical installation process will be omitted ... itself. (Recommended only install the database software, followed by building a database DBCA)


3, the installation script executed last two (performed at the root)
[the root @ infowms_test1 /] # /u01/app/oraInventory/orainstRoot.sh
[@ infowms_test1 the root /] # /u01/app/oracle/product/11.2.0/ dbhome_1 / root.sh


4, return to the graphical installation interface, to confirm, the installation is complete.

5, DBCA building a database (selective attention character set, AMM or ASMM memory management, proprietary server mode, set the number of processes)

6, NETCA create a listener (or manually configure the listener.ora and tnsnames.ora files, check the network configuration article)

7, Opatch PSU patch (See the patch PSU article)



Focus On Technology,Thanks To My Family And Friends ! 

                        --- Elegent_Shu ---

 

Guess you like

Origin blog.51cto.com/14509409/2433435