C:\>sqlplus hr/hr@orcl

SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 3月 12 10:34:08 2009

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options


SQL> set autot trace;
SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色
SP2-0611: 启用 STATISTICS 报告时出错

@D:\oracle\product\10.2.0\db_1\sqlplus\admin\plustrce.sql

grant plustrace to hr;

SQL> set autot trace
SQL> select object_name from test where object_id=1234;