Oracle DBA Code Examples
This document is edited to be a quick reference of code examples used to achieve specificOracle DBA tasks. No explanation on any subject is presented.The document is simply oriented based on the required task, the code to perform the task andany precautions or warnings when using the code. Also, it will be specified if the code isversion specific. The document mainly demonstrates using SQL and PL/SQL code to achieveany task. It does not concentrate on using OEM to perform a task. However, if there will be asignificant advantage, there could be just some hints on using OEM for some tasks.
The document assumes that the reader has already the knowledge of Oracle databaseadministration.
How to Use the Document
Search the required task
Click on the required task link
Read the warnings and/or usage guideline, if any.
Make any modification in the code to match your case.
Oracle Database Versions
The code presented in the document is to operate on Oracle database versions 10g and 11g. Itwill be stated, if the code is version specific.
Obtaining Latest Version of the Document
Anyone is authorized to copy this document to any means of storage and present it in anyformat to any individual or organization for
No individual or organization may use this document for
purpose without awritten permission from the editor.
This document is for informational purposes only, and may contain typographical errors andtechnical inaccuracies.
There is no warranty of any type for the code or information presented in thisdocument. The editor is not responsible for any loses or damage resulted fromusing the information or executing the code in this document.
If any one wishes to correct a statement or a typing error or add a new piece of information,please send the request to