In the case of a duplicate installation, you first need to clear the existing Software installation record (only the red part is required for the first installation):
Rm-fr/usr/local/bin/*oraenv
Rm-fr/usr/local/bin/dbhome
Rm-fr/usr/tmp/.oracle
rm-fr/tmp/. Oracle
rm-fr/tmp/*oracle*
rm-fr/tmp/oracle*
rm-fr/tmp/*orainstall*
Rm-fr/database
USERDEL-FR Oracle
USERDEL-FR Grid
Groupdel DBA
Groupdel Oinstall
Groupadd-g DBA
GROUPADD-G 201 Oinstall
Useradd-u 300-g oinstall-g dba-d/home/oracle/-s/bin/bash-m Oracle
echo Oracle | passwd--stdin Oracle
Mkdir-p/database/oracle/
Chown-r Oracle:oinstall/database
Chmod-r 775/database
Shortcut command settings
I use the Linux distribution as the Fedora Series. The. bash_profile file under the Oracle User root directory is modified by default.
New read execution for Oracle installation environment variable information, with several common abbreviation commands defined
If [-F ~/.BASHRC] && [-f ~/.profile]; Then
. ~/.bashrc
. ~/.profile
? ??
Alias.. = ' CD. '
Alias ... = ' CD. /..‘
Alias l= ' Ls-al '
? ??
Setting environment variable information related to Oracle Software installation
Echo '
???? #*******oracle enviroment setting*********#
???? Export Oracle_base=/database/oracle
???? Export Oracle_home= $ORACLE _base/11g/db
???? Export Grid_home= $ORACLE _base/11g/grid
???? Export oracle_sid=ora11g --- the specified ORACLE SID
???? Export Oracle_term=xterm
???? Export ld_library_path= $ORACLE _home/lib:/lib:/usr/lib: $ORACLE _home/rdbms/lib
???? Export tns_names= $ORACLE _home/network/admin
???? Export shlib_path= $ORACLE _home/lib: $ORACLE _home/rdbms/lib
???? Export Path= $ORACLE _home/bin:/usr/bin:/usr/local/bin
???? Export classpath= $ORACLE _home/jre: $ORACLE _home/jlib: $ORACLE _home/rdbms/lib: $ORACLE _home/network/jlib
???? Export Nls_lang=american_america. UTF8
???? Export display=192.168.1.100: 0.0---This table red IP address is host (non-virtual machine)
???? ' >>/home/oracle/.profile
Oracle Pre-installation user information settings