oracle连接报错12514,oracle连接问题,客户端连接正常,程序连接报错 ORA-12514

本机安装了个oracle,监听已经修改过,客户端连接正常,但是程序启动连接报错,报错如下

Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'operaLogMapper' defined in file [D:\workspace_idea\ww\yx-ww-service\target\classes\com\ff\mapper\OperaLogMapper.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [spring-mybatis.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Constructor threw exception; nested exception is com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Listener refused the connection with the following error:

ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
ORA-12514Oracle数据库的一个常见错误,它表示无法建立与数据库的连接。这个错误通常是由于以下原因之一引起的: 1. 监听程序未启动或未正确配置:监听程序负责处理来自客户端连接请求。如果监听程序未启动或未正确配置,就无法建立与数据库的连接。可以使用lsnrctl命令检查监听程序的状态和配置。 2. 数据库实例未启动:如果数据库实例未启动,客户端无法连接到数据库。可以使用sqlplus命令行工具或者Oracle Enterprise Manager (OEM) 检查数据库实例的状态并启动它。 3. 配置文件中的连接字符串错误:在连接到数据库时,客户端使用一个连接字符串来指定数据库实例的位置。如果这个连接字符串不正确,就会导致ORA-12514错误。请确保连接字符串中包含正确的主机名、端口和服务名等信息。 4. 防火墙或网络问题:防火墙、网络配置或其他网络问题可能会阻止客户端与数据库之间的通信。请确保网络设置正确,并检查防火墙配置以确保允许数据库端口的通信。 解决ORA-12514错误的方法包括: 1. 检查监听程序状态和配置,确保监听程序已启动并正确配置。 2. 检查数据库实例状态,并确保它已启动。 3. 检查连接字符串是否正确,并根据需要进行修改。 4. 检查网络设置和防火墙配置,确保允许与数据库的通信。 如果以上方法都不能解决问题,建议参考Oracle官方文档或联系Oracle技术支持获取更多帮助。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值