MyOra 6.4
MyOra 6.4
MyOra 6.4
4
SQL Tool for Oracle
User Guide
Space Manager - Shows utilized and free Tablespace using pie charts. Shows objects in
each Tablespace.
Instance Details - Shows Oracle parameters and buffers using pie chart.
Performance Monitor - Shows Oracle performance using graphs, bar charts & pie charts.
System Waits - Shows Session level and System wide waits in the database using pie
charts.
Top 5 SQL - Shows Top 5 Sqls in four categories using interactive 3-D bar charts.
Server Tuning - Shows Physical i/o, Logical i/o and CPU, Elapse Time of all SQLs.
Top 5 Resource - Shows Top 5 Resource Usage sessions in four categories using
interactive 3-D bar charts.
Resource Usage - Shows Resources used at Session level and System wide.
DB Activity - Shows database activity in real time using interactive graphs (Logical
I/O, Physical I/O, Event Waits, Latches etc..)
Wait Analysis - Shows mostly Wait Classes, CPU Usage, Events, Objects, Sessions
and SQL statements...
Top Ten SQL - Shows Top Ten SQLs in nine different categories using interactive 2-D /
3-D pie charts
Blockers Waiters - Shows Session Blockers, Session Waiters, Locks and Long Running
Queries.
MyOra is built on Multithreading, Multiple Document Interface (MDI) framework, which can handle multiple
sub-windows opened at the same time. MyOra allows multiple connections to the same database or
different database. MyOra’s MDI framework provides most easy to use and easy to manage user
interface when working with multiple sub-windows. Sub-windows can be arranged and viewed vertically
or horizontally. Any sub-window can be minimized, maximized or closed at the click of a button.
For Example: Users can open two Schema Explorers and view vertically or horizontally. One Schema
Explorer for SCOTT@DBDEV and the other Schema Explorer for SYSTEM@DBPROD.
a. Basic mode:
Basic mode connection do not require any Oracle client software on local computer.
MyOra can connect to Oracle database using tnsnames.ora file. This file normally
resides in the $ORACLE_HOME\network\admin\ directory.
Example:
jdbc:oracle:thin:@localhost:1521:MYDEV
jdbc:oracle:thin:@ServerName:1521:WORKDB
Login History
MyOra stores history of logins to the database using Connection Names. Every login to the
database is identified by unique Connection Name. All previous Connection Names are available
in Login History Grid for quick login.
To Login to the database using Login History
Example 1: If User SCOTT has login to DBTEST and DBQA databases, User SYSTEM has login
to SALESDB and HRDB, then Connections Indicator list box contains SCOTT@DBTEST,
SCOTT@DBQA, SYSTEM@SALESDB and SYSTEM@HRDB.
Using Connection Indicator field you can choose required connection and then open different
features (like Schema Explorer, Session Manager, etc...).
The following example will show how Connection Indicator is useful when multiple MyOra
connections exist.
Example 2: If User SCOTT is already login to DBTEST and DBPROD databases and currently
working with SQL Editor(s). If SCOTT wants to open a Schema Explorer for DBTEST, then
SCOTT must choose SCOTT@DBTEST connection from the dropdown list and click Schema
Explorer icon .
C. Script Mode:
1. Write multiple SQL statement in the SQL Editor window separated by slash ‘/’.
2. Click the icon to execute the script.
3. Result of each SQL statement is written to the Output Tab.
4. If an error occurs at any SQL statement, then a message will prompt you to Continue or
Skip the error or Cancel.
DD-Mon-YYYY
DD/MM/YYYY
MM/DD/YYYY
YYYY-MM-DD
YYYY/MM/DD
YYYY-MM-DD HH:MI:SS AM
YYYY-MM-DD HH24:MI:SS
YYYY/MM/DD HH:MI:SS AM
YYYY/MM/DD HH24:MI:SS
HH:MI:SS AM
HH24:MI:SS
Note: The exported data to the text file can be best view using any ‘Text Editor’ software with
Courier (Regular) font size 10.
Describe
Tables and Views can be described in the SQL Editor window.
1. Place the cursor on table (or view or synonym), right click for pop-up menu, click
Describe.
OR
Place the cursor on table (or view or synonym), click SQL Editor menu, click Describe.
1. Position and click the cursor at the preferred location on the SQL Editor.
2. Double click or drag the table column to append in the SQL Editor at the current cursor
location.
1. Position and click the cursor at the preferred location on the SQL Editor.
2. Double click or drag the Table or View to append in the SQL Editor at the current cursor
location.
1. Position and click the cursor at the preferred location on the SQL Editor.
2. Double click or drag the column to append in the SQL Editor at the current cursor
location.
Explain Plan
To view the execution plan of the SQL
Vertical Scrollbar
The vertical Scrollbar of result data grid works in two different modes.
1. If the current result data grid row is the last visible row, click the down arrow button of the
scrollbar to add next 50 rows to the current result data grid.
2. To add all result rows to the result data grid, drag down the thumb of the vertical scroll
bar.
PL/SQL processing
PL/SQL block is executed similar to SQL statement in Single Statement Mode, Current
Statement Mode and Script mode.
If you use DBMS_OUTPUT.PUT_LINE statement in your PL/SQL block, then the output
is displayed in the DBMS Output tab.
DBMS Output
To display the output in the DBMS Output tab, the server output must be turned ON.
1. To turn server output ON
Click on the toggle server icon to turn ON. When server output is ON, the icon
turns green.
2. To turn server output OFF
Click on the toggle server icon to turn OFF. When server output is OFF, the icon
turns red.
3. Click the icon to change the output Buffer size. A popup window prompts you to
accept the default value or change the Buffer size to a new value.
4. To change the output Pooling Frequency, slide the pointer to any preferred position
between 2 and 16 seconds.
Note: Server output must be ON before executing the PL/SQL block to view the contents of
DBMS Output.
Note: The prompt data must be enclosed in single quotes for Character type and Date type fields.
SQL Reserved words like SELECT, UPDATE, INSERT, DELETE, etc. are highlighted in
Blue color.
Any text between single quotes is highlighted in Red color.
Single commented SQL statements (text after --) are highlighted in Green color and the
font is shown in Italic.
Multiple line commented SQL statements (text between /* and */) are highlighted in
Green color and the font is shown in Italic.
Information about table is shown on right side. Click on each tab to view the details.
Columns Names, Column Attributes
Indexes, Index Keys
Details
Dependencies (References, Referenced by)
Statistics
Data
Triggers
Column Statistics
Constrains
Grants
Comments
Information about view is shown on right side. Click on each tab to view the details.
Column Names, Column Attributes
View definition SQL
Data rows
Grants
Dependencies (References, Referenced by)
Comments
Information about Synonym is shown on right side. Click on each tab to view the details.
Synonym Details
Dependencies (References, Referenced by)
Information about Sequence is shown on right side. Click on each tab to view the details.
Sequence details
Dependencies (References, Referenced by)
Information about Trigger is shown on right side. Click on each tab to view the details.
Trigger details
Code
Columns
Dependencies (References, Referenced by)
Grants
Information about Package is shown on right side. Click on each tab to view the details.
Declaration
Body
Dependencies
Information
Grants
Information about Function is shown on right side. Click on each tab to view the details.
Code
Declaration
Information
Grants
Information about Java Source is shown on right side. Click on each tab to view the
details.
Code
Information
Information about Java Class is shown on right side. Click on tab to view the details.
Class Details
Information about DB Link is shown on right side. Click on tab to view the details.
Details
Session Manager
Session Manager let you see the following for each Session in a separate tab.
Statistics
Connection Information
Accessing (Database objects currently accessing)
Wait Events
Open Cursors, Current Statement and Previous Statement tabs let you see the following
information in three sub-tabs
o SQL Text
o SQL Execution details
o Explain Plan
To view the details about all Open Cursors and its details in each Session:
1. Click Open Cursors tab.
2. Click any SQL Statement from the list.
3. Click one of the following tabs on the right half section.
a) SQL Text
b) SQL details
c) Explain Plan
Space Manager
Space Manager let you see the following in a separate tab.
Tablespace tree.
Pie chart for storage by Segment Type (User objects).
Pie chart for Free and Used Tablespace.
Bar graph for Free & Used Tablespace.
Tablespace details.
Tablespace File details.
Objects in each Tablespace.
Segment Type Bar graph.
Note: By default Storage Used & Free Bar Graph is shown at lower left side of the Space
Manager's Tree tab (First tab). The Options window (Navigate to Tools -> Options) let you
choose Storage Used & Free Bar Graph or Storage by Segment Type Pie Chart at lower left side.
Currently running Space Manager processes are not affected if you make any changes on
Options window. Only new Space Manager processes will have the changed settings.
User Manager
User Manager let you see the following in a separate tab.
Profiles
Roles
Privileges
Role Privileges
Users
User Roles
User Privileges
SGA Display
SGA Display let you see SQL Statements from SGA shared pool. SQL Statements can be
Listed by
SQL Type (Select, Update, Insert. etc)
User Name
Filtered by
SQL Text string
For each SQL Statement the following information is displayed in three tabs:
o SQL Text
o SQL details
o Explain Plan
Instance Details
Instance Details let you see the following in a separate tab.
SGA Configuration Pie chart for Buffer Cache, Fixed SGA, Log Buffer, Java Pool, Large
Pool, Shared Pool.
Instance details
Banner
Oracle Parameters
Hidden Parameters
NLS Parameters
Resource Limit
License
Server Statistics
Server Statistics let you see the following in a separate tab.
Statistics
System Waits
Shared Pool
Library Cache
Analyzed Stats
Rollback Segments
Blocking Sessions
File Activity
Session Activity
Locks
Wait Events
Waiting Sessions
Log History
Latch Details
Running Queries
Database Growth
Data Rows
DB Links
Performance Monitor
Performance Monitor shows the condition (health) of the database instance by reading the
system tables every 5 seconds (can be changed to any value between 5 seconds and 10
minutes). The information is analyzed and shown in Graphs, Bar charts and Pie charts.
Performance Monitor screen is divided into 5 sections. The sections are:
o Top SQL (since database startup)
o Ratios
o System Waits (by total time waited)
o Calls
o Top Sessions (by Resource Usage, since database startup)
Session counts, Commits & Rollback counts and Free/Used are shown at top potion of the
Performance Monitor screen.
Free/Used space display can be disabled by changing the default configuration setting on
Options window (Navigate to Tools -> Options).
To see more detailed information about Top SQL, open a new Top 5 SQL or Server Tuning
window from the tool bar or Tools menu.
To see more detailed information about System Waits, open a new System Waits window from
the tool bar or Tools menu.
To see more detailed information about Resource Usage, open a new Top 5 Resource or
Resource Usage window from the tool bar or Tools menu.
Top SQL:can be shown in three different ways and you have an option (Navigate to Tools ->
Options) to set one of them as the default.
By default Top SQL since database instance startup (processed by Oracle database) is
enabled.
Note: By default the Refresh Button and Refresh Interval selection dropdown list on
Performance Monitor screen are enabled. The Options window (Navigate to Tools ->
Options) let you disable Refresh Button and Refresh Interval selection.
If you choose to disable Refresh Button and Refresh Interval selection list, then you
need to set Refresh Interval between 5 seconds and 10 minutes on Options window.
Currently running Performance Monitor processes are not affected if you make any changes on
Options window. Only new Performance Monitor processes will have the changed settings.
System Waits
System wide waits are shown as percentage of total waits. Top ten System waits are shown in a
Pie chart. System Waits are retrieved from the database system tables for every 5 seconds (can
be changed to any value between 5 seconds and 10 minutes). Session waits are shown by
choosing the desired Session Id from the dropdown box (filter by session id).
Note: By default Refresh Interval is being set to 5 seconds. The Refresh Interval can be set
between 5 seconds and 10 minutes on Options window (Navigate to Tools -> Options).
Currently running System Waits processes are not affected if you make any changes on
Options window. Only new System Waits processes will have the changed settings.
Top 5 SQL
Top 5 SQL shows Physical i/o, Logical i/o, CPU Time and Elapsed Time of 5 top SQL statements
in each of these categories since database startup. The Top 5 SQL window has two sections.
Left side section shows 3-D interactive bar graph for Physical i/o, Logical i/o, CPU Time and
Elapsed Time. The right side section shows SQL text, SQL details and SQL explain plan.
Each vertical bar represents one SQL statement and height of the vertical bar represents percent
of Physical i/o or Logical i/o or CPU Time or Elapsed Time.
Place the mouse over any vertical bar to see the percentage.
Click on any vertical bar to see SQL text, SQL details and SQL explain plan.
Place the mouse over the text Physical i/o or Logical i/o or CPU Time or Elapsed Time to see
Top 5 SQLs in the respective categories (base of vertical bar changes to light Blue color to
indicate Top 5 SQLs).
Place the mouse over the text Top1 SQL or Top2 SQL or Top3 SQL or Top4 SQL or Top5 SQL to
see Top SQLs in the each category (base of vertical bar changes to light Green color to indicate
SQLs).
.
Server Tuning
For each SQL statement, Server Tuning shows percentage of Physical i/o, Logical i/o, CPU
Time and Elapsed Time of all SQL statements that are executed since database startup. The
window is divided into four sections. Each section shows SQL Analysis for Physical i/o, Logical
i/o, CPU Time and Elapsed Time respectively. Data rows in each section are sorted by percent
highest value to lowest value.
Each section is color coded with small colored block at top left corner. These block colors
matches with Top SQL graph’s legend in Performance Monitor.
Click the icon to see all four sections. The icons and will allow to you to toggle
between four sections and one section.
Top 5 Resource
Top 5 Resource shows Physical i/o, Logical i/o, CPU and Memory of 5 top resource using
Sessions (users or processes) in each of these categories since database startup. The Top 5
Resource window has two sections. Left side section shows 3-D interactive bar graph for
Each vertical bar represents one Session and height of the vertical bar represents percent of
Physical i/o or Logical i/o or CPU or Memory used.
Place the mouse over any vertical bar to see the percentage.
Click on any vertical bar to see Resource usage details on the right side.
Place the mouse over the text Physical i/o or Logical i/o or CPU or Memory to see Top 5
Resource Usage sessions in the respective categories (base of vertical bar changes to light Blue
color to indicate Top 5 Resource Using sessions).
Place the mouse over the text Top1 Resource or Top2 Resource or Top3 Resource or Top4
Resource or Top5 Resource to see Top Resource Using sessions in the each category (base of
vertical bar changes to light Green color to indicate Sessions).
Resource Manager
Resource Manager shows percentage of Physical i/o, Logical i/o, CPU and Memory usage of all
resource using Sessions (users or processes) in each of these categories since database startup.
Also shows all Resource Usage details of each Session.
The window is divided into four sections. Each section shows Resource Usage for Physical i/o,
Logical i/o, CPU and Memory respectively. Data rows in each section are sorted by percent
highest value to lowest value.
Each section is color coded with small colored block at top left corner. These block colors
matches with Top Sessions (Resource Usage) legend in Performance Monitor.
DB Activity
DB Activity shows database activity in real time using interactive graphs. The Refresh Interval
for DB Activity process can be set between 5 seconds and 10 minutes on Options window. DB
Activity window is divided into 6 graphs. Each graph shows information about:
o Logical I/O
o Physical I/O
o Call Rate
o Event Waits
o Latch Misses
o Sessions
To see more detailed information about Event Waits, open a new System Waits window from the
tool bar or Tools menu.
To open DB Activity
Each graph has Graph Types which can be selectable by placing the cursor over the small
rectangle boxes (located left side of each graph).
Graph type let you select the required graph (for example Logical I/O graph has three
individual moving graphs, each graph corresponding to db block changes, db block gets
and consistent gets). You can select one of the three moving graphs by placing the
cursor over the empty rectangle box, then box is filled with a color dot corresponding to
Graph Type. Now place the cursor on the graph area, a small dot is shown on the graph
and the value corresponding to the Graph Type is shown on the top of the graph.
Place the cursor over the graph area. A small dot is shown on the graph and value is
shown on the top of the graph. If the cursor is moved across the graph area, the dot is
also moved across the graph and values are shown on the top of the graph.
Note: Wait Events graph shows Top 5 wait events and % total time waited (at left side of graph).
Latch Misses graph shows Top 5 latch misses and % total number of misses (at left side
to graph).
Currently running DB Activity processes are not affected if you make any changes on Options
window. Only new DB Activity processes will have the changed settings.
Wait Analysis
Wait Analysis shows mostly Wait Class details, CPU Usage, Events, Objects, Sessions and
SQL statements. Wait Analysis screen is divided into two sections. The upper section shows
Wait Time Bar graph and the lower section shows data for Events, Sessions, Objects and SQL
statements. The lower section also shows four separate graphs for Logical I/O, Physical I/O, Call
Rate and Sessions. You can toggle between data and graphs in the lower section by clicking the
Show Graph button.
Note:
MyOra does not access Active Session History or ASH table.
MyOra does not access Automatic Workload Repository or AWR tables.
MyOra does not access DBA history tables.
Wait Analysis will allow you to examine and perform detailed analysis on Events, Sessions,
Objects and SQL statements. Wait Analysis cannot show SQL information, if SQL statements
are flushed from SQL Area.
If you select a range of Time interval, on the Wait Time Bar graph, the same time interval will be
selected in the lower section graphs (Logical I/O, Physical I/O, Call Rate and Sessions graphs).
Note: Wait Analysis screen must be running (should not be closed) to see Time Waited values,
Events, Sessions, Objects and SQL statements.
By default Refresh Interval is being set to 30 seconds. The Refresh Interval can be set between
30 seconds and 120 minutes (2 hours) on Options window (navigate to Tools -> Options). If you
choose Refresh Interval of 120 minutes (2 hours), then you can see Wait Time analysis for last 5
days.
Bar graph is based on actual time interval on X axis and Time Waited value on Y axis. Wait
details for a time interval can be analyzed. While analyzing the bar graph, ‘CPU Usage’ value
must read as ‘CPU Time’ (not CPU wait time). Idle events are excluded from the Wait Analysis.
The bar graph displays Time Waited value for following Wait Classes:
Queueing
User I/O
System I/O
Scheduler
Others
Cluster
Network
Configuration
Concurrency
Commit
Application
Administrative
CPU Usage (CPU Time, not an wait event)
Events
a) Event Name
b) Class Name
c) Value%
Objects
a) Owner
b) Object Name
c) Object Type
d) Statistics Name
e) Value%
Sessions
a) Sid
b) Serial#
c) User Name
d) Machine
e) Terminal
f) OS User
g) Program
h) CPU Usage%
Currently running Wait Analysis screens (processes) are not affected if you make any changes
on Options window. Only new Wait Analysis screens will have the changed settings.
Each 2-D/3-D interactive pie chart is responsive to cursor. The SQL id and percentage values for
each SQL is listed left of pie chart. If you place the cursor on SQL Id, then the first 60 character of
SQL text is shown.
Top Ten SQL works with Oracle 10g, 11g and 12c.
Currently running Top Ten SQL processes are not affected if you make any changes on Options
window. Only new Top Ten SQL processes will have the changed settings.
Blockers Waiters
Blockers Waiters shows Session Blockers, Session Waiters, Locks and Long Running Queries.
Also shows all Resource Usage details of each Session.
The window is divided into four sections. Each section shows Session Blockers, Session Waiters,
Locks and Long Running Queries respectively. Data rows in each section are sorted by User
Name.
Each section is color coded with small colored block at top left corner.
Click the icon to see all four sections. The icons and will allow you to toggle between
four sections and one section.
Options Window
Currently running processes are not affected if you make any changes on Options window
(except the date format change in SQL editor). Only new processes (new screens) will have the
changed configuration settings.
All the changes made on Options window will be saved to Configuration file except SQL
Editor’s Result Grid Date format change.
You can use Options window to change the default configuration settings of SQL Editor, Space
Manager, Performance Monitor, DB Activity and System Waits screens. The left pane of the
Options window contains a tree view of above features. The right pane displays the default
settings or default values for the selected feature from the tree.
You can change the default date format by selecting the desired date format from drop
down list.
By default Storage Used & Free Bar Graph is Enabled, this means Storage Used & Free
Bar Graph is shown at lower left side of Space Manager's Tree tab.
By clicking the appropriate radio button you can choose Storage Used & Free Bar Graph
or Storage by Segment Type Pie Chart as the default setting.
General Tab
a) By default Refresh Button and Refresh Interval selection dropdown list are
enabled.
b) If you choose to disable Refresh Button and Refresh Interval selection list,
then you need to set Refresh Interval between 5 seconds and 10 minutes. In
disable Refresh Button mode, the Call graph and Ratios graph will show Time
scale on X-axis.
The default Refresh Interval is being set to 5 seconds. You can change default Refresh
Interval between 5 seconds and 10 minutes.
DB Activity settings
The default Refresh Interval is being set to 5 seconds. You can change default Refresh
Interval between 5 seconds and 10 minutes.
The default Refresh Interval is being set to 30 Seconds. You can change default Refresh
Interval between 30 seconds and 120 minutes (2 hours).
Text on X-axis (Begin Time and End Time) by default shown in inclined direction. You can
change the direction to Straight.
The default Refresh Interval is being set to 5 Seconds. You can change default Refresh
Interval between 5 seconds and 10 minutes.
All the changes made on Options window will be saved to a configuration file except SQL
Editor’s Result Grid Date format change.
MyOra Console
MyOra has 18 different modules (screens), the main purpose of MyOra Console is to show all
active modules at once in a easy accessible manner. MyOra Console shows all active modules in
form of icons. Each icon represents one module and at the middle of each icon module code is
shown. (Please refer module codes and module names below). If you click on an icon, the
module corresponding to the module code will be activated.
If there is more than one active connection for a given module, then the total number of active
connections will be shown at the top right corner of the icon. If you click on an icon with multiple
active connections, means an icon with a number on top right corner, then the icon will explode
into individual connections and each icon will represent one connection.
Note: On MyOra Console the maximum active connection display limit is 16 for any module. In
general, MyOra can have up to 100 active connections (for a single module or combination of
modules), but on Console only the first 16 connections of a module will be shown.
The bottom row of the Console has four anchor icons which corresponds to four modules, these
modules are SQL Editor, Schema Explorer, Session Manager and Performance Monitor. The
anchor icons are always shown at the same location on Console. If there is no active module
corresponding to anchor icons, then that icon will not be shown.