To unlock an account in SLES 11 SP3
$ pam_tally2 --user=accountname --reset=0
$ faillog -u root -reset
Friday, February 28, 2014
Thursday, February 13, 2014
Loại bỏ dấu tiếng Việt trong Oracle PL/SQL
CREATE OR REPLACE FUNCTION CONVERTTOUNSIGN(p_string VARCHAR2) RETURN VARCHAR2 AS
BEGIN
RETURN TRANSLATE(p_string, 'ăâđêôơưàảãạáằẳẵặắầẩẫậấèẻẽẹéềểễệếìỉĩịíòỏõọóồổỗộốờởỡợớùủũụúừửữựứỳỷỹỵýĂÂĐÊÔƠƯÀẢÃẠÁẰẲẴẶẮẦẨẪẬẤÈẺẼẸÉỀỂỄỆẾÌỈĨỊÍÒỎÕỌÓỒỔỖỘỐỜỞỠỢỚÙỦŨỤÚỪỬỮỰỨỲỶỸỴÝ', 'aadeoouaaaaaaaaaaaaaaaeeeeeeeeeeiiiiiooooooooooooooouuuuuuuuuuyyyyyAADEOOUAAAAAAAAAAAAAAAEEEEEEEEEEIIIIIOOOOOOOOOOOOOOOUUUUUUUUUUYYYYYDD');
END CONVERTTOUNSIGN;
Subscribe to:
Posts (Atom)