Oracle安装卸载教程
准备工作
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220140452021-1200476435.png)
一、安装orcle 64位
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220140625600-1995009999.jpg)
打开setup.exe
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220140641131-1433065793.jpg)
直接点下一步,不用输入邮箱,选择是
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220140649115-1753755684.jpg)
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220140700412-142350411.jpg)
创建和配置数据库
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220140712600-1254155759.jpg)
桌面类
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220140719662-845621452.jpg)
密码orcl
等待安装完成,确定即可。
二、安装client1、client2
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220140801787-1299675772.jpg)
打开setup.exe,选择是,继续
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220140810428-49516886.png)
管理员
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220140821350-785158115.jpg)
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220140835584-480728857.jpg)
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220141120631-1954430682.jpg)
如果出现了 “[INS-32025] 所选安装与指定 oracle 主目录中已安装的软件冲突” 的问题,解决办法为:删除C:\Program Files (x86)\Oracle\Inventory\ContentsXML目录下的inventory.xml 文件即可
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220141133084-1819057175.jpg)
安装完成client1,
然后按照client2
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220141140506-1978782525.png)
如果出现错误:启动服务 OracleMTSRecoveryService 时出现操作系统错误
在注册表 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleMTSRecoveryService
修改ImagePath的值即可,oracle安装路径 如:D:\app\FUGANG\product\11.2.0\dbhome_1\BIN\omtsreco.exe "OracleMTSRecoveryService"
三、添加32位client服务
开始菜单中打开client的Net Manager,展开列表,点击服务命名
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220141158428-1140988714.jpg)
点击绿色加号添加服务
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220141209115-449568453.jpg)
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220141222990-685018716.jpg)
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220141249334-330017831.jpg)
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220141257037-1238606826.jpg)
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220141305631-1203001590.jpg)
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220141357100-333414512.jpg)
点击测试
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220141404256-2139608308.jpg)
更改登录,用户名system,密码orcl
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220141412850-113044092.jpg)
测试成功后关闭,点击保存即可
将服务停止,并设置为手动开启
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220141505865-1109983468.png)
四、安装Toad(可选)
运行Toad for Oracle 12.msi。输入注册信息进行激活。
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220141513521-427763132.jpg)
五、安装PL/SQL
依次执行①安装包plsqldev1104.exe ②注册机keygen.exe ③汉化包chinese.exe
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220142946412-891583710.jpg)
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220143009459-670384678.png)
六、oracle完全卸载步骤
1.关闭服务
打开服务,关闭所有oracle相关服务。
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220143039037-552633566.jpg)
2.执行批处理文件
执行D:\app\Administrator\product\11.2.0\dbhome_1\deinstall\deinstall.bat
有问题直接按回车,直到卸载结束。
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220143049053-2060147079.jpg)
3.运行Db卸载程序
开始程序中打开OracleDb11g_home的Universal Installer,运行卸载。单击全部展开,除了OraDb11g_home1外,勾选其他项目,单击删除,选择是。
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220143057428-1959048956.png)
4.运行Client卸载程序
开始程序中打开OracleClient11g_home的Universal Installer,运行卸载。单击全部展开,除了OraDb11g_home1外,勾选其他项目,单击删除。
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220143129428-981251983.png)
5.清空注册表
Windows+R,输入regedit,打开注册表,依次展开HKEY_LOCAL_MACHINE\SOFTWARE,找到oracle,删除。
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220143138209-1170941184.jpg)
依次展开HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services中,删除所有oracle开头的项。
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220143144537-2025264845.jpg)
![](https://images2017.cnblogs.com/blog/1195748/201712/1195748-20171220143151631-498804528.jpg)
6.删除残留文件
重启电脑,删除oracle目录,删除Oracle的安装目录app。