Oracle 10G Install on SuSE10_第1页
Oracle 10G Install on SuSE10_第2页
Oracle 10G Install on SuSE10_第3页
Oracle 10G Install on SuSE10_第4页
Oracle 10G Install on SuSE10_第5页
已阅读5页,还剩10页未读 继续免费阅读

下载本文档

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

文档简介

Oracle 10G Install on SuSE10环境anticell-suse: # uname -aLinux anticell-suse 6-0.12-bigsmp #1 SMP Thu May 17 14:00:09 UTC 2007 i686 i686 i386 GNU/Linuxanticell-suse: # free -m total used free shared buffers cachedMem: 4048 1334 2714 056 1109-/+ buffers/cache: 167 3880Swap: 2055 0 2055* Shared 为0,后面会碰到问题。花了2个小时查这个问题。* swap 为2055,太小,OS检查无法通过,需要增加Oracle安装过程1、确认各种软件是否已安装C/C+ ToolSuSE 默认安装的gcc libaio2、创建DBA和OINSTALL用户组:groupadd g 202 dbagroupadd g 201 oinstall3创建oracle用户useradd -d /home/oracle g oinstall -G dba -m -p oracle -u 1001 -s /bin/bash oracle修改oracle 用户的密码passwd oracle修改安装软件以及数据库目录权限:新建/opt/oracle目录chown R oracle:dba /opt/oracle*其中默认NLS_LANG=AMERICAN,如果在中文OS下安装界面会产生乱码。建议在英文环境下安装。如果安装界面是乱码的话,到时可先export LC_CTYPE=en_US.UTF-8,再安装即可。4、设置oracle环境变量a、vi .profile最后加入以下export ORACLE_BASE=/opt/oracleexport ORACLE_HOME=$ORACLE_BASE/products/10.2.0/db_1export ORACLE_SID=test01export PATH=$PATH:$HOME/bin:$ORACLE_HOME/binexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/libb、编辑/etc/sysctl.conf文件:(修改核心参数,如果没有这个文件,自己vi一个)oraclelinux: more /etc/sysctl.conf# Disable response to broadcasts.# You dont want yourself becoming a Smurf .ipv4.icmp_echo_ignore_broadcasts = 1# enable route verification on all interfacesnet.ipv4.conf.all.rp_filter = 1# enable ipV6 forwarding#net.ipv6.conf.all.forwarding = 1#net.core.rmem_default = 262144net.core.rmem_max = 262144net.core.wmem_default = 262144net.core.wmem_max = 262144kernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000最大共享内存段尺寸(字节):shmmax = xxxxx*1024*2(为内存的2倍,切换到字节。要是超过这个值,在运行dbca时会出现Ora -27123:Unable to attach to shared memeroy segment)-后来看到网上说官方文档建议是内存的1/2,Shmmni 最小共享内存 4096KB.Shmall 所有内存大小,但是我照内存的2倍也能成功安装oracle。#最小共享内存段尺寸(字节)Shmmni4个参数依次为SEMMSL(每个用户拥有信号量最大数);SEMMNS(系统信号量最大数);SEMOPM(每次semopm系统调用操作数);SEMMNI(系统辛苦量集数最大数).注解:可以用sysctl p来确认参数文件/etc/sysctl.conf中的内容,使用#/etc/init.d/boot.sysctl start命令使参数文件中设置的参数生效,在这里要注意的一点是在系统重新启动之后不能自动读取刚才创建的文件。 需要调整一下:#chkconfig boot.sysctl onc、编辑/etc/security/limits.conf文件, 设置oracle对文件的要求linux: # vi /etc/security/limits.conf# /etc/security/limits.conf#Each line describes a limit for a user in the form:# #Where:# can be:# - an user name# - a group name, with group syntax# - the wildcard *, for default entry# - the wildcard %, can be also used with %group syntax,# for maxlogin limit# can have the two values:# - soft for enforcing the soft limits# - hard for enforcing hard limits# can be one of the following:# - core - limits the core file size (KB)# - data - max data size (KB)# - fsize - maximum filesize (KB)# - memlock - max locked-in-memory address space (KB)# - nofile - max number of open files# - rss - max resident set size (KB)# - stack - max stack size (KB)# - cpu - max CPU time (MIN)# - nproc - max number of processes# - as - address space limit# - maxlogins - max number of logins for this user# - priority - the priority to run user process with# - locks - max number of file locks the user can hold# #* soft core 0#* hard rss 10000#student hard nproc 20#faculty soft nproc 20#faculty hard nproc 50#ftp hard nproc 0#student - maxlogins 4# End of file#oracle soft nproc 2047#oracle hard nproc 16384#oracle soft nofile 1024#oracle hard nofile 65536#oracle hard nofile 65536 #oracle soft nofile 65536oracle hard nproc 16384oracle soft nproc 16384d、修改/etc/profile文件ulimit n 1024005、启动oracle的xwindows,需要将root注销,用oracle 用户登录启动xwindows:startx,不然无法启动oracle的xwindows,会提示说已经有用户启动xwindows。错误提示如下Fatal server error Server is already active for display 0 When you get an error like Fatal server error:Server is already active for display 0If this server is no longer running, remove /tmp/.X0-lock and start again.如果你不注销root可以通过尝试方式This is display number(0, default) and you cant run two display in same system with identical display number. If you want to check if any xserver is really running, invoke ps aux | grep cat /tmp/.X0-lock and this will yeild an output164:foo 7977 0.0 0.1 3928 760 pts/1 S+ 23:21 0:00 grep -i -colour -n 14847 foo is users name, the person running that startx session.To run your session, you have two option1) become superuser and kill the the corresponding PID2) or, in a better way, start a different X-session by invoking a command likestartx - :1to start a server with display 1(I will prefer this option).补充下:我是通过vnc安装的,如果是telnet过去的话,远程装的话,还需要xhost + 本机IP6、用oracle用户减压软件包unzip /tmp/oracle/10201_database_linux32.zip7、运行./runInstaller ignoresysprereqs开 始安装Oracle, ignoresysprereqs忽略对操作系统的认证,Oracle10g默认不能安装在SUSE Linux10上。当然也可以将安装文件拷贝到硬盘,修改database/install/oraparam.ini文件,将其中添加SuSE-10, 这样可以不使用ignoresysprereqs参数。但是这两种方法都只是在第一次OS认证时通过检测,在第二次时还是无法通过,第二次时需要手动选 择这些没有通过的项目,就会变成“自己检测“而继续安装。8、先选择安装oracle,不建db。默认,点击“下一步“如果验证结果有错误,需要修正后再重新验证。待验证通过后再继续。如果有内存太小等警告可以忽略继续。然后点击”下一步”。这里报警swap 太小,所以按照Swap =2 phisical memory扩展swap 从扩展到8096M,目前是2055Mdd if=/dev/zero of=/tmp/swapbs=1k count=6041000 mkswap /tmp/swapswapon /tmp/swap若要想使开机时自启用,则需修改文件/etc/fstab中的swap行: /tmp/swap swap swap defaults 0 0此时关掉安装界面重新开启后会报如下错误Oui-10030,因为我们之前装过一次,已经在/opt/oracle下面产生文件夹products 和oraInventory。先删除之前产生的文件夹 /opt/oracle/products和/opt/oracle/oraInventory.cd /opt/oracle/rm rf * -此命令要小心下,会删除/opt/oracle/下面所有的文件,如果还有有用的文件时,需要制定文件夹删除,rm rf products在安装的最后会要求以root用户执行两个脚本,如下图所示:打开一个终端用root用户执行如下命令(脚本文件的目录要和图中所示一致):sh /opt/oracle/oraInventory/orainstRoot.shsh /opt/oracle/10.2.0/root.sh然后点击”确定”结束Oracle software的安装。Oui-18001 此为oracle 10g 安装程序的bug创建db过程1、cd /opt/oracle/10.2.0/bin2、运行./dbca等待一会会出现界面,如下step-1欢迎界面点击“下一步”step-2选择创建数据库,单击“下一步”step-3选择要创建数据库的类型,单击“下一步”,这里选择的是”一般用途”。step-4输入创建数据的SID和Global SID( 前面设置的ORACLE_SID环境变量是test01,这里输入test01step-5默认,下一步。step-6设置帐户密码,单击”下一步”step-7根据您的储存情况选择不同的存储机制,单击“下一步”, 这里选择”文件系统”,选择不同的机制后面的界面会有所不同。选择时候要创建“示例方案”,单击”下一步”step-11这里可以调整SGA,PGA,字符集等参数的值,默认或设置好后单击“下一步”。在这里一个比较令人头疼的问题。图形化创建实例总是报告: ORA-27125:unable to create shared memory segment. 检查核心参数,没有发现问题。后来在网上得知是Linux 2.6内核有个特性:Huge TLB支持。该特性默认条件下是激活的。相关解释:By default only root has permission to allocate shared memory with this option (SHM_HUGETLB) and Oracle 10g defaults using it, so Oracle fails to allocate the SGA.This capability is supposed to be able to controlled with the setcaps program (CAP_IPC_LOCK), but I couldnt get it to work properly. The solution is either to set DISABLE_HUGETLBFS=1 before you start Oracle or to recompile the kernel without CONFIG_HUGETLB_PA

温馨提示

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

评论

0/150

提交评论