How to use clob object
I read the serval topic of clob, but I can't read clob in jsp also.
my code is:
<%@ page language="java" import="java.sql.*,java.util.* "%>
<%@ include file="conn.jsp"%>
<%@ page import="oracle.sql.*,oracle.jdbc.*" %>
<%
try {
Class.forName(URL);
Connection conn=DriverManager.getConnection(METHOD,USER,PWD);
Statement stmt=conn.createStatement();
String sql_str="select * from pub_01";
ResultSet rs = stmt.executeQuery(sql_str);
if (rs.next()) {
new_pos=DBMS_LOB.INSTR(rs.Content,CHR(10),pos);
Str=DBMS_LOB.SUBSTR(rs.Content,new_pos-pos, pos);
pos=new_pos+1;
CLOB clob=((OracleResultSet)rs).getCLOB(2);
String str=clob.getSubString(1,10);
/*if(PreviewObj != null){
oracle.sql.CLOB MyClob = (oracle.sql.CLOB)PreviewObj;
System.out.println(
MyClob.getSubString(1, (int)MyClob.length())) ;
// out.println(trans.hz_format(rs.getString("content"),1));
rs.close();
conn.close();
catch (SQLException e) {
out.print("SQL Exception occur. Error: ");
out.print(e.getMessage());
%>
but can't execute. error is:
SQL Exception occur. Error: ORA-12535: TNS: ????
Hi
I am sending u code of data table object
Fill the data table By Code
Data Table Object Represents data in matrix form..
Set oDataTable = oForm.DataSources.DataTables.Item (m_DataTableUid)
oDataTable.Clear
For ii = 0 To 5
oDataTable.Columns.Add("COL_" & ii, dt_SHORT_TEXT, 100)
ii
oDataTable.Rows.Add 2
For ii = 0 To oDataTable.Columns.Count - 1
For jj = 0 To oDataTable.Rows.Count - 1
oDataTable.SetValue ii, jj, "val_" & ii & "_" & jj
Next jj
Next ii
In this code We are using the data table object,
This is very simple code of data table object,
If U have any problem so plz send me question in sdn form ,
If u r agree so give me Rewards point.
Thanks & Regards
Pankaj
Similar Messages
-
How to use lock object? what we lock either total ztable or only record?
Hi
How to use lock object? what we lock either total ztable or only particular record?
Don't tell create lock object on se11 with E letter & acll it in program with eENQUEUE & DEQUEUE.
just tell me we will lock only particular record or total ztable?
specify with example.
Thanks.Hi
Go to SE11, in the option 'Lock object' enter the name of your lock,
begin with 'E', suppose 'EXXXX' And create. In tab 'Tables' fill the
table name where the record you want to lock exist and select the
lock mode. Lock mode can be shared and exclusive. If 'shared',
when you lock the record, other can also read data, but can not
modify. If 'exclusive', when you lock the record, other can neither
read nor modify the record. After save and activate, you will get two
function module.'ENQUEUE_EXXXX' to lock record,
'DEQUEUE_EXXXX' to release lock on one record.
When use this function module it only lock one record at a time. It
does not lock the table. -
How to use clob or blob data type in OWB
how to use clob or blob data type in OWB?
if OWB not surport these data type,how can i extract the large data type from data sourceThe same question was asked just two days ago No Data Found: ORA-22992
Nikolai Rochnik -
Hi have been trying to get my head around how to use swf object, I know very little javascript and so am having difficulty in modifying the code to suit my needs. This is my page which I have used dreamweaver cs3 and have used insert>media>flash and it is working well but does not validate. I would really appreciate if somebody could write the exact html code I need to convert this to swf object.
http://www.kimberleywebdesign.com.au/Links.htmlYou should be able to just declare a variable outside of the onComplete function and assign it the loaded object when the file loads...
var loadedSWF:MovieClip;
function loadComplete(e:Event):void {
removeChild(old_mc);
addChild( DisplayObject(LoaderInfo(e.target).content) );
loadedSWF = MovieClip(e.currentTarget.content);
function doStuffToSWF(){
loadedSWF.something.... -
How to use Business Object like Vendor or PurchasingInfo
Hi,
How to use Business Object ( like Vendor or PurchasingInfo ) from my Object?
For example:
CLASS myEntity DEFINITION.
PUBLIC SECTION.
METHODS: getVendor EXPORTING pVendor TYPE Vendor.
PRIVATE SECTION.
DATA: aVendor TYPE REF TO Vendor.
ENDCLASS.
CLASS myEntity IMPLEMENTATION.
METHOD getVendor
pVendor = aVendor .
ENDMETHOD.
ENDCLASSHi,
I am giving u a demo Program for ur doubt.
REPORT demo_class_counter .
CLASS counter DEFINITION.
PUBLIC SECTION.
METHODS: set IMPORTING value(set_value) TYPE i,
increment,
get EXPORTING value(get_value) TYPE i.
PRIVATE SECTION.
DATA count TYPE i.
ENDCLASS.
CLASS counter IMPLEMENTATION.
METHOD set.
count = set_value.
ENDMETHOD.
METHOD increment.
ADD 1 TO count.
ENDMETHOD.
METHOD get.
get_value = count.
ENDMETHOD.
ENDCLASS.
DATA number TYPE i VALUE 5.
DATA cnt TYPE REF TO counter.
START-OF-SELECTION.
CREATE OBJECT cnt.
CALL METHOD cnt->set EXPORTING set_value = number.
DO 3 TIMES.
CALL METHOD cnt->increment.
ENDDO.
CALL METHOD cnt->get IMPORTING get_value = number.
WRITE number.
For more demo programs type 'abapdocu' in the command field
U will be getting some demo programs.
There select the abap objects.
Regards,
Jagadish -
How to use CLOB in OBIEE 11g (11115) Reporting
Hello All,
I have a CLOB object. I need to use that in the report.
It just has text only. I defied it in RPD as LONGVARCHAR or OBJECT but it did not work out.
I tried using evaluate with TO_CLOB but i am getting below error any time
inconsistent datatypes: expected - got CLOB at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed.
Please give me a clue how to use a CLOB column in report.
I see a rittmen blog which is using as LOOKUP but i dont have that option either.
Please let me know what wrong i am doing.
Thanks in Advance.
KNDBMS_LOB.substr(<table.columnname>,<length of characters>,<start position>)
Check this
http://shivabizint.wordpress.com/2010/04/20/varchar2-greater-than-4000-in-obiee/
Mark if helps.
Thanks, -
How to use a object(in MXML - in FLEX 4) in multiple way.
This is my object in MXML:
<mx1:Canvas id="menuElement" visible="true" rotationY="-15">
<mx1:Canvas mask="{imageMask}">
<mx1:Image id="menuImage" visible="true"/>
<s:BorderContainer id="menuBackground" width="70" visible="true" borderVisible="false">
<s:Label id="menuDescription" fontSize="30" fontWeight="bold" rotation="-90" />
<s:backgroundFill>
<s:LinearGradient rotation="90">
<s:entries>
<s:GradientEntry id="backgroundColor" color="0x000010" alpha="0.6"/>
</s:entries>
</s:LinearGradient>
</s:backgroundFill>
</s:BorderContainer>
</mx1:Canvas>
<mx1:Canvas id="imageMask" backgroundColor="#FF0000"/>
</mx1:Canvas>
I use this object (one time) with configuration in actionscript (positions, source of picture etc.) and I receive something like on a picture below:
Now, I need to create 4 elements like below. I don't wan't to copy 4 times this block of program. Anybody have idea how can I make it and how can
I recall of each element from actionscript?
Regardsif you run nw04s SP8, it's a limitation. you can create your own simple types and use them in your entities. but the custom data structures you create in the dictionary don't show in list of available structures when you want to create a new complex attribute
-
How to use Logger object in Lookout 5.0
I am now trying to log data using Logger object. I use Switch1 for activating LogContinuously mode and Switch2 for breaking logging process. If I turn off Switch1, the logging process stops, its ok. My problem is if Switch1 is still on and I turn off Switch2, the logging process is still running. I seems different from what I have read from Help file. Anyone has the solution for it?Please give me an advice! Thanks a lot. Its better if someone post an example about using Logger object here for reference.
Regards,I think the behaviour you described is correct. If you turn on switch2, the logging process will stop, even when switch1 is on. If you turn off switch2, the process will be running.
Here is an example of logger object.
http://zone.ni.com/devzone/cda/epd/p/id/3816
you can change the "log break" button into a switch, which can better show you how it works.
Ryan Shi
National Instruments -
How to use Generic Object Services(GOS) for each table control record.
Dear Expert,
I am using generic object services for document attachment but i am facing a problem while attaching document to a table control row. my requirement is to attach separate document for each and every row of table control but i am unable to attach document row wise of the table control.for each row GOS should display corresponding attached document not all the attached document.
Thanks in Advanced
Bhuwan Tiwari
Edited by: BHUWAN TIWARI on Feb 8, 2011 4:16 PM
Edited by: BHUWAN TIWARI on Feb 8, 2011 4:16 PMYou haven't explained what object and object key you're using, nor have you provided any indication of how you implemented the GOS attachment functionality. You need to provide more information to resolve an issue like this.
-
How to use session object in jsp
hi all
marry christmas
can anyone plz tell me how to use session obect in jsp
rachna
Message was edited by:
rachna_arora82hi rachna,
JSP has a default(implicit) session object...... use the getSession(true) method on the session object and then going u can either get or set attributes depending on the requirement
That was in general and now with the issue u have got..... what u can do is that the u can create session for every user who logs in and when he/she tries to login again then u can probably check for the existing session object in the JSP and perform the logic as required..... any clarifications plzzzzzzz let me know
Thanks n Regards
Naveen M
Message was edited by:
Novice_inJAVA
Message was edited by:
Novice_inJAVA -
How to use std object RFBIBL00
Dear All,
For uploading open item of vendor and customer std lsmw RFBIBL00 is available.
I know how to do recording in lsmw for new object but any one can help how to use std lsmw available in SAP. For eg.RFBIBL00
Regards,
BhadreshYou'll find that the RFBIBL00 program, suprisingly, has extensive documentation attached - or you could try
http://help.sap.com/saphelp_45b/helpdata/en/35/a47e63763e0392e10000009b38f9b7/content.htm
or the print documentation at
help.sap.com/printdocu/core/Print46c/en/data/pdf/CAGTFADM/CAGTFADM-FI.pdf
cheers
Jonathan -
How to use ConnectionPoolDataSource object?
i use embedded OC4J server,
build in data-source.xml file the information about DataSource object
and try to organized ConnectionPoolDataSource object,
but a java.lang.ClassCastException rises.
The problem is, i need to use a pooled connection datasource,
to do this i get the information about datasource object
throw lookup in JNDI tree the "pooled-location" name,
so the type of my datasource object became com.evermind.sql.OrionPooledDataSource.
but in my jsp code i can use only DataSource object,but not ConnectionPoolDataSource object because of java.lang.ClassCastException.
Hlp me please to understand how to use ConnectionPoolDataSource.
thank youPlease post this question on the application server forum at:
http://forums.oracle.com/forums/forum.jsp?id=486963
Thanks,
JR -
How to use an object's paint method
I have created a class imagePanel which extends a jPanel to display an image. When I create a new imagePanel object I pass it an image argument which is used to paint my image on the jPanel, so far so good. I don't wish to have to continuously create new ImamePanels to display new images so I thought I could make a set_Image method that would set a new image in an exising imagePanel object. This is where I run into problems how to use the existing object paint method to replace the image. I tried this without success:
public Image setMyImage (Image myImage)
imageX = myImage; // imageX is the image that is painted by the imagePanel object's paint method
paint(g);
Something must be wrong on how I access the paint method. Thanks for any help.
JackYahoooo, got it. This was the code I needed and thanks for your help:
public void setImage (Image myImage)
imageX = myImage;
repaint(300);
} -
When I use CLOB like
CREATE OR REPLACE PROCEDURE Example_1b(retData out clob) IS
src_lob cLOB;
BEGIN
SELECT b_lob INTO src_lob
FROM lob_table
DBMS_LOB.APPEND(dest_lob, src_lob);
COMMIT;
EXCEPTION
WHEN some_exception
THEN handle_exception;
END;
There are thousand records in lob_table.When I run the procedure,It's very very slowwer !
How to improve it?I assume there are some lines missing here.
>
1 CREATE OR REPLACE PROCEDURE Example_1b(retData out clob) IS
2 src_lob cLOB;
3 BEGIN
4 SELECT b_lob INTO src_lob
5 FROM lob_table
6 DBMS_LOB.APPEND(dest_lob, src_lob);
7 COMMIT;
8 EXCEPTION
9 WHEN some_exception
10 THEN handle_exception;
11 END;
[unquote]
Is there a where clause missing after line 5 or is it your intent to select your whole clob table? If it is, then you should use a curser like so:
>
1 CREATE OR REPLACE PROCEDURE Example_1b(retData out clob) IS
2 CURSOR c1 is SELECT b_lob
3 FROM lob_table;
4
5 src_lob cLOB;
6 BEGIN
7 for src_lob in c1 loop
6 DBMS_LOB.APPEND(dest_lob, src_lob);
7 end loop;
8 EXCEPTION
9 WHEN some_exception
10 THEN handle_exception;
11 END;
[unquote]
Please note, I removed the commit at line 7 as it was unecessary in your procedure (you showed no inserts, updates, or deletes). -
Hello,
We have never used a BOR object. We want use FIPP object. How can we do it? How can we call the Post method?
Thanks a lot.
Edited by: LM on Sep 8, 2008 11:07 AMHi
Refer to the links,
Probel with POST method of FIPP
FIPP Workflow
Regards
Sumit Agarwal
Maybe you are looking for
-
I have a problem with Flash converting. I have a one swf file that will not open in Adobe Flash. The problem , however, is the following . I want to edit swf file and to access the fla file , I use Sothink decompiler where I convert the same Swf file
-
My hard drive died, it was replaced, now I don't have lion - can I get it back?
I got my Macbook Pro LAST July (2011), and because of the timeframe I got it in, I was able to enter a code and get LION for FREE! I loved the hand gestures, but my hard drive died, and I got it completely replaced.... it seems like it went back to s
-
Viewing 2 or more monitorsat same time
Ihavea MAcbook Pro and a 20inch stuido hd display, i have another 22 inch monitor, an acer, i would like to be able to use all three monitors at one time. How do i connect and configure the 3 monitors. AT presnt the 20 inch and my MACbook PRo are run
-
My AirPort Express now drops out almost every night.
The green light remains on as though all is fine, but it completely loses wi-fi signal. It goes from a full bar perfect wi-fi signal (which it's had for over a year) to zero bars of wi-fi instantly - and then it remains off. This has been confirmed w
-
Hi, I'd like to make a documentator of RFC, with a special format for my company. I'm using the RFCs: RFC_FUNCTION_SEARCH, RFC_GET_FUNCTION_INTERFACE. But I have to get 2 things important for the project: - The code of a RFC - The information of (Cre