Difference between revisions of "OpenOffice per JDBC an Informix"

From Apache OpenOffice Wiki
Jump to: navigation, search
(New page: Anbindung von OpenOffice an Informix per JDBC {{Database/Lang|Database}} == überblick == getestet mit: * OO 3.0.1 * ifxjdbc-2.1.jar (aktuell wäre 3.0, doch download von I...)
 
m
 
(One intermediate revision by one other user not shown)
Line 55: Line 55:
 
Syntax
 
Syntax
  
  jdbc: informix-sqli://<host>:<port>/<dbname>:on_austamma:informixserver=<DBSERVERNAME>
+
  jdbc: informix-sqli://<host>:<port>/<dbname>:on_myhost:informixserver=<DBSERVERNAME>
  
 
Beispiel:
 
Beispiel:
  
  jdbc: informix-sqli://austamma:1512/stammdaten:on_austamma:informixserver=on_austamma_tcp
+
  jdbc: informix-sqli://austamma:1512/stammdaten:on_myhost:informixserver=on_myhost_tcp
  
  
Line 70: Line 70:
  
 
  # DBSERVERNAME          NETTYPE        HOSTNAME        SERVICENAME    PAM_ATTRIBUTE
 
  # DBSERVERNAME          NETTYPE        HOSTNAME        SERVICENAME    PAM_ATTRIBUTE
  on_austamma            onipcshm        austamma        dummy
+
  on_myhost              onipcshm        myhost          dummy
  on_austamma_tcp        onsoctcp        austamma        tcp_online
+
  on_myhost_tcp          onsoctcp        myhost          tcp_online
 
  ...
 
  ...
 
  ...
 
  ...
Line 108: Line 108:
 
| Content on this page is licensed under the [http://creativecommons.org/licenses/by-sa/3.0/legalcode Creative Common Attribution 3.0 license (CC BY-SA)].
 
| Content on this page is licensed under the [http://creativecommons.org/licenses/by-sa/3.0/legalcode Creative Common Attribution 3.0 license (CC BY-SA)].
 
|}
 
|}
 +
[[Category:DE]]

Latest revision as of 10:21, 23 September 2011

Anbindung von OpenOffice an Informix per JDBC

There are documents also in DE - FR - ES -PT


überblick

getestet mit:

  • OO 3.0.1
  • ifxjdbc-2.1.jar (aktuell wäre 3.0, doch download von IBM ist mehr als müßig, da registration nötig, jedoch fehlerhaft)


Voraussetzungen:

  • JRE installiert und lauffähig (meist bei OO dabei)
  • laufende Informix - DB



Vorgehensweise

OO java setttings

Menu: Extras -> Optionen -> Java
  • Einstellen bzw herausfinden der aktuell von OO verwendeten JRE
  • java treiber jar setzen unter: "Class Path", vorher in die verwendete JRE in subdir "lib/ext/" verschieben, zB:
/usr/lib/jvm/java-6-sun-1.6.0.13/jre/lib/ext/ifxjdbc-2.1.jar

<t> [ ] todo: Download bereitstellen </t>


OO Base settings

Neues Base file erstellen, Anbindung an vorhandene DB wählen: JDBC

Weitere Einstellungen vornehmen:

Treiberklasse:

com.informix.jdbc.IfxDriver


jdbc URL

jdbc URL gemäß folgender syntax mit daten aus folgenden quellen eintragen

Syntax

jdbc: informix-sqli://<host>:<port>/<dbname>:on_myhost:informixserver=<DBSERVERNAME>

Beispiel:

jdbc: informix-sqli://austamma:1512/stammdaten:on_myhost:informixserver=on_myhost_tcp


informix daten

<INFORMIX_DIR>/etc/sqlhosts

Beispiel:

# DBSERVERNAME          NETTYPE         HOSTNAME        SERVICENAME     PAM_ATTRIBUTE
on_myhost               onipcshm        myhost          dummy
on_myhost_tcp           onsoctcp        myhost          tcp_online
...
...

ports

Ports herausfinden aus (zB):

/etc/services
1412 tli_online
1512 tcp_online
...


Abschließen und verwenden

OO Base speichern und Tabellen aufrufen

Es erscheinen (in meinem Fall) Warnungen die man ignorieren kann.

Auf ins Datenparadies!!

Copyright

OOo Database Development
OOo Database QA
OOo General Database Info


Initial author : Florian Konnertz 17. April 2009
This page is under CC by-sa
Please do not change the logical content of this site without acknowledge of the author or the OOo QA Project Lead/Co-Leads. This side is linked by the online help.
Content on this page is licensed under the Creative Common Attribution 3.0 license (CC BY-SA).
Personal tools