Oracle Net Services 配置: Error: null Oracle Net Services 配置失败。退出代码是1
发表于:2024-11-30 作者:千家信息网编辑
千家信息网最后更新 2024年11月30日,具体错误描述:[oracle@centos-C ~]$ netca /silent/responseFile /usr/local/soft/oracel/netca.rsp正在对命令行参数进行语法分
千家信息网最后更新 2024年11月30日Oracle Net Services 配置: Error: null Oracle Net Services 配置失败。退出代码是1
具体错误描述:
[oracle@centos-C ~]$ netca /silent/responseFile /usr/local/soft/oracel/netca.rsp
正在对命令行参数进行语法分析:
传递的错误命令行参数:"silent/responsefile"
传递的错误命令行参数:"usr/local/soft/oracel/netca.rsp"
完成对命令行参数进行语法分析。
Oracle Net Services 配置:
Error: null
有关详细信息, 请查看跟踪文件: /home/oracle/ora11g/cfgtoollogs/netca/trace_OraDb11g_home1-1603166下午5620.log
Oracle Net Services 配置失败。退出代码是1
具体日志如下:
[oracle@centos-C ~]$ cat /home/oracle/ora11g/cfgtoollogs/netca/trace_OraDb11g_home1-16031trace_OraDb11g_home1-1603102上午1620.log trace_OraDb11g_home1-1603166下午5214.logtrace_OraDb11g_home1-1603102上午1727.log [oracle@centos-C ~]$ cat /home/oracle/ora11g/cfgtoollogs/netca/trace_OraDb11g_home1-1603166下午5214.log [main] [ 2016-03-16 18:52:15.226 CST ] [NetCALogger.initTrace:203] Oracle Net Configuration Assistant: 1603166下午5214[main] [ 2016-03-16 18:52:15.232 CST ] [NetCALogger.initTrace:204] Oracle Home: /home/oracle/ora11g/product/11.2.0/db_1[main] [ 2016-03-16 18:52:15.233 CST ] [NetCALogger.initTrace:205] Oracle Base: /home/oracle/ora11g[main] [ 2016-03-16 18:52:15.233 CST ] [NetCALogger.initTrace:206] Oracle Home Name: OraDb11g_home1[main] [ 2016-03-16 18:52:15.269 CST ] [InventoryUtil.getOUIInvSession:347] setting OUI READ level to ACCESSLEVEL_READ_LOCKLESS[main] [ 2016-03-16 18:52:15.270 CST ] [HAUtils.:188] oui location /home/oracle/ora11g/oraInventory/ContentsXML[main] [ 2016-03-16 18:52:15.284 CST ] [Version.isPre:274] version to be checked 11.2.0.1.0 major version to check against10[main] [ 2016-03-16 18:52:15.284 CST ] [Version.isPre:285] isPre.java: Returning FALSE[main] [ 2016-03-16 18:52:15.298 CST ] [OCR.loadLibrary:308] Inside constructor of OCR[main] [ 2016-03-16 18:52:15.307 CST ] [OCR.loadLibrary:316] Going to load the ocr library[main] [ 2016-03-16 18:52:15.307 CST ] [sPlatform.isHybrid:66] osName=Linux osArch=amd64 JVM=64 rc=false[main] [ 2016-03-16 18:52:15.320 CST ] [sPlatform.isHybrid:66] osName=Linux osArch=amd64 JVM=64 rc=false[main] [ 2016-03-16 18:52:15.321 CST ] [Library.load:254] Loading library /home/oracle/ora11g/product/11.2.0/db_1/lib/libsrvmocr11.so[main] [ 2016-03-16 18:52:15.367 CST ] [OCR.loadLibrary:318] loaded ocr libraries[main] [ 2016-03-16 18:52:15.368 CST ] [OCR.isCluster:939] Calling OCRNative for isCluster()[main] [ 2016-03-16 18:52:15.452 CST ] [OCR.isCluster:943] OCR Result status = true[main] [ 2016-03-16 18:52:15.453 CST ] [OCR.isCluster:955] Bolean result = false[main] [ 2016-03-16 18:52:15.460 CST ] [CmdlineArgs. :110] Initializing variables array...[main] [ 2016-03-16 18:52:15.461 CST ] [CmdlineArgs. :116] Initializing NetProperties...[main] [ 2016-03-16 18:52:15.475 CST ] [CmdlineArgs.initArgs:133] Initializing command line arguments...[main] [ 2016-03-16 18:52:15.476 CST ] [CmdlineArgs.parseLogParam:290] Parsing /log argument...[main] [ 2016-03-16 18:52:15.478 CST ] [CmdlineArgs.parseLogParam:345] Returning Log File = null[main] [ 2016-03-16 18:52:15.482 CST ] [CmdlineArgs.setOraArgs:236] Setting Oracle arguments...[main] [ 2016-03-16 18:52:15.490 CST ] [CmdlineArgs.setOraArgs:240] Passed Oracle Home = NO_VALUE[main] [ 2016-03-16 18:52:15.491 CST ] [CmdlineArgs.setOraArgs:243] Read Oracle Home = /home/oracle/ora11g/product/11.2.0/db_1[main] [ 2016-03-16 18:52:15.492 CST ] [CmdlineArgs.setOraArgs:246] Read Oracle Home ID = [main] [ 2016-03-16 18:52:15.493 CST ] [CmdlineArgs.setOraArgs:249] Read Oracle Home Name = null[main] [ 2016-03-16 18:52:15.494 CST ] [CmdlineArgs.setOraArgs:257] Setting Oracle Home = /home/oracle/ora11g/product/11.2.0/db_1[main] [ 2016-03-16 18:52:15.498 CST ] [InitialSetup.configureOPS:4504] Cluster mode is OFF[main] [ 2016-03-16 18:52:15.499 CST ] [InitialSetup. :4028] TNS_ADMIN is: null[main] [ 2016-03-16 18:52:15.513 CST ] [OPSUtil.getHomeVersion:446] Inside getHomeVersion...[main] [ 2016-03-16 18:52:15.519 CST ] [OPSUtil.getHomeVersion:447] oracleHome = /home/oracle/ora11g/product/11.2.0/db_1[main] [ 2016-03-16 18:52:15.519 CST ] [OPSUtil.getHomeVersion:451] oracle.sysman.assistants.util.OracleHome Object = /home/oracle/ora11g/product/11.2.0/db_1[main] [ 2016-03-16 18:52:15.520 CST ] [OracleHome.getVersion:877] OracleHome.getVersion called. Current Version: null[main] [ 2016-03-16 18:52:15.526 CST ] [InventoryUtil.getOUIInvSession:347] setting OUI READ level to ACCESSLEVEL_READ_LOCKLESS[main] [ 2016-03-16 18:52:15.530 CST ] [OracleHome.getVersion:896] Homeinfo /home/oracle/ora11g/product/11.2.0/db_1,1[main] [ 2016-03-16 18:52:16.229 CST ] [OracleHome.getVersion:922] OracleHome.server.getVersion Version: 11.2.0.1.0[main] [ 2016-03-16 18:52:16.229 CST ] [OracleHome.getVersion:943] Current Version From Inventory: 11.2.0.1.0[main] [ 2016-03-16 18:52:16.229 CST ] [OracleHome.getVersion:948] using sqlplus: /home/oracle/ora11g/product/11.2.0/db_1/bin/sqlplus[main] [ 2016-03-16 18:52:16.229 CST ] [OPSUtil.getHomeVersion:452] returning oracleHome Version = 11.2.0.1.0[main] [ 2016-03-16 18:52:16.229 CST ] [OracleHome.getVersion:877] OracleHome.getVersion called. Current Version: 11.2.0.1.0[main] [ 2016-03-16 18:52:16.229 CST ] [OracleHome.getVersion:943] Current Version From Inventory: 11.2.0.1.0[main] [ 2016-03-16 18:52:16.230 CST ] [OracleHome.getVersion:948] using sqlplus: /home/oracle/ora11g/product/11.2.0/db_1/bin/sqlplus[main] [ 2016-03-16 18:52:16.230 CST ] [InitialSetup. :4041] Admin location is: /home/oracle/ora11g/product/11.2.0/db_1/network/admin[main] [ 2016-03-16 18:52:16.390 CST ] [ConfigureProfile.setProfileParam:136] Setting NAMES.DIRECTORY_PATH: (TNSNAMES, EZCONNECT)[main] [ 2016-03-16 18:52:16.391 CST ] [ConfigureProfile.setDefaultProfileParams:109] Not setting ADR_BASE: sqlnet.ora already exist!java.lang.NullPointerException at oracle.ewt.lwAWT.BufferedApplet. (Unknown Source) at oracle.net.ca.NetCA. (NetCA.java:420) at oracle.net.ca.NetCA.main(NetCA.java:406)
解决方案分享:
产生问题原因分析:让命令终端有调用界面程序的权限,需要用root用户执行 xhost + 。 一般要调用界面需习惯性xhost+。
1、新建一个页签(shell)
2、输入xhost+,以root用户运行
3、然后再执行netca创建命令
4、如果出现乱码,修改下字符集: export LANG=en_US
5、在输入netca即可。
具体操作步骤 请参考下图:
命令
参数
错误
分析
配置
用户
界面
语法
输入
代码
下图
习惯性
乱码
信息
原因
原因分析
字符
字符集
文件
方案
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
我的世界服务器主城快速构建
服务器大量图片
数据库主键外键查询
塔式服务器对环境的要求
陕西云杉网络技术有限公司
军队春节网络安全
网络安全作业实施方案
电力网络安全课题研究题目
网网络安全手抄报内容
网络安全教育心得体会总结
深圳尚游网络技术
网络安全防护技术证书
软件开发试用期目标
查开房记录+数据库
网络安全检验检测公司
军委国防动员部计算机网络技术
沈阳新华互联网科技学校多少分
网络安全工具御剑
杨浦区推广软件开发哪家好
服务器端口映射为何第二天失效
无锡常规软件开发售后服务
网络安全与诈骗包括
谷歌翻译由于服务器出错
数据库用户组怎么查看
多媒体数据库面向对象
湖口租房软件开发
总部服务器英语怎么说
数据库导出列名为中文
云服务器系统选择
软件开发合同和购买合同差异