How can i set a long String to a xmltype field use PHP?

i can set xml String to xmltype field with:
$sql_insert_sql = "insert into g_province (p_id,p_regionid,p_provincenameobj,solt)
     values (g_province_q.nextval,'".$_GET['region_id']."',sys.XMLTYPE.createXML('".$xml_con."'),0)";
but if $xml_con too long,i can not set this content into xmltype fields.
then , i use :
<?
//(tabel_name:articles)DDL; //just for test;
//create table articles (id number(11),content sys.xmltype);
//----------This is insert test----------------------------------
$conn = @OCILogon("in_user","user_in","bigfish");
$stmt = @OCIParse($conn,"insert into articles (id,content) values(1,xmltype(EMPTY_CLOB())) RETURNING content INTO:CONTENT");
$clob = @OCINewDescriptor($conn,OCI_D_LOB);
OCIBindByName($stmt,':CONTENT',&$clob,"1",OCI_B_CLOB);
OCIExecute($stmt,OCI_DEFAULT);
if ($clob->save("<root><a>JUST TEST</a></root>")){
OCICommit($conn);
echo "Insert succes!";
else{
echo "Insert default!";
//---------------Insert end-----------------------------------------
//---------------Select start---------------------------------------
$sql = "select content from articles order by id desc";
$stmt = @OCIParse($conn,$sql);
@OCIExecute($stmt,OCI_DEFAULT);
@OCIFetchInto($stmt,&$rows,OCI_RETURN_LOBS);
echo "<br>Content is:\"".$rows[0]."\"";
//---------------Select end-----------------------------------------
?>
run it ,display these errors:
Warning: ociexecute(): OCIStmtExecute: ORA-22816: unsupported feature with RETURNING clause in /home/www/bigfish/sgtest/testclob.php on line 12
Warning: save(): OCILobWrite: OCI_INVALID_HANDLE in /home/www/bigfish/sgtest/testclob.php on line 13
Insert default!
Content is:""
Warning: Unknown(): ociclose_session: OCISessionEnd: ORA-00600: internal error code, arguments: [729], [28], [space leak], [], [], [], [], [] in Unknown on line 0
how can i set long content to xmltype fields??

geng sun,
Ora-00600 is an internal Oracle error. You will need to open a tar with Oracle.

Similar Messages

  • How can i set a long String to a xmltype field in oracle9i use PHP?

    i can set xml String to xmltype field with:
    $sql_insert_sql = "insert into g_province (p_id,p_regionid,p_provincenameobj,solt)
    values (g_province_q.nextval,'".$_GET['region_id']."',sys.XMLTYPE.createXML('".$xml_con."'),0)";
    but if $xml_con too long,i can not set this content into xmltype fields.
    then , i use :
    <?
    //(tabel_name:articles)DDL; //just for test;
    //create table articles (id number(11),content sys.xmltype);
    //----------This is insert test----------------------------------
    $conn = @OCILogon("in_user","user_in","bigfish");
    $stmt = @OCIParse($conn,"insert into articles (id,content) values(1,xmltype(EMPTY_CLOB())) RETURNING content INTO:CONTENT");
    $clob = @OCINewDescriptor($conn,OCI_D_LOB);
    OCIBindByName($stmt,':CONTENT',&$clob,"1",OCI_B_CLOB);
    OCIExecute($stmt,OCI_DEFAULT);
    if ($clob->save("<root><a>JUST TEST</a></root>")){
    OCICommit($conn);
    echo "Insert succes!";
    else{
    echo "Insert default!";
    //---------------Insert end-----------------------------------------
    //---------------Select start---------------------------------------
    $sql = "select content from articles order by id desc";
    $stmt = @OCIParse($conn,$sql);
    @OCIExecute($stmt,OCI_DEFAULT);
    @OCIFetchInto($stmt,&$rows,OCI_RETURN_LOBS);
    echo "<br>Content is:\"".$rows[0]."\"";
    //---------------Select end-----------------------------------------
    ?>
    run it ,display these errors:
    Warning: ociexecute(): OCIStmtExecute: ORA-22816: unsupported feature with RETURNING clause in /home/www/bigfish/sgtest/testclob.php on line 12
    Warning: save(): OCILobWrite: OCI_INVALID_HANDLE in /home/www/bigfish/sgtest/testclob.php on line 13
    Insert default!
    Content is:""
    Warning: Unknown(): ociclose_session: OCISessionEnd: ORA-00600: internal error code, arguments: [729], [28], [space leak], [], [], [], [], [] in Unknown on line 0
    how can i set long content to xmltype fields??

    geng sun,
    Ora-00600 is an internal Oracle error. You will need to open a tar with Oracle.

  • How can I set a value of column in SSIS by using Replace

    How can I set a value of a column in SSIS using a Replace in Derive columns. I have here NameCode and I need to Set = 1 Where NameCode like LIKE '____99____'
    eg. 1006993010... if 5th and 6th characters are 99
    Else 0
    Hope to hear from someone soon and I appreciate great help here.

    If NameCode column is integer then you have to cast it correctly to String.
    I am adding that to the expression provided by Rajen.
    SUBSTRING((DT_WSTR,20)ProductCode,5,2) == "99" ? 1 : 0
    -Vaibhav Chaudhari

  • How can I copy a long string of texts from my iPhone 4s to a word document?

    I need to copy a long string of texts to a word document on my PC.

    One method would be to use 3rd party software. The following is one example but there may be better/cheaper or even free options: http://www.wideanglesoftware.com/touchcopy/

  • HT201287 How can I copy a long string of txt messages?

    I am looking to manage a long string of txt messages. Is there a way to copy them in bulk verses one at a time?

    One method would be to use 3rd party software. The following is one example but there may be better/cheaper or even free options: http://www.wideanglesoftware.com/touchcopy/

  • How can i set my old ipod touch up to be used by someone else ie wipe all my details etc off and set it up for new user

    Hi i need help i have got a second hand ipod touch generation 4 how can i delete all of the previous owners stuff and set it up for myself to use for facetime etc

    Just restore it. When it gets to the point that asks you if you want to restore from back up or set up as new, select new.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • How can i set up to see large web screen without using Ctrl++ on every website i open?

    IE can set simply chossing zoom size and I can see big enough to make my eyes relaxed for a person who has eyesight problem. Is there a way to make it to see large on every website i opened? I'm sure there is a way. Please let me know.

    The Firefox [https://support.mozilla.com/en-US/kb/Page+Zoom Page Zoom] feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox, as with some other browsers.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • How can I set the font size of a form field in the fdf file?

    I need to dynamically set the font size of a field to accommodate text of varying length, automatic font size won't work in this case. It seems like this can be done in the FDF but I have tried several variants without success. Could someone help out with a real example of what the syntax in the fdf should look like.
    I am using Acrobat Professional 8.1 but the created fdf will need to work with Reader also.

    I think that the font size has to be set in the form itself, not the FDF.

  • How can you set up ECCN in Material Master if not using Foreign Trade

    After many years, we now have the need to store ECCN codes on our Material Masters.  Although I see on the Foreign Trade view of the Material Master under Legal Control what appears to be a way to set this up, the fields are grayed out and do not seem to have an option to add?  We use Commodity Codes, and we need to just store the ECCN like we do the Commodity Code.  Any ideas?

    Hi,
    Please check this path.
    SPROSales and distribution-Foreign trade/customs---legal control .
    Here yiu can define the ECCNS and Legal requirements and license types and their groupings, asign to depature countries etc to see that they get defaulted at MM01 screen salesgeneral plant data.
    Regards,

  • How can I set a radio button to a be checked using an action script?

    Acobat X: I have two radio buttons called EnrollmentType with different values. "New Student" and "Returning Student". I need to set 160 forms to returning student, Please
    will this work?
    getField("EnrollmentType").value = "Returning Student"

    This is Adobe X Pro:
    Ok when I click the properties of the radio button. Both have the same
    "Enrollment type".
    But each has a different "Radio Button Choice" under the  Options TAB.
    It does work when I process the forms and save the data.
    The field "Enrollment type" contains either "New Student" or "Returning
    Student" depending on which option they picked.
    I am sending these forms back to the parents to edit any new/changed info
    and want it to have "Returning Student" checked since they are in fact
    returning and not new anymore.

  • How can I set up my other emails on my pc using icloud?

    Hi, I am new to the iphone and icloud.  I was able to setup my other email accounts in my iphone 4s, however, when I use my pc, I only see the icloud account.   I am unable to set up any other email accounts.  Please help.
    Thanks, V. Zak

    The first message that AirPort Utility will display during the auto setup will be that the Express will be confgured to "extend" the network. When AirPort Utility analyzes the network further, and sees that the Express cannot "extend" the 3rd party network, the next message will indicate that the Express is being configured to "join" the wireless network.
    Once the Express is configured, if you later go into AirPort Utility to check the settings under the Wireless tab, you will see that the Wireless Mode is indeed "Join a wireless network".

  • How can i add a drop down list to a fields using BHTML( displaying on its)

    Please help me to add a drop down list to a field while displaying on ITS using BHTML or javscript. List should show all the values from value table or search help.

    Hi Sandeep,
    in ABAP, read the table (keys and values) and write it to the ITS context, e.g. with field names KEY and VALUE.
    On the ITS template, write code like this:
    `if (KEY.dim > 1);
       repeat with i from 1 to KEY.dim;
        keys1[ i ] = KEY[ i ];
        contents1[ i ] = VALUE[ i ];
        if (KEY[ i ] == SELECTED_KEY);
         selIndex = i;
        end;
       end,
       SAP_TemplatePulldownField("field1", fieldLabel=#label, name="KEY", key="keys1", content="contents1", selIndex=selIndex);
    end`
    (I had to add blanks between the brackets to get the code displayed correctly here.)
    HTH & best regards,
    Carlo

  • How can I set up personal hotspot on iPad 3

    How can I set up personal hotspot on iPad 3, I use 3G services from Etisalat  SIM

    If your carrier supports the personal hotspot on the iPad (and some carriers only support it on the iPhone) then it should appear in Settings > General > Cellular Data > Personal Hotspot - if it doesn't appear then contact your carrier in case they don't support it or it might be an extra fee/subscription with them
    Personal hotspot : http://support.apple.com/kb/HT4517

  • All of my devices seem to be connected... It's messages that I want to turn off. I don't want to receive any messages on anything except my daughters iPod that are sent to my Apple ID. How can I set my phone, iPod,iPad, and MacBook to no longer receive ms

    All of my devices seem to be connected... It's messages that I want to  turn off. I don't want to receive any messages on anything except my  daughters iPod that are sent to my Apple ID. How can I set my phone,  iPod,iPad, and MacBook to no longer receive msgs sent to  [email protected]???? I only want msgs to be received on my phone,  that are sent to my phone # and that is all!!!!

    Settings>Messages>Send/Receive...edit here.

  • How can I set the time between how long my phone plays a text msg ringtone if I don't respond the first time?

    If I don't respond the first time, how can I set how many times/seconds it plays the next time until I respond?

    Actually, there is!
    http://www.apple.com/feedback/iphone.html

Maybe you are looking for

  • Bank Sun Accounts

    Hi, I am trying to set up Automatic Payment Program for Vendor Payments. Where the sub accounts used in APP and how are they configured? Thanks in advance Kavita.

  • Place Computer in Specific OU based on Current IP Address during OSD

    I have Googled and searched these forums and still have not found this.. I am sure this is possible... Hoping someone can point me in the right direction or share the How to Knowledge. Thanks!

  • How do I "unlock" a template without losing content?

    I want to make changes to a template that seems to be "locked." I did not create the template. When I deleted the green template coding for editable regions, it "unlocked" the template but it also made all of my content disappear. I'm looking for a w

  • Running Photoshop CS3 & CS5 - upgrade questions

    Hi all, So I understand that you can run both photoshop extended CS3 and CS5 on the same system (not at the same time), but I would like to clarify a few things. My boss purchsed CS3 extended, and we run it on two systems here at work. When he purcha

  • Wmware fusion 3.1.3, winxp and Lion, and other questions

    Looks like I finally have to upgrade to Lion [yes, I know, late to the party]. I have 2008 aluminum MB, running 10.6.8, WMware fusion 3.1.3 and WinXP. I use windows for only three applications but unfortunately they are important. My questions: 1. Wh