[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Calling Linked database query in the stored procedue oracle 9i, its gives error

Posted on 2006-07-03
3
Medium Priority
?
284 Views
Last Modified: 2008-02-01
hi

I'm calling the following query in the sql * plus its gives the perfect result set.

Query
-------

Select EmpName as "Employee Name", Age,Sex,DOB as "Date of Birth" From SMS_EmployeeDemo@REMOTEDB.ORACLE.BLAZE1;


but the same query called in the stored procedure gives the following error.

CREATE OR REPLACE  PACKAGE BODY "SYSTEM"."GET_EMPLOYEE"        
    AS
PROCEDURE GetEmployees (cur_Employees OUT T_CURSOR)
IS
BEGIN
 
 OPEN cur_Employees For Select EmpName as "Employee Name", Age,
    Sex,DOB as "Date of Birth"
    From SMS_EmployeeDemo@REMOTEDB.ORACLE.BLAZE1;
   
END GetEmployees;
END GET_EMPLOYEE;

ORA-02041:Client database did not begin a transaction
ORA-06512:at"SYSTEM.GET_EMPLOYEE"

pls help me

thanks and regards
mk_mur







0
Comment
Question by:mk_mur
1 Comment
 
LVL 8

Accepted Solution

by:
mnrz earned 500 total points
ID: 17030484
Hi
 please take a look at following link:

http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:362818006460

hope this help you out.

regards
mohammad
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question