:(CNOUG ID:brotherxiao)
(CNOUG ID:David.Guo)
Blog: http://www.oracledba.com.cn
www.oracledba.com.cn,,
IBM P510
DS4300 4 300G
2 2
HP DL380
HP KVM
IBM
AIX5.3
AIX5.3 update
AIX5.3 HACMP
Oracle9i for AIX
Weblogic for AIX5L
Unzip
Windows 2003 server
1.
2.
3. UPS
1.
2.
3. ibm storage manager 9 ping 192.168.128.101
(IP:192.168.128.101/102 255.255.255.0)
4. storage manager 9
5. 50G 11
<F5>
Pour definir ce terminal comme console systeme, appuyez sur 1puis sur entree.
Taste 1 and ansch1iessend die eingabetaste druecken,um
diese datenstation als systemkonsole zu verwenden.
Prenier I1 tasto 1 ed invio per usare questo terminal como consolo.
Escriba 1 y pulse intro para utilizer esta terminal como consola del sistema.
Tryck paa 1 och sedan paa enter om dy vill att haer terminalen ska vara systemkonsol
11
>>> 1 Type 1 and press enter to have English during install.
2 Type 2 en druk op enter om tijdens het installeren het Nederlands te
krijgen.
3 Entrez 3 pour effectuer 1 installation en francais.
4 Fr Installation in deutscher sprache 4 eingeben und die eingabetaste drcken.
5 Immettere 5 e premereinvio per 1 installazione initaliona.
6 Escriba 6 ypulse intro para usar el idioma espa ol durante la instalaci n.
7 Skriv 7 och tryck ned enter=svenska vid installationen.
88
Help
>>>Choice1:
1 English
Welcome to Base Operating System
Installation and Maintenance
Type the number of your choice and press enter .Choice is indicated by>>>
>>>1 Start install now with default settings
2 Change/show installation settings and install
3 Start Maintenance Mode for system Recovery
88 Help
99 Previous Menu
>>>Choice 1:
BOS
2Install and Setting
Help
Previous Menu
>>>Choice 1
WARNING:Base Operating system installation will destroy or impair recovery of ALL data on the
destination disk hdisk0.
0
BOS BOS
(vt100 ibm3151)
F3 F10
ctrl-c
BOSLOGIN
1 root
2workspace
mount v cdrfs o ro /dev/cd0 /mnt
3
# smitty install
F4 :
bos.data,bos.compat,bos.perf,bos.clvm,bos.adt
x11.dt,x11.compat,rsct.basic,rsct.core,rsct.compat
4
1paging size
Smittysystem storage managementlogical volume managerpaging sizechange/show
characteristics of a paging size
28 LPps512M,lp128M
lsps a 4G
2floating license
Smittysystem environmentchange /show number of Licensed Usersfloating licensing
(offon)
3tty
Smitty ttyadd a tty
[30]
#
MAXIMUM number of servers per cpu
[60]
[4096]
Server PRIORITY
[39]
#
STATE to be configured at system restart
available
enable
0X8000170E9F700000
0X8000170E9F700001
[1024]
+#
Maximum number of pages in block I/O BUFFER CACHE
[80]
+#
Maximum Kbytes of real memory allowed for MBUFS
[0]
+#
Automatically REBOOT system after a crash
true
false
+
HIGH water mark for pending write I/Os per file
[33]
+#
6
[24]
+#
Amount of usable physical memory in Kbytes
1900544
normal
false
false
disable
+
Maximum login name length at boot time
[9]
+#
Stack Execution Disable (SED) Mode
select
+
ARG/ENV list size in 4K byte blocks
[6]
+#
CPU Guard
enable
1.00
Partition is capped
true
Partition is dedicated
true
1.00
1.00
1.00
4rootvg
1. rootvg
#extendvg rootvg hdisk1
2. rootvg
3. boot image
#bosboot -ad /dev/hdisk0
4. bootlist
#bootlist -m normal hdisk0 hdisk1 cd0
5.
#shutdown Fr
en1
192.10.10.2
255.255.255.0
HACMP
1 hacmp
2 mount v cdrfs o ro /dev/cd0 /mnt
3 smitty install
4 F4 cluster.hativolicluster.haview,rsct.exp
hacmp
Shutdown -Fr
datavg
8
[datavg]
256
[hdisk2,hdisk3..hdisk11]
+
Force the creation of a volume group?
no
no
at system restart?
Volume Group MAJOR NUMBER
[]
+#
no
no
128
webvg(PV:hdisk12)
datavg,webvg import Oracle
1 varyoffvg datavg 2 import vg
2
mkgrv40lv.sh varyonvg
mklv -y system
mklv -y user
-w n -s n -r n -t jfs
-w n -s n -r n -t jfs
datavg
datavg
8
8
mklv -y rbs01
-w n -s n -r n -t jfs
datavg
16
mklv -y rbs02
-w n -s n -r n -t jfs
datavg
16
mklv -y rbs03
-w n -s n -r n -t jfs
datavg
16
mklv -y rbs04
-w n -s n -r n -t jfs
datavg
16
mklv -y rbs05
-w n -s n -r n -t jfs
datavg
16
mklv -y temp01
-w n -s n -r n -t jfs
datavg
16
mklv -y temp02
-w n -s n -r n -t jfs
datavg
16
mklv -y temp03
-w n -s n -r n -t jfs
datavg
16
mklv -y temp04
-w n -s n -r n -t jfs
datavg
16
mklv -y temp05
-w n -s n -r n -t jfs
datavg
16
mklv -y redo01
-w n -s n -r n -t jfs
datavg
mklv -y redo02
-w n -s n -r n -t jfs
datavg
mklv -y redo03
-w n -s n -r n -t jfs
datavg
mklv -y redo04
-w n -s n -r n -t jfs
datavg
mklv -y redo05
-w n -s n -r n -t jfs
datavg
mklv -y redo06
-w n -s n -r n -t jfs
datavg
mklv -y gd01
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_daxx01
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_rwsj01
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_rwsj02
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_rwsj03
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_rwsj04
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_rwsj05
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_rwsj06
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_rwsj07
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_rwsj08
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_rwsj09
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_rwsj10
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_gdsj01
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_gdsj02
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_gdsj03
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_gdsj04
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_gdsj05
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_gdsj06
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_gdsj07
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_gdsj08
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_gdsj09
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_gdsj10
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_txjx01
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_txjx02
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_txjx03
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_txjx04
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_txjx05
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_txjx06
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_txjx07
-w n -s n -r n -t jfs
datavg
16
10
mklv -y xcgl_txjx08
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_txjx09
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_txjx10
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_idx01
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_idx02
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_idx03
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_idx04
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_idx05
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_idx06
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_idx07
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_idx08
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_idx09
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_idx10
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_ycxx01
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_ycxx02
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_ycxx03
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_ycxx04
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_ycxx05
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_ycxx06
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_ycxx07
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_ycxx08
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_ycxx09
-w n -s n -r n -t jfs
datavg
16
mklv -y xcgl_ycxx10
-w n -s n -r n -t jfs
datavg
16
11
12
13
14
/dev/system
chmod 777
/dev/user
chmod 777
/dev/rbs01
chmod 777
/dev/rbs02
chmod 777
/dev/rbs03
chmod 777
/dev/rbs04
chmod 777
/dev/rbs05
chmod 777
/dev/temp01
chmod 777
/dev/temp02
chmod 777
/dev/temp03
chmod 777
/dev/temp04
chmod 777
/dev/temp05
chmod 777
/dev/redo01
chmod 777
/dev/redo02
chmod 777
/dev/redo03
chmod 777
/dev/redo04
chmod 777
/dev/redo05
chmod 777
/dev/redo06
15
16
/dev/rsystem
chmod 777
/dev/ruser
chmod 777
/dev/rrbs01
chmod 777
/dev/rrbs02
chmod 777
/dev/rrbs03
chmod 777
/dev/rrbs04
chmod 777
/dev/rrbs05
chmod 777
/dev/rtemp01
chmod 777
/dev/rtemp02
chmod 777
/dev/rtemp03
chmod 777
/dev/rtemp04
chmod 777
/dev/rtemp05
chmod 777
/dev/rredo01
chmod 777
/dev/rredo02
chmod 777
/dev/rredo03
chmod 777
/dev/rredo04
chmod 777
/dev/rredo05
chmod 777
/dev/rredo06
17
18
oracle
Oracle
1.
rootvg/oracle_install10G
/oracleoracle,10G
tmp,tmp(2G)tmptmp
2.
3.
4.
(ftp)/oracle_install(.zip9207)
/oracle_install1234
su oracle
cd /oracle_install
mkdir 1
mkdir 2
mkdir 3
mkdir 4
oracle1,2,3,4/oracle_install1234
mount v cdrfs o ro /dev/cd0 /mnt
19
cp r /mnt/* /oracle_install/1
unmount /mnt
5.
unzip()
unzipunz550x-aix5L.tar.Z/oracle_installuncompress
uncompress unz550x-aix5L.tar.Z -- unz550x-aix5L.tar
tar tar -vxf unz550x-aix5L.tar
--unzip-5.50unzip
smittyDBA(1000)oracle(2000)
oracledba, soft file size1soft data segment 1soft stack
size 1soft core file size1
oinstall(1001)
7. .profile
# Oracle Environment
ORACLE_BASE=/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/9.2.0; export ORACLE_HOME
ORACLE_SID=oradb; export ORACLE_SID
#ORACLE_TERM=vt100; export ORACLE_TERM
TNS_ADMIN=$ORACLE_HOME/network/admin;export TNS_ADMIN
NLS_LANG=american_america.zhs16cgb; export NLS_LANG
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data; export ORA_NLS33
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib; export LD_LIBRARY_PATH
LIBPATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib ;export LIBPATH
ORA_DB=$ORACLE_HOME/dbs;export ORA_DB
CLASSPATH=$ORACLE_HOME/JRE/lib:$ORACLE_HOME/JRE/lib/rt.jar:$ORACLE_HOME/jlib:
$ORACLE_HOME/rdbms/jlib; export CLASSPATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
DISPLAY
rootxhost +
oracleexport DISPLAY=172.19.74.197:0.0
20
()
8.
su - oracle
cd /oracle_install/1
./runInstaller
9.
root
(9207)
1 /oracle_install/9207
2
chown R oracle:dba /oracle_install/9207
chmod R 777 /oracle_install/9207
3 ./runInstaller y
4 root
oracledbca
DISPLAY
rootxhost +
oracleexport DISPLAY=172.19.74.197:0.0
--9207dbca/dbua
There's a known problem on AIX, if database was patched omitting patchset 9.2.0.4 :
Problem is: library libnjni9.so was not included into later patchsets,but is needed by DBCA/DBUA .
Try the following (before doing this check if libnjni9.so is really missing and we don't have
another problem)
1) Download the 9.2.0.4.0 patchset <Bug: 3095277> from Metalink and stage on the server.
2) $ cd <9204 staging area>/Disk1/stage/Patches/oracle.rsf.hybrid/9.2.0.3.0/1/DataFiles
3) $ cp group.1.1.jar /tmp/.
4) $ cd /tmp
21
HA
hosts
CXGRDB1 CXGRDB2 /etc/hosts vi
127.0.0.1
loopback localhost
10.121.11.100 CXGRDB1_svc
10.121.11.102 CXGRDB1_pre
172.19.74.197 CXGRDB1_boot CXGRDB1
192.10.10.1 CXGRDB1_standby
10.121.11.101 CXGRDB2_svc
10.121.11.103 CXGRDB2_pre
172.19.74.198 CXGRDB2_boot CXGRDB2
192.10.10.2
CXGRDB2_standby
CXGRDB2
rhosts
CXGRDB1
CXGRDB2
172.19.74.197
172.19.74.198
192.10.10.1
192.10.10.2
172.19.74.198
172.19.74.197
192.10.10.2
192.10.10.1
cluster node
1smitty hacmp
Initialization and Standard Configuration
Extended Configuration
System Management (C-SPOC)
Problem Determination Tool
Add Nodes to an HACMP Cluster
Configure Resources to Make Highly Available
22
[cxgrdb ]
[CXGRDB1
CXGRDB2
10.121.11.101
CXGRDB1_svc
10.121.11.100
CXGRDB1_boot
172.19.74.197
CXGRDB1_standby 192.10.10.1
NODE CXGRDB2:
Network net_ether_01
CXGRDB2_svc
10.121.11.101
CXGRDB1_svc
10.121.11.100
CXGRDB2_boot
172.19.74.198
CXGRDB2_standby 192.10.10.2
1. service ip
Add Nodes to an HACMP Cluster
Configure Resources to Make Highly Available
Configure HACMP Resource Groups
Verify and Synchronize HACMP Configuration
Display HACMP Configuration
Configure Service IP Labels/Addresses
Configure Application Servers
23
[CXGRDB1_svc]
[net_ether_01]
2. application server
Configure Service IP Labels/Addresses
Configure Application Servers
Configure Volume Groups, Logical Volumes and Filesystems
Configure Concurrent Volume Groups and Logical Volumes
Add an Application Server
Change/Show an Application Server
Remove an Application Server
* Server Name
[oracle]
* Start Script
* Stop Script
[/oracle/startoracle.sh]
[/oracle/stoporacle.sh]
3.
Initialization and Standard Configuration
Extended Configuration
System Management (C-SPOC)
Problem Determination Tools
Add Nodes to an HACMP Cluster
Configure Resources to Make Highly Available
Configure HACMP Resource Groups
Verify and Synchronize HACMP Configuration
Display HACMP Configuration
Add a Resource Group
Change/Show a Resource Group
Remove a Resource Group
Change/Show Resources for a Resource Group (standard)
24
Cascading
Rotating
Concurrent
Custom
oracle
* Resource Group Name
[oracle]
[CXGRDB1 CXGGRDB2]
4.
Initialization and Standard Configuration
Extended Configuration
System Management (C-SPOC)
Problem Determination Tools
Add Nodes to an HACMP Cluster
Configure Resources to Make Highly Available
Configure HACMP Resource Groups
Verify and Synchronize HACMP Configuration
Display HACMP Configuration
Add a Resource Group
Change/Show a Resource Group
Remove a Resource Group
Change/Show Resources for a Resource Group (standard)
oracle
Resource Group Name
oracle
CXGRDB1
* Service IP Labels/Addresses
[CXGRDB1_svc]
Volume Groups
[datavg]
[ ]
Application Servers
CXGRDB2
[oracle]
HACMP
Initialization and Standard Configuration
Extended Configuration
System Management (C-SPOC)
Problem Determination Tools
25
192.168.109.15
jmgrdb1_boot
192.168.168.13
jmgrdb1_standby
172.16.10.1
NODE jmgrdb2:
Network net_ether_01
Jmgrdb1_svc
192.168.109.15
Jmgrdb2_boot
192.168.168.14
jmgrdb2_standby
172.16.10.2
cascading
Participating Nodes
jmgrdb1
jmgrdb2
Service IP Label
jmgrdb1_svc
26
tty
(1) tty
27
[jmgrdb1_tty]
* Network Type
rs232
Extended Configuration
Extended Topology Configuration
ConfigureHACMP Communication Interfaces/Devices
Add DiscoveredCommunicationInterfaces and Devices
jmgrdb1_tty
/dev/tty0
jmgrdb2_tty
/dev/tty0
IP
smitty hacmp
Initialization and Standard Configuration
Extended Configuration
System Management (C-SPOC)
Problem Determination Tools
Discover HACMP-related Information from Configured Nodes
Extended Topology Configuration
Extended Resource Configuration
Extended Cluster Service Settings
Extended Event Configuration
Extended Performance Tuning Parameters Configuration
Security and Users Configuration
Snapshot Configuration
Export Definition File for Online Planning Worksheets
Configure an HACMP Cluster
Configure HACMP Nodes
Configure HACMP Sites
Configure HACMP Networks
28
HACMP
1 HACMP
HA HA
2) :
- "netstat -i" IP address, service IP address, standby
IP address.
- . HA
3):
- "netstat -i" IP address, service IP address, standby
IP address.
4):
- "smitty clstop", Takeover HACMP .(
reset reboot.)
5):
- .
"netstat -i" IP address, service IP address .
"lsvg -o" vary on VG.
# lsvg o
29
rootvg
datavg datavg
- .
6):
- HACMP
- .
1) HACMP
2):
- "netstat -i" IP address, service IP address, standby
IP address.
- "lsvg -o" vary on VG.
- .
3):
- "netstat -i" IP address, service IP address, standby
IP address.
- "lsvg -o" vary on VG.
- ().
4):
- service .
- .
- "netstat -i" IP address, service IP adress standby .
- .
- service , service Standby .
odm 172.9.66.1
1odmget CuAt|grep 172.19.66.1
2odmget -q "value =net,-hopcount,0,,0,172.19.66.1" CuAt
3odmdelete -q "value =net,-hopcount,0,,0,172.19.66.1" -o CuAt
smitty tcpip
-- weblogic GRV4.0
30
Weblogic
1
Aix5.3-03Weblogic813
2
bea
Smitty groupadd a group
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry
Fields]
Group NAME
Group
ID
#
ADMINISTRATIVE group?
+
USER list
+
ADMINISTRATOR list
+
Projects
+
[bea]
[600]
true
[]
[]
[]
weblogic
Smitty user add a user
User NAME
User ID
#
ADMINISTRATIVE USER?
+
Primary GROUP
+
Group SET
+
ADMINISTRATIVE GROUPS
+
ROLES
+
weblogic
[600]
true
[bea]
[bea,system]
[]
[]
31
true
+
SU GROUPS
[ALL]
+
HOME
[/home/weblogic]
Initial PROGRAM
User INFORMATION
EXPIRATION date (MMDDhhmmyy)
Is this user ACCOUNT LOCKED?
+
User can LOGIN?
+
User can LOGIN REMOTELY(rsh,tn,rlogin)?
+
Allowed LOGIN TIMES
Number of FAILED LOGINS before
#
user account is locked
Login
AUTHENTICATION
[compat]
Valid TTYs
Days to WARN USER before password expires
#
Password CHECK METHODS
Password DICTIONARY FILES
NUMBER OF PASSWORDS before reuse
#
WEEKS before password reuse
#
Weeks between password EXPIRATION and LOCKOUT
Password MAX. AGE
#
Password MIN. AGE
#
Password MIN. LENGTH
#
Password MIN. ALPHA characters
#
Password MIN. OTHER characters
#
Password MAX. REPEATED characters
#
Password MIN. DIFFERENT characters
directory
[/usr/bin/ksh]
[]
[0]
false
true
true
[]
[0]
GRAMMAR
[ALL]
[0]
[]
[]
[0]
[0]
[-1]
[0]
[0]
[0]
[0]
[0]
[8]
[0]
32
#
Password REGISTRY
Soft FILE size
[files]
[-1]
#
Soft CPU time
Soft DATA segment
#
Soft STACK size
#
Soft CORE file size
#
Hard FILE size
#
Hard CPU time
Hard DATA segment
#
Hard STACK size
#
Hard CORE file size
#
File creation UMASK
AUDIT classes
+
TRUSTED PATH?
+
PRIMARY authentication method
SECONDARY authentication method
Projects
[-1]
[-1]
[-1]
[-1]
[]
[]
[]
[]
[]
[22]
[]
nosak
[SYSTEM]
[NONE]
[]
home /weblogic
domain
su weblogic
cd /weblogic/weblogic81/common/bin
./config.sh
Weblogic HA
34