执行netca报错 core-dump

(1)首先要确保修改后oracle下的.bash_profile已经生效,若还未生效可能会出现错误提示:

netca:command not found

此时应该回到oracle目录下执行 .bash_profile文件。执行方式 . .bash_profile 或者 source .bash_profile

(2)配置好bash_profile文件后出现如下错误:

/u01/oracle/bin/netca: line 178: 11819 Aborted $JRE -mx64M $JRE_OPTIONS -classpath $CLASSPATH oracle.net.ca.NetCA $*

经检查是由于默认的主机名导致的,修改2处

[oracle@localhost ~]$ cat /etc/sysconfig/network

NETWORKING=yes

HOSTNAME=DB11g

GATEWAY=192.168.1.1

[oracle@localhost~]$ cat /etc/hosts

# Do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1               localhost
192.168.1.1 DB11g

再执行 hostname DB11g

让oracle用户退出重新登录就可以正常启动netca了。

你可能感兴趣的:(command,NetWork)