Oracle Database Recovery Fom Physical Corruption(ORA-1578)

September 16th, 2010 1 comment
Hello Friends, I am sharing the information how to deal with Oracle physical block corruption with example in detail. Physical block corruption is recorded as ORA-1578 in database alert log file every time oracle reads any corrupted block including the corrupted object information from Oracle 10g onwards. Oracle calculates the checksum of data block before it actually fetch the data block from disk, if t

RMAN Cataloging Backups (Archivelogs in RMAN 10g/11g)

September 9th, 2010 1 comment
How to catalog backups / archivelogs / datafile copies / control file copies, etc. in various versions of Oracle (Oracle Server Version 9.2.0.8.0 to 11.1)RMAN Catalog: It is mainly used for following: Can store database backup scripts and backup information to safe place(RMAN Repository) apart from target database control file. Can add backup pieces and image copies of backup on disk to the RMAN repository.

Phpunit test case in symfony 1.4

June 13th, 2013 No comments
Unit test case example for Class called UUIDGenerator my test class file path was /test/phpunit/unit/UUIDGeneratorTest.php <?php require_once dirname(__FILE__) . '/../bootstrap/unit.php'; class unit_UUIDGeneratorTest extends sfPHPUnitBaseTestCase { public function testgenerateUUIDLongValid() { $uuidObj = new UUIDGenerator(); $key = 553; $key = $key . rand() . date('Y
Categories: Technical Tags:

Sample phpunit.xml file for symfony project

June 12th, 2013 No comments
copy below phpunit.xml file under the root dir of your project and run tests under (test/phpunit/unit) dir with phpunit configuration /usr/local/php5.3.0/bin/phpunit –configuration phpunit.xml –coverage-html ./testreport/coverage –coverage-clover ./testreport/coverage/coverage.xml test/phpunit/unit <phpunit bootstrap="test/phpunit/bootstrap/unit.php" backupGlobals=&q
Categories: Technical Tags:

Setup Continuous Integration With Jenkins and PHPUnit

June 12th, 2013 No comments
Jenkins is an open source continuous integration tool written in Java. The project was forked from Hudson after a dispute with Oracle, which claims the right to trademark the Hudson name and has applied for such a trademark as of December 2010. Wikipedia Jenkins focuses on the following two jobs: Building/testing software projects continuously - It provides continuous integration system, which helps obtain fr

Creating PFILE to Local file system from SPFILE stored in ASM Diskgroup

March 30th, 2013 No comments
How to create pfile from spfile stored in ASM disk group We can create pfile from spfile stored in ASM Disk Group either using RMAN (complex method) or using bellow SQL command (simple method): 1. First get name and location of spfile stored in ASM disk group. Look pfile content stored in file system; Usually PFILE will contain information similar to below If SPFILE is stored in ASM: $ cat $ORACLE_HOME/dbs/
Categories: Technical Tags:

strategy-design-pattern

September 25th, 2012 No comments
Introduction By definition, Strategy design pattern allows an object to change its behaviour when its internal state changes. The object will appear to change its class. The Strategy design pattern enables a client to choose which algorithm to use from a family of algorithms and gives it a simple way to access it. The algorithms can also be expressed independently of the data they are using. The Strategy Patter
Categories: Uncategorized Tags:

difference between self and $this and static

August 31st, 2012 No comments
$this is used to reference methods and properties of the current instance of a class. Declaring class properties or methods as static makes them accessible without needing an instantiation of the class. A property declared as static can not be accessed with an instantiated class object (though a static method can) The keyword self does NOT refer merely to the ‘current class’, at least not in a way t
Categories: Uncategorized Tags:

Recovery Manager (RMAN) Introduction

May 30th, 2011 No comments
Introduction: Recovery Manager (RMAN) first introduced in Oracle 8.0. It is a client/server based Oracle utility used to backup, restore, and recover database files. RMAN utility is included in Oracle software and installed automatically so no additional installation or license is needed for use. RMAN always stores metadata (RMAN Repository) of its operations (backup/restore/recovery) primarily in the control f

Creating PFILE to Local file system from SPFILE stored in ASM Diskgroup

May 28th, 2011 No comments
How to create pfile from spfile stored in ASM disk group We can create pfile from spfile stored in ASM Disk Group either using RMAN (complex method) or using bellow SQL command (simple method): First get name and location of spfile stored in ASM disk group. Look pfile content stored in file system; Usually PFILE will contain information similar to below If SPFILE is stored in ASM:$ cat $ORACLE_HOME/dbs/initp

Create Recovery Catalog For RMAN Backups

May 27th, 2011 1 comment
Recovery Catalog database is a database (RMAN Repository) that contains a special schema which record backup and recovery information(Metadata) performed on the target database by RMAN in Tables and Other supporting Objects of that schema. Recovery Catalog is optional because RMAN always records backup and recovery information in control file of target database. In this artical we will discuss: How to create a

Recover datafile form DP RMAN tape backup directly from tape

May 27th, 2011 No comments
Problem: Database is crashed and not functioning due to one missing non system datafile. Additional Information: Oracle database version Oracle 8.1.7.0.0 (8i) of size 10 GB is running on Solaris 5.8. Database is running in archive log mode and Online Full database backup RMAN tape backup is configured with Data protector (DPRMAN) no catalog is used for RMAN backup. No file system backup is available for that m