Install Oracle10gR2 on Solaris10

Source: Internet
Author: User
Install Oracle10gR2 on Solaris10.

Install Oracle 10gR2 on Solaris 10.

Install Oracle 10gR2 on Solaris 10.

1. Create a user, group, and oracle directory

Log on as the root user and create a directory:

Mkdir-p/opt/app/oracle

Mkdir-p/opt/app/oracle/product/10.2.0/db

Create an oracle group and user and assign users and permissions to the directory:

/Usr/sbin/groupadd-g 301 dba

/Usr/sbin/groupadd-g 300 oinstall

Useradd-u 250-c "oracle user"-d/opt/app/oracle-g oinstall-G dba-m-s/bin/ksh oracle

Chown-R oracle: dba/opt/app/oracle

Chmod-R 775/opt/app/oracle

2. Set oracle user environment variables

Log on with an oracle user and set Environment Variables

Vi ~ /. Profile



Add the following variables:

Umask 022



If [-t 0]; then

Stty intr ^ C

Fi

MAIL =/usr/mail/$ {LOGNAME :?}

Export PS1 = 'hostname': $ logname' $'

Export TERM = vt100

Stty erase ^?

Set-o vi

Export DISPLAY = 192.168.1.72: 0.0

Export ORACLE_SID = orcl

Export ORACLE_BASE =/export/home/app/oracle

Export ORACLE_HOME =$ {ORACLE_BASE}/product/10.2.0/db_1

Export ORACLE_ADMIN =$ {ORACLE_BASE}/admin

Export TNS_ADMIN =$ {ORACLE_HOME}/network/admin

Export LD_LIBRARY_PATH =$ {ORACLE_HOME}/lib

Export PATH =$ {ORACLE_HOME}/bin:/usr/bin:/etc:/usr/openwin/bin:/usr/local/bin:/usr/sbin: $ {PATH }:.

Then exit and log on to the user again to make the environment variables work.

3. Check the installation package required for solaris

Check whether all the packages required by solaris10 have been installed:

Pkginfo-I SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms SUNWsprot \

SUNWsprox SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt

,

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.