Big data stores data through stored procedures (clob, blob)

Source: Internet
Author: User
Today, we finally solved the problem of passing and Saving big data types through stored procedures. I have found a lot of information on the Internet, but I cannot try it the most. finally, I wrote a function to execute the stored procedure according to Microsoft's msdn example.
///
/// Execute the stored procedure with clob, blob, and nclob large object parameter types
///

///Stored Procedure name
///Stored Procedure Parameters
///Location of large objects in Parameters
///Value of a large object
///Specific types of large objects
Public void runprocedure (string storedprocname, idataparameter [] parameters, int [] index, byte [] [] tempbuff, oracletype [] dbtype)
{
Connection. open ();
Oracletransaction Tx = connection. begintransaction ();
Oraclecommand cmd = connection. createcommand ();
Cmd. Transaction = TX;
String type = "declare ";
For (INT I = 0; I

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.