My experience with ORA-07445: exception encountered: core dump [kglic0()+1086]

April 22nd, 2013 | Posted in 11gR2, Blog | No Comments

Introduction:

Oracle defines the ORA-7445 as an unhandled exception error that could be result of an Oracle bug. The ORA-7445 errors depend on the version of the Oracle software, OS version.
For more details about the error, you need to check the trace files generated. The ORA-7445 exception generates a trace file located under the CORE_DUMP_DEST directory for oracle versions prior to 11g and under the ADR Home / cdump (Automatic Diagnostic Repository) for 11g versions.
This article is not indented to give solutions to all ORA-7445 errors. For any details about the ORA-7445 errors please use the ORA-600/ORA-7445/ORA-700 Error Look-up Tool [ID 153788.1] and open a service request.

(more…)

Scridb filter


Incremental updated backup failed after database restore.

February 4th, 2013 | Posted in 11gR2, Blog, RMAN | 1 Comment

Problem:

The Incremental updated backup of an 11.2.0.3 database is failing after restore of the database datafiles.

(more…)

Scridb filter


CBO unnests subqueries

February 1st, 2013 | Posted in 11gR2, Blog, oracle optimizer | 1 Comment

Problem:
In production database with exact version 11.2.3.0, a single execution of the query took about 3.7 minutes to run (144 executions), lately, one execution takes 20 minutes.

The query looks like this;


SELECT SUBSTR(AKQ.SOLD_TO, 1, 4000),

       SUBSTR(AKQ.ORDERED_DATE, 1, 4000),

       SUBSTR(AKQ.CUST_PO_NUMBER, 1, 4000),

       SUBSTR(AKQ.ORDER_NUMBER, 1, 4000),

       SUBSTR(AKQ.TRX_NUMBER, 1, 4000),

       SUBSTR(AKQ.SHIP_VIA, 1, 4000),

       SUBSTR(AKQ.WAYBILL_NUMBER, 1, 4000),

       SUBSTR(AKQ.APCW_CUSTOMER_ORG_ID, 1, 4000),

       SUBSTR(AKQ.DELIVERY_ID, 1, 4000),

       AKQ.DELIVERY_ID,

       AKQ.ORDER_NUMBER,

       AKQ.TRX_NUMBER

  FROM ONT_PRT_ORDER_INVOICE_V AKQ

 WHERE ORDER_NUMBER = :ICXBIND0

(more…)

Scridb filter


Troubeshooting Oracle Backup to Tape Problem;

January 18th, 2013 | Posted in Blog, RMAN | No Comments

Problem:

We realized Oracle RMAN Backups to Tape for small and big databases are waiting for days and showing running status in V$RMAN_BACKUP_JOB_DETAILS.
RMAN backup job logs are stopped to show tape channels allocation which indicates tape backup issue not disk.

Troubleshoot the issue:

Oracle provides a diagnostic tool named “sbttest”. This utlity test media management software by attempting to communicate with the media manager just like the Oracle Database.
More information can be found on My Oracle Support Document ID: How To Verify A Media Manager Layer Installation ? [ID 942418.1]

(more…)

Scridb filter


Revert security configuration changes for 11g

December 20th, 2012 | Posted in 11gR2, Blog | No Comments

The following two files can be executed to revert new security configuration changes in 11g to 10g configuration;

$ORACLE_HOME/rdbms/admin/undopwd.sql
$ORACLE_HOME/rdbms/admin/undoaud.sql

For more details about Security changes in 11g;
http://docs.oracle.com/cd/E14072_01/network.112/e10574/whatsnew.htm

Scridb filter


Export Table statistics from one user to another

December 13th, 2012 | Posted in 11gR2, Blog | No Comments

Introduction:

This article describes how to export / import table statistics from one user to another.
The goal is to import table statistics of the user wissem to a user wiss. The table conserned is named W_WRKFC_EVT_FS. Both users are in the same database. In the case of the users are created in different databases, the same steps can be used by using export/import datapump instead of create the table statistics using CTAS (Create Table As Select).

(more…)

Scridb filter


11g; Sql Plan Management

December 3rd, 2012 | Posted in 11gR2, Blog | 1 Comment

Introduction:

This article describes how to manage optimal SQL execution plans using SQL plan management. SQL plan management preserves efficient execution plans and evaluates every changed plan. Plan changes can be due to the system change (Database upgrade, changes in database parameters, changes in optimizer parameters, changes in optimizer statistics, system configuration, etc …).
SQL plan management (SPM) is a proactive way to guarantee stable performance when system changes.

This article doesn’t cover all the SPM functions. But, it is a good start to understand some of the SPM capabilities.

Load changed SQL Text to the SQL plan baselines:

It is not always allowed to change the SQL Text of bad SQL. As part of tuning effort, the DBA can include hints, force the execution plan changes; change the table joins orders, etc …

In the following example, I am showing how to associate a good plan of a changed SQL Text to an already sub-optimal sql plan.

(more…)

Scridb filter


11gR2; Troubleshooting OHAS error – autorun file for ohasd is missing

October 27th, 2012 | Posted in 11gR2, ASM, Blog, RAC | No Comments

Introduction:
The present document provides a list of steps to solve OHAS error – autorun file for ohasd is missing.

Environment:

The database server version is 11.2.0.3.4 running on Oracle Enterprise Linux 6. The Oracle clusterware version is 11.2.0.3.4 with Patch Set Update 4 applied.

(more…)

Scridb filter


Troubleshooting ASM error – ORA-15063: ASM discovered an insufficient number of disks for diskgroup

October 27th, 2012 | Posted in 11gR2, ASM, Blog | No Comments

Introduction:
The present document provides a list of steps to solve ASM ORA-15063: ASM discovered an insufficient number of disks for diskgroup.

Environment:

The database server version is 11.2.0.3.4 running on Oracle Enterprise Linux 6. The Oracle clusterware version is 11.2.0.3.4 with Patch Set Update 4 applied.

(more…)

Scridb filter


Oracle Database 12c New features; Container Database and Pluggable Database (CDB & PDB)

October 1st, 2012 | Posted in 12c, Blog | 3 Comments

The new baby Oracle database 12c comes with a new key feature called Container Database and Pluggable Database (CDB & PDB). So what CDB and PDB mean?

Container Database (CDB): is the core data dictionary objects that comes after an Oracle database installation.
Pluggable Database: Data dictionary objects and data related to the application.
CDB and PDP relation: You can have many PDB plugged into a single CDB.

(more…)

Scridb filter


Data Guard Physical Standby Database Best Practices – Part II

September 29th, 2012 | Posted in 11gR2, Blog, dataguard standby database | 1 Comment

I have published the part 2 of the Data Guard Physical Standby Database Best Practices article, you can find it here:

http://allthingsoracle.com/data-guard-physical-standby-database-best-practices-part-ii/

Also remember, the part 1 can also be found here: http://allthingsoracle.com/data-guard-physical-standby-database-best-practices-part-i/

Hope you like it.
Wissem

Scridb filter


Reallocate Enterprise Manager 11g Master Node in RAC 11gR2 ;

September 7th, 2012 | Posted in 11gR2, Blog, enterprise manager, RAC | No Comments

In this post, I am going to show you how to reconfigure the DB Console master node to a new existing node in the cluster. This is a 3 node Real Application Clusters environment. We are using Enterprise manager db console 11g to monitor the 3 nodes RAC as opposed to Oracle Enterprise Manager grid control or EM cloud Control.

First of all, you need to check the actual configuration; the following output is showing ca25db01 is the actual master enterprise manager node, and only the Enterprise manager agent is running on the remaining nodes; ca25db02 and ca25db03.
(more…)

Scridb filter



11gR2; The SQL Performance Analyzer to decide an Index Deletion

June 25th, 2012 | Posted in 11gR2, Blog | No Comments

Introduction:

I have been recently asked to investigate a performance issue in one 11gR2 Oracle database.
I have found that some queries need to be tuned so the whole instance performance is improved.
I am concerned with one query executed thousands of time; this query is using an index hint.

Of course hints can improve the performance of the queries but in some cases it can be catastrophic.
The developer who wrote this query used an index hint to force the optimizer choosing an index in the execution plan. Indexes can improve the performance but bad indexes can be dramatic and cause performance issues. Identifying the adequate indexes is not an easy task. In the following example, I am going to show you how an index can cause performance issues, further, how a hint can result in a bad execution plan. In this example, I am going to use the Sql Performance Analyzer (SPA) to compare / analyze the current implemented query in production (using an index) with a query that supposes to improve the performance (without an index).

(more…)

Scridb filter


My Interview Published In The Oracle Magazine – July/August 2012

June 12th, 2012 | Posted in Blog | 1 Comment

This is me honoured again by Oracle after receiving the Oracle ACE award from Oracle Technology Network, Oracle Magazine published my interview in the peer-to-peer section. You can find the interview Click here

Hope you like it.

Cheers,
Wissem

Scridb filter


11gR2; RAC + Clusterware Silent Installation

May 31st, 2012 | Posted in 11gR2, Blog, RAC | No Comments

I have received few e-mails asking for examples of how to install the clusterware and the RAC database using the silent method. In this post I am going to show you how to perform the silent installation of an 11.2.0.2.0 clusterware and RAC database in Linux based system.

The steps below were performed on an RAC one host, composed of one node only, but, the same commands can be performed on N nodes without problems.

1- Prerequisites:

Before clusterware installation, you have to prepare the servers (system, storage, directories, users, groups and network).

You can follow the manual available on:

http://download.oracle.com/docs/cd/E11882_01/install.112/e22489/toc.htm
http://download.oracle.com/docs/cd/E11882_01/install.112/e24660/toc.htm

2- The Cluster Verify Utility:

Run the Cluster Verification Utility (CVU) to check the nodes in preparation for installation. The CVU checks the network connectivity, the hardware and the operating system.

(more…)

Scridb filter


Auto Restart Enterprise Manager Cloud Control Agent 12c;

March 5th, 2012 | Posted in 11gR2, 12c, Blog, enterprise manager, RAC | 3 Comments

Introduction:

Oracle Restart is a component added to the 11gR2 in order to improve the high availability of different database resources.
Database instances, listeners are resources that can be automatically restarted after a hardware or software failure or whenever the server host restarts.

These components can be easily added to the Oracle Restart using the crsctl add command.

In this article, I am going to show you how to add the Enterprise Manager Agent 12c component to the Oracle Restart.

The following procedure has been tested on 11.2.0.3 RAC environment under Redhat Enterprise Linux. Apply the following steps on each node of the cluster.

(more…)

Scridb filter


Generate AWR report Automatically

March 1st, 2012 | Posted in 11gR2, AWR, Blog | 12 Comments

I have been asked to write a shell script that will automatically generate an AWR report from current last snapshot -1 to the current snapshot. Then emailed automatically the resulting report to the db team list;

These are the little 2 scripts I have written and tested on 7 nodes RAC 11gR2 database. In the case of RAC database, you copy the scripts across the nodes and modify the instance number ID from the first script. You can also use them for a single instance database.

(more…)

Scridb filter


ORA-19685: SPFILE could not be verified

February 8th, 2012 | Posted in 11gR2, Blog, RMAN | 2 Comments

During the past few days one of the databases has been receiving the following errors when a ‘restore spfile validate’command has been executed. The database version 11gR2 (11.2.0.2.3).

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 02/07/2012 10:51:49
ORA-19660: some files in the backup set could not be verified
ORA-19685: SPFILE could not be verified

(more…)

Scridb filter


RAC 11gR2; Bug 11807012 really fixed with PSU3?

February 7th, 2012 | Posted in 11gR2, Blog, RAC | 3 Comments

The Issue:

crsctl status res -t output shows ora.asm CHECK TIMED OUT on the node 1 (=srv979db01) of 7 nodes cluster.

We are running an 11.2.0.2.3 version (with Patch set Update 3 applied ; refer to my previous article how to apply PSU3 in RAC environment; article here).

Here is the output of crsctl status res -t command;

(more…)

Scridb filter


Subscribe


Polls

which oracle topic interests you most?

View Results

Loading ... Loading ...


Oracle Class Tweets


Recent Posts


Recent Comments

  • Jaspreet: Brilliant explanation.
  • Yousuf: Very Nice… Just wanted to check you have done all patching at Node 1 only.. is there any thing need to...
  • Yousuf: Very Nice.. Thanks for sharing.. Once question.. You have executed all commands on Node 1 only.. Is there any...
  • Emir: Thanks… Great article
  • borse firmate: Thank you for another informative blog. The place else may just I am getting that kind of information...
  • leandro: why this parameter is systemwide? could you read from a asm instance from one failure group and from the...
  • Mohammad: paul, we create pfile from target database to source database and later we change database name, and...
  • Muhammad Ikram: Thanks Brother for sharing pearls of knowledge. May ALLAH reward you for this both here and...
  • rgrover: Thanks for the POST. I recently encounter similar issue. Your POST helped.
  • gopalredy: really its very use full to dbas
  • Vivian: This is awesome! Thank you so much!
  • henry zhong: CDB=DB, and PDB=SCHEMA but in a sub dictionary?
  • Dehbashee: Salam Brother, Thanx for sharing, however, i would be interested in chaging the password for the grid user...
  • wissem: No we don’t need that :) Just the scripts I posted above
  • Md. Tanweer: Thanks for posting the material. I really appreciate if you can send me, if you have tutorial for 11g...
  • christiaan: Thanks!! This has been bugging the hell out of me for so long.
  • Rajasekhar: Thank you
  • Samarjit Panigrahy: Very Nice and Simple Demo… Cool :)
  • cq: Any reason not to use auto patch for both CRS and RAC homes with one command? Or use opatch auto for RAC home as...
  • Hitesh: Hi, Can we use this RACcheck tool on oracle SE version ? Thanks