Solved

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

Posted on 2006-07-03
3
281 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 8

Accepted Solution

by:
mnrz earned 125 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

695 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