wind-cold 发表于 2018-9-13 09:40:43

oracle 11g 安装报错解决

  1.系统的IP地址和主机名不一至:
   IP address of localhost could not be determined
  图:如下

  解决方法:是因为你的主机名与IP地址不一至,在/etc/hosts文件对应就行了
  vim /etc/hosts
  IP地址   主机名
  2.at oracle.install.ivwdb.dirver.DBinstaller.main(DBinstaller.java:132)
  图:如下

  解决方法:在root用户终端下执行xhost +就行了
  3.系统版本与数据库的不一至.
  Error in invoking target 'client_sharedlib' of makefile '/oracle/u01/app/oracle/product/10.2.0/db_1/network/lib/ins_net_client.mk'
  图:如下

  解决方法:
  查看oracle是多少位的系统,一般32位系统装32位oracle软件,64位系统可以装32位和64位的oracle。打开下载oracle的软件包,里面有一个网页,打开那个网页就可以看到。
  4.系统环境变量设置有误(看监听(lsnrctl)或者是命令(sqlplus)提示):
  -bash: lsnrctl: command not found
  图:如下

  解决方法:
  查找oracle的命令安装目录,我的是(/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin)添加到环境变量中。
  vim ~/.bash_profile   --是oracle用户根目录的文件,修改这一行
  export PATH=$PATH:/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin
  source~/.bash_profile      --配置文件生效
  5.创建实例时出错错误
  ORA-27125:unable to create shared memory segment
  解决方法:

  #>  uid=500(oracle) gid=500(oinstall) groups=500(oinstall),501(dba)
  # echo 500 > /proc/sys/vm/hugetlb_shm_group
  # cat /proc/sys/vm/hugetlb_shm_group
  500
  #
  6.数据库启动没有pfile文件(11g数据库)
  SQL> connect / as sysdba
  已连接。
  SQL> startup
  ora-01078failure in processing system parameters
  LRM-00109:could not open parameter file ’
  /u01/oracle/product/11.2.0.1/db_1/dbs/initorac11g.ora’
  解决方法:
  # cp -a $ORACLE_BASE/admin/orac11g/pfile/init.ora.012009233838 $ORACLE_HOME/dbs/initorac11g.ora
  $ sqlplus / as sysdba

  SQL*Plus:>  Copyright (c) 1982, 2009, Oracle.All rights reserved.
  Connected to:

  Oracle Database 11g Enterprise Edition>  With the Partitioning, OLAP, Data Mining and Real Application Testing options
  SQL> startup
  ORACLE instance started.
  Total System Global Area167772160 bytes

  Fixed>
  Variable>  Database Buffers          109051904 bytes
  Redo Buffers               262144 bytes
  SQL>

页: [1]
查看完整版本: oracle 11g 安装报错解决