Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 15264

Oracle User Password Change via Linked Server with SQL Server 2005

$
0
0

Is it possible to change a password for an Oracle user account over a linked server?

      I know I can use xp_cmdshell and launch sqlplus with my query, but I would prefer an alternate route, such as OPENQUERY.

So far I have tried the following command:

       SELECT * FROM OPENQUERY ( linked_server_name, 'alter userusername identified by password_to_change_to replace old_password')      I get the following response:

Cannot process the object "alter user username identified by password_to_change_to". The OLE DB provider "OraOLEDB.Oracle" for linked server "linked_server_name" indicates that either the object has no columns or the current user does not have permissions on that object.

I am changing the same username that the linked server is using as well, so I should have access to change the user's password.

Any help would be much appreciated.


Viewing all articles
Browse latest Browse all 15264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>