设为首页 收藏本站
查看: 1217|回复: 0

[经验分享] AIX上安装Oracle10G软件

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2014-7-15 08:41:47 | 显示全部楼层 |阅读模式
安装准备(1)确认系统版本、内核版本# oslevel –r   //查看操作系统版本
//-08可以安装10g,-09可以安装11g
SouthEast.jpg
# prtconf |more   //打印硬件配置信息
System Model: IBM,7028-6C4
Machine Serial Number: 10681AA
Processor Type: PowerPC_POWER4
Processor Implementation Mode:POWER 4                      //P4的机器
Processor Version: PV_4
Number Of Processors: 2                                                     //两颗cpu
Processor Clock Speed: 1002 MHz                                       //主频1002Mhz
CPU Type: 64-bit
Kernel Type: 64-bit                                                               //内核位数
LPAR Info: 1 NULL
Memory Size: 2048 MB                                                       //内存2g
Good Memory Size: 2048 MB
Platform Firmware level: 3R080425
Firmware Version: IBM,RG080425_d79e22_r
Console Login: enable
Auto Restart: true
Full Core: false

Network Information
        HostName: aix203
        IPAddress: 10.10.10.203
        SubNetmask: 255.255.255.0
        Gateway:
        NameServer:
        DomainName:

Paging Space Information
        TotalPaging Space: 4096MB
        PercentUsed: 1%

Volume Groups Information
==============================================================================
rootvg:
PV_NAME          PV STATE          TOTAL PPs   FREE PPs   FREE DISTRIBUTION
hdisk0           active            542         4           00..00..00..00..04
==============================================================================

datavg:
PV_NAME          PV STATE          TOTAL PPs   FREE PPs   FREE DISTRIBUTION
hdisk3           active            159         139         32..22..21..32..32
hdisk4           active            159         159         32..32..31..32..32
==============================================================================

INSTALLED RESOURCE LIST

The following resources are installed on the machine.
+/- = Added or deleted from Resource List.
*   = Diagnosticsupport not available.
        
  ModelArchitecture: chrp
  ModelImplementation: Multiple Processor, PCI bus
        
+ sys0                                                            System Object
+ sysplanar0                                                      System Planar
* pci1            U0.1-P1                                         PCIBus
* pci6            U0.1-P2                                         PCIBus
+ ent1            U0.1-P2-I4/E1                                   10/100 MbpsEthernet PCI Adapter II (14
10ff01)
* pci7            U0.1-P2                                         PCIBus
+ ent2            U0.1-P1/E1                                      10/100Mbps Ethernet PCI Adapter II (14
10ff01)
* pci8            U0.1-P2                                         PCIBus
+ fcs0            U0.1-P2-I3/Q1                                  FC Adapter
* fcnet0          U0.1-P2-I3/Q1                                   FibreChannel Network Protocol Device
* fscsi0          U0.1-P2-I3/Q1                                   FC SCSI I/OController Protocol Device
* hdisk1          U0.1-P2-I3/Q1-W50020F230000BB37-L0              Other FC SCSI Disk Drive
* hdisk3          U0.1-P2-I3/Q1-W50020F230000BB37-LD000000000000  Other FC SCSI Disk Drive
* hdisk4          U0.1-P2-I3/Q1-W50020F230000BB37-LE000000000000  Other FC SCSI Disk Drive
* pci0            U0.1-P1                                         PCIBus
* isa0            U0.1-P1                                         ISABus
+ fda0            U0.1-P1/D1                                      StandardI/O Diskette Adapter
* siokma0          U0.1-P1/K1                                     Keyboard/Mouse Adapter
+ sioka0          U0.1-P1/K1                                      KeyboardAdapter
+ sioma0          U0.1-P1/K1                                      MouseAdapter
+ ppa0             U0.1-P1/R1                                      CHRPIEEE1284 (ECP) Parallel Port Adapt
er
+ sa0             U0.1-P1/S1                                      StandardI/O Serial Port
+ tty0            U0.1-P1/S1-L0                                   AsynchronousTerminal
+ sa1             U0.1-P1/S2                                      StandardI/O Serial Port
+ sa2             U0.1-P1/S3                                      StandardI/O Serial Port
* ide0            U0.1-P1/Q6                                      ATA/IDE Controller Device
+ cd0             U0.1-P1/Q6-A0                                   IDE CD-ROMDrive I (650 MB)
* pci2            U0.1-P2                                         PCIBus
* pci3            U0.1-P2                                         PCI Bus
+ ent0            U0.1-P1/E2                                      10/100Mbps Ethernet PCI Adapter II (14
10ff01)
* pci4            U0.1-P2                                         PCIBus
+ scsi0           U0.1-P2/Z1                                      Wide/Ultra-3 SCSII/O Controller
+ hdisk0          U0.1-P2/Z1-A8                                   Other SCSIDisk Drive
+ ses0            U0.1-P2/Z1-AF                                   SCSIEnclosure Services Device
+ scsi1           U0.1-P2/Z2                                     Wide/Ultra-3 SCSI I/O Controller
* pci5            U0.1-P2                                         PCIBus
+ L2cache0                                                        L2 Cache
+ mem0                                                             Memory
+ proc0           U0.1-P1-C1                                      Processor
+ proc1           U0.1-P1-C1                                      Processor

# bootinfo -K     //查看内核的版本
SouthEast.jpg

【补充】:32位内核升级到64位——————————————————————————————————————————————————————————————————————
# ls /unix                                       
//内核使用的文件是叫unix的文件
//当系统启动内核时系统会到磁盘上找到这个unix文件
# ls |grep unix

SouthEast.jpg

# ls -l /unix

SouthEast.jpg

32位内核升级到64位:
# ln -sf /usr/lib/boot/unix_64    /unix
//unix_64是一个用来读取64位内核的文件
//将unix文件链接到unix_64文件上,即当系统启动时,系统会通过读取unix文件而读取到unix_64这个文件
# ln -sf /usr/lib/boot/unix_64     /usr/lib/boot/unix
//做第二个链接,此文件本身就是一个链接文件
//“ln -s”:做一个软链接,f代表强制
# bosboot -ad /dev/ipldevice       //修改启动信息
# shutdown   -Fr                       //重启系统

64位内核降级到32位:
# ln -sf /usr/lib/boot/unix_mp    /unix
//unix_32是一个用来读取32位内核的文件
# ln -sf /usr/lib/boot/unix_mp     /usr/lib/boot/unix
# bosboot -ad /dev/ipldevice       //修改启动信息
# shutdown   -Fr                       //重启系统

补充完毕——————————————————————————————————————————————————————————————————

(2)确认文件系统、交换分区大小# df -m//查看文件系统
SouthEast.jpg

注意项目:
/u01
单独创建一个文件系统放到u01下,不要放在根下,避免把根空间塞满处理起来较麻烦。即单独建立一个逻辑卷,把其挂载到u01下,在u01下存放oracle的所有文件。
在/u01单独作为文件系统的情况下,根也就不用分配太大的空间了。

/tmp
安装oracle之前,至少要有400M的临时空间,若tmp不够手工对其进行一下扩容。

%Used
不要超过80%,若发现某个空间超过80%了,一定要去扩容。

/home
设置给其2g,通常会使用ftp在home下上传一些文件,稍微给大一些,较方便。

# lsps -a               //查看交换分区信息建议给4g
//因为这里机器内存为2g,交换分区设成是其两倍
//交换分区扩容时不要使用阵列上的磁盘(阵列若是多机使用有被删除的可能性),使用根卷下的磁盘
SouthEast.jpg

//对于根卷,不要给其添加新的物理卷(即不要将阵列上的盘添加到根卷上),因为阵列磁盘添加到根卷后,若将阵列上的扩充磁盘直接删除将会引起系统很多问题

【补充】:查看交换分区大小————————————————————————————————————————————————————————————————————

方式一:# lsps -a
方式二:# lsps -s

SouthEast.jpg
补充完毕
————————————————————————————————————————————————————————————————————

(3)查看软件包的安装和补丁的安装3.1 软件包的安装# lslpp -l |grep bos.adt
SouthEast.jpg

# lslpp -l |grep -i xlc.rte
SouthEast.jpg

# lslpp -l |grep -i xlc
SouthEast.jpg

# lslpp -l |grep -i bos.perf
SouthEast.jpg

3.2 补丁包的安装# instfix -ik IY58143
SouthEast.jpg

# instfix -ik IY59386
SouthEast.jpg

# instfix -ik IY60930
SouthEast.jpg

# instfix -ik IY66513
SouthEast.jpg

# instfix -ik IY70159
SouthEast.jpg

# instfix -ik IY68989
SouthEast.jpg

(4)修改系统内核参数# smit system
SouthEast.jpg
SouthEast.jpg


Maximum number of PROCESSES allowed peruser 允许访问用户访问的进程个数
2048

(5)启动异步IO# smit chaio
//启动异步IO要保证操作系统支持异步IO,如果操作系统不支持异步IO,要在oracle用户下去模拟一些异步的进程
//chaio代表change IO
SouthEast.jpg


STATE to be configured atsystem restart  系统下次启动设备状态
默认defined
修改成available//设备可用状态
(6)建立用户和组使用smit user(或#smit mkuser)命令创建用户
users: oracle
oracle  501     /home/oracle
参考信息如下图:

SouthEast.jpg

# id oracle

SouthEast.jpg

# passwd oracle//用户设置密码

SouthEast.jpg

login: oracle   
//要使用oracle用户登陆一次,因为第一次登陆会重设密码,之后用户才会生效

SouthEast.jpg

使用smit group(或#smit mkgroup)命令创建组
oinstall   501     false   oracle  root   files
dba        502     false   oracle  root   files

(7)修改oracle 用户读取内存页面的限制#smit chuser//修改oracle参数设置

SouthEast.jpg 修改选项
Soft FILE size  可以读取或写入文件的大小
-1 不做限制
Soft DATA segment 堆栈的大小
-1 不做限制
Soft STACK size
-1 不做限制
Soft CORE file size
-1 不做限制


# cat/etc/security/limits//修改完参数后,会添加到limits文件中,查看到如下
*
* Sizes are in multiples of 512 byte blocks, CPU timeis in seconds
*
* fsize      -soft file size in blocks
* core       - softcore file size in blocks
* cpu        -soft per process CPU time limit in seconds
* data       -soft data segment size in blocks
* stack      -soft stack segment size in blocks
* rss        -soft real memory usage in blocks
* nofiles    -soft file descriptor limit
* fsize_hard - hard file size in blocks
* core_hard  -hard core file size in blocks
* cpu_hard   -hard per process CPU time limit in seconds
* data_hard  -hard data segment size in blocks
* stack_hard - hard stack segment size in blocks
* rss_hard   -hard real memory usage in blocks
* nofiles_hard - hard file descriptor limit
*
* The following table contains the default hard valuesif the
* hard values are not explicitly defined:
*
*  Attribute        Value
*  ==========    ============
*  fsize_hard    set to fsize
*   cpu_hard      set to cpu
*  core_hard         -1
*  data_hard         -1
*  stack_hard      8388608
*   rss_hard          -1
*  nofiles_hard      -1
*
* NOTE:  A valueof -1 implies "unlimited"
*

default:
        fsize = 2097151
        core =2097151
        cpu = -1
        data =262144
        rss =65536
        stack =65536
        nofiles =2000

root:

daemon:

bin:

sys:

adm:

uucp:

guest:

nobody:

lpd:


oracle:
        fsize = -1
        data = -1
        stack = -1
        core = -1



(8)修改环境变量# su - oracle
$ vi .profile
添加:
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
ORACLE_SID=prod
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_BASE ORACLE_HOME ORACLE_SIDPATH

修改后配置文件如下图:
SouthEast.jpg

(9)添加/u01下oracle目录$ ls /u01                     //查看u01下内容,发现为空
SouthEast.jpg

$ su -
SouthEast.jpg

# chown -Roracle:oinstall /u01
# su - oracle
$ mkdir -p/u01/app/oracle
$ ls -l /u01
SouthEast.jpg

# vi /etc/hosts
添加aix106
注意:此环境中,使用aix106作为远程服务器使用,其上共享了软件的安装文件。以下操作,目的是将oracle文件拷贝到本地。
SouthEast.jpg

# mount aix106:/ware/soft
# ls /soft
SouthEast.jpg

# mkdir /soft2
# cp -r/soft/database /soft2//把aix106上的database拷贝到本地,对其有读写权限
(10)启动Xmanager使用xmanager条件1、
保证177端口号是激活的
$ netstat -an |grep177
SouthEast.jpg

补充:
若没激活,以下方法激活:

SouthEast.jpg

#du -sm dt

SouthEast.jpg

由于aix203上缺少dt、rc.dt文件,通过aix204向其拷贝文件,如下所示:

SouthEast.jpg
2、确认软件包已经安装(disk2上)
$ lslpp -l |grep -i x11
SouthEast.jpg

使用Xmanager SouthEast.jpg
SouthEast.jpg

SouthEast.jpg

SouthEast.jpg

SouthEast.jpg


安装oracle(1)使用Xmanager执行安装程序$./runInstaller
//执行后,输入y确认,之后报错,根据错误提示可知没有设置DISPLAY所致
SouthEast.jpg
SouthEast.jpg

$exportDISPLAY=192.168.8.73:0

SouthEast.jpg


完成以上步骤后,可以进入到下面的图形化界面了。
(2)图形界面安装oracle软件 SouthEast.jpg


以下开始按提示图形 安装oracle软件即可,此处省略。
至此,如何在AIX安装oracle的流程已介绍完成。实际安装时,根据现场的不同环境做出相应的调整即可,思路是一样的。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-22016-1-1.html 上篇帖子: 注意: ASMB process exiting due to lack of ASM file activity 下篇帖子: 使用asmcmd命令在本地和远程 asm 实例之间 拷贝asm file的方法 软件
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表