0

0

AIX上安装Oracle 10201

php中文网

php中文网

发布时间:2016-06-07 17:30:03

|

1194人浏览过

|

来源于php中文网

原创

描述在AIX上安装Oracle10201的过程。 首先检查系统是否满足数据库安装需要: # /usr/sbin/lsattr -E -l sys0 -a realmem realmem

描述在aix上安装oracle10201的过程。

首先检查系统是否满足数据库安装需要:

# /usr/sbin/lsattr -E -l sys0 -a realmem

realmem 32604160 Amount of usable physical memory in Kbytes False

# /usr/sbin/lsps -a

Page Space      Physical Volume  Volume Group Size %Used Active  Auto  Type Chksum

hd6            hdisk0            rootvg      16384MB    1  yes  yes    lv    0

# df -k /tmp

Filesystem    1024-blocks      Free %Used    Iused %Iused Mounted on

/dev/hd3          3145728  3140388    1%      69    1% /tmp

# df -k

Filesystem    1024-blocks      Free %Used    Iused %Iused Mounted on

/dev/hd4          3145728  2608568  18%    10939    2% /

/dev/hd2          4194304  1991084  53%    47242    10% /usr

/dev/hd9var      2097152  1764848  16%    8269    3% /var

/dev/hd3          3145728  3140388    1%      69    1% /tmp

/dev/fwdump      1048576  1048080    1%        5    1% /var/adm/ras/platform

/dev/hd1          2097152  2096488    1%        5    1% /home

/dev/hd11admin      262144    261744    1%        5    1% /admin

/proc                  -        -    -        -    -  /proc

/dev/hd10opt      4194304  3945520    6%    8748    1% /opt

/dev/livedump      262144    261776    1%        4    1% /var/adm/ras/livedump

# /usr/bin/getconf HARDWARE_BITMODE

64

系统内容要求至少1G内存,SWAP分区大小对于大于8G的内存需要75%内存大小,当前配置为50%内存大小,虽然足够使用,,但是Oracle检查可能会报错,需要忽略检查错误才行。

要求AIX操作系统在5.2以上:

# oslevel -r

6100-06

当前为6,满足要求。

检查操作系统文件集:

# lslpp -l bos.adt.base bos.adt.lib bos.adt.libm bos.perf.perfstat bos.perf.libperfstat bos.perf.proctools

  Fileset                      Level  State      Description     

 ----------------------------------------------------------------------------

Path: /usr/lib/objrepos

  bos.adt.base              6.1.6.0  COMMITTED  Base Application Development

                                                Toolkit

  bos.adt.lib                6.1.2.0  COMMITTED  Base Application Development

                                                Libraries

  bos.adt.libm              6.1.5.0  COMMITTED  Base Application Development

                                                Math Library

  bos.perf.libperfstat      6.1.6.0  COMMITTED  Performance Statistics Library

                                                Interface

  bos.perf.perfstat          6.1.6.0  COMMITTED  Performance Statistics

                                                Interface

  bos.perf.proctools        6.1.6.0  COMMITTED  Proc Filesystem Tools

Path: /etc/objrepos

  bos.adt.base              6.1.6.0  COMMITTED  Base Application Development

                                                Toolkit

  bos.perf.libperfstat      6.1.6.0  COMMITTED  Performance Statistics Library

                                                Interface

  bos.perf.perfstat          6.1.6.0  COMMITTED  Performance Statistics

                                                Interface

对于6来说,版本足够高,因此安装文档上描述的补丁集不再需要。

# cat /etc/netsvc.conf | grep hosts

# hosts = value [, value]

# Use one or more of the following values for the hosts keyword:

#            The auth option is only valid when used in conjunction with a service value for the hosts keyword.

# local      Searches the local /etc/hosts file for resolving names

# local4      Searches the local /etc/hosts file for resolving only IPv4 addresses

# local6      Searches the local /etc/hosts file for resolving only IPv6 addresses

# hosts = nis=auth, bind6, dave4

# hostname

ZHY-DT-1

# domainname

# cat /etc/hosts | grep `eval hostname`

172.20.20.1    ZHY-DT-1

验证系统是否仅使用/etc/hosts作为唯一验证名次的方式。

利用smit security创建oinstall、dba组。

利用smit security创建oracle用户,指定primary用户组oinstall,GROUPSET为dba,指定用户创建目录/home/oracle

# id oracle

uid=202(oracle) gid=201(oinstall) groups=202(dba)

# passwd oracle

确认用户创建成功并修改密码。

# id nobody

uid=4294967294(nobody) gid=4294967294(nobody)

确认nobody用户存在。

利用smit chuser命令修改oracle用户的shell配置:Soft FILE size、Soft CPU time、Soft DATA segment和Soft STACK size的限制都为-1。

利用smit chgsys配置系统参数:设置Maximum number of PROCESSES allowed per user大于等于2048。

# su - oracle

$ echo $SHELL

/usr/bin/ksh

百度AI开放平台
百度AI开放平台

百度提供的综合性AI技术服务平台,汇集了多种AI能力和解决方案

下载

$ ls -al

total 16

drwxr-xr-x    2 oracle  oinstall        256 Dec 22 01:06 .

drwxr-xr-x    5 bin      bin            256 Dec 22 00:51 ..

-rwxr-----    1 oracle  oinstall        254 Dec 22 00:51 .profile

-rw-------    1 oracle  oinstall        32 Dec 22 01:06 .sh_history

$ vi .profile

".profile" 9 lines, 254 characters

 


PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.

export PATH

if [ -s "$MAIL" ]          # This is at Shell startup.  In normal

then echo "$MAILMSG"        # operation, the Shell checks

fi                          # periodically.

umask 022

AIXTHREAD_SCOPE=S; export AIXTHREAD_SCOPE

连接Oracle用户,在环境变量中添加umask 022和AIX_THREAD_SCOPE环境变量。

将数据库安装目录授权给oracle用户:

# chown -R oracle:oinstall /data

建立安装目录:

$ mkdir -p /data/oracle/oradata

$ mkdir -p /data/oracle/product/10.2

在oracle用户的profile文件中添加下面的信息:

ORACLE_SID=zhtrade; export ORACLE_SID

ORACLE_BASE=/data/oracle; export ORACLE_BASE

ORACLE_HOME=/data/oracle/product/10.2; export ORACLE_HOME

PATH=$ORACLE_HOME/bin:$PATH; export PATH

DISPLAY=172.20.10.150:1.0; export DISPLAY

利用cpio –idcmv

在运行/data/software/Disk1/runInstaller进行安装之前,需要首先用root来运行rootpre.sh:

# ./rootpre.sh

./rootpre.sh output will be logged in /tmp/rootpre.out_10-12-22.02:41:36

Saving the original files in /etc/ora_save_10-12-22.02:41:36....

Copying new kernel extension to /etc....

Loading the kernel extension from /etc

 Oracle Kernel Extension Loader for AIX

      Copyright (c) 1998,1999 Oracle Corporation

 


 Successfully loaded /etc/pw-syscall.64bit_kernel with kmid: 0x50ca6000

 Successfully configured /etc/pw-syscall.64bit_kernel with kmid: 0x50ca6000

The kernel extension was successfuly loaded.

Configuring Asynchronous I/O....

Asynchronous I/O is not installed on this system.

You will need to install it, and either configure it yourself using

'smit aio' or rerun the Oracle root installation procedure.

Configuring POSIX Asynchronous I/O....

Posix Asynchronous I/O is not installed on this system.

You will need to install it, and either configure it yourself using

'smit aio' or rerun the Oracle root installation procedure.

Checking if group services should be configured....

Nothing to configure.

下面运行runInstaller开始数据库软件的安装:

选择高级安装,对安装过程进行定制;

由于设置了ORACLE_BASE和ORACLE_HOME环境变量,所以oraInvertory目录和组信息不需要改变;

选择企业版,并加载中文语言;

ORACLE_HOME目录选择,这里默认是正确的;

Oracle检查安装条件时会监测AIX6超过了预期的5.2或5.3,直接忽略这个问题开始安装;

选择安装类型的时候选择仅安装数据库软件;

最后利用root运行两个脚本,安装完成。

# /data/oracle/oraInventory/orainstRoot.sh

Changing permissions of /data/oracle/oraInventory to 775.

Changing groupname of /data/oracle/oraInventory to oinstall.

The execution of the script. is complete

# /data/oracle/product/10.2/root.sh

Running Oracle10 root.sh script...

The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME=  /data/oracle/product/10.2

Enter the full pathname of the local bin directory: [/usr/local/bin]:

Creating /usr/local/bin directory...

  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.sh script.

Now product-specific root actions will be performed.

linux

热门AI工具

更多
DeepSeek
DeepSeek

幻方量化公司旗下的开源大模型平台

豆包大模型
豆包大模型

字节跳动自主研发的一系列大型语言模型

通义千问
通义千问

阿里巴巴推出的全能AI助手

腾讯元宝
腾讯元宝

腾讯混元平台推出的AI助手

文心一言
文心一言

文心一言是百度开发的AI聊天机器人,通过对话可以生成各种形式的内容。

讯飞写作
讯飞写作

基于讯飞星火大模型的AI写作工具,可以快速生成新闻稿件、品宣文案、工作总结、心得体会等各种文文稿

即梦AI
即梦AI

一站式AI创作平台,免费AI图片和视频生成。

ChatGPT
ChatGPT

最最强大的AI聊天机器人程序,ChatGPT不单是聊天机器人,还能进行撰写邮件、视频脚本、文案、翻译、代码等任务。

相关专题

更多
Python 序列化
Python 序列化

本专题整合了python序列化、反序列化相关内容,阅读专题下面的文章了解更多详细内容。

0

2026.02.02

AO3官网入口与中文阅读设置 AO3网页版使用与访问
AO3官网入口与中文阅读设置 AO3网页版使用与访问

本专题围绕 Archive of Our Own(AO3)官网入口展开,系统整理 AO3 最新可用官网地址、网页版访问方式、正确打开链接的方法,并详细讲解 AO3 中文界面设置、阅读语言切换及基础使用流程,帮助用户稳定访问 AO3 官网,高效完成中文阅读与作品浏览。

91

2026.02.02

主流快递单号查询入口 实时物流进度一站式追踪专题
主流快递单号查询入口 实时物流进度一站式追踪专题

本专题聚合极兔快递、京东快递、中通快递、圆通快递、韵达快递等主流物流平台的单号查询与运单追踪内容,重点解决单号查询、手机号查物流、官网入口直达、包裹进度实时追踪等高频问题,帮助用户快速获取最新物流状态,提升查件效率与使用体验。

27

2026.02.02

Golang WebAssembly(WASM)开发入门
Golang WebAssembly(WASM)开发入门

本专题系统讲解 Golang 在 WebAssembly(WASM)开发中的实践方法,涵盖 WASM 基础原理、Go 编译到 WASM 的流程、与 JavaScript 的交互方式、性能与体积优化,以及典型应用场景(如前端计算、跨平台模块)。帮助开发者掌握 Go 在新一代 Web 技术栈中的应用能力。

11

2026.02.02

PHP Swoole 高性能服务开发
PHP Swoole 高性能服务开发

本专题聚焦 PHP Swoole 扩展在高性能服务端开发中的应用,系统讲解协程模型、异步IO、TCP/HTTP/WebSocket服务器、进程与任务管理、常驻内存架构设计。通过实战案例,帮助开发者掌握 使用 PHP 构建高并发、低延迟服务端应用的工程化能力。

5

2026.02.02

Java JNI 与本地代码交互实战
Java JNI 与本地代码交互实战

本专题系统讲解 Java 通过 JNI 调用 C/C++ 本地代码的核心机制,涵盖 JNI 基本原理、数据类型映射、内存管理、异常处理、性能优化策略以及典型应用场景(如高性能计算、底层库封装)。通过实战示例,帮助开发者掌握 Java 与本地代码混合开发的完整流程。

5

2026.02.02

go语言 注释编码
go语言 注释编码

本专题整合了go语言注释、注释规范等等内容,阅读专题下面的文章了解更多详细内容。

62

2026.01.31

go语言 math包
go语言 math包

本专题整合了go语言math包相关内容,阅读专题下面的文章了解更多详细内容。

55

2026.01.31

go语言输入函数
go语言输入函数

本专题整合了go语言输入相关教程内容,阅读专题下面的文章了解更多详细内容。

27

2026.01.31

热门下载

更多
网站特效
/
网站源码
/
网站素材
/
前端模板

精品课程

更多
相关推荐
/
热门推荐
/
最新课程
【web前端】Node.js快速入门
【web前端】Node.js快速入门

共16课时 | 2万人学习

MySQL 初学入门(mosh老师)
MySQL 初学入门(mosh老师)

共3课时 | 0.3万人学习

【李炎恢】ThinkPHP8.x 后端框架课程
【李炎恢】ThinkPHP8.x 后端框架课程

共50课时 | 4.6万人学习

关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号