Oracle 11g Installation
First, the Environment preparation
- Dividing area
/15000M
/tmp 4096M
/boot 100M
Swap 4096M
/u01 remaining space
2. Change host name, IP address
3. Install the Package
Then the Linux system needs to prepare the environment for Oralce to end here, the following is installed after the system installation of Oracle
4. Turn off SendMail to speed up system startup
5. Modify the Host table
Start check
6. Check that the host table configuration is in effect
6. Check if SSH is installed
7. View Swap and storage
8. Modify SHM
9. Add SHM to the boot file
10. Check if the SHM has been modified successfully
11. View System Architecture
12. Check that the/TMP partition is divided
13. Next check the installed 11.2.0.1 below these packages
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (+ bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
Glibc-2.5-24
Glibc-2.5-24 (+ bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (+ bit)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106 (+ bit)
libaio-devel-0.3.106
libaio-devel-0.3.106 (+ bit)
libgcc-4.1.2
libgcc-4.1.2 (+ bit)
libstdc++-4.1.2
libstdc++-4.1.2 (+ bit)
Libstdc++-devel 4.1.2
make-3.81
sysstat-7.0.2
Check the binutils, the installation is ready.
Check the COMPAT-LIBSTDC package and install it.
Check the Elfutils package and install it.
Check the GCC package, it's all set up.
Check the gcc-c++ package and install it.
Check the GLIBC package, it's already installed.
Check the Ksh package, it's already installed.
Check the Libaio package, it's already installed.
Create a directory/disk, upload the next required software from Windows to this directory
Software Xmanager Enterprise 4 uploads software to the/disk directory under Linux
View the uploaded packages
Start the installation package
Check the installation package
Check the UNIXODBC package, install it with Yum,
Check the Sysstat package, it's already installed.
14. Start building users and groups next
[[email protected] ~]#/usr/sbin/groupadd Oinstall (first set up Oinstall group)
[[email protected] ~]#/USR/SBIN/GROUPADD-G 502 DBA establishes DBA Group
[[email protected] ~]#/USR/SBIN/GROUPADD-G 503 oper set up Oper group
[[email protected] ~]#/usr/sbin/groupadd-g 504 Asmadmin set up Asmadmin Group
[[email protected] ~]#/USR/SBIN/GROUPADD-G 506 asmdba set up ASMDBA Group
[[email protected] ~]#/usr/sbin/groupadd-g 505 Asmoper set up Asmoper Group
[[email protected] ~]#/usr/sbin/useradd-u 502-g oinstall-g dba,oper,asmdba Oracle Create Oracle User
15. View the account information
16. Configuring Kernel Parameters
Make the modified kernel information effective
17. Configuration Directory
Oracle Base Directory
Oracle Inventory Directory
Oracle Home Directory
We have to create a total of 3 directories, the first is the software installation of the root directory, the second belongs to the list directory, the third belongs to the software directory.
Configuring Oracle-related Catalog files
Check if/U01 was created successfully
Check if/u01/app/oracle was created successfully
18. Configure the user's environment variables
19. Check Memory information
View memory,
View Swap
20. View U01 Partition
When the above checks are complete, we continue to check the user environment variables
Su-grid (Switch to Grid user check for appropriate environment variables)
Cat. Bash_profile
Export Oracle_base=/u01/app/grid
Export Oracle_sid=+asm
Export Oracle_home= $ORACLE _base/product/11.2.0/grid
Extensions: Check variable settings or take effect
Method 1:echo $ variable Name
Echo $ORACLE _home
Method 2:env |grep Oracle_home
21. Check that the environment variable configuration is successful
22. Create an ASM disk group
Next we prepare 2 ASM disk groups, one for storing data and one for database recovery.
In a general production environment we are all externally redundant (External redundancy), which is hardware RAID
+data Storage Data High redundancy
+fra Storage recovery File Normal redundancy
Requires at least 5 hard drives, with a minimum of less than 20G per drive (this environment is more like a real production environment)
View Kernel version
http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html Download and install the driver, according to the kernel download driver.
Universal Package Download
Kernel driver Download
View Driver Packages
Installing the driver package
To see if the driver was installed successfully
Next Configure ASM Driver
Check the drive
Use the Mount command to make it effective
Add disk
To see if a disk was added successfully
Partitioning a 5-block disk
Divide the added 5 disks into ASM disks
See if the disk is configured well
Uploading Grid Software
Su-grid
Cd/disk
Unzip Linux.x64_11gR2_grid.zip Decompression
CD grid check the software completely extracted no
Unzip the grid software to get the following decompression package
Modify the variable so that it can open the Linux graphical program
Turn on the graphic and start configuring the grid
Select the second, install and configure the grid
Select language 中文版
Create an ASM disk group
Enter a password for ASM, where I set up Oracle
Here is the default is good, here is the corresponding group of users
This is where the grid files are stored
Check configuration information
Start installation
Install to last prompt to execute 2 scripts with root
/u01/app/orainventory/orainstroot.sh
/u01/app/grid/product/11.2.0/grid/root.sh
After the installation, we'll see where the software is installed.
After the grid software is loaded we then install ASM Disk Group and FRA
To add an environment variable under a grid user
Make the added variable take effect
Use gird account to knock command ASMCA
Create a FRA disk group
OK exit after successful creation
Two Installing the Database
1. First Oracle database software
2. Unzip
Unzip Linux.x64_11gR2_database_1of2.zip
Unzip Linux.x64_11gR2_database_2of2.zip
3. Start configuring database information and install
There's no need to fill out an email
Choose to install only the database software
Select Single-Instance installation
Select language Einlish
Select an Enterprise Edition database
This fills in the default, the database installation directory
This is also the default, database of users and groups
Check Database configuration information
Start installation
Start running scripts
When the installation is complete, see where the database software is installed
At this point, our database is officially installed.
3. Next create the database
Adding environment variables
Make the added environment variable effective
Select Create Database
Choose to create a common database
Give the database a name
Select default
Give Oralce account a password
Select Automatic Storage Management ASM and select the location where Oracle managed files are stored
Select Oracle Managed file backup location
Enable sample Database
Give 512M memory
Check storage configuration
Create a database
Check Configuration
Start installation
Unlock Scott Account
Check that the database is installed successfully
Log in to the database
The database is installed successfully!!!
Installing Oracle 11g under Linux