oracle数据库服务器安装及配置

  • 格式:doc
  • 大小:29.00 KB
  • 文档页数:3

如有你有帮助,请购买下载,谢谢!

1页 oracle数据库服务器安装及配置

 Linux安装

 选择中文安装语言

 服务器硬盘分区(以160G硬盘为例)采用ext3文件系统

分区 比例 空间大小

/boot 100M *必设

swap 4096M *必设(内存1-2倍)

/ 10G 必设

/home 65G 网页,地图,通讯服务器必设

/product 369G 数据库服务器必设

/devdata 341G 数据库服务器必设

/index 284G 数据库服务器必设

 选择 服务器 安装类型

 安装软件组选择

桌面:X-window*, gnome*

应用程序:编辑器(默认)*,图形化互连网(默认)*

服务器:服务器配置工具(默认),windows文件服务器,网络服务器

开发:开发工具(默认)*,X软件开发,(默认),原有的软件开发(默认)*,

系统:language support,管理工具(默认)*, 系统工具

 安装完后,为root设置密码

 禁用防火墙和SeLinux

 设置一个非root用户,user设置密码

 安装oracle

1. 把oracle安装相关文件拷贝到user下

2. 进入/home/user/ oracle_install目录执行config_ora_1.sh

#cd /home/user/ oracle_install

#./ config_ora_1.sh

当脚本执行到提示输入oracle密码时输入密码。

3. 进入目录

/home/user/ oracle_install/rhel5.2-oracle-dependence-packages

安装缺少的rpm包

setarch-2.0-

make-3.81-

glibc-2.5-

libaio-

compat-libstdc++-33-

kernel-headers-

glibc-headers-2.5-

glibc-devel-2.5-

compat-gcc-34- 如有你有帮助,请购买下载,谢谢!

2页 compat-gcc-34-c++-

libgomp-

gcc-

libXp-

openmotif-

compat-db-

4.把/home/user下的所有文件移动到/home/oracle并把文件给予oracle用户和oinstall组

#mv * /home/oracle

#cd /home

#chown –R oracle.oinstall oracle

5.修改hosts文件

#vi /etc/hosts# Do not remove the following line, or various

programs

# that require network functionality will fail.

localhost.localdomain localhost

::1 localhost6.localdomain6 localhost6

自定义域名 自定义名

重启机器

#reboot

6.安装oracle

用oracle用户登陆系统

改变字体

$ export LC_CTYPE=en_US.UTF-8

解压oracle 10g

$ unzip 10201_database_linux32.zip

进入解压后的包

$cd database

执行安装:

$ ./runInstaller

界面安装参考:

除了下图与默认安装不同外,其他全按照默认安装

1.

2.下一步直到 第9步 选择字体GBK如图

3.设置系统密码

4.安装信息 (直接选择OK)

5.如图依次运行2个脚本(切换到ROOT运行2个脚本)

7.界面安装完成后执行end_of_scripts4.sh脚本设置自启动

$Su – root

Password:

#cd /home/oracle/oracle_install

#./end_of_scripts4.sh

重启系统

#reboot 如有你有帮助,请购买下载,谢谢!

3页 8.oracle用户登录系创建,创建表空间需要的目录

$su - root

#mkdir -p /index/oradata/uniguard/

#mkdir -p /devdata/oradata/uniguard/

#exit

8.创建表空间

进入plsql环境

$sqlplus /nolog

>conn /as sysdba

注意如下是1TB硬盘的标准,根据磁盘划分比例来决定表空间大小

>create tablespace info datafile

'/product/app/oracle/oradata/uniguard/info01.dbf' size 30G;

>create tablespace indexdata datafile

'/index/oradata/uniguard/index01.dbf' size 30G;

>create tablespace devdata datafile

'/devdata/oradata/uniguard/dev01.dbf' size 30G;

9.创建用户并赋予权限

create user uniguard identified by uniguard default tablespace

info temporary tablespace temp;

grant connect, resource to uniguard;

grant create any view to uniguard;

grant debug connect session to uniguard;

grant unlimited tablespace to uniguard;

commit;

alter system set processes=300 scope = spfile;

show parameter processes;

解锁表用户

alter user uniguard account unlock;

commit;

10. 导入uniguard.dmp表

$imp uniguard/uniguard file=/home/oracle/uniguard.dmp

touser=uniguard