Installing Oracle Database 11g R2 on Linux with ASMIn this guide we are going to cover Oracle Database 11g R2 installation on Linux with ASM. Automatic Storage Management (ASM) is a feature that has be introduced in Oracle 10g to simplify the storage of Oracle datafiles, controlfiles, logfiles and backups. ASM will be used as the file system and volume manager for Oracle Database files (data, online redo logs, control files, archived redo logs), and the Fast Recovery Area.
NOTE: ASMLib in the Unbreakable Enterprise Kernel. ASMLib - Linux specific ASM library and its associated driver. The Oracle ASMLib kernel driver is now included in the Unbreakable Enterprise Kernel. No driver package needs to be installed when using this kernel. The oracleasm-support and oracleasmlib packages still need to be installed. The oracleasm-support can be installed from Oracle Linux ISO image. For other Linux flavors could be found here – (Download section for particular Linux distribution) The oracleasmlib can be downloaded from ULN (Unbreakable Linux Network), subscription is required. Non-subscribers are free to use the similar package built for RHEL on their Enterprise Linux machines, which we will use in this tutorial.
What we are going to show: 1. Installing Oracle Enterprise Linux and creating virtual hard disks in VMware for ASM disks 2. Creating recommended OS groups and user for Grid Infrastructure 3. Creating login scripts for grid and oracle users 4. Installing Oracle ASM packages 5. Creating ASM disk volumes 6. Downloading and installing Oracle Grid Infrastructure software 7. Creating ASM disk groups 8. Installing Oracle database software and create database instance
1. Installing Oracle Enterprise Linux and creating virtual hard disks in VMware for ASM disks Installation of the Oracle Linux in VMware environment has been described in the following article: Installing Oracle Linux in VMware virtual machine Once we have Oracle Linux up and running we have to shut it down and create virtual hard disks which will be used for ASM disk groups. Normally it would be a kind of SAN storage for example, attached to the Linux OS, sometimes several disks visible as multipath devices or raw devices. However in the end it’s always a set of available disks mounted and accessible for Linux OS like a normal physical disk drives.
1. CRSDISK1 (100 MB) – for CRSVOL1 disk where Cluster Ready Services (CRS) files will be stored. CRS provides many system management services and interacts with the vendor clusterware to coordinate cluster membership information. 2. DATADISK1 (10 GB) – disk for DATAVOL1 disk. Here database will keep all datafiles, control files, log files … 3. FRADISK1 (10 GB) – disk for FRAVOL1 disk for database Fast Recovery Area (FRA) files. For example: database backup files, copy of database control files. Open virtual machine properties window and use wizard to create new virtual hard disks:
Once virtual hard disks have been created power on virtual machine and let the Oracle Linux start. Last Updated (Tuesday, 15 May 2012 18:26)
|
Oracle user account on Linux good practiceMain user for most of the oracle products, especially for Oracle Database installations is an oracle user account. Oracle-validated package does create such account automatically with proper group membership configuration and "random" unknown password. [root@test-host ~]# useradd -m -n fred [root@test-host ~]# passwd fred Changing password for user fred. New UNIX password: BAD PASSWORD: it is based on a dictionary word Retype new UNIX password: passwd: all authentication tokens updated successfully. [root@test-host ~]# id fred uid=54322(fred) gid=100(users) groups=100(users) [root@test-host ~]# As we can see user fred belongs to group "users" by default. [root@test-host ~]# usermod -g users -G dba fred [root@test-host ~]# id fred uid=54322(fred) gid=100(users) groups=100(users),54322(dba) [root@test-host ~]#
Last Updated (Wednesday, 02 May 2012 13:44)
Installing Oracle Database 11g R2 on LinuxIn article Installing Oracle Linux in VMware virtual machine we covered installation of Oracle Linux 5U8 including oracle-validated package. Now, our system is ready for Oracle database installation, and no additional configuration tasks is required at this moment. Note: Most of the time we work with OS from remote locations and target servers are located in data centers or somewhere else. In this tutorial we assume that our server is located in a remote location and we use remote access tools in order to connect to the Linux terminal, transfer installation packages, and run Oracle Universal Installer on our local (client) machine.
What we are going to show: 1. Downloading Oracle database 11g installation packages from Oracle websites 2. Installing local X-Server Xming to be able to display GUI applets from a remote server on our local desktop, like we were sitting in front of the server. 3. Connecting to Linux server using WinSCP and transferring installation packages. 4. Connecting to Linux server via SSH protocol using PuTTY and reset password for oracle user (WinSCP and PuTTY how-to can be found here: Enter The Linux ). 5. Configure PyTTY session with port forwarding enabled to be able to display GUI windows via Xming server 6. Unpacking and running Oracle Universal Installer to install Oracle database software 7. Creating new Oracle database instance with Enterprise Manager Database Control 8. Testing our installation connecting to running database instance using the following tools:
Let’s get started… 1. Download Oracle Database software installation package from Oracle Technology Network We are going to download Linux 64bit version Oracle Database 11g Release 2 (11.2.0.1.0) for Linux x86-64 2. Installing and running Xming X Server on Windows host Xming will start minimized in system tray next to the system clock.
Last Updated (Tuesday, 15 May 2012 18:07)
Installing Oracle Linux in VMware virtual machineWhat is Oracle Linux? Oracle Linux is an open source operating system available under the GNU General Public License (GPL) and is Oracle Linux includes two kernels:
In this tutorial we are going to install Oracle Linux 5 Update 8 (64 bit) prepared to install Orcale Database 11g on it. What we are going to cover: 1. New virtual image creation 2. Linux Installation using Linux ISO Image downloaded from Oracle eDelivery website
Last Updated (Friday, 27 April 2012 21:14)
A bit of fun with cut, paste, join and sort in Linux1. cut - Removes sections from each line of files. col_1 col_2 col_3 one two three four five six seven eight nine ten eleven twelve
cut -f2 file_numbers.txt col_2 two five eight eleven
cut -f1,3 file_numbers.txt col_1 col_3 one three four six seven nine ten twelve
Last Updated (Thursday, 12 April 2012 10:09)
How To Setup SSH equivalence , password-less SSH authenticationHow To Setup SSH equivalency, password-less SSH between multiple hosts.Imagine you have to administer more than one Linux hosts in your network, or clustered environment. You would like to connect to each host in your environment in a secured way, but without providing the password each time. Here's is a quick guide how to configure your hosts for password less authentications.
Approach number one:
by using /usr/bin/ssh-copy-id script (available in most of the Linux flavours) # Shell script to install your identity.pub on a remote machine # Takes the remote machine name as an argument. # Obviously, the remote machine must accept password authentication, # or one of the other keys in your ssh-agent, for this to work. [Trinity@host-1 ~]$ ssh-copy-id -i ~/.ssh/id_dsa.pub Trinity@host-2 30 Trinity@host-2's password:
Last Updated (Thursday, 01 December 2011 15:22) Installing Oracle RAC 11gR2 on Linux 64bitYet another way of installing Oracle RAC 11gR2
1. IntroductionOracle Real Application Clusters (Oracle RAC) enables an Oracle database to run across a cluster of servers, providing fault tolerance, performance, and scalability with no application changes necessary. Oracle RAC provides high availability for applications by removing the single point of failure with a single server. This guide describes how to install, configure, and manage Oracle RAC, Oracle Clusterware, and Oracle Automatic Storage Management (Oracle ASM). It provides examples for how you could deploy Oracle RAC on a two-node cluster, using the Oracle Linux operating system. This installation guide assumes several points, see below.
Last Updated (Monday, 14 May 2012 12:45)
Moving SPFILE from file system to ASM (ORACLE RAC11g)
1. Create spfile in ASM "+RACDB_DATA" disk group Last Updated (Tuesday, 09 August 2011 11:08)
How to multiply control files in Oracle DB RAC 11gThis examle shows how to multiply control files in Oracle Database RAC 11g.
An example cluster database racdb1 is up and running on two nodes (rac1 and rac2)
Two database instances: [racdb11] and [racdb12]
1. SHUTDOWN the database and start an instance [racdb11] only on the first node (rac1) and check the current configuration. Next, shutdwon an instance and start it up into "nomount" mode Last Updated (Tuesday, 09 August 2011 10:28)
Oracle DBA Interview Questions Answered: Technical60 Oracle Database Administration (DBA) Interview Questions (Technical)
1. What is an Oracle Instance?
An Oracle database server consists of an Oracle database and an Oracle instance. Every time a database is started, a system global area (SGA) is allocated and Oracle background processes are started. The combination of the background processes and memory buffers is called an Oracle instance. We can run multiple instances on the same Oracle Database Server, where each instance connects to its database.
Oracle instance includes:
SGA - System or Shared Global Area
Components of SGA:
Background Process (10/11g database):
Mandatory Processes
Optional Process
Last Updated (Tuesday, 09 August 2011 10:31)
Copy SQL Profiles to another Oracle databaseCopying SQL Profiles from one database to another involves the following simple steps:
Last Updated (Tuesday, 09 August 2011 11:04)
|
- Physical Logical Oracle Database Limits
- Managing VMware images from command line using vmrun tool
- UNIX Calendar - missing days in 1752
- DBMS_STATS in an Oracle Database
- A very cool dollar view V$SESSION_LONGOPS
- How to disable SSL and redirect to port 8333 VMWare Server 2.0
- Types of SQL Statements
- Show top Memory and CPU users using ps
- Delete large numbers of instances in Oracle SOA Suite 11g
- Installing Oracle SQL Developer in Ubuntu - complete script
- Story about Timbuktu, Tombouctou, Mali
- Creating an online Phone Book with Oracle Database and SQLDeveloper
- GRUB 2 Restore after Windows installation
- Screen saver killer for windows
- JVM memory allocation between the managed servers in WLS 10.3
- Identifying locked objects and killing the session in DB
- Orcle APEX Manage HTTP remote access
- Installing Oracle AIA 11g Foundation Pack on Linux 64bit
- Ho to uninstall Oracle SOA Suite 11g & WebLogic Server
- Oracle database startup shutdown script

























