Install oracle 11g and oracle11g in linux
Oracle 11g Installation
I. Environment preparation
/15000 M
/Tmp 4096 M
/Boot 100 M
Swap 4096 M
/U01 remaining space
2. Change the Host Name and IP address
3. install the software package
The environment for the linux system to be prepared for oralce will end here. The following will start to install oracle after the system is installed.
4. Disable sendmail to accelerate system startup.
5. Modify the host table
Start Check
6. Check whether the host table configuration takes effect.
6. Check whether ssh is installed.
7. View swap and storage
8. Modify shm
9. Add shm to the Startup File
10. Check whether shm is successfully modified.
11. View System Architecture
12. Check whether/tmp partitions are divided.
13. Next, check the packages under 11.2.0.1 installed.
Binutils-2.17.50.0.6
Compat-libstdc ++-33-3.2.3
Compat-libstdc ++-33-3.2.3 (32 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 (32 bits)
Glibc-common-2.5
Glibc-devel-2.5
Glibc-devel-2.5 (32 bits)
Glibc-headers-2.5
Ksh-20060214
Libaio-0.3.106
Libaio-0.3.106 (32 bits)
Libaio-devel-0.3.106
Libaio-devel-0.3.106 (32 bits)
Libgcc-4.1.2
Libgcc-4.1.2 (32 bits)
Libstdc ++ 4.1.2
Libstdc ++-4.1.2 (32 bit)
Libstdc ++-devel 4.1.2
Make-3.81
Sysstat-7.0.2
Check binutils and install it.
Check the compat-libstdc package and install it.
Check the elfutils package and install it.
Check whether the gcc package is installed.
Check the gcc-c ++ package and install it.
Check the glibc package. The installation is complete.
Check that the ksh package has been installed.
Check the libaio package. The package has been installed.
Create a directory/disk and upload the required software from windows to this directory.
Use Xmanager Enterprise 4 to upload the software to the/disk directory in linux.
View uploaded packages
Start installation package
Check the installation package
Check the unixODBC package and install it with yum,
Check whether the sysstat package is installed.
14. Create users and groups.
[Root @ myoracle ~] #/Usr/sbin/groupadd oinstall (create an oinstall group first)
[Root @ myoracle ~] #/Usr/sbin/groupadd-g 502 create a dba group
[Root @ myoracle ~] #/Usr/sbin/groupadd-g 503 configure create a consumer group
[Root @ myoracle ~] #/Usr/sbin/groupadd-g 504 asmadmin create asmadmin Group
[Root @ myracle ~] #/Usr/sbin/groupadd-g 506 asmdba create asmdba Group
[Root @ myracle ~] #/Usr/sbin/groupadd-g 505 asmoper create asmoper Group
[Root @ myoracle ~] #/Usr/sbin/useradd-u 502-g oinstall-G dba, role, asmdba oracle create oracle users
15. View account information
16. Configure Kernel Parameters
Make the modified kernel information take effect
17. Configure the Directory
Oracle Base Directory
Oracle Inventory Directory
Oracle Home Directory
We need to create a total of three directories, the first is the root directory for software installation, the second is the list directory, and the third is the Software Directory.
Configure oracle-related directory files
Check whether/u01 is created successfully
Check whether/u01/app/oracle is created successfully
18. Configure your environment variables
19. Check memory information
View memory,
View swap
20. View u01 partitions
After the preceding check, we continue to check the user environment variables.
Su-grid (switch to grid and check whether there are corresponding 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
Extension: Check the variable settings or take effect.
Method 1: echo $ variable name
Echo $ ORACLE_HOME
Method 2: env | grep ORACLE_HOME
21. Check whether the environment variable configuration is successful
22. Create an ASM disk group
Next, we prepare two ASM disk groups, one for data storage and the other for database recovery.
In general production environments, we use External redundancy (External redundancy), that is, hardware RAID.
+ Data Storage data High redundancy
+ Fra storage recovery file Normal redundancy
At least five hard disks are required, and each hard disk must be at least 20 GB (this environment is like a real production environment)
View the kernel version
Bytes.
General package download
Kernel Driver download
View driver package
Install driver package
Check whether the driver is successfully installed.
Next, configure the ASM driver.
Check driver
Use the mount command to make it take effect
Add Disk
Check whether the disk is successfully added.
Partition five Disks
Divide the added five disks into ASM disks.
Check whether the disk is configured
Upload grid Software
Su-grid
Cd/disk
Unzip linux.x64_11gR2_grid.zip unzip
Check whether the software is completely decompressed under cd grid.
Decompress the grid software and obtain the following package.
Modify the variable so that it can open the linux graphical program
Open the graphical interface and start configuring the grid.
Select second, install and configure grid
Select language English
Create an ASM disk group
Enter a password for ASM. Here I set oracle
Select the default option here. Here, the corresponding group of users is used.
Here is the location where the grid file is stored.
Check Configuration Information
Start Installation
Prompt to run two scripts as root after installation
/U01/app/oraInventory/orainstRoot. sh
/U01/app/grid/product/11.2.0/grid/root. sh
After installation, let's see where the software is installed.
After the grid software is installed, We will install the ASM disk group and FRA
Add environment variables under the grid user
Make the added variables take effect
Use the gird account to run the asmca command.
Create a FRA disk group
OK.
2. Install the database
1. First go to oracle database software
2. Extract
Unzip linux.x64_11gR2_database_1of2.zip
Unzip linux.x64_11gr2_database5of2.zip
3. Start configuring and installing database information
You do not need to enter an email here.
Select to install database software only
Select single-instance installation
Einlish Language
Select enterprise database
This field defaults to the database installation directory.
This is also the default, database users and groups
Check database configuration information
Start Installation
Start running the script
After installation, check where the database software is installed
At this point, our database is officially installed.
3. Create a database
Add Environment Variables
Make the added environment variables take effect
Select create database
Select create common database
Give the database a name
Select default
Give the oralce account a password
Select Automatic Storage Management ASM, and select the oracle management file storage location
Select the oracle management file backup location
Enable instance Database
MB of memory
Check storage Configuration
Create a database
Check Configuration
Start Installation
Unlock scott account
Check whether the database is successfully installed.
Log on to the database
So far, the database has been successfully installed !!!