16.7.5.3 Two-Task Common (TTC)パケットの例
TTCは、カーソルのオープン、行の選択、行の更新など、データベース・サーバーに送られる要求を処理します。
データベース・サーバーは、すべての要求に応答します。ログオンを要求すると、その要求を完了したデータベース・サーバーから応答が返されます。
-ou
オプションを使用した場合のTTCサマリー情報は、他の表示とは異なり、行ごとに1つのパケットではなく2つのパケットが表示されます。これは、TTCで処理された要求と応答のペアをミラー化するためです。
出力は次の書式で表示されます。
description
TTC_message
cursor_number
SQL_statement
bytes_sent
bytes_received
例16-18は、接続のネゴシエーション時に接続データとともに送信されたすべての詳細情報を示しています。
例16-18 trcasst -ouの出力
************************************************************************* * Trace Assistant * ************************************************************************* Bytes Bytes Sent Rcvd Send operation(TTIPRO) 32 140 Send operation(TTIDTY) 33 22 Get the session key (OSESSKEY) 229 145 Generic authentication call (OAUTH) 368 1001 Send operation(TTIPFN) 44 144 Send operation(TTIPFN) 36 16 Parse a statement (OSQL) # 1 SELECT USER FROM ... 47 100 Fast upi calls to opial7 (OALL7) # 1 130 111 Fetch row (OFETCH) # 1 21 137 Close cursor (OCLOSE) # 1 17 11 New v8 bundled call (OALL8) # 0 !Keep Parse BEGI... 156 145 Send operation(TTIPFN) 51 16 Parse a statement (OSQL) # 1 SELECT ATTRIBUTE,... 186 100 Fast upi calls to opial7 (OALL7) # 1 246 111 Fetch row (OFETCH) # 1 21 126 Close cursor (OCLOSE) # 1 17 11 Send operation(TTIPFN) 36 16 Parse a statement (OSQL) # 1 SELECT CHAR_VALUE... 208 100 Fast upi calls to opial7 (OALL7) # 1 130 111 Fetch row (OFETCH) # 1 21 126 Close cursor (OCLOSE) # 1 17 11 Send operation(TTIPFN) 36 16 Fast upi calls to opial7 (OALL7) # 1 !Keep Parse BEGI... 183 41 Send operation(TTIRXD) 20 111 Close cursor (OCLOSE) # 1 17 11 New v8 bundled call (OALL8) # 0 Parse Fetch SELE... 165 278 Send operation(TTIPFN) 51 16 Parse a statement (OSQL) # 1 commit 31 100 Execute statement (OEXEC) # 1 number of rows: 1 25 100 Close cursor (OCLOSE) # 1 17 11 Send operation(TTIPFN) 36 16 Fast upi calls to opial7 (OALL7) # 1 !Keep Parse BEGI... 183 41 Send operation(TTIRXD) 60 111 Close cursor (OCLOSE) # 1 17 11 Send operation(TTIPFN) 36 16 Fast upi calls to opial7 (OALL7) # 1 !Keep Parse BEGI... 183 41 Send operation(TTIRXD) 20 111 Close cursor (OCLOSE) # 1 17 11 New v8 bundled call (OALL8) # 0 Parse Fetch sele... 144 383 New v8 bundled call (OALL8) # 1 !Keep Fetch 121 315 Logoff off of Oracle (OLOGOFF) 13 11 ************************************************************************* * Trace Assistant has completed * *************************************************************************
例16-19は、-ot
オプションを使用した場合のTTC詳細情報の出力を示しています。
例16-19 trcasst -otの出力の詳細なTTC情報
************************************************************************* * Trace Assistant * ************************************************************************* Set protocol (TTIPRO) Operation 01 (con) Send protocol version=6 Originating platform: x86_64/Linux 2.4.xx Set protocol (TTIPRO) Operation 01 (con) Receive protocol version=6 Destination platform: x86_64/Linux 2.4.xx Set datatypes (TTIDTY) Set datatypes (TTIDTY) Start of user function (TTIFUN) Get the session key (OSESSKEY) Return opi parameter (TTIRPA) Start of user function (TTIFUN) Generic authentication call (OAUTH) Return opi parameter (TTIRPA) Piggyback function follows (TTIPFN) Start of user function (TTIFUN) V8 session switching piggyback (O80SES) Start of user function (TTIFUN) Get Oracle version/date (OVERSION) Return opi parameter (TTIRPA) Oracle Database 23ai Enterprise Edition Release 23.4.0.0.0 - 64bit Production Version 23.4.0.0.0 Start of user function (TTIFUN) New v8 bundled call (OALL8) Cursor # 0 Parse Fetch Describe information (TTIDCB) Start of user function (TTIFUN) Fetch row (OFETCH) Cursor # 3 ORACLE function complete (TTIOER) ORA-01403: no data found Piggyback function follows (TTIPFN) Start of user function (TTIFUN) Cursor Close All (OCCA) Start of user function (TTIFUN) New v8 bundled call (OALL8) Cursor # 0 Parse Fetch Describe information (TTIDCB) Piggyback function follows (TTIPFN) Start of user function (TTIFUN) Cursor Close All (OCCA) Start of user function (TTIFUN) New v8 bundled call (OALL8) Cursor # 0 Parse Fetch Describe information (TTIDCB) Piggyback function follows (TTIPFN) Start of user function (TTIFUN) Cursor Close All (OCCA) Start of user function (TTIFUN) New v8 bundled call (OALL8) Cursor # 0 !Keep Parse Sending the I/O vector only for fast upi (TTIIOV) Piggyback function follows (TTIPFN) Start of user function (TTIFUN) Cursor Close All (OCCA) Start of user function (TTIFUN) New v8 bundled call (OALL8) Cursor # 0 Parse Fetch Describe information (TTIDCB) Piggyback function follows (TTIPFN) Start of user function (TTIFUN) Cursor Close All (OCCA) Start of user function (TTIFUN) Commit (OCOMMIT) V6 Oracle func complete (TTISTA) Start of user function (TTIFUN) Commit (OCOMMIT) V6 Oracle func complete (TTISTA) Start of user function (TTIFUN) Logoff off of Oracle (OLOGOFF) MAXIMUM OPEN CURSORS: 0 CURSORS NOT CLOSED: 0 V6 Oracle func complete (TTISTA) Succeeded ************************************************************************* * Trace Assistant has completed * *************************************************************************
例16-20は、-ouq
オプションを使用した場合のSQL詳細情報の出力を示しています。出力の各行の最初に表示される項目は、実際に送信された要求です。2番目に表示される項目は、操作が実行されたカーソルの位置です。3番目に表示される項目は、SQLコマンドのリスト、または応答中を示すフラグのいずれかです。送受信されたバイト数は、最も右側に表示されます。フラグは次のいずれかです。
-
!PL/SQL = PL/SQL要求以外
-
COM = Commit
-
IOV = Get I/O Vector
-
DEFN = Define
-
EXEC = Execute
-
FETCH = Fetch
-
CAN = Cancel
-
DESCSEL = Describe select
-
DESCBND = Describe Bind
-
BND = Bind
-
PARSE = Parse
-
EXACT = Exact
例16-20 trcasst -ouqの出力の詳細なSQL情報
************************************************************************* * Trace Assistant * ************************************************************************* Bytes Bytes Sent Rcvd Send operation(TTIPRO) 32 140 Send operation(TTIDTY) 33 22 Get the session key (OSESSKEY) 229 145 Generic authentication call (OAUTH) 368 1001 Send operation(TTIPFN) 44 144 Send operation(TTIPFN) 36 16 Parse a statement (OSQL) # 1 47 100 SELECT USER FROM DUAL Fast upi calls to opial7 (OALL7) # 1 130 111 Fetch row (OFETCH) # 1 21 137 Close cursor (OCLOSE) # 1 17 11 New v8 bundled call (OALL8) # 0 !Keep Parse 156 145 BEGIN DBMS_OUTPUT.DISABLE; END; Send operation(TTIPFN) 51 16 Parse a statement (OSQL) # 1 186 100 SELECT ATTRIBUTE,SCOPE,NUMERIC_VALUE,CHAR_VALUE,DA TE_VALUE FROM SYSTEM.PRODUCT_PRIVS WHERE (UPPER('S QL*Plus') LIKE UPPER(PRODUCT)) AND (UPPER(USER) LI KE USERID) Fast upi calls to opial7 (OALL7) # 1 246 111 Fetch row (OFETCH) # 1 21 126 Close cursor (OCLOSE) # 1 17 11 Send operation(TTIPFN) 36 16 Parse a statement (OSQL) # 1 208 100 SELECT CHAR_VALUE FROM SYSTEM.PRODUCT_PRIVS WHERE (UPPER('SQL*Plus') LIKE UPPER(PRODUCT)) AND ((UPPE R(USER) LIKE USERID) OR (USERID = 'PUBLIC')) AND ( UPPER(ATTRIBUTE) = 'ROLES') Fast upi calls to opial7 (OALL7) # 1 130 111 Fetch row (OFETCH) # 1 21 126 Close cursor (OCLOSE) # 1 17 11 Send operation(TTIPFN) 36 16 Fast upi calls to opial7 (OALL7) # 1 !Keep Parse 183 41 BEGIN DBMS_APPLICATION_INFO.SET_MODULE(:1,NULL); E ND; Send operation(TTIRXD) 20 111 Close cursor (OCLOSE) # 1 17 11 New v8 bundled call (OALL8) # 0 Parse Fetch 165 278 SELECT DECODE('A','A','1','2') FROM DUAL Send operation(TTIPFN) 51 16 Parse a statement (OSQL) # 1 31 100 commit Execute statement (OEXEC) # 1 number of rows: 1 25 100 Close cursor (OCLOSE) # 1 17 11 Send operation(TTIPFN) 36 16 Fast upi calls to opial7 (OALL7) # 1 !Keep Parse 183 41 BEGIN DBMS_APPLICATION_INFO.SET_MODULE(:1,NULL); E ND; Send operation(TTIRXD) 60 111 Close cursor (OCLOSE) # 1 17 11 Send operation(TTIPFN) 36 16 Fast upi calls to opial7 (OALL7) # 1 !Keep Parse 183 41 BEGIN DBMS_APPLICATION_INFO.SET_MODULE(:1,NULL); E ND; Send operation(TTIRXD) 20 111 Close cursor (OCLOSE) # 1 17 11 New v8 bundled call (OALL8) # 0 Parse Fetch 144 383 select * from dept New v8 bundled call (OALL8) # 1 !Keep Fetch 121 315 Logoff off of Oracle (OLOGOFF) 13 11 ************************************************************************* * Trace Assistant has completed * *************************************************************************
親トピック: トレース・アシスタントを使用したトレース・ファイルの検証