ORACLE NETCA无法启动各种情况

1.环境变量问题

环境变量路径设置不对,找不到netca命令,--bash什么balabala提示,设置环境变量到ORACLE_HOME/bin

 

2.无法显示图形界面

比较容易解决,用root用户执行xhost +命令,切到Oracle用户下再次执行

如果依旧不行,查看是不是缺少libXp这个rpm包

此错误的错误提示有java.awt等

java.lang.NullPointerException
        at oracle.ewt.lwAWT.BufferedApplet.<init>(Unknown Source)
        at oracle.net.ca.NetCA.<init>(Unknown Source)
        at oracle.net.ca.NetCA.main(Unknown Source)
Oracle Net Services configuration failed.  The exit code is -1

Exception in thread "main" java.lang.UnsatisfiedLinkError: /ora/app/oracle/db10g/jdk/jre/lib/i386/libawt.so: libXp.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:1586)

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

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

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

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

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

        at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)

        at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)

        at java.awt.Component.<clinit>(Component.java:506)

 

3.权限问题

确定oracle用户和root用户分别什么用,重新把ORACLE_HOME赋权给oracle

错误提示

java.io.FileNotFoundException:/u01/cfgtoollogs/netca/netca_OraDb11g_home1_0809062PM5029.log(Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at oracle.net.ca.NetCA.main(Unknown Source)
Oracle Net Services configuration failed. The exit code is -1

 

4.主机名错误

错误提示:

Oracle Net Services Configuration:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x004f0ab3, pid=19917, tid=3086797008
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_14-b05 mixed mode)
# Problematic frame:
# C  [libc.so.6+0x6fab3]  index+0x63
#
# An error report file with more information is saved as hs_err_pid19917.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
/u01/app/oracle/product/10.2.0/db_1/bin/netca: line 190: 19917 Aborted
$JRE -mx64m $SRVM_PROPERTY_DEFS -Dsun.java2d.font.DisableAlgorithmicStyles=true -classpath

由于默认主机名错误导致,修改配置文件/etc/hosts,修改

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain localhost 你的主机名

 

已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页