且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

oracle 11g 安装报错解决

更新时间:2022-10-07 22:18:50

1.系统的IP地址和主机名不一至:

[INS-06101] IP address of localhost could not be determined 

图:如下

oracle 11g 安装报错解决

解决方法:是因为你的主机名与IP地址不一至,在/etc/hosts文件对应就行了

vim /etc/hosts

  IP地址   主机名


2.at oracle.install.ivwdb.dirver.DBinstaller.main(DBinstaller.java:132)

图:如下

oracle 11g 安装报错解决

解决方法:在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 11g 安装报错解决

解决方法:

  查看oracle是多少位的系统,一般32位系统装32位oracle软件,64位系统可以装32位和64位的oracle。打开下载oracle的软件包,里面有一个网页,打开那个网页就可以看到。


4.系统环境变量设置有误(看监听(lsnrctl)或者是命令(sqlplus)提示):
   -bash: lsnrctl: command not found

图:如下

oracle 11g 安装报错解决

解决方法:

  查找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

解决方法:

[root@localhost ~]# id oracle

uid=500(oracle) gid=500(oinstall) groups=500(oinstall),501(dba)

[root@localhost ~]# echo 500 > /proc/sys/vm/hugetlb_shm_group 

[root@localhost ~]# cat /proc/sys/vm/hugetlb_shm_group 

500

[root@localhost ~]# 


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’


解决方法:

[oracle@localhost ~]# cp -a $ORACLE_BASE/admin/orac11g/pfile/init.ora.012009233838 $ORACLE_HOME/dbs/initorac11g.ora

[oracle@oracle11g database]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Sat Nov 12 23:22:35 2016

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> startup
ORACLE instance started.

Total System Global Area  167772160 bytes
Fixed Size                   778212 bytes
Variable Size              57679900 bytes
Database Buffers          109051904 bytes
Redo Buffers                 262144 bytes

SQL>










本文转自 z597011036 51CTO博客,原文链接:http://blog.51cto.com/tongcheng/1344112,如需转载请自行联系原作者