Oracle Pre-installation user information settings

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.