Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Celoxis uses JDBC to connect to the database. Celoxis not being able to connect to the database There could be because of a number of reasonsvarious reasons for the connection to fail. To help you debug the problem, we have written a simple program that will facilitate help you to understand the problem.

...

  • Open a terminal window on Unix/Linux or Command prompt in Windows
  • Go to the directory jdbctest
  • On Microsoft Windows run the program (substituting values according to your configuration) as:
    NOTE: Type the words in bold AS IS. Words in italics needs to be substituted. 

    Code Block
    java -cp .;drivers/* jdbctest product=oracle name=celoxis user=scott password=tiger host=localhost
  • On Unix (or Linux) run the program (substituting values according to your confiuration) as:

    Code Block
    java -cp '.:drivers/*' jdbctest product=oracle name=celoxis user=scott password=tiger host=localhost

Note

productone of the following:
oracle (for Oracle), pgsql postgresql_90 (for Postgresql 9.0), mssql_2000 2008 (for SQL Server 20002008), mssql_2005 2012 (for SQL Server 20052012) or mssql_2008 2014 (for SQL Server 20082014
nameName of your database
user/passwordUsername and Password to be used to connect to the database. NOTE:  In case of SQL server, the login and database must be configured to use the SQL Authentication mode (or Mixed mode), not Windows authentication mode only.
hostThe machine name of the server where the database is running
portThe port of the database server. This is an optional field and when unspecified the default port will be used. 

...

ERROR MESSAGEPOSSIBLE CAUSES
The Network Adapter could not establish the connection
  • The host name cannot be resolved by the DNS server.
  • Database server  is is not running on the host.
  • The database port on the database server is inaccessible because of a firewall 
Invalid username/password; logon deniedUsername or password is incorrect
Connection refused(DESCRIPTION=(TMP=) (VSNNUM=153092352)(ERR=12505) (ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
  • The database name is incorrect
  • The user doesn't have privileges to logon to the database

...