调用oracle是什么协议,什么时候使用内部的IPC协议连接??

Doc ID:  Note:111555.1

Subject:  Overview of How an External Procedure Works

Type:  BULLETIN

Status:  PUBLISHED

PURPOSE

-------

To provide basic information about external procedures.

SCOPE & APPLICATION

-------------------

Basic information for individuals with an intermediate understanding of Oracle architecture.

Overview of How an External Procedure Works ===========================================

An external procedure or routine lets you:

* Move computation-bound programs from client to server where they execute   faster (because they avoid the roundtrips entailed in across-network   communication).

* Interface the database server with external systems and data sources.

* Extend the functionality of the database server itself.

The following describes how an external procedure is typically created during useage of InterMedia Text, though much of it applies to all external procedures.

1. A client program connects to the database either locally or through    the Listener.

2. The listener's environment is used to spawn an Oracle shadow process     unless the 'ENVS=' statement is in the 'SID_DESC' section of the     listener.ora.  Settings in the'ENVS='will take precedence over    the existing environment.

3. Once the shadow process is started the client and shadow process talk    directly.  The listener's job is done for now.

4. The client program issues a standard SQL statement to create a iMT    index.  This initiates the external procedure creation process.

5. The 'EXTPROC_CONNECTION_DATA' service information in the tnsnames.ora    of the server's environment is provided to the Listener, effectively    saying 'This is what I need to talk to a create an iMT index'.    The environment from the Listener will be used for spawning subsequent    Oracle processes or external procedures unless the 'ENVS=' statement    exists under the 'SID_DESC' section of the listener.ora.  Settings in    the'ENVS='will take precedence over the existing environment.

6. The Listener resolves that service name to a specific SID in the     listener.ora, then launches a extproc process (indicated under the    'SID_NAME' section') to allow direct communication with the database.    The spawned process will have a name that equals the 'SID_NAME='     section concatenated to the 'PROGRAM=' section.

Oracle8i Application Developer's Guide - Fundamentals

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
OpenHarmony 的 IPC(Inter-Process Communication,进程间通信)主要有以下几种方式: 1. Binder IPC Binder IPC 是一种基于驱动程序的 IPC 方式,是 Android 系统中使用最广泛的 IPC 方式之一。在 OpenHarmony 中,Binder IPC 也被广泛应用于进程间通信,例如应用程序与服务之间的通信、进程间共享数据等。 2. Pipe IPC Pipe IPC 是一种基于文件描述符的 IPC 方式,它可以用于在两个进程之间传递数据。在 OpenHarmony 中,Pipe IPC 可以使用系统调用 pipe、mkfifo、open 等来创建管道,通过读写管道实现进程间通信。 3. Message Queue IPC Message Queue IPC 是一种基于消息的 IPC 方式,它可以用于在两个进程之间传递消息。在 OpenHarmony 中,Message Queue IPC 可以使用系统调用 msgget、msgsnd、msgrcv 等来创建消息队列,通过向消息队列发送和接收消息实现进程间通信。 4. Shared Memory IPC Shared Memory IPC 是一种基于共享内存的 IPC 方式,它可以在多个进程之间共享内存数据。在 OpenHarmony 中,Shared Memory IPC 可以使用系统调用 shmget、shmat、shmdt 等来创建共享内存区域,通过读写共享内存区域实现进程间通信。 5. Socket IPC Socket IPC 是一种基于网络的 IPC 方式,它可以在不同的计算机之间传递数据。在 OpenHarmony 中,Socket IPC 可以使用系统调用 socket、connect、send、recv 等来创建和使用套接字,通过套接字传递数据实现进程间通信。 这些 IPC 方式在 OpenHarmony 中都有广泛的应用,可以根据具体的应用场景选择最合适的 IPC 方式来实现进程间通信。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值