Oracle 10G 服务端的升级
第一步:备份
rman target /
backup full database plus archivelog;
第二步:升级
解压升级包到soft目录下,修改所有者 chown -R oracle.oinstall software
执行./runInstall -ignoreSysPrereqs 如果出现版本问题,redhat-4已经设置但是还是提示,使用该参数忽略掉
后面都是next完成安装(数据库必须关闭,包括监听程序)
su - oracle
sqlplus / as sysdba
SQL>startup upgrade
SQL>@?/rdbms/admin/catupgrd.sql
待catupgrd.sql脚本执行完毕,shutdown immediate关闭数据库
startup启动数据库执行脚本
SQL>@?/rdbms/admin/utlrp.sql
执行完毕后执行查询所有编译错误
SQL>select * from utl_recomp_errors;
未选定行表示没有错误
SQL>select name from v$database;
确认ORACLE_SID正确
SQL>select tablespace_name,bytes from dba_data_files;
对系统表空间大小确认
SQL>@?/rdbms/admin/catalog.sql
SQL>shutdown immediate
SQL>startup
数据库升级成功
1) Oracle客户端的安装
oracle客户端安装rpm包
安装rpm包
oracle-instantclient-basic-10.2.0.4-1.i386.rpm
oracle-instantclient-basiclite-10.2.0.4-1.i386.rpm
oracle-instantclient-devel-10.2.0.4-1.i386.rpm
oracle-instantclient-jdbc-10.2.0.4-1.i386.rpm
oracle-instantclient-odbc-10.2.0.4-1.i386.rpm
oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm
设置环境变量(oracle的bash_profie和etc的profie)
export ORACLE_BASE=/home/oracle
export ORACLE_HOME=$ORACLE_BASE/app/oracle/product/10g
export ORACLE_SID=radius
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib:/usr/local/lib64:/lib64
为了配合脚本环境的设置
mkdir -p /home/oracle/app/oracle/product/
ln -sv /usr/lib/oracle/10.2.0.4/client64/ /home/oracle/app/oracle/product/10g
建立配置文件目录
mkdir -p /home/oracle/app/oracle/product/10g/network/admin
提供配置文件
vim tnsnames.ora
RADIUS =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = radius)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = radius)
)
)