Oracle9i2 Enterprise Manager Console 无法连接数据库,提示信息:oracle.net.config.servicealiasexception: 10
2010-09-10 09:49
691 查看
很久没有使用OEM,今天启动了但是连接不上数据库。
cd>oemapp dbastudio
虽然启动了OEM,但是无法连接到数据库,提示错误:oracle.net.config.servicealiasexception: 10
这是由于修改了tnsnames.ora文件,在oracle安装目录下(D:\oracle\network\admin),找到:tnsnames.ora文件。
我拷贝了一个能启动的OEM的:tnsnames.ora文件,逐一对照,发现我的tnsnames.ora文件,在以前配置数据库的时候修改过。
参考了网上的文章(This indicates that there is an error in your tnsnames.ora file. If you open the file in a hex editor, you may see some invalid characters floating around-- deleting those might help. If that doesn't solve the problem, you can either grab a valid tnsnames.ora file from someone you
work with or you can recreate the file with the Net Configuration Assistant.
On Windows machines, I've seen this sort of thing happen with some regularity when people copy tnsnames entries from email into their tnsnames.ora files. Windows likes to use characters that look like spaces but aren't spaces, for example, which confuses the Oracle tnsnames.ora parser.
)
修改为正确的格式后,就能启动OEM
cd>oemapp dbastudio
虽然启动了OEM,但是无法连接到数据库,提示错误:oracle.net.config.servicealiasexception: 10
这是由于修改了tnsnames.ora文件,在oracle安装目录下(D:\oracle\network\admin),找到:tnsnames.ora文件。
我拷贝了一个能启动的OEM的:tnsnames.ora文件,逐一对照,发现我的tnsnames.ora文件,在以前配置数据库的时候修改过。
参考了网上的文章(This indicates that there is an error in your tnsnames.ora file. If you open the file in a hex editor, you may see some invalid characters floating around-- deleting those might help. If that doesn't solve the problem, you can either grab a valid tnsnames.ora file from someone you
work with or you can recreate the file with the Net Configuration Assistant.
On Windows machines, I've seen this sort of thing happen with some regularity when people copy tnsnames entries from email into their tnsnames.ora files. Windows likes to use characters that look like spaces but aren't spaces, for example, which confuses the Oracle tnsnames.ora parser.
)
修改为正确的格式后,就能启动OEM
相关文章推荐
- Oracle Enterprise Manager Console 无法连接数据库,提示信息:oracle.net.config.servicealiasexception: 10
- ASP.NET配置(web.config)无法连接到SQL Server 数据库的解决方法
- ASP.NET配置(web.config)无法连接到SQL Server 数据库的解决方法
- iReport无法连接Oracle10数据库
- ASP.NET配置(web.config)无法连接到SQL Server 数据库的解决方法
- ASP.NET-ASP.NET配置(web.config)无法连接到SQL Server 数据库的解决方法
- 解决ASP.NET连接Oraclei数据库出现"无法加载DLL(oci.dll)"异常
- ASP.NET配置(web.config)无法连接到SQL Server 数据库的解决方法
- ASP.NET-ASP.NET配置(web.config)无法连接到SQL Server 数据库的解决方法
- ASP.NET配置(web.config)无法连接到SQL Server 数据库的解决方法
- 由于内部错误,服务器无法处理该请求。有关该错误的详细信息,请打开服务器上的 IncludeExceptionDetailInFaults (从 ServiceBehaviorAttribute 或从 <serviceDebug> 配置行为)以便将异常信息发送回客户端,或打开对每个 Microsoft .NET Framework SDK 文档的跟踪并检查服务器跟踪日志。
- .NET----ASP.NET配置(web.config)无法连接到SQL Server 数据库的解决方法
- win10 安装Oracle net manager提示乱码 plsql提示ORA-12154: TNS: 无法解析指定的连接标识符
- 关于在英创em9161板上使用ADO.net连接远程数据库提示 “无法找到 PInvoke dll"dbnetlib.dll"”问题解决方法
- ASP.NET配置(web.config)无法连接到SQL Server 数据库的解决方法
- ASP.NET配置(web.config)无法连接到SQL Server 数据库的解决方法
- ADO.NET 连接数据库字符串(Oracle、SqlServer、Access、ODBC)
- idea 数据库插件 连接mysql 提示 com.mysql.jdbc.PacketTooBigException 解决方法
- ADO.NET 连接数据库字符串(Oracle、SqlServer、Access、ODBC)
- 配置BizTalk时提示无法连接到SQLServer上的SSODB数据库