Preventing CREATE (only) for a User

The PL/SQL reference guide has a short section and example for the INSTEAD OF CREATE ON SCHEMA trigger. Since the description was so little and could not find much detail on the internet, tried some examples as below. This feature is good to prevent any CREATE operation for an user, giving him/her privilege to alter or drop … Read more

SQL Developer 4.0 on Linux – Easy Install Steps

Few quick screens to show the download and install of SQL Developer 4.0 on Oracle Linux 6.3. SQL Developer 4.0 is cool… for DBA and Developer… You can pretty much do almost all day-to-day database administration tasks using SQL Developer… Read my doc on Slideshare…   More… Follow Jeff’s blog… And check out OBE…     … Read more

Active or Recently Used Printers in Oracle EBS

Recently had a request from one of the admins for list of printers used in the EBS application and how many jobs are directed to a printer. The following SQL provided what the admin needed, thought a good one to share… select distinct fcr.printer, fu.user_name,         fu.description, count(*) jobs from apps.fnd_concurrent_requests fcr, apps.fnd_user … Read more

Sequences Nearing Limit

Happy New Year 2012!  During the holidays we hit a production issue on the EBS instance. It was one of the Sequences reaching the maximum limit, but took a lot of time for our admins and Oracle support to figure out where the issue was… If we had the following SQL as part of the … Read more

SQL Script to find the top 50 tables by size

Here is a SQL to identify the top 50 tables. When I say table, it could be a table, partitioned table or materialized view. Takes into consideration the indexes defined on the table and lob segments in the table, thus gives a complete picture of the table size. When you truncate the table, this much … Read more

Script to Refresh Materialized Views

The following script can be used to refresh materialized views that are capable of FAST (incremental) refresh automatically. Can be used on EBS database as well if you un-comment the commented (REM) lines. The refresh criteria used is any fast refresh-able materialized view that has not been refreshed in the past 24 hours, but was refreshed in … Read more