Page 1 of 1

Issue with reading TNS_ADMIN from registry.

Posted: Thu 18 Jul 2013 14:51
by MarkF
The code that reads TNS_ADMIN from the windows registry currently requests KEY_WRITE access which will fail under normal user accounts on Windows Vista and above for HKLM. The code should be changed to:

Code: Select all

      // RegIniFile := TRegIniFile.Create('', KEY_READ OR KEY_WRITE);  // original line
      RegIniFile := TRegIniFile.Create('', KEY_READ);   // just ask for read access.
This is in function TOraServerEnumerator.GetTNSFileName.

-Mark

Re: Issue with reading TNS_ADMIN from registry.

Posted: Thu 18 Jul 2013 15:45
by AlexP
Hello,

Thanks for the information, we'll change the access level when reading from the HKLM registry branch