How to read ,compare and search unicode in we8mswin1252 ?
HI,
I having face a trouble while reading and search Unicode for my project module and its totally dependent on Unicode data for displaying and retrieve operation in oracle 11g sql develop.
code is as following in ORACLE 11G SQL DEVELOPER
FLOW IS ....
1. Procedure
create or replace PROCEDURE VR_CRONICA_CHECKDUPLICATE
iv_UFirstName in nvarchar2 DEFAULT NULL, --Added for Unicode 31-DEc-2014 Jimmy
iv_UMiddleName in nvarchar2 DEFAULT NULL, --Added for Unicode 31-DEc-2014 Jimmy
iv_ULastName in nvarchar2 DEFAULT NULL, --Added for Unicode 31-DEc-2014 Jimmy
v_StatusID OUT NUMBER,
v_Per_ID OUT NUMBER,
v_Version OUT NUMBER,
pResult out TYPES.cursortype
AS
cur_hdl int;
--cur_hdl_TotalRecs int;
strSQL VARCHAR2(32767);
strSQLWhere VARCHAR2(4000);
v_UFirstName nvarchar2(50) := iv_UFirstName;
p_UMiddleName nvarchar2(50) := iv_UMiddleName;
p_ULastName nvarchar2(50) := iv_ULastName;
p_UFirstName nvarchar2(255) :=v_UFirstName;
iv_Per_ID NUMBER(10,0);
iv_Version NUMBER(10,0);
BEGIN
DBMS_OUTPUT.PUT('VR_PersonRecord_CheckDuplicate' );
begin
cur_hdl := dbms_sql.open_cursor;
--cur_hdl_TotalRecs:=dbms_sql.open_cursor;
strSQL := ' ';
strSQL := strSQL || '
SELECT
CAST(PER_ID AS number(8,0)) AS PER_ID,
CAST(Version AS number(8,0)) AS Version,
INTO
iv_Per_ID,
iv_Version
FROM
VitalRecords_Search_CurrentDoc WHERE' ;
IF p_ULastName is not null THEN
BEGIN
strSQLWhere := ' trim(UPPER (U_LASTNAME)) = TRIM(UPPER(:p_ULastName ))';
END;
END IF;
IF p_UFirstName is not null THEN
strSQLWhere := strSQLWhere || '
AND TRIM(UPPER (U_FIRSTNAME)) = TRIM(UPPER(:p_UFirstName|))';
END if;
IF p_UMiddleName IS NOT NULL THEN
BEGIN
strSQLWhere := strSQLWhere || '
AND TRIM(UPPER (U_MIDDLENAME)) = TRIM(UPPER(:p_UMiddleName))';
end ;
end if ;
v_Per_ID := iv_Per_ID;
exception
when no_data_found then
begin
v_Per_ID:=0;
v_Version:=0;
v_StatusID := 0 ;
end;
end;
--IF pResult%ISOPEN THEN
--CLOSE pResult;
--END IF ;
open pResult for
select PER_ID ,
Version ,
U_FIRSTNAME ,
U_MIDDLENAME ,
U_LASTNAME
from table(readDWSeachPersons1(cur_hdl));
END;
.Function
create or replace FUNCTION READDWSEACHPERSONS1
(cur_hdl int)
RETURN
DWSeachPersonsTypeTableType1
PIPELINED IS
PER_ID NUMBER(10);
Version NUMBER(10);
U_FIRSTNAME NVARCHAR2(500) ;
U_MIDDLENAME NVARCHAR2(500) ;
U_LASTNAME NVARCHAR2(500) ;
BEGIN
dbms_sql.define_column(cur_hdl, 1, PER_ID);
dbms_sql.define_column(cur_hdl, 2, Version);
dbms_sql.define_column(cur_hdl, 3, U_FIRSTNAME ,500);
dbms_sql.define_column(cur_hdl, 4, U_MIDDLENAME ,500);
dbms_sql.define_column(cur_hdl, 5, U_LASTNAME ,500);
LOOP
-- fetch a row
IF dbms_sql.fetch_rows(cur_hdl) > 0 then
-- fetch columns from the row
dbms_sql.column_value(cur_hdl, 1, PER_ID);
dbms_sql.column_value(cur_hdl, 2, Version);
dbms_sql.column_value(cur_hdl, 3, U_FIRSTNAME );
dbms_sql.column_value(cur_hdl, 4, U_MIDDLENAME );
dbms_sql.column_value(cur_hdl, 5, U_LASTNAME );
PIPE ROW (DWSeachPersonsType1(PER_ID,Version,U_FIRSTNAME,U_MIDDLENAME,U_LASTNAME));
ELSE
EXIT;
END IF;
END LOOP;
RETURN;
END;
3. Type
create or replace TYPE DWSeachPersonsType1 AS OBJECT
PER_ID NUMBER(10),
Version NUMBER(10),
U_FIRSTNAME NVARCHAR2(500) ,
U_MIDDLENAME NVARCHAR2(500) ,
U_LASTNAME NVARCHAR2(500)
4. TYPE
create or replace TYPE DWSeachPersonsTypeTableType1 AS TABLE OF DWSeachPersonsType1;
error is coming like :
ORA-01003: no statement parsed ORA-06512: at "SYS.DBMS_SQL", line 1450 ORA-06512: at "A0_SJFRM_9AUG_JAYESHB.READDWSEACHPERSONS1", line 16
so,friends let me sugges solution regarding asap..its very urgent ..
Hi
because you have such a hurry, you have done bad design i think Why separating responsibilities of executing SQL in table function that way?
You cannot have any advantage from separation because it is not general code. SQL is created here and there is function that defines columns to that SQL.
Developer has no clue what it is executing until searching code for that cursor parameter. That SQL concatenation sucks also.
That code is not easy to maintain or test or comprehend quickly or at all
At least to me that is a big mess.
Suggest that you do that simplest logic as possible and add that missing parse there.
Similar Messages
-
How to read the and Write the PDF file give me the solution
Hi all,
How to read the and Write the PDF file give me the solution
My coding is
import java.io.File;
import com.asprise.util.pdf.PDFImageWriter;
import com.asprise.util.pdf.PDFReader;
import java.io.*;
import java.io.FileOutputStream;
public class example {
// public example() {
public static void main(String a[])
try
PDFReader reader = new PDFReader(new File("C:\\AsprisePDF-DevGuide.pdf"));
reader.open(); // open the file.
int pages = reader.getNumberOfPages();
for(int i=0; i < pages; i++) {
String text = reader.extractTextFromPage(i);
System.out.println("Page " + i + ": " + text);
// perform other operations on pages.
PDFImageWriter writer = new PDFImageWriter(new FileOutputStream("c:\\new11.pdf"));
writer.open();
writer.addImage("C:\\sam.doc");
writer.close();
System.out.println("DONE.");
reader.close();
catch(Exception e){System.out.println("error:"+e);
e.printStackTrace();
I get the pdf content then it returns the string value but ther is no option to write the string to PDF, and we only add a image file to PDF,but i want to know how to wrote the string value to PDF file,
Please give response immtly
i am waiting for your reply.
thanks,
Suresh.GI have some question flow
How library to use this code.
I try runing but have not libary.
Please send me it'library
Thank you very much! -
How to read each and every word from a string.
Hi all,
I have a string which is having many label numbers. if the string is lv_str, its value is like, 11111111111111##22222222222222##3333333333333.
I need to move the values alone into internal table. each value should be updated as a single row into one internal table. How to read each and every word of the string and move to an internal table.
the internal table should be like this.
11111111111111
22222222222222
3333333333333
Can any one give me a suggestion in this regard.
POINTS PROMISED.
Regards,
BuvanaHi,
If you know the format and length of the data
Use split at '#' so that you will get the individual values.
Thean append it to internal table.
Reward iof helpful. -
How to read, write and save a file?
Hello everybody,
I have a question about reading , writing and save something into a file (etc text file)
For example: I want to create a file of football in which there are many key words as: "football", "touch down", "quarterback", "ball", "linebacker", "coach", "player"...
Now i want to open to read, write one more word "head" ( synonym with "coach") and store it for using next time. How could i do that?
Could anybody help me about that?
Thank you very much in advance.
still_learntake a look in the API about FileInputStream and FileOutputStream
-
How to read accdb and mdb files using JDBC or File Adapter
Hi,
How to read and extract the .accdb and .mdb files from FTP server and parsing into xml by using FTP or JDBC Adapter in SAP PI7.11 With linx Os.
Regards
UpendraHi,
As per SAP note:1681420 i have to install the below driver from Microsoft
Our SAP PI installed under Unxi OS ,how to install the driver (.exe file) .
Driver name :AccessDatabaseEngine_x64.exe
Url:Download Microsoft Access Database Engine 2010 Redistributable from Official Microsoft Download Center
1681420 - PI : Where to locate the JDBC Driver for Microsoft Access
Regards
Upendra -
How to read from and write into the same file from multiple threads?
I need to read from and write into a same file multiple threads.
How can we do that without any data contamination.
Can u please provide coding for this type of task.
Thanks in advance.Assuming you are using RandomAccessFile, you can use the locking functionality in the Java NIO library to lock sections of a file that you are reading/writing from each thread (or process).
If you can't use NIO, and all your threads are in the same application, you can create your own in-process locking mechanism that each thread uses prior to accessing the file. That would take some development, and the OS already has the capability, so using NIO is the best way to go if you can use JDK 1.4 or higher.
- K
I need to read from and write into a same file
multiple threads.
How can we do that without any data contamination.
Can u please provide coding for this type of task.
Thanks in advance. -
HOW to read CLOB and create XML file on UNIX/LINUX
Hi,
Could you please let me know, how to read CLOB using ADODB. I have column CLOB type on Oracle 9.2, with content of whole XML type. I am unable to retreive more than 4k. I use adLongVarChar. So I have written Oracle stored procedure to read the clob and create XML file using DBMS_LOB package and UTL_FILE package, still no joy.
Please help.
example of my XML file is:
<EXAMPLE><HEADER><VERSION>1.0</VERSION><TEMPLATE>XXXX</TEMPLATE><TAG1>CON</TAG1></HEADER><BODY><TAG2>X1</TAG2><OFFICE>assad</OFFICE><CREATE_DATE>27/02/2006 10:55</CREATE_DATE><SOURCE></SOURCE></BODY><FIXEDTABLE1><TABLEROW1COL1>asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd</TABLEROW1COL1><TABLEROW1COL2></TABLEROW1COL2><TABLEROW2COL1></TABLEROW2COL1><TABLEROW2COL2></TABLEROW2COL2><TABLEROW3COL1></TABLEROW3COL1><TABLEROW3COL2></TABLEROW3COL2><TABLEROW4COL1>asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd asdadddddddddddddddddddddddddddddddddddddddddddddddddd</TABLEROW4COL1><TABLEROW4COL2></TABLEROW4COL2><TABLEROW5COL1></TABLEROW5COL1><TABLEROW5COL2></TABLEROW5COL2></FIXEDTABLE1><CHECKBOX><CHECKBOX1>False</CHECKBOX1><CHECKBOX2>False</CHECKBOX2><CHECKBOX3>False</CHECKBOX3><CHECKBOX4>False</CHECKBOX4><CHECKBOX5>False</CHECKBOX5><CHECKBOX6>False</CHECKBOX6><CHECKBOX7>False</CHECKBOX7><CHECKBOX8>False</CHECKBOX8><CHECKBOX9>False</CHECKBOX9></CHECKBOX></EXAMPLE>
My STored Procedure:
ftypFileHandle := UTL_FILE.fopen ('XML_DIR_FILE', vFileName, 'w', 32000);
lMarker := 'Selecting XML row';
println(lMarker, 2);
SELECT XML_FILE
INTO clobBuffer
FROM XML_TABLE
WHERE x=1;
lMarker := 'Get length of the clob';
iClobLength := nvl(DBMS_LOB.getlength(clobBuffer), 0);
WHILE (l_offset <= iClobLength) LOOP
DBMS_LOB.READ (
lob_loc=> clobBuffer,
amount=> l_amt,
offset=> l_offset,
buffer=> vOutputBuffer
UTL_FILE.put (ftypFileHandle, vOutputBuffer);
UTL_FILE.fflush (ftypFileHandle);
UTL_FILE.new_line (ftypFileHandle);
l_offset := l_offset + l_amt;
END LOOP;
lMarker := 'Close file';
println(lMarker, 2);
UTL_FILE.fclose (ftypFileHandle);
ThanksHello myself,
nobody has answered my question, so now I answer myself!!
The wrong part is to read the file with "open dataset" and to create the inputstream with
p_istream = p_streamfactory->create_istream_itable(
table = g_xml_table
size = g_xml_size ).
Better ist to create the inputstream with
p_istream = p_streamfactory->create_istream_uri(
.......................PUBLIC_ID = ''
.......................SYSTEM_ID = '
applserver\I$\TEMP\Datei.XML' ).
In this way no space is needed for the file.
Best regards,
Thomas
Message was edited by:
Thomas13 Scheuermann -
How to read x and y position of curser
I have a graph,
Using 2 curser I am fixing two points on a graph
I want to calculate slope using these two points.
So ,my problem is how to read XY co-ordinates of point, pointed by curserYou use property node of the graph. Right click the graph indicator and select Create>Property Node. For the property node, you need the properties Active Cursor, Cursor Postion>Cursor X, and Cursor Postion.Cursor Y. You will need to write to Active Cursor and Read from the others. For the first cursor, write a 0 to Active cursor. Repeat the properties for the second cursor and write a 1 to the Active cursor property. The attached picture shows exactly what I mean.
Attachments:
cursor_position.jpg 18 KB -
How to read tables and fields transaction,how to find table from a strucre
hi all,
i am having problem in reading tables and fields for developing a customised report. can anybady help me how to extract tabele and fields from a transaction code and how to map table from a structure.
It will me much help full, if u had any documentation. u should be appreciated.
Thanking u
kiran
Message was edited by:
kiranHi Kiran,
You can make use of the tables or Views available.
Reward If Useful.
Regards,
Chitra -
How to read FLAC and Ogg Vorbis
Hi,
actually it's not possible to read my flac files from iTunes, so I can't directly transfer these files to my Ipod. I'd wish my ipod classic to read natively flac format but I can't even recode to alac directly with iTunes.
Is there any other app to encode as alac which can read flac and transfer files to my ipod?jonatan72 wrote:
Hi,
actually it's not possible to read my flac files from iTunes, so I can't directly transfer these files to my Ipod.
You are correct, iTunes cannot play or convert FLAC. There are plugins (Xiph) that allow iTunes to play FLAC, but they still will not transfer to the iPod.
Is there any other app to encode as alac which can read flac
For converting FLAC to ALAC, you can use dbPoweramp. If you wish to convert FLAC to AAC or MP3, there are several tools that can do so, such as Switch.
Add the converted files to your iTunes library, and then sync the iPod normally. -
How can I compare and delete duplicate files?
I have nearly two terabytes of images stored in my image archives and I'm sure that there are many duplicates. Is there an easy way to compare and delete duplicate files to save space on my drives?
Thanks,
TomHi Tom,
The's no "easy" way, even if they're the same size, name, etc., they can be different qualities or even contents, so they really have to be compaed byte by byte, but...
https://itunes.apple.com/us/app/photosweeper-lite-get-rid/id506150103?mt=12 -
How to read tables and fields from a transaction screen.
hi all,
i am having problem in reading fields and tables from a screen, could any one help me in mapping tables from a structure as well.
it will be very help full if u had any documentation.
Thanking u
kiranHi,
In classical debug mode from CALL STACK tab try to find out the structures holding the screen values .
Capture the values from transaction using FIELD SYMBOLS .
See the below code.
DATA : l_prog_val(50) TYPE c VALUE '(SAPLCTMS)WI[]'.
**To get the (SAPLCTMS)WI value in this program from call stack.
FIELD-SYMBOLS: <wi> TYPE ANY.
*Assign the structure (SAPLCTMS)WI to field symbol
ASSIGN (l_prog_val) TO <wi>.
IF sy-subrc NE 0.
EXIT.
*Assign the structure (SAPLCTMS)WI to internal table
ELSE.
it_wi[] = <wi>.
ENDIF.
Sastry. -
How to read out and modify text parts in a pdf-document?
Hello,
My problem is the following: I want to read out text passages of an existing pdf-file, compare them with files in an odbc-database and write down the results of that comparison in the same pdf-file. The term is: Read out a number in the file, search the database for the matching user-name, generate a field in the pdf and write down the search results in that.
i have read that this could be possible with acrobat...my version is an acrobat 9 pro extended...
could someone please tell me how to do that?
big thanksAs the definition of “color” vs. “black and white” differ by context – there aren’t any that I am aware of.
You can, however, use the Preflight feature built into Acrobat to identify whatever you wish… -
Maintenance view: how to read EXTRACT and TOTAL table
Hi, All,
I created a maintenance view, as stated in the documentation, there are 2 internal tables EXTRACT and TOTAL available in running environment. Now I want to read a record from the internal table by using "READ TABLE...."
In my example: the table strucutre has A, B, C 3 fields.
So I tried to use "READ TABLE EXTRACT with key A=' xyz' assigning <fs>", in this case, the syntax check shows error saying that the specified type has no structure and no component can be called.
So how can I search a row in the table EXTRACT and TOTAL by giving a field value? Is there any other way to get data from the table?
Thank you!Hi Yongying,
I know this is an old post, but, may be this is still helpful for you or for others with the same problem.
Just add the option "CASTING" at the end of your READ statement:
"READ TABLE EXTRACT with key A=' xyz' assigning must be full typed or at least, be of the same type of the Z table from which is generated the itab EXTRACT.
Regards,
José Gabriel. -
How to store XML and search within tags
My question
===========
exactly what steps do you need follow to take an XML doc, store
it, and query based on a tag value.
The 8i Intermedia text option Reference refers to
XLM_SECTION_GROUP feature. However, no examples are given. There
is no user guide.
I searched Oracle's website and found one reference to
XML_SECTION_GROUP. The example given is a single row insert into
a CLOB column with a single pair of tags.
This whitepaper gives an example of an XML doc, and a query on
it:
XML Support in Oracle8i and Beyond
November 9, 1998
It doesn't list the steps in between storing the doc and quering
it. This is crucial to the whole thing: does XML_SECTION_GROUP
allow all nested tags below the top level to be sectioned and
indexed implicitly? Or do you need to tell Oracle about all the
tags you are interested in, in which case what value is added by
the XLM_SECTION_GROUP?
Does Oracle have some better examples on this?
Below is text cut and pasted from the whitepaper.
-----------x---------
Figure 5: InsuranceClaim Mixes Structured Data and Text
<?xml version="1.0"?>
<InsuranceClaim>
<ClaimID>12345</ClaimID>
<LossCategory>7</LossCategory>
<Settlements>
<Payment>
<Payee>Borden Real Estate</Payee>
<Date>12-OCT-1998</Date>
<Amount>200000</Amount>
<Approver>JCOX</Approver>
</Payment>
</Settlements>
<DamageReport>
A massive <Cause>Fire</Cause> ravaged the building
and
<Casualties>12</Casualties> people were killed.
Early
FBI reports indicate that <Motive>arson</Motive> is
suspected.
</DamageReport>
</InsuranceClaim>
Once instances of iFS file types (including XML-based ones) are
stored in the database, their
content can be searched using standard SQL queries, and these
files can be organized, browsed,
and versioned using familiar tools like the Windows Explorer.
So an insurance agent sees a
directory of InsuranceClaim files sheFs recently worked on in
the field, while an
InsuranceClaim-processing application developer can work with
the information in the
InsuranceClaim in any way he needs to.
XML-Enabled "Section Searches" in ConText
Any XML documents or document fragments saved into "text blobs"
in the database can be
enabled for indexing by Oracle8i InterMediaFs ConText
text-search engine. ConText has been
enhanced for Oracle8i to allow developers to pinpoint their
searches to a particular section of a
document, where sections are implicitly defined by the XML tags
in the document (fragment).
Since ConText is seamlessly integrated into the database and
the SQL language, developers can
use SQL to perform queries that involve both structured data
and indexed document fragments.
For example, Figure 6 shows the SQL statement you would write
to search one million
Insurance Claims in your database to answer the question, "How
much money has Jim Cox
approved to date in settlement payments for arson-related fire
claims? "
Figure 6: Searching on a Column & Text in XML
Sections
SELECT SUM(Amount)
FROM Claim_Header ch,
Claim_Settlements cs,
Claim_Settlement_Payments csp
WHERE csp.Approver = 'JCOX'
AND CONTAINS (DamageReport, 'Arson WITHIN Motive') >
0
AND CONTAINS (DamageReport, 'Fire WITHIN Cause' ) >
0
AND . . . /* Join Clauses */
nullGeoff Ingram (guest) wrote:
: My question
: ===========
: exactly what steps do you need follow to take an XML doc,
store
: it, and query based on a tag value.
: The 8i Intermedia text option Reference refers to
: XLM_SECTION_GROUP feature. However, no examples are given.
There
: is no user guide.
: I searched Oracle's website and found one reference to
: XML_SECTION_GROUP. The example given is a single row insert
into
: a CLOB column with a single pair of tags.
: This whitepaper gives an example of an XML doc, and a query on
: it:
: XML Support in Oracle8i and Beyond
: November 9, 1998
: It doesn't list the steps in between storing the doc and
quering
: it. This is crucial to the whole thing: does XML_SECTION_GROUP
: allow all nested tags below the top level to be sectioned and
: indexed implicitly? Or do you need to tell Oracle about all
the
: tags you are interested in, in which case what value is added
by
: the XLM_SECTION_GROUP?
: Does Oracle have some better examples on this?
: Below is text cut and pasted from the whitepaper.
: -----------x---------
: Figure 5: InsuranceClaim Mixes Structured Data and Text
: <?xml version="1.0"?>
: <InsuranceClaim>
: <ClaimID>12345</ClaimID>
: <LossCategory>7</LossCategory>
: <Settlements>
: <Payment>
: <Payee>Borden Real Estate</Payee>
: <Date>12-OCT-1998</Date>
: <Amount>200000</Amount>
: <Approver>JCOX</Approver>
: </Payment>
: </Settlements>
: <DamageReport>
: A massive <Cause>Fire</Cause> ravaged the building
: and
: <Casualties>12</Casualties> people were killed.
: Early
: FBI reports indicate that <Motive>arson</Motive> is
: suspected.
: </DamageReport>
: </InsuranceClaim>
: Once instances of iFS file types (including XML-based ones)
are
: stored in the database, their
: content can be searched using standard SQL queries, and
these
: files can be organized, browsed,
: and versioned using familiar tools like the Windows
Explorer.
: So an insurance agent sees a
: directory of InsuranceClaim files sheFs recently worked on
in
: the field, while an
: InsuranceClaim-processing application developer can work
with
: the information in the
: InsuranceClaim in any way he needs to.
: XML-Enabled "Section Searches" in ConText
: Any XML documents or document fragments saved into "text
blobs"
: in the database can be
: enabled for indexing by Oracle8i InterMediaFs ConText
: text-search engine. ConText has been
: enhanced for Oracle8i to allow developers to pinpoint their
: searches to a particular section of a
: document, where sections are implicitly defined by the XML
tags
: in the document (fragment).
: Since ConText is seamlessly integrated into the database and
: the SQL language, developers can
: use SQL to perform queries that involve both structured data
: and indexed document fragments.
: For example, Figure 6 shows the SQL statement you would
write
: to search one million
: Insurance Claims in your database to answer the
question, "How
: much money has Jim Cox
: approved to date in settlement payments for arson-related
fire
: claims? "
: Figure 6: Searching on a Column & Text in XML
: Sections
: SELECT SUM(Amount)
: FROM Claim_Header ch,
: Claim_Settlements cs,
: Claim_Settlement_Payments csp
: WHERE csp.Approver = 'JCOX'
: AND CONTAINS (DamageReport, 'Arson WITHIN Motive') >
: 0
: AND CONTAINS (DamageReport, 'Fire WITHIN Cause' ) >
: 0
: AND . . . /* Join Clauses */
Currently you cannot break apart an arbitrary XML doc and store
it into the database without using XSLT to create DDL to insert
it. You can create a schema and have XML be read and written to
it. Check out the XML SQL Utility available here for download.
As for the section searching, in 8.1.5 you can only get section
searching not hierarchical searches. interMedia in this version
doesn't understand the XML structure. This will come in 8.1.6.
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
null
Maybe you are looking for
-
Best way to take a form and.....
Looking for suggestion on the best way to take a form after submission to the DB and allow the users to save it as a PDF? So enduser fills out the form online and then clicks the submit...it sends the info to a db then outputs the form in a pdf form
-
Hi friends I was wondering if it's possible to send XML data when a form button is pressed. Suppose we have in the client machine a browser displaying a HTML Form with one text inputtype and one button to send this information to the JSP Server. If t
-
Sales order type quotation integration (VMI process)
Dear experts, We are testing a VMI scenario, more specifically we are trying to generate sales order document in R/3 from the TLB process in SAP SCM. We have configured the determation of a document type "quotation" for the VMI process in the corresp
-
Any jpgs I attach and send from my Mac to my friend's PC end up embedded in the message so are not able to be saved on her end, only copied. My outgoing message shows an attachment with paperclip, but her incoming message only shows the insertion. Is
-
How do I put an old iPod on a new computer
Hi, I've just got a new PC and I want to put my iPod, along with the iPod's of all my family on it too. However, none of us want to lose any of the songs we currently have on our iPod's. How can we use the iPod with the new computer with the iPod bei