Saturday, April 7, 2012

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

Problem Description
While creating new Oracle service using oradim command it fails with DIM-00014: Cannot open the Windows NT Service Control Manager.
C:\Users\Arju>oradim -new -sid A -srvc OracleServiceA
DIM-00014: Cannot open the Windows NT Service Control Manager.
O/S-Error: (OS 5) Access is denied.

Cause of the Problem
The error indicates that the user from which you are using oradim does not have sufficient privileges. It might seem that you are running oradim from command prompt as Administrator user or there only exists one user in windows but still invoking oradim throws same error.

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

Solution of the Problem
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 .

If you are working on command prompt you can use runas OS command while invoking oradim just like below.

C:\Users\Arju>runas /env /user:Arju "oradim -new -sid A -startmode manual -srvcstart system"
Enter the password for Arju:
Attempting to start oradim -new -sid A -startmode manual -srvcstart system as user "ARJU-PC\Arju" ...

No comments: