The environment is as follows: #注意是SLES
1 cat /etc/suse-2 (x86_64)341 5 6 7 Linux.x64_11gr2_database_1of2. Zip 8 Linux.x64_11gr2_database_2of2. Zip
A systematic article
1. When installing the system, select
1 "Oracle Server Base" 2 "Compiler and Tools"
Then install a
1 libstdc++
2. Bind host Name
1 VI /etc/hosts2127.0. 0.1 Yas #yas为主机名
3.Oracle installation Basic conditions
3.1 The Oracle Server Base is installed , the oracle useris automatically added,oinstall the DBA Group, but the Oracle the Shell is /bin/false, need to modify the passwd file to change to /bin/bash
Also to modify the password for the Oracle user
1 passwd Oracle
3.2 Modifying environment variables
Modify the /etc/profile.d/oracle.sh file, set the oracle_home
The default oracle_sid is orcl , you need to change your own /etc/profile.d/oracle.sh file
3.3 Setting Kernel parameters
1 /usr/sbin/rcoracle start
Two database articles
Log in to the system with an Oracle user
Extract Oracle to any directory. granting Permissions
1 chown -R oracle:oinstall Database
Go to database directory and run
1 ./runinstaller
The mailbox is not filled out, the hook is canceled.
1 is to create and configure database 2 only install database software 3 Upgrade Database Select 1
Desktop mode server mode, select Server mode
Single Instance high availability select 1
Typical installation Advanced installation option 1
The password needs to set itself, the other front has been set, the default can be. # the password should start with a letter
Change the directory yourself, note that the directory is /opt/oracle/
Select Finish to start the installation
Execute two scripts with root account
1 /opt/oracle/orainventory/orainstroot. SH 2 /opt/oracle/product/11gr2/db/root. SH
Can log on to the Web page to manage Oracle
Three Oracle setup Articles
Setting Up Oracle Boot
1 VI /etc/sysconfig/Oracle2 start_oracle_db="Yes"3 start_oracle_db_listener="Yes"4 start_oracle_db_emanager=" Yes "
5 Vim/etc/oratab
Orcl:/opt/oracle/product/11gr2/db:y
Open the Enterprise Manager service if it is not running:
1 emctl start dbconsole
Log in with your browser https://localhost:1158/em
Four Sqlplus manual Turn off
Start the database:
1 sqlplus/nolog2 sql> connect/as sysdba3 sql> Startup
SLES 11 Installing Oracle 11g R2