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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
2 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)

How long will Oracle database logs be kept? How long will Oracle database logs be kept? May 10, 2024 am 03:27 AM

The retention period of Oracle database logs depends on the log type and configuration, including: Redo logs: determined by the maximum size configured with the "LOG_ARCHIVE_DEST" parameter. Archived redo logs: Determined by the maximum size configured by the "DB_RECOVERY_FILE_DEST_SIZE" parameter. Online redo logs: not archived, lost when the database is restarted, and the retention period is consistent with the instance running time. Audit log: Configured by the "AUDIT_TRAIL" parameter, retained for 30 days by default.

Function to calculate the number of days between two dates in oracle Function to calculate the number of days between two dates in oracle May 08, 2024 pm 07:45 PM

The function in Oracle to calculate the number of days between two dates is DATEDIFF(). The specific usage is as follows: Specify the time interval unit: interval (such as day, month, year) Specify two date values: date1 and date2DATEDIFF(interval, date1, date2) Return the difference in days

The order of the oracle database startup steps is The order of the oracle database startup steps is May 10, 2024 am 01:48 AM

The Oracle database startup sequence is: 1. Check the preconditions; 2. Start the listener; 3. Start the database instance; 4. Wait for the database to open; 5. Connect to the database; 6. Verify the database status; 7. Enable the service (if necessary ); 8. Test the connection.

How to use interval in oracle How to use interval in oracle May 08, 2024 pm 07:54 PM

The INTERVAL data type in Oracle is used to represent time intervals. The syntax is INTERVAL <precision> <unit>. You can use addition, subtraction, multiplication and division operations to operate INTERVAL, which is suitable for scenarios such as storing time data and calculating date differences.

How much memory does oracle require? How much memory does oracle require? May 10, 2024 am 04:12 AM

The amount of memory required by Oracle depends on database size, activity level, and required performance level: for storing data buffers, index buffers, executing SQL statements, and managing the data dictionary cache. The exact amount is affected by database size, activity level, and required performance level. Best practices include setting the appropriate SGA size, sizing SGA components, using AMM, and monitoring memory usage.

How to see the number of occurrences of a certain character in Oracle How to see the number of occurrences of a certain character in Oracle May 09, 2024 pm 09:33 PM

To find the number of occurrences of a character in Oracle, perform the following steps: Get the total length of a string; Get the length of the substring in which a character occurs; Count the number of occurrences of a character by subtracting the substring length from the total length.

Oracle database server hardware configuration requirements Oracle database server hardware configuration requirements May 10, 2024 am 04:00 AM

Oracle database server hardware configuration requirements: Processor: multi-core, with a main frequency of at least 2.5 GHz. For large databases, 32 cores or more are recommended. Memory: At least 8GB for small databases, 16-64GB for medium sizes, up to 512GB or more for large databases or heavy workloads. Storage: SSD or NVMe disks, RAID arrays for redundancy and performance. Network: High-speed network (10GbE or higher), dedicated network card, low-latency network. Others: Stable power supply, redundant components, compatible operating system and software, heat dissipation and cooling system.

What symbols are used to connect strings to the database in Oracle? What symbols are used to connect strings to the database in Oracle? May 08, 2024 pm 07:36 PM

Oracle uses the "||" symbol to concatenate strings. The usage method is as follows: connect the strings to be connected with the "||" symbol; the priority of string connection is low, and parentheses need to be used to ensure the priority; an empty string will still be an empty string after connection; NULL value connection is still NULL.

See all articles