在DataBase中访问信息时出错,数据库是Oracle。我从Weblogic 12访问数据库。
我最后一次遇到与时区相同的错误。我修复了使用以下内容(如Weblogic 11中的参数):
-Duser.timezone = GMT
这次我收到了这个错误:
java.sql.SQLDataException: ORA-01882: timezone region not found ORA-02063: line precediendo a DBLink
这是SQL:
SELECT A.DEPT, A.EMP_NAME, A.EMP_LOC, A.LAST_NAME, A.ADDRESS_1, A.ADDRESS_2, A.ADDRESS_3, A.ADDRESS_4, A.CONTROL_NUM, A.EMP_SSID, A.PEN_DATE, B.EMP_LEVEL_ACCESS, C.CONF_NUM, replace(A.EX_SALARY, ' ', '') as EX_SALARY, replace(A.EX_SAL_CODE, ' ', '') as EX_SAL_CODE, replace(A.BIRTHDATE, ' ', '') as BIRTHDATE FROM EMP_W2_INFO_TBL A, EMP_LEVEL_ACCESS_VW B, FILING_CONF_TBL C WHERE A.EMP_NUM = 'XXXXX' AND A.TAX_YEAR = '2016' AND A.EMP_NUM = B.EMP_ID AND A.TAX_YEAR = C.TAX_YEAR (+);
我验证DBLink没有损坏检查connectiong。