命令模式彻底删除oracle实例
步骤⼀:关闭数据库
export ORACLE_SID=bgsp
1. sqlplus / as sysdba
2. shutdown immediate
步骤⼆:删除实例相关⽂件
1. find ORACLE B ASE/−name ORACLE_SID
2. ⽤命令删除查询后的⽂件
find ORACLE B ASE/−name ORACLE_SID -exec rm -rf {} \;
步骤三:删除配置⽂件,假设我们删除的实例是YC
1. find ORACLE B ASE/∗−name′∗[Yy][Cc]∗′|grep−vadmin|grep−voradata
2.⽤命令删除查询的⽂件find ORACLE_BASE/* -name '*[Yy][Cc]*' | grep -v admin | grep -v oradata | xargs rm -rf
步骤四:删除实例配置⽂件中的信息
1. vim /etc/oratab
2. 到yc:/opt/oracle/db/product/11g:N
3. 将该⾏信息删除,并保存⽂件
经过以上步骤可以实现命令⾏⼲净的删除实例
原来这个机器上装过oracle,卸载了,选择之前安装的⽬录(已经删除⼲净了),就出现了 “[INS-32025] 所选安装与指定 Oracle 主⽬录中已安装的软件冲突” 的问题,解决办法为:删除C:\Program Files (x86)\Oracle\Inventory\ContentsXML⽬录下的l ⽂件即可。(附带改⽂件内容,该⽬录地址在这⾥被占⽤了,所以会报错)
我是直接把oracle下⾯的⽂件都删了
[12:41:16 oracle(db_1)@rhel65 database]$ ./runInstaller -silent -showProgress -ignoreSysPrereqs -responseFile
/home/oracle/soft/database/response/db_install.rsp
Starting Oracle
Checking Temp space: must be greater than 120 MB. Actual 7246 MB Passed
Checking swap space: must be greater than 150 MB. Actual 3999 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2019-05-26_12-41-19PM. Please wait ...[12:41:21 oracle(db_1)@rhel65 database]$ [FATAL] [INS-32025] The chosen installation conflicts with software already installed in the given Oracle home.
oracle登录命令
CAUSE: The chosen installation conflicted with software already installed in the given Oracle home.
ACTION: Install into a different Oracle home.
[12:48:54 root()@rhel65 ~]# find / -l
/
usr/oracle/oraInventory/backup/2019-05-18_11-49-20PM/l
/usr/oracle/oraInventory/l
[12:49:06 root()@rhel65 ~]# rm /usr/oracle/oraInventory/backup/2019-05-18_11-49-20PM/l
rm: remove regular file `/usr/oracle/oraInventory/backup/2019-05-18_11-49-20PM/l'?
[12:49:18 root()@rhel65 ~]# rm -Rf /usr/oracle/oraInventory/backup/2019-05-18_11-49-20PM/l
[12:49:23 root()@rhel65 ~]# rm -Rf /usr/oracle/oraInventory/l
Processing math: 100%

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。