Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8215755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:53:34+00:00 2026-06-07T11:53:34+00:00

I have stored procedure: CREATE OR REPLACE udp_get_employeeaddress ( result_set out sys_refcursor ) AS

  • 0

I have stored procedure:

CREATE OR REPLACE udp_get_employeeaddress ( result_set out sys_refcursor )
AS
BEGIN
   open result_set for
   select xmlcolumn from employees where rownum < 3;

END udp_get_employees;

When I execute this sp, the following is returned in Output Variables in SQL Developer

XML_COLUMN


oracle.jdbc.driver.OracleSQLXML@49e57334

Taking out the SELECT statement only

select xmlcolumn from employees where rownum < 3;

Returns the xml result

XML_COLUMN


The table is defined as this:

CREATE TABLE "EMP"."Employees"
  (
    "ID"              NUMBER,
    "XML_COLUMN" "XMLTYPE"
  )
  xmltype column "XML_COLUMN" STORE AS BINARY XML
  xmlschema "http://www.web.com/emp.xsd"
  element "root"  

I’m hoping for my stored procedure to return the same (resultset) as the standalone query.

This is my first foray to Oracle / xml db, as I’ve been primarily SQL Server DB Developer. Any help is greatly appreciated.

Thanks

UPDATED: Table definition/query results

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T11:53:35+00:00Added an answer on June 7, 2026 at 11:53 am

    This isn’t a problem with your procedure, but seems to be an oddity with how SQL Developer is shooing the output variable – I can’t see a way to show the actual content of that in that tab.

    As an alternative you can see the procedure is working by calling it from an SQL Worksheet (running as a script (F5)):

    var rc refcursor;
    exec udp_get_employeeaddress(:rc);
    print :rc;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this stored procedure: CREATE OR REPLACE PROCEDURE LIQUIDACION_OBTENER ( p_Cuenta IN NUMBER,
I have this stored procedure for Oracle: create or replace procedure bns_saa_message_get() <--- PROBLEM
I have a stored procedure (SP) in oracle: CREATE OR REPLACE PROCEDURE SP_SEL_LOGIN_INFO (
I have following stored procedure: CREATE PROCEDURE testProc(IN p_idProject INTEGER) BEGIN DECLARE nowTime DATETIME;
I have a stored procedure with an IN OUT parameter declared like follows: create
I have stored-procedure in Oracle database like this: create or replace PROCEDURE EDYTUJ_PRACOWNIKA (PR_IMIE
I have the following Java stored procedure: CREATE OR REPLACE AND RESOLVE JAVA SOURCE
i have a simple oracle stored procedure proc1 as follows: CREATE OR REPLACE PROCEDURE
I have a stored procedure create or replace procedure GETFILE(TableName in VARCHAR2) is No_Rows
Here I have a stored procedure in Oracle: CREATE OR REPLACE PROCEDURE StP_COMPS IS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.