Linux安装Oralce 11g问题

1、./runInstaller报错

>>> 忽略未通过的必需先决条件。继续...
准备从以下地址启动 Oracle Universal Installer /tmp/OraInstall2011-02-25_03-29-59AM. 请稍候...-bash-3.2$ 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)

直接用oracle用户登陆,不能用root或者其他用户登陆后切换到oracle。

2、Oracle安装界面乱码

export NLS_LANG=AMERICAN_AMERICA.UTF8
export LC_ALL=C

3、[INS-35172] Target database memory (256MB)exceeds the systems available shared memory ({244}MB).

You are trying to use the MEMORY_TARGET feature. This feature requires the/dev/shm filesystem to be mounted for at Least <size> bytes.The/dev/shm is either notmounted or is mounted With available space lessthan this size.

# df -h /dev/shm

Filesystem            Size  Used Avail Use% Mounted on

tmpfs                 244M     0 636M   0% /dev/shm

这个文件的大小才是真正控制我们 AMM 的大小关键。修改tmpfs 的大小,使其大于MEMORY_TARGET的大小就可以了。

修改文件 /etc/fstab 将tmpfs 修改成以下值:

tmpfs            /dev/shm        tmpfs  defaults,size=300m        0 0

直接修改/etc/fstab,通过重启OS 让参数生效。注意:这个size 的大小需要设置为整数。

posted on 2014-04-25 22:16  guarder  阅读(762)  评论(0编辑  收藏  举报