去http://www.oradb.net找把 那里有详细的说明呢
解决方案 »
- 【求高手扫盲】oracle中的role和system privilege
- oracle数据库如何处理树形结构数据的sql写法
- 求教 DATA_LENGTH与DATA_PRECISION的区别
- 怎么样才能在后台看到ORACLE响应前台的每一步详情?比如执行什么操作?我想做一个窗口在前台监控后台数据库!怎么做?谢谢!来者有分!
- 谁能给我详细解释一下SQL的关联加号(+)?
- 删除表的一个错~请教高手
- oracle10g 安装完成启用dbca失败该怎么办,谢谢
- group by的结果可以和别的搜索结果联起来吗?
- 请问如何创建一个oracle instance?
- linux下安装biee出现先决条件检查错误问题 如何解决?
- 请问如何把两个库中的数据和到一起?
- 关于Oracle在window上的安装问题
Oracle8i Installation Overview
1.确保系统软硬件、内存、磁盘空间符合产品需求
2.配置linux环境
3.mount CDROM, 按提示安装
4.安装后配置oracle8i产品
5.客户端安装:client tools, applications and client interfaces Oracle8 to Oracle8i
新产品
Oracle Partitioning:
使用户对标和索引有更多的控制
Java Runtime Environment 1.1.6(JRE):
支持Java programs 包括 Java Virtual Machine, Java core classes
and supporting files
Oracle Database Configuration Assistant:
帮助建立、修改、删除数据库
Oracle JServer and Oracle JServer Enterprise Edition:
支持Java Virtual Machine CORBA ORB 内建的JDBC dirver, SQLJ解释
器和 JavaBeans 解释器
Oracle Universal Installer
一个Java 的Oracle install 程序
Oracle interMedia
多媒体管理工具
Oracle interMedia Locator Service
管理多媒体数据存储
Oracle JDBC Drivers
Oracle SQLJ
在SQL内部嵌入了Java 更新产品
Net8 Products
Oracle Spatial
Oracle Time Series
Oracle Visual Information Retrieval
Oracle Programmer Linux Environment Summary
Shared Memory(共享内存参数)
SHMMAX 0.5*物理内存 到 1GB
SHMMIN 1
SHMMNI 100
SHMSEG 10
Semaphore(信号)
SEMMNI 100
SEMMSL 10 + initSID.ora PROCESSES 参数 [initSID.ora -> ORACLE
_HOME/dbs]
SEMMNS 2* the largest PROCESSES + 10* Oracle database数目
SEMOPM 100
SEMVMX 32767
Mount Points(Storage Devices)
安装点,建议四个/u01 /u02 /u03 /u04 一个安装软件 三个安装数据库
Linux Groups for Oracle
OSDBA role 需要一个单独Linux组,默认为dba
OSOPER role 可以和OSDBA一个组,也可以单独建立一个组
Special Linux Group for the OUI oraInventory
所有用户必需在$RACLE_HOME目录安装,所有目录属于相同的linux grou
p
OUI inventory 被所有的目录共享,是个可写组
Linux Accounts
建立的一个linux用户oracle, 它必须属于 OSDBA使用的组
Permissions for File creation
set umask 022
ORACLE_BASE
不是必需的。但是推荐作为 OFA-compliant安装的一部分 Setup Tasks to Perform as the root User 超级用户安装任务
1。配置内核
修改下列文件,配置内核参数
/usr/src/linux/include/asm/shmparam.h
/usr/src/linux/include/linux/sem.h
要注意的是
全部的共享内存大小可以 = SHMMAX * SHMSEG 如果有一个 initSID.ora文件配置如下
ORACLE_SID=A, PROCESSES=100
ORACLE_SID=B, PROCESSES=100
ORACLE_SID=C, PROCESSES=200
SEMMNS可由如下公式计算
SEMMNS = ((A=100) + (B=100)) + ((C=200) * 2) + ((# of instance
s=3) * 10) = 630 2。建安装点
/u01 Software Mount Point
/u02 /u03 /u04 Database Mount Points 3。建组 for Database Administrators
groupadd 111 dba
groupadd 112 oper 4。建组 for the OUI Inventory
groupadd 113 oinstall 5。建oracle用户
useradd -g 113 -d /home/oracle oracle
oracle用户属于oinstall组,并且HOME目录不要与ORACLE_HOME目录相同
1。设立文件建立权限
vi .profile or .login
set umask 022
2。设置环境参数
DISPLAY 参数
Bourne or Korn shells:
$ DISPLAY= workstation_name:0.0;export DISPLAY
In the session on your workstation:
$ xhost + server_machine_name
C shell:
% setenv DISPLAY workstation_name:0.0
In the session on your workstation:
% xhost + server_machine_name ORACLE_BASE参数
software_mount_point/app/oracle.
例如: /u01/app/oracle.
如果使用的不是一个OSF-compliant system,可以不设置ORACLE_BASE参
数
ORACLE_HOME 参数
建议 $ORACLE_BASE/product/release
例如:/u01/app/oracle/product/8.1.5 NLS_LAND
如果安装的字符集不是默认的US7ASCII 则需要说明 ORA_NLS33
如果建库不使用默认的US7ASCII,则在启动OUI和建库以前
set ORA_NLS33 = $ORACLE_HOME/ocommon/nls/admin/data 3。更新现有环境参数
For the Bourne or Korn shell:
$ . ./.profile
For the C shell:
% source .login Setup tasks for Oracle Products [安装oracle产品任务] 1.Tools and Precompilers
检查 C compiler executable 包括在 PATH 设置中
2.Networking and System Management Products
2.1 Net8 Configuration Assistant Net8安装以后,自动启动网络
关闭所有Net8 listeners
$ps -ef | grep tns
$lsnrctl listener_name stop
预装Oracle Names Server
如果你想使用一个已知的Names Server,编辑/etc/hosts
128.128.44.123 mach1.eng oranamesrvr0 第三章 安装 1.下载 JRE 1.1.6 v5
2.Mount Oracle8i CD-ROM
3.启动OUI
./runInstaller 第一次安装
"File Locations" -> [Destination] 填写 ORACLE_HOME
要求用户使用root权限运行 /tmp/orainstRoot.sh
这是为了生成pointer file 指出oraInventory directory
"Available Products" -> 选择安装类型
安装完成以后要运行 root.sh 初始化安装以后安装额外的产品
"File locations" -> "Available Products" 选择 [Custom]安装
注意不要选择已经安装的产品,否则将卸载 建库
$dbassist & 失败安装以后清除工作
1。启动OUI
2。[De-install]
3。rm ORACLE_HOME
rm oraInventory/../oui oraInventory 目录在文件/etc/oraInst.loc中可
以获得 Configuring Oracle8i 超级用户配置oracle8i 1. 登录为 root用户 执行root.sh 脚本
# cd $ORACLE_HOME
#./root.sh
2.建立oracle 系统管理者用户
# useradd -G dba .. -> 每个系统管理用户都必须属于 OSDBA组 文件 权限
*.dbf *.log *.ctl 640 rw-r----
$ORACLE_HOME/bin/ 751 rwxr-x--x
cmctl,cmadmin,cmgw 6751 rws-r-s--x
names, namesctl,
tnsping,osslogin,
trcroute, trcasst,
onrsd, oemevent,
oratclsh, dbsnmp, Oracle 自动引导
This process must be completed for every new database that you want to
have
automated startup and shutdown. To set up the dbstart and dbshut scrip
ts so
that they are called at system startup, use the following procedure:
1. 编辑 /etc/oratab 文件
搜索 ORACLE_SID:ORACLE_HOME:{Y|N}
Y or N 指出你是否想用脚本来启动和关闭数据库 2. Find the entries for all the databases that you want to start up. T
hey are
identified by the sid in the first field. Change the last field for ea
ch to Y. 3. Create a file named dbora in the /etc/init.d directory (if it does
not already
exist). 4. Create entries similar to the following at the end of the dbora fil
e (if they do
not already exist). Be sure to give the full path of the dbstart utili
ty.
#!/bin/sh
# Set ORA_HOME to be equivalent to the ORACLE_HOME
# from which you wish to execute dbstart and
# dbshut
# set ORA_OWNER to the user id of the owner of the
# Oracle database in ORA_HOME
ORA_HOME=/u01/app/oracle/product/8.1.5
ORA_OWNER=oracle
if [! -f $ORA_HOME/bin/dbstart]
then
echo "Oracle startup: cannot start"
lsnrctl, and tnslsnr.
exit
fi case "$1" in
'start')
# Start the Oracle databases:
# The following command assumes that the oracle login will not prompt
the
# user for any values
su - $ORA_OWNER -c $ORA_HOME/bin/dbstart &
;;
'stop')
# Stop the Oracle databases:
# The following command assumes that the oracle login will not prompt
the
# user for any values
su - $ORA_OWNER -c $ORA_HOME/bin/dbshut &
;;
esac
5. Link dbora by entering:
# ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora
# ln -s /etc/init.d/dbora /etc/rc2.d/S99dbora Oracle 用户配置oracle8i
1.配置 .profile和.login
2.配置 CLASSPATH 为支持JAVA 例如 JRE_Location, $ORACLE_HOME/jlib, $OR
ACLE_HOME/product/jlib
3.配置 LD_LIBRARY_PATH 为$ORACLE_HOME/lib
4.配置 ORACLE_BASE /u01/app/oracle
5.配置 ORACLE_HOME $ORACLE_BASE/product/ release
6.配置 ORACLE_SID
7.配置 PATH 包含 $ORACLE_HOME/bin 和 /usr/local/bin
8. 初始化 oraenv(coraenv) 脚本
单实例系统
编辑.profile或者 .login
For the Bourne or Korn shell:
ORAENV_ASK=NO
. /usr/bin/oraenv
For the C shell:
set ORAENV_ASK = NO
source /usr/bin/coraenv
unset ORAENV_ASK
多实例系统
For the Bourne or Korn shell:
#!/bin/sh
SIDLIST=`awk -F: ?^[^#]/{printf "%s",$1} ?etc/oratab`
echo "SIDs on this machine are $SIDLIST"
ORAENV_ASK=
. /usr/bin/oraenv
For the C shell:
set sidlist=`awk -F: ?^[^#]/{printf"%s",$1} ?etc/oratab`
echo "SIDs on this machine are $sidlist"
unset ORAENV_ASK sidlist
source /usr/bin/coraenv 更新所有oracle用户启动文件
1。保证 ORACLE_HOME/bin在他们的PATH中
2。在所有oracle用户的启动文件中最后添加./usr/bin/oraenv( source /usr/b
in/coraenv ->C shell)
3。设置 ORACLE_HOEM 和ORACLE_BASE参数 更新 oratab 文件
1.添加 ORACLE_SID:ORACLE_HOME:{Y|N}
2.打补丁
3.设置初始化参数 initSID.ora 位置在$ORACLE_BASE/admin/sid/pfile 目录
一个样本文件放在 $ORACLE_HOME/dbs Post-Installation for Oracle Products Pro*C/C++
调整目录$ORACLE_HOME/precomp/admin下的 ottcfg.cfg 和pcscfg.cfg
Net8
1.启动
$lsnctrl status
$lsnctrl start listener
2.编辑/etc/services
listener 1521/tcp #Net8 listener
net8 客户端
$netasst
$netec
3.等net8生成tnsnames.ora文件以后编辑, $ORACLE_HOME/network/admin
4.$sqlpls username/password@service_name Names Server
1.使用net8 assistant生成 sqlnet.ora和names.ora
2.如果使用有名的NS, 编辑/etc/hosts
3.如果使用你自己的机器作为server,启动进程
$namesctl startup
4.检查server 情况
$namesctl status Oracle 支持的网络协议
1.检查配置文件
2.如果要在系统reboot以后自动监听,编辑系统引导文件添加
su - oracle -c "lsnrctl start"
系统文件 /etc/init.d/dbora
注意:如果参数 TNS_ADMIN 没有在.profile or.login f中设置
或者 listener.ora 不再如下位置就会出错
(/var/opt/oracle or $ORACLE_HOME/network/admin)
3.如果你有一个 c/s配置, 你必须设置TWO_TASK 环境变量 tnsnames.ora
4.启动监听 $lsnrctl start
5.检查 $lsnrctl status
6.连接 $sqlplus username/passwd@server_name 语言支持