Showing posts with label Oracle 11g. Show all posts
Showing posts with label Oracle 11g. Show all posts

Friday, 16 May 2014

How to - Check the table size in Oracle 10g /11g

              To check actual tale size of oracle is really can be hectic for you if you dont know much about oracle blocks, extents, segment and specially PCT free and PCT used concepts, and there is no actual function in oracle to check the table size,
First, we must remember that Oracle table size is constantly changing as DML adds and re moves rows.  Also, we have many other factors that determine the "actual" size of a table:



Monday, 31 March 2014

Configure SSH equivalence For Oracle RAC

SSH password less Equivalence  in RAC nodes are the most important things that count as pre reqs for installing Oracle RAC for more than one node for all RAC related users like oracle who is owner of database and grid who is owner of grid infrastructure. Oracle 11g includes automatic password less equivalence but as you guys know if it returns an error it is one of the most hillarious thing you can ever face before Installing Oracle RAC (click the link for step by step guide of installing Oracle RAC) and at that time you always go for manual way which was very very difficult for new comers so here the easy way to configure password less equivalence for users in Solaris and Linux based operating systems.

Sunday, 9 March 2014

Oracle Optimizer Modes (All_Rows, First_Rows, Choose & Rule RBO)


The optimizer_mode is the most powerful of these silver bullet parameters and a change can radically alter the characteristics of your SQL execution workload. 

To see how important the optimizer_mode is to SQL execution, consider the following three-way table join which returns 100,000 rows:

Let’s run this SQL query with several different optimizer_mode values and observe the changes to the execution plans and SQL response times:










Thursday, 19 December 2013

How To -- Step by step guide for creating Disaster Recovery site for Oracle Apps R12

In this article, I tried to explain Disaster Recovery [DR] site creation for R12 in elaborate manner. It's a very much practical hands on article. By, following each steps carefully any one can create a R12 Disaster Recovery site. I tried to avoid theoretical details about Disaster Recovery unless required for practical implementation. Here I have given a real DR site creation process.


[By following this document any one create a physical standby Data guard site of oracle 11g database also].

Friday, 23 December 2011

Oracle Virtual Box Vm Released Version [4.1.8]


Oracle just released Oracle VM VirtualBox version 4.1.8!
Not only does this release fix the issues listed in the ChangeLog, but it also solves those last-minute Christmas present problems, and will help you stay sane while visiting relatives this vacation. ;-)
Download it right away.

Oracle Announcing The New Version Of VM [30.03]

Oracle announce the general availability of the latest Oracle VM 3.0.3,including Oracle VM Server for x86 and Oracle VM Manager, bringing customers great benefits with improved usability, manageability and security. See the enhancement details in "What's New". Customers can download the software at Oracle Software Delivery Cloud, select a Product Pack (Oracle VM) and Platform (x86 64-bit). Check additional resources:

Tuesday, 29 November 2011

Problems which can be Occur in Switching Over to a Standby Database

 Below are some common problem arrives when we commit switch over the 
most common problems are as follows

Switchover Fails Because Redo Data Was Not Transmitted


If the switchover does not complete successfully, you can query the SEQUENCE# column in the V$ARCHIVED_LOG view to see if the last redo data transmitted from the original primary database was applied on the standby database. If the last redo data was not transmitted to the standby database, you can manually copy the archived redo log file containing the redo data from the original primary database to the old standby database and register it with the SQL ALTER DATABASE REGISTER LOGFILE file_specification statement. If you then start log apply services, the archived redo log file will be applied automatically. Query the

Handling Logical Standby Database Failures

An significant device for management ordered standby database flops is the  
DBMS_LOGSTDBY.SKIP_ERROR procedure. Depending on how significant a table is, 
you might desire to manage one of the following:
  • Ignore flops for a table or exact DDL
  • Associate a retained method with a filter so at runtime a conclusion can be                                        made about skipping the declaration, executing this declaration, or executing a                         replacement statement
Taking one of these activities stops SQL Apply from stopping. Later, you can query the DBA_LOGSTDBY_EVENTS outlook to find and correct any difficulties that exist.

Problem In LogFile DestinatioProblem In LogFile Reachability Oracle Databasen Oracle Database

If you stipulate REOPEN for an OPTIONAL location stayed at, it is probable for the Oracle database to reuse online redo log records even if there is an wrongdoing archiving to the location stayed at in question. If you stipulate REOPEN for a MANDATORY location stayed at, log transport services stall the main database when redo written knowledge not able to be productively transmitted.
The REOPEN assign is demanded when you use the MAX_FAILURE attribute

Oracle Problems : Troubleshooting Of Oracle Data Guard

First I will describe about some common problem regarding Dataguard which are as follows:

Common Problems:

If you encounter a problem when using a standby database, it is probably because of one of the following reasons:

  • Standby Archive Destination Is Not Defined Properly
  • Renaming Datafiles with the ALTER DATABASE Statement
  • Standby Database Does Not Receive Redo Data from the Primary Database
  • You Cannot Mount the Physical Standby Database

Standby Archive Destination Is Not Defined Properly


If the STANDBY_ARCHIVE_DEST initialization factor does not stipulate a applicable list of directions label on the standby database, the Oracle database will not be competent to ascertain the list of directions in which to warehouse the archived redo log files. Check the DESTINATION and ERROR posts in the V$ARCHIVE_DEST scenery by moving into the subsequent query and assure the location stayed at is valid:


SQL> SELECT DESTINATION, ERROR FROM V$ARCHIVE_DEST;
 

Renaming Datafiles with the ALTER DATABASE Statement


You cannot rename the datafile on the standby site when the STANDBY_FILE_MANAGEMENT initialization parameter is set to AUTO. When you set the STANDBY_FILE_MANAGEMENT initialization parameter to AUTO, use of the following SQL statements is not allowed:
  • ALTER DATABASE RENAME
  • ALTER DATABASE ADD/DROP LOGFILE
  • ALTER DATABASE ADD/DROP STANDBY LOGFILE MEMBER
  • ALTER DATABASE CREATE DATAFILE AS

If you attempt to use any of these statements on the standby database, an error is returned. For example:
SQL> ALTER DATABASE RENAME FILE '/disk1/oracle/oradata/payroll/t_db2.log' to 'dummy';  

alter database rename file '/disk1/oracle/oradata/payroll/t_db2.log' to 'dummy' * ERROR at line 1: ORA-01511: error in renaming log/data files
ORA-01270: RENAME operation is not allowed if STANDBY_FILE_MANAGEMENT is auto 

Standby Database Does Not Receive Redo Data from the Primary Database

If the standby place is not accepting redo written knowledge, query the V$ARCHIVE_DEST scenery and review for wrongdoing messages. For instance, move into the subsequent query:
SQL> SELECT DEST_ID "ID",
  2> STATUS "DB_status",
  3> DESTINATION "Archive_dest",
  4> ERROR "Error"
  5> FROM V$ARCHIVE_DEST WHERE DEST_ID <=5;

ID DB_status Archive_dest                   Error   
-- --------- ------------------------------ ------------------------------------
 1  VALID    /vobs/oracle/work/arc_dest/arc                          
 2  ERROR    standby1                       ORA-16012: Archivelog standby database identifier mismatch  
 3  INACTIVE                            
 4  INACTIVE                    
 5  INACTIVE                                           
5  rows selected.

If the end wares of the query does not aid you, review the subsequent table of probable issues. If any of the subsequent circumstances survive, log transport services will bungle to spread redo written knowledge to the standby database:
  • The service label for the standby case is not configured in the right way in the tnsnames.ora record for the main database.
  • The Oracle Net service label individual by the LOG_ARCHIVE_DEST_n factor for the main database is incorrect.
  • The LOG_ARCHIVE_DEST_STATE_n factor for the standby database is not set to the worth ENABLE.
  • The listener.ora record has not been configured in the right way for the standby database.
  • The listener is not commenced at the standby site.
  • The standby case is not started.
  • You have adjoined a standby archiving location stayed at to the main SPFILE or text initialization factor record, but have not yet empowered the change.
  • You employed an invalid backup as the foundation for the standby database (for instance, you employed a backup from the erroneous database, or did not bring ahead the standby manipulate record employing the correct method).
 You Cannot Mount the Physical Standby Database

You not able to get on the standby database if the standby manipulate record was not brought ahead with the ALTER DATABASE CREATE [LOGICAL] STANDBY CONTROLFILE ... assertion or RMAN command. You not able to use the subsequent sorts of manipulate record backups:
  • An running system-created backup
  • A backup brought ahead employing an ALTER DATABASE assertion without the [PHYSICAL] STANDBY or LOGICAL STANDBY option
 My Next Post will be about Log File Destination Failure


 

Monday, 28 November 2011

Checking Oracle processes in windows.

How to check Oracle processes in windows using command line?

Is there any command in Windows like ps command in Unix for Oracle DBA?

In unix there is command called “ps“. Using ps command Oracle DBA can check all type of processes which are running in system. Ps command is very useful to administrating and monitoring oracle in unix/linux systems for all Oracle DBA.

But unfortunately there is no command available in windows just like ps in unix! Means there is no way to find out running processes in windows system using command line! Only task manager option is available in windows system for Oracle DBA. Using task manager we can check running processes in windows system. Task manager is GUI tool. Sometimes it is very difficult to monitoring and administrating Oracle on windows systems for Oracle DBA using GUI tool.

Monday, 31 October 2011

What is Oracle

Oracle (in aged Greece, a person in contact with the deities; from Latin, oraculum or divine announcement) declares it is the world's primary supplier of programs for knowledge organisation but it is best famous for its highly developed relational database yield (notably Oracle9i), which are employed in Fortune 1000 businesses and by more of the greatest Web sites. Oracle's relational database was the world's first to support the Structured Query Language (SQL), now an development standard.
When CEO Lawrence J. Ellison and a small number affiliates formed Oracle in 1977, they were out to confirm erroneous the existing model that relational databases could not be commercially viable. As validation of their triumph, they parlayed an first $2,000 financial endeavour in the financial gathering into an per annum profits surpassing $9.7 billion

Friday, 21 October 2011

The Common posiblity of Oracle Effieciency

I have been tasked with recognising modes we can melody our Oracle database for better performance. First, I desire to understand what are the most widespread determinants of oracle db presentation problems? What should I be looking for and when?

Thursday, 20 October 2011

Step By Step Instructions on Installing Oracle 10g R2 32-bit

Pre-Installation Task
  NOTE: Installing Oracle 10g on RedHat EL4 works matching way as that of on Cent OS 4.
             Installing Oracle 10g on RedHat EL3 works matching way as that of on Cent OS 3.

Wednesday, 19 October 2011

Transaction Management with LogMiner and Flashback Data Archive

LogMiner is an often dismissed yet very strong implement in the Oracle Database. It is employed to extract DML assertions from the redo log files—the primary SQL that produced the transaction and even the SQL that can change back the transactions. (For an introduction to LogMiner and how it works, cite to my Oracle Magazine portion "Mining for Clues.") Until now, this strong implement was ordinarily under-appreciated due to the deficiency of a more simple interface. In Oracle Database 11g, even so, Oracle Enterprise Manager has a graphical interface to extract transaction from the redo logs employing LogMiner,

Tuesday, 18 October 2011

Installation Of Grid Structure For Linux

Install the Grid Infrastructure

Make sure both virtual machines are started, then login to "ol6-112-rac1" as the oracle user and start the Oracle installer.
$ cd /host/software/oracle/11gR2/11.2.0.3.0/linux64_grid
$ ./runInstaller
Select the "Skip software updates" option, then click the "Next" button.


Easy Step By Step installation Of RAC On Linux

Oracle Linux 6 installation as you would for a basic server. A general pictorial guide to the installation can be found here. More specifically, it should be a server installation with a minimum of 4G+ swap, firewall and SELinux disabled and the following package groups installed:
  • Base System > Base
  • Base System > Client management tools
  • Base System > Compatibility libraries
  • Base System > Hardware monitoring utilities
  • Base System > Large Systems Performance
  • Base System > Network file system client
  • Base System > Performance Tools

Oracle Database 11g Release 2 (11.2.0.3.0) RAC On Oracle Linux 6.1 Using VirtualBox


Introduction

One of the large-scale obstacles stopping persons from setting up check RAC environments is the obligation for distributed storage. In a output natural environment, distributed storage is often supplied by a SAN or high-end NAS apparatus, but both of these choices are very costly when all you desire to manage is get some know-how establishing and utilising RAC. A lower alternate is to use a FireWire computer disk enclosure to permit two appliances to get access to the identical disk(s), but that still charges cash and needs two servers. A third choice is to use virtualization to phony the distributed storage.
Using VirtualBox you can run multiple Virtual Machines (VMs) on a lone server, permitting you to run both RAC nodes on a lone machine. In additon, it permits you to set up distributed virtual computer disks, overwhelming the obstacle of costly distributed storage.
Before you launch into this setting up, here are a couple of things to consider.

Monday, 17 October 2011

Auditing In Oracle Of Sys and Other Users

- 
- 
-  
SQL> SHOW PARAMETER AUDIT

NAME                 TYPE        VALUE
----------------------------------------------------
audit_file_dest      string      C:\ORACLE\PRODUCT\10.2.0\
                                 ADMIN\DB10G\ADUMP
audit_sys_operations boolean     FALSE
audit_trail          string      NONE
SQL>
 
Audit is disable by default, but can be enabled by audit_trail 
static parameter which can have following possible values.