[icinga-checkins] icinga.org: icinga-core/rbartels/cgi-current: add oracleand ocilib versions debug printout after connect

git at icinga.org git at icinga.org
Tue Jul 5 21:38:05 CEST 2011


Module: icinga-core
Branch: rbartels/cgi-current
Commit: fa57d010e035a8c8222d2c5be1eaf91e97178b4a
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=fa57d010e035a8c8222d2c5be1eaf91e97178b4a

Author: Thomas Dressler <tdressler at tdressler.net>
Date:   Wed Jun 15 19:02:35 2011 +0200

add oracleand ocilib versions debug printout after connect

---

 module/idoutils/src/db.c |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/module/idoutils/src/db.c b/module/idoutils/src/db.c
index d1c3538..2d4da4b 100644
--- a/module/idoutils/src/db.c
+++ b/module/idoutils/src/db.c
@@ -570,8 +570,17 @@ int ido2db_db_connect(ido2db_idi *idi) {
     } else {
         idi->dbinfo.connected = IDO_TRUE;
         syslog(LOG_USER | LOG_INFO, "Successfully connected to oracle database");
-		ido2db_log_debug_info(IDO2DB_DEBUGL_PROCESSINFO, 2, "Successfully connected to %s database\n", ido2db_db_settings.dbserver);
-
+		ido2db_log_debug_info(IDO2DB_DEBUGL_PROCESSINFO, 2, "Successfully connected to database '%s'@'%s'"
+					" (server version %i.%i.%i, client version [%u], ocilib version %u.%u.%u) \n",
+					ido2db_db_settings.username,
+					ido2db_db_settings.dbname,
+					OCI_GetServerMajorVersion(idi->dbinfo.oci_connection),
+					OCI_GetServerMinorVersion(idi->dbinfo.oci_connection),
+					OCI_GetServerRevisionVersion(idi->dbinfo.oci_connection),
+					OCI_GetVersionConnection(idi->dbinfo.oci_connection),
+					OCILIB_MAJOR_VERSION,
+					OCILIB_MINOR_VERSION,
+					OCILIB_REVISION_VERSION);
 	}
 
         /* initialize prepared statements */





More information about the icinga-checkins mailing list