Geotools-Oracle Spatial DB Connection Problem

View: New views
2 Messages — Rating Filter:   Alert me  

Geotools-Oracle Spatial DB Connection Problem

by ilker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Everybody i try to connect my spatial db which was created on oracle 11g...
i have to following oracleConnection.properties file:
#
# Properties needed to connect to PostGIS
#

# Must be the string "posgis"
dbtype=oracle

# Machine name or IP address to connect to
host=193.140.161.17

# Port number to connect to, default 5432
port=1521

# The database schema to access
schema = EBSYS
database=ORACLE

# User name and password
user=EBSYS
passwd=EBSYS

..............................................................
And my java code is going here:

Reader okuyucu = new FileReader("C:
Documents and Settings\\ilitheblack\\Belgelerim
" +
"EclipseCalismaAlani\\BitirmeProjesi\\SpatialDataManipulation\\src\\main
java" +
"
oracleConnection.properties");
Properties config = new Properties();
config.load(okuyucu);
SpatialUtilities.veriDeposu = DataStoreFinder
.getDataStore(config);

but it always returns null datastore....

Re: Geotools-Oracle Spatial DB Connection Problem

by Jody Garnett-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Did you install the oracle database drivers?
Jody

On Tue, Jun 9, 2009 at 7:02 AM, ilker<ilitheblack@...> wrote:

>
> Hi Everybody i try to connect my spatial db which was created on oracle
> 11g...
> i have to following oracleConnection.properties file:
> #
> # Properties needed to connect to PostGIS
> #
>
> # Must be the string "posgis"
> dbtype=oracle
>
> # Machine name or IP address to connect to
> host=193.140.161.17
>
> # Port number to connect to, default 5432
> port=1521
>
> # The database schema to access
> schema = EBSYS
> database=ORACLE
>
> # User name and password
> user=EBSYS
> passwd=EBSYS
>
> ..............................................................
> And my java code is going here:
>
> Reader okuyucu = new FileReader("C:
> Documents and Settings\\ilitheblack\\Belgelerim
> " +
> "EclipseCalismaAlani\\BitirmeProjesi\\SpatialDataManipulation\\src\\main
> java" +
> "
> oracleConnection.properties");
> Properties config = new Properties();
> config.load(okuyucu);
> SpatialUtilities.veriDeposu = DataStoreFinder
> .getDataStore(config);
>
> but it always returns null datastore....
> --
> View this message in context: http://www.nabble.com/Geotools-Oracle-Spatial-DB-Connection-Problem-tp23932092p23932092.html
> Sent from the geotools - dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email