Oracle
Enterprise Manager Oracle Trace Developer's Guide Release 1.4.0 A53697_01 |
|
This appendix provides access to a sample instrumented application.
The application simulates an automated teller machine (ATM). It is instrumented to gather information about the user interface and response time and patterns of ATM use among users. The purpose of instrumenting was to answer such questions as:
You can refer to this sample for examples of instrumenting details.
Table E-1 describes the events that are instrumented in the ATM sample application.
To install and run the ATM sample application provided by Oracle Trace, take the following steps:
setenv ORACLE_HOME /oracle/product
setenv ORACLE_SID trace
Number of Records | Number
of Data Blocks (2048 Bytes Each) |
---|---|
100 |
10 |
2,500 |
100 |
10,000 |
400 |
% sqlplus system\manager SQL> create user atm identified by sampleatm 2> default tablespace is <atm_space> quota 3> unlimitd on <atm_space>; SQL> grant create session, create table to atm;
SQL> disconnect SQL> connect atm\sampleatm SQL> @atmtab SQL> @atmdat SQL> @atmind
The atmtab.sql script creates tables. The atmdat.sql script loads data for 10,000 accounts. Use either atmdat100.sql or atmdat2500.sql to load fewer accounts. The atmind.sql script creates indexes.
The atmoci.c version of the sample application uses the Oracle Call Interface. Refer to the OCI documentation set for information on the Oracle Call Interface.
The atmpc.pc version of the sample application uses the Pro*C interface. It should be processed by the Pro*C compiler before compiling. Refer to the Pro*C documentation for further information.
% cp $ORACLE_HOME/otrace/demo/atm.fdf $ORACLE_HOME/rdbms/demo
% atmoci atm.inp input file is atm.inp
You will not see any output to the terminal when you pass in a data file.
To review the code for the ATM sample application, see the files in the $ORACLE_HOME/otrace/demo directory. You can refer to these files for examples of how to include calls to Oracle Trace routines within your own application.
Note:
For Windows NT systems, refer to the files in the $ORACLE_HOME\otracexx\admin\sample directory. |
|
Copyright © 1997 Oracle Corporation. All Rights Reserved. |
|