Sunday, July 29, 2012

Oracle user become locked


http://oramrmessin.blogspot.com/2007/11/oracle-audit-failed-logon-attempts.html


SELECT 
os_username,
username,
userhost,
to_char(timestamp,'mm/dd/yyyy hh24:mi:ss') timestamp,
returncode
from dba_audit_session
where action_name = 'LOGON'
AND RETURNCODE > 0
AND TIMESTAMP > SYSDATE-1
and username = 'USER1'
order by timestamp ;


-- under system
ALTER USER USER1 ACCOUNT UNLOCK;




SQL to define who locked object:

SELECT c.owner, c.object_name, c.object_type, b.SID, b.serial#, b.status,
       b.osuser, b.machine, b.sql_id
  FROM v$locked_object a, v$session b, all_objects c
 WHERE b.SID = a.session_id AND a.object_id = c.object_id
;

SQL to define what SQL is performed during lock: 
 select * from sys.v_$sqlarea where sql_id = '<GET IT FROM PREVIOUS SQL>';

Saturday, July 28, 2012

ubuntu 12.04 items to install

0. Show images in menu items (Eclipse, Nautilus, ....).

gsettings set org.gnome.desktop.interface menus-have-icons true


1. Clipboard manager for working with a lot of text changes and storing https://apps.ubuntu.com/cat/applications/clipit/  have full integration with Unity.

2. Sistem Monitor, link


    sudo add-apt-repository ppa:indicator-multiload/stable-daily
    sudo apt-get update && sudo apt-get install indicator-multiload


3. Coffeine, link
 It will help to not let Laptop to lock screen when you watch movie.
lightsOn.sh - did not work for me.

4. Menu editor:

sudo apt-get install alacarte

Launch application "Main Menu", add them to Programming group, Do not forget to make "eclipse" file as executable.

5. dconf-editor
 desktop > unity > panel , update systray-whitelist with your application.

6. Audacious player (with Winamp view + Skins)
http://www.webupd8.org/2012/08/install-audacious-33-in-ubuntu-1204.html
http://ubuntugeneration.wordpress.com/2009/06/30/audacious-player-with-winamp-skin/ 
or http://www.winamp.com/skin/winampmp11/149846
and then "sudo cp WinampMP11.wsz /usr/share/audacious/Skins"


7. Notes for Ubuntu 12.04  (Unity friendly)
http://askubuntu.com/questions/75180/alternative-to-gnote-when-using-unity
http://zim-wiki.org/
Just install "zim", launch and Menu Edit -> Preferences ... tab "Plugin" , enable  plugin "Tray Icon".

video tutorial - http://www.youtube.com/watch?v=yBZpWgzO9Ps

8. Switch On Application list in "Stratup Applications"
http://www.iloveubuntu.net/how-enable-all-apps-startup-applications-ubuntu-1110


9. Resolving problem with window activation of LibreOffice.
sudo apt-get install lo-menubar
link

10. turn off startup sound.
Never understand why this  feature still required. To switch it off, read.


11. set up different timezones to always know their time (good if your friends live in different countries):
http://www.omgubuntu.co.uk/2012/10/how-to-add-other-timezones-to-ubuntus-clock-applet

12. For 2 monitors: Move window to a specific display using a keyboard shortcut
http://www.webupd8.org/2012/10/ubuntu-multi-monitor-tweaks-full-screen.html
To make shortcut work I did logout and login.


....


Sunday, July 15, 2012

How to remove "Trash" and "Workspace Switcher" from unity panel in Ubuntu 12.04

Noway - It is hardcoded :)

Please vote for https://bugs.launchpad.net/unity/+bug/997322
and
https://bugs.launchpad.net/ayatana-design/+bug/790591

workaround with recompilation of sources:
http://askubuntu.com/questions/38789/remove-the-workspace-switcher-launcher-from-unity-launcher/163952#163952