windows下dbca删除OracleserviceXXX时遇到错误:dim-00014 Cannot open the Windows NT Service Control Manager  O/S-Error: (OS 5) Access is denied.

截图如下:

windows下dbca删除OracleserviceXXX时遇到错误:dim-00014 Cannot open the Windows NT Service Control Manager_dim-00014


经过查询mos,发现如下文章与该报错匹配:

How To Create a Service using oradim in Windows Vista (文档 ID 432713.1)


下面截取该mos文章的内容:

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.3 to 11.2.0.2 [Release 10.2 to 11.2]


z*OBSOLETE: Microsoft Windows Vista (32-bit)


Oracle Server Enterprise Edition - Version: 10.2.0.3


Microsoft Windows Vista (32-bit)


Checked for relevance on 19-Nov-2010




Goal

How to create new instance manually using the oradim tool, with a user that is not the oracle Software owner ?

Solution

Trying to create a new instance using the oradim tool with a user that is not the oracle software owner

will fail with the following OS error :

DIM-00014: Cannot open the Windows NT Service Control Manager

O/S-Error: (OS 5) Access is denied.

This is because of the newly introduced OS feature User Account Control (UAC), a new security component in Windows Vista .

To workaround the issue either :

1.   Disable the User Account Control (UAC)  security component .

OR

2.   Go to Start -> Accessories ->  Right click on Command Prompt

and select "Run as Administrator".

to start the command prompt where oradim will be issued .

 

NOTE : This also applies to Windows 7 and Windows 2008 .