Monday, June 30, 2014

TIPS: Linux Commands to add swap space

1) Login as "root" user.

2) Execute command "/sbin/swapon -s" (Remove quotations) and you will get current swap size details:

Sample OutPut:
[root@dev /]# /sbin/swapon -s
Filename                                Type            Size    Used    Priority
/dev/mapper/VolGroup00-LogVol01         partition       2064376 0       -1

3) Execute below command to create new swap space with 2048MB space

dd if=/dev/zero of=/home/swapfile bs=2048 count=1048576

Sample OutPut: 
[root@dev /]# dd if=/dev/zero of=/home/swapfile bs=2048 count=1048576
1048576+0 records in
1048576+0 records out
2147483648 bytes (2.1 GB) copied, 13.8048 seconds, 156 MB/s

4) Execute below commands to create swap file:

/sbin/mkswap /home/swapfile 
/sbin/swapon /home/swapfile 

Now, Swap size is increased to 4 GB.

5) To check the swap space execute "/sbin/swapon -s"

Sample OutPut: 

[root@dev /]# /sbin/swapon -s
Filename                                Type            Size    Used    Priority
/dev/mapper/VolGroup00-LogVol01         partition       2064376 0       -1
/home/swapfile                          file            2097144 0       -2


-- Siva Pokuri.

Sunday, June 22, 2014

Google Gestures!!!


Oracle Access Manager 11g Sample Authentication Plug-ins

Here is the sample OAM 11g Authentication plug-ins provided by Oracle.

http://www.oracle.com/technetwork/indexes/samplecode/id-mgmt-1884959.html

-- Siva Pokuri.

Linux vi commands

Window motions
--------------------
<CTRL>d -- Scroll down (half a screen)
<CTRL> -- Scroll up (half a screen)
<CTRL>f -- Page forward
<CTRL>b -- Page backward
/string -- Search forward
?string -- Search backward
n -- Repeat search
N -- Repeat search reverse
G -- Go to last line
nG -- Go to line n :n -- Go to line n
<CTRL>l -- Redraw screen
<CTRL>g -- File information

Cursor motions
------------------
H -- Upper left corner (home)
M -- Middle line
L -- Lower left corner
h -- Back a character
j -- Down a line
k -- Up a line
^ -- Beginning of line
$ -- End of line
l -- Forward a character
w -- Forward one word
b -- Back one word
fc -- Find c
; -- Repeat find (find next c)

Input commands (end with ESC)
--------------------------------------
a -- Append after cursor
i -- Insert before cursor
o -- Open line below
O -- Open line above
:r file -- Insert file after current line

Changes during insert mode
---------------------------------
<CTRL>h -- Back one character
<CTRL>w -- Back one word
<CRTL>u -- Back to beginning of insert

Move text from file old to file new
--------------------------------------
vi old "a10yy -- Yank 10 lines to buffer a
:w -- Write work buffer
:enew -- Edit new file
"ap -- Put text from a after cursor

Deletion commands
------------------------
dd -- Delete line
ndd -- Delete n lines to general buffer
dw -- Delete word to general buffer
ndw -- Delete n words
d) -- Delete to end of sentence
db -- Delete previous word
D -- Delete to end of line
x -- Delete character

Recovering deletions
------------------------
p -- Put general buffer after cursor
P -- Put general buffer before cursor
Change commands
s -- Substitute (ESC) - 1 char with string
cw -- Change word (ESC)
cc -- Change line (ESC) - blanks line
c$ -- Change to end of line
rc -- Replace character with c
R -- Replace (ESC) - typeover
. -- Repeat last change

Undo commands
u -- Undo last change
U -- Undo all changes on line

Rearrangement commands
--------------------------------
yy or Y -- Yank (copy) line to general buffer
"z6yy -- Yank 6 lines to buffer z
yw -- Yank word to general buffer
"a9dd -- Delete 9 lines to buffer a
"A9dd -- Delete 9 lines; append to buffer a
"ap -- Put text from buffer a after cursor
p -- Put general buffer after cursor
P -- Put general buffer before cursor
J -- Join lines

File management commands
----------------------------------
:w name -- Write edit buffer to file name
:wq -- Write to file and quit
:q! -- Quit without saving changes
ZZ -- Same as :wq
:sh -- Execute shell commands (<CTRL>d)

Parameters
-------------
:set list -- Show invisible characters
:set nolist -- Don't show invisible characters
:set number -- Show line numbers
:set nonumber -- Don't show line numbers

-- Siva Pokuri.

Thursday, June 5, 2014

Oracle Adaptive Access Manager(OAAM) 11g R2 PS1: Unable to view Device details in OAAM Sessions

Issue: Not able to view Device Info in OAAM Admin Console

Fix: Redeploy "oaam_admin.ear" from Weblogic Admin console and clear OAAM Admin Server "tmp" folder and restart the OAAM Admin Managed Server.

Note: Make sure OAAM Admin Server is running while redeploying the oaam_admin.ear file.

-- Siva Pokuri.