27
Oracle7 Server Oracle7 Server 的的的的的的 的的的的的的 的的的的 的的的的 的的 Oracle7 的的的的的的 的的 SQL*NET

Oracle7 Server 的安装和配置 n 环境设置 安装 Oracle7 数据库服务器 配置 SQL*NET

Embed Size (px)

Citation preview

Oracle7 ServerOracle7 Server 的安装和配置的安装和配置

环境设置环境设置 安装 Oracle7 数据库服务器 配置 SQL*NET

环境设置环境设置

调整内核参数 - Asynchronous I/O 添加 DBA 组 添加 ORACLE 用户 更改文件系统使用权限 设置 ORACLE 用户的环境变量

环境设置 环境设置 -- 调整内核参数调整内核参数 smit chaio smit chaio

Change / Show Characteristics of Asynchronous I/O

Type or select values in entry fields.Press Enter AFTER making all desired changes.

[Entry Fields] MINIMUM number of servers [1] # MAXIMUM number of servers [10] # Maximum number of REQUESTS [4096] # Server PRIORITY [39] # STATE to be configured at system restart available +

环境设置 环境设置 - - 添加添加 DBADBA 组组

smit mkgroupsmit mkgroup

Add a Group

Type or select values in entry fields.Press Enter AFTER making all desired changes.

[Entry Fields]* Group NAME [dba] ADMINISTRATIVE group? false + Group ID [] # USER list [] + ADMINISTRATOR list [] ++

环境设置 环境设置 - - 添加添加 ORACLEORACLE 用用户户 smit mkusersmit mkuser

Add a User

Type or select values in entry fields.Press Enter AFTER making all desired changes.

[TOP] [Entry Fields]* User NAME [oracle] User ID [] # ADMINISTRATIVE USER? false + Primary GROUP [dba] + Group SET [] + ADMINISTRATIVE GROUPS [] + ROLES [] + Another user can SU TO USER? true + SU GROUPS [ALL] + HOME directory [/user/oracle]

环境设置 环境设置 - - 更改文件系统使用权更改文件系统使用权限限

chown -R oracle:dba /user/oraclechown -R oracle:dba /user/oracle chown -R oracle:dba /user/data1chown -R oracle:dba /user/data1 chown -R oracle:dba /user/data2chown -R oracle:dba /user/data2 umask umask

环境设置 环境设置 - - 设置设置 ORACLEORACLE 用户的环境变用户的环境变量量

su - oraclevi .profile

ORACLE_BASE=/user/oracle/app/oracle ORACLE_HOME=/user/oracle/app/oracle/product/7.3.3ORACLE_SID=ora7ORACLE_TERM=vt100TMPDIR=/user/oracle/tmpTNS_ADMIN=/user/oracle/tnsNLS_LANG=AMERICAN_AMERICA.zhs16cgb231280ORA_NLS32=$ORACLE_HOME/ocommon/nls/admin/data

export ORACLE_HOME ORACLE_SID ORACLE_TERM TMPDIR TNS_ADMIN NLS_LANG ORA_NLS32

PATH=$ORACLE_HOME/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.

export PATH

if [ -s "$MAIL" ] # This is at Shell startup. In normalthen echo "$MAILMSG" # operation, the Shell checksfi # periodically. .profile" 17 lines, 571 characters

Oracle7 ServerOracle7 Server 的安装和配置的安装和配置Oracle7 ServerOracle7 Server 的安装和配置的安装和配置

环境设置环境设置安装 Oracle7 数据库服务器 配置 SQL*NET

Oracle7 ServerOracle7 Server 的安装和配置的安装和配置Oracle7 ServerOracle7 Server 的安装和配置的安装和配置

Step 1 Creating Required Directory

$ su - root# mkdir /cdrom# mkdir /user/oracle/olink# chmod 777 /user/oracle/olink# mkdir /user/oracle/tmp# chmod 777 /user/oracle/tmp

Step 2 Mounting the Product Installation CDROM

# mount -rv cdrfs /dev/cd0 /cdrom

Oracle7 ServerOracle7 Server 的安装和配置的安装和配置Oracle7 ServerOracle7 Server 的安装和配置的安装和配置

Step 3 Run the start.sh Script

$ cd /cdrom/orainst$ ./start.sh--Enter the name of your oracle link directory---/user/oracle/olink

Step 4 Run the rootpre.sh Script

$ su root# cd /user/oracle/olink/ORAINST# ./rootpre.sh

Oracle7 ServerOracle7 Server 的安装和配置的安装和配置Oracle7 ServerOracle7 Server 的安装和配置的安装和配置

Step 5 Run the Oracle Installer

$ cd /user/oracle/olink/$ ./orainst

------------------Install Type---------------------------------

Select the installation method,either Default Install or Custom Install, and whether you want to view the Readme files:

[ ] Default Install [X] Custom Install [ ] Display readme Files for this Release

(Help...) (Back) (Cancel) (OK)

---------------Installation Activity Choice ---------------------

Select the Installer activity:

(0) Install, Upgrade, or De-Install Software ( ) Create/Upgrade Database Objects ( ) Perform Administrative Tasks

(Help...) (Back) (Cancel) (OK)

---------------Installation Options ---------------------

Select the Installer option:Note: there are two different Install New Product options.

(Help...) (Back) (Cancel) (OK)

Install New Product - Create DB ObjectsInstall New Product - Do Not Create DB ObjectsAdd/Upgrade SoftwareBuild Oracle7 Staging AreaInstall Documentation OnlyDe-Install Software

---------------Installation Options: Mount Point---------------

Enter the mount point (the top of your directory structure) for your software installation. Select (Help) for more information.

(Help...) (Back) (Cancel) (OK)

/user/oracle

--------------Installation Options: Home Locator------------

Complete $ORACLE_HOME locations:/user/oracle/app/oracle/product/

(Help...) (Back) (Cancel) (OK)

7.3.3

--------------Environment Variables------------

Confirm, change, or enter the values of the environment variables listed

ORACLE_BASE:

ORACLE_HOME:

(Help...) (Back) (Cancel) (OK)

/user/oracle/app/oracle

/user/oracle/app/oracle/product/7.3.3

--------------Logging and Status------------

Confirm (or change) Log File Location:

If current versions of these log files exist in these locations,they will be archived and reinitialized. Select Help for more details

Installer Log:SQL Log:Makefile Log:OS Log:

(Help...) (Back) (Cancel) (OK)

log

/user/oracle/ap/oracle/product/7.3.3/o/user/oracle/ap/oracle/product/7.3.3/o/user/oracle/ap/oracle/product/7.3.3/o

--------------Pre-Installation OS Preparation------------

Your platform requires the root user to perform certain pre- installation OS preparation. The root user should run the shell script ‘rootpre.sh’ before you proceed with Oracle installation. ‘rootpre.sh can be found in the newoi/ directory (if installing form tape) or the orainst/ directory (if installing from CDROM).

Select (Yes) if root has run ‘rootpre.sh’ so you can proceed withOracle installation. Select (No) to abort installation and then askroot to run ‘rootpre.sh’.

(Help...) (Back) (Cancel) (No) (Yes)

--------------Installation Source------------

Select one of the following:

(0) Install from CD-ROM ( ) Install form Staging Area

(Help...) (Back) (Cancel) (OK)

--------------$ORACLE_LINK Directory------------

Enter the pathname of the $ORACLE_LINK directory:

(Help...) (Back) (Cancel) (OK)

/user/oracle/olink

--------------ORACLE_SID ---------------

Enter your ORACLE_SID:

(Help...) (Back) (Cancel) (OK)

ora7

----------------------------- NLS -----------------------------------

Enter your ORACLE_SID:

(Help...) (Back) (Cancel) (OK)

All LanguagesAmerican/EnglishAmerican/English ArbicBrazilian ProtugueseCatalanCzechDanish

-----------------------Relink All Executables?----------------------

Do you want to relink Oracle product executables? By default,the Installer will not relink any product executables, with theexception of the Oracle7 Server, which is relinked automatically if necessary

(Help...) (Back) (Cancel) (No) (Yes)

-----------------------Root Install Script File ----------------------

The/user/oracle/app/oracle/product/7.3.3/orainst/root.shfile already exists. Select one of the followingactions:

( ) Append root-related actions to this file (0) Create new root.sh file

(Help...) (Back) (Cancel) (OK)

-----------------------Software Asset Manager--------------------(from...)Product available on /cdrom Products installed on /user/…/7.3.3

(Install) (Reove)

(Help...) (Back) (Cancel) (OK)

ORACLE7 Distributed Database OptionORACLE7 Enterprise Backup UtilityORACLE7 Parallel Query option 7.3.3ORACLE7 Server (RDBMS) 7.3.3.0.0

Products selected:

Oracle Unix InstallerOracle Unix Installer Oracle7 Server (RDBMS) Oracle7 Server (RDBMS) 7.3.3.0.07.3.3.0.0

PL/SQL V2 2.3.3.0.0PL/SQL V2 2.3.3.0.0 SQL*Net (V2) 2.3.3.0.0SQL*Net (V2) 2.3.3.0.0

SQL*Plus 3.3.3.0.0SQL*Plus 3.3.3.0.0 TCP/IP Protocol Adapter TCP/IP Protocol Adapter (V2) 2.3.3.0.0(V2) 2.3.3.0.0