SELECT CASE WHEN _V_USER.USERNAME IS NOT NULL THEN 'USER'
WHEN _V_GROUP.GROUPNAME IS NOT NULL THEN 'GROUP'
ELSE 'UNKNOWN' END AS USERS_GROUPS,
COALESCE(_V_USER.USERNAME,_V_GROUP.GROUPNAME) AS NAME,
NVL(_V_DATABASE. DATABASE,'GLOBAL' ) AS DATABASE ,
_T_OBJECT.OBJNAME AS OBJECTNAME,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Netezza ticket Instructions | |
| call 1-800-426-7378 | |
| Option 2 | |
| Option 2 | |
| Ask to open a Netezza appliance ticket |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use [db_name] | |
| select * | |
| from sysusers | |
| order by name ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT TOP 100 name, create_date, modify_date | |
| FROM sys.objects | |
| WHERE type = 'P' | |
| ORDER BY modify_date DESC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT DB_NAME(database_id) | |
| ,OBJECT_NAME(object_id) | |
| ,cached_time | |
| ,last_execution_time | |
| ,execution_count | |
| FROM sys.dm_exec_procedure_stats | |
| WHERE DB_NAME(database_id) = 'DB_NAME' | |
| ORDER BY last_execution_time DESC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- This will force the user to enter a new passowrd upon the next login. User needs to know currentl PW. | |
| -- http://www.ibm.com/support/knowledgecenter/SSULQD_7.2.1/com.ibm.nz.adm.doc/c_sysadm_password_expiration.html | |
| ALTER USER User EXPIRE PASSWORD; |
CREATE USER User WITH PASSWORD 'password';\dpu User;
NewerOlder