Linux安装Oracle数据库11G配置

上传人:cl****1 文档编号:485507766 上传时间:2022-11-25 格式:DOCX 页数:11 大小:28.36KB
返回 下载 相关 举报
Linux安装Oracle数据库11G配置_第1页
第1页 / 共11页
Linux安装Oracle数据库11G配置_第2页
第2页 / 共11页
Linux安装Oracle数据库11G配置_第3页
第3页 / 共11页
Linux安装Oracle数据库11G配置_第4页
第4页 / 共11页
Linux安装Oracle数据库11G配置_第5页
第5页 / 共11页
点击查看更多>>
资源描述

《Linux安装Oracle数据库11G配置》由会员分享,可在线阅读,更多相关《Linux安装Oracle数据库11G配置(11页珍藏版)》请在金锄头文库上搜索。

1、个人收集整理勿做商业用途封面个人收集整理勿做商业用途作者: Pan Hongliang仅供个人学习1 、查看内核需求rootlocalhost # cat /proc/version2、查看哪些包是否 安装?个人收集整理勿做商业用途rootlocalhost # rpm -qa | grep binutrootlocalhost # rpm -qa | grep compatrootlocalhost # rpm -qa | grep elfurootlocalhost # rpm -qa | grep glibcrootlocalhost # rpm -qa | grep gccrootlo

2、calhost # rpm -qa | grep libaiorootlocalhost # rpm -qa | grep libstdcrootlocalhost # rpm -qa | grep makerootlocalhost # rpm -qa | grep sysstarootlocalhost # rpm -qa | grep unix需要安装的包:这是我个人安装,以个人情况而定安装需要安装的包rootoracle11g # rpm -ivh *.rpm3、创建一些组合目录rootoracle11g # groupadd oinstallrootoracle11g # group

3、add dba然后在这个根目录下建立一个目录/u01/oracle;计划是把 Oracle11G的软件安装在 /u01/oracle这个目录下rootoracle11g # mkdir -p /u01/oracle个人收集整理勿做商业用途创建用户和密码 意思 : 增加一个用户 useradd, 增加那个用户呢 ?是 oracle 这个用户 ;它的这个首要的组是oinstall;辅助的组是 dba; 缺省的根目录是 /u01/oraclerootoracle11g # useradd -g oinstall -G dba -d/u01/oracleoracle设置密码以及确认rootoracle

4、11g # passwd oracle NIdbAdmin1 rootoracle11g # cd /rootoracle11g /# lsl 改变成了 oracle 这个用户了rootoracle11g /# chown -R oracle:oinstall u01rootoracle11g /# ls -l要检验 nobody 这个用户是否存在rootoracle11g /# id nobodyuid=99(nobody) gid=99(nobody) groups=99(nobody)配置参数rootoracle11g /# vi /proc/sys/fs/file-max120300/

5、512rootoracle11g / vi /etc/sysctl.confkernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni = 4096kernel.sem = 250 32000 100 128个人收集整理勿做商业用途在/etc/sysctl.conf配置完这个 在 /sbin 目录下就执行: sysctl prootoracle11g/#vi/etc/security/limits.conforacle soft nproc 2047oracle hard nproc 16384oracle soft nofil

6、e 1024oracle hard nofile 65536rootoracle11g /# vi /etc/pam.d/loginsession required pam_limits.sosession required /lib/security/pam_limits.sorootoracle11g /# vi /etc/profileif $USER = oracle ; thenif $SHELL = /bin/ksh ; thenulimit -p 16384ulimit -n 65536elseulimit -u 16384 -n 65536fifirootoracle11g #

7、 ifconfigrootoracle11g # vi /etc/hosts编辑里面内容去掉一个 oracle11g 安装 Linux 时的 local名添加如下:oracle11g个人收集整理勿做商业用途切换用户和一些操作rootoracle11g /# su - oracleoracleoracle11g $oracleoracle11g $ lsoracleoracle11g $ pwdoracleoracle11g $ ls -la-rw-r-r-1 oracle oinstall191 Dec 15 09:06 .bash_profile-rw-r-r-1 oracle oinsta

8、ll191设置环境变量oracleoracle11g $ vi .bash_profileORACLE_BASE=/opt/oracleORACLE_HOME=$ORACLE_BASE/oracleORACLE_SID=nidbPATH=$ORACLE_HOME/bin:$PATHexport ORACLE_BASE ORACLE_HOME ORACLE_SID PATH oracleoracle11g $ su - oraclePassword: oracle查看设置的环境变量oracleoracle11g $ env | grep ORA以 root 用户登陆rootoracle11g#u

9、nziplinux_11gR1_database_1013.zip解压rootoracle11g # ls -l查看rootoracle11g # mv database/ /u01移动到/u01目录下rootoracle11g # cd /u01rootoracle11g u01# ls -l个人收集整理勿做商业用途rootoracle11g u01# chown -R oracle:oinstall database/把database目录下的都变成了Oracle可读的rootoracle11g u01# ls -lrootoracle11g u01# cd database/rootor

10、acle11g database# ls -l到图型界面执行以oracle身份登陆rootoracle11g # pwd rootoracle11g # cd . rootoracle11g u01# ls rootoracle11g u01#cd database/ rootoracle11g database# ls rootoracle11g database# ./runInstaller执行安装最后提示两个需要的执行命令:是在 root 用户下执行执行以下命令rootoracle11g # /u01/oraInventory/orainstRoot.sh rootoracle11g

11、# /u01/oracle/root.sh第二步的安装目录在/oralnventory前面添加/u01结果为:/u01/oralnventoryrootoracle11g database# netca配置监听程序rootoracle11g database# ps -ef查看监听程序个人收集整理勿做商业用途rootoracle11g database# dbca安装数据库创建完成数据库rootoracle11g database# ps -ef查看配置的监听程序和安装数据库信息测试oracleoracle11g wilson$ sqlplus /nologSQL quitoracleoracle11g $ lsoracleoracle11g $ vi .bash_profile

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 演讲稿/致辞

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