Error 6 initializing SQL*Plus原因

本文讨论了在安装了低版本数据库服务端后,误安装高版本即时客户端(InstantClient)并执行ldconfig后,出现的ORACLE_HOME配置错误及sqlplus启动时加载的动态库版本不对的问题。具体表现为使用10.2.0.1.0版本的sqlplus加载了11.2版本的libsqlplus.so的情况。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.ORACLE_HOME配置错误

2.sqlplus启动时加载的动态库版本不对,例如10.2.0.1.0版本的sqlplus加载了11.2版本的libsqlplus.so。

这种情形可能出现在安装了低版本的数据库服务端,之后又安装了高版本的即时客户端(InstantClient),又执行了ldconfig。

2025-06-06 21:18:24 - Initializing Spring DispatcherServlet 'dispatcherServlet' 2025-06-06 21:18:24 - Initializing Servlet 'dispatcherServlet' 2025-06-06 21:18:24 - Detected StandardServletMultipartResolver 2025-06-06 21:18:24 - Detected AcceptHeaderLocaleResolver 2025-06-06 21:18:24 - Detected FixedThemeResolver 2025-06-06 21:18:24 - Detected org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator@47a99e2e 2025-06-06 21:18:24 - Detected org.springframework.web.servlet.support.SessionFlashMapManager@4f67f6b3 2025-06-06 21:18:24 - enableLoggingRequestDetails='false': request parameters and headers will be masked to prevent unsafe logging of potentially sensitive data 2025-06-06 21:18:24 - Completed initialization in 1 ms 2025-06-06 21:18:24 - GET "/product/list", parameters={} 2025-06-06 21:18:24 - Mapped to com.ecommerce.controller.ProductController#productList(Model) 2025-06-06 21:18:24 - {dataSource-1} inited 2025-06-06 21:18:24 - ==> Preparing: SELECT id, name, description, price, stock, category, image_url, create_time, update_time FROM goods 2025-06-06 21:18:24 - ==> Parameters: 2025-06-06 21:18:24 - Using @ExceptionHandler com.ecommerce.exception.GlobalExceptionHandler#handleRuntimeException(RuntimeException, Model) 2025-06-06 21:18:24 - Resolved [org.springframework.jdbc.BadSqlGrammarException: <EOL><EOL>### Error querying database. Cause: java.sql.SQLSyntaxErrorException: Unknown column 'update_time' in 'field list'<EOL><EOL>### The error may exist in file [E:\webapp - 副本\webapp - 副本\target\classes\mapper\ProductMapper.xml]<EOL><EOL>### The error may involve defaultParameterMap<EOL><EOL>### The error occurred while setting parameters<EOL><EOL>### SQL: SELECT id, name, description, price, stock, category, image_url, create_time, update_time FROM goods<EOL><EOL>### Cause: java.sql.SQLSyntaxErrorException: Unknown column 'update_time' in 'field list'<EOL>; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Unknown column 'update_time' in 'field list'] to ModelAndView [view="error"; model={error=操作错误: ### Error querying database. Cause: java.sql.SQLSyntaxErrorException: Unknown column 'update_time' in 'field list' ### The error may exist in file [E:\webapp - 副本\webapp - 副本\target\classes\mapper\ProductMapper.xml] ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: SELECT id, name, description, price, stock, category, image_url, create_time, update_time FROM goods ### Cause: java.sql.SQLSyntaxErrorException: Unknown column 'update_time' in 'field list' ; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Unknown column 'update_time' in 'field list'}] 2025-06-06 21:18:24 - Using resolved error view: ModelAndView [view="error"; model={error=操作错误: ### Error querying database. Cause: java.sql.SQLSyntaxErrorException: Unknown column 'update_time' in 'field list' ### The error may exist in file [E:\webapp - 副本\webapp - 副本\target\classes\mapper\ProductMapper.xml] ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: SELECT id, name, description, price, stock, category, image_url, create_time, update_time FROM goods ### Cause: java.sql.SQLSyntaxErrorException: Unknown column 'update_time' in 'field list' ; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Unknown column 'update_time' in 'field list'}] 2025-06-06 21:18:25 - Completed 200 OK这是为什么
最新发布
06-07
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值