Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1163092
  • 博文数量: 150
  • 博客积分: 2739
  • 博客等级: 少校
  • 技术积分: 2392
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-07 12:28
文章分类

全部博文(150)

文章存档

2015年(2)

2014年(16)

2013年(10)

2012年(58)

2011年(64)

分类: Mysql/postgreSQL

2011-12-26 12:55:54

      安装Oracle出现的故障以及解决方法

1、  出现找不到libXp.so.6文件

解决:安装libXp-****.i386.rpm文件

2、出现如下图示:

解决:root用户登录执行:xhost +IP

3、如下问题:

解决方法:rpm -ivh compat-libstdc++-33-3.2.3-61.i386.rpm

 

4、  一直处于85%状态的解决方法,一般是在检查配置时出现的问题,没有过关。

5、  编辑/etc/redhat-release文件,并更改redhat-4。切忌莫使用#符合,一定要删除,否则也会出现版本不符等各种原因而安装不上的。

6、  出现如下问题:

Checking Network Configuration requirements ...

Actual Result: Unknown Host Exception has Occurred :localhost: localhost.

Check complete. The overall result of this check is: Not executed <<<<

Recommendation: Oracle supports installations on systems with DHCP-assigned public IP addresses.  However, the primary network interface on the system should be configured with a static IP address in order for the Oracle Software to function properly.  See the Installation Guide for more details on installing the software on systems configured with DHCP.

解决方法:编辑/etc/hosts文件,并加入IP localhost.localdomain  localhost字符,iP自己的ip即可解决问题。

7、出现device not managed by NetworkManager解决方法:

        Service NetworkManager restart

        Ifdown eth0 && ifup eth0

 

Oracle安装

主要参考资料官网:

下载地址:

一、安装Oracle时,首先要将Oracle需要的环境及软件包安装好。

X Window SystemGNOME Desktop EnvironmentEditorsGraphical InternetText-based InternetServer Configuration ToolsDevelopment ToolsAdministration ToolsSystem Tools

   注意:环境设置后将防护墙和selinux都关闭。

二、更改hosts文件,这是为了避免出现network检测不过关设置的

          

127.0.0.1         localhost.localhost             localhost     本地ip的设置

不过 ,我一般是设置成静态IP就行了。

三设置内核参数(kernel Parameters),主要更改/etc/sysctl.conf中的值并加入以下内容:

# Red Hat Enterprise Linux 4.0 and CentOS 4.x

kernel.shmmax = 536870912

kernel.shmmni = 4096

kernel.shmall = 2097152

# semaphores: semmsl, semmns, semopm, semmni

kernel.sem = 250 32000 100 128

fs.file-max = 65536

net.ipv4.ip_local_port_range = 1024 65000

net.core.rmem_default=262144

net.core.rmem_max=262144

net.core.wmem_default=262144

net.core.wmem_max=262144

  使sysctl.conf文件生效,/sbin/sysctl  -p

三、安装Oracle需要的软件包

glibc-2.3.4-2.9make-3.79binutils-2.15.92.0.2-13gcc-3.4.3-22.1libaio-0.3.96glibc-common-2.3.4-2.9setarch-1.6-1pdksh-5.2.14-30openmotif21-2.1.30-11sysstat-5.0.5-1gnome-libs-1.4.1.2.90-44.1libstdc++-3.4.3-22.1libstdc++devel-3.4.3-22.1compat-libstdc++-296-2.96-132.7.2compat-db-4.1.25-9control-center-2.8.0-12xscreensaver-4.18-5.rhel4.2

四、创建Oracle用户、组

               #groupadd oinstall

               #groupadd dba

               #groupadd oper

               #useradd –g oinstall –G dba –s /bin/ksh oracle

               #passwd oracle

五、创建Oracle所需的目录

             #mkdir –pv /u01/oracle/

             #chown –R oracle:oinstall /u01

六、使用root登陆并输入以下命令   

            Xhost +IP

七、使用oracle登陆并在.barsh.profile文件中加入以下:

# Oracle Settings

TMP=/tmp; export TMP

TMPDIR=$TMP; export TMPDIR

ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db10g; export ORACLE_HOME

ORACLE_SID=emrep; export ORACLE_SID

PATH=.:/usr/sbin:#$ORACLE_HOME/bin:$PATH; export PATH

PATH=$PATH:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/opmn/bin; export PATH

PATH=$PATH:$ORACLE_HOME/Apache/Apache/bin; export PATH

PS1="`hostname`$ "

set -o emacs

set filec

export LANG=C

使该文件生效source .profile

七、使用oracle用户输入以下内容:

DISPLAY=IP:0.0 && export DISPLAY

八、解压下载好的文件后进入databases目录中找到runinstaller文件执行一下,就会出现安装界面,下面的内容就比较简单了在此不写了。

      说明一下:下载的64位软件是cpio.gz格式的,解压方法zcat xxxx|cpio -idmv

 

 

 

 

阅读(39178) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~