Performance difference between Windows PC and Windows on VMware [message #542710] |
Thu, 09 February 2012 19:48 |
|
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
G'day,
We are having major differences in performance when accessing an Oracle 11gR2 database from two different environments.
I won't sadden you with the gory details of the full application but I will use an indicative example of our problem.
We have SQL Developer in both environments. In each of these SQL Developer instances is a defined a connection to the same database on another machine. So there is the PC looking at a database and a virtual instance looking at the same database.
Selecting the '+' sign next to 'tables' for that connection, on the PC the list of four tables comes back in 4 seconds but on the virtual instance the list of the same four tables comes back in 1 minute and 50 seconds.
This sort of timing issue is repeatable for all accesses to the Oracle database on the third machine.
Has anyone had a similar problem? Did you solve it? What other information do you need to help me solve this problem?
David
|
|
|
Re: Performance difference between Windows PC and Windows on VMware [message #542711 is a reply to message #542710] |
Thu, 09 February 2012 19:55 |
|
BlackSwan
Messages: 26766 Registered: January 2009 Location: SoCal
|
Senior Member |
|
|
DBMS_SESSION.SESSION_TRACE_ENABLE(TRUE,TRUE,'ALL_EXECUTIONS');
alter session set events '10046 trace name context forever, level 12';
-- invoke the SQL code
DBMS_SESSION.SESSION_TRACE_ENABLE(FALSE,FALSE,NULL);
DBMS_MONITOR.SESSION_TRACE_ENABLE(
session_id IN BINARY_INTEGER DEFAULT NULL,
serial_num IN BINARY_INTEGER DEFAULT NULL,
waits IN BOOLEAN DEFAULT TRUE,
binds IN BOOLEAN DEFAULT FALSE,
plan_stat IN VARCHAR2 DEFAULT NULL);
Oracle recommends that you use the DBMS_MONITOR and DBMS_SESSION packages instead.
SQL_TRACE is retained for backward compatibility only.
trace file shows where actual time is being spent
|
|
|
|
|
Re: Performance difference between Windows PC and Windows on VMware [message #542721 is a reply to message #542714] |
Thu, 09 February 2012 23:07 |
|
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
BS,
I ran the following through both the Windows 7 and Windows 2003 server copies of SQL Developer.--
set pages 1000
--
set tim on
--
-- Test how long a query takes.
--
exec dbms_session.session_trace_enable(true,true,'ALL_EXECUTIONS');
--
alter session set events '10046 trace name context forever, level 12';
--
-- invoke the SQL code
--
select * from all_tables where owner = 'my_user';
--
exec dbms_session.session_trace_enable(false,false,null);
--
exec DBMS_MONITOR.SESSION_TRACE_ENABLE;
--
I then fed the trace files through Spotlight and annoyingly there is very little difference between them.
What does the final command "DBMS_MONITOR.SESSION_TRACE_ENABLE" contribute to this trace?
David
|
|
|