Subscribe to Posts by Email

Subscriber Count

    701

Disclaimer

All information is offered in good faith and in the hope that it may be of use for educational purpose and for Database community purpose, but is not guaranteed to be correct, up to date or suitable for any particular purpose. db.geeksinsight.com accepts no liability in respect of this information or its use. This site is independent of and does not represent Oracle Corporation in any way. Oracle does not officially sponsor, approve, or endorse this site or its content and if notify any such I am happy to remove. Product and company names mentioned in this website may be the trademarks of their respective owners and published here for informational purpose only. This is my personal blog. The views expressed on these pages are mine and learnt from other blogs and bloggers and to enhance and support the DBA community and this web blog does not represent the thoughts, intentions, plans or strategies of my current employer nor the Oracle and its affiliates or any other companies. And this website does not offer or take profit for providing these content and this is purely non-profit and for educational purpose only. If you see any issues with Content and copy write issues, I am happy to remove if you notify me. Contact Geek DBA Team, via geeksinsights@gmail.com

Pages

Recover datafile that accidentally deleted

Thanks to Martin’s blog, which show us the data file recovery when it accidentally dropped. (apologies i lost the original link)

***** DO IT ON YOUR OWN RISK *****

Created tablespace and users and some tables.

SQL> create tablespace test datafile ‘/oradata/TESTTest01.dbf’ size 100m; Tablespace created. SQL> create user test identified by test default […]

Using log miner effectively

I have got a request from the team asking to get the DML statements that ran against a table for a particular period of time

For this, I have three options 1) If auditing is enabled, get the statements from the audit trail, but the problem will be no bind variable replacement and also the […]

Is your SGA is > 10gb? Then probably you have to look at huge pages

In Theory:-

HugePages is a feature integrated into the Linux kernel 2.6. It is a method to have larger page size that is useful for working with very large memory. HugePages is useful for both 32-bit and 64-bit configurations. HugePage sizes vary from 2MB to 256MB, depending on the kernel version and the […]

Undo backup optimization in 11g

Another little feature in 11g is undo backup optimization.

Prior to Oracle 11g, RMAN always backed up all UNDO with a full backup, including UNDO for committed blocks.

However in 11g, RMAN is able to skip the UNDO information for those blocks that are already committed and exceeded undo_retnention threshold.

This optimization brings in […]

Find your statistics jobs windows-groups-status etc.

Atleast I found hard checking in many other areas,hence writing this

You may not find the no rows for gather_stats_job in 11g due to the enhancments in maintainence groups.

The collection of statistics along with some other maintainence tasks have been incorporated in to dba auto task admin client procedure

First you need to […]

Oracle Scheduler maintenance windows: How long they can run?

With previous post you see the duration of stats job, but how long they can run?

Well the answer for that would be depends on the scheduler windows.

To understand scheduler windows, according to documentation:-

A maintenance window is a contiguous time interval during which automated maintenance tasks are run. Maintenance windows are Oracle […]

How much time does my stats job ran?

Here is the small script

column job_name format a20 column status format a12 column actual_start_date format a36 column run_duration format a14

select         job_name, status, actual_start_date, run_duration from         dba_scheduler_job_run_details where         job_name = ‘GATHER_STATS_JOB’ order by         actual_start_date ;

 

JOB_NAME STATUS ACTUAL_START_DATE RUN_DURATION ——————– ———— ——————————– ————– GATHER_STATS_JOB SUCCEEDED 21-JAN-10 22.00.03.629836 +00:00 […]

Number of locks that can acquire with parallel DML statements

Came across this good table while scrolling the documentation,

When you need to do a parallel DML and that involves partitions, give a serious thought about the DML locks that can acquire. Below table gives you a handy info for the same.

Source:- here

 

Type of Statement Coordinator Process Acquires: Each Parallel Execution […]