寻找在hp unix上安装oracle8.1.7的步骤,高分相谢!

qxksos 2002-12-09 07:27:27
越详细越好,分数不够我还会再加。
安装手册也可以。
qixk@e-future.com.n
...全文
85 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
wanghai 2002-12-09
  • 打赏
  • 举报
回复
HP-UX下ORACLE 8I的安装与配置



说明:以下所有具体参数均是根据我的软件环境而言:HP-UX 11.0 + 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/899/K570
# uname -a
HP-UX PUPPY B.11.00 A 9000/899 608401321 two-user license
# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
10/12/6 0x001083B96089 1 UP lan1 snap1 1 ETHER Yes 119
# ifconfig lan1
lan1: flags=843<UP,BROADCAST,RUNNING,MULTICAST>
inet 10.1.21.6 netmask ffffff00 broadcast 10.1.21.255
# dmesg|grep Physical
Physical: 524280 Kbytes, lockable: 384144 Kbytes, available: 445516 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
SHMMNI 100 / 200(default)
SHMSEG 10 / 120 (default)
SEMMNI 70 / 100

*******************************************************************还有记得在KENERL PARAMETER那里改成OLTP DATABASE SERVER(好象是这样写的,在SAM里头的KENERL CONFIG的主界面里选ACTION里有的,要不容易出ORA03113错误,亲身经历
*******************************************************************
好了,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上也是要的,我想大家应该都很熟了

注意,最好把光盘拷贝到硬盘上装,因为HP的机器容易UMOUNT不下来
jiezhi 2002-12-09
  • 打赏
  • 举报
回复
http://www-3.ibm.com/software/webservers/appserv/doc/v35/ae/infocenter/was/022424.html
biti_rainy 2002-12-09
  • 打赏
  • 举报
回复
step by step
傻瓜级手册,我自己写的

一.HP-UX操作系统要求
(请确认操作系统包括如下选项,否则需要HP工程师安装相应的Package)

OS Software Requirements
Operating System: UX 11.O
Operating System Patch DART: 49, June 2000
Operating System Packages: PHSS_21947, PHNE_20316, PHKL_21392, PHKL_22145.
Required Executables: The following executables must be present in the /usr/ccs/bin directory: make, ar, ld, nm,cc.

参见:a86566.pdf
Oracle8i
Release Notes
Release 3 (8.1.7) for HP 9000 Series HP-UX (64-bit)
(若缺少Package,可能会出现安装成功后,执行svrmgrl提示没有权限)



三.安装过程

1. 若只在一个磁盘的文件系统中安装,需要具有文件系统 /oracle
若有共享文件系统则增加 /oradata
2. 通过Reflection X或者其他方式建立dba组和属于dba组的用户oracle
3. 改变文件属主:chown oracle:dba /oracle
chown oracle:dba /oradata
4.修改内核参数:SAM Kernel Configuration
action à Apply Tuned Parameter Set...
choose: General OLTP/Database Server System

max_thread_proc 256 modify
maxdsiz 末尾添0 modify
5. 修改用户oracle的 .profile文件。
本文件最好作成备份,如
umask 022
ORACLE_BASE=/oracle;export ORACLE_BASE
ORACLE_HOME=/oracle/product/8.1.7;export ORACLE_HOME
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data;export ORA_NLS33
TNS_ADMIN=$ORACLE_HOME/network/admin;export TNS_ADMIN
NLS_LANG='SIMPLIFIED CHINESE_CHINA.ZHS16GBK';export NLS_LANG
PATH=$ORACLE_HOME/bin:/usr/bin:/etc:/usr/ccs/bin:$PATH:./;export PATH
ORACLE_SID=bj;export ORACLE_SID
(需要修改,按本地节点配置:北京:bj;广州:gz;西安:xa;上海:sh)
EDITOR=vi;export EDITOR
tset -k^X
6. 准备安装:
找到光区设备号 cd etc
ioscan –fnCdisk (找到 VD_ROM 设备号)
vi pfs_fstab
write: /dev/dsk/c2T1d0(设备号) /cdrom pfs-rrip xlat=unix 1 0
保存文件后,执行 nohup pfs_mountd&
nohup pfsd&
pfs_mount /cdrom
查看/cdrom,若有则退出
7. 安装
启动reflecation x,用oracle登录,执行
. ./.profile
然后运行 /cdrom/runInstaller

中途出现提示,然后root执行
cd /oracle/product/8.1.7
sh orainst….

继续安装,自定义,去掉http,legato storage manager, enterprise manager 中只要前2项
选择语言english和simplified chinese
继续安装,54%时换盘:
pfs_umount /cdrom
换盘后执行 pfs_mount /cdrom
继续安装,最后root执行
sh root.sh
安装完毕配置网络等设置
最后安装数据库于oradata中,注意选择自定义配置各目录和参数
各种表空间和各种参数最好提前准备好

四.数据库安装成功的测试:
1. 启动数据库
安装成功后,数据库应该是已经启动状态,若已经启动,忽略此步骤;否则执行如下步骤:
svrmgrl
svrmgrl>connect internal
svrmgrl>startup

2. 启动TNSLISTENER
安装成功后,监听进程应该是已经启动状态,若已经启动,忽略此步骤;否则执行如下步骤:
lsnrctl
lsnrctl>start

3. 运行sqlplus
sqlplus system/manager
若成功登陆,证明数据库安装成功。

4. 测试客户端连接
配置一台客户机,用Oracle oraclehome>network administration>net8 easy configuration或者直接编辑$ORACLE_HOME\ora81\network\admin\tnsnames.ora,增加指向新建数据库的连接串,假设为bj
运行 sqlplus system/manager@bj
若连接成功,证明客户机连接正确

jiezhi 2002-12-09
  • 打赏
  • 举报
回复
Installing Oracle 8i Release 2 (8.1.6)
Complete the steps below to install Oracle 8i Enterprise Edition from the Oracle product CD. For the latest and most complete installation instructions, refer to the Oracle 8i Installation Guide at http://docs.oracle.com/database_mp.html under Version 4 documentation for HP 9000 servers and workstations.

These instructions install Oracle 8i into the ORACLE_HOME directory. If you have a version of Oracle earlier than 8.1.5 in the ORACLE_HOME directory, then delete it. If you have the 8.1.5 version, the Oracle installation program will remove most of it before installing version 8.1.6.
Log in as the user root and do the following:
Create two mount points, one for Oracle 8i and one for the database files. The mount points can be directories in existing volumes or you can use the System Administration Manager (SAM) utility to set up new logical volumes. (If you are doing an OFA-compliant installation, then create four mount points -- one for Oracle 8i and three for the database files.) Name the mount points, for example, /u01 for Oracle 8i (requires 1 GB) and /u02 for the database files (requires 500 MB).
Create one or more groups for the SYSDBA and SYSOPER Oracle roles, which are created when you install Oracle. The Oracle installation program gives Oracle SYSDBA and SYSOPER privileges to members of the UNIX group dba by default. Thus, consider using the System Administration Manager (SAM) utility to create a group named dba.
Use the System Administration Manager (SAM) utility to create a group named oinstall. The oinstall group will be the primary group for the oracle user account that will run the Oracle installation program.
Use the System Administration Manager (SAM) utility to create a user named oracle. For Login Name, provide any name for the account. For Primary GID, specify oinstall. For Home Directory, specify any home directory; it does not have to be the same as the ORACLE_HOME directory. For Login Shell, specify a default shell of /usr/bin/sh (Posix shell), /usr/bin/csh (C shell), or /usr/bin/ksh (Korn shell). Note that you must only use the oracle account for installing and maintaining Oracle software; do not log into a database when using the oracle account.
Mount the Oracle 8i CD that holds the Enterprise Edition.
Log in as the user oracle then set permissions and environment variables:
Set umask to 022 for the oracle account. If entering the command umask does not return 22, set umask in the .profile or .login file of the oracle account and then run the following command:
$ umask 022
On the system that you will run the Oracle installation program, set the DISPLAY environment variable to the system name or IP address, X server, and screen used by your workstation. Do not use the hostname or IP address of the system onto which Oracle 8i will be installed unless you will be installing from that system's X-windows console. Use the machine name or IP address of your own workstation if you will be installing from a remote system. If you are unsure what to set the X server and screen to, set both to 0 (zero).
Thus, for the Bourne or Korn shells, enter the following on the server where the Oracle database will be installed:

$ DISPLAY=<workstation_name>:0.0
$ export DISPLAY
In the session on your workstation, enter:
$ xhost +<server_name>

For the C shell, enter the following on the server where the Oracle database will be installed:

$ setenv DISPLAY <workstation_name>:0.0
In the session on your workstation, enter:
$ xhost +<server_name>

Create a .profile file in the home directory of the user named oracle. Ensure that the file contains the information below. Your Oracle SID may differ.
#-----------------------------------
# Oracle environment setup
#-----------------------------------
#
ORACLE_BASE=<oracle_home_directory>
export ORACLE_BASE
ORACLE_SID=orcl
export ORACLE_SID
ORACLE_HOME=$ORACLE_BASE/product/8.1.6
export ORACLE_HOME
PATH=$PATH:$ORACLE_HOME/bin
export PATH
echo 'The Oracle 8.1.6 environment is set'
In the example file above, the variable <oracle_home_directory> specifies the home directory for the oracle user.

Refer to the Installation Guide for Oracle 8i on HP-UX 11.0 at http://docs.oracle.com/database_mp.html for information on the ORACLE_BASE, ORACLE_HOME, ORACLE_SID, and other variables.

Update the environment for the current session using one of the following commands:
For the Bourne, Korn, or Posix shell, enter: $ . ./.profile
For the C shell, enter: % source .login
Enter the following command from your CD-ROM directory: ./runInstaller
On the Welcome panel of the Oracle Universal Installer, click Next.
On the File Locations panel, for Destination specify the ORACLE_HOME directory path onto which Oracle 8i should install and click Next.
If you have no other versions of Oracle on your system, the UNIX Group Name panel displays. In the UNIX Group Name field, specify oinstall or whatever group has permission to install Oracle products on your system, then click Next.
If /var/opt/oracle/ does not exist or is not writable by the oracle user, run /tmp/OraInstall/orainstRoot.sh in another terminal window as the user root as described by the panel that displays. Then, click Retry.
On the Available Products panel, select the Enterprise Edition, which provides both the Oracle client and server, and click Next.
Select the Typical or Minimal installation. If you want the Custom installation, refer to information in the Oracle 8i Installation Guide at http://docs.oracle.com/database_mp.html under Version 4 documentation for HP 9000 servers and workstations.
If Oracle 8.1.5 is on your system, select Upgrade or Migrate an Existing Database when prompted, and click Next.
If you selected Minimal, on the Select Starter Database panel select Yes to to install an Oracle 8i database. (Selecting No installs the server software without creating a database.) Then, click Next.
On the Database Identification panel, for Global Database Name, specify a unique database name such as orcl.<machine_name>, where orcl is the name of the database and <machine_name> is the network domain where the database is located. For SID, or System Identifier, specify a unique database instance name that is fewer than 8 characters. The default is the database name specified under Global Database Name (orcl for the above example). Then, click Next.
On the Database File Location panel, for Directory for Database Files, specify the path of the database file mount point. Then, click Next.
On the summary panel, ensure that your system has enough disk space to install Oracle 8i and click Install.
After the software installs, log in as the user root and run the root.sh script in the ORACLE_HOME directory:
cd $ORACLE_HOME
./root.sh
When prompted, specify the local bin directory.

In the Net8 Configuration Assistant, configure the Net8 server environment by specifying a listener for the server, a net service name for the client, and static service information for your Oracle 8i database. Then, click Next. The Assistant configures the files listener.ora, sqlnet.ora and tnsnames.ora, setting the values you specify.
In the Configuration Tools window, click Next to have the tools create a database and, if necessary, migrate or upgrade Oracle 8.1.5 databases to version 8.1.6.
You might see a dialog that tells you the default passwords for the SYS and SYSTEM Oracle roles. The passwords should be change_on_install for SYS and manager for SYSTEM. Write down their actual values and click Ok.
Click Exit.
After you install Oracle 8i, apply any needed patches. Look in the /patch directory of the Oracle CD for the patches and follow the instructions in the README accompanying each patch.

Finally, proceed to "Configuring Oracle8i Release 2 (8.1.6) for use with WebSphere Application Server."

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧