Create User with Access to Oracle Database Administrative Console (Enterprise...
Problem: You want to create a user that can access the Oracle Database Administrative console. For example, it might be required that the user login to the Oracle Enterprise Manage and monitor the...
View ArticleCreate Oracle Database Control Administrator using Enterprise Manager
Oracle database control administrators can create other database control administrators, configure e-mail and other notification methods, control alert thresholds for database metrics, select database...
View ArticleTop Ten (10) SQL Statements in Oracle Database
Here is a simple recipe. The following SQL finds the top ten SQL statements with the greatest elapsed time. SELECT sql_id, child_number, sql_text, elapsed_time FROM (SELECT sql_id, child_number,...
View ArticleCount Number of Rows in All User Tables in Oracle Database using PL/SQL
With this recipe you can count the number of rows for ALL tables in current Oracle Database schema. DECLARE t_c1_tname user_tables.table_name%TYPE; t_command VARCHAR2(200); t_cid INTEGER;...
View ArticleList Obfuscated/Wrapped Oracle PL/SQL procedures and packages
You are a new database administrator. You are assigned a task to find all obfuscated PL/SQL procedures in an Oracle Database. Here is a simple recipe that solves the problem. After running the SELECT...
View ArticleShow the Longest 10 Active User Sessions
The following SQL can be used by Oracle Database Administrator (DBA) to retrieve information about the currently active sessions with longest execution. The SQL statement is designed to run with...
View ArticleFind SQL Executed by a Session – Oracle
The following SQL shows the SQL text for the SQL being executed by a session. SELECT s.sid, q.sql_text FROM v$sqltext q JOIN v$session s ON q.address = s.sql_address WHERE s.sid = &sid ORDER BY...
View Article