Note: This installation is limited to installing oracle10gon Centos6 and for installation in other versions of the operating system please refer to Oracle Official documentation to install the
1, the basic environment settings
Set selinux to disabled. Vi/etc/selinux/config
Find SELinux configured as disabled
Set to command line start vi/etc/inittable id:3:initdefalut
Find Default ID:5 change to ID:3
Turn off firewall: Chkconfig iptables off
Set host address: vi/etc/hosts
192.168.1.3 Hsj3
Restarting Init 6
2 creating Oracle users and Groups
Groupadd dba
Groupadd Oinstall
USERADD-G oinstall-g dba Oracle
passwd Oracle
To create an Oracle installation directory
Mkdir/u01
3 Configuring environment variables for Oracle Users
Perform these two interfaces to configure environment variables
Su-oracle
VI. bash_profile
Oracle_base=/u01/app
Oracle_home= $ORACLE _base/oracle
Oracle_sid=orcl
Path= $ORACLE _home/bin: $PATH
Ld_library_path= $ORACLE _home/lib: $LD _library_path
display=192.168.1.1:0.0
Export oracle_base oracle_home oracle_sid PATH ld_library_path DISPLAY
Exit log in to make the environment variable configuration effective
Exit
Su-oracle
Env |grep ORA
4 uploading the installation files and extracting them using the unzip command
5 Move the extracted directory to the /u01 directory
Modify the /u01 Group Properties chown-r oracle:oinstall/u01
6 Install the necessary dependency packages, refer to the installation documentation.
Upload the dependent packages and use the command to install them in turn
7. Configuring related Properties
Vi/etc/security/limits.conf
Vi/etc/sysctl.conf
Sysctl-p
On the Windows platform to start the graphical monitoring, the installation will now go to the Windows graphical interface
9 Modifying the version of the system
Because the version of oracle10g does not support 6
9 start running the install command . /runinstaller
the next installation is the graphical interface, just to show
Here we just install the instance, later in the installation database
In general, just click next to complete the installation .
Install the instance database using the dbca command
Database Installation Complete
Common commands
1 Connect to the database, start the database
Sqlplus/as SYSDBA
Startup
2 start the monitoring service
Lsnrctl start
Lsnrctl stop
3 Configuring listeners, local service naming, etc.
Netca
4 If the client is unable to connect, you can configure the listener, as well as the Linux firewall settings, in the learning environment can be directly shut down the firewall
oracle10g installed on the Centos6.4