Oracle Apps DBA
Oracle Apps DBA
Monday, 5 October 2015
VNC server configuration -sri
VNC server configuration:
steps : from racsinfotech
$vncserver
Edit /home/username/.vnc/xstartup script as
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
to kill the vnc
vncserver -kill :1
vncserver
By executing vncserver for the second time or execute the vncserver :2 command, this will startup VNC server that bind and listen to port 5802, 5902, and 6002 respectively.
To connect to Linux VNC server over HTTP protocol, just type walkernews.net:5801 (replace walkernews.net with your VNC server IP/hostname) at any javascripts-enabled web browser, such as Mozilla Firefox, Opera, or Internet Explorer.
To connect to Linux VNC server over RFB protocol, just type walkernews.net:5901 at the VNC client.
Concurrent users in a instance
Calculate number of concurrent users of an existing instance
The view v$license keeps track of concurrent sessions and users.
SQL> desc v$license
Name Null? Type
----------------------------------------- -------- ----------------
SESSIONS_MAX NUMBER
SESSIONS_WARNING NUMBER
SESSIONS_CURRENT NUMBER
SESSIONS_HIGHWATER NUMBER
USERS_MAX NUMBER
CPU_COUNT_CURRENT NUMBER
CPU_CORE_COUNT_CURRENT NUMBER
CPU_SOCKET_COUNT_CURRENT NUMBER
CPU_COUNT_HIGHWATER NUMBER
CPU_CORE_COUNT_HIGHWATER NUMBER
CPU_SOCKET_COUNT_HIGHWATER NUMBER
select sessions_current from v$license;
The above query will give you the number of concurrent users right now.
You can write a small job which will capture this information every hour for a week. Once you have this data, you can take an average of this data to get the number of concurrent users.
select SESSIONS_CURRENT,SESSIONS_HIGHWATER,CPU_COUNT_CURRENT,CPU_COUNT_HIGHWATER from v$license;
=================
Useful Command for VNC
Below are some useful command for VNC server
1. Start a vncserver
Command : vncserver
You will prompted to provided the password.
2. Changing the password for VNC
Command: vncpasswd : n (e.g. vncpasswd : 1)
n- The port on which the vnc is running.
3. Killing a VNC server
Command: vncserver -kill :n (e.g. vncserver -kill :n)
n- The port on which the vnc is running.
As a good practice we should use above command to clear vnc server. Killing a OS level process will not release the lock on the vnc port which was used previously for running vnc . So next time we will not be able to start on that locked vnc port.
Thanks
Srini
Labels:
11i/R12
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
No one has ever become poor by giving