| |
 |
|
 |
 |
|
 |
转别 人的oracle安装 and me`s oracle setup
|
|
|
|
# Linux字符安装oracle < SLES && ORACLE >
SLES-10字符界面安装oracle
参考:
Novell官方文档 Oracle 10g R2 (10.2.0.1) on SUSE Linux Enterprise Server 10
( How to Install ) 文件: 10gR2_sles10_install.pdf 大小: 1302KB 下载: 下载
另附文档地址,这里包含了各种版本的 Oracle 的安装文档。 http://www.novell.com/products/server/oracle/documents.html http://ftp.novell.com/partners/oracle/docs/
<<AIX下字符界面安装oracle 10g过程>> CU论坛上的一篇帖子 原文地址: http://bbs.chinaunix.net/viewthread.php?tid=822850&extra=page%3D1%26filter%3Ddigest http://www.chinaunix.net/jh/19/822850.html
字符下安装速度太快了,一个命令之后两三分钟就完成了。只要将应答文件配置正确了,运行命令之后就只是一个复制文件的过程了。而且通常字符下比图形少占用了一百多兆的内存,所以在字符环境使用应答方式安装的优越性是显而易见的。
###################### # Linux字符安装oracle ######################
# 本机硬件配置: *硬件:
*CPU:ALTHON64-K8-2800+盒
*主板:微星K8T-NEO-V
*硬盘:WDC WD1600BB-00GUA0 (160GB)
* WDC WD1600JS-00MHB0 SCSI Disk Device
*内存:金士顿256M DDR400 两根
*显示器:飞利浦107F6
*显卡:NVIDIA GeForce FX 5700LE
*DVDROM 16X DVDRW 台电女娲超能王
*安装Oracle 10g x86_64 推荐系统最低配置: ******************************************************************************************* *Hardware Requirements 硬件要求 *The system must meet the following minimum hardware requirements: * Requirement Minimum Value * RAM 1024 MB * Swap space Approx. twice the size of RAM * Disk space in /tmp 400 MB * Disk space for software files 3.5 GB * Disk space for database files 1.2 GB ******************************************************************************************** * 当然512MB的内存也是可以安装的
su - 口令 ejcet 弹出光驱并放入光盘 (我的oracle-10g-r2已经刻录成光盘了) ejcet -t 收回光驱托盘 mkdir /home/share/Oracle # 创建一个空目录/home/share/Oracle cd /home/share/Oracle/ && #gzip -dc /media/Oracl-10_2-64bit/Oracl_Database_10g_release_2\[10.2.0.1.0\]_64bit/10201_database_linux_x86_64.cpio.gz | cpio -div #转到/home/share/oracle/ #从卷标为oracl-10_2-64bit的光盘解出oracle软件包到当前目录。
# /home/share/Oracle/Oracle10g_64bit/database/welcome.html # 在安装文件目录下有 welcome.html , 是学习oracle10gr2的好办法。链接打开的都是英文网页。 # 在xxx.html之后加上 /cn 或者 /global/cn 并回车,可打开中文页面。
grep MemTotal /proc/meminfo # 内存 grep SwapTotal /proc/meminfo # 交换分区 df –k /tmp # /tmp目录空闲区 df ~ -k # 当前用户主目录所在磁盘(分区)的空闲空间 df /opt/oracle/ -k # oracle安装目录所在磁盘(分区)的空闲空间
### yast > soft > soft management > patttern > C/C++ Compiler and Tools ### 运行yast . 软件 . 软件管理 . 模式 . 勾选所有的编译工具包。这是图形安装下所需的。 # orarun 官方补丁包也可以一并装上(各种发行版本是不一样的) # libaio && libaio-devel 这两个包也是需要的,在yast安装orarun补丁时因为依赖性问题会自动装上。
cat /etc/issue # 检查安装的linux版本 ######################################### 提 示 信 息 ######################################### ### Welcome to SUSE Linux Enterprise Server 10 (x86_64) - Kernel \r (\l). ### #########################################*********************#########################################
gcc --version # gcc版本需要4.0.2以上,这是suse-10的要求。 ######################################### 提 示 信 息 ######################################### ### gcc (GCC) 4.1.0 (SUSE Linux) ### Copyright (C) 2006 Free Software Foundation, Inc. ### This is free software; see the source for copying conditions. There is NO ### warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. #########################################*********************#########################################
****** 已经完成全面的检查了安装oracle 10g所要求的软硬件环境,接着我们就要为安装创建组和用户。 ******
oracle setup for sles10 //这也是我装是用到的,第二次成功靠这里,第一次装一半有错退出
setup then need soft
All of the required packages are installed:
///////////////////////
* binutils
* gcc
* gcc-c++
* glibc
* gnome-libs
* libstdc++
* libstdc++-devel
* libaio
* libaio-devel
* make
* pdksh
* sysstat
* openmotif
*java
//////////////////
change
Editing the /etc/SuSE-release file
Once the installation has complete, log into an X windows session as root. Open a terminal and using the preferred text editor edit the /etc/SuSE-release file. For example, using vi:
# vi /etc/SuSE-release
The original contents of the file should be:
SUSE Linux Enterprise Server 10 (i586)
VERSION = 10
Replace the 10s with 9. The edited content should be:
SUSE Linux Enterprise Server 9 (i586)
VERSION = 9
Save the file. Note: This is only a temporary change, and may prevent certain YaST tools from operating properly. After the Oracle installation is complete this file should be reverted to it's original state.
Editing the /etc/host's file
Now edit the /etc/hosts file. Comment out or remove the line that maps the IP address 127.0.0.2 to the systems fully qualified hostname. On the example system:
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
127.0.0.2 demo.novell.com demo
192.168.1.5 demo.novell.com demo
Should become:
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
# 127.0.0.2 demo.novell.com demo
192.168.1.5 demo.novell.com demo #that is your`s
Save the file.### #把下面的这段话用# 注销 掉 #####
### #[Certified Versions]
### #Linux=redhat-3,SuSE-9,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2
####把上面的这段话用# 注销 掉。注意:这里只有SuSE-9,却没有SuSE-10 。可以手工添加进去 #####
### 加了两段:
[Certified Versions]
Linux=redhat-3,SuSE-9,SuSE-10,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2
[Linux-SuSE-10-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256
######################################################################################################## ### Novell官方的补丁包已经将将要安装的oracle的环境变量已经设定好了 ######################################################################################################## *下面的组和用户必须存在
*The oinstall group (the oracle inventory group) *The dba group (the OSDBA group) *The oracle user (the oracle owner)
*如果上面的组和用户不存在,用下面的步骤创建它们。
*(1)先查看这些组和用户是否存在:
#grep oinstall /etc/group
#grep dba /etc/group
*(2)创建安装oracle 所需的组和用户
#groupadd oinstall
#groupadd dba //useradd -g oinstall -G dba -d /home/oracle -m oracle 增加家目录。 #useradd –g oinstall –G dba oracle
#id oracle 检查一下oracle 是否属于组 oinstall 和 dba (#id oracle) #passwd oracle 再给oracle 设置一个用户口令 #passwd oracle 输入两次密码。
########################################################################################################
########### 只需要做一些修改。 ######### cp /etc/passwd /etc/passwd_bak vi /etc/passwd # 将oracle一行最后面的 /bin/false 改为 /bin/bash 这样oracle用户才有登录权限。 # /sbin/yast2 -> “security and Users” -> ”Edit and create groups” # 运行yast > 用户和组 > 编辑 > 在过滤器中选择 System Users (系统用户以及系统组) # oracle 用户 #Login shell 为 /bin/bash #Default Group 为 oinstall
########## 检查操作系统的,有一个文件要改,把SLES10加进去 ########### cd /home/share/Oracle/Oracle10g_64bit/database/install/ && cp oraparam.ini oraparam.ini_bak #转到oracle安装文件的install子目录下,将oraparam.ini文件备份。 vi oraparam.ini # 修改改这个文件 ### #把下面的这段话用# 注销 掉 ##### ### #[Certified Versions] ### #Linux=redhat-3,SuSE-9,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2 ####把上面的这段话用# 注销 掉。注意:这里只有SuSE-9,却没有SuSE-10 。可以手工添加进去 #####
### 加了两段:
[Certified Versions] Linux=redhat-3,SuSE-9,SuSE-10,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2
[Linux-SuSE-10-optional] TEMP_SPACE=80 SWAP_SPACE=150 MIN_DISPLAY_COLORS=256
/usr/sbin/rcoracle start 然后退出当前用户,并以 oracle 用户登录。
############################################# 图形安装方式介绍 ############################################# $ startx $ cd /home/share/Oracle/Oracle10g_64bit/database/ && ./runInstaller #此时 已经具备安装 oracle-database-10g-r2 的软硬件环境。图形安装只需要使用oracle用户登录转到安装目录,运行 runInstaller .然后一步一步按提示就可以了。安装完毕之后不代表就可以万事大吉了,还有后续工作。本文未尾有讲解。(完全按照Novell的文档操作的) # 注意:中文环境下乱码是因为Java显示不正确,可以改用户语言为英文进行安装。 #设置语言环境 #两个都设下,LANG和LC_ALL $ export LANG=en_US $ export LC_ALL=en_US 这个是临时更改用户语言环境,重登录后会还原为先前的。
如果实在不行,可以yast改语言环境。然后重登录或重启计算机。 #######################################################################################################################
######################### L i n u x ######################### ######################### 字符环境下安装之关健步骤 #########################
编辑Response 文件 这一步骤是字符界面装oracle的关键步骤 到oracle 10g的安装目录下编辑response文件 $cd /home/share/Oracle/Oracle10g_64bit/database/response/ 可以看到oracle准备了6个response文件,实际上这些文件就是用来安装和配置oracle时的模板,分别是 custom.rsp dbca.rsp emca.rsp enterprise.rsp netca.rsp standard.rsp在这里挑了一个简单的response文件 enterprise.rsp,也可以根据实际情况去选用编辑其他几个response文件。 $cp custom.rsp myinst.rsp $vi myinst.rsp
修改几个地方,有几个不会改的.
cd .. 转到安装文件所在目录 改好之后运行 ./runInstaller -silent -responseFile response/myinst.rsp 注意:最后面的 response/myinst.rsp 是相对路径。只要给出正确的应答文件就可以了。
运行命令后 看到 屏幕上提示: End of install (后面省略两百字,一共是四行),就表示文件已经复制完毕。按回车键,出现提示符。
然后,转到安装目录: cd /opt/oracle/product/10.2.0/db_1 su 口令 ./root.sh // NOVELL上是要求两个,不知为什么我这也是一个,和这篇说的一样也是一个脚本 根据提示按 Enter 就可以了。 这样就在字符下成功安装了。
********************************************************后 续 工 作***************************************************** 测试: sqlplus: Oracle10g 数据库(手工)的开始和关闭
From diagnostic point of view it is very important to check sqlplus is functioning properly. If not then your installation is having problems.
从诊断的观点检查sqlplus是非常重要的,它在适当起作用。 如果不说明您的设置有问题。
oracle@sles10:~> sqlplus "connect /as sysdba" //测试成功不可是试一下
Enter password: Connected to: ...........
SQL> show rel SQL> show sga
SQL> exit oracle@sles10:~>
1. To startup the database: sl10$ sqlplus /nolog SQL> connect / as sysdba SQL> startup 2. To shutdown the database: sl10$ sqlplus /nolog SQL> connect / as sysdba SQL> shutdown ***********************************************************************************************************************
##################################################################################################################### 有时候安装不成功,想重新干净的安装,可以这么做: 1 . 去除 /usr/local/bin 目录 下的 coraenv dbhome oraenv 2 . 去除 /etc/oratab , /etc/oracle 3 . 去掉安装 目录 /opt/oracle 目录下的 product admin oradata oralnventor 目录 。 #####################################################################################################################
#####################################################################################################################
当计算机启动时启动oracle <英文为Novell官方文档原文>
1. Set parameter START_ORACLE_DB="yes" in “/etc/sysconfig/oracle” file. Edit “/etc/sysconfig/oracle” manually or use YaST : “/sbin/yast2->System->/etc/sysconfig Editor ->Productivity->Databases”
设定参数 START_ORACLE_DB="yes" ,通过手动修改 /etc/sysconfig/oracle文件或者是利用Yast工具:“/sbin/yast2->System-> /etc/sysconfig Editor ->Productivity->Databases” .
2. Edit /etc/oratab entry corresponding to your database to “Y”. i.e. mydb:/opt/oracle/product/10gR2:Y
修改 /etc/oratab 文件。将其中的 N 改为 Y 。例如orcl:/opt/oracle/product/10.2.0/db_1:Y 。 #####################################################################################################################
参考 Novell网站官方文档 Introduction to Oracle 10gR2 on SUSE Linux 10.0 >> pdf文档 http://www.novell.com/products/server/oracle/documents.html
<<AIX下字符界面安装oracle 10g过程>> 原文地址:http://bbs.chinaunix.net/viewthread.php?tid=822850&extra=page%3D1%26filter%3Ddigest
************************************************************************************************************** How to install Oracle Text ./runInstaller -silent -responseFiles install.rsp http://huohuliaisili.cublog.cn/ Novell关于Oracle的文档 http://www.novell.com/products/server/oracle/documents.html Oracle公司免费的自学材料 http://www.oracle.com/technology/global/cn/obe/2day_dba/index.htm
|
|
|
发表于: 2006-12-03,修改于: 2006-12-08 19:26,已浏览1074次,有评论2条
推荐
投诉
|
|
 |
|
 |
|  |
|
 |
 |
|
 |
网友评论
 |
|
 |
 |
网友:
本站网友 | 时间:2006-12-06 14:13:23 IP地址:220.173.40.★ |
|
|
|
oracle setup for sles10
setup then need soft
All of the required packages are installed:
///////////////////////
* binutils
* gcc
* gcc-c++
* glibc
* gnome-libs
* libstdc++
* libstdc++-devel
* libaio
* libaio-devel
* make
* pdksh
* sysstat
* openmotif
*java
//////////////////
change
Editing the /etc/SuSE-release file
Once the installation has complete, log into an X windows session as root. Open a terminal and using the preferred text editor edit the /etc/SuSE-release file. For example, using vi:
# vi /etc/SuSE-release
The original contents of the file should be:
SUSE Linux Enterprise Server 10 (i586)
VERSION = 10
Replace the 10s with 9. The edited content should be:
SUSE Linux Enterprise Server 9 (i586)
VERSION = 9
Save the file. Note: This is only a temporary change, and may prevent certain YaST tools from operating properly. After the Oracle installation is complete this file should be reverted to it's original state.
Editing the /etc/host's file
Now edit the /etc/hosts file. Comment out or remove the line that maps the IP address 127.0.0.2 to the systems fully qualified hostname. On the example system:
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
127.0.0.2 demo.novell.com demo
192.168.1.5 demo.novell.com demo
Should become:
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
# 127.0.0.2 demo.novell.com demo
192.168.1.5 demo.novell.com demo #that is your`s
Save the file.### #把下面的这段话用# 注销 掉 #####
### #[Certified Versions]
### #Linux=redhat-3,SuSE-9,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2
####把上面的这段话用# 注销 掉。注意:这里只有SuSE-9,却没有SuSE-10 。可以手工添加进去 #####
### 加了两段:
[Certified Versions]
Linux=redhat-3,SuSE-9,SuSE-10,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2
[Linux-SuSE-10-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256
|
|
|
|
 |
|
 |
 |
|
 |
 |
网友:
本站网友 | 时间:2006-12-06 14:15:28 IP地址:220.173.40.★ |
|
|
|
Installing Oracle10g R2 Database on SLES10 for i386
http://www.novell.com/products/server/oracle/oracle10g_install.html
标题: 今天终于在rh9上成功安装了Oracle9,一帆风顺,写一下经验。
http://www.linuxsir.org/bbs/showthread.php?s=&threadid=46439
|
|
|
|
 |
|
 |
|  |
|
 |
|