1. Preparations before installing & nbsp; ORACLE & nbsp; Description: The preparation mainly involves adding users and groups of ORACLE & nbsp; and changing some system parameter files. 1. & nbsp; # vi & nbsp; etcpasswd & nbsp; add & nbsp; oracle: 9722: 643: oracle: ORACLE_HOME: bincsh in the last line (add oracle users or use us
I. Preparations before ORACLE Installation
Note: The preparation mainly involves adding ORACLE users and groups and changing some system parameter files.
1. # Add oracle: 9722: 643: oracle:/ORACLE_HOME:/bin/csh to the last line of vi/etc/passwd
(Add oracle users/or use useradd)
2. # Add dba: 643: oracle to the last line of vi/etc/group
(Add oracle group/or use groupadd)
3. # passwd the oracle password twice to indicate the password to the oracle user
4. At the root/bottom # chown oracle # chgrp dba oracle
5. # cp. cshrc/oracle copy the two files under the root to the/oracle path
6. # cd oracle # chown oracle. * convert the copied hidden file into an oracle group # chgrp dba .*
7. # Add two lines of orasrv 1525/tcp oracle listener 1521/tcp at the end of vi/etc/services
8. # add a segment after set in vi/etc/system
Set shmsys: shminfo_shmmax = 4294967295
Set shmsys: shminfo_shmmin = 1
Set shmsys: Sh minfo_shmmni = 100
Set shmsys: shminfo_shmseg = 10
Set semsys: seminfo_semmns = 200
Set semsys: seminfo_semmni = 70
9. # su-oracle
10. Add a section in % vi. cshrc.
Set path = (/oracle/bin/usr/sbin/usr/bin/usr/openwin/bin/oracle/etc/usr/ccs/bin .)
Setenv ORACLE_HOME/oracle
Setenv ORACLE_SID oracle8
# Setenv DISPLAY 10.1.1.110: 0.0
Setenv NLS_LANG AMERICAN_AMERICA.ZHS16CGB231280
# Setenv NLS_LANG = SIMPLIFIED CHINESE_CHINA.ZHS16GBK
Note: Add # is an optional parameter. 10.1.1.110 is configured to log on to the server by running EXTRAX on a PC.
11. # sync; reboot Sun OS restart to make the parameter take effect
Ii. Install ORACLE
1. Insert an ORACLE installation CD
#/Etc/init. d/volmgt stop
#/Etc/init. d/volmgt start
% Volcheck
% Df-k check for cdrom Devices
2.% cd/cdrom/cdrom0 %./runInstaller the installation window for ORACLE Universal Installer appears. Press Next to continue
3. In the Destination box, enter the directory of the oracle to be installed, and then run/tmp/orainstRoot with root in the pop-up window. sh (which creates the installation directory of oraInventory) and then selects the product ORACLE8I 8.1.5 to be installed.
4. select typical or custom for installation. Pay attention to the Language button at the top of the screen and select the Chinese Language.
5. All information about the ORACLE product to be installed is displayed. If there is any error, you can press the Perious button to return the modification. If the installation is correct, press Next to start ORACLE installation.
6. After the installation is successful, go back to the start option menu. /Oracle/orainst/install. log the last prompt of the Installation log File is OK.
7. The Setup Privileges window pops up. You must use root to run it #/oracle/root. sh
Are these setting correct (y/n): Press y Enter the full pathname of the local bin directory (y/n ): knock/bin (this shell program generates an oratab file in the/var/opt/oracle path and performs system detection)
8. # change the last line of vi/var/opt/oracle/oratab to oracle8:/oracle: Y.
9. # Change vi/var/opt/oracle/listener. ora to host = (host_name) oraclehome = (/oracle)
Example: listener = (address_list =
(Address = (protocol = tcp)
(Port = 1521)
(Host = joe )))
Sid_list_listener = (sid_list =
(Sid_desc = (sid_name = oracle8)
(Oracle_home =/oracle )))
Trace_level + listener = admin
Startup_wait_time_listener = 0
Connect_timeout_listener = 5
10. # vi/var/opt/oracle/tnsnames. ora connection strings, which are useful for Distributed Communication
11. # su-oracle % env check whether the environment variable has changed
12.% svrmgrl wake up SVRMGR status
SVRMGR> connect internal
Connect to and open the database SVRMGR> shutdown immediate. First, close instances.
SVRMGR> startup and then open the database. When instances startup, database mount, and database open are displayed, oracle is successfully installed.
SVRMGR> exit
14.% lsnrctl start listener. If an error occurs, check whether the environment variable is set and the content and execution attributes of the lsnrctl file are set.