日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

oracle未找到时区,解决ORA-01882:未找到时区区域%s

發布時間:2024/7/19 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 oracle未找到时区,解决ORA-01882:未找到时区区域%s 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

和許多網友一樣,今天遇到了ora-01882問題,查了matelink解決了! 環境:Oracle server端版本:SQLgt; select * from v$version

和許多網友一樣,今天遇到了ora-01882問題,查了matelink解決了!

環境:

Oracle server端版本:

SQL> select * from v$version;

BANNER

----------------------------------------------------------------

Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi

PL/SQL Release 10.2.0.5.0 - Production

CORE 10.2.0.5.0 Production

TNS for Linux: Version 10.2.0.5.0 - Production

NLSRTL Version 10.2.0.5.0 - Production

Oracle client端版本:

OS:windows XP 32bit

DB client:Oracle 10.2.0.1

現象:

--客戶端查詢報錯:

SQL> select * from dba_scheduler_jobs;

ERROR:

ORA-01882: 未找到時區區域 %s

未選定行

SQL> select * from v$timezone_file;

FILENAME VERSION

------------ ----------

timezlrg.dat 4

--登錄server端查詢正常

SQL> Select job_name,LAST_START_DATE From Dba_Scheduler_Jobs Where job_name='GATHER_STATS_JOB';

JOB_NAME LAST_START_DATE

-------------------- ----------------------------------------

GATHER_STATS_JOB 15-1月 -13 10.00.01.937819 下午 +08:00

分析:

通過查找資料,參考這個網友的分析的文章

--根據我的具體問題,重點參考文章中藍色部分,,如下:

Please make sure you have the error using the sqlplus found in the oracle_home on the server (!!! this is important !!!). IF and ONLY IF that is the case run the fix script found below directly on the server.

If you do NOT have a ORA-01882 when using the sqlplus found in the oracle_home on the server but you DO have it when connecting from a remote client then it means the remote client has not been updated to V3 or higher. In that case running the script will NOT solve the issue, you then need to update the client's DST version.

For windows clients see Note 417893.1 How To Apply The V4 DST Patches To Windows Clients or Servers

--問題原因應該是oracle客戶端版本太舊,存在bug所致。

--通過matelink找到Note 417893.1,使用紅色部分的解決方案

How To Apply The V4 DST Patches To Windows Clients or Servers [ID 417893.1]

If you need to patch windows clients or servers then can download the patch for

Windows for each version you have and simply copy the 3 needed files.

Note that there are different patches for 32bit / 64 bit x86 and 64 bit Itanium

To see on what platform you are you can use

select platform_id, platform_name from v$database;

-> Windows 32 bit is platform 7 (Microsoft Windows IA (32-bit))

-> Windows x86 64 bit is platform 233 (Microsoft Windows Server 2003 (64-bit AMD64 and Intel EM64T))

-> Windows Itanium is platform 206 (Microsoft Windows XP (64-bit Itanium)) or

208 (Microsoft Windows Server 2003 (64-bit Itanium))

or you can start "winver"

a x86 64 bit AMD64/EMT64 will mention "x64 edition"

to see if it's a Itanium system:

Click Start, right-click My Computer, and then click Properties.

In the System Properties window, click the General tab.

Note the first line under Computer:

Itanium or Itanium 2 appears on this line if it's a Itanium system.

Above information is provided as-is. Please contact Microsoft if you have

any questions regarding this

A) Windows 32 bit ( NT4/2000/XP/Vista)

--------------------------------------

1) Download the Windows 32 bit server patch for your version.

For a 10.2.0.X client or server ( 10.2.0.1 to 10.2.0.3) download the 10.2.0.3 patch

containing the DST V4 files:https://updates.oracle.com/download/5731535.html

2) Unzip the patch, and locate the 3 files readme.txt, timezone.dat and timezlrg.dat

in the patch, for 9.2 and 10.2 they are in the "files\oracore\zoneinfo"

directory of the uncompressed patch.

3) For a server install we recommend to backup the %ORACLE_HOME%\oracore\zoneinfo directory .

3) Copy the 2 .dat files and the readme.txt file that were found in step 2

into the %ORACLE_HOME%\oracore\zoneinfo directory on your clients or server.

Please make sure you copy the correct version.

The files from the 9.2 patch for a 9.2.0.X client or server.

The files from the 10.1 patch for a 10.1.0.X client or server.

The files from the 10.2 patch for a 10.2.0.x client or server.

4) Restart the client applications (in case of client install)

or database (in case of a server install).

B) Windows 64 bit x86 (AMD64 and EMT64)

---------------------------------------

1) Download the Windows 64 bit x86 (AMD64 and EMT64) (XP/2003) server patch for your version.

For a 10.2.0.X client or server ( 10.2.0.1 to 10.2.0.3) download the 10.2.0.3 patch

containing the DST V4 files: https://updates.oracle.com/download/5731537.html

2) Unzip the patch, and locate the 3 files readme.txt, timezone.dat and timezlrg.dat

in the patch, for 10.2 they are in the "files\oracore\zoneinfo" directory of

the uncompressed patch.

3) For a server install we recommend to backup the %ORACLE_HOME%\oracore\zoneinfo directory . 本條技術文章來源于互聯網,如果無意侵犯您的權益請點擊此處反饋版權投訴 本文系統來源:php中文網

總結

以上是生活随笔為你收集整理的oracle未找到时区,解决ORA-01882:未找到时区区域%s的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。