linux下oracle安装_第1页
linux下oracle安装_第2页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

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

文档简介

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=yesHOSTNAME=hp6120-001 /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0HWADDR=00:0C:29:D0:23:80 ONBOOT=yesTY

2、PE=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,6.gnome-libs,libstdc+,libstdc+-devel,make,pdksh(可能会和已安装地ksh冲突,使用rpm -e

3、 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/groupadd oinstall groupadd dba useradd -goinstall -G dba oraclepasswd oracle/oracle

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

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

6、信号量.(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. 检查 /tmp 空间确保至少400M df

7、/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.UTF-8生效环境变量:. .bash_profile或者

8、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/oraInventory/orainstRoot.sh/home/oracle/or

9、acle10g/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/oradata/ccpbs/use39.dbf SIZE100M AUTOEX

10、TEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING EXTENT MANAGEMENTLOCAL SEGMENT SPACE MANAGEMENT AUTO15. 创建用户create user ccod identified by ccod default tablespace use39 temporary tablespace TEMP。createuser ucds identified by ccod default tablespace use39 temporary tablespace TEMP。create user veidentified

11、 by ccod default tablespace use39 temporary tablespace TEMP。grant connect,resource,dba to ccod。grant conn ect,resource to ucds。grant conn ect,resource to ve。版权申明本文部分内容,包括文字、图片、以及设计等在网上搜集整 理。版权为潘宏亮个人所有This article includes some parts, including text,pictures, and desig n. Copyright is Pan Hon glia ng

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

13、s, but at the same time, they shallabide 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 is used for other purposes, written permission and remun erati onshall 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-fai

温馨提示

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

最新文档

评论

0/150

提交评论