1) Preparations
* FTP client software
* Xmanager
* Pl/SQL dev
* 10gr2_db_sol [1]. cpio, database installer, applicable to SUN Solaris (iSCSI), Database Version 10.2.
2) create user groups and users
1) Add a user group:
Groupadd oinstall
Groupadd dba
2) Add a user:
Useradd-g oinstall-G dba-d/export/home/Oracle-s/bin/csh-m oracle
{-G indicates the user group,-G indicates the user's additional group,-d indicates the user's main directory,-s indicates the user's default shell type, and oracle indicates the user name, -The m parameter indicates that the user's home directory is automatically created. To avoid the trouble, do not manually create this directory}
Passwd oracle
{Indicates setting a password for an oracle user. After you enter this command and press enter, the system will prompt you to enter the password and confirm the password}
3) create an Oracle Database Installation Point
Create a directory. Oracle will be installed under these directories:
Mkdir/opt/oracle
Mkdir/opt/oracle/product/10gr2
Mkdir/opt/oracle/doc
Change the/opt/oracle directory owner to oracle and the group to oinstall:
Chown-R oracle: oinstall/opt/oracle
{Appendix Solaris system directory description
/: Root file system
/Bin: executable program, basic commands
/Usr: UNIX System File
/Dev: Device File (logical device)
/Devices: Device File (physical device)
/Etc: system configuration, system management data files
/Export: Directory and files that can be accessed by other systems
/Home: user's home directory
/Kernel: Core System Module
/Lib: System Library
/Opt: added Application Software
/Tmp: SWAP area
/Var: Some System Management Files}
4) modify the environment variables of Oracle users
Log On As an oracle user and find and modify the environment variable. cshrc in the oracle user's home directory (this is a hidden file and the-a parameter must be added when ls is used ). If this file is not found, use the cp command to copy the local. cshrc file in the main directory and name it. cshrc.
Add the following content to the next line of umask 022 in The. cshrc file:
Setenv ORACLE_BASE/opt/oracle
Setenv ORACLE_HOME/opt/oracle/product/10gr2
Setenv ORACLE_SID yoursid
Setenv ORACLE_UN system
Setenv ORACLE_PW yourpassword
Setenv NLS_LANG "simplified chinese_china.ZHS16GBK"
Setenv NLS_DATE_FORMAT "YYYY-MM-DD HH24: Mi: SS"
{ORACLE_BASE is the Oracle root directory, and ORACLE_HOME is the Oracle product directory. That is, if your machine has two versions of Oracle, you can create two versions under the same ORACLE_BASE, but ORACLE_HOME does .}
Add $ ORACLE_HOME/bin at the beginning of path.
For example:Set path = ($ ORACLE_HOME/bin/usr/ccs/bin/usr/bin)Do not use the absolute path.
Make the new environment variables take effect:Source. cshrc
Verify environment variables:Env