和许多网友一样,今天遇到了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 "filesoracorezoneinfo"
directory of the uncompressed patch.
3) For a server install we recommend to backup the %ORACLE_HOME%oracorezoneinfo directory .
3) Copy the 2 .dat files and the readme.txt file that were found in step 2
into the %ORACLE_HOME%oracorezoneinfo 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) 重新启动客户端应用程序(如果是客户端安装)
或数据库(如果是服务器安装)。
B) Windows 64 位 x86(AMD64 和 EMT64)
------------------------------------------------ ------
1) 下载适合您版本的 Windows 64 位 x86(AMD64 和 EMT64)(XP/2003) 服务器补丁。
对于 10.2.0.X 客户端或服务器(10.2.0.1 到 10.2.0.3),下载包含 DST V4 文件的 10.2.0.3 补丁
:https://updates.oracle.com/download/5731537 .html
2)解压补丁,找到补丁中的readme.txt、timezone.dat和timezlrg.dat
这3个文件,对于10.2,它们位于
解压补丁的“filesoracorezoneinfo”目录中。
3) 对于服务器安装,我们建议备份 %ORACLE_HOME%oracorezoneinfo 目录。

ACID属性包括原子性、一致性、隔离性和持久性,是数据库设计的基石。1.原子性确保事务要么完全成功,要么完全失败。2.一致性保证数据库在事务前后保持一致状态。3.隔离性确保事务之间互不干扰。4.持久性确保事务提交后数据永久保存。

MySQL既是数据库管理系统(DBMS),也与编程语言紧密相关。1)作为DBMS,MySQL用于存储、组织和检索数据,优化索引可提高查询性能。2)通过SQL与编程语言结合,嵌入在如Python中,使用ORM工具如SQLAlchemy可简化操作。3)性能优化包括索引、查询、缓存、分库分表和事务管理。

MySQL使用SQL命令管理数据。1.基本命令包括SELECT、INSERT、UPDATE和DELETE。2.高级用法涉及JOIN、子查询和聚合函数。3.常见错误有语法、逻辑和性能问题。4.优化技巧包括使用索引、避免SELECT*和使用LIMIT。

MySQL是一种高效的关系型数据库管理系统,适用于存储和管理数据。其优势包括高性能查询、灵活的事务处理和丰富的数据类型。实际应用中,MySQL常用于电商平台、社交网络和内容管理系统,但需注意性能优化、数据安全和扩展性。

SQL和MySQL的关系是标准语言与具体实现的关系。1.SQL是用于管理和操作关系数据库的标准语言,允许进行数据的增、删、改、查。2.MySQL是一个具体的数据库管理系统,使用SQL作为其操作语言,并提供高效的数据存储和管理。

InnoDB使用redologs和undologs确保数据一致性和可靠性。1.redologs记录数据页修改,确保崩溃恢复和事务持久性。2.undologs记录数据原始值,支持事务回滚和MVCC。

EXPLAIN命令的关键指标包括type、key、rows和Extra。1)type反映查询的访问类型,值越高效率越高,如const优于ALL。2)key显示使用的索引,NULL表示无索引。3)rows预估扫描行数,影响查询性能。4)Extra提供额外信息,如Usingfilesort提示需要优化。

Usingtemporary在MySQL查询中表示需要创建临时表,常见于使用DISTINCT、GROUPBY或非索引列的ORDERBY。可以通过优化索引和重写查询避免其出现,提升查询性能。具体来说,Usingtemporary出现在EXPLAIN输出中时,意味着MySQL需要创建临时表来处理查询。这通常发生在以下情况:1)使用DISTINCT或GROUPBY时进行去重或分组;2)ORDERBY包含非索引列时进行排序;3)使用复杂的子查询或联接操作。优化方法包括:1)为ORDERBY和GROUPB


热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

螳螂BT
Mantis是一个易于部署的基于Web的缺陷跟踪工具,用于帮助产品缺陷跟踪。它需要PHP、MySQL和一个Web服务器。请查看我们的演示和托管服务。

适用于 Eclipse 的 SAP NetWeaver 服务器适配器
将Eclipse与SAP NetWeaver应用服务器集成。

VSCode Windows 64位 下载
微软推出的免费、功能强大的一款IDE编辑器

SublimeText3 英文版
推荐:为Win版本,支持代码提示!

ZendStudio 13.5.1 Mac
功能强大的PHP集成开发环境