Solved

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

Posted on 2006-07-03
3
280 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
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 learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exchange 2013 free and busy between mailbox databases 77 184
Mysql Left Join Case 10 104
MS SQL Server COnditional Where statement 7 96
sql select total by week ending 3 25
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
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…

749 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