Install Oracle 11g in RedHat Linux 6.0
Steps for installing Oracle in Linux
Preparations before installation
Transmit oracle to the root directory through ssh (this installation is under VMware)
Installation Package for Linux for Oracle 11g
RedHat 6.0 Virtual Machine
1. Create users and groups
Groupadd oinstall
Groupadd dba
Useradd-goinstall-G dba-m oracle
Passwd oracle
(Oracle user login is used below)
2. Modify the environment variable of the orcle User: vi/home/oracle/. bash_profile
ExportORACLE_SID = ORCL
ExportORACLE_BASE =/app
Export ORACLE_HOME =/app/oracle
ExportPATH = $ ORACLE_HOME/bin: $ PATH
3. Create a folder (modify the folder and File Permission chmod 777 folder and file name)
Mkdir/app
Mkdir/app/oracle
Chown-Roracle. oinstall/app
4. Modify the Kernel Parameter file: vi/etc/sysctl. conf (root login)
Fs. file-max = 6815744
Fs. aio-max-nr = 1048576
Kernel. shmall = 2097152
Kernel. shmmax = 2147483648
Kernel. shmmni = 4096
Kernel. sem = 25032000 100 128
Net. ipv4.ip _ local_port_range = 9000 65500
Net. core. rmem_default = 4194304
Net. core. rmem_max = 4194304
Net. core. wmem_default = 262144
Net. core. wmem_max = 1048576
5. To make the/etc/sysctl. conf change take effect immediately, run the following command.
Input: sysctl-p display
6. Modify the vi/etc/host file (omitted)
A, ifconfig view ip
B. view the Host Name
7. Modify the version number of the Operating System
# Vi/etc/redhat-release
Change 6 to 4
8. install the software package
Rpm-ivh libXp-... rpm
Rpm-ivh libXp-devel-... rpm
9. log out of the oracle user and log on again.
10. decompress the oracle installation package with an oracle user
Unzip ....
11. Go to database./run ....
12. Create an installation directory
Mkdir-p/app/oracle
Chown-Roracle. oinstall/app
13. Set language Variables
Export
14. Log On As the root user and execute two scripts.
#./App/oraInventory/orainstRoot. sh
./App/oracle/root. sh
15. log on to the oracle server and configure the listener netca.
16. Start the database and configure dbca
17. enable the Service after restart (sqlplus system/Sa123456 as sysdba)
Startup
Copy the listener to app/admin/network.
You can create a table and use desc table to query the table.
18. Enter the graphic interface
# Cd/app/oracle/sqldeveloper/
./Sqldeveloper. sh
19. To enable oracle later, modify the oracle Kernel
Modify the Vi installation directory/. bash-profile
Oracle-home/sqldeveloper
If Step 1 is not performed, the listener (lsnrctl start) and Database Service (sqlplussystem/Sa123456 as sysdba) must be started each time the database is run)
# Cd/app/oracle/sqldeveloper/
./Sqldeveloper. sh
20. The following services will be started in sequence each time you start them.
ExportLANG = EN (set to English to prevent garbled characters)
Lsnrctl start (enable listener)
Sqlplus/nolog (go to database settings)
Conn sys as sysdba (Database startup mode, prompting you to enter the password)
Startup (enable all services)
Exit (Exit settings)
Sqldeveloper. sh (start database)
Install Oracle 11gR2 (x64) in CentOS 6.4)
Steps for installing Oracle 11gR2 in vmwarevm
Install Oracle 11g XE R2 In Debian
Sharing pool for Oracle Performance Optimization