随笔分类 - JDBC
摘要:In addition to update batching, Oracle JDBC drivers support the following extensionsthat improve performance by reducing round-trips to the database:■Prefetching rowsThis reduces round-trips to the database by fetching multiple rows of data eachtime data is fetched. The extra data is stored in clien
阅读全文
摘要:Note:■Oracle recommends that you use JDBC standard features whenpossible. This recommendation applies to update batching as well.Oracle update batching is retained primarily for backwardscompatibility.■For both standard update batching and Oracle update batching,Oracle recommends you to keep the bat
阅读全文
摘要:Statement caching improves performance by caching executable statements that areused repeatedly, such as in a loop or in a method that is called repeatedly. Startingfrom JDBC 3.0, JDBC standards define a statement-caching interface.Statement caching can do the following:■ Prevent the overhead of rep
阅读全文
摘要:tnsnames.oraORCL= (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.3.5.78 )(PORT = 1522)) ) (CONNECT_DATA = (SERVICE_NAME = orcl) ) ) 法一: 1 OracleDataSource ds = new OracleDataSource(); 2 ds.setDriverType("oci"); 3 ds.setNetworkProtocol("tcp"); 4 ds.setServerN
阅读全文
摘要:OCI Connection PoolingThe OCI connection pooling feature is an Oracle-designed extension. The connectionpooling provided by the JDBC OCI driver enables applications to have multiple logicalconnections, all of which are using a small set of physical connections. Each call on alogical connection is ro
阅读全文
摘要:The DML returning feature provides more functionality compared to retrieval ofauto-generated keys. It can be used to retrieve not only auto-generated keys, but alsoother columns or values that the application may use.Note:■The server-side internal driver does not support DML returningand retrieval o
阅读全文
摘要:Registering Output ParametersThe type codes in java.sql.Types or oracle.jdbc.OracleTypes identify theSQL types of the output parameters in the registerOutParameter method of thejava.sql.CallableStatement andoracle.jdbc.OracleCallableStatement interfaces.These are the forms that the registerOutputPar
阅读全文
摘要:A ROWID is an identification tag unique for each row of an Oracle Database table. TheROWID can be thought of as a virtual column, containing the ID for each row.The oracle.sql.ROWID class is supplied as a container for ROWID SQL data type.If you include the ROWID pseudo-column in a query, then you c
阅读全文