Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: AGAIN: How to issue connect statement in PL/SQL
Nicholas Moo (nmoo_at_netvigator.com) wrote:
>How to issue a "connect xx/xx_at_yyy" statement within PL/SQL.
You can't.
>I don't want to use db link for some special reasons, one of it is I want
>to do some DDL within the PL/SQL block. Some of the DDL do not support db
>link (or I don't know how to do it) as I've tried.
The only way to directly access one Oracle database from a stored procedure running in another is with a database link, which uses distributed transaction semantics (2-phase commit) to ensure integrity of updates. The distributed transaction mechanisms prohibit DDL/DCL because it is self-committing.
You might be able to use the DBMS_PIPES packaged procedures to communicate from your PL/SQL procedure to a separate Pro* or OCI program that connects to another Oracle database and issues the DDL/DCL you want.
HTH,
/b
--
Bill Manry - IBM Products Division - Oracle Corporation
These are my opinions, not necessarily Oracle's.
Remove "." from "B.Manry" to email me.
Received on Tue Jun 02 1998 - 19:51:02 CDT
![]() |
![]() |