How to set long =1000 in a store proc

Hi Friends
Can someone tell me how to set long = 1000 in stored proc and how to get and manipulate returned variable clob in front end ASP
stored proc is as below:
CREATE OR REPLACE Procedure usp_emp_get
(i_Emp IN NUMBER, o_XML OUT CLOB)
AS
qryCtx DBMS_XMLGEN.ctxHandle;
BEGIN
qryCtx := DBMS_XMLGEN.newContext('select * from emp where EmpNo=''' || i_Emp || '''' || ' and rownum <= 100');
DBMS_XMLGEN.setRowSetTag(qryCtx,'empdata');
DBMS_XMLGEN.setRowTag(qryCtx,'emp');
o_XML := DBMS_XMLGEN.getXML(qryCtx);
DBMS_XMLGEN.closeContext(qryCtx);
END usp_emp_get;
So how to process o_XML in frontend side
Thanks Mark for your previous help

You shouldn't need to set long in the proc as such. The SET function is used to control how much data SQL*PLUS displays when processing long data types (LOB, CLOB, XMLTYPE).
You've written a PROC that creates the XML you want. However you probably need to make it a function so you can return the data into your app

Similar Messages

  • Diff between "set long 1000" and "set LINESIZE 1000" ?

    As far as I know there are two commands to adjust the linesize (in SQLplus output):
    set long 1000
    and
    set LINESIZE 1000
    What is the difference ?
    Peter

    Dear user559463!
    The SQL*Plus command SET LINESIZE sets the size of a line to the specified amount of characters. The command SET LONG affects only databasecolumns of the type LONG. It sets the amount of characters show from a column of type LONG. E. g.
    SET LINESIZE 50
    SET LONG 1000
      1  SELECT text
      2  FROM   dba_views
      3* WHERE  view_name LIKE 'DBA_TABLES'
    TEXT
    select u.name, o.name, decode(bitand(t.property,21
    51678048), 0, ts.name, null),
           decode(bitand(t.property, 1024), 0, null, c
    o.name),
           decode((bitand(t.property, 512)+bitand(t.fl
    ags, 536870912)),
                  0, null, co.name),
           decode(bitand(t.trigflag, 1073741824), 1073
    741824, 'UNUSABLE', 'VALID'),
           decode(bitand(t.property, 32+64), 0, mod(t.
    pctfree$, 100), 64, 0, null),
    TEXT
           decode(bitand(ts.flags, 32), 32, to_number(
    NULL),
              decode(bitand(t.property, 32+64), 0, t.p
    ctused$, 64, 0, null)),
           decode(bitand(t.property, 32), 0, t.initran
    s, null),
           decode(bitand(t.property, 32), 0, t.maxtran
    s, null),
           s.iniexts * ts.blocksize,
           decode(bitand(ts.flags, 3), 1, to_number(NU
    LL),
    TEXT
                                          s.extsize *
    ts.blocksize),
           s.minexts, s.maxexts,
           decode(bitand(ts.flags, 3), 1, to_number(NU
    LL),
                                          s.extpct),
           decode(bitand(ts.flags, 32), 32, to_number(
    NULL),The linesize is 50 characters wide but SET LONG 1000 means that the first 1000 characters of the TEXT column of DBA_VIEWS are shown.
    I hope that's what you wanna know.
    Yours sincerely
    Florian W.

  • How to set long exposure times on a Powershot sd800?

    Is there a way to set long exposure times on a Powershot SD800 camera? Am I limited to what the preset menus offer?

    zoltanszucs,
    You can try shooting in the Long Shutter Mode.  Please follow these steps:
    With the camera in Manual mode, you will need to go into the menu and enable Long Shutter.
    Exit the menu and press the FUNC button.
    Select the Exposure Compensation setting and press the MENU button.
    Use the LEFT and RIGHT buttons to select the shutter speed.
    If this is a time sensitive-matter, additional support options are available at Contact Us.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Okay so I set up my Time Capsule already and is now backing up 2 of my iMacs. Works great. What I want to know is how to use the TC to directly store files? I want to do this to delete some files but still have them on the TC for future reference..

    Okay so I set up my Time Capsule already and is now backing up 2 of my iMacs. Works great. What I want to know is how to use the TC to directly store files? I want to do this to delete some files on iMac 20inch but still have them on the TC for future reference..eg some movies on iTunes. I want to directly save them on the drive so I can delete them from iTunes and gain some storage. (Ps on iMac 20 inch (it's almost full - 320 GB) when I enter time machine, a tab comes up on finder which reads "Time Machine backups" it's able to be ejected like a disc or a connected device. On the iMac 20 inch, I dragged some files onto there as if using it like a hard drive. Is this the correct method? Then I went to my 27inch iMac and saw the "Time Machine Backups" hoping to see the files I dragged from the 20inch iMac. But the files were not there except a folder that said "Backups.backupdb". Can someone help me?

    It's not a good idea to use a network disk for both Time Machine backups and other things.  By design Time Machine will eventually consume all the space on its output disk, which will then cause problem for your other files.  I'd store those other files on an external disk connected to the Time Capsule.  The problem with that is that Time Machine will only back up files that are local to your Mac.  That means that you'll only have one copy of the files on or attached to your Time Capsule.
    By the way, you've been misled by poor field labeling on this forum into typing a large part of your message into the field intended for the subject.  In the future just type a short summary of your post into that field and type the whole message into the field below that.

  • I cannot figure out how to set my apple id to use: itunes (two of accounts), apps store and Itunes store. How do I make one password that will be recognixed by all these devices?

    I cannot figure out how to set my apple id to use: itunes (two of accounts), apps store and itunes store. How do I make one password that will be recognized by all these devices? My apple id is constantly not working.

    Hi Lrwill,
    If the apps that are on your son's iPad were purchased under his Dad's Apple ID, then signing your Apple ID onto the iPad will not help you with updating those apps.
    Also, if the iPad was sync'd with his Dad's iTunes library, then hooking it up to your computer/iTunes library, will require you to reset the iPad, and everything that was loaded under the other Library and Apple ID will be wiped out.
    Can you provide a little more info about what was set up under which Apple ID and what iTunes library the iPad was sync'd with?
    Cheers,
    GB

  • I just recently purchased a mini iPad for my child. It was set up in the Apple store with my Apple id. I now want to create an Apple id for my child and switch it over, how can I go about that. I already downloaded some of the games from my account.

    I just recently purchased a mini iPad for my child. It was set up in the Apple store with my Apple id. I now want to create an Apple id for my child and switch it over, how can I go about that. I already downloaded some of the games from my account.

    With a new account, you'll need to rebuy the games.
    Each user should have their own icloud account, otherwise they end up getting the same emails, contacts, calendars, notes, reminders, etc. - usually not what you want.  But if all have been sharing the same itunes ID, keep it that way, you can have different IDs for itunes and icloud.
    If you already have another icloud account, and want to set it up on a device, then go to Settings>icloud, scroll to bottom of screen and tap Delete Account.  This only disconnects the device from that account, no data is lost on icloud.  Then enter the account ID that you want to use.
    To create a new icloud account, go to
    http://www.apple.com/icloud/setup/

  • How can i update my old 2006 iMac Intel core 2 duo running 10.6.8 to OSX Lion so that I can sync using iCloud with my newer devices?  Mountain Lion is not an option for my older model and Lion is no longer available at App store.

    How can i update my old 2006 iMac Intel core 2 duo running 10.6.8 to OSX Lion so that I can sync using iCloud with my newer devices?  Mountain Lion is not an option for my older model and Lion is no longer available at App store. 

    Call Apple's online store's telesales agents: 1-800-MY-APPLE (1-800-692-7753) or Customer Service and Sales Support at 1-800-676-2775. For Lion you'll get a redemptions code via e-mail and need to DL from the Mac Apple Store (requires SL 10.6.6+).

  • HT1338 im on osx snow leopard but the lion is no longer available on app store. How can i still upgrade to lion? my computer by the way is not compatible with mountain lion. thanks

    im on osx snow leopard but the lion is no longer available on app store. How can i still upgrade to lion? my computer by the way is not compatible with mountain lion. thanks

    Hello royalaqua,
    I do think you should ask yourself if upgrading to Lion is the right course to take.
    Snow Leopard is an excellent OS and Lion has literally been frozen out after barely a year.   Remember too that some of your apps may not work with Lion (those that have Rosetta, for example) so that could mean more new purchases.   Plus you may need to uprate your RAM too.

  • How to Set Image to Lock Screen and Background in Windows Store API?

    How to set an image to windows lock screen and desktop background for windows store app in c#?
    if changing lock screen is available in windows store C# how about changing the desktop background using Windows store C#?

    Hi icce cage,
    To change the Windows lock screen we can use this API:
    LockScreen class with set image methods.
    To change the desktop background, it is not possible as I know.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • My apple id is set on France app. Store, how can I buy or rent a movie from the American store??!

    My apple id is set on France app. Store, how can I buy or rent a movie from the American store??!

    You are very welcome.  I lived in France for a couple years and wish I could buy books from the French bookstore but cannot so am very familiar with this issue.
    Part of the problem is concerned with international copyright laws.

  • How to set a picture when you long- in

    how to set a picture when you long- in

    How to set a picture when you log in to where ?

  • HT201684 In Yosemite this no longer works, has anyone figured this out? How to set a custom default umask for all applications?

    In Yosemite this no longer works, has anyone figured this out? How to set a custom default umask for all applications?
    I've tried everything to get a custom umask set for all apps. It just seems impossible...
    Is there a replacement for launchd-user.conf?

    Please file a bug report: https://bugreport.apple.com
    I am sure this is something that got lost, like environment variables, in the Yosemite/iOS merger.

  • MAC OS X 10.9.3 setting up 0365 exchange on mail 7.3, but cannot find the option to adjust how many days worth of mail to store. At the moment it is only synching todays mail. Please assist.

    MAC OS X 10.9.3 setting up 0365 exchange on mail 7.3, but cannot find the option to adjust how many days worth of mail to store. At the moment it is only synching todays mail. Please assist.

    MAC OS X 10.9.3 setting up 0365 exchange on mail 7.3, but cannot find the option to adjust how many days worth of mail to store. At the moment it is only synching todays mail. Please assist.

  • I need to know how to set up my itunes card i bought at the store on my phone please

    I need to know how to set up my itunes card that I bought from the store to my account on my phone

    Click here and follow the instructions.
    (118196)

  • How to set store procedure parameters

    Hello,
    To summarize our problem, we are not able to set store procedure parameters using JRC and without using a Viewer.
    Inside an rpt document we use a call to a store procedure that requires some input parameters.
    We attempted to pass the required parameters to the report (please see below) but it seems that those parameters are somehow ignored.
    In fact null values are always received by the store procedure.
    For your information, if the document doesnu2019t contain a call to a store proc but SQL clause parameters instead, then that works.
    Does that mean that sp parameters have to be set in a specific way?
    Please can you advise?
    Tanks a lot,
    Joseph
    This is how we set parameter values:
    private void handleParameters(ReportClientDocument pm_document, List pm_parameters) throws Exception
         ParameterFieldController pfc = pm_document.getDataDefController().getParameterFieldController();
         pfc.setCurrentValue(reportName, parameterFieldName, parameterValue);
    Then we export in a pdf file:
    private InputStream createInputStream(ReportClientDocument pm_document, String pm_reportName) throws Exception
         return (ByteArrayInputStream)pm_document.getPrintOutputController().export(ReportExportFormat.PDF);

    First question:
    Do you set the parameters before the database logon?
    Sincerely,
    Ted Ueda

Maybe you are looking for

  • Adobe Flash Player Update crash

    "Adobe Flash Player Update Service 11.3 r300 has encountered a problem ..." I'm trying to answer this question, but don't know how to do it. So I'm starting new discussion. I've had this problem for over a month and have reinstalled adobe flash playe

  • Output.Print printing all PDFs double-sided

    Hello According to the following article it is possible to configure a PDF to print single or double sided in the Adobe LiveCycle Designer: http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=000089.html#15813 85 I follow these e

  • MyFaces 1.1.5, Tomahawk 1.1.3, Portlet 168 using Pluto Container Questions

    I am currently using MyFaces 1.1.5 - JSF1.1 implementation with Tomahawk 1.1.3 running on top of Pluto 1.1.1 within our development environment. We are going to deploy it to IBM Portal 6.0 for production. I am also using the MyFaces Portlet Bridge. M

  • Where do I find the helpfile in pdf format

    I prefer to have a printed version of the help file instead of using the on-line help. For other adobe products like premiere pro and audicity I have found a pdf file that I can print, but for Encore DVD I had no luck so far. I only can print from th

  • Getting maximum width and height of frame

    In my Flash CS4 application I have a problem working out the maximum x and y coordinates of the display objects that have been created in a frame using the frame editor. This is the sequence 1. Using the frame editor on the timeline, I create a keyfr