To Be a Humble Guy
ymanyang · 共 9 篇文章
[置顶] About Java Virtual Machine
The compilation mechanism in java Unlike C and C++,java compiles the source text into binary code separately not a single executable application, which also determines the method java stores the references of other objects and links them when needs.Besides, the class binary code are coded with UTF-…
2010-10-07 22:13 · Java · 评论(0)
Java Generic Types
A generic type is a generic class or interface that is parameterized over types. It can be used to generalize the type of parameters and return value in coding without the risk to pass a wrong type to its methods. Like the following example: /** * Generic version of the Box class. * @param <T> the …
2012-11-16 18:10 · Java · 评论(0)
Linux Common Commands
Search text in tail or view command: /to search text, search forward ?to search text, search backward GZIP,TAR,ZIP gzip is used to compress file large that 4GB, and it defaultes to preserve the name,ownership of the file. to unzip, only need -d parameter. gzip files to compress tar is used to blend…
2012-11-16 17:10 · Operating System · 评论(0)
Oracle Common Commands
Import/Export Database: exp username/password@tns name FILE=D:\pub.dump OWNER=(username) imp username/password name FILE=D:\pub.dump TOUSER=(username) FROMUSER=(username) Query all users in the database: select * from all_users; Check the resource limits in oracle: select * from v$resource_limit;
2012-11-16 16:53 · Database · 评论(0)
TNS:no appropriate service handler found
Error Message: Caused by: java.sql.SQLException: Listener refused the connection with the following error: ORA-12519, TNS:no appropriate service handler found The Connection descriptor used by the client was: localhost:1521:xe Cause: This error is generally caused by the value of allowed processes …
2012-11-16 16:47 · Database · 评论(0)
How to change the XMLDB Http and FTP Ports for Oracle
To change the HTTP and FTP ports for Oracle XMLDB, we only need to call the following command in Oracle with DBA role. change HTTP port from 8080 to 9999 call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(), '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()', 9999)); change FTP port…
2012-11-10 12:18 · Database · 评论(0)
SQL Exists Condition
The exists condition is considered to be met if the subquery returns more than one row. It always used to test whether relevant recrods exist and filter out those extraneous results. The common case is that A object and B object have an association, which contains all the relationships between A an…
2012-01-17 17:54 · Database · 评论(0)
SQL Transaction Isolation Level
Introduction Transaction is a mechanism to ensure a bunch of database operations be performed in an atomic way. Either all of the operations succeed(committed) or nothing will be persisted(rollback). By default, a sql statement will begin a transaction if there is no transaction exists in the conne…
2011-12-10 17:38 · Database · 评论(0)
Something about the sample-imagedb in Spring
Start from the web.xml Every web application has a web descriptor which will be parsed by the web server.So it is prefered to start learning with the sample application from the web.xml file.There is a tag called context-param , from its literal meaning i can know that the parameters defined here c…
2011-09-18 21:02 · Open Source Projects · 评论(0)