您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > 数据库 > LINUX 5版本安装ORACLE10.2G说明手册
Linux5版本上安装oracle10.2g说明手册第1页数据库Oracle10.2版本在LinuxRadHatEnterprise5安装说明合肥信息技术服务有限公司二0一0年六月版本:V1.0作者:徐凯页数:29日期:2010-6-23Linux5版本上安装oracle10.2g说明手册第2页目录1检查环境........................................................31.1检查安装ORACLE环境............................................31.2将LINUX系统安装盘放入光驱中...................................31.3创建光驱镜像路径(文件夹)....................................31.4查看磁盘文件..................................................31.5映射光驱到本地硬盘............................................41.6安装所需的服务................................................41.7检查安装ORACLE的硬件要求(内存、交换区)......................52编辑有关文件内容................................................62.1编辑/ETC/SYSCTL.CONF文件........................................62.2编辑/ETC/SECURITY/LIMITS.CONF文件.................................62.3编辑/ETC/PAM.D/LOGIN文件........................................72.4编辑/ETC/SELINUX/CONFIG文件......................................73安装ORACLE前准备工作...........................................73.1创建组及用户ORACLE.............................................73.2创建ORACLE数据库的安装目录及赋予权限..........................73.3编辑主机名称及IP地址.........................................83.4修改LINUX版本号...............................................83.5配置ORACLE的启动信息..........................................83.6查看LINUX系统是32位还是64位.................................93.7拷贝ORACLE安装文件到LINUX系统中...............................94开始安装ORACLE..................................................95测试ORACLE是否安装成功........................................176修改ORACLE字符集..............................................187WINDOWS客户端进行连接..........................................198如何添加新实例.................................................199补充内容.......................................................269.1ORACLE10G热备份脚本...........................................269.2访问数据库的WEB界面.........................................28Linux5版本上安装oracle10.2g说明手册第3页1检查环境1.1检查安装oracle环境[root@localhost~]#rpm-qgccmakebinutilsopenmotifsetarchglibclibaiocompat-libstdc++-33-3compat-gcc-34-3compat-gcc-34-c++-3libXp-1compat-db-4make-3.81-1.1binutils-2.17.50.0.6-5.el5packageopenmotifisnotinstalledsetarch-2.0-1.1glibc-2.5-18libaio-0.3.106-3.2packagecompat-libstdc++-33-3isnotinstalledpackagecompat-gcc-34-3isnotinstalledpackagecompat-gcc-34-c++-3isnotinstalledpackagelibXp-1isnotinstalledpackagecompat-db-4isnotinstalled1.2将linux系统安装盘放入光驱中1.3创建光驱镜像路径(文件夹)[root@localhostmnt]#mkdir/mnt/cdrom[root@localhostmnt]#chmod–R777/mnt/cdrom1.4查看磁盘文件[root@localhostmnt]#df-hFilesystemSizeUsedAvailUse%Mountedon/dev/sda23.8G1.9G1.8G52%//dev/sda36.0G141M5.5G3%/home/dev/sda146M11M34M24%/boottmpfs506M0506M0%/dev/shmLinux5版本上安装oracle10.2g说明手册第4页/dev/hdc2.8G2.8G0100%/media/RHEL_5.1i386DVD1.5映射光驱到本地硬盘根据3、4步骤,可知光驱位置/dev/hdc,将光驱文件镜像到/mnt/cdrom中,命令如下:[root@localhostmnt]#mount/dev/hdc/mnt/cdrommount:blockdevice/dev/hdciswrite-protected,mountingread-only注:卸载镜像文件如下命令:[root@localhostmnt]#umount/dev/hdc/mnt/cdrom1.6安装所需的服务[root@localhost~]#cd/mnt/cdrom[root@localhostcdrom]#cdServer/[root@localhostServer]#rpm–Uvh--nodepscompat-db-4*[root@localhostServer]#rpm–Uvh--nodepslibaio-0*[root@localhostServer]#rpm–Uvh--nodepscompat-libstdc++-33-3*[root@localhostServer]#rpm–Uvh--nodepscompat-gcc-34-3*[root@localhostServer]#rpm–Uvh--nodepscompat-gcc-34-c++-3*[root@localhostServer]#rpm-Uvh--nodepslibXp-1*[root@localhostServer]#rpm-Uvh--nodepsopenmotif-2*[root@localhostServer]#rpm-Uvh--nodepsgcc-4*[root@localhostServer]#rpm-Uvh--nodepsglibc-2.5-12.i686.rpm以下命令是在安装oracle后,在62%时不能继续安装时需要安装的。[root@localhostServer]#rpm-Uvh--nodepsbinutils*[root@localhostServer]#rpm-Uvh--nodepscompat-db*[root@localhostServer]#rpm-Uvh--nodepscontrol-center*[root@localhostServer]#rpm-Uvh--nodepsgcc-3.4*[root@localhostServer]#rpm-Uvh--nodepsgcc-c++*[root@localhostServer]#rpm-Uvh--nodepsglibc-2.3*[root@localhostServer]#rpm-Uvh--nodepsglibc-common*[root@localhostServer]#rpm-Uvh--nodepsgnome-libs*(redhat5.2中没有此包)[root@localhostServer]#rpm-Uvh--nodepslibstdc++-3.4*[root@localhostServer]#rpm-Uvh--nodepslibstdc++-devel*Linux5版本上安装oracle10.2g说明手册第5页[root@localhostServer]#rpm-Uvh--nodepsmake*[root@localhostServer]#rpm-Uvh--nodepspdksh*(redhat5.2中没有此包)[root@localhostServer]#rpm-Uvh--nodepssysstat*[root@localhostServer]#rpm-Uvh--nodepsxscreensaver*(redhat5.2中没有此包)以下可以再补充安装下:安装不了的加--nodeps[root@localhostServer]#rpm-Uvhcompat-db-4.2.52-5.1.i386.rpm[root@localhostServer]#rpm-Uvhlibaio-0.3.106-3.2.i386.rpm[root@localhostServer]#rpm-Uvhcompat-libstdc++-33-3.2.3-61.i386.rpm[root@localhostServer]#rpm-Uvhcompat-gcc-34-3.4.6-4.i386.rpm[root@localhostServer]#rpm-Uvhcompat-gcc-34-c++-3.4.6-4.i386.rpm[root@localhostServer]#rpm-UvhlibXp-1.0.0-8.1.el5.i386.rpm[root@localhostServer]#rpm-Uvhopenmotif-2.3.0-0.3.el5.i386.rpm[root@localhostServer]#rpm-Uvhgcc-4.1.2-14.el5.i386.rpm1.7检查安装oracle的硬件要求(内存、交换区)[root@localhost~]#grepMemTotal/proc/meminfo[root@localhost~]#grepSwapTotal/proc/meminfo若需增加swap空间大小,输入以下命令,要创建swap文件,执行dd命令,新增一个256MB的swap文件:[root@localhost~]#ddif=/dev/zeroof=/tmp/myswapbs=32kcount=8192注意:bs参数的目的在于指定每次读取及输入多少个by
本文标题:LINUX 5版本安装ORACLE10.2G说明手册
链接地址:https://www.777doc.com/doc-5087786 .html