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.

Similar Messages

  • 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.

  • 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 the sampling frequency in Labview if I am not using DAQ?

     I am working with bluetooth to send my four signals from my circuit to the computer. So, I am using VISA to acquire the data in labview. Since as you know its not possible to use DAQ while using bluetooth. 
    anyway after getting the signal I need to filter ir for analysis part and I am using filter express VI from signal processing's functions. However, I am getting error, since I dont have the sampling frequency set and I am not able to set it in my filter function either.
    I was wondering If there is a way of making labview recognize the clock-timer as the sampling rate or any other way to set the sampling frequency somewhere before the filters. 
    here is the program, you can take a look at it.
    Attachments:
    shift final - Copy.vi ‏363 KB

    Sender side is sendng 2 bytes of FF in the begining of the loop and 2 bytes of zeros between each signal, I am attaching the code as ICCV8 file (I will also attach it as a notepad file), so you can see what I mean. I had written some solutions for that as well in my program before but not sure if it was correct or not. I tried to search for  FF bytes as a string, after getting each 18 bytes. But apparently it doesnt find the FF, I reckon because of wrong conversions beforehand, so it stops the programm there. Im attaching the that program now as well. could you please take a look?
    Attachments:
    main.c ‏2 KB
    bluetooth code.txt ‏2 KB
    ok - Copy.vi ‏159 KB

  • 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 I set up firefox home on my iPhone without a desktop

    How can I set up the Firefox Home App on my iPhone without using a desktop computer and without having to sync it, too?
    My home computers are not functioning right now, but Firefox is my favorite browser.
    Can someone help me get it working on my iPhone?

    Actually, there is no version of Firefox for the iPhone. Firefox Home is a helper app to sync certain data to your iPhone.
    More info on Apple vs. third party browsers: [https://support.mozilla.org/en-US/questions/925084 Why isn't Mozilla Firefox available on the MOST SELLED and MOST WISHED tablet on the market? The iPad! I mean, Firefox home is not even an universal app.]

  • How can I set a "Metal" LookAndFeel to a JFrame

    How can I set a "Metal" LookAndFeel to a JFrame?
    I�m using the JDK 5. In my pc, has that theme. I�m using Win2k

    try{
            UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
            } catch (Exception e) {
                System.out.println("Error changing Look and Feel");
            }

  • 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

  • My wife and I have been using the same iTunes account, but would like to have separate apps on our phones.  How can I set up a separate account for her?

    My wife and I have been using the same iTunes account for both our iPhones, but she wants separate apps from mine.  How can I set up a second account in her name, delete the apps on her phone and start from scratch with just the apps she wants on her phone?

    If you have the old phone, connect it to iTunes, right click on the device, and choose transfer purchases.  If you no longer have the old phone, I don't believe there is a way to recover them, as they were on your original device.

  • How can I set up an older airport express using the newest airport utilities?

    How can I set up an older airport express using the newest airport utilities? Seems like there isn't an option to set this up.  Normally you could add/set up this in the airport setup assistant- but that doesn't exsist any longer.
    Thanks for any suggestions 

    How can I set up an older airport express using the newest airport utilities?
    Unfortunately you can't, since Apple dropped support of the older AirPorts with AirPort Utility 6.x.
    Using some workarounds....not supported by Apple.....you might be able to download and install an older version of AirPort Utility that would allow you to administer the older AirPort.
    See this thread for more details and instructions:
    https://discussions.apple.com/message/21397085#21397085

  • How Can I set up a JTable columns?

    Dear All,
    How can I set up my JTable columns to have the amount the user specifies?
    for example when the user types in 50 in JTextField 1 I want the JTables columns to then set to 50.
    How can this be done?
    Thanks
    lol
    import javax.swing.*;
    import javax.swing.table.TableModel;
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    import java.awt.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    public class si1 extends javax.swing.JFrame implements ActionListener {
        JTextField name = new JTextField(15);
        JTextField name1 = new JTextField(15);
        public si1() {
            super("DataBase Loader");
            setSize(1025,740);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JPanel pane = new JPanel();
            JPanel pane1 = new JPanel();
            JPanel pane2 = new JPanel();
            JPanel pane3 = new JPanel();
            JPanel pane4 = new JPanel();
            pane.setLayout(new GridLayout(20,1));
            pane1.setLayout(new BorderLayout());
            int j=10;
            String[][] data = new String[j][2];
            for (int k=0; k<j; k++){
               String[] row = {"",""};
               data[k] = row;
            String[] columnNames = {"First Name", "Last Name"};
            JTable perstab = new JTable(data, columnNames);
            perstab.setGridColor(Color.yellow);
            perstab.setPreferredScrollableViewportSize(new Dimension(500,500));
            JScrollPane scrollPane = new JScrollPane(perstab);
            pane1.add(new JPanel(), BorderLayout.EAST);
            JButton btn = new JButton("What are the names?");
            btn.addActionListener(this);
            btn.putClientProperty("DATABASE", perstab);
            pane1.add(new JPanel().add(btn), BorderLayout.SOUTH);
            pane2.add(name);
            pane3.add(name1);
            pane.add(pane2);
            pane.add(pane3);
            pane1.add(pane, BorderLayout.WEST);
            pane4.add(scrollPane);
            pane1.add(pane4, BorderLayout.CENTER);
            setContentPane(pane1);
            show();
        public static void main(String[] args) {
            si1 frame = new si1();
            frame.setVisible(true);
        public void actionPerformed(ActionEvent e) {
            JTable table = (JTable)((JButton)e.getSource()).getClientProperty("DATABASE");
            TableModel model = table.getModel();
            int count = model.getRowCount();
            String[] firstnames = new String[count];
            String[] lastnames = new String[count];
            for (int i=0; i < count; i++) {
               firstnames[i] = (String)model.getValueAt(i, 0);
                System.out.println("first name at row " + i + ": " + firstnames);
    lastnames[i] = (String)model.getValueAt(i, 1);
    System.out.println("lastname name at row " + i + ": " + lastnames[i]);

    As you can see I have tried this, but no success.
    If I am doing something wrong please accept my apology, and address me in the right direction.
    Thanks
    Lol
    import javax.swing.*;
    import javax.swing.table.TableModel;
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    import java.awt.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    public class si1 extends javax.swing.JFrame implements ActionListener {
        JTextField name = new JTextField(15);
        JTextField name1 = new JTextField(15);
        public si1() {
            super("DataBase Loader");
            setSize(1025,740);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JPanel pane = new JPanel();
            JPanel pane1 = new JPanel();
            JPanel pane2 = new JPanel();
            JPanel pane3 = new JPanel();
            JPanel pane4 = new JPanel();
            pane.setLayout(new GridLayout(20,1));
            pane1.setLayout(new BorderLayout());
            int j=10;
            String[][] data = new String[j][2];
            for (int k=0; k<j; k++){
               String[] row = {"",""};
               data[k] = row;
            String[] columnNames = {"First Name", "Last Name"};
            JTable perstab = new JTable(data, columnNames);
         ((DefaultTableModel)perstab.getModel()).setColumnCount(Integer.parseInt(name.getText()));
            perstab.setGridColor(Color.yellow);
            perstab.setPreferredScrollableViewportSize(new Dimension(500,500));
            JScrollPane scrollPane = new JScrollPane(perstab);
            pane1.add(new JPanel(), BorderLayout.EAST);
            JButton btn = new JButton("What are the names?");
            btn.addActionListener(this);
            btn.putClientProperty("DATABASE", perstab);
            pane1.add(new JPanel().add(btn), BorderLayout.SOUTH);
            pane2.add(name);
            pane3.add(name1);
            pane.add(pane2);
            pane.add(pane3);
            pane1.add(pane, BorderLayout.WEST);
            pane4.add(scrollPane);
            pane1.add(pane4, BorderLayout.CENTER);
            setContentPane(pane1);
            show();
        public static void main(String[] args) {
            si1 frame = new si1();
            frame.setVisible(true);
        public void actionPerformed(ActionEvent e) {
            JTable table = (JTable)((JButton)e.getSource()).getClientProperty("DATABASE");
            TableModel model = table.getModel();
            int count = model.getRowCount();
            String[] firstnames = new String[count];
            String[] lastnames = new String[count];
            for (int i=0; i < count; i++) {
               firstnames[i] = (String)model.getValueAt(i, 0);
                System.out.println("first name at row " + i + ": " + firstnames);
    lastnames[i] = (String)model.getValueAt(i, 1);
    System.out.println("lastname name at row " + i + ": " + lastnames[i]);

  • How can I set up a back up hard drive on airport extreme

    I have an external harddrive that was plugged into my airport extreme. Apple seemed to eliminate my abilty to back up wirelessly in one of the updates. How can I set this up again? Does anyone know a way around this?
    Thanks,

    Ah, I remember those links now.  I was thinking something along the lines of:
    Never consider any computer a data storage device, rather a data creation ,sending, and manipulation device. Anyone who thinks data is safe on any computer, even copied upon multiple partitions is making a mistake.
    Never backup your data exclusively upon magnetic hard drives or flash storage, nor consider same since magnetic storage degrades over time even under ideal conditions.
    Store important data on multiple servers on multiple continents. 
    Burn important data onto multiple copies of archival DVDs and store same in cool dark fireproof safes, multiple places.
    Don’t burn data onto junk DVD’s purchased from consumer level electronics stores. These are not archival long life DVD’s nor reliable, nor trustworthy. Archival DVD blanks such as Taiyo Yuden, rated for 100+ years are what the pros use, these are made by JVC and are professional grade DVD blanks.
    Most people have never heard of archival DVDs, however their cost is only 30% more than junk-level DVD blanks which are only rated for 5-10 years. Also the reject rate on the inferior DVD is around 15%, the cost is almost identical between the WORST DVD blanks and the BEST DVD blanks.
    Most importantly know that 2 copies of your data is 1, and 1 is none, and 1000 copies stored in one place or building, is also the same as none due to possible fire.
    Always consider and expect your computer’s hard drive to completely crash anytime, at all times, and you should keep a cloned and updated hard drive handy at all times to return to immediate productivity and utterly avoid programs and parameter reinstallation.  Nothing is quicker than taking out a dead HD and tossing in a new updated cloned HD for getting back to 100% in under 20 mins!
    Decentralized Omnipresent Data (D.O.D.)
    (something I coined an age ago)
    Backing up data to:
    Multiple HD in multiple locations
    On multiple servers on multiple continents, private and public websites, anonymous data farms. (very easy actually)
    Burned onto archival optical and magnetic storage
    Have unclassified data possessed by multiple people in multiples places.
    When your data becomes both everywhere and nowhere, accessible to all, destructible by none, cannot be collected together or permanently retrieved under any circumstances, you have Decentralized Omnipresent Data (D.O.D.) protection rivaling that of large governments.

  • How can I set a default file for JFileChooser

    Hi. I am developing a p2p chat application and I have to unrelated questions.
    1. How can I set a default file name for JFileChooser, to save a completly new file?
    2. I have a JTextArea that I append recieved messages. But when a message is appended, the whole desktop screen refreshes. How can I prevent that?
    Hope I was clear. Thanks in advance.

    Thank you for the first answer, it solved my problem. Here is the code for 2nd question, I've trimmed it a lot, hope I didn't cut off any critical code
    public class ConversationWindow extends JFrame implements KeyListener,MessageArrivedListener,ActionListener,IOnlineUsrComp{
         private TextArea incomingArea;
         private Conversation conversation;
         private JTextField outgoingField;
         private JScrollPane incomingTextScroller;
         private String userName;
         private JButton inviteButton;
         private JButton sendFileButton;
         private JFileChooser fileChooser;
         private FontMetrics fontMetrics;
         private HashMap<String, String> onlineUserMap;
         public void MessageArrived(MessageArrivedEvent e) {
              showMessage(e.getArrivedMessage());
         public ConversationWindow(Conversation conversation)
              this.conversation=conversation;
              userName=User.getInstance().getUserName();
              sendFileButton=new JButton("Dosya G�nder");
              sendFileButton.addActionListener(this);
              inviteButton=new JButton("Davet et");
              inviteButton.addActionListener(this);
              incomingArea=new TextArea();
              incomingArea.setEditable(false);
              incomingArea.setFont(new Font("Verdana",Font.PLAIN,12));
              fontMetrics =incomingArea.getFontMetrics(incomingArea.getFont());
              incomingArea.setPreferredSize(new Dimension(300,300));
              outgoingField=new JTextField();
              outgoingField.addKeyListener(this);
              incomingTextScroller=new JScrollPane(incomingArea);          
              JPanel panel=new JPanel();
              panel.setLayout(new BoxLayout(panel,BoxLayout.PAGE_AXIS));
              panel.add(inviteButton);
              panel.add(sendFileButton);
              panel.add(incomingTextScroller);
              panel.add(outgoingField);
              add(panel);
              pack();
              setTitle("Ki&#351;iler:");
              setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              setLocationRelativeTo(null);
              addWindowListener(new CloseAdapter());
         //Sends the message to other end
         public void keyPressed(KeyEvent e) {
              if(e.getKeyCode()==KeyEvent.VK_ENTER && e.getSource()==outgoingField)
                   String message=outgoingField.getText();
                   if(message.equals("")) return;
                   showMessage(userName+": "+message);
                   conversation.sendMessages(userName+": "+message);
                   outgoingField.setText("");     
         //Displays the recieved message
         public void showMessage(String message)
              if(fontMetrics.stringWidth(message)>incomingArea.getWidth())
                   int mid=message.length()/2;
                   StringBuilder sbld=new StringBuilder(message);
                   for(;mid<message.length();mid++)
                        if(message.charAt(mid)==' ')
                             sbld.setCharAt(mid, '\n');
                             message=sbld.toString();
                             break;
              incomingArea.append("\n"+message);
    }

Maybe you are looking for