您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > 数据库 > centos6 64位安装oracle11g
Centos6.064位版本上安装oracle11g教程Centos6.064位版本上安装oracle11g教程...................................................................................1一.安装前准备.......................................................................................................................11.准备文件.............................................................................................................................12.环境配置.............................................................................................................................1二.安装oracle11g64位.....................................................................................................4三.测试安装是否正确.........................................................................................................17四.重启centos,仍然以oracle用户登录.................................................................................18启动orcl实例服务.................................................................................................................18启动dbconsole,这个的启动必须要监听器启动才可以。...............................................20五.配置root用户启动,和自动启动oracle.............................................................................231.配置root用户启动oracle...............................................................................................232.配置root用户自动启动oracle.......................................................................................24一.安装前准备1.准备文件到oracle官网下载oracle数据的64bitlinux版本,我下载的版本是:linux.x64_11gR2_database_1of2.zip(1.2G),linux.x64_11gR2_database_2of2.zip(1G)。解压后的大小为2.3G然后分别解压2个文件,命令如下:Unziplinux.x64_11gR2_database_1of2.zipUnziplinux.x64_11gR2_database_2of2.zip2.环境配置安装包检测及安装[root@centOS6-xie~]#rpm-qgccmakebinutilssetarchcompat-dbcompat-gcccompat-gcc-c++compat-libstdc++compat-libstdc++-develunixODBCunixODBC-devellibaio-develsysstatgcc-4.4.4-13.el6.x86_64make-3.81-19.el6.x86_64binutils-2.20.51.0.2-5.11.el6.x86_64packagesetarchisnotinstalledcompat-db-4.6.21-15.el6.x86_64packagecompat-gccisnotinstalledpackagecompat-gcc-c++isnotinstalledpackagecompat-libstdc++isnotinstalledpackagecompat-libstdc++-develisnotinstalledunixODBC-2.2.14-11.el6.x86_64unixODBC-devel-2.2.14-11.el6.x86_64libaio-devel-0.3.107-10.el6.x86_64sysstat-9.0.4-12.el6_0.1.x86_64没有安装的可以在光盘中找到,然后按照rpm–ivh安装就好了,上面是我安装好后的情况。系统参数设置及用户目录设置//查看内存及swap[root@centOS6-xie~]#grepMemTotal/proc/meminfoMemTotal:3903656kB[root@centOS6-xie~]#grepSwapTotal/proc/meminfoSwapTotal:8388600kBsysctl.conf[root@centOS6-xie~]#vim/etc/sysctl.conf#Controlsthemaximumsizeofamessage,inbyteskernel.msgmnb=65536#Controlsthedefaultmaxmimumsizeofamesagequeue#kernel.msgmax=65536#Controlsthemaximumsharedsegmentsize,inbyteskernel.shmmax=4294967295#Controlsthemaximumnumberofsharedmemorysegments,inpageskernel.shmall=268435456#Belowfororacle11gkernel.core_uses_pid=1kernel.shmmax=536870912kernel.shmmni=4096kernel.shmall=2097152kernel.sem=25032000100128net.core.rmem_default=4194304net.core.rmem_max=4194304net.core.wmem_default=262144net.core.wmem_max=262144fs.file-max=6553600net.ipv4.ip_local_port_range=102465000//添加用户组及用户#groupaddoracleDba#useraddoracle-goinstall-GoracleDba#passwdoracle//新建目录权限#mkdir-p/usr/local/oracle#chown-Roracle:oracleDba/usr/local/oracle#chmod-R755/usr/local/oracle//用户环境变量通常的/etc/profile文件设置的环境变量对所有的用户都会生效,然而这儿设置了oracle用户,所有将环境变量设置在oracle用户的/~/.bashrc文件中。考虑到要通过root用户启动和维护数据库,我们将写一个脚本来自动启动oracle。[oracle@centOS6-xie~]$vim.bashrc#.bashrc#Sourceglobaldefinitionsif[-f/etc/bashrc];then./etc/bashrcfiORACLE_BASE=/usr/local/oracle/ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1ORACLE_SID=orcl2PATH=$ORACLE_HOME/bin:$PATHORACLE_OWNER=oracleexportORACLE_UNQNAME=$ORACLE_SIDexportORACLE_BASEORACLE_HOMEORACLE_SIDPATHORACLE_OWNR#Userspecificaliasesandfunctions~~.bashrc21L,368C//将解压出来的文件夹放到/usr/local/oracle下,同时修改其所有者和权限chown-Roracle:oracleDba/usr/local/oraclels-aldrwxr-xr-x.8oracleoracleDba409610?1107:39.drwxr-xr-x.3oracleoracledba409610?1114:49..drwxr-xr-x.12oracleoracleDba40968?172009docdrwxr-xr-x.4oracleoracleDba40968?152009installdrwxr-xr-x.2oracleoracleDba40968?152009responsedrwxr-xr-x.2oracleoracleDba40968?152009rpm-rwxr-xr-x.1oracleoracleDba32268?152009runInstallerdrwxr-xr-x.2oracleoracleDba40968?152009sshsetupdrwxr-xr-x.14oracleoracleDba40968?152009stage-rwxr-xr-x.1oracleoracleDba54028?172009welcome.html二.安装oracle11g64位本来想用ssh客户端操作linux安装oracle的,结果由于xserver检测失败,所以直接在电脑上装了。安装之前先导入语言,exportLANG=en_US,否则安装过程会出现乱码。过程如下:[oracle@centOS6-xie桌面]$cd/usr/local/oracle/database/[oracle@centOS6-xiedatabase]$ls-al总用量44drwxr-xr-x.8oracleoracleDba409610月1107:39.drwxr-xr-x.4oracleoracledba409610月1114:56..drwxr-xr-x.12oracleoracleDba40968月172009docdrwxr-xr-x.4oracleoracleDba40968月152009installdrwxr-xr-x.2oracleoracleDba40968月152009responsedrwxr-xr-x.2oracleoracleDba40968月152009rpm-rwxr-xr-x.1oracleoracleDba32268月152009runInstallerdrwxr-xr-x.2oracleoracleDba40968月152009sshsetupdrwxr-xr-x.14oracleoracleDba40968月152009stage-rwxr-xr-x.1oracleoracleDba54028月172009welcome.html[oracle@centOS6-xiedatabase]$exportLANG=en_US[oracle@centOS6-xiedatabase]$./
本文标题:centos6 64位安装oracle11g
链接地址:https://www.777doc.com/doc-4216588 .html