升级和卸载Oracle数据库软件的命令整理
查看版本号
sqlplus/assysdba >select*fromv$version;
备份orcl数据库
exportORACLE_SID=orcl rmantarger/ >backupfulldatabaseplusarchivelog;
升级
./runInstall安装升级包
sqlplus/assysdba >startupupgrade >@$ORACLE_HOME/rdbms/admin/catupgrd.sql >shutdownimmediate >startup >@$ORACLE_HOME/rdbms/admin/utlrp.sql >select*fromutl_recomp_errors;---------->无选定行说明无错误
检查
>selectnamefromv$database------->确认ORACLE_SID正确,为oral >showuser------->确认当前使用者为SYS >selecttablespace_name,bytesfromdba_data_files------>确认表空间大小 >@$ORACLE_HOME/rdbms/admin/catalog.sql >shutdownimmediate >startup
手工卸载oracle:
/etc/ora* /usr/local/bin/oraenv /usr/local/bin/dbhome /usr/local/bin/coraenv $ORACLE_BASE/*