このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


PostgreSQL SDBC driver
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.15
事業/計画(する) Sections: Home | Specifications | QA | 開発 | Database Drivers
Database drivers: PostgreSQL | Linux MDB | SQLite

postgresql-sdbc-driver

Content

Introduction

The postgresql SDBC Driver 許すs to use the postgresql database from OpenOffice.org without any wrapper 層 such as odbc or jdbc.

The 現在の 見解/翻訳/版 0.7.6a can be considerded as good beta 質 ( with some known 問題/発行するs and 行方不明の features).

The driver is 目的(とする)d at the OpenOffice.org 見解/翻訳/版s 3.x/2.x/1.1.x, it does not work with OOo1.0.x trees.

The final 目的(とする) is to have an easier to use, faster, more feature rich database driver than the jdbc-odbc 解答. The 現在の 見解/翻訳/版 should already 許す this in most places (though I 現実に have never compared them feature by feature).

必要物/必要条件s

任命する/導入する a postgresql server if you 港/避難所't one already. The 現在の driver 見解/翻訳/版 was 実験(する)d using postgresql-7.3.2. It does not work with postgresql 7.2.x server 見解/翻訳/版. It should work with all other 現在/一般に 利用できる 含むing 8.x 見解/翻訳/版s.

任命する/導入する OpenOffice.org.

Download

Download the binary 見解/翻訳/版 of the driver (depending on your OOo 見解/翻訳/版). Follow below 取り付け・設備 指示/教授/教育s.
見解/翻訳/版 OOo 見解/翻訳/版 壇・綱領・公約 場所 md5sum
0.7.6b (解放(する)d 2010-08-12) OOo 3.3 and above Windows, Linux x86 (multi 壇・綱領・公約 一括)
http://dba.openoffice.org/drivers/postgresql/postgresql-sdbc-0.7.6b.zip ae8915cfd031b2c4c0cd970f9409a736
0.7.6a (解放(する)d 2010-02-06) OOo 2.x -> 3.2 Windows, Linux x86 (multi 壇・綱領・公約 一括)
http://dba.openoffice.org/drivers/postgresql/postgresql-sdbc-0.7.6a.zip 1723de995efd1ad69ee59b5e15e805a6
0.7.5 OOo 1.1.x Windows, Linux x86 (multi 壇・綱領・公約 一括)
http://dba.openoffice.org/drivers/postgresql/postgresql-sdbc-0.7.5-for-oo11.zip 03484e135e2b3517a633936b211e7c7a

Older (outdated) builds can be 設立する below. If your 壇・綱領・公約 does not appear in the above 名簿(に載せる)/表(にあげる), you can build the driver from source.

取り付け・設備 with OOo 3.x/2.x

OOo 2.x There are two different ways to 任命する/導入する the driver:
1 Start OpenOffice, choose 道具s/一括 経営者/支配人 ...
Click on the 追加する button and select the downladed とじ込み/提出する (DO NOT EXTRACT IT !) in the 近づいている とじ込み/提出する dialog. The driver gets 任命する/導入するd now, afterwards, the とじ込み/提出する is 名簿(に載せる)/表(にあげる)d in the dialog with 明言する/公表する enabled. In 事例/患者 you have 任命する/導入するd an older 見解/翻訳/版 of the driver, 除去する it now. の近くに the dialog and shutdown openoffice (even the quickstarter on windows must be shut 負かす/撃墜する !!!).
2 Shutdown OpenOffice.org (even the quickstarter on windows must be の近くにd, see the system tray at the 底(に届く) 権利 of your desktop).

Start a 爆撃する and switch to /path/to/openoffice/program.

Check, whether you have 任命する/導入するd an older 見解/翻訳/版 of the driver.

          unopkg 名簿(に載せる)/表(にあげる)
      
In 事例/患者 there is an older 見解/翻訳/版, 除去する it e.g. by invoking
          unopkg 除去する postgresql-sdbc-0.6.2.zip
      
. Then 任命する/導入する the new 見解/翻訳/版 with the に引き続いて 命令(する):
      unopkg 追加する /path/to/your/download/postgresql-sdbc-0.7.6.zip
      
. Using the --株d 選択 will 任命する/導入する the driver for all 使用者s.

Then start the OpenOffice.org Base program ./sbase. In the 近づいている dialog choose the 選択 connect to an 存在するing database. In the combobox should appear postgresql (if the it is not there, the 取り付け・設備 of the driver has failed).

In the 近づいている dialog, you can enter space separated 指名する/value pairs 述べるing the database 関係. 公式文書,認める that there must not be a 主要な nor a 追跡するing space surrounding the せいにするs. At the simplest level, this string can be empty ( which means connecting to the 使用者's database instance running on the same machine ). A typical url e.g. is

         dbname=pqtest host=mydatabaseserver
         
. A 十分な 名簿(に載せる)/表(にあげる) of possible 選択s can be 設立する on the postgresql 場所/位置 . 使用者/password can be given in the に引き続いて dialog (so that the password does not appear in plain text).

You can 圧力(をかける) the 実験(する) 関係 button to 立証する, that your settings work. Then 圧力(をかける) the Finish button, and you can work with your postgresql database.

Tip: Open the 道具s/(米)棚上げする/(英)提議する Filter dialog afterwards and deselect the schemas and (米)棚上げする/(英)提議するs, you don't want to work with (typically you won't want to work with the pg_catalog (postgresql 抑留する) schema.

取り付け・設備 with OOo 1.1.x

OOo 1.1

In 事例/患者 you have used an older 見解/翻訳/版 of this driver, you have to deinstall the old one before. This can 簡単に be done by 削除するing the postgresql-sdbc-$(VERSION).zip (e.g. 0.5.0 or 0.6.0) とじ込み/提出する from the OpenOffice1.1.0/使用者/uno_packages folder.

Copy the postgresql-sdbc-0.7.5-for-oo11.zip とじ込み/提出する in OpenOffice1.1.0/使用者/uno_packages folder (公式文書,認める: USE the zip とじ込み/提出する as a whole, DO NOT 抽出する it). Open up a 爆撃する and switch to the OpenOffice1.1.0/program directory and start the

pkgchk

道具 (assuming that you have a . in your PATH). It should deinstall the old and 任命する/導入する the new 見解/翻訳/版 during in one run in 事例/患者 you have followed the steps as 述べるd above. On success, no 生産(高) is given.

Alternatively, you can 任命する/導入する the driver for all 使用者s of a OpenOffice.org 網状組織 取り付け・設備. This must be done by the 使用者, who 任命する/導入するd the 網状組織 取り付け・設備 (typically root or 行政官/管理者). All 使用者s should 終結させる there office before, running offices won't see an 影響 until next 再開する and at worst may 衝突,墜落 during or after the 取り付け・設備. Place the とじ込み/提出する into the OpenOffice1.1.0/株/uno_packages folder (it must be the OpenOffice1.1.0 directory, which 含む/封じ込めるs all the 株d libraries and executables). Change the 所有権 of the とじ込み/提出する to root. Then start

pkgchk --株d

(again assuming that you have a . in PATH).

You can uninstall the 一括 by 削除するing the とじ込み/提出する in the uno_packages directory and starting pkgchk (or as root pkgchk --株d) again.

追加するing a datasource

In 事例/患者 you have used an older 見解/翻訳/版 of this driver, you can continue to use your earlier configured datasources.

You can 追加する a new datasource 経由で the ありふれた 道具s/Data Sources dialog. Click on new datasource and select postgresql from the Database type combobox. You should 現在/一般に put all 関係 (警察などへの)密告,告訴(状) into url line by using the に引き続いて 判型 (except for 使用者/password, which optionally can be entered 異なって, see below ):

URL 判型

The XDriver.connect() 推定する/予想するs a url as parameter. This section 明示するs, how the url must look like to 接近 the postgresql driver.

判型: sdbc:postgresql:[name1=value1] [name2=value2] [...]

The URL must start with the sdbc:postgresql:prefix. The string に引き続いて this prefix is the 関係 string as it is 推定する/予想するd by the postgresql (弁護士の)依頼人 API . 公式文書,認める that there must not be a 主要な nor a 追跡するing space surrounding the せいにするs, but all せいにするs must be separated by a space. At the simplest level, this string can be empty ( which means connecting to the 使用者's database instance running on the same machine ).

If you want to connect with a password and you don't want to have it appear in the url, you can instead 活動させる/戦時編成する the second (in OOo1.1.x 無名の) tab page between General and (米)棚上げする/(英)提議するs, fill in the 使用者 in the appropriate input field and check the password 要求するd box. You are now 誘発するd for the password when connecting to the data source.

After you have entered the url, you should switch to the (米)棚上げする/(英)提議するs tab in the same dialog. The driver connects to the database and shows the 設立する schemas and (米)棚上げする/(英)提議するs. Select the schemas you want to work with (in general, you won't want to work with the pg_catalog schema).

Supported and 行方不明の features

The に引き続いて features work with some 制限s one needs to keep in mind: The に引き続いて features are not 器具/実施するd yet, but may follow in 未来.

Using the driver 経由で the API

You may use the driver 経由で the API 直接/まっすぐに by instantiating org.openoffice.comp.connectivity.pq.Driver service. You can use the driver also from within a python 過程 or with a standalone java/C++ program.

Building from source

Build in a OO1.1 環境 (this is needed to keep up compatibility with OOo1.1). I have 現実に never checked, whether the driver builds in OOo2.0 env also.

Download the postgresql module from here, it 含む/封じ込めるs the makefiles to build postgresql (弁護士の)依頼人 API. You must place the postgresql-7.3.2 tarball into the download directory. Build and 配達する the postgresql module. 公式文書,認める, that the driver just uses the (弁護士の)依頼人 part of the API. As postgresql interprocess 議定書 is backward 両立できる, it shouldn't be problem to later connect also to newer 見解/翻訳/版s of the database.

Check out the connectivity 事業/計画(する) (e.g.

cvs co -r OpenOffice_1_1_rc3 connectivity

and then retrieve the postgresql driver code with this special tag OO_PQSDBC_x_y_z (where x,y,z are the major, minor, micro of the 見解/翻訳/版 you wish to build).

cvs update -d connectivity/source/drivers/postgresql connectivity/workben/postgresql
cvs update -r OO_PQSDBC_0_6_1 connectivity/source/drivers/postgresql connectivity/workben/postgresql

. Build connectivity/source/drivers/postgresql. You will then find a postgresql-sdbc-0.x.y.zip uno-一括 in the 貯蔵所 or lib 生産(高) directory.

実験(する)

ーするために 実験(する) your build, you need a running instance of postgresql database server and PyUNO. The 実験(する) can be 設立する in connectivity/workben/postgresql. The 実験(する) syntax for the dmake 命令(する) is dmake runtest "dburl=sdbc:postgresql:dbname=pqtest" . You should create a fresh database pqtest (or any other 指名する) as the 実験(する) also 令状s data and 減少(する)s (米)棚上げする/(英)提議するs.

(公式文書,認める, when you have never used postgresql server before and just want to 実験(する) your build, this short 一連の calls should give you an postgresql 実験(する)-server [公式文書,認める, that this is not the 示唆するd way to 任命する/導入する a postgresql server, follow the postgresql 指示/教授/教育s therefor]).
gunzip < postgresql-7.3.2.tar.gz | tar -xvf -
cd postgresql-7.3.2
./configure --prefix=/path/to/your/postgres/取り付け・設備
make ; make 任命する/導入する
setenv PATH "$PATH":/path/to/your/postgres/取り付け・設備/貯蔵所
mkdir /path/to/your/postgresql/取り付け・設備/data
initdb -D /path/to/your/postgresl/取り付け・設備/data
postmaster -D /path/to/your/postgresl/取り付け・設備/data

now start a a separate 爆撃する:
setenv PATH "$PATH":/path/to/your/postgres/取り付け・設備/貯蔵所
createuser
createdb pqtest


Changes

報告(する)/憶測ing bugs

Please read through the known bugs section before 報告(する)/憶測ing bugs. Create an 問題/発行する and 割り当てる the 問題/発行する to myself (jbu@openoffice.org).Questions should be raised in dev@dba.openoffice.org mailinglist. Please don't 解雇する/砲火/射撃 usage questions 直接/まっすぐに at myself.

Outdated 見解/翻訳/版s

見解/翻訳/版 壇・綱領・公約 場所 md5sum
0.7.6 for >= OO2.x and <= OOo3.1 (解放(する)d 2008-08-23) Windows, Linux x86 (multi 壇・綱領・公約 一括)
http://dba.openoffice.org/drivers/postgresql/postgresql-sdbc-0.7.6.zip f30bd071ce0e35da6eadedbec4f6eef5
0.7.5 for OO2.x (解放(する)d 2007-08-27) Windows, Linux x86 (multi 壇・綱領・公約 一括)
http://dba.openoffice.org/drivers/postgresql/postgresql-sdbc-0.7.5.zip 6db1a4b3b811957e4c1191ae2ba736ac
0.7.4 (解放(する)d 2007-02-16) Windows, Linux x86 (multi 壇・綱領・公約 一括)
公式文書,認める: For Linux x86, use this only with OpenOffice.org 1.1 (see below)
http://dba.openoffice.org/drivers/postgresql/postgresql-sdbc-0.7.4.zip 4e15fa7dcb017b66dfb060498ab92f4d
0.7.4a(recommended for OOo2.2 and above) (解放(する)d 2007-05-27) ONLY Linux x86 with OpenOffice.org 2.2 and above (see 問題/発行する i77188) http://dba.openoffice.org/drivers/postgresql/postgresql-sdbc-0.7.4a.zip 02e30ed857e836230159ab052ce21a70
0.7.3 (解放(する)d 2007-01-08 ) Windows, Linux x86 (multi 壇・綱領・公約 一括) http://dba.openoffice.org/drivers/postgresql/postgresql-sdbc-0.7.3.zip 8586328f1e57f17e458a42da949ea174
0.7.2 Windows, Linux x86 (multi 壇・綱領・公約 一括) http://dba.openoffice.org/drivers/postgresql/postgresql-sdbc-0.7.2.zip f3fa2a7b859eb5d1ccc2859a739cf620
0.7.1 Windows, Linux x86 (multi 壇・綱領・公約 一括) http://dba.openoffice.org/drivers/postgresql/postgresql-sdbc-0.7.1.zip 213a34341a3c9e12476f58c76e29204b
0.7.0 Windows, Linux x86 (multi 壇・綱領・公約 一括) http://dba.openoffice.org/drivers/postgresql/postgresql-sdbc-0.7.0.zip 3d5d7996474f75cee9de20d741ffa5d8
0.6.2 Windows, Linux x86 (multi 壇・綱領・公約 一括) http://dba.openoffice.org/drivers/postgresql/postgresql-sdbc-0.6.2.zip 9522c14a1bc45edc3b5b3b50c99c2f9a
0.6.1 Windows, Linux x86 (multi 壇・綱領・公約 一括) http://dba.openoffice.org/drivers/postgresql/postgresql-sdbc-0.6.1.zip 058689603b18a4f9a050e47fb35921ec
0.6.0 Windows, Linux x86 (multi 壇・綱領・公約 一括) http://dba.openoffice.org/drivers/postgresql/postgresql-sdbc-0.6.0.zip e7866011e976641b206b43c269fa1fcf
0.5.0 Windows, Linux x86, Solaris sparc (multi 壇・綱領・公約 uno 一括) http://dba.openoffice.org/drivers/postgresql/postgresql-sdbc-0.5.0.zip 24edb8fac50676b486dc9534a73f9e3e
0.5.0 Linux PPC ftp://ftp.sunsite.utk.edu/pub/linux/yellowdog/ソフトウェア/openoffice/postgresql-sdbc-0.5.0.zip n.a.

Authors

The driver has been 器具/実施するd and is 持続するd by Joerg Budischewski (JoergBudi@gmx.de ) in my spare time.

Apache Software Foundation

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The Apache feather logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.