Oracle 11g installation guide prepared by chowdary This is a 16 step Oracle 11g installation guide that covers a typical installation scenario with screenshots. 1. Select installation method Following two installation methods are available: Basic Installation – Choose this to perform the full Oracle Database 11g installation with standard configuration options. You can use only file system for storage in this option. Advanced Installation – This gives your full control over the installation, including the ability to choose Automatic Storage Management. Select this option as shown below. Fig - Select Installation Method 2. Specify Inventory directory and credentials Enter the following information: Enter the inventory directory: /u01/app/oraInventory Specify operating system group name: oinstall
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Oracle 11g installation guide prepared by chowdary
This is a 16 step Oracle 11g installation guide that covers a typical installation scenario with screenshots.
1. Select installation method
Following two installation methods are available:
Basic Installation – Choose this to perform the full Oracle Database 11g installation with standard configuration options. You can use only file system for storage in this option.
Advanced Installation – This gives your full control over the installation, including the ability to choose Automatic Storage Management. Select this option as shown below.
Fig - Select Installation Method
2. Specify Inventory directory and credentials
Enter the following information:
Enter the inventory directory: /u01/app/oraInventory Specify operating system group name: oinstall
In this screen, the Installer verifies that your environment meets all of the minimum requirements for installing and configuring the products that you have chosen to install. You must manually verify and confirm the items that are flagged with warnings and items that require manual checks.
6. Select Configuration Option
Following three configuration options are available:
Create a Database – select this option Configure Automatic Storage Management (ASM) Install software
Oracle 11g installation guide prepared by chowdary
Enter the following information:
Global Database Name: devdb.example.com. An Oracle database is uniquely identified by a Global Database Name, typically of the form “name.domain”
SID: devdb
9. Specify Database Configuration Details
There are four different tabs in this screen as shown below:
Memory Tab o Select the check-box to Enable Automatic Memory Managemento Drag the bar to allocate the memory. This will automatically
allocate memory size for SGA and PGA depending on the total database memory allocated.
Character Sets Tab. Following three character set options are given in this tab.
o Use the defaulto Use Unicode (AL32UTF8)o Choose from the list of character sets. Select Database
Character Set as Unicode standard UTF-8AL32UTF8 – Select this option.
Security Tab – Just leave the defaults in this tab.
Sample Schema Tab – Just leave the defaults in this tab.
Oracle 11g installation guide prepared by chowdary
Fig - Select Database Config Details with Memory Tab
10. Select Database Management Option
Following two management options are available:
Use Grid Control for Database Management o Management Service: Choose an agent.
Use Database Control for Database Management- Select this option. o Select the check-box to Enable Email Notificationso Outgoing mail (SMTP) Server:o Email Address:
Oracle 11g installation guide prepared by chowdary
Fig - Select Database Management Option
11. Specify Database Storage Option
Following two storage options are available:
File System – Select this option. o Specify Database File location: /u01/app/oracle/oradata/
Automatic Storage Management. ASM simplifies database storage administration and optimizes database layout for I/O performance.
12. Specify Backup and Recovery Option
Enable automated backup as shown below. If you’ve configured ASM, you can choose to store the automated backups on ASM. If not, select File System option.
Oracle 11g installation guide prepared by chowdary
Fig - Specify Backup and Recovery Options
13. Specify database schema password
Enter the password for sys, system, sysman, dbsnmp schemas. You have the option of either using the same passwords or different password for all the accounts in this screen.
Oracle 11g installation guide prepared by chowdary
The automatic Storage Management (ASM) Pocket Reference Guide
ASM Diskgroups
Create diskgroup
CREATE DISKGROUP disk_group_1 NORMAL REDUNDANCYFAILGROUP failure_group_1 DISK '/devices/diska1' NAME diska1,'/devices/diska2' NAME diska2,FAILGROUP failure_group_2 DISK '/devices/diskb1' NAME diskb1,'/devices/diskb2' NAME diskb2;
Drop disk groups
DROP DISKGROUP DATA INCLUDING CONTENTS;
Add disks
ALTER DISKGROUP DATA ADD DISK '/dev/sda3;
Drop a disk
ALTER DISKGROUP DATA DROP DISK DATA_0001;
Resize all disks in a disk group
ALTER DISKGROUP DATA RESIZE ALL SIZE 100G;
UNDROP DISKS clause of the ALTER DISKGROUP
ALTER DISKGROUP DATA UNDROP DISKS;
Rebalance diskgroup
Oracle 11g installation guide prepared by chowdary
ALTER DISKGROUP DATA REBALANCE POWER 5;
Check Diskgroup
alter diskgroup data check;
alter diskgroup data check norepair;
Diskgroup Metadata Backup
md_backup -b asm_backup.mdb.txt-g data,fra
ASM Specific Init.ora Parameters
.cluster_database= true
.asm_diskstring = ‘/dev/sd*1’
.instance_type=asm
.shared_pool_size=100M
.large_pool_size = 80M
.db_cache_size=60M
.asm_diskgroups = ‘DATA’,’FRA’
.processes=128
Initialize ASM for non-RAC
./localconfig add
Manually start CSSD (non-RAC)
/etc/init.d/init.cssd start
Manually stop CSSD (non-RAC)
Oracle 11g installation guide prepared by chowdary
/etc/init.d/init.cssd stop
Resetting CSS to new Oracle Home
localconfig reset /apps/oracle/product/11.1.0/ASM
ASM Dictionary Viewsv$asm_aliasLists all aliases in all currently mounted diskgroups v$asm_clientLists all the databases currently accessing the diskgroups v$asm_diskLists all the disks discovered by the ASM instance v$asm_diskgroupLists all the diskgroups discovered by the ASM instance v$asm_fileLists all files that belong to diskgroups mounted by the ASM instance v$asm_operationReports information about current active operations. Rebalance activity is reported in this view v$asm_templateLists all the templates currently mounted by the ASM instance v$asm_diskgroup_statsame as v$asm_diskgroup but does discover new diskgroups. Use this view instead of v$asm_diskgroup v$asm_disk_statsame as v$asm_disk but does not discover new disks. Use this view instead of v$asm_disk
Asmcmd CommandscdChanges the current directory to the specified directory duDisplays the total disk space occupied by ASM files in the specified ASM directory and all its subdirectories, recursively findLists the paths of all occurrences of the specified name (with
Oracle 11g installation guide prepared by chowdary
wildcards) under the specified directory ls +data/testdbLists the contents of an ASM directory, the attributes of the specified file, or the names and attributes of all disk groups lsctLists information about current ASM clients lsdgLists all disk groups and their attributes mkaliasCreates an alias for a system-generated filename mkdirCreates ASM directories pwdDisplays the path of the current ASM directory rm / rm -fDeletes the specified ASM files or directories rmaliasDeletes the specified alias, retaining the file that the alias points to lsdskLists disks visible to ASM md_backupCreates a backup of all of the mounted disk groups md_restoreRestores disk groups from a backup mkaliasCreates an alias for system-generated filenames remapRepairs a range of physical blocks on a disk cpCopies files into and out of ASM:
ASM diskgroup to OS file system OS file system to ASM diskgroup ASM diskgroup to another ASM diskgroup on the same server ASM disk group to ASM diskgroup on a remote server
The Official Real Application Clusters (RAC) Pocket Reference Guide
Cluster Verification (cluvfy)
Post-checks for hardware and operating system setup
runcluvfy.sh stage -post hwos -n node1,node2
Pre-checks for cluster services setup
Oracle 11g installation guide prepared by chowdary
Setup User Equivalence1. ssh-keygen –t rsa #Take all defaults2. cd $HOME/.ssh3. cat id_rsa.pub #Copy the contents of the output4. # ssh to remote host as oracle5. cd .ssh6. vi authorized_keys #paste contents of id_rsa.pub
Note:
Repeat for all the nodes including local node Make sure that the group permissions are not writeable
Oracle Clusterware 11g Upgrade Considerations
1. Make sure that you have enough space for the OCR2. OCR space utilization doubles during the upgrade
Relevant Logfiles OS - /var/log/messages CRS - $ORA_CRS_HOME/log/node-name/crsd/node.log
Oracle 11g installation guide prepared by chowdary