Colleagues encountered a strange problem: the same SQL statement, written in C #, the oracle database access, will perform in his machine error, while other machines do not.
This statement got his native PL / SQL developer to perform, and no problem.
This problem occurs, first check whether the SQL statement later with a semicolon ";." With a semicolon performed plsql developer there are no problems, but in C # is not allowed.
But no SQL colleagues semicolon. But there are Chinese field. According to the error message, the problem should be encoded Chinese.
Reference online articles Tips
Control Panel - System and Security --- System - Advanced System Settings - Advanced - Environment Variables - System variables
Variable Name: NLS_LANG
Variable value: SIMPLIFIED CHINESE_CHINA.ZHS16GBK
After adding this variable is completed, the system restart it ok, after the restart, the error message disappeared.
Control Panel - System and Security --- System - Advanced System Settings - Advanced - Environment Variables - System variables
Variable Name: NLS_LANG
Variable value: SIMPLIFIED CHINESE_CHINA.ZHS16GBK
add this variable is completed, the system restart it ok, after the restart, the error message disappeared.
Sure enough bug fixes.
Here correction, encoding oracle server. If the client is to modify the oracle, the need to modify the registry.
---------------------
Author: straight left
Source: CSDN
Original: https: //blog.csdn.net/leftfist/article/details/77510852
copyright notice : This article is a blogger original article, reproduced, please attach Bowen link!