0

我在大型机平台上运行的 COBOL 程序如何连接和访问在不同 Unix 平台上运行的 Oracle 数据库?

4

1 回答 1

3

Oracle have a product for embedding SQL calls in COBOL; it's the Pro*COBOL pre-compiler. Find out more.

The snag is, the Pro*COBOL program must reside on the Oracle server. So, given your architecture, you need to make remote calls. It's been a long time since I used COBOL (literally more than two decades) but the thing I remember the most was that functionality varied strongly across different flavours.

If you are using a flavour based on the COBOL-85 compiler (or later) which has the EXTERNAL extension then you're in luck, because you can write your own remote calls. Here's a CICS example. Otherwise you might need to buy something. ETS sell a product called Cobol-RPC: find out more (no warranty is implied or intended).

于 2013-08-11T05:51:40.823 回答