SuSE11安装Oracle 10g20150621_第1页
SuSE11安装Oracle 10g20150621_第2页
SuSE11安装Oracle 10g20150621_第3页
SuSE11安装Oracle 10g20150621_第4页
SuSE11安装Oracle 10g20150621_第5页
已阅读5页,还剩25页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、SuSE11安装Oracle 10g(64位)详细步骤郑海树 2015-6-18一、安装SuSE1二、oracle安装前准备2三、安装oracle 10g4四、升级到10五、创建数据库实例16六、安装rlwrap28一、安装SuSE设备环境:Vmware虚拟机,操作系统为64位SuSE 11 sp3版。给虚拟机分配了40G的空间。另外给内存分配了2G,给交换空间分配了4G。安装系统时在选择程序包那一步,记得把“Oracle服务器库”和“开发”勾选起来二、oracle安装前准备1 检查是否关闭了防火墙和SELinux。若未关闭,则按下面的步骤关闭防火墙和SELinux:# chkconfig i

2、ptables off 修改/etc/selinux/config 文件将SELINUX=enforcing改为SELINUX=disabled重启系统#reboot2 检查oracle依赖包“Oracle服务器库”和“开发”后,安装oracle 10g或oracle 11g不缺依赖包。3 创建oracle用户及组groupadd dba groupadd oinstall useradd -g oinstall -G dba -m oraclepasswd oracle mkdir -p /u01/app/oracle/product/10.2.0/db_1chown -R oracle:o

3、install /u01chmod -R 775 /u014 配置oracle环境变量# cd /home/oracle# vi .profile export ORACLE_BASE=/u01/app/oracleexport ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1export ORACLE_SID=zxinexport ORACLE_TERM=xtermexport NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"export ORA_NLS33=$ORACLE_HOME/comm

4、on/nls/admin/dataLD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib:/libLD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/libexport LD_LIBRARY_PATHexport PATH=$PATH:$ORACLE_HOME/bin改完后执行# source .profile可以用env | grep ora命令查看环境变量设置效果。5 设置系统内核参数,在sysctl.conf文件末尾增加或修改参数# vi /etc/sysctl.confnet.ipv4.ip_local_port_rang

5、e=1024 65500保存退出,然后执行下面的命令来使配置生效 # sysctl -p6 修改系统版本号因为Oracle 10g发布时,SuSE 11还没发布,所以SuSE 11不是Oracle 10g认证的操作系统。解决办法是把/etc/SuSE-release中的11改为9。# vi /etc/SuSE-releaseSUSE Linux Enterprise Server 9 (x86_64)VERSION = 9PATCHLEVEL = 37 准备oracle安装文件。注销后以oracle用户登录,将和p8202632_10205_Linux-x86-64.zip拷贝到桌面。打开终端

6、Desktop> gunzipDesktop> cpio -idmv < 10201_database_linux_x86_64.cpio8 检查DISPLAY变量和LANG变量Desktop> echo $DISPLAY若值为空,要设为Desktop> export DISPLAY=:0.0Desktop > echo $LANG若不是英语要设为英语,否则安装界面会显示乱码Desktop> export LANG=en_US三、安装oracle 10g1 启动安装界面Desktop> cd database/database> ./run

7、Installer此时会报display的错误:Checking Temp space: must be greater than 80 MB. Actual 25032 MB PassedChecking swap space: must be greater than 150 MB. Actual 4094 MB PassedChecking monitor: must be configured to display at least 256 colors >>> Could not execute auto check for display colors using

8、 command /usr/X11R6/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<Some optional pre-requisite checks have failed (see above). Continue? (y/n) n假如装的是11g就不会报错。这可能是oracle 10g的一个bug。输入“y”继续安装。2 启动安装界面。对oracle不是很熟的话选基本安装。oracle软件和oracle实例建议分开安装,所以把Create Starter Database前默认的勾

9、去掉。Next3 产品目录默认,Next4 安装前检查,提示网络设置有问题,忽略,Next5 安装概要界面,Install6 安装进度7 安装到83%时,提示错误,这是oracle 10g的bug。忽略,Continue8安装到100%的时候,会提示另开一个终端用root账户执行两个脚本# cd /home/oracle/zxindbf/oraInventory/# ./orainstRoot.shChanging permissions of /home/oracle/zxindbf/oraInventory to 770.Changing groupname of /home/oracle

10、/zxindbf/oraInventory to oinstall.The execution of the script is complete# cd /home/oracle/oracle10g/# ./root.shRunning Oracle10 root.sh script.The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /home/oracle/oracle10gEnter the full pathname of the local bin directory:

11、/usr/local/bin: 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 byDatabase Configuration Assistant when a database is createdFinished running generic part of roo

12、t.sh script.Now product-specific root actions will be performed.9 执行完脚本,点击“OK”后,提示数据库已经安装成功点击“Exit”按钮,弹出确认警告框。点击“Yes”确认退出。在安装oracle的那个终端按CTRL+C退出。整个安装过程即告完成。1 在oracle用户桌面解压缩升级包Desktop> unzip p8202632_10205_Linux-x86-64.zipDesktop> cd Disk1Disk1> ./runInstaller显示安装界面,Next2 安装路径默认,Next3 不接收Em

13、ail,去掉默认的勾选Yes4 先决条件检查这里提示少了个libstdc,实际上已经安装了高版本的liststdc+,所以这个警告可以忽略。Next,弹出警告框,Yes5 安装概要,Install6 安装进度7 安装到100%的时候,需要用root帐户执行root.sh# cd /home/oracle/oracle10g# ./root.shRunning Oracle 10g root.sh script.The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /home/oracl

14、e/oracle10gEnter the full pathname of the local bin directory: /usr/local/bin: The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) n: y Copying dbhome to /usr/local/bin .The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) n: y Copying oraen

15、v to /usr/local/bin .The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) n: y Copying coraenv to /usr/local/bin .Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root.s

16、h script.Now product-specific root actions will be performed.注意这里有提示目录已存在是否覆盖的一律选择覆盖。执行完后选择“OK”按纽8 提示安装成功,Exit五、创建数据库实例1 oracle 10g软件已经安装好了,但是还没有安装数据库,于是用oracle用户执行dbca命令,启动数据库安装配置界面:> dbca2 选择“创建数据库”3 按默认选择一般目的4 输入全局数据库名称和实例名,这里要与环境变量中的SID一致。注意严格区分大小写。5这里不用配置EM ,Nex6 设置系统账号口令,统一设置为oracle7 存储机制按默

17、认7 选择数据库文件所在位置,默认:8启用归档,Next9 示例方案可以不勾选,按默认10 设置初始化参数,包括内存(SGA、PGA等大小设置,默认设置在40%内存)、字符集(默认使用操作系统语言)和链接模式(专用和共享模式,专用适合于很少的会话,共享适用于大量会话)要支持中文的话,数据库字符集记得选ZHS16GBK,国家字符集选AL16UTF16,默认语言选简体中文,国家选中国。11 点下一步后,显示数据库存储信息,包括控制文件、数据文件和重做日志文件,这三项构成了数据库的物理结构,可以按默认:12 创建选项,如果想看创建数据库的脚本可以勾选生成数据库创建脚本,这里不选13概要界面, OK1

18、4创建数据库15 数据库创建完成,此处可管理数据库账号口令点击Exit,ORCL数据库创建完成。16 验证数据库是否升级成功先在oracle账户下修改此账户下的系统字符集> cd> vi .bashrc在最后一行添加export LANG=zh_CN.GBK注销后重新使用oracle账户登录使其生效再用oracle账户登录sqlplus客户端sqlplus / as sysdbaSQL*Plus: Release .0 - Production on 星期五 6月 19 15:37:14 2015Copyright (c) 1982, 2010, Oracle. A

19、ll Rights Reserved.Connected to:Oracle Database 10g Enterprise Edition Release .0 - 64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> col comp_name format a35SQL> col version format a15SQL> col status format a7SQL> set line 200SQL&g

20、t; select comp_name,version,status from sys.dba_REGISTRY;COMP_NAME VERSION STATUS- - -Oracle Database Catalog Views VALIDOracle Database Packages and VALIDOracle Workspace Manager VALIDJServer JAVA Virtual Machine VALIDOracle XDK VALIDOracle Database Java Packages VALIDOracle Expression Filter VALIDOracle Data Mining VALIDOracle Text VALIDOracle XML Database VALIDOracle Rules Manager VALIDCOMP_NAME VERSION STATUS- - -Oracle interMedia VALIDOLAP Analytic Workspace VALIDOracle OLAP API VALIDOLAP Catalog VA

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论