Linux下安装Oracle 11g详细过程(8)

8.14,点击Finish按钮,如下图所示:

Linux下安装Oracle 11g详细过程

点击OK按钮,有报错说/etc/oratab读取错误,报错如下图所示

Linux下安装Oracle 11g详细过程

Linux下安装Oracle 11g详细过程

所以去建立下这个目录

[root@powerlong4 rpms]# mkdir /etc/oratab

[root@powerlong4 rpms]#

[root@powerlong4 rpms]# chown -R Oracle.oinstall /etc/oratab

[root@powerlong4 rpms]#

8.15,之后点击OK按钮,开始创建数据库,如下图所示:

Linux下安装Oracle 11g详细过程

等待35分钟后,数据库创建完毕,之后点击,如下所示:

Linux下安装Oracle 11g详细过程

9,简单验

[oracle@powerlong4 ~]$ sqlplus "/ as sysdba"


SQL*Plus: Release 11.2.0.1.0 Production on Sat Jan 24 14:51:10 2015


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> create table z_test(id number,name varchar(20));


Table created.


SQL> insert into z_test select 1,'a' from dual;


1 row created.


SQL> select * from z_test;


        ID NAME

---------- ----------------------------------------

1 a


SQL> commit;


Commit complete.


SQL> exit

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

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

[oracle@powerlong4 ~]$

10,报错信息记录

(1)报错

>>> Ignoring required pre-requisite failures. Continuing...

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-01-21_06-07-35PM. Please wait ...[oracle@powerlong4 database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2015-01-21_06-07-35PM/jdk/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)

at java.lang.Runtime.load0(Runtime.java:769)

at java.lang.System.load(System.java:968)

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)

at java.lang.Runtime.loadLibrary0(Runtime.java:822)

at java.lang.System.loadLibrary(System.java:993)

at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)

at java.security.AccessController.doPrivileged(Native Method)

at java.awt.Toolkit.loadLibraries(Toolkit.java:1509)

at java.awt.Toolkit.<clinit>(Toolkit.java:1530)

at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)

at com.jgoodies.looks.LookUtils.<clinit>(Unknown Source)

at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:122)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:242)

at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783)

at javax.swing.UIManager.setLookAndFeel(UIManager.java:480)

at oracle.install.commons.util.Application.startup(Application.java:758)

at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)

at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)

at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)

at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114)

at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132)

^C


(1)  需要安装 yum install libXext* -y 

(2)  chown -R oracle:oinstall /usr/*

yum install libXext.i686 -y

在64位的CentOS安装64位的oracle的时候,有时候会出现“libXext.so.6: cannot open shared object file:”的错误。

这个原因主要是oracle在安装的时候需要安装一些32位的lib,也就是类似于windows下的dll

出现这个问题,可以采用如下的解决办法:

#yum install libXext.i686  即可。


(2)报错

[oracle@powerlong4 database]$ ./runInstaller 

Starting Oracle Universal Installer...


Checking Temp space: must be greater than 80 MB.  Actual 38250 MB    Passed

Checking swap space: must be greater than 150 MB.  Actual 2047 MB    Passed

Checking monitor: must be configured to display at least 256 colors

>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set.    Failed <<<<


Some requirement checks failed. You must fulfill these requirements before


continuing with the installation,


Continue? (y/n) [n] y

>>> Ignoring required pre-requisite failures. Continuing...

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-01-21_07-15-20PM. Please wait ...[oracle@powerlong4 database]$ Exception in thread "main" java.lang.NoClassDefFoundError

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:164)

at java.awt.Toolkit$2.run(Toolkit.java:821)

at java.security.AccessController.doPrivileged(Native Method)

at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)

at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)

at com.jgoodies.looks.LookUtils.<clinit>(Unknown Source)

at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:122)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:242)

at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783)

at javax.swing.UIManager.setLookAndFeel(UIManager.java:480)

at oracle.install.commons.util.Application.startup(Application.java:758)

at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)

at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)

at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)

at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114)

at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132)

^C

[oracle@powerlong4 database]$

需要在Linux上安装图形界面服务端程序X Window

yum groupinstall "X Window System" #安装X Window

[root@powerlong4 database]# yum groupinstall "X Window System" "Desktop Platform" Desktop

yum install vnc

[root@powerlong4 database]# export DISPLAY=192.168.121.217:0.0

[root@powerlong4 database]# xhost +

access control disabled, clients can connect from any host

[root@powerlong4 database]#

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/e387d87e65755fe52964e9ec861ff46d.html