<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Unable to establish connection with database]]></title><description><![CDATA[<p dir="auto">HI,My friends,<br />
   I install NETXMS server(0.2.27) in windows server 2003,and my database is oracle (9i),which is installed  in the same sever.When config my server,I failed to connect oracle,'unable to connect to database'.<br />
and run "netxmsd -–debug=7",It said,"Unable to establish connection with database".<br />
The following is listed by the config procedure:<br />
Database engine: Oracle<br />
Database driver: oracle.ddr<br />
Create new database: no<br />
Initalize database: yes</p>
<p dir="auto">Database server: localhost<br />
Database name: zhmg (this DB is existing,but during config,this item can't be modified )<br />
Database user: system</p>
<p dir="auto">Where is wrong?</p>
<p dir="auto">thank you very much.</p>
]]></description><link>https://forum.netxms.org/topic/715/unable-to-establish-connection-with-database</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 07:30:34 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/715.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 13 Sep 2009 08:31:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unable to establish connection with database on Tue, 08 Dec 2009 12:50:33 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
     Iam getting the below error when iam restarting the nxdbr</p>
<p dir="auto"><strong><strong>[root@localhost ~]# /usr/local/bin/nxdbmgr init /usr/local/share/netxms/sql/dbinit_mysql.sql<br />
NetXMS Database Manager Version 0.2.31</strong></strong></p>
<p dir="auto"><strong><strong>Configuration file OK<br />
Unable to connect to database netxms@localhost as netxms</strong></strong></p>
<p dir="auto">and this is my netxmsd.conf</p>
<p dir="auto">[root@localhost ~]# cat /etc/netxmsd.conf<br />
#<br />
<strong># Sample configuration file for NetXMS server<br />
#</strong></p>
<p dir="auto"><strong>#<br />
# DBDriver<br />
#<br />
# Database driver to use<br />
#<br />
# UNIX example:<br />
  DBDriver = /usr/local/lib/libnxddr_mysql.so<br />
#<br />
# Windows example:<br />
# DBDriver = mysql.ddr</strong></p>
<p dir="auto"><strong>#<br />
# DBServer<br />
#<br />
# Database server (ODBC source name for ODBC driver)<br />
#<br />
# Example:<br />
 DBServer = localhost</strong></p>
<p dir="auto"><strong>#<br />
# DBName<br />
#<br />
# Database name (not used by ODBC driver)<br />
#<br />
# Example:<br />
 DBName = netxms</strong></p>
<p dir="auto"><strong>#<br />
# DBLogin<br />
#<br />
# Database user name<br />
#<br />
# Example:<br />
 DBLogin = netxms</strong></p>
<p dir="auto"><strong>#<br />
# DBPassword<br />
#<br />
# Database user's password<br />
#<br />
# Example:<br />
 DBPassword = trx123</strong></p>
<p dir="auto"><strong>#<br />
# LogFailedSQLQueries<br />
#<br />
# Controls logging of failed SQL queries.<br />
# Possible values: "yes" (default) or "no".<br />
#<br />
# Example:<br />
 LogFailedSQLQueries = yes</strong></p>
<p dir="auto"><strong>#<br />
# LogFile<br />
#<br />
# Server's log file. To write log to syslog (or Event Log on Windows),<br />
# use {syslog} as file name.<br />
#<br />
# Examples:<br />
 LogFile = {syslog}<br />
 LogFile = /var/log/netxms</strong></p>
<p dir="auto">Can Some one please help me how to fix this</p>
<p dir="auto">Thanks<br />
Subbu</p>
]]></description><link>https://forum.netxms.org/post/3691</link><guid isPermaLink="true">https://forum.netxms.org/post/3691</guid><dc:creator><![CDATA[user413]]></dc:creator><pubDate>Tue, 08 Dec 2009 12:50:33 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to establish connection with database on Tue, 22 Sep 2009 02:51:58 GMT]]></title><description><![CDATA[<p dir="auto">HI,macro<br />
 many thanks ,It works! when I set envionment according to your suggestion 1 and 2.</p>
]]></description><link>https://forum.netxms.org/post/3399</link><guid isPermaLink="true">https://forum.netxms.org/post/3399</guid><dc:creator><![CDATA[yuyang0571]]></dc:creator><pubDate>Tue, 22 Sep 2009 02:51:58 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to establish connection with database on Fri, 18 Sep 2009 15:12:19 GMT]]></title><description><![CDATA[<p dir="auto">Are you still getting "Unable to establish connection with database" message?</p>
<p dir="auto">Please try the following:</p>
<ol>
<li>
<p dir="auto">Run cmd.exe, then set NLS_LANG environment variable to say AMERICAN_AMERICA.UTF8,<br />
then from the same window start netxmsd</p>
</li>
<li>
<p dir="auto">If #1 doesn't help run cmd.exe and check if the Oracle environment variables are ok<br />
(ORACLE_HOME, PATH to Oracle binaries, TNS_ADMIN) - if not set them to proper<br />
locations</p>
</li>
<li>
<p dir="auto">If #1 and #2 dont help and you're using Oracle instant client try to specify fully<br />
qualified TNS name instead of SID in DBServer parameter of netxmsd.conf<br />
Please see explanation here:<br />
<a href="http://www.oracle.com/technology/tech/oci/instantclient/ic-faq.html#A4428" rel="nofollow ugc">http://www.oracle.com/technology/tech/oci/instantclient/ic-faq.html#A4428</a></p>
</li>
</ol>
<p dir="auto">Hope this helps</p>
]]></description><link>https://forum.netxms.org/post/3395</link><guid isPermaLink="true">https://forum.netxms.org/post/3395</guid><dc:creator><![CDATA[macro]]></dc:creator><pubDate>Fri, 18 Sep 2009 15:12:19 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to establish connection with database on Thu, 17 Sep 2009 08:44:12 GMT]]></title><description><![CDATA[<p dir="auto">HI,macro<br />
    I try again based on your suggestion,but It still failed.<br />
    The following configuration is from my netxmsd.conf:<br />
       DBDriver = oracle.ddr<br />
       DBServer = zhmg #this is my oracle SID<br />
       DBName = zhmg<br />
       DBLogin = netxms<br />
       DBPassword = netxms</p>
<p dir="auto">The following messages is done at this try：</p>
<p dir="auto">SQL&gt; CREATE USER netxms IDENTIFIED BY netxms;</p>
<p dir="auto">the user is created.</p>
<p dir="auto">SQL&gt; grant connect,resource to netxms;</p>
<p dir="auto">authorized successfully。</p>
<p dir="auto">SQL&gt; select instance_name from v$instance;</p>
<p dir="auto">INSTANCE_NAME<br />
----------------<br />
zhmg</p>
<p dir="auto">and at command line,<br />
c:\sqlplus netxms/netxms<br />
can connect oracle successfully.</p>
<p dir="auto">Bset regards</p>
]]></description><link>https://forum.netxms.org/post/3374</link><guid isPermaLink="true">https://forum.netxms.org/post/3374</guid><dc:creator><![CDATA[yuyang0571]]></dc:creator><pubDate>Thu, 17 Sep 2009 08:44:12 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to establish connection with database on Wed, 16 Sep 2009 16:40:35 GMT]]></title><description><![CDATA[<p dir="auto">I assume that you have tested your connection to Oracle DB with some other tools (e.g. sqlplus) and everything is in order. The only problem you have is to get NetXMS to connect to DB. If this is not the case please test Oracle connectivity first.</p>
<p dir="auto">There are two problems with your netxmsd.conf:</p>
<ul>
<li>For Oracle, DBServer parameter must be set to your Oracle SID, not the hostname. This is the main problem which prevents NetXMS from connecting to your database</li>
<li>Setting DBLogin to system (Oracle's administrator username) is a very very very bad idea. NetXMS doesn't need admin rights and by using "system" you are not only giving it full admin rights but also cluttering system schema with absolutely foreign objects. Please create a separate username, assign "connect" and "resource" roles to it and you'll be fine.</li>
</ul>
<p dir="auto">The proper netxmsd.conf file looks like this:</p>
<pre><code># Driver - Oracle
DBDriver = oracle.ddr
# Oracle SID (check tnsnames.ora)
DBServer = ODB1
# Not used by NetXMS Oracle driver
DBName = netxms_db
# Oracle user name (schema)
DBLogin = NETXMS
# Oracle user password
DBPassword = NETXMS
</code></pre>
]]></description><link>https://forum.netxms.org/post/3373</link><guid isPermaLink="true">https://forum.netxms.org/post/3373</guid><dc:creator><![CDATA[macro]]></dc:creator><pubDate>Wed, 16 Sep 2009 16:40:35 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to establish connection with database on Wed, 16 Sep 2009 06:33:41 GMT]]></title><description><![CDATA[<p dir="auto">HI,macro,the attached file is my netxmsd.conf.</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000000271-netxmsd.conf">netxmsd.conf</a></p>
]]></description><link>https://forum.netxms.org/post/3371</link><guid isPermaLink="true">https://forum.netxms.org/post/3371</guid><dc:creator><![CDATA[yuyang0571]]></dc:creator><pubDate>Wed, 16 Sep 2009 06:33:41 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to establish connection with database on Mon, 14 Sep 2009 08:58:50 GMT]]></title><description><![CDATA[<p dir="auto">Please post your netxmsd.conf</p>
]]></description><link>https://forum.netxms.org/post/3368</link><guid isPermaLink="true">https://forum.netxms.org/post/3368</guid><dc:creator><![CDATA[macro]]></dc:creator><pubDate>Mon, 14 Sep 2009 08:58:50 GMT</pubDate></item></channel></rss>