We have a new server, similar to our production server. The databases are exactly the same, as a matter of fact, the databases are using the same init.ora file (different DB names though in Oracle v7.3.4 on Sun 5.6). When I do a create table as select from Y on production, it takes 5 minutes, whereas on test it takes 20 minutes. Also, when I create an index on the production table, it takes 5 minutes, on test server takes 20+ minutes. Our systems admin folks says that from the O/S point of view, everything is fine. So my question is what could it be about Oracle that maks it so much slower on test compared to production. Also, we ARE NOT USING CBO, we are using rule based optimizer.
If you ask the SysAdmins, everything is always fine!! Same story with the network guys as well. It always seems to be the database's fault.
What you need to do is figure out where the bottleneck is on your second server. Oracle provides the V$SESSION_EVENT and V$SESSION_WAIT views to determine exactly where the bottleneck lies in your session. Luckily, your production server can provide a baseline for determine what good performance should be. Run a process in production (like creating an index). Query V$SESSION_EVENT to see all of the wait events for that process. Do the same thing on your second server. The difference in V$SESSION_EVENT will show you where your bottleneck is on the second server! Each wait event is described in the Oracle 8i Reference Guide. Once you know what the process is waiting on, you will know what to tune.
For More Information
- Dozens more answers to tough Oracle questions from Brian Peasland are available.
- The Best Oracle Web Links: tips, tutorials, scripts, and more.
- Have an Oracle or SQL tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
- Ask your technical Oracle and SQL questions -- or help out your peers by answering them -- in our live discussion forums.
- Ask the Experts yourself: Our SQL, database design, Oracle, SQL Server, DB2, metadata, object-oriented and data warehousing gurus are waiting to answer your toughest questions.
Dig Deeper on Oracle database design and architecture
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.