Subscribe to Posts by Email

Subscriber Count

    699

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

Quiz Post #8: How does RAC Instance failure/membership detection happens in Clusterware/RAC?

 

We all know that CGS (when 10g CRS uses, its OCSSD), (When used third party clusterware, CM) will provide Cluster group service which manages nodes integrity and restart them when there is node level (hardware,network,OS, scheduling) issues happens. So it means the CGS will manage the node level issues and also manages the cluster […]

Quiz Post #7: Get sql trace without reexecuting it – 11g DBMS_SQLDIAG

In general you will need to set the SQL trace or events (10046,10053) and run the problematic query and can obtain the sql execution statistics to trace files.

or

[…]

Quiz Post #5: Restore statistics and history facts

Q1. Can we get old statistics restored for an object for example for a index or a table ?

Yes we can get the old statistics restored from Oracle version 10g onwards.However, if you use ANALYZE for statistics collection in 10g, automatic saving is not possible.

Q2. If so, where do the statistics history stored […]

Tracing Sessions: Single SQL_ID, Single Process, New 11g Event Syntax

Happy Reading!!!

Hope you already aware of tracing sessions with different methods

11g onwards, you can trace a session (other session) with in the alter system command itself , no worries of finding pid etc etc. for example like below

SQL> alter session set events ‘sql_trace {process : pid = <pid>, pname = <pname>, […]

Quiz Post #4: Purge single sql from Shared Pool?

 

How to purge a single statement from shared pool?

Additional info. (Thanks to my friend colleague for updating about the version its possible and the event)

For 10g.

The enhanced DBMS_SHARED_POOL package with the PURGE procedure is included in the 10.2.0.4 patchset release.

10.2.0.2 and 10.2.0.3 customers can download and install RDBMS patch […]

Quiz Post #3: Which background daemon writes to OCR Disk, crsd or cssd?

 

Which background daemon writes to OCR disk? or the voting disk?

CRSD? Answer No

CRSD just read the OCR to know about its resources.

Its OCSSD under the following conditions , Oracle cluster synchronization service daemon (OCSSD) is responsible for Writing to OCR registry.

a. New Node Addition /Deletion

b. New Service Addition / […]

Quiz Post #2: Why you need to increase the cache size for sys.audsess$ sequence in RAC

 

Why you need to increase the cache size of sys.audsess$ sequence in RAC?

Answer:-

Background:- In oracle database every session must have an AUDSID (v$session.audsid) when the session spawns/created in database, this number is derived from a sequence called sys.audsess$ where the cache option set to 20 and noorder.

When you have an database […]

Quiz Post #1 : SQL Magic

Q: is it my possible to make my query to change from “select ‘what is my name’ from dual” to “select ‘you’r Geek DBA’ from dual” during execution.

A: this feature is called “query equivalence”.

query equivalence is declared using the dbms_advanced_rewrite.declare_rewrite_equivalence procedure, and uses the syntax:

dbms_advanced_rewrite.declare_rewrite_equivalence(declaration_name,source_statement,target_statement);