升级和卸载Oracle数据库软件的命令整理
程序员文章站
2022-03-26 22:45:28
查看版本号
sqlplus / as sysdba
>select * from v$version;
备份orcl数据库...
查看版本号
sqlplus / as sysdba >select * from v$version;
备份orcl数据库
export oracle_sid=orcl rman targer / >backup full database plus archivelog;
升级
./runinstall 安装升级包
sqlplus / as sysdba >startup upgrade >@$oracle_home/rdbms/admin/catupgrd.sql >shutdown immediate >startup >@$oracle_home/rdbms/admin/utlrp.sql >select * from utl_recomp_errors; ----------> 无选定行说明无错误
检查
>select name from v$database ------->确认oracle_sid正确,为oral >show user ------->确认当前使用者为sys >select tablespace_name,bytes from dba_data_files ------>确认表空间大小 >@$oracle_home/rdbms/admin/catalog.sql >shutdown immediate >startup
手工卸载oracle:
/etc/ora* /usr/local/bin/oraenv /usr/local/bin/dbhome /usr/local/bin/coraenv $oracle_base/*
上一篇: JavaScript基础:DOM操作详解