I'm needing to create an Oracle Read Only User in a 10.2 Oracle GDB. I'm reading the documentation for Adding Users To Oracle. I see that a user must be able to create the Log File tables. About 1/4 the way down the Log file documentation (under heading "Permissions required for shared log files"), the help suggests that you do the following to create a read-only user:
This might be a fine way to "let ArcMap do what it needs to do" and then take back control, but in a large company with source control, change management and DBA environment promotion, my DBA's aren't going to like this approach. They would much rather do everything in a more precise, scriptable (documented) method.
This process seems to create 2 tables, 4 indexes, and 1 sequence. Can I not just copy the DDL from these objects in DEV to give to my DBA's to push up to production? This seems to work. If so, I'm not sure why this isn't documented.
The new steps would be:
<EDIT> Thanks to Vince Angelo
Other alternatives to creating the logfile objects via SQL or having a user manually select 101+ features in Arcmap:
New to 10.4
Haven't tested these methods. All 3 methods would be scriptable/automated, but they are not as explicit as just creating the objects in SQL and still require the extra permissions to be added/revoked.
Message was edited by: Jason Tipton Added some alternatives to SQL creation. Edited Again to add 10.4 update
Solved! Go to Solution.
Try:
sdeping -i sde:oracle11g -u [username] -p [password]@[tnsname] -v
If that doesn't work, I recommend using Instant Client.
- V
That was it!
Just happened to find in the "What's New in ArcMap 10.4" that the Create Database User Tool now creates the log tables when the tool is ran. That certainly simplifies the workflow from an ArcGIS user standpoint.
Unfortunately, again, it doesn't help my cause because I need to do all of this from the Oracle side and you still have to come back after running that script and remove the Create table/sequence permissions.
I will add that to the list of alternatives.
There is an ideas post for this as well as an enhancement for this functionality. This would pair very nicely with the new functionality of the 'Create Database User' tool creating the log file tables for the user without having to make a selection set, etc.
ENH-000090374 - Add the option within the 'Create Database User' geoprocessing tool to toggle between a user with permission to connect or a user with permission to load data
http://ideas.arcgis.com/ideaView?id=087E0000000Cx8dIAC#sthash.sk5AnmOD