Updating UV_USERS - will this work?

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The only mechanism you can use to update UV_USERS is to use GRANT and REVOKE statements. Nothing else will work. This means, in turn, that you need to be able to log in as the user who has been granted DBA privilege, as recorded in that UV_USERS table.

That having been done, you will also find that the other tables can not be updated using UPDATE. I do not believe that the owner of tables can be changed. Any tables, not just the ones in the CATALOG schema.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
nick.bond
Charter Member
Charter Member
Posts: 230
Joined: Thu Jan 15, 2004 12:00 pm
Location: London

Post by nick.bond »

Ray,

When writing to a hashed file using the PATH method, what would datastage use as permissions? would it not just check file level permissions? or would it know that I am trying to write to the UV_USERS file which is one of it's system tables and prevent it?

If it is the case that DS knows this is a sytem table, could I not take a copy of this to another location and write to the copy, then move the copy back into $DSHOME/sql/catalog overwriting the current version?
Regards,

Nick.
nick.bond
Charter Member
Charter Member
Posts: 230
Joined: Thu Jan 15, 2004 12:00 pm
Location: London

Post by nick.bond »

Ray one other question :)

If I was to only update the prodUser so they have DBAUTH privaledges would that be sufficient for the system to work correctly, i.e. prodUser to be able to create/delete projects, or does the prodUser need to be owner for the Catalog tables?
Regards,

Nick.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The six tables in the CATALOG schema have an extra level of protection (a bit set in the file header) that prevents their being changed other than by appropriate DDL statements.

Copying these tables can not be guaranteed to work, because they contain an internal Security and Integrity Constraints Area (SICA). I am uncertain (and unable to check today) as to whether the SICA contains the expected pathname of the schema. Certainly the entries in UV_SCHEMA do; you may need to use VERIFY.SQL (as DBA) to repair the CATALOG schema after such a move.

It's probable that granting DBA privilege to all users would allow things to happen. But that's a dangerous course. Do you still have the old UV_USERS table? Can it be repaired? Could it be restored from a system backup (including its three subfiles DATA.30, OVER.30 and .Type30)?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

nick.bond wrote:Unfortunately there is no system backup because against advice no backups were taken as it was deemed quicker to perform reinstall than get a system restore. I think the decision was based on the perceived service provided by the company that looks after the servers (no names but they also make sauce).
:shock: :lol:
-craig

"You can never have too many knives" -- Logan Nine Fingers
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Now this is a good informational post, not something you see everyday. Thanks for the great info guys. This is definately going in my favorites bucket :D
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply