SQL Server小工具:SQL Internals Viewer
SQL Internals Viewer可以用来查看SQL Server数据文件中各个对象实际的存储分布情况,正如它的名字显示的,这是一款内部工具,建议感兴趣的同学用来研究SQL Server的存储机制,千万不要在产品库上使用。
这里引用作者Danny Gould的说法:
SQL Internals Viewer is a tool for looking into the SQL Server storage engine and seeing how data is physically allocated, organised and stored.
All sorts of tasks performed by a DBA or developer can benefit greatly from knowledge of what the storage engine is doing and how it works. This tool has been designed to make database internals more accessible.
目前最新版本0.10beta,需要.net framework2.0,支持MS SQL Server 2005和MS SQL Server 2008 7月份社区预览版。该版本还有很多的限制:
- 不支持LOB (Text/Image) (可能在接下来的0.11中提供支持)
- 不支持UDT数据类型* No support for UDT data types
- 不支持多个数据文件的数据库(可能要在1.0以后的版本才会提供支持了)
也许有一天,这个工具也能像d.c.b.a的AUL(MYDUL)一样,能从数据文件中直接恢复出数据吧:)
点击这里下载SQL Internals Viewer,访问官方网站
Oracle小工具:sysresv
从oracle8.1.5起,oracle在unix/linux平台提供了一个叫做sysresv的小工具来查看oracle占用的共享内存段和信号量等系统资源的一些关键信息。
sysresv: error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory
出现该错误是由于没有设置LD_LIBRARY_PATH环境变量,导致无法找到需要的库文件
[oracle@localhost ~]$ export LD_LIBRARY_PATH
[oracle@localhost ~]$ sysresv
IPC Resources for ORACLE_SID "ning" :
Shared Memory:
ID KEY
458763 0x78b6869c
Semaphores:
ID KEY
98304 0x5ed8a0f0
Oracle Instance alive for sid "ning"
sqlplus小窍门:通过http执行远程脚本
我们知道,sqlplus中使用@或者@@可以直接脚本中的sql语句,但一般情况下执行本地脚本。实际上sqlplus也可以通过http执行远程服务器上的脚本。
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Sep 16 00:06:37 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
@>conn ning/ning@10g
Connected.
NING@10g>@http://10.0.12.102/test.sql
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
NING@10g>conn ning/ning@11g
Connected.
NING@11g>@http://10.0.12.102/test.sql
BANNER
---------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for Linux: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
有了这个特性,我们就可以将一些常用的脚本集中存放在一台server上,并且开启http服务,就可以在网络中的任何机器上调用这些脚本来方便我们的工作了。
Remote Diagnostic Agent(RDA)4.9发布
RDA(Remote Diagnostic Agenct)是Oracle发布的一款性能诊断工具,可以由工程师本地执行获得系统信息,然后发给远程的Oracle技术支持,以供技术支持判断系统问题。RDA主要是由Perl编写的一系列脚本组成。
9.10最新发布的4.9版本,支持以下平台(需要Perl 5.005以上):
- IBM AIX
- Intel Linux (Oracle Enterprise, RedHat, and SuSE)
- HP-UX (10.* and 11.*)
- HP Tru64
- Linux PPC
- Mac OS X/Darwin
- Sequent Dynix/Ptx
- Sun Solaris (2.6 - 2.10)
- Windows XP Professional
- Windows 2000 Workstation and Server
- Windows 2003 Server
- HP OpenVMS Alpha 7.3-2 and above
- HP OpenVMS Itanium
- ZLinux
RDA可用于Oracle诸多产品的信息收集,不仅仅是database:
- Oracle RDBMS Server (Standard and Enterprise Editions)
- Oracle RAC Cluster (Single/Multiple Nodes, Automatic Storage Management, Oracle Cluster File System, Data Guard)
- Oracle Application Server (iAS 1.0.2.x/9.0.x/10.1.2.x/10.1.3.x,10.1.4.x, HTTP Server,WebCache,J2EE/OC4J)
- Oracle Management Server and Intelligent Agent (Grid Server, Agent Server, DB Control)
- OLAP Products (Express Server, Financial Analyzer, and Demand Planning Server)
- Oracle Developer (Forms and Reports)
- Oracle JDBC/PRO *C/ODBC and other development client related information
- Oracle Collaboration Suites (Email Server,Calendar,Discussions,Content Services,Workspaces,WebClient, and Wireless)
- Oracle Identity Management (Internet Directory and COREid)
- Oracle Networking products
- Oracle Ebusiness Suite 11i and 12
- Oracle Portal Software 7.0, 7.2, and 7.3
- Oracle Retail (Retek)
点击(需要metalink帐号)下载包含了OCM(Oracle Configuration Manager)的Linux x86版本,Windows版本
其他平台的版本,以及安装说明等,请参考Metalink Note:314422.1