Langsung ke konten utama

Netezza Alter User Command and Examples

https://dwgeek.com/netezza-alter-user-command-examples.html/

Once you created a user, you can change the parameters of the user at any time with Netezza ALTER USER command. You can read my other post Netezza CREATE USER command and examples.

Netezza Alter User Command Syntax

In the Netezza, username, database name and group name are unique. You cannot have same user as the group name.

Read:

Syntax for altering a user:

ALTER USER username
[WITH
[PASSWORD {'string' | NULL }]
[SYSID uid]
[ROWSETLIMIT [integer ]
[IN GROUP groupname [, ...] ]
[VALID UNTIL 'date' ]
[SESSIONTIMEOUT [integer ]
[QUERYTIMEOUT [integer ]
[DEFPRIORITY [critical|high|normal|low|none]]
[MAXPRIORITY [critical|high|normal|low|none]]
[IN RESOURCEGROUP resourcegroupname]
[EXPIRE PASSWORD]
]
| CONCURRENT SESSIONS <limit>
| ALLOW CROSS JOIN [TRUE|FALSE|NULL]

Netezza Alter User Command Options

The alter user command takes following inputs. Below are the some of the important options associated with the Netezza alter user command:

OptionDescription
usernameSpecifies the name of the user you are creating
stringSpecifies a password for this user account
NULLYou can specify WITH PASSWORD NULL to explicitly create a user

with a null password

dateSpecifies the date when this user’s

account expires

SESSIONTIMEOUTSpecifies the amount of time a session can be idle before the system

terminates it. The value zero is unlimited

QUERYTIMEOUTSpecifies the amount of time a query can run before the system

sends the administrator a message.

DEFPRIORITYSpecifies the default priority for the user. critical, high, normal, low
IN RESOURCEGROUPSpecifies the resource group into which to add a user
IN GROUPSpecifies the group into which to insert the user as a new member. e.g Developer, Administrator etc
CONCURRENT SESSIONS <limit>Sets the maximum number of concurrent sessions this group can have

Netezza Alter User Command Examples

Below are some examples on how to alter user:

TRAINING.ADMIN(ADMIN)=> ALTER USER testuser1 WITH PASSWORD 'test123' VALID UNTIL '2017-05-15'; 
ALTER USER 
TRAINING.ADMIN(ADMIN)=>

[nz@netezza ~]$ nzsql -u testuser1 -pw test123; 
Welcome to nzsql, the IBM Netezza SQL interactive terminal. 
Type: \h for help with SQL commands 
 \? for help on internal slash commands 
 \g or terminate with semicolon to execute query 
 \q to quit

SYSTEM.ADMIN(TESTUSER1)=>

Netezza Alter User Command – RESET, RENAME

You can also use the Netezza alter user command to RESET user account and also to rename user.

ALTER USER user_name OWNER TO username 
ALTER USER user_name RESET ACCOUNT 
ALTER USER user_name RENAME TO newname

Komentar

Postingan populer dari blog ini

CREATE CROSS TAB QUERY IN MYSQL

MySQL Multi-Aggregated Rows in Crosstab Queries MySQL’s crosstabs contain aggregate functions on two or more fields, presented in a tabular format. In a multi-aggregate crosstab query, two different functions can be applied to the same field or the same function can be applied to multiple fields on the same (row or column) axis. Rob Gravelle shows you how to apply two different functions to the same field in order to create grouping levels in the row axis. Today’s topic of discussion is crosstabs, which contain multiple aggregate functions in the row axis of a tabular resultset. Recall from the the  All About the Crosstab Query  article that an aggregate function is one that summarizes a group of related data in some way. Examples of aggregate functions include COUNT, SUM, AVG, MIN, and MAX. In a multi-aggregate crosstab query, two different functions can be applied to the same field or the same function can be applied to two or more fields. Today we’ll create a query...

Mengatasi "This app can’t run on your PC Windows 10"

  Salah satu pesan error yang sering muncul saat aplikasi tidak bisa dibuka di Windows 10 adalah “ This app can’t run on your PC ,   to find a version for your PC check with the software publisher “. Masalah seperti ini cukup umum dan dialami banyak orang, terutama saat menjalankan aplikasi yang bukan dari Microsoft. Penyebab utama terjadinya masalah ini adalah karena masalah kompatibilitas antara aplikasi dengan versi Windows yang dianggap tidak sesuai oleh sistem. Bisa juga karena aplikasi atau game yang akan jalankan tersebut terkena filter oleh Windows sehingga prosesnya diblokir. Windows 10 memiliki fitur untuk memblokir aplikasi tidak dikenal yang berasal dari  unverified developers , fitur ini secara default akan aktif dengan tujuan untuk mencegah masuknya aplikasi yang mengandung malware dan virus. Penyebab lainnya bisa juga karena file aplikasi yang rusak, file sistem yang korup, atau masalah yang disebabkan oleh malware dan virus. Pada kesempatan kali ini  ...

Linux Basic Command Cheat Sheet

 https://www.guru99.com/linux-commands-cheat-sheet.html Linux Command Cheat Sheet In this Linux/Unix command line cheat sheet, you will learn: Basic Linux commands File Permission commands Environment Variables command User management commands of linux Networking command Process command VI Editing Commands Basic Linux commands Command Description ls Lists all files and directories in the present working directory ls -R Lists files in sub-directories as well ls -a Lists hidden files as well ls -al Lists files and directories with detailed information like permissions,size, owner, etc. cd or cd ~ Navigate to HOME directory cd .. Move one level up cd To change to a particular directory cd / Move to the root directory cat > filename Creates a new file cat filename Displays the file content cat file1 file2 > file3 Joins two files (file1, file2) and stores the output in a new file (file3) mv file "new file path" Moves the files to the new location mv filename new_file_name Re...