linux下oracle安装

上传人:新** 文档编号:466243391 上传时间:2024-01-22 格式:DOC 页数:9 大小:61.50KB
返回 下载 相关 举报
linux下oracle安装_第1页
第1页 / 共9页
linux下oracle安装_第2页
第2页 / 共9页
linux下oracle安装_第3页
第3页 / 共9页
linux下oracle安装_第4页
第4页 / 共9页
linux下oracle安装_第5页
第5页 / 共9页
点击查看更多>>
资源描述

《linux下oracle安装》由会员分享,可在线阅读,更多相关《linux下oracle安装(9页珍藏版)》请在金锄头文库上搜索。

1、封面作者: PanHongliang仅供个人学习1. linux 系统配置vim /etc/selinux/configSELINUX=permissive network setup files (redhat fc 4)2. 网络配置/etc/hosts增加 10.130.16.34hp6120-001 /etc/sysconfig/network NETWORKING=yes HOSTNAME=hp6120-001 /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0HWADDR=00:0C:29:D0:23:80 ONBOOT=ye

2、sTYPE=EthernetNETMASK=255.255.255.0IPADDR=192.168.70.3GATEWAY=192.168.70.2vim /etc/resolv.conf nameserver 10.130.1.1(dns) search 202.106.196.115(域名服务 )3. oracle 动态库binutils, compat-db, control-center, gcc, gcc-c+, glibc, glibc-common,gnome-libs,libstdc+,libstdc+-devel,make,pdksh (可能会和已安装地ksh冲突,使用rpm

3、 -e ksh来卸载掉ksh,再次安装即可)sysstat,xscreensaver,安装完需要进行一下操作(使用 root 用户) :ln -s /lib/libc.so.6 /lib/libc.so.5ln -s /usr/lib/libstdc+.so.6 /usr/lib/libstdc+.so.5编辑 vim /etc/ld.so.conf 有以下内容 include ld.so.conf.d/*.conf /usr/X11R6/lib/6.4.groupadd oinstall groupadd dba useradd -g oinstall -G dba oraclepasswd

4、 oracle/oraclesu -oracle mkdir db_home / 作为建 oracle 实例用地目录mkdir oracle10g /oracle 安装目录vim /etc/sysctl.conf 增加:kernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni = 4096kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 1048

5、576 net.core.rmem_max = 1048576 net.core.wmem_default = 262144 net.core.wmem_max = 262144参数值做个简要地解释和说明.(1)shmmax:该参数定义了共享内存段地最大尺寸(以字节为单位).缺省为 32M, 对于oracle来说,该缺省值太低了,通常将其设置 为 2G(2)shmmni:这个内核参数用于设置系统范围内共享内存段地最大数量.该参数地默认值是4096 .通 常 不 需 要更改.(3)shmall :该参数表示系统一次可以使用地共享内存总量(以页为单位).缺省值就是2097152,通常不需要修改.(

6、4)sem : 该 参 数 表 示 设 置 地信号量.(5)file-max:该参数表示文件句柄地最大数量.文件句柄设置表示在linux 系统中可以打开地文件数量7.调整oracle使用者地环境限制vim /etc/security/limits.conf 增加* soft nproc 2047* hard nproc 16384* soft nofile 1024* hard nofile 65536vim /etc/pam.d/login 增加session required /lib/security/pam_limits.sosession required pam_limits.so

7、. 检查 /tmp 空间确保至少 400M df /tmp. 重启机器9. 设置环境变量su - oraclevim .bash_profile 增加export ORACLE_BASE=/home/oracle/oracle10g export ORACLE_SID=dbtestexport ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1export PATH=$ORACLE_HOME/bin:$PA THexport LD_LIBRARY_PA TH=$ORACLE_HOME/lib:/usr/libexport LC_CTYPE=en_US.UT

8、F-8生效环境变量:. .bash_profile 或者 source .bash_profile10. 准备安装文件unzip /home/oracle/tools/10201_database_linux32.zip11. 安装 oracle如果通过远程安装 oracle 需要在 root 用户下运行 vncserver 然后运行 xhost +本地安装直接 xhost +su -oracle先解压安装文件包 ,安装时忽略版本检查:./runInstaller -ignoreSysPreReqs在 root 用户环境下执行安装程序给出地脚本/home/oracle/oracle10g/or

9、aInventory/orainstRoot.sh/home/oracle/oracle10g/product/10.2.0/db_1/root.sh完成Isql*Plus URLIsql*Plus DBA URLEnterprise Managere 10g Database Control URL:12. 建立数据库su -oracledbca13. 启动服务Sqlplus /nologConn /as sysdbaStartupExitLsnrctl start14. 创建表空间CREATE TABLESPACE use39 DATAFILE /home/oracle/oracle10g

10、/oradata/ccpbs/use39.dbf SIZE 100M AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO15. 创建用户create user ccod identified by ccod default tablespace use39 temporary tablespace TEMP。 create user ucds identified by ccod default tablespace use39 tempor

11、ary tablespace TEMP。 create user ve identified by ccod default tablespace use39 temporary tablespace TEMP。 grant conn ect,resource,dba to ccod。grant conn ect,resource to ucds。grant conn ect,resource to ve。版权申明本文部分内容,包括文字、图片、以及设计等在网上搜集整 理。版权为潘宏亮个人所有This article includes some parts, including text,pic

12、tures, and desig n. Copyright is Pan Hon glia ngs pers onal own ership.用户可将本文的内容或服务用于个人学习、研究或欣赏,以及 其他非商业性或非盈利性用途,但同时应遵守著作权法及其他相关 法律的规定,不得侵犯本网站及相关权利人的合法权利。除此以 外,将本文任何内容或服务用于其他用途时,须征得本人及相关权 利人的书面许可,并支付报酬。Users may use the contents or services of thisarticle for pers onal study, research or appreciati

13、on, and other non-commercial or non-profit purposes, but at the same time, they shall abide by the provisions of copyrightlaw and other releva nt laws, and shall not infringe uponthe legitimate rights of this website and its releva ntobligees. In addition, when any content or service of thisarticle

14、is used for other purposes, written permission and remun erati on shall be obta ined from the pers on concerned and the releva nt obligee.转载或引用本文内容必须是以新闻性或资料性公共免费信息为 使用目的的合理、善意引用,不得对本文内容原意进行曲解、修 改,并自负版权等法律责任。Reproducti on or quotatio n of the content of thisarticle must be reas on able and good-faith citati on for the use of n ews or in formative public free in formati on .It shall not misi nterpret or modify the orig inal inten ti on of the content of this article, and shall bear legal liability such as copyright.

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 办公文档 > 工作计划

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号