If you try to log in invalid password continuously, the user is locked. This is a solution that unlock user.
$> sqlplus / as sysdba
ALTER USER [USER_NAME] ACCOUNT UNLOCK;
cd $ORACLE_HOME/dbs sqlplus / as sysdba
CREATE pfile='[PFILE_NAME]' from spfile='[SPFILE_NAME]'
$> vi myinit.ora
$> sqlplus / as sysdba
startup pfile='[PFILE_NAME]';
create spfile'spfile[INSTANCE_NAME].ora' from pfile'[PFILE_NAME]';
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | public class JacksonTest { private String name = null; private int age = 0; private String[] emails = null; private java.util.List< String> favorites = null; private String mobile = null; private java.util.concurrent.BlockingQueue< String> concurrentQueue = null; public JacksonTest() { } public JacksonTest( String name, int age, String[] emails, java.util.List< String> favorites, String mobile) { this.name = name; this.age = age; this.emails = emails; this.favorites = favorites; this.mobile = mobile; } public String getName() { return name; } public int getAge() { return age; } public String[] getEmails() { return this.emails; } public void setEmails(String[] emails) { this.emails = emails; } public java.util.List<String> getFavorites() { return this.favorites; } public void setFavorites(java.util.List<String> favorites) { this.favorites = favorites; } public String getMobile() { return this.mobile; } public void setMobile(String mobile) { this.mobile = mobile; } public void setName(String name) { this.name = name; } public void setAge(int age) { this.age = age; } public void setConcurrentQueue( java.util.concurrent.BlockingQueue< String> concurrentQueue) { this.concurrentQueue = concurrentQueue; } public java.util.concurrent.BlockingQueue< String> getConcurrentQueue() { return this.concurrentQueue; } public static void main(String[] args) throws IOException { JacksonTest jackson = new JacksonTest( "dorbae", 27, new String[] { "jangsb89@gamil.com", "dorbae@nate.com"}, null, null ); java.util.List< String> favorites = new java.util.ArrayList< String>(); favorites.add( "programming"); favorites.add( "data analytics"); favorites.add( "data modeling"); favorites.add( "swimming"); jackson.setFavorites( favorites); JacksonTest jackson2 = null; // Object -> JSON com.fasterxml.jackson.databind.ObjectMapper mapper = new com.fasterxml.jackson.databind.ObjectMapper(); String json = mapper.writeValueAsString( jackson); System.out.println( "======== Object -> JSON ========"); System.out.printf( "%s\n\n", json); // JSON -> Object mapper = new ObjectMapper(); jackson2 = mapper.readValue( json, JacksonTest.class); System.out.println( "======== JSON -> Object ========"); System.out.printf( "name=%s, age=%d\n", jackson2.getName(), jackson2.getAge()); } } |
1 2 3 4 5 6 7 8 9 10 | @JsonIgnore public void setConcurrentQueue( java.util.concurrent.BlockingQueue< String> concurrentQueue) { this.concurrentQueue = concurrentQueue; } @JsonIgnore public java.util.concurrent.BlockingQueue< String> getConcurrentQueue() { return this.concurrentQueue; } |
public class JacksonTest { private String name = null; private int age = 0; private String[] emails = null; private java.util.List< String> favorites = null; private String mobile = null; public JacksonTest() { } public JacksonTest( String name, int age, String[] emails, java.util.List< String> favorites, String mobile) { this.name = name; this.age = age; this.emails = emails; this.favorites = favorites; this.mobile = mobile; } public String getName() { return name; } public int getAge() { return age; } public String[] getEmails() { return this.emails; } public void setEmails(String[] emails) { this.emails = emails; } public java.util.List<String> getFavorites() { return this.favorites; } public void setFavorites(java.util.List<String> favorites) { this.favorites = favorites; } public String getMobile() { return this.mobile; } public void setMobile(String mobile) { this.mobile = mobile; } public void setName(String name) { this.name = name; } public void setAge(int age) { this.age = age; } public static void main(String[] args) throws IOException { JacksonTest jackson = new JacksonTest( "dorbae", 27, new String[] { "jangsb89@gamil.com", "dorbae@nate.com"}, null, null ); java.util.List< String> favorites = new java.util.ArrayList< String>(); favorites.add( "programming"); favorites.add( "data analytics"); favorites.add( "data modeling"); favorites.add( "swimming"); jackson.setFavorites( favorites); JacksonTest jackson2 = null; // Object -> JSON com.fasterxml.jackson.databind.ObjectMapper mapper = new com.fasterxml.jackson.databind.ObjectMapper(); String json = mapper.writeValueAsString( jackson); System.out.println( "======== Object -> JSON ========"); System.out.printf( "%s\n\n", json); // JSON -> Object mapper = new ObjectMapper(); jackson2 = mapper.readValue( json, JacksonTest.class); System.out.println( "======== JSON -> Object ========"); System.out.printf( "name=%s, age=%d\n", jackson2.getName(), jackson2.getAge()); } }
java.util.Set< String> concurrentSet = java.util.concurrent.ConcurrentHashMap.newKeySet();
java.util.Set< String> concurrentSet = java.util.Collections.newSetFromMap( new java.util.concurrent.ConcurrentHashMap< String, Boolean>());
| DBMS | TABLE |
| H2 | INFORMATION>SCHEMA.TABLES |
| DerbyDB | SYS.SYSTABLES |
| JavaDB | SYS.SYSTABLES |
| MySQL | information_schema.TABLES |
| MariaDB | information_schema.TABLES |
| Oracle | SYS.ALL_TABLES |
| COLUMN | DATA_TYPE |
| TABLE_CATALOG | VARCHAR |
| TABLE_SCHEMA | VARCHAR |
| TABLE_NAME | VARCHAR |
| TABLE_TYPE | VARCHAR |
| STORAGE_TYPE | VARCHAR |
| SQL | VARCHAR |
| REMARKS | VARCHAR |
| LAST_MODIFICATION | BIGINT |
| ID | INTEGER |
| TYPE_NAME | VARCHAR |
| TABLE_CLASS | VARCHAR |
| COLUMN | DATA_TYPE |
| TABLE_CATALOG | VARCHAR(512) |
| TABLE_SCHEMA | VARCHAR(64) |
| TABLE_NAME | VARCHAR(64) |
| TABLE_TYPE | VARCHAR(64) |
| ENGINE | VARCHAR(64) |
| VERSION | BIGINT(21) unsigned |
| ROW_FORMAT | VARCHAR(10) |
| TABLE_ROWS | BIGINT(21) unsigned |
| AVG_ROW_LENGTH | BIGINT(21) unsigned |
| DATA_LENGTH | BIGINT(21) unsigned |
| MAX_DATA_LENGTH | BIGINT(21) unsigned |
| INDEX_LENGTH | BIGINT(21) unsigned |
| DATA_FREE | BIGINT(21) unsigned |
| AUTO_INCREMENT | BIGINT(21) unsigned |
| CREATE_TIME | datetime |
| UPDATE_TIME | datetime |
| CHECK_TIME | datetime |
| TABLE_COLLATION | VARCHAR(32) |
| CHECKSUM | BIGINT(21) unsigned |
| CREATE_OPTIONS | VARCHAR(255) |
| TABLE_COMMENT | VARCHAR(2048) |
java -jar h2*.jar -webAllowOthers -tcpAllowOthers
1 | #> yum -y install ntp
|
#> vi /etc/ntp.conf
#> chkconfig ntpd on #> chkconfig --list | grep ntpd
#> service ntpd start
<broker xmlns="http://activemq.apache.org/schema/core" brokerName="DorbaeBroker" useJmx="true" schedulerSupport="true"> . . . </broker>
| Property name | Type | Description |
| AMQ_SCHEDULED_DELAY | long | The time in milliseconds that a message will wait before being scheduled to be delivered by the broker |
| AMQ_SCHEDULED_PERIOD | long | The time in milliseconds to wait after the start time to wait before scheduling the message again |
| AMQ_SCHEDULED_REPEAT | int | If set period, the number of times to repeat scheduling a message for delivery. Total message count = 1 + repeat If set cron, the number of message repeat when execute cron |
| AMQ_SCHEDULED_CRON | String | Use a Cron entry to set the schedule |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | package pe.dorbae.test.jms.activemq; import java.util.Properties; /* * ************************************************************************************ * * ScheduledMessage.java * * ************************************************************************************ * * @version 1.0.00 2016-07-22 dorbae Initialize * @since 2016-07-22 * @author dorbae * * ************************************************************************************ */ public class TestScheduledMessage { public TestScheduledMessage() { // TODO Auto-generated constructor stub } public static void main(String[] args) { String jmsFactory = "org.apache.activemq.jndi.ActiveMQInitialContextFactory"; String connectionFactoryName = "ConnectionFactory"; String jmsUrl = "tcp://localhost:61616"; String clientId= "iSharkClient.Test.ScheduledMessage"; String queueName = "DORBAE.TEST"; Properties jmsProps = new Properties(); jmsProps.put( javax.naming.Context.INITIAL_CONTEXT_FACTORY, jmsFactory); jmsProps.put( javax.naming.Context.PROVIDER_URL, jmsUrl); javax.naming.InitialContext jndi = null; javax.jms.ConnectionFactory connectionFactory = null; javax.jms.Connection conn = null; javax.jms.Session session = null; javax.jms.Destination destination = null; javax.jms.Message message = null; javax.jms.MessageProducer producer = null; try { jndi = new javax.naming.InitialContext( jmsProps); connectionFactory = ( javax.jms.ConnectionFactory)jndi.lookup( connectionFactoryName); conn = connectionFactory.createConnection(); conn.setClientID( clientId); session = conn.createSession( false, javax.jms.Session.AUTO_ACKNOWLEDGE); // Not Transacted destination = session.createQueue( queueName); producer = session.createProducer( destination); message = session.createTextMessage( "http://dorbae.blogspot.com"); /* * For Delay Message * * Message will be sent to destination after delay times * * long delayTime = 60L * 1000L; // 1 Minute message.setLongProperty( org.apache.activemq.ScheduledMessage.AMQ_SCHEDULED_DELAY, delayTime); * */ /* * For Period Repeat * * Repeated messages will be sent to destination waiting period times between each re-delivery * long period = 10L * 1000L; int repeat = 5; message.setLongProperty( org.apache.activemq.ScheduledMessage.AMQ_SCHEDULED_PERIOD, period); message.setIntProperty( org.apache.activemq.ScheduledMessage.AMQ_SCHEDULED_REPEAT, repeat); * */ /* * For Cron * * Message will be sent to destination according as cron pattern * */ message.setStringProperty( org.apache.activemq.ScheduledMessage.AMQ_SCHEDULED_CRON, "0 * * * *"); producer.send( message); } catch ( Exception e) { e.printStackTrace(); } finally { if ( session != null) try { session.close(); } catch ( Exception e) {} if ( conn != null) try { conn.close(); } catch ( Exception e) {} } } } |
| ScheduledMessage.AMQ_SCHEDULED_CRON | AMQ_SCHEDULED_CRON |
| ScheduledMessage.AMQ_SCHEDULED_DELAY | AMQ_SCHEDULED_DELAY |
| ScheduledMessage.AMQ_SCHEDULED_ID | scheduledJobId |
| ScheduledMessage.AMQ_SCHEDULED_PERIOD | AMQ_SCHEDULED_PERIOD |
| ScheduledMessage.AMQ_SCHEDULED_REPEAT | AMQ_SCHEDULED_REPEAT |
| ScheduledMessage.AMQ_SCHEDULER_ACTION | AMQ_SCHEDULER_ACTION |
| ScheduledMessage.AMQ_SCHEDULER_ACTION_BROWSE | BROWSE |
| ScheduledMessage.AMQ_SCHEDULER_ACTION_END_TIME | ACTION_END_TIME |
| ScheduledMessage.AMQ_SCHEDULER_ACTION_REMOVE | REMOVE |
| ScheduledMessage.AMQ_SCHEDULER_ACTION_REMOVEALL | REMOVEALL |
| ScheduledMessage.AMQ_SCHEDULER_ACTION_START_TIME | ACTION_START_TIME |
| ScheduledMessage.AMQ_SCHEDULER_MANAGEMENT_DESTINATION | ActiveMQ.Scheduler.Management |
#> mysql -uroot -p
SELECT host FROM mysql.user WHERE user='[USER_NAME]';
INSERT INTO mysql.user (host,user,password) VALUES ('[Allowed IP]', '[USER_NAME]', password('[PASSWORD]'));
GRANT ALL PRIVILEGES ON *.* TO '[USER_NAME]'@'[Allowed IP]'; FLUSH PRIVILEGES;
#> hostnamectl set-hostname [HOSTNAME]