Single User Mode

Moderator: NorbertKrupa

Post Reply
User avatar
Jbaskin
Intermediate
Intermediate
Posts: 61
Joined: Sat Jan 28, 2012 1:21 pm

Single User Mode

Post by Jbaskin » Tue Apr 17, 2012 10:07 pm

Hi, Is there a way to put Vertica into a single user mode so that no one can log on except for admins? If I need to do maintenance I don't want anyone logging in, which now they do...

-baskin

User avatar
JimKnicely
Site Admin
Site Admin
Posts: 1825
Joined: Sat Jan 21, 2012 4:58 am
Contact:

Re: Single User Mode

Post by JimKnicely » Wed Apr 18, 2012 8:55 pm

Hi jbaskin,

You can set the MaxClientSessions parameter to 0 to disable any new connections and close any current sessions with the CLOSE_SESSION function.

Use this statement in vsql to set the MaxClientSessions parameter to 0:
  • SELECT SET_CONFIG_PARAMETER ('MaxClientSessions', 0);
And here is a link to a post that explains how to use the CLOSE_SESSION function:
I hope this helps!
Jim Knicely

Image

Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.

DataWhisperer
Newbie
Newbie
Posts: 16
Joined: Fri May 11, 2012 12:25 pm

Re: Single User Mode

Post by DataWhisperer » Sat May 12, 2012 8:03 am

Just remember to set to number back to what you had before. Default MaxClientSessions is 50, but if you've changed it:

Code: Select all

SELECT current_value FROM configuration_parameters WHERE parameter_name = 'MaxClientSessions';

User avatar
Jbaskin
Intermediate
Intermediate
Posts: 61
Joined: Sat Jan 28, 2012 1:21 pm

Re: Single User Mode

Post by Jbaskin » Sat Jun 16, 2012 12:43 pm

Thanks, guys.

Post Reply

Return to “New to Vertica Database Administration”