Jun 10, 2010 2:14 PM
ODBC System table Question
-
Like (0)
I'm new in the Netezza space and was hoping there was some handy documentation regarding the _t_user, _t_usrobj_priv, _t_database and similar tables that would assist in doing a direct look up for users, databases, groups, and permissions. I initially posted this in the Enzee Universe and figured this might also get some visibility.
Thanks in advance.
There is no external documentation available for the _t_* tables. In general documentation on the system catalog tables and views is very sparse even where it is available.
If you have a specific need such as for auditing purposes you should contact netezza support and/or your technical account manager to get the information that you need. You can also read through the code in the contrib scripts. The nz_get_acl script can display the list of users that have access to a specific object or to list all objects a specific user has access to. It is a bash shell script (and calls several other bash shell scripts) so you can figure everything out that way. You can contact support or your technical account manager to get the contrib scripts installed if they are not already installed.
The nzsql command has an option -E which causes the SQL for the internal backslash commands to be echoed prior to the commands running. This provides insight into how things work internally. Like most vendors Netezza makes a point of stating that system catalogs change without notice. The views _v_* change less, so if your better off using a view if your writting code and want to avoid change from release to release.
Views which start with _v_odbc, _v_jdbc, _v_oledb , ... are typically tied to the standard and tend to be very stable, so if you want information which is published via an interface standard getting it from these view will likely result in few visits to fix the view from release to release. ![]()

