1. Check table storage engine (테이블 별 엔진 확인)
SELECT TABLE_SCHEMA,TABLE_NAME,ENGINE FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='[DB_NAME]';
2. Change storage engine (테이블 엔진 변경)
ALTER TABLE [TABLE_NAME] ENGINE='[STORAGE_ENGINE]';
# set the maximum number of files ulimit -Sn sudo vi /etc/security/limits.conf
# Download RPM Package $> wget http://www.infiniflux.com/dist/infiniflux-std-3.0.1.8813.official-LINUX-X86-64-release.rpm
# Install RPM Package $> sudo yum localinstall infiniflux-std-3.0.1.8813.official-LINUX-X86-64-release.rpm
# List installed package up #> ls -al /opt/ | grep infiniflux #> ls -al /opt/infiniflux/ #> ls -al /opt/infiniflux/versions/3.0.1
# Setup Enviroment #> vi .bashrc
# Command # service ifluxd {start|stop|kill|restart|createdb|destorydb|check|IWA|console|port|exe|collector|help}
# Start DB #> sudo service ifluxd start
# Check or change port #> sudo service ifluxd port
------------------------------------------------------------------------------ -- Redo Log Group, Member Information -- -- CURRENT : LGWR Process is in use -- ACTIVE : LGWR Process is not in use. But Recover is necessary because of transaction spending long time -- INACTIVE : LGWR Process is not in use and Recovery is not necessary ------------------------------------------------------------------------------ SELECT GROUP# , MEMBERS , BYTES , ARCHIVED , STATUS FROM V$LOG;
------------------------------ -- Redo Log File Information ------------------------------ SELECT GROUP# , STATUS , MEMBER FROM V$LOGFILE;
SELECT * FROM INFORMATION_SCHEMA.LOCKS; SELECT * FROM INFORMATION_SCHEMA.LOCKS WHERE TABLE_SCHEMA = '<SCHEMA_NAME>' AND TABLE_NAME = '<TABLE_NAME>' ;
crypto.encrypt(algo, key, plain [, iv])
algo
the name of the encryption algorithm to use, one of"AES-ECB"
for 128-bit AES in ECB mode"AES-CBC"
for 128-bit AES in CBC modekey
the encryption key as a string; for AES encryption this MUST be 16 bytes longplain
the string to encrypt; it will be automatically zero-padded to a 16-byte boundary if necessaryiv
the initilization vector, if using AES-CBC; defaults to all-zero if not given1 2 3 4 5 6 | key = "1234567890abcdef" cipher = crypto.encrypt("AES-ECB", key, "Hi, I'm secret!") print(crypto.toBase64(cipher)) cipher = crypto.encrypt("AES-ECB", key, "가나다라마바사") print(crypto.toBase64(cipher)) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | public static void main( String[] args) throws Exception { String keyValue = "1234567890abcdef"; String encryptedText1 = "LQ95s23+t6PK0mmokJFSYg=="; String encryptedText2 = "w9kOL6y40iVqhuGdWt6vLw=="; java.nio.charset.Charset charset = java.nio.charset.Charset.forName( "euckr"); java.security.Key key = new javax.crypto.spec.SecretKeySpec( keyValue.getBytes( charset), "AES"); javax.crypto.Cipher cipher = Cipher.getInstance( "AES/ECB/NoPadding"); cipher.init( Cipher.DECRYPT_MODE, key); System.out.println( "DecryptedText1=" + new String( cipher.doFinal( org.apache.commons.codec.binary.Base64.decodeBase64( encryptedText1.getBytes( charset))), charset)); System.out.println( "DecryptedText2=" + new String( cipher.doFinal( org.apache.commons.codec.binary.Base64.decodeBase64( encryptedText2.getBytes( charset))), charset)); } |
# yum -y install sendmail*
# vi /etc/mail/sendmail.mc
# m4 /etc/mail/sendmail.mc > /ect/mail/sendmail.cf # vi /etc/mail/snedmail.cf
# vi /ect/mail/access
# makemap hash /etc/mail/access < /etc/mail/access
# vi /etc/mail/local-host-names
# service saslauthd start # chkconfig saslauthd on # init 6
# service iptables stop # chkconfig --level 345 iptables off # vi /etc/selinux/config # getenforce
# service iptables status
# yum -y install dovecot
# vi /etc/dovecot/dovecot.conf
# vi /etc/dovecot/conf.d/10-mail.conf
# vi /etc/dovecot/conf.d/10-ssl.conf
# vi /etc/dovecot/conf.d/10-auth.conf
# service dovecot start # chkconfig dovecot on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | public static String convertHex2IP( String hex) throws UnknownHostException { java.net.InetAddress address = java.net.InetAddress.getByAddress( javax.xml.bind.DatatypeConverter.parseHexBinary( hex)); return address.getHostAddress(); } public static String convertIP2Hex( String ip) throws UnknownHostException { java.net.InetAddress address = java.net.InetAddress.getByName( ip); byte[] bytes = address.getAddress(); StringBuilder sb = new StringBuilder(); for ( int ll = 0; ll < bytes.length; ll++) sb.append( String.format( "%02X", bytes[ ll])); return sb.toString(); } |
1 2 3 4 5 | public static boolean ping( String host, int milisecondTimeout) throws UnknownHostException, IOException { java.net.InetAddress address = InetAddress.getByName( host); return address.isReachable( milisecondTimeout); } |