oracle通訊協定TNS的說明

來源:互聯網
上載者:User

http://forums.oracle.com/forums/thread.jspa?threadID=613450

 

Oracle的通訊協定TNS對不完全對外公開的,只用成為oracle的夥伴並向oracle支付一定的費用才能使用。

 

Jonah H. Harris對oracle的通訊協定進行了深入的研究,致力於解析oracle通訊協定,實現一個自己的oracle驅動。

他在個人網站



http://www.oracle-internals.com
發表了一些文章介紹。

 

作者自己也是通過抓包分析來瞭解TNS協議的。

 

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

 

Oracle's wire-level protocol is proprietary and not publicly documented. The only way to get a hold of the official specification is to become a partner and pay (what I've heard is) about $100K US for access to it. If you want to research the protocol yourself, there are several online sources of information if you can get the Google keywords just right.

If you're looking for starting information, you can find basic protocol information in David Litchfield's Oracle Hacker's Handbook

. If you're looking for a bit more detailed code, you can find dissectors for Oracle's protocol from the Wireshark

project (formerly Ethereal) at:

For TNS (Transparent Network Substrate):
http://anonsvn.wireshark.org/wireshark/trunk/epan/dissectors/packet-tns.c

http://anonsvn.wireshark.org/wireshark/trunk/epan/dissectors/packet-tns.h

For TTI (Two-Task Interface):
http://anonsvn.wireshark.org/wireshark/trunk/epan/dissectors/packet-sqloracle.c

http://anonsvn.wireshark.org/wireshark/trunk/epan/dissectors/packet-sqloracle.h

The Wireshark TNS dissector is fairly complete, but the TTI one is far from it.

FYI, I started researching the Oracle protocol in 2001 and now know enough about it to write my own wire-level driver. While I won't release the code to it, in the next couple months you can visit my soon-to-be-fixed website (http://www.oracle-internals.com/
) for more information on the basic protocol.

Also, if you happen to attend IOUG's COLLABORATE 08, I'm actually presenting on this topic in particular. The session information resides below:

--- 

381: Listening In: Passive Capture and Analysis of Oracle Network Traffic
http://iougew.prod.web.sba.com/displaymod/detailevent.cfm?conference_id=52&event_id=1666

In this presentation we will discuss and demonstrate the methods for passively capturing, analyzing, and reporting the details of Oracle network traffic in real-time for use in end-to-end Oracle tuning and troubleshooting scenarios.

In cases where very short response time requirements must be met, or where sporadic spikes in response time occur, the most reliable way to tune and troubleshoot them is by capturing Oracle's Ethernet traffic, analyzing it, and reporting on various aspects of it. Throughout this session we will demonstrate the passive capture of SQL statements, their frequency, time spent in execution, number of roundtrips, and all relevant response times.

Using the data from these reports can not only assist DBAs in diagnosing network-related issues and in tuning Oracle's network settings, but also ensure that application developers are writing performant, network-friendly database access code.

 



聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.