public class OracleNGOCIDataStoreFactory extends OracleNGDataStoreFactory
Looking over the internet it's not clear whether the OCI setup is faster than thin driver, different benchmarks report different results, but for sure OCI allows to expose a wider set of configurations and in particular it's recognized as the best way to connect to an Oracle cluster.
Instead of the instance, host, port requirements of the normal oracle factory this driver just requires the 'alias', which refers to values defined by the Oracle Net Configuration assistant and stored in $ORACLE_HOME/NETWORK/ADMIN/tnsnames.ora. We have also had luck on the same computer with just leaving 'alias' as an empty string, and it seems to have a reasonable default behavior.
DataAccessFactory.Param| Modifier and Type | Field and Description |
|---|---|
static DataAccessFactory.Param |
ALIAS
The alias parameter used to specify the database to connect to
|
DATABASE, DBTYPE, ESTIMATED_EXTENTS, GEOMETRY_METADATA_TABLE, HOST, LOOSEBBOX, METADATA_BBOX, PORTBATCH_INSERT_SIZE, CALLBACK_FACTORY, DATASOURCE, EVICTOR_TESTS_PER_RUN, EXPOSE_PK, FETCHSIZE, MAX_OPEN_PREPARED_STATEMENTS, MAXCONN, MAXWAIT, MIN_EVICTABLE_TIME, MINCONN, NAMESPACE, PASSWD, PK_METADATA_TABLE, SCHEMA, SQL_ON_BORROW, SQL_ON_RELEASE, TEST_WHILE_IDLE, TIME_BETWEEN_EVICTOR_RUNS, USER, VALIDATECONN| Constructor and Description |
|---|
OracleNGOCIDataStoreFactory() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Describe the nature of the datasource constructed by this factory.
|
String |
getDisplayName()
Name suitable for display to end user.
|
protected String |
getJDBCUrl(Map params)
Builds up the JDBC url in a jdbc:
|
protected void |
setupParameters(Map parameters)
Sets up the database connection parameters.
|
checkDBType, createDataStoreInternal, createSQLDialect, getDatabaseID, getDriverClassName, getValidationQuerycanProcess, checkDBType, createDataSource, createDataSource, createDataStore, createNewDataStore, getImplementationHints, getParametersInfo, isAvailablepublic static final DataAccessFactory.Param ALIAS
public String getDisplayName()
DataAccessFactoryA non localized display name for this data store type.
getDisplayName in interface DataAccessFactorygetDisplayName in class OracleNGDataStoreFactorypublic String getDescription()
DataAccessFactoryA non localized description of this data store type.
getDescription in interface DataAccessFactorygetDescription in class OracleNGDataStoreFactoryprotected String getJDBCUrl(Map params) throws IOException
JDBCDataStoreFactorygetJDBCUrl in class OracleNGDataStoreFactoryIOExceptionprotected void setupParameters(Map parameters)
JDBCDataStoreFactorySubclasses may extend, but should not override. This implementation registers the following parameters.
Subclass implementation may remove any parameters from the map, or may overrwrite any parameters in the map.setupParameters in class OracleNGDataStoreFactoryparameters - Map of Param objects.Copyright © 1996–2019 Geotools. All rights reserved.