卸载oracle删除注册表脚本
一.前言
在我们操作系统中,有时要卸载oracle数据库,每一次都要去删除win下的注册表,为了方便删除注册表的信息,下面通过一种删除注册表快捷的脚本。
二.脚本信息
Windows Registry Editor Version 5.00 [-HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE] [-HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\ODP.NET] [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\StartMenu\Programs\Oracle - OraClient11g_home1] [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\eventlog\Application\Oracle.VSSWriter.CD] [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\OracleServices for MTS] [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\Oracle.portal] [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\OracleDBConsoleportal] [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\OracleDBConsoleorcl] [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\services\eventlog\Application\Oracle.VSSWriter.CD] [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Eventlog\Application\OracleServices for MTS] [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Eventlog\Application\Oracle.portal] [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Eventlog\Application\OracleDBConsoleportal] [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\services\eventlog\Application\Oracle.cd] [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\services\OracleDBConsoleorcl] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Oracle11] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Oracle11\Performance] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Oracle11\Performance\KEY_OraDb11g_home1] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleDBConsolemain] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleDBConsolemain\Security] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleDBConsolemain\Enum] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleDBConsoleoracl] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleDBConsoleoracl\Security] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleDBConsoleoracl\Enum] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleJobSchedulerMAIN] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleJobSchedulerMAIN\Security] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleJobSchedulerORACL] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleJobSchedulerORACL\Security] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleMTSRecoveryService] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleMTSRecoveryService\Security] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleMTSRecoveryService\Enum] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleOraDb11g_home1ClrAgent] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleOraDb11g_home1ClrAgent\Security] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleOraDb11g_home1TNSListener] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleOraDb11g_home1TNSListener\Security] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleOraDb11g_home1TNSListener\Enum] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleRemExecService] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleRemExecService\Security] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleRemExecService\Enum] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleServiceMAIN] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleServiceMAIN\Security] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleServiceMAIN\Enum] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleServiceORACL] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleServiceORACL\Security] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleServiceORACL\Enum] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleVssWriterMAIN] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleVssWriterMAIN\Security] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleVssWriterMAIN\Enum] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleVssWriterORACL] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleVssWriterORACL\Security] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleVssWriterORACL\Enum] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\OracleServices for MTS] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\Oracle.main] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\Oracle.oracl] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\Oracle.VSSWriter.MAIN] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\Oracle.VSSWriter.ORACL] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\OracleDBConsolemain] [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\OracleDBConsoleoracl] [-HKEY_CLASSES_ROOT\ORAMMCCFG11.ComponentData] [-HKEY_CLASSES_ROOT\ORAMMCCFG11.ComponentData\CurVer] [-HKEY_CLASSES_ROOT\ORAMMCCFG11.ComponentData.1] [-HKEY_CLASSES_ROOT\ORAMMCCFG11.ComponentData.1\CLSID] [-HKEY_CLASSES_ROOT\ORAMMCPMON11.ComponentData] [-HKEY_CLASSES_ROOT\ORAMMCPMON11.ComponentData\CurVer] [-HKEY_CLASSES_ROOT\ORAMMCPMON11.ComponentData.1] [-HKEY_CLASSES_ROOT\ORAMMCPMON11.ComponentData.1\CLSID] [-HKEY_CLASSES_ROOT\ORCLMMC.About] [-HKEY_CLASSES_ROOT\ORCLMMC.About\CLSID] [-HKEY_CLASSES_ROOT\ORCLMMC.About.1] [-HKEY_CLASSES_ROOT\ORCLMMC.About.1\CLSID] [-HKEY_CLASSES_ROOT\ORCLSSO.ComponentData] [-HKEY_CLASSES_ROOT\ORCLSSO.ComponentData\CurVer] [-HKEY_CLASSES_ROOT\ORCLSSO.ComponentData.1] [-HKEY_CLASSES_ROOT\ORCLSSO.ComponentData.1\CLSID] [-HKEY_CLASSES_ROOT\OracleConfig.OracleConfig] [-HKEY_CLASSES_ROOT\OracleConfig.OracleConfig\CurVer] [-HKEY_CLASSES_ROOT\OracleConfig.OracleConfig.1] [-HKEY_CLASSES_ROOT\OracleConfig.OracleConfig.1\CLSID] [-HKEY_CLASSES_ROOT\OracleDatabase.OracleDatabase] [-HKEY_CLASSES_ROOT\OracleDatabase.OracleDatabase\CurVer] [-HKEY_CLASSES_ROOT\OracleDatabase.OracleDatabase.1] [-HKEY_CLASSES_ROOT\OracleDatabase.OracleDatabase.1\CLSID] [-HKEY_CLASSES_ROOT\OracleHome.OracleHome] [-HKEY_CLASSES_ROOT\OracleHome.OracleHome\CurVer] [-HKEY_CLASSES_ROOT\OracleHome.OracleHome.1] [-HKEY_CLASSES_ROOT\OracleHome.OracleHome.1\CLSID] [-HKEY_CLASSES_ROOT\OracleInProcServer.XOraServer] [-HKEY_CLASSES_ROOT\OracleInProcServer.XOraServer\CLSID] [-HKEY_CLASSES_ROOT\OracleInProcServer.XOraServer\CurVer] [-HKEY_CLASSES_ROOT\OracleInProcServer.XOraServer.5] [-HKEY_CLASSES_ROOT\OracleInProcServer.XOraServer.5\CLSID] [-HKEY_CLASSES_ROOT\OracleInProcServer.XOraSession] [-HKEY_CLASSES_ROOT\OracleInProcServer.XOraSession\CLSID] [-HKEY_CLASSES_ROOT\OracleInProcServer.XOraSession\CurVer] [-HKEY_CLASSES_ROOT\OracleInProcServer.XOraSession.5] [-HKEY_CLASSES_ROOT\OracleInProcServer.XOraSession.5\CLSID] [-HKEY_CLASSES_ROOT\OracleProcess.OracleProcess] [-HKEY_CLASSES_ROOT\OracleProcess.OracleProcess\CurVer] [-HKEY_CLASSES_ROOT\OracleProcess.OracleProcess.1] [-HKEY_CLASSES_ROOT\OracleProcess.OracleProcess.1\CLSID] [-HKEY_CLASSES_ROOT\ORADC.ORADCCtrl.1] [-HKEY_CLASSES_ROOT\ORADC.ORADCCtrl.1\CLSID] [-HKEY_CLASSES_ROOT\ORAMMCCFG11.ComponentData] [-HKEY_CLASSES_ROOT\ORAMMCCFG11.ComponentData\CurVer] [-HKEY_CLASSES_ROOT\ORAMMCCFG11.ComponentData.1] [-HKEY_CLASSES_ROOT\ORAMMCCFG11.ComponentData.1\CLSID] [-HKEY_CLASSES_ROOT\ORAMMCPMON11.ComponentData] [-HKEY_CLASSES_ROOT\ORAMMCPMON11.ComponentData\CurVer] [-HKEY_CLASSES_ROOT\ORAMMCPMON11.ComponentData.1] [-HKEY_CLASSES_ROOT\ORAMMCPMON11.ComponentData.1\CLSID] [-HKEY_CLASSES_ROOT\OraOLEDB.ErrorLookup] [-HKEY_CLASSES_ROOT\OraOLEDB.ErrorLookup\CLSID] [-HKEY_CLASSES_ROOT\OraOLEDB.ErrorLookup\CurVer] [-HKEY_CLASSES_ROOT\OraOLEDB.ErrorLookup.1] [-HKEY_CLASSES_ROOT\OraOLEDB.ErrorLookup.1\CLSID] [-HKEY_CLASSES_ROOT\OraOLEDB.Oracle] [-HKEY_CLASSES_ROOT\OraOLEDB.Oracle\CLSID] [-HKEY_CLASSES_ROOT\OraOLEDB.Oracle\CurVer] [-HKEY_CLASSES_ROOT\OraOLEDB.Oracle.1] [-HKEY_CLASSES_ROOT\OraOLEDB.Oracle.1\CLSID] [-HKEY_CLASSES_ROOT\OraPerfMon.OraPerfMon] [-HKEY_CLASSES_ROOT\OraPerfMon.OraPerfMon\CurVer] [-HKEY_CLASSES_ROOT\OraPerfMon.OraPerfMon.1] [-HKEY_CLASSES_ROOT\OraPerfMon.OraPerfMon.1\CLSID] [-HKEY_CLASSES_ROOT\ORCLMMC.About] [-HKEY_CLASSES_ROOT\ORCLMMC.About\CLSID] [-HKEY_CLASSES_ROOT\ORCLMMC.About.1] [-HKEY_CLASSES_ROOT\ORCLMMC.About.1\CLSID] [-HKEY_CLASSES_ROOT\ORCLSSO.ComponentData] [-HKEY_CLASSES_ROOT\ORCLSSO.ComponentData\CurVer] [-HKEY_CLASSES_ROOT\ORCLSSO.ComponentData.1] [-HKEY_CLASSES_ROOT\ORCLSSO.ComponentData.1\CLSID] [-HKEY_CLASSES_ROOT\EnumOraHomes.EnumOraHomes] [-HKEY_CLASSES_ROOT\EnumOraHomes.EnumOraHomes\CurVer] [-HKEY_CLASSES_ROOT\EnumOraHomes.EnumOraHomes.1] [-HKEY_CLASSES_ROOT\EnumOraHomes.EnumOraHomes.1\CLSID]
创建一个文本文件,修改后缀名为.reg,然后保存。执行脚本信息,添加注册表信息。