What is the datatype to store the value of variable of  UTL_HTTP.resp

Hello,
I am using Oracle 11g R2 SOE.
I have table Called SMS consists of two columns (TEXT , RESPONSE) to store the value of variable of type UTL_HTTP.resp
the datatype of TEXT column is varchar2.
What should be the datatype of the column RESPONSE that is supposed to store the value of a variable of type UTL_HTTP.resp ????
Please see the following example if it was not clear;
Declare
  l_url2 SMS.RESPONSE%TYPE;
  l_http_request2   UTL_HTTP.req;
  l_http_response2  UTL_HTTP.resp;
begin
  l_http_request2  := UTL_HTTP.begin_request(l_url2);
  l_http_response2 := UTL_HTTP.get_response(l_http_request2);
  insert into SMS (text,response) values (l_url2,l_http_response2);
  UTL_HTTP.end_response(l_http_response2);
end;Regards,
Fateh

Fateh wrote:
Hello,
I am using Oracle 11g R2 SOE.
I have table Called SMS consists of two columns (TEXT , RESPONSE) to store the value of variable of type UTL_HTTP.resp
the datatype of TEXT column is varchar2.
What should be the datatype of the column RESPONSE that is supposed to store the value of a variable of type UTL_HTTP.resp ????
Please see the following example if it was not clear;
Declare
l_url2 SMS.RESPONSE%TYPE;
l_http_request2   UTL_HTTP.req;
l_http_response2  UTL_HTTP.resp;
begin
l_http_request2  := UTL_HTTP.begin_request(l_url2);
l_http_response2 := UTL_HTTP.get_response(l_http_request2);
insert into SMS (text,response) values (l_url2,l_http_response2);
UTL_HTTP.end_response(l_http_response2);
end;Regards,
Fatehutl_http.resp is a record type Its defined like this
TYPE resp IS RECORD (
   status_code    PLS_INTEGER,
   reason_phrase  VARCHAR2(256),
   http_version   VARCHAR2(64));http://docs.oracle.com/cd/B19306_01/appdev.102/b14258/u_http.htm#i1012713
I would suggest in your table you split the RESPONSE column into 3 different column and store the fields STATUS_CODE, REASON_PHARSE and HTTP_VERSION accordingly.

Similar Messages

  • What is the table which stores the SM04 currently active users data

    HI all,
    what is the table which stores the SM04 currently active users data in sap?
    plzzzzzzzzz help me..
    Thanks  all in advance ,
    Malti

    Hi,
    Pl. check in tables USR02/USR01 for the list of users & logon data.
    Regards,
    SDS

  • Change the datatype of all the columns

    Oracle version 10g.
    I have a table with 150 columns.
    I'd like to change the datatype of all the columns in my table to varchar.
    Do we have a query for this task?
    Thanks.

    Not knowing yet what you'll answer to John:
    If your table is empty, you can use the datadictionary to generate a statement and execute it using dynamic SQL or spool the query to a file that does the DDL and run that...
    Example:
    MHO%xe> create table bla (col1 number, col2 number);
    Tabel is aangemaakt.
    MHO%xe> select column_name, data_type from user_tab_columns where table_name = 'BLA';
    COLUMN_NAME                    DATA_TYPE
    COL1                           NUMBER
    COL2                           NUMBER
    MHO%xe> declare
      2    l_sql varchar2(4000);
      3    l_sep varchar2(1);
      4  begin
      5    l_sql := 'alter table BLA modify ('||chr(10);
      6    for rec in ( select column_name from user_tab_columns where table_name = 'BLA')
      7    loop
      8      l_sql := l_sql||l_sep||' '||rec.column_name||' varchar2(50)'||chr(10);
      9      l_sep := ',';
    10    end loop;
    11    --
    12    dbms_output.put_line(l_sql||' )');
    13    --
    14    execute immediate l_sql||' )';
    15    --
    16  end;
    17  /
    alter table BLA modify (
    COL1 varchar2(50)
    , COL2 varchar2(50)
    PL/SQL-procedure is geslaagd.
    MHO%xe> select column_name, data_type from user_tab_columns where table_name = 'BLA';
    COLUMN_NAME                    DATA_TYPE
    COL1                           VARCHAR2
    COL2                           VARCHAR2

  • How do I find in the "Mac App Store" the authorize --my computer to do an upgrade on the newest imovie in Maverick? MacBook Pro 15' 10.9.2

    How do I find in the "Mac App Store" the authorize --my computer to do an upgrade on the newest imovie in Maverick? MacBook Pro 15' 10.9.2. Thank you!

    He shouldn't have done that. Now you have a pirated version of iMovie on your Mac that you will never be able to update. The MAS Terms of Use do not allow that type of sharing. His Apple ID is encoded in the copy on your Mac and you can't change that.
    Legally you should delete the app.
    Your Mac should have come with the iLife apps pre-installed, why did he do that?

  • Need help to find the table which stores the infomation listed below

    Hi,
       I am working on Archiving work for archiving the data under the tcode SOST.I searching the table which stores the email document content but I am having difficulty to get the table..Could any one provide some input on this.
    Thanks.
    ~Donny

    I believe it is stored in table SOFFCONT1

  • TS1368 i Tunes could not connect to the i Tunes store.The network connection was reset

    i Tunes could not connect to the i Tunes store.The network connection was reset
    when accessing itunes store

    There's some info on your error message number in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
    iTunes: Advanced iTunes Store troubleshooting

  • If i buy an iphone on the online apple store (the US store), is the iphone Model A1249?

    If i buy an iphone on the online apple store (the US store), is the iphone Model A1249?

    A1249 is an iPhone 5 model and the iPhone 5 is no longer sold by the Apple Store. If you look for "Tech Specs" for a specific phone (4s, 5c, or 5s) in the store, that will show you the model numbers. Following is that information for the 5s: http://www.apple.com/iphone-5s/specs/

  • What file(s) does firefox store the bookmarks in? My system crashed and I have the complete folders backed up.

    I need to restore my bookmarks from a copy backup. What file(s) does firefox use to store the bookmarks?

    See:
    * https://support.mozilla.com/kb/Recovering+important+data+from+an+old+profile
    * http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox

  • What's the file that stores the saved tab urls?

    My laptop's screen broke. There were a lot of important urls I was saving through Firefox. My laptop runs on Windows 7. I'm not sure how current Firefox is, but it was updated within the last year.
    What is the file path to the file that lists the urls?

    See also:
    *https://support.mozilla.org/kb/Recovering+important+data+from+an+old+profile
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    Bookmarks are stored in the places.sqlite file.<br />
    The tabs of the current session are stored in the sessionstore.js file.
    *http://kb.mozillazine.org/sessionstore.js
    *http://kb.mozillazine.org/Profile_folder_-_Firefox

  • Where is the file which stores the users and groups policies?

    Hi, as mentioned in the title..i would like to know which file stores the policies of the users and groups which i've defined. And where is this file stored? Thanks.

    SteveGrisetti wrote:
    Okay if I move this into our Tips & Tricks area for easy reference?
    If you're asking me, I have no objections.

  • HT204365 when i am in the Top Charts "store", the categories drop down list, next to the library button at the top right corner disappeared..how do i get it back?

    on my ipad, in the ibooks app, the categories icon disappeared next to the library icon in the top left hand corner, when i go the the top charts in the store..how do i get it back?

    Try 1 of 2 things.
    Double tap the Home Button on the iPad > you should see the Dock tray with your apps in > hold on iBooks until you see the app jiggleing with a red circle and white line > tap that red circle > re-opoen iBooks.
    If that does not work repeat above but do not open iBooks after you close it, now power off your iPad and turn it back on. You can power it off by holding the power button on top of the device for about 5-10 seconds.

  • Name of the Table that stores the Possible Agent ID's for a Task.

    Hi,
    Could you please tell us the table that would store the Agent ID's that are assigned to a particular task? For e.g we have assigned a few user names to Task TS00007986 ( Requisition release) through OOCU, we would like to know in which table we would find those usernames assigned to that task.
    Thanks.

    Hi,
    I'm not on SAP at the moment.
    But isn't it stored in the HR relation table (is it HRP1001?)
    Anyways I'll check in a couple of hours if this is the case.
    Also activate the SQL trace ST05 just before you go to agent assignment
    Kind regards, Rob Dielemans
    Edited by: Rob Dielemans on Sep 30, 2010 1:27 PM

  • Is the Pages in the mac app store the same as the one in iWork?

    I like the look of Pages as a change from MIcrosoft Word.  wondering if I should pay $AU129 and get the whole iWork package, or whether it's better to get the individual products at $AU $21 on the mac app store.
    If there is any difference, how significant is it?

    Example:
    somebody has Lion on a partition, Snow Leopard on an other one (or on an external bootable HD).
    With the iWork package, he must install several copies of the Frameworks.
    With the MAS ones he may work without them. The apps installed on the Lion partition would be usable fromthe other system.
    This is why I feel that the MAS versions are a best choice for standard users.
    For me, having the FrameWorks out of the apps is interesting because I customize some resources like the names of the Spreadsheet functions. Apple refuse to put accents where they are supposed to be because Excel doesn't use them. As some names embed accented chars and other don’t it’s boring so I edited the resource and now I know that accents are required by every functions. With Shift locked we get these chars with a single keypress so it's really comfortable.
    Yvan KOENIG (VALLAURIS, France) mardi 31 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

  • Is it possible to make the slave harddrive store the desktop?

    I have a 10 gig master hard drive and an 80 gig slave. I could back up all my files and re-install OSX, but I was wondering if there was a way to make everything but the OS run off of the slave, including the desktop.
    thanks

    There's a desktop folder for each user account on every Mac volume (a disk, or a partition on a partitioned disk, is a volume). That folder, which is invisble in the Finder, contains all the items on that volume that are displayed on that user's desktop when that volume is mounted on the Mac. If there are two or more mounted volumes, the items on that user's desktop for each volume are displayed together, as though the contents of each volume's user desktop folder were on a transparent layer, and all the layers were overlaid on top of each other. Eject or unmount a volume, and whatever is in the user's desktop folder on that volume disappears from view on the desktop, along with that volume's own icon.
    Each volume's desktop folder (or folders, if more than one user has access to the volume) is (or are) particular to that volume and part of its Finder-level folder structure, even though they don't appear as folder in the Finder. This is why you can't move such folders to any other volume, even though you can freely copy the contents of each one to any other volume's desktop.

  • Where's the file that stores the Recent Files list? (Mac OS)

    I closed a document yesterday that I had finished after saving a PDF from a saved AI file. When I went to "Open Recent File" and selected either the AI or the PDF, it says the file cannot be found.
    I would like to take a look at the path of where Illustrator thinks the file should be so I can narrow down why the file is missing.
    I've looked in /Users/(me)/Library/Preferences and haven't found anything.
    Thank you!

    I doubt this *.plist file will be any use to you… Why don't you go outside the app and use spotlight…?
    or just comm+f

Maybe you are looking for

  • Why XI is need ?

    Hi friends, I have some couple of questions in XI?... Why we need to use XI?..eventhough some existing Integration tools are avaliable in the market..like TIBCO.. Webmethods etc...What XI does TIBCO does...same Vice versa.. <b>Wht is the major differ

  • Hr: code for maternity.

    hi sap, i have a requirment on HR but honestly speaking i dont have any idea of HR. but i have modify the current program to cater the functionality using the USER EXIT. I have found the USER EXIT but i dont know how to write the code in HR. Please h

  • Automated Export

    I am able to setup the automated export.  It is not running, no error log/messages nor email notification.  Not sure what's happening, it did work once on another db, but it is not working for my production db.  Since it is preview MS is not providin

  • BI Content Activation - no data sources available (CC 5.3)

    Hi experts, I tried to activate the BI content for Access Control 5.3 on our dev BI (BI System: BI_CONT 7.04 SP 008) following this how-to-guide: http://www.sdn.sap.com/irj/bpx/go/portal/prtroot/docs/library/uuid/e05a9879-d204-2c10-54a9-ebc94eaddc4e

  • I can not sign in yahoo mail

    my FaceTime works fine,but can not sign in yahoo!mail,when I click the sign in the searching keep going,never stop!