欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

升級(jí)和卸載Oracle數(shù)據(jù)庫(kù)軟件的命令整理

 更新時(shí)間:2015年12月27日 14:25:54   作者:SmartMZ  
這篇文章主要介紹了升級(jí)和卸載Oracle數(shù)據(jù)庫(kù)軟件的命令整理,包括升級(jí)時(shí)可能用到的查看版本號(hào)和備份操作的命令介紹,需要的朋友可以參考下

查看版本號(hào)

sqlplus / as sysdba

>select * from v$version;



備份orcl數(shù)據(jù)庫(kù)

export ORACLE_SID=orcl

rman targer /

>backup full database plus archivelog;



升級(jí)
./runInstall 安裝升級(jí)包

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; ----------> 無(wú)選定行說(shuō)明無(wú)錯(cuò)誤


檢查

>select name from v$database ------->確認(rèn)ORACLE_SID正確,為oral
>show user ------->確認(rèn)當(dāng)前使用者為SYS
>select tablespace_name,bytes from dba_data_files ------>確認(rèn)表空間大小
>@$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/*

相關(guān)文章

最新評(píng)論