Original User: jbarretteI assume you are not trying to change the owner of the data, you are simply changing the user/password info associated with the connections file. Your new connection file should have that new info. Is it not working? At 10.04 SP4 we fixed and issue (NIM075806) where arcpy.mapping mxd.replaceWorkspaces fails when moving from one workspace to a different workspace when the "to" workspace is not the owner user account. A work around is to do the repair in a two step process: 1) go from owner on workspace1 to owner on workspace2 and then 2) go from owner on workspace2 to user on workspace2. In other words, make one change at a time.I'm not sure this is your issue if you are trying to set the user to be the owner.Here is some code:
connection1 = SQLasOwner
connection2 = OracleAsOwner
connection3 = OracleAsuser
mxd = arcpy.mapping.MapDocument(relPath + r"\SQLServer.mxd")
mxd.replaceWorkspaces(connection1, "SDE_WORKSPACE", connection2, "SDE_WORKSPACE")
mxd.replaceWorkspaces(connection2, "SDE_WORKSPACE", connection3, "SDE_WORKSPACE")
Jeff