Home php教程 php手册 HP-UX下ORACLE 8I的安装与配置

HP-UX下ORACLE 8I的安装与配置

Jun 21, 2016 am 09:09 AM
data home nbsp oracle

oracle

最近在折腾HP-UX11.11,我就把ORACLE 8I在HP-UX下的安装和配置过程写出来,希望和各位分享,如果能对各位有所帮助,刁馋就感到欣慰了。如果你有什么问题或你的经验与建议,欢迎和我联系、探讨或不探讨任何技术问题,仅仅只是交个朋友,我的MAIL: yuepengfei@mail.banner.com.cn。好了灌了不少水,让我们开始吧:)

说明:以下所有具体参数均是根据我的软件环境而言:HP-UX 11.11 + ORACLE 8.1.7 Enterprise Edition (64-bit),对于你的系统可能部分内容有所变化,关键地方我会给出参考提示。

一、确认系统环境

# id
uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),)
# pwd
/
# model
9000/800/L3000-5x
# uname -a
HP-UX HL165web B.11.11 U 9000/800 1154484685 unlimited-user license
# lanscan
Hardware Station        Crd Hdw   Net-Interface  NM  MAC       HP-DLPI DLPI
Path     Address        In# State NamePPA        ID  Type      Support Mjr#
0/0/0/0  0x00306E2C251C 0   UP    lan0 snap0     1   ETHER     Yes     119
0/12/0/0 0x00306E21E827 1   UP    lan1 snap1     2   ETHER     Yes     119
# ifconfig lan1
lan1: flags=843
        inet 10.0.0.3 netmask ffffff00 broadcast 10.0.0.255


# dmesg|grep Physical
Physical: 2097152 Kbytes, lockable: 1572408 Kbytes, available: 1811528 Kbytes    
好了以上是关于系统的基本信息,oracle的安装对系统有所要求,主要包括:
1、MEM最低128M,
2、SWAP最低400M或为MEM*2,
3、X-WINDOWS肯定是要起来的,
4、HP-UX的PATCH是肯定要打的,ORACLE的文档里(Note:43507.1)对具体要用的PATCH有个完整的LIST,共有16个之多,但我想真的没有必要去看,在装ORACLE前直接给HP-UX打上最新的PATCH包好了,一切都搞定了。最新的PATCH你可以找HP的人要,也可以到HP的网站去下,不过要有系统服务号。
5、确认入下可执行文件存在:/usr/ccs/bin目录里的make,ar,ld,nm和cc。如果你4做了,那么这些文件是没有问题的。

二、调整系统参数

用SAM调整以下HP-UX的参数,然后REBUILD KERNEL AND REBOOT。以下几个参数是ORACLE要求的:
参数名 ORA要求/我给的(说明)
SHMMAX 1 GB / 1,500,000,000
SHMMIN 1/
(这个参数是AT&T Unix 的,HP-UX里根本没有,反正我是没见过,我觉得对应的参数应该是SHMEM,这个参数的含义是Enable Sys V Shared Memory,default=1,表示Enable;我想肯定是ORACLE文档抄错,这帮家伙都是抄来抄去的,对用户也不负责,不管他好了。)
SHMMNI 100 / 200(default)
SHMSEG 10 / 120 (default)
SEMMNI 70 / 100

好了,ORACLE问当中就要求这么多参数,但是还有一个参数你要是不调会走弯路的,那就是:maxdsiz ,含义为Max Data Segment Size For 32-bit Processes (Bytes)。至于maxdsiz_64bit要不要调,随你了,因为它的DEFAULT值正好是1G。
maxdsiz 67108864 / 280000000 (建议不要低于256M)
maxdsiz_64bit 1073741824 / 1200000000 (建议不要低于1G,也就是DEFAULT值)

如果你不调MAXDSIZ,安装完成后作连接就会出现下面的错误:
Error in invoking target install of makefile
/data1/app/oracle/product/8.1.7/rdbms/lib/ins_rdbms.mk

这个错误是很严重的, ORACLE会提示你安装成功,但你什么事都干不了!当然也不必担心,更不必重装,现在亡羊补牢还来得及:

先调整MAXDSIZ,重建内核重起系统,然后以ORACLE用户登录,手工编译安装ins_rdbms.mk好了:
$ cd $ORACLE_HOME/rdbms/lib
$ make -f ins_rdbms.mk install

OK,这个过程大约几分钟就好了,然后你的ORACLE就真的安装成功了。

三、建ORACLE组、用户、设置环境变量

#groupadd -g 200 dba
#groupadd -g 201 oinstall
#useradd -u 200 -g 201 -s /bin/ksh -m -d /data1/oracle8 oracle8
#vi /etc/group (填加oracle8到dba组,用vi纯粹是个人习惯,我觉得这样方便^_^)
#passwd oracle8
#su - oracle8
$vi .profile
设置环境变量,主要的几个如下:
#--------------BEGIN----------------------------------
# Added by gototop 2002.10.18

ORACLE_BASE=/data1/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/8.1.7
ORACLE_SID=ora8
ORACLE_TERM=vt100
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
PATH=$ORACLE_HOME/bin:$PATH

export ORACLE_BASE ORACLE_HOME ORACLE_SID ORACLE_TERM LD_LIBRARY_PATH PATH

DISPLAY=10.16.93.79:0.0
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
NLS_LANG=american_america.zhs16cgb231280
TNS_ADMIN=$ORACLE_HOME/network/admin
ORA_DB=$ORACLE_HOME/dbs

export DISPLAY ORA_NLS33 NLS_LANG TNS_ADMIN ORA_DB
umask 022
#--------------END-------------------------------------

完成后,存盘退出。
$. ./.profile
$env|grep ORA
ORACLE_BASE=/data1/app/oracle
ORA_DB=/data1/app/oracle/product/8.1.7/dbs
ORACLE_SID=ora8
ORACLE_TERM=vt100
ORA_NLS33=/data1/app/oracle/product/8.1.7/ocommon/nls/admin/data
ORACLE_HOME=/data1/app/oracle/product/8.1.7

好了,搞定。

四、开始安装

另一窗口以ROOT用户MOUNT DVD:
# nohup /usr/sbin/pfs_mountd &
# nohup /usr/sbin/pfsd &
# /usr/sbin/pfs_mount -t rrip -x unix /dev/dsk/c3t2d0 /cdrom

然后回到oracle用户的窗口执行:
$cd /cdrom
$ls
$./runI*

OK,稍等片刻,熟悉的ORACLE WELCOME界面就出现在你面前了。

就这么简单,还要些什么呢?后面都是傻瓜性的事了,照着图形界面一路走好了,和在其他平台上安装没有什么区别。在大约要结束的时候会提示你用root执行一下$ORACLE_HOME/root.sh,这个我在其他unix/linux上也是要的,我想大家应该都很熟了。




Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1664
14
PHP Tutorial
1269
29
C# Tutorial
1248
24
What to do if the oracle can't be opened What to do if the oracle can't be opened Apr 11, 2025 pm 10:06 PM

Solutions to Oracle cannot be opened include: 1. Start the database service; 2. Start the listener; 3. Check port conflicts; 4. Set environment variables correctly; 5. Make sure the firewall or antivirus software does not block the connection; 6. Check whether the server is closed; 7. Use RMAN to recover corrupt files; 8. Check whether the TNS service name is correct; 9. Check network connection; 10. Reinstall Oracle software.

How to solve the problem of closing oracle cursor How to solve the problem of closing oracle cursor Apr 11, 2025 pm 10:18 PM

The method to solve the Oracle cursor closure problem includes: explicitly closing the cursor using the CLOSE statement. Declare the cursor in the FOR UPDATE clause so that it automatically closes after the scope is ended. Declare the cursor in the USING clause so that it automatically closes when the associated PL/SQL variable is closed. Use exception handling to ensure that the cursor is closed in any exception situation. Use the connection pool to automatically close the cursor. Disable automatic submission and delay cursor closing.

How to create cursors in oracle loop How to create cursors in oracle loop Apr 12, 2025 am 06:18 AM

In Oracle, the FOR LOOP loop can create cursors dynamically. The steps are: 1. Define the cursor type; 2. Create the loop; 3. Create the cursor dynamically; 4. Execute the cursor; 5. Close the cursor. Example: A cursor can be created cycle-by-circuit to display the names and salaries of the top 10 employees.

What steps are required to configure CentOS in HDFS What steps are required to configure CentOS in HDFS Apr 14, 2025 pm 06:42 PM

Building a Hadoop Distributed File System (HDFS) on a CentOS system requires multiple steps. This article provides a brief configuration guide. 1. Prepare to install JDK in the early stage: Install JavaDevelopmentKit (JDK) on all nodes, and the version must be compatible with Hadoop. The installation package can be downloaded from the Oracle official website. Environment variable configuration: Edit /etc/profile file, set Java and Hadoop environment variables, so that the system can find the installation path of JDK and Hadoop. 2. Security configuration: SSH password-free login to generate SSH key: Use the ssh-keygen command on each node

What to do if the oracle log is full What to do if the oracle log is full Apr 12, 2025 am 06:09 AM

When Oracle log files are full, the following solutions can be adopted: 1) Clean old log files; 2) Increase the log file size; 3) Increase the log file group; 4) Set up automatic log management; 5) Reinitialize the database. Before implementing any solution, it is recommended to back up the database to prevent data loss.

Oracle's Role in the Business World Oracle's Role in the Business World Apr 23, 2025 am 12:01 AM

Oracle is not only a database company, but also a leader in cloud computing and ERP systems. 1. Oracle provides comprehensive solutions from database to cloud services and ERP systems. 2. OracleCloud challenges AWS and Azure, providing IaaS, PaaS and SaaS services. 3. Oracle's ERP systems such as E-BusinessSuite and FusionApplications help enterprises optimize operations.

How to export oracle view How to export oracle view Apr 12, 2025 am 06:15 AM

Oracle views can be exported through the EXP utility: Log in to the Oracle database. Start the EXP utility, specifying the view name and export directory. Enter export parameters, including target mode, file format, and tablespace. Start exporting. Verify the export using the impdp utility.

How to stop oracle database How to stop oracle database Apr 12, 2025 am 06:12 AM

To stop an Oracle database, perform the following steps: 1. Connect to the database; 2. Shutdown immediately; 3. Shutdown abort completely.

See all articles