Solved

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

Posted on 2006-07-03
3
277 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now