Skip navigation
16198 Views 3 Replies Latest reply: Jul 20, 2010 3:36 PM by jskier RSS
jpport123 New Enzee 2 posts since
Jun 9, 2010
Currently Being Moderated

Jun 10, 2010 2:14 PM

ODBC System table Question

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.

  • Shawn Fox Enzee Exraordinaire 1,333 posts since
    Aug 15, 2006
    Currently Being Moderated
    1. Jun 10, 2010 3:06 PM (in response to jpport123)
    Re: ODBC System table Question

    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.

  • Shawn Fox Enzee Exraordinaire 1,333 posts since
    Aug 15, 2006
    Currently Being Moderated
    2. Jun 10, 2010 3:17 PM (in response to Shawn Fox)
    Re: ODBC System table Question

    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.

  • jskier New Enzee 14 posts since
    Oct 6, 2006
    Currently Being Moderated
    3. Jul 20, 2010 3:36 PM (in response to jpport123)
    Re: ODBC System table Question

    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.

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points