linux下oracle安装

上传人:沈*** 文档编号:98027050 上传时间:2022-05-28 格式:DOC 页数:9 大小:61.50KB
收藏 版权申诉 举报 下载
linux下oracle安装_第1页
第1页 / 共9页
linux下oracle安装_第2页
第2页 / 共9页
linux下oracle安装_第3页
第3页 / 共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.

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

copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!