Oracle Database Administration and Performance Tuning
Covers Oracle database topics including SQL commands, AWR, EM Database Control, performance monitoring, and Oracle advisors
Questions
Which of the following options for the PFILE/SPFILE parameter STATISTICS_LEVEL turns off AWR statistics gathering and ADDM advisory services?
- OFF
- TYPICAL
- ALL
- BASIC
Suppose you have used EM Database Control to drill down into ADDM findings and have found that a single SQL statement is causing the majority of I/O on your system. Which of the following advisors is best suited to troubleshoot this SQL statement?
- SQL Tuning Advisor
- SQL Access Advisor
- Both A and B
- Neither A or B
Nearly all the advisors submit their analysis activities to the database in the form of a job. When the analysis job is submitted, which option for job scope adds the least overhead to the system?
- Limited
- Restricted
- Comprehensive
- Thorough
Which data dictionary view contains information explaining why ADDM made its recommendations?
- DBA_ADVISOR_FINDINGS
- DBA_ADVISOR_OBJECTS
- DBA_ADVISOR_RECOMMENDATIONS
- DBA_ADVISOR_RATIONALE
Which of the following advisors determines if the space allocated to the Shared Pool, Large Pool, or Buffer Cache are adequate?
- SQL Tuning Advisor
- SGA Tuning Advisor
- Memory Advisor
- Pool Advisor
Which of the following advisors determines if the estimated instance recovery duration is within the expected service-level agreements?
- Undo Management Advisor
- SQL Access Advisor
- SQL Tuning Advisor
- MTTR Advisor
Using EM Database Control, you’ve identified that the following SQL statement is the source of a high amount of disk I/O: SELECT NAME, LOCATION, CREDIT_LIMIT FROM CUSTOMERS What might you do first to try to improve performance?
- Run the SQL Tuning Advisor.
- Run the SQL Access Advisor.
- Check the EM Database Control main screen for alerts.
- Click the Alert Log Content link in the EM Database Control main screen.
Your users have called to complain that system performance has suddenly decreased markedly. Where would be the most likely place to look for the cause of the problem in the EM Database Control?
- Main screen
- Performance screen
- Administration screen
- Maintenance screen
By default, how long will database statistics be retained in the AWR?
- 7 days
- 30 days
- 7 hours
- Indefinitely
Which of the following is not one of the three primary sources of performance metric information in the EM Database Control Performance screen?
- Host
- Session
- Instance
- Network
Which of the following is a performance metric that could be defined as “the amount of work that a system can perform in a given amount of time”?
- Response time
- Uptime
- Throughput
- Runtime
You have just created a database using scripts that you wrote. Now you notice that the automatic collection of database statistics by the EMD_MAINTENANCE.EXECUTE_EM_DBMS_JOB_ PROCS procedure is not running. What might be the cause?
- The PFILE/SPFILE parameter GATHER_STATS=FALSE.
- Only databases created using Database Configuration Assistant have automatic statistics
- The SYSMAN user who owns the AWR is not logged in.
- The operating system does not support automatic statistics collection.
Using EM Database Control, you discover that two application PL/SQL functions and a view are currently invalid. Which of the following might you use to fix these objects?
- Shut down and restart the database.
- Use EM Database Control to recompile the object.
- Export the invalid objects, drop them, and then import them.
- Use the ALTER FUNCTION … COMPILE and ALTER VIEW … COMPILE commands.
Multiple baseline metrics can be gathered and stored in the AWR. Why might you want more than one metrics baseline?
- You might want a separate baseline metric for each user.
- You might want a separate baseline metric for daytime usage versus off-hours usage.
- You might want a separate baseline metric for each schema.
- You would never want more than one baseline metric, even though it is possible to gather
When you configure an alert, which of the following types of alert thresholds can you use to monitor a tablespace for diminishing free space?
- Warning threshold
- Critical threshold
- Both A and B
- Neither A or B
If no e-mail address is specified, where will alert information be displayed?
- In the DBA_ALERTS data dictionary view
- In the V$ALERTS dynamic performance view
- In the EM Database Control main screen
- No alert information is sent or displayed.
If Product is a table name than a) RENAME product to PRO; b) ALTER TABLE product RENAME TO pro;
- a is ture
- b is fasle
- b is false a is ture
- a is false b is ture
NULLIF(12, 13) would return 12 ?
- True
- False
SELECT FIRST(OrderPrice) AS FirstOrderPrice FROM Orders? this query is:
- True
- False
This query is: INSERT ALL INTO mytab (c1,c2) VALUES ('ram',12) INTO mytab (c1,c2) VALUES ('mani',15)
- True
- False