Binding CLOBS as VarChars
Hi,
I have been experimenting and I found that I got a nice performance boost by binding my CLOBS as Varchars when writing them out. There is one drawback though, once the size of the clob goes over about 31.5 K, I get an "ORA-01460: unimplemented or unreasonable conversion requested" error. Two things come to mind:
1) Currently I have a hack in my code like this:
const int MaxVarCharLen = (int) 31.5 * 1024;
string outStr = new string( AE.GetChars( memStrMsg.ToArray() ));
if( outStr.Length > MaxVarCharLen )
cmd.Parameters.Add( "RawEMail", OracleDbType.Clob, outStr, ParameterDirection.Input );
else
cmd.Parameters.Add( "RawEMail", OracleDbType.Varchar2, outStr, ParameterDirection.Input );
Is there any chance you could put a constant into ODP.NET which would give us the maximum size allowed instead of this hack?
2) Even better, how about support for larger binds as varchars? (You know, maybe something in the two GB range :-) )
Regards,
Greg
You should use Varchar2 binding for CLOBs for DML operations as it will provide you better performance. You can provide data upto 2GB for DML operations.
However, PL/SQL has a limitation of 32K for Varchar2 data and you would have to use CLOB to bypass this limitation. Note that this is not an ODP.NET limitation.
Similar Messages
-
Error while converting CLOB to varchar using DBMS_LOB.SUBSTR() in Oracle11g
Hi
Whenever I am using DBMS_LOB.SUBSTR(columnname,4000,1) package for a clob column in a simple Select Query, the following error is thrown for Oracle 11g version.
ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at line 1.
Please find the installation details of the database and the character set
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
PARAMETER VALUE
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET AL32UTF8
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 11.2.0.1.0
It is working fine if I reduce from 4000 to 3500 . But I want to use 4000.
Please let me know if any solutionyou are using a multibyte character set:
NLS_CHARACTERSET AL32UTF8
so each character takes between 1 and 4 bytes of storage.
a varchar2(4000) column can only hold 4000 BYTES. Regardless of the character set - varchar2 is limited to 4000 bytes.
In a single byte character set, that is 4000 characters as a character = a byte
In your character set, a varchar2(4000) can hold somewhere between 1000 and 4000 characters - depending on what the characters are.
So, you must have some CLOB whose first 4000 characters include at least one "more than one byte" character. That won't fit into a varchar2(4000)
Your approach of backing off the substr size is reasonable (and you'll need to remember that in your application - end users can type in as little as 1000 characters and get an error about the column being too small!) as it reduces the number of BYTES to be belong 4000. -
CLOB Datatype (Assgin more than 32k fails)
Dear All
Can anyone tell me why i am getting this error if i assign more than 32k character to clob variable in pl/sql
but i can assign it from table to a variable
Pl/sql 1(ORA-06502: PL/SQL: numeric or value error: character string buffer too small)
declare
c clob;
v varchar(32767);
begin
for i in 1..90000 (just assuming it as 90k)
loop
v:=v||'x';
if length(v) > 31000 then
c:=c||v; -- here iam getting error while assigning character to clob if it is more than 32k
v:=null;
end if;
end loop;
c:=v;
end;
Pl/sql 2 (works fine when assgin from table)
declare
c clob;
begin
select clob_data into c from x; -- clob data is more than 32k;
end;
But it works fine with database 9i rel2 but in 11g i am facing this problem.
Regardshey U r getting the error because of v varchar(32767) , but clob data type can take large amont of data atleast 1000000 this much data can be stored in clob data type try it with this. or else see below
Hi see the example below
create table temp(col clob);
declare
v_string clob;
begin
for i in 1..1000000
v_string:=v_string||'A';
end loop;
insert into temp values(v_string);
end;
now
select length(col) from temp; you will get output as
length(col)
1000000
this means that clob datatype can store minimum of 1000000 character. -
Calling PLSQL Procedure with CLOB input parameter from JDBC
Hi..
I've got a PLSQL procedure with a CLOB object as input parameter:
function saveProject (xmldoc CLOB) RETURN varchar IS
I want to call that procedure from my JDBC Application as...
String data = "..."
CallableStatement proc = conn.prepareCall
("begin ? := saveProject (?); end;");
neither
proc.setCharacterStream(2, new StringReader(data, data.length());
nor
proc.setString(2, data);
will work.
The Application throws java.sql.Exception: ... PLS-00306 wrong
number or types of arguments in call 'SAVEPROJECT'
How can I use set setClob method?
The Problem is: with Oracles CLOB implementation I can't create
an Instance, and from the CallableStatement a can't get a
Locator for a CLOB-Object.
This CLOB stuff makes me really nuts!
please somebody help me.. thanks
AlexHi All,
You can not make it like that.
You can not make clob as input parameter.
Do you want an easy way?
This is the easy way.
sample:
function myFunction(S varchar2(40))
return integer as
begin
insert into TableAAA values(S)
--TableAAA only contains 1 column of clob type
end;
This will work the problem with this is the parameter is in
varchar2 right? so there will be limited length for it.
You can do this to call that function:
nyFunction('My String that will be input into clob field');
There's another slight difficult way, I understand that you have
installed Oracle client/server in your system, try to look at
jdbc folder and try to find demo.zip in that folder, you can
find several ways of doing thing with jdbc.
Have a nice day,
Evan -
CLOB to VARCHAR2 conversion and limit of 8192 chars
Hello, I have the folowing code which works on Oracle 10g SE but does not on XE:
DECLARE
d1 varchar2(32000);
BEGIN
d1 := to_char(substr(MY_FUNC_RETURNING_CLOB, 1, 8192));
END;This ends with "ORA-06502: PL/SQL: numeric or value error." Only CLOBs shorter then 8192 works... (well the SUBSTR function is there just because of testing the maximum length of CLOB that does not fail).
Is this my mistake, a bug in XE or some XE limitation (using UTF-8 version of XE)?
Thanks for any hints!Well, it seem that conversion between CLOB and VARCHAR is done within UCS4 or something... Function MY_FUNC_RETURNING_CLOB returns SQL query (for subsequent EXECUTE IMMEDIATE command) and contains only ASCII characters and therefore should be 1char=1byte in UTF-8? I did a following workaround, which works pretty well for me (CLOBs are about 16000 chars long in my case)
DECLARE
d1 varchar2(32000);
c1 varchar2(32000);
c2 varchar2(32000);
c3 varchar2(32000);
c4 varchar2(32000);
BEGIN
c1 :=to_char(substr(MY_FUNC_RETURNING_CLOB, 0*8192, 8191));
c2 :=to_char(substr(MY_FUNC_RETURNING_CLOB, 1*8192, 8191));
c3 :=to_char(substr(MY_FUNC_RETURNING_CLOB, 2*8192, 8191));
c4 :=to_char(substr(MY_FUNC_RETURNING_CLOB, 3*8192, 8191));
d1 := c1 || c2 || c3 || c4;
END; -
HELP! RETURN CLOB from External DLL
Hi
I am working on an External DLL using OCI. Basically, PL/SQL
calls an
External DLL to process the data and then returns LOB back to
the PL/SQL
procedure. Inside the DLL, I created a Temporary lob to process
the data.
The error is prompted from PL/SQL:
SQL> exec isdb.test_clob;
Before original length=10
ORA-24805: LOB type mismatch
ORA-06512: at "ISDBSVR.ISDB", line 24
ORA-06512: at "ISDBSVR.ISDB", line 29
ORA-06512: at line 1
So far I know that error is caused by the return from PLS_CLOB
is not clob.
"After_original := PLS_CLOB(before_original); {you will see more
code in the
below}" However inside the DLL, I have defined OCIClobLocator
and
OCI_TEMP_CLOB to carry the CLOB data.
I have found the following observations:
1. If I change everything to blob, it works fine. (such as
OCILobLocator,
OCI_TEMP_CLOB and all variables in PL/SQL)
2. If I run the same DLL and PL/SQL in 9i, it works fine (clob
too)
I guess it would be a bug for clob, please help to check thanks
-- CODE - PL/SQL
CREATE OR REPLACE PACKAGE BODY "ISDBSVR"."ISDB"
as
Function PLS_CLOB(var_clob in clob)
RETURN clob IS
EXTERNAL LIBRARY bb
WITH CONTEXT
NAME "Encrypt_Blob"
LANGUAGE C
PARAMETERS
CONTEXT,
var_clob,
var_clob INDICATOR SB4,
RETURN INDICATOR SB4
PROCEDURE TEST_CLOB IS
before_original cLOB;
After_original cLOB;
CHAR_TO_CLOB varchar(200);
bsize int;
BEGIN
CHAR_TO_CLOB := 'AAAAAAABBBBBBCCCCCCC';
dbms_lob.createtemporary( before_original, TRUE );
DBMS_LOB.write( before_original,10,1,CHAR_TO_CLOB);
bSize := DBMS_LOB.GetLength(before_original);
DBMS_OUTPUT.PUT_LINE('Before original length='||bSize);
After_original := PLS_CLOB(before_original);
bSize := DBMS_LOB.GetLength(After_original);
DBMS_OUTPUT.PUT_LINE('After original length='||bSize);
dbms_lob.freetemporary(before_original);
END;
END ISDB;
/* CODE - DLL */
EXPORT OCILobLocator * EncryptBlob(OCIExtProcContext
*with_context,
OCILobLocator *plaintext2,
sb4 pt_indicator2,
sb4 *ret_indicator
{ FILE *fp;
OCIClobLocator *cipherbb;
ub4 amount;
ocictx oci_ctx;
ocictx *oci_ctxp = &oci_ctx;
status = OCIExtProcGetEnv(with_context,
&oci_ctxp->envhp,
&oci_ctxp->svchp,
&oci_ctxp->errhp);
status = OCIDescriptorAlloc(oci_ctxp->envhp,
(dvoid **) &cipherbb,
(ub4) OCI_DTYPE_LOB,
(size_t) 0,
(dvoid **) 0);
status = (int) OCILobCreateTemporary(oci_ctxp->svchp,
oci_ctxp->errhp, cipherbb,
OCI_DEFAULT,
OCI_DEFAULT,
OCI_TEMP_CLOB, OCI_ATTR_NOCACHE,
OCI_DURATION_SESSION);
amount = 6;
status = OCILobCopy(oci_ctxp->svchp,
oci_ctxp->errhp,
cipherbb,
plaintext2,
amount,
(ub4) 1,
(ub4) 1);
*ret_indicator = OCI_IND_NOTNULL;
OCIDescriptorFree((dvoid *) cipherbb, (ub4) OCI_DTYPE_LOB);
return(cipherbb);In what database version did you observe the problem?
Thomas -
Hello,
We have encountered a problem:
We are using Windows-1250 codepage (EE8MSWIN1250) with Oracle8i 8.1.7.0. When we use correct string with special characters (from Slovak language) in CLOB, after loading it to the XML parser and retrieving it back from XML parser, we are getting '?' instead of special characters.
The sample showing this problem is following:
DECLARE
xp xmlparser.parser;
xmldoc xmldom.domdocument;
xmlnode xmldom.domnode;
v_params CLOB;
v_in_temp CLOB;
v_buffer VARCHAR(255);
BEGIN
v_buffer := '<?xml version="1.0" encoding="ISO-8859-2"?><unicode name="aš}hžšhžhž}imTotoUzIdeCitat+5ac;l}amin)CN."/>';
v_buffer := CONVERT(v_buffer,'EE8ISO8859P2','EE8MSWIN1250'); --EE8ISO8859P2
xp := xmlparser.newparser;
xmlparser.setValidationMode(xp, FALSE);
xmlparser.setPreserveWhiteSpace(xp, TRUE);
dbms_output.put_line('Input buffer:');
dbms_output.put_line(v_buffer);
dbms_lob.createtemporary(v_in_temp,false);
dbms_lob.write(v_in_temp,LENGTH(v_buffer),1,v_buffer);
dbms_output.put_line('Input CLOB:');
tools.put_clob(v_in_temp);
xmlparser.parseclob(xp,v_in_temp);
-- xmlparser.parsebuffer(xp,v_buffer);
xmldoc := xmlparser.getdocument(xp);
xmlnode := xmldom.makenode(xmldom.getdocumentelement(xmldoc));
--nacitame name a uname procesu
DECLARE o_buffer VARCHAR2(255);
o_clob CLOB;
BEGIN
xmldom.writetoBuffer(xmlnode,o_buffer);
dbms_output.put_line('Output Buffer:');
dbms_output.put_line(o_buffer);
dbms_lob.createtemporary(o_clob,true);
xmldom.writetoClob(xmlnode,o_clob);
dbms_output.put_line('Output Clob:');
tools.put_clob(o_clob);
--?? Why this output clob is not the same as output buffer??
dbms_lob.freetemporary(o_clob);
END;
END;
Does anybody know what we are doing wrong?OK, so that gives me one column with just the <clob>, but I want the data to be parsed back out into it's columns and rows..
So the clob for this column might hold this XML:
<?xml version="1.0"?>
<ROWSET>
<ROW>
<SORCONT_PIDM>99955</SORCONT_PIDM>
<SORCONT_CTYP_CODE>TAP</SORCONT_CTYP_CODE>
</ROW>
</ROWSET>
What I want a query of this one column to produce:
SORCONT_PIDM SORCONT_CTYP_CODE
99955 TAP -
I have a form on a table containing a CLOB column. The form renders it using a "HTML Editor" item type. On another page, this is fetched into a "Display as Text" item using select clob_col into :P1_ITEM from t where ... When this is run, I get the 'character/string buffer too small' when dbms_log.getlength(clob_col) > 4000. I guess this is because the SQL engine cannot handle strings larger than 4000. I thought Apex would bind CLOB columns for select...into but looks like it binds a varchar2 and hence the 4000 limit.
What is the best way to handle this? ThanksHello Vikas,
Please check the following, as it might be helpful
http://www.danielmcghan.us/2010/02/ckeditor-and-those-pesky-clobs.html
I’m using Carl’s AJAX functions to save/fetch CLOB into/from a collection, and it works very well.
Hope this helps,
Arie.
♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
♦ Author of Oracle Application Express 3.2 – The Essentials and More -
I am trying to use a clob field in a select statment and I am getting "Ora-00932: inconsistent datatypes" error.
I am using Oracle 817.
Any idea or fix?The reason your statement throws an error is because
of the DISTINCT, not because of joins. Oracle can
only do distinct on basic data types (CHAR, VARCHAR2,
NUMBER and DATE). It tries to do an implicit
conversion from CLOB to VARCHAR to do the DISTINCT.
CLOBS over 4000 characters cannot be converted to
VARCHAR2. So, even without any joins ...Agreed ... but my DISTINCT wasn't on the CLOB. It was on a VARCHAR2. Let me restate (hopefully a little more clearly) what I was referring too to see if you can think of any ways to do what I'm trying to do. The first example I know will work provided the CLOB doesn't contain over 4000 characters. The 2nd example (the same as the example originally mentioned) will not work. I'm wanting to do something like the 2nd example but with the same results as the first.
EX #1: (will work)
SELECT
DISTINCT table1.varcharField1,
table1.varcharField2,
table2.varcharField3,
DBMS_LOB.SUBSTR(table1.CLOBField4,DBMS_LOB.GETLENGTH(table1.CLOBField4)),
table3.varcharField5
FROM
table1,
table2,
table3
WHERE
table1.varcharField1 = table2.varcharField1
AND table1.varcharField1 = table3.varcharField1
AND table1.varcharField2 = 'XYZ'
EX #2: (will not work)
SELECT
DISTINCT table1.varcharField1,
table1.varcharField2,
table2.varcharField3,
table1.CLOBField4,
table3.varcharField5
FROM
table1,
table2,
table3
WHERE
table1.varcharField1 = table2.varcharField1
AND table1.varcharField1 = table3.varcharField1
AND table1.varcharField2 = 'XYZ'
This is SQL for a report so the entire contents of the CLOB field are required. (In actuality, the dbase column should have originally been defined as a VARCHAR2. Since we already have other programs in place that hit these table fields, we can't arbitrarily go back and change it.) If we leave the first SQL example in place, it'll work but it'll cause the SQL to crash if the data in that field ever exceeds 4000 characters. That's why we're trying to do away with the DBMS_LOB.SUBSTR() method. BUT if we don't interpret the CLOB in some other fashion, it'll throw the ORA-00932 error because of a data inconsistencies.
Any advice you could offer would certainly be appreciated.
BJ -
How to come up with a magic number for any table that returns more than 32KB?
I am in a unique situation where in I am trying to retrieve values from multiple tables and publish them as XML output. The problem is based on the condition a few tables could retrieve data more than 32KB and a few less than 32KB. Less than 32KB is not an issue as XML generation is smooth. The minute it reaches greater than 32KB it generates a run time error. Just wondering if there is any way to ensure that the minute the query's results is greater than 32 kb, it should break say - if the results is 35KB, then I should break that result into 32 KB and 3kb; once done then pass this data to be published as an XML output. This is again not just for one table, but all the tables that are called in the function.
Is there any way?? I am unable to get any ideas nor have I done anything so complex from production support stand point. Would appreciate if someone can guide me on this.
The way it is, is as follows:
I have a table called ctn_pub_cntl
CREATE TABLE CTNAPP.ctn_pub_cntl
(ctn_pub_cntl_id NUMBER(18)
,table_name VARCHAR2(50)
,last_pub_tms DATE
,queue_name VARCHAR2(50)
,dest_system VARCHAR2(50)
,frequency NUMBER(6)
,status VARCHAR2(8)
,record_create_tms DATE
,create_user_id VARCHAR2(8)
,record_update_tms DATE
,update_user_id VARCHAR2(8)
,CONSTRAINT ctn_pub_cntl_id_pk PRIMARY KEY(ctn_pub_cntl_id)
Data for this is:
INSERT INTO CTNAPP.ctn_pub_cntl
(ctn_pub_cntl_id
,table_name
,last_pub_tms
,queue_name
,dest_system
,frequency
VALUES
(CTNAPP_SQNC.nextval
,'TRKFCG_SBDVSN'
,TO_DATE('10/2/2004 10:17:44PM','MM/DD/YYYY HH12:MI:SSPM')
,'UT.TSD.TSZ601.UNP'
,'SAP'
,15
INSERT INTO CTNAPP.ctn_pub_cntl
(ctn_pub_cntl_id
,table_name
,last_pub_tms
,queue_name
,dest_system
,frequency
VALUES
(CTNAPP_SQNC.nextval
,'TRKFCG_TRACK_SGMNT_DN'
,TO_DATE('02/06/2015 9:50:00AM','MM/DD/YYYY HH12:MI:SSPM')
,'UT.TSD.WRKORD.UNP'
,'SAP'
,30
INSERT INTO CTNAPP.ctn_pub_cntl
(ctn_pub_cntl_id
,table_name
,last_pub_tms
,queue_name
,dest_system
,frequency
VALUES
(CTNAPP_SQNC.nextval
,'TRKFCG_FXPLA_TRACK_LCTN_DN'
,TO_DATE('10/2/2004 10:17:44PM','MM/DD/YYYY HH12:MI:SSPM')
,'UT.TSD.YRDPLN.INPUT'
,'SAP'
,30
INSERT INTO CTNAPP.ctn_pub_cntl
(ctn_pub_cntl_id
,table_name
,last_pub_tms
,queue_name
,dest_system
,frequency
VALUES
(CTNAPP_SQNC.nextval
,'TRKFCG_FXPLA_TRACK_LCTN2_DN'
,TO_DATE('02/06/2015 9:50:00AM','MM/DD/YYYY HH12:MI:SSPM')
,'UT.TSD.TSZ601.UNP'
,'SAP'
,120
INSERT INTO CTNAPP.ctn_pub_cntl
(ctn_pub_cntl_id
,table_name
,last_pub_tms
,queue_name
,dest_system
,frequency
VALUES
(CTNAPP_SQNC.nextval
,'TRKFCG_FXPLA_TRACK_LCTN2_DN'
,TO_DATE('04/23/2015 11:50:00PM','MM/DD/YYYY HH12:MI:SSPM')
,'UT.TSD.YRDPLN.INPUT'
,'SAP'
,10
INSERT INTO CTNAPP.ctn_pub_cntl
(ctn_pub_cntl_id
,table_name
,last_pub_tms
,queue_name
,dest_system
,frequency
VALUES
(CTNAPP_SQNC.nextval
,'TRKFCG_FIXED_PLANT_ASSET'
,TO_DATE('04/23/2015 11:50:00AM','MM/DD/YYYY HH12:MI:SSPM')
,'UT.TSD.WRKORD.UNP'
,'SAP'
,10
INSERT INTO CTNAPP.ctn_pub_cntl
(ctn_pub_cntl_id
,table_name
,last_pub_tms
,queue_name
,dest_system
,frequency
VALUES
(CTNAPP_SQNC.nextval
,'TRKFCG_OPRLMT'
,TO_DATE('03/26/2015 7:50:00AM','MM/DD/YYYY HH12:MI:SSPM')
,'UT.TSD.WRKORD.UNP'
,'SAP'
,30
INSERT INTO CTNAPP.ctn_pub_cntl
(ctn_pub_cntl_id
,table_name
,last_pub_tms
,queue_name
,dest_system
,frequency
VALUES
(CTNAPP_SQNC.nextval
,'TRKFCG_OPRLMT_SGMNT_DN'
,TO_DATE('03/28/2015 12:50:00AM','MM/DD/YYYY HH12:MI:SSPM')
,'UT.TSD.WRKORD.UNP'
,'SAP'
,30
COMMIT;
Once the above data is inserted and committed, then I created a function in a package:
CREATE OR REPLACE PACKAGE CTNAPP.CTN_PUB_CNTL_EXTRACT_PUBLISH
IS
TYPE tNameTyp IS TABLE OF ctn_pub_cntl.table_name%TYPE INDEX BY BINARY_INTEGER;
g_tName tNameTyp;
TYPE tClobTyp IS TABLE OF CLOB INDEX BY BINARY_INTEGER;
g_tClob tClobTyp;
FUNCTION GetCtnData(p_nInCtnPubCntlID IN CTN_PUB_CNTL.ctn_pub_cntl_id%TYPE,p_count OUT NUMBER ) RETURN tClobTyp;
END CTNAPP.CTN_PUB_CNTL_EXTRACT_PUBLISH;
--Package body
CREATE OR REPLACE PACKAGE BODY CTNAPP.CTN_PUB_CNTL_EXTRACT_PUBLISH
IS
doc xmldom.DOMDocument;
main_node xmldom.DOMNode;
root_node xmldom.DOMNode;
root_elmt xmldom.DOMElement;
child_node xmldom.DOMNode;
child_elmt xmldom.DOMElement;
leaf_node xmldom.DOMNode;
elmt_value xmldom.DOMText;
tbl_node xmldom.DOMNode;
table_data XMLDOM.DOMDOCUMENTFRAGMENT;
l_ctx DBMS_XMLGEN.CTXHANDLE;
vStrSqlQuery VARCHAR2(32767);
l_clob tClobTyp;
l_xmltype XMLTYPE;
--Local Procedure to build XML header
PROCEDURE BuildCPRHeader IS
BEGIN
child_elmt := xmldom.createElement(doc, 'PUBLISH_HEADER');
child_node := xmldom.appendChild (root_node, xmldom.makeNode (child_elmt));
child_elmt := xmldom.createElement (doc, 'SOURCE_APLCTN_ID');
elmt_value := xmldom.createTextNode (doc, 'CTN');
leaf_node := xmldom.appendChild (child_node, xmldom.makeNode (child_elmt));
leaf_node := xmldom.appendChild (leaf_node, xmldom.makeNode (elmt_value));
child_elmt := xmldom.createElement (doc, 'SOURCE_PRGRM_ID');
elmt_value := xmldom.createTextNode (doc, 'VALUE');
leaf_node := xmldom.appendChild (child_node, xmldom.makeNode (child_elmt));
leaf_node := xmldom.appendChild (leaf_node, xmldom.makeNode (elmt_value));
child_elmt := xmldom.createElement (doc, 'SOURCE_CMPNT_ID');
elmt_value := xmldom.createTextNode (doc, 'VALUE');
leaf_node := xmldom.appendChild (child_node, xmldom.makeNode (child_elmt));
leaf_node := xmldom.appendChild (leaf_node, xmldom.makeNode (elmt_value));
child_elmt := xmldom.createElement (doc, 'PUBLISH_TMS');
elmt_value := xmldom.createTextNode (doc, TO_CHAR(SYSDATE, 'YYYY-MM-DD HH24:MI:SS'));
leaf_node := xmldom.appendChild (child_node, xmldom.makeNode (child_elmt));
leaf_node := xmldom.appendChild (leaf_node, xmldom.makeNode (elmt_value));
END BuildCPRHeader;
--Get table data based on table name
FUNCTION GetCtnData(p_nInCtnPubCntlID IN CTN_PUB_CNTL.ctn_pub_cntl_id%TYPE,p_Count OUT NUMBER) RETURN tClobTyp IS
vTblName ctn_pub_cntl.table_name%TYPE;
vLastPubTms ctn_pub_cntl.last_pub_tms%TYPE;
BEGIN
g_vProcedureName:='GetCtnData';
g_vTableName:='CTN_PUB_CNTL';
SELECT table_name,last_pub_tms
INTO vTblName, vLastPubTms
FROM CTN_PUB_CNTL
WHERE ctn_pub_cntl_id=p_nInCtnPubCntlID;
-- Start the XML Message generation
doc := xmldom.newDOMDocument;
main_node := xmldom.makeNode(doc);
root_elmt := xmldom.createElement(doc, 'PUBLISH');
root_node := xmldom.appendChild(main_node, xmldom.makeNode(root_elmt));
--Append Table Data as Publish Header
BuildCPRHeader;
--Append Table Data as Publish Body
child_elmt := xmldom.createElement(doc, 'PUBLISH_BODY');
leaf_node := xmldom.appendChild (root_node, xmldom.makeNode(child_elmt));
DBMS_SESSION.SET_NLS('NLS_DATE_FORMAT','''YYYY:MM:DD HH24:MI:SS''');
vStrSqlQuery := 'SELECT * FROM ' || vTblName
|| ' WHERE record_update_tms <= TO_DATE(''' || TO_CHAR(vLastPubTms, 'MM/DD/YYYY HH24:MI:SS') || ''', ''MM/DD/YYYY HH24:MI:SS'') ' ;
-- || ' AND rownum < 16'
DBMS_OUTPUT.PUT_LINE(vStrSqlQuery);
l_ctx := DBMS_XMLGEN.NEWCONTEXT(vStrSqlQuery);
DBMS_XMLGEN.SETNULLHANDLING(l_ctx, 0);
DBMS_XMLGEN.SETROWSETTAG(l_ctx, vTblName);
-- Append Table Data as XML Fragment
l_clob(1):=DBMS_XMLGEN.GETXML(l_ctx);
elmt_value := xmldom.createTextNode (doc, l_clob(1));
leaf_node := xmldom.appendChild (leaf_node, xmldom.makeNode (elmt_value));
xmldom.writeToBuffer (doc, l_clob(1));
l_clob(1):=REPLACE(l_clob(1),'<?xml version="1.0"?>', NULL);
l_clob(1):=REPLACE(l_clob(1),'<', '<');
l_clob(1):=REPLACE(l_clob(1),'>', '>');
RETURN l_clob;
DBMS_OUTPUT.put_line('Answer is' ||l_clob(1));
EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.put_line('There is no data with' || SQLERRM);
g_vProcedureName:='GetCtnData';
g_vTableName:='CTN_PUB_CNTL';
g_vErrorMessage:=SQLERRM|| g_vErrorMessage;
g_nSqlCd:=SQLCODE;
ctn_log_error('ERROR',g_vErrorMessage,'SELECT',g_nSqlCd,p_nInCtnPubCntlID,g_vPackageName,g_vProcedureName,g_vTableName);
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('ERROR : ' || SQLERRM);
ctn_log_error('ERROR',g_vErrorMessage,'OTHERS',g_nSqlCd,p_nInCtnPubCntlID,g_vPackageName,g_vProcedureName,g_vTableName);
END GetCtnData;
PROCEDURE printClob (result IN OUT NOCOPY CLOB) IS
xmlstr VARCHAR2 (32767);
line VARCHAR2 (2000);
BEGIN
xmlstr := DBMS_LOB.SUBSTR (result, 32767);
LOOP
EXIT WHEN xmlstr IS NULL;
line := SUBSTR (xmlstr, 1, INSTR (xmlstr, CHR (10)) - 1);
DBMS_OUTPUT.put_line (line);
xmlstr := SUBSTR (xmlstr, INSTR (xmlstr, CHR (10)) + 1);
END LOOP;
END printClob;
END CTN_PUB_CNTL_EXTRACT_PUBLISH;
If you notice my query:
vStrSqlQuery := 'SELECT * FROM ' || vTblName
|| ' WHERE record_update_tms <= TO_DATE(''' || TO_CHAR(vLastPubTms, 'MM/DD/YYYY HH24:MI:SS') || ''', ''MM/DD/YYYY HH24:MI:SS'') ' ;
|| ' AND rownum < 16'
The minute I comment
|| ' AND rownum < 16' ;
, it throws an error because this query returns around 600 rows and all of those rows need to be published as XML and the tragedy is that there is a C program in between as well i.e. C will call my packged functions and then will do all the processing. Once this is done will pass the results back to C program. So obviously C does not recognise CLOB and somewhere in the process I have to convert the CLOB to VARCHAR or instead of CLOB I have to use VARCHAR array as a return type. This is my challenge.
Anyone that can help me to find out the required magic number and also a brief know how, I would appreciate that. Many thanks in advance.Not sure I understand which part is failing.
Is it the C program calling your packaged function? Or does the error occur in the PL/SQL code, in which case you should be able to pinpoint where it's wrong?
A few comments :
1) Using DOM to build XML out of relational data? What for? Use SQL/XML functions.
2) Giving sample data is usually great, but it's not useful here since we can't run your code. We're missing the base tables.
3) This is wrong :
vStrSqlQuery := 'SELECT * FROM ' || vTblName || ' WHERE record_update_tms <= TO_DATE(''' || TO_CHAR(vLastPubTms, 'MM/DD/YYYY HH24:MI:SS') || ''', ''MM/DD/YYYY HH24:MI:SS'') ' ;
A bind variable should be used here for the date.
4) This is wrong :
elmt_value := xmldom.createTextNode (doc, l_clob(1));
createTextNode does not support CLOB so it will fail as soon as the CLOB you're trying to pass exceeds 32k.
Maybe that's the problem you're referring to?
5) This is most wrong :
l_clob(1):=REPLACE(l_clob(1),'<?xml version="1.0"?>', NULL);
l_clob(1):=REPLACE(l_clob(1),'<', '<');
l_clob(1):=REPLACE(l_clob(1),'>', '>');
I understand what you're trying to do but it's not the correct way.
You're trying to convert a text() node representing XML in escaped form back to XML content.
The problem is that there are other things to take care of besides just '<' and '>'.
If you want to insert an XML node into an existing document, treat that as an XML node, not as a string.
Anyway,
Anyone that can help me to find out the required magic number
That would be a bad idea. Fix what needs to be fixed.
And please clearly state which part is failing : the C program or the PL/SQL code?
I'd vote for PL/SQL, as pointed out in [4]. -
How to get ALL validate-errors while insert xml-file into xml_schema_table
How to get all validate-errors while using insert into xml_schema when having a xml-instance with more then one error inside ?
Hi,
I can validate a xml-file by using isSchemaValid() - function to get the validate-status 0 or 1 .
To get a error-output about the reason I do validate
the xml-file against xdb-schema, by insert it into schema_table.
When more than one validate-errors inside the xml-file,
the exception shows me the first error only.
How to get all errors at one time ?
regards
Norbert
... for example like this matter:
declare
xmldoc CLOB;
vStatus varchar
begin
-- ... create xmldoc by using DBMS_XMLGEN ...
-- validate by using insert ( I do not need insert ;-) )
begin
-- there is the xml_schema in xdb with defaultTable XML_SCHEMA_DEFAULT_TABLE
insert into XML_SCHEMA_DEFAULT_TABLE values (xmltype(xmldoc) ) ;
vStatus := 'XML-Instance is valid ' ;
exception
when others then
-- it's only the first error while parsing the xml-file :
vStatus := 'Instance is NOT valid: '||sqlerrm ;
dbms_output.put_line( vStatus );
end ;
end ;If I am not mistaken, the you probably could google this one while using "Steven Feuerstein Validation" or such. I know I have seen a very decent validation / error handling from Steven about this.
-
Oracle Report Failing After Database Version Upgrade
Hi,
I have function code created in RDF file of oracle reports 10g as below-
create or replace function clobblobtest (TMP_MID varchar2) return varchar is
missed_text varchar2(1000) := '';
v_time_stamp date;
v_end_time date;
cursor c1(c_time_stamp in date,
c_mid in varchar2) is
select mn.TEXT from msgnotes mn
where mn.mid=c_mid
and mn.create_date >= c_time_stamp;
cursor c2(c_time_stamp in date,
c_mid in varchar2,
c_end_time in date) is
select mn.TEXT from msgnotes mn
where mn.mid=c_mid
and mn.create_date >= c_time_stamp
and mn.create_date <= c_end_time;
begin
IF ('1' = 'INWARD RETURN') then
select bbi into missed_text from mtf1000 where mid=TMP_mid;
ELSIF '1'='QPH Missed' then
Select max(nj.update_date) into v_time_stamp
from newjournal nj
where nj.mid=TMP_mid and nj.status = 'CTOVRQ';
for i in c1(v_time_stamp,TMP_mid) loop
missed_text:=missed_text||' '||i.text;
END Loop;
ELSIF ('Rejected'='Rejected' OR 'REJECTED'='REJECTED') then
IF ('TERMINATED' in ('TERMINATED')) THEN
Select min(nj.update_date),max(nj.ENDDATE) into v_time_stamp,v_end_time
from newjournal nj
where nj.mid=TMP_mid and nj.actionid2='16' and nj.actionid1 is null;
for i in c2(v_time_stamp,TMP_mid,v_end_time) loop
missed_text:=missed_text||' '||i.text;
END Loop;
ELSE
Select max(nj.update_date) into v_time_stamp
from newjournal nj
where nj.mid=TMP_mid and nj.status = 'UNSETLED';
for i in c1(v_time_stamp,TMP_mid) loop
missed_text:=missed_text||' '||i.text;
END Loop;
END IF;
ELSE missed_text := null;
END IF;
return(missed_text);
End;
Note:- Text column from table msgnotes is of datatype CLOB.
I have executed report having this function before oracle upgrade and it works fine.
But when i am trying to execute report after oracle version upgrade from 11.2.0.3.0 to 11.2.0.4.0 with same data report fails with runtime error Rep-1401: '' Fatal PL/SQL Error.
With New version we tried to typecast Text column from clob to varchar and executed report then it works... but report runs on old version without any explicit typecasting.
Please note when i run and call this funtion from sql developer with upgraded database version it works fine.
Please advise.This error can possibly depend on the fact that the PL/SQL engines are in different versions. When using SQL Developer you use the PL/SQL engine in the database. When using Oracle Reports you use the PL/SQL engine in the Oracle Reports Server (Web Logic Server even maybe). These versions - in the Forms and Reports realm - are different (read: a lower version) than the PL/SQL engine in the database.
If I check what version I have in Oracle Forms, as an example, I get 11.1.0.7.0 (Help in the Oracle Forms Builder menu) but in the database I have (select * from product_component_version;) 11.2.0.3.0.
That COULD be your issue...how to fix it I am not sure... -
Passing of old and new trigger details to a generic function or procedure
Hi all.
I have a requirement to pass all the new and old column information from a database trigger ( for the purposes of this discussion, it will be a before row, insert, update and delete trigger) to a procedure/function ( either is fine).
My first thought was to create a separate routine for each table I wish to implement this in, which has a new and old input parameter for every column, however I realised I needed a solution where the called routine needs to be generic (because we'll let other developers call the same routine and we dont want them to have to create their own version for their table).
This presents a problem as every table I wish to implement this on could have a completely different amount of columns (and dataypes). The called routine will operate under a pragma autnonmous_transaction (as it will be performing commits) so I need to pass all the fields across in one go.
Another idea I had was to create an type object with (potentially) 300 generic fields that I assign the values to and pass that as a parameter, however I could never know before hand what datatypes are needed, CLOBS, DATE, VARCHAR, etc...
Does anyone have any ideas on how I can accomplish this with a generic routine?
Regards,
Greg.Greg wrote:
I hadn't heard of the ANYDATA type, I'll have a lookThe Data Cartridge Developer's Guide has all the details - http://docs.oracle.com/cd/E11882_01/appdev.112/e10765/toc.htm
Here's a link that has some simple examples just for ANYDATA - http://orafaq.com/node/1853
TOOLKIT ALERT - Here is a classic link you will want to keep - How to pipeline a function with a dynamic number of columns?
I asked in another thread if they could create a locked TOOLKIT thread (like report abuse here - a global one for mods only) to put these nuggets in one place.
see ascheffer's responses where he shows how to create a pipelined function that call return a result set with a different (dnynamic) number of columns for different calls! It uses functionality in the
ANYTYPE - metadata
ANYDATA - data with metadata
ANYRESULTSET - A resultset where every column is of type ANYDATA - meaning whatever you define it to be.
Rough overview - The cartridge exposes some interface functions (3-5 are typically needed) that you implement in a procedure. See scheffer post for his procedure:
static function ODCITableDescribe( rtype out anytype, p_parm in varchar2, p_rows_req in number := 2 )
return number,
static function ODCITablePrepare( sctx out NColPipe, ti in sys.ODCITabFuncInfo, p_parm in varchar2, p_rows_req in number := 2 )
return number,
static function ODCITableStart( sctx in out NColPipe, p_parm in varchar2, p_rows_req in number := 2 )
return number,
member function ODCITableFetch( self in out NColPipe, nrows in number, outset out anydataset )
return number,
member function ODCITableClose( self in NColPipe )The TableDescribe does just what it's name says.
Oracle calls these functions to get the metadata about your custom types, to describe and return result sets.
Are you familiar with VARIANTs that are used in COM programming? A variant is a 16 byte object (record) type. 2 bytes contain the 'type' of the variant (int, char, etc) and other bytes contain data of that 'type'. It is a generic container that can hold any type of data.
The ANYTYPE, ANYDATA and ANYRESULTSET are roughly analogous to that. -
ORA-06502: PL/SQL: numeric or value error by procedure
Hi Experts,
I have created the below package(Oracle 10.2):
create or replace
package UPCStreamDifferences AS
TYPE NodeDetails IS REF CURSOR;
query_str VARCHAR2(3000);
newCounter number(10);
oldCounter number(10);
cfgname VARCHAR2(100);
cfgversionmajor NUMBER(10);
cfgversionminor NUMBER(10);
cfgversiondefect NUMBER(10);
cfgversionpatch VARCHAR2(10);
appname VARCHAR2(100);
appversionmajor NUMBER(10);
appversionminor NUMBER(10);
appversiondefect NUMBER(10);
appversionpatch VARCHAR2(10);
libname VARCHAR2(100);
libversionmajor NUMBER(10);
libversionminor NUMBER(10);
libversiondefect NUMBER(10);
libversionpatch VARCHAR2(10);
StreamId NUMBER(10);
LINE CLOB;
tline CLOB;
OLDLINE CLOB;
NodeName varchar(200);
NodeParameter varchar(200);
NodeParameterValue varchar(500);
StreamParameter varchar(200);
StreamParameterValue varchar(500);
LinkName varchar(200);
LinkCopyNumber Number(10);
StorageName VARCHAR2(100);
Procedure ParameterValues(StreamName IN VARCHAR2,oldVersion IN NUMBER,newVersion IN NUMBER);
END UPCStreamDifferences;
create or replace
package body UPCStreamDifferences AS
procedure ParameterValues (StreamName IN VARCHAR2,
oldVersion IN NUMBER,
newVersion IN NUMBER) IS
diffParam NodeDetails;
BEGIN
line := '';
tline := '';
execute immediate 'select streamId from el_streams where Name = :1' into StreamId using StreamName;
query_str := 'WITH old_stream as (select el_nodes.name, parameter, value from el_node_params
left join el_nodes on
el_nodes.nodeversionid = el_node_params.nodeversionid
left join el_stream_versions on
el_nodes.streamversionid = el_stream_versions.streamversionid
where
el_stream_versions.streamid ='|| streamID ||' and el_stream_versions.streamversion =' || oldVersion ||'),
new_stream as (select el_nodes.name, parameter, value from el_node_params
left join el_nodes on
el_nodes.nodeversionid = el_node_params.nodeversionid
left join el_stream_versions on
el_nodes.streamversionid = el_stream_versions.streamversionid
where
el_stream_versions.streamid = '|| streamID ||'and el_stream_versions.streamversion = ' || newVersion ||')
select name AS NodeName,
count(src1) AS oldCounter,
count(src2) AS newCounter,
parameter as NodeParameter, Value as NodeParameterValue from ( select name, parameter, value, 1 AS src1, TO_NUMBER(NULL) AS src2 from old_stream
UNION ALL
select name, parameter, value, TO_NUMBER(NULL) AS src1, 2 AS src2 from new_stream)
group by name, parameter, value
Having count(src1) <> count(src2)';
OPEN diffParam FOR query_str;
LOOP
FETCH diffParam INTO NodeName,oldCounter,NewCounter,NodeParameter,NodeParameterValue;
if diffParam%FOUND then
if newcounter >= 1 then
line := line||NodeName||';F;'|| 'NEW!' ||Nodeparameter||'|'||NodeParametervalue||':';
end if;
if oldcounter >= 1 then
tline := tline||NodeName||';F;'|| 'OLD!' ||Nodeparameter||'|'||NodeParametervalue||':';
end if;
else
exit;
END iF;
END LOOP;
dbms_output.put_line(line);
dbms_output.put_line(tline);
close diffParam;
END ParameterValues;
This is throwing errors for some cases not all.
set serveroutput on;
execute upcstreamdifferences.ParameterValues('UPC_CH_HIQ',167,168);
Error starting at line 2 in command:
execute upcstreamdifferences.ParameterValues('UPC_CH_HIQ',167,168)
Error report:
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at "ELINK.UPCSTREAMDIFFERENCES", line 285
ORA-06512: at line 1
06502. 00000 - "PL/SQL: numeric or value error%s"
*Cause:
*Action:CH_HIQ_BACKUP;F;NEW!BlockSize|:CH_HIQ_BACKUP;F;NEW!CompressionMethod|gzip:CH_HIQ_BACKUP;F;NEW!PrivateKey|:CH_HIQ_BACKUP;F;NEW!PublicKey|:CH_HIQ_TAIFUN_DISTRIBUTOR;F;NEW!Subdirectory|:CH_HIQ_KENAN_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_HIQ_OTF01A_COLLECTOR;F;NEW!OnlyCollectFilesOlderThan|:CH_HIQ_BACKUP;F;NEW!BehaviourOnError|Abort:CH_HIQ_BACKUP;F;NEW!FlagFileSuffix|:CH_HIQ_BACKUP;F;NEW!InputLinkDirectories|Yes:CH_HIQ_BACKUP;F;NEW!Port|:CH_HIQ_BACKUP;F;NEW!RemoteSuffix|:CH_HIQ_BACKUP;F;NEW!Ruleset|backup.pm:CH_HIQ_FRAUD_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_HIQ_DWH_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_HIQ_HU_TOOL_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_HIQ_BACKUP;F;NEW!RemotePrefix|:CH_HIQ_BACKUP;F;NEW!SourceIdDirectories|no:CH_HIQ_BACKUP;F;NEW!TransferProtocol|Local:CH_HIQ_BACKUP;F;NEW!TransferType|:CH_HIQ_R14_DECODER;F;NEW!RejectInvalid|1:CH_HIQ_HU_TOOL_DISTRIBUTOR;F;NEW!Subdirectory|:CH_HIQ_ICONX_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_HIQ_BACKUP;F;NEW!InputLinksToSubDirectories|FILE_VALIDATED=RAW/&SOURCEID:CH_HIQ_BACKUP;F;NEW!TargetDirectory|/backup/BACKUP_EL603/UPCCH_HIQ/:CH_HIQ_BACKUP;F;NEW!Username|:CH_HIQ_R10_DECODER;F;NEW!RejectInvalid|1:CH_HIQ_VSSOTF_COLLECTOR;F;NEW!OnlyCollectFilesOlderThan|:CH_HIQ_AUDIT_REJECTED_DISTRIBUTOR;F;NEW!Subdirectory|:CH_HIQ_DWH_DISTRIBUTOR;F;NEW!Subdirectory|:CH_HIQ_BACKUP;F;NEW!Cipher|:CH_HIQ_BACKUP;F;NEW!ConnectionRetryInterval|:CH_HIQ_BACKUP;F;NEW!MaximumReconnectionInterval|:CH_HIQ_TAIFUN_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_HIQ_GLB01A_COLLECTOR;F;NEW!OnlyCollectFilesOlderThan|:CH_HIQ_VSSBRN_COLLECTOR;F;NEW!OnlyCollectFilesOlderThan|:CH_HIQ_BACKUP;F;NEW!DestinationHost|:CH_HIQ_BACKUP;F;NEW!Password|:CH_HIQ_BACKUP;F;NEW!TransferMode|:CH_HIQ_BACKUP;F;NEW!TransferRetryCount|:CH_HIQ_R10_DECODER;F;NEW!EscapeWithBackslash|0:CH_HIQ_FRAUD_DISTRIBUTOR;F;NEW!Subdirectory|:CH_HIQ_BACKUP;F;NEW!ExternalCommand|:CH_HIQ_BACKUP;F;NEW!Kex|:CH_HIQ_BACKUP;F;NEW!MaxDays|0:CH_HIQ_BACKUP;F;NEW!MaxFiles|0:CH_HIQ_BACKUP;F;NEW!OriginalFilenameMask|:CH_HIQ_BACKUP;F;NEW!RemoteOS|:CH_HIQ_BACKUP;F;NEW!TempSuffix|:CH_HIQ_AUDIT_REJECTED_ENCODER;F;NEW!OutputDescriptionFileName|telephony.xml:CH_HIQ_PRIMECARRIER_DISTRIBUTOR;F;NEW!Subdirectory|:CH_HIQ_R14_DECODER;F;NEW!EscapeWithBackslash|0:CH_HIQ_R14_DECODER;F;NEW!PercentOfRejectedRecordsAllowed|:CH_HIQ_AUDIT_REJECTED_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_HIQ_ICONX_DISTRIBUTOR;F;NEW!Subdirectory|:CH_HIQ_BACKUP;F;NEW!Compression|:CH_HIQ_BACKUP;F;NEW!ConnectionEstablishmentTimeout|:CH_HIQ_BACKUP;F;NEW!ConnectionRetryCount|:CH_HIQ_BACKUP;F;NEW!DailyDirectories|no:CH_HIQ_BACKUP;F;NEW!MaximumSustainedNetworkDowntime|:CH_HIQ_BACKUP;F;NEW!TempDirectory|:CH_HIQ_BACKUP;F;NEW!TransferRetryInterval|:CH_HIQ_PRIMECARRIER_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_HIQ_R10_DECODER;F;NEW!PercentOfRejectedRecordsAllowed|:CH_HIQ_KENAN_DISTRIBUTOR;F;NEW!Subdirectory|:Another case:
set serveroutput on;
execute upcstreamdifferences.ParameterValues('UPC_CH_PPV',47,56);
anonymous block completed
CH_PPV_PRODIS_COLLECTOR;F;NEW!SourceDirectory|${EventLinkUserHome}/delivery/${StreamName}/INPUT/PRODIS:CH_PPV_CAS_COLLECTOR;F;NEW!RecordLimit|10000:CH_PPV_BACKUP;F;NEW!ConnectionRetryInterval|:CH_PPV_BACKUP;F;NEW!DestinationHost|:CH_PPV_BACKUP;F;NEW!InputLinkDirectories|Yes:CH_PPV_BACKUP;F;NEW!Password|:CH_PPV_BACKUP;F;NEW!TransferMode|:CH_PPV_RDC;F;NEW!SeparationValue1|:CH_PPV_DWH_DISTRIBUTOR;F;NEW!PrivateKey|${EventLinkUserHome}/.ssh/id_rsa:CH_PPV_FRAUD_DISTRIBUTOR;F;NEW!Password|:CH_PPV_FRAUD_DISTRIBUTOR;F;NEW!TempDirectory|${EventLinkUserHome}/delivery/${StreamName}/OUTPUT/FRAUD/tmp:CH_PPV_PRODIS_FDC;F;NEW!SequenceChecking|0:CH_PPV_PRODIS_DECODER;F;NEW!PercentOfRejectedRecordsAllowed|:CH_PPV_DWH_ENCODER;F;NEW!CreateEmptyOutputFileOnSeparation|0:CH_PPV_DECODER;F;NEW!EscapeWithBackslash|0:CH_PPV_DECODER;F;NEW!InvalidLink|INVALID:CH_PPV_CAS_COLLECTOR;F;NEW!CasHeartbeatInterval|5m:CH_PPV_CAS_COLLECTOR;F;NEW!MaxAgeOfFile|30m:CH_PPV_AUDIT_DISTRIBUTOR;F;NEW!BehaviourOnError|Abort:CH_PPV_BACKUP;F;NEW!ConnectionEstablishmentTimeout|:CH_PPV_BACKUP;F;NEW!ConnectionRetryCount|:CH_PPV_BACKUP;F;NEW!InputLinksToSubDirectories|CAS_COLLECTOR=RAW/&SOURCEID,COLLECTED=RAW/&SOURCEID:CH_PPV_BACKUP;F;NEW!Kex|:CH_PPV_BACKUP;F;NEW!MaxDays|0:CH_PPV_BACKUP;F;NEW!RemotePrefix|:CH_PPV_BACKUP;F;NEW!TempDirectory|:CH_PPV_RDC;F;NEW!DuplicateCounter|P_0_1_1:CH_PPV_RDC;F;NEW!InputCounter|:CH_PPV_RDC;F;NEW!OutputDurationCounter|:CH_PPV_RDC;F;NEW!SeparationValue4|:CH_PPV_DWH_DISTRIBUTOR;F;NEW!CompressionMethod|compress:CH_PPV_DWH_DISTRIBUTOR;F;NEW!PublicKey|${EventLinkUserHome}/.ssh/id_rsa.pub:CH_PPV_FRAUD_DISTRIBUTOR;F;NEW!Username|${EventLinkUser}:CH_PPV_PRODIS_FDC;F;NEW!TRS.DataStorage|${StreamName}:CH_PPV_KENAN_ENCODER;F;NEW!MaxAgeOfFile|:CH_PPV_KENAN_ENCODER;F;NEW!OutputFileNameCreationMask|PV1.&SEQ(7).&CREATIONTIME(%Y%m%d%H%M%S).&SOURCEID.00.&MIN(EL_PURCHASE_DATETIME)-&MAX(EL_PURCHASE_DATETIME):CH_PPV_DWH_ENCODER;F;NEW!OutputDescriptionFileName|output_description.xml:CH_PPV_DECODER;F;NEW!PercentOfRejectedRecordsAllowed|:CH_PPV_DECODER;F;NEW!TrailerIdentifier|:CH_PPV_VALIDATOR;F;NEW!Timezone|${Timezone}:CH_PPV_CAS_COLLECTOR;F;NEW!CommitInterval|10s:CH_PPV_BACKUP;F;NEW!BehaviourOnError|Abort:CH_PPV_BACKUP;F;NEW!ExternalCommand|:CH_PPV_BACKUP;F;NEW!SourceIdDirectories|no:CH_PPV_BACKUP;F;NEW!TargetDirectory|/backup/BACKUP_EL603/${StreamName}:CH_PPV_BACKUP;F;NEW!TransferProtocol|Local:CH_PPV_RDC;F;NEW!SeparationCondition|:CH_PPV_RDC;F;NEW!SeparationValue5|:CH_PPV_FRAUD_DISTRIBUTOR;F;NEW!PrivateKey|${EventLinkUserHome}/.ssh/id_rsa:CH_PPV_LOCAL_COLLECTOR;F;NEW!OnlyCollectFilesOlderThan|:CH_PPV_VALIDATOR;F;NEW!InputCounter|I_0_2_1:CH_PPV_PRODIS_COLLECTOR;F;NEW!Username|${EventLinkUser}:CH_PPV_CAS_COLLECTOR;F;NEW!TransactionIdFile|${EventLinkUserHome}/delivery/${StreamName}/WORKING/id_file.txt:CH_PPV_PRODIS_RDC;F;NEW!DuplicateCheckEnabled|No:CH_PPV_PRODIS_RDC;F;NEW!RestartInterval|1d:CH_PPV_PRODIS_RDC;F;NEW!TRS.DataStorage|${StreamName}:CH_PPV_AUDIT_DISTRIBUTOR;F;NEW!TargetDirectory|${EventLinkUserHome}/delivery/UPC_PE_Rejected_Loader_stream/INPUT/${Affiliate}_PPV:CH_PPV_AUDIT_DISTRIBUTOR;F;NEW!TempDirectory|${EventLinkUserHome}/delivery/UPC_PE_Rejected_Loader_stream/INPUT/${Affiliate}_PPV/temp:CH_PPV_BACKUP;F;NEW!BlockSize|:CH_PPV_BACKUP;F;NEW!Compression|:CH_PPV_BACKUP;F;NEW!FlagFileSuffix|:CH_PPV_BACKUP;F;NEW!OriginalFilenameMask|:CH_PPV_RDC;F;NEW!Keys|I_UA, I_IMS_PRODUCT_ID:CH_PPV_RDC;F;NEW!TRS.DataStorage|${StreamName}:CH_PPV_DWH_DISTRIBUTOR;F;NEW!Username|${EventLinkUser}:CH_PPV_KENAN_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_PPV_FRAUD_DISTRIBUTOR;F;NEW!PublicKey|${EventLinkUserHome}/.ssh/id_rsa.pub:CH_PPV_DWH_ENCODER;F;NEW!CreateEmptyOutputFileOnFlush|0:CH_PPV_CAS_COLLECTOR;F;NEW!OutputFileNameCreationMask|${Affiliate}CAS_&CREATIONTIME(%Y%m%d%H%M%S):CH_PPV_CAS_COLLECTOR;F;NEW!RestartInterval|1d:CH_PPV_AUDIT_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_PPV_BACKUP;F;NEW!MaximumReconnectionInterval|:CH_PPV_BACKUP;F;NEW!Port|:CH_PPV_BACKUP;F;NEW!TransferRetryInterval|:CH_PPV_RDC;F;NEW!DurationField|:CH_PPV_KENAN_DISTRIBUTOR;F;NEW!Subdirectory|:CH_PPV_KENAN_DISTRIBUTOR;F;NEW!TargetDirectory|${EventLinkUserHome}/delivery/${StreamName}/OUTPUT/KENAN:CH_PPV_FRAUD_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|:CH_PPV_LOCAL_COLLECTOR;F;NEW!BehaviourOnError|Abort:CH_PPV_KENAN_ENCODER;F;NEW!CreateEmptyOutputFileOnSeparation|0:CH_PPV_KENAN_ENCODER;F;NEW!OutputDescriptionFileName|dpv_old.xml:CH_PPV_KENAN_ENCODER;F;NEW!RecordLimit|:CH_PPV_DECODER;F;NEW!CSVFieldsContainDelimiters|0:CH_PPV_DECODER;F;NEW!DiscardEmptyFiles|0:CH_PPV_DECODER;F;NEW!OutputLink|DECODED:CH_PPV_DECODER;F;NEW!RecordIdentifier|:CH_PPV_CAS_COLLECTOR;F;NEW!NoDataTimeout|12h:CH_PPV_BACKUP;F;NEW!Cipher|:CH_PPV_BACKUP;F;NEW!MaximumSustainedNetworkDowntime|:CH_PPV_BACKUP;F;NEW!RemoteOS|:CH_PPV_BACKUP;F;NEW!Ruleset|backup.pm:CH_PPV_RDC;F;NEW!AuditFields|AUD_UA=I_UA, AUD_STU_NUMBER=I_STU_NUMBER, AUD_IMS_PRODUCT_ID=I_IMS_PRODUCT_ID:CH_PPV_RDC;F;NEW!SeparationValue2|:CH_PPV_RDC;F;NEW!SeparationValue3|:CH_PPV_DWH_DISTRIBUTOR;F;NEW!OutputFileNameExtractionMask|CDR\.(.+):CH_PPV_DWH_DISTRIBUTOR;F;NEW!TargetDirectory|${EventLinkUserHome}/delivery/${StreamName}/OUTPUT/DWH:CH_PPV_FRAUD_DISTRIBUTOR;F;NEW!TargetDirectory|${EventLinkUserHome}/delivery/${StreamName}/OUTPUT/FRAUD:CH_PPV_HORIZON_BLN;F;NEW!KenanCounter|K_0_1_2:CH_PPV_DWH_ENCODER;F;NEW!MaxAgeOfFile|:CH_PPV_DECODER;F;NEW!AuditFiltered|1:CH_PPV_DECODER;F;NEW!HeaderIdentifier|:CH_PPV_AUDIT_ENCODER;F;NEW!OutputDescriptionFileName|vod.xml:CH_PPV_CAS_COLLECTOR;F;NEW!BindTimeout|10s:CH_PPV_PRODIS_RDC;F;NEW!OutputCounter|B_0_1_2:CH_PPV_AUDIT_DISTRIBUTOR;F;NEW!Subdirectory|:CH_PPV_BACKUP;F;NEW!PrivateKey|:CH_PPV_BACKUP;F;NEW!PublicKey|:CH_PPV_BACKUP;F;NEW!Username|:CH_PPV_RDC;F;NEW!DuplicateCheckEnabled|No:CH_PPV_RDC;F;NEW!DuplicateDurationCounter|:CH_PPV_RDC;F;NEW!OutputCounter|:CH_PPV_RDC;F;NEW!RestartInterval|1d:CH_PPV_DWH_DISTRIBUTOR;F;NEW!Subdirectory|UPC${Affiliate}_$1:CH_PPV_KENAN_DISTRIBUTOR;F;NEW!Username|${EventLinkUser}:CH_PPV_KENAN_DWH_BLN;F;NEW!ReprocessLimit|100d:CH_PPV_LOCAL_COLLECTOR;F;NEW!SourceDirectory|${EventLinkUserHome}/delivery/${StreamName}/INPUT/:CH_PPV_KENAN_ENCODER;F;NEW!CreateEmptyOutputFileOnFlush|0:CH_PPV_KENAN_ENCODER;F;NEW!SeparateSequenceNumbersInOutput|0:CH_PPV_DWH_ENCODER;F;NEW!CreateEmptyOutputFiles|0:CH_PPV_PRODIS_COLLECTOR;F;NEW!DeleteSource|No:CH_PPV_PRODIS_COLLECTOR;F;NEW!RemotePrefix|old_:CH_PPV_CAS_COLLECTOR;F;NEW!CloseFilesAtSchedule|0:CH_PPV_BACKUP;F;NEW!CompressionMethod|gzip:CH_PPV_BACKUP;F;NEW!DailyDirectories|no:CH_PPV_BACKUP;F;NEW!MaxFiles|0:CH_PPV_BACKUP;F;NEW!RemoteSuffix|:CH_PPV_BACKUP;F;NEW!TempSuffix|:CH_PPV_BACKUP;F;NEW!TransferRetryCount|:CH_PPV_BACKUP;F;NEW!TransferType|:CH_PPV_RDC;F;NEW!InputDurationCounter|:CH_PPV_DWH_DISTRIBUTOR;F;NEW!Password|:CH_PPV_FRAUD_DISTRIBUTOR;F;NEW!Subdirectory|:CH_PPV_HORIZON_BLN;F;NEW!OracleDatabaseName|${EventLinkDatabase}:CH_PPV_KENAN_ENCODER;F;NEW!CreateEmptyOutputFiles|0:CH_PPV_KENAN_ENCODER;F;NEW!DataRecordType|PV1:CH_PPV_DECODER;F;NEW!DiscardOnRejection|0:CH_PPV_DECODER;F;NEW!InputDescription|cas.desc:CH_PPV_DECODER;F;NEW!RejectInvalid|0:CH_PPV_DECODER;F;NEW!SendInvalid|1:CH_PPV_VALIDATOR;F;NEW!RejectedCounter|P_0_1_1:CH_PPV_VALIDATOR;F;NEW!RestartInterval|1d:
CH_PPV_OUTPUT_BACKUP;F;OLD!Compression|:CH_PPV_OUTPUT_BACKUP;F;OLD!Port|:CH_PPV_OUTPUT_BACKUP;F;OLD!TempDirectory|:CH_PPV_OUTPUT_BACKUP;F;OLD!TransferRetryCount|:CH_PPV_OUTPUT_BACKUP;F;OLD!TransferType|:CH_PPV_AUDIT_ENCODER;F;OLD!OutputDescriptionFileName|audit_file_description.xml:CH_PPV_RDC;F;OLD!TRS.DataStorage|UPCCH_PPV:CH_PPV_DWH_DISTRIBUTOR;F;OLD!Username|u1elkpe:CH_PPV_KENAN_ENCODER;F;OLD!CreateEmptyOutputFileOnSeparation|:CH_PPV_KENAN_ENCODER;F;OLD!CreateEmptyOutputFiles|:CH_PPV_KENAN_ENCODER;F;OLD!OutputFileNameCreationMask|PV1.&SEQ(7).&CREATIONTIME(%Y%m%d%H%M%S).&SOURCEID.00.&MIN(EL_PURCHASE_LOCALTIME)-&MAX(EL_PURCHASE_LOCALTIME2):CH_PPV_KENAN_DWH_BLN;F;OLD!AuditOutType|${AuditOutType}:CH_PPV_RAW_BACKUP;F;OLD!ConnectionRetryInterval|:CH_PPV_RAW_BACKUP;F;OLD!TempSuffix|:CH_PPV_PRODIS_FDC;F;OLD!TRS.DataStorage|UPCCH_PPV:CH_PPV_HORIZON_BLN;F;OLD!OracleDatabaseName|U1ELKPE:CH_PPV_OUTPUT_BACKUP;F;OLD!BehaviourOnError|Restart:CH_PPV_OUTPUT_BACKUP;F;OLD!Kex|:CH_PPV_OUTPUT_BACKUP;F;OLD!TargetDirectory|/backup/BACKUP_EL603/UPCCH_PPV:CH_PPV_PRODIS_RDC;F;OLD!NodeName|CH_PPV_PRODIS_RDC:CH_PPV_AUDIT_DISTRIBUTOR;F;OLD!TempDirectory|${EventLinkUserHome}/delivery/UPC_PE_Rejected_Loader_stream/INPUT/CH_PPV/temp:CH_PPV_RDC;F;OLD!StreamName|${StreamName}:CH_PPV_DWH_DISTRIBUTOR;F;OLD!PrivateKey|:CH_PPV_KENAN_ENCODER;F;OLD!CreateEmptyOutputFileOnFlush|:CH_PPV_RAW_BACKUP;F;OLD!BehaviourOnError|Restart:CH_PPV_RAW_BACKUP;F;OLD!FlagFileSuffix|:CH_PPV_RAW_BACKUP;F;OLD!OriginalFilenameMask|:CH_PPV_RAW_BACKUP;F;OLD!PrivateKey|:CH_PPV_RAW_BACKUP;F;OLD!RemoteOS|:CH_PPV_RAW_BACKUP;F;OLD!TargetDirectory|/backup/BACKUP_EL603/UPCCH_PPV/RAW:CH_PPV_DECODER;F;OLD!DiscardFailureThreshold|15:CH_PPV_VALIDATOR;F;OLD!AuditOutType|${AuditOutType}:CH_PPV_OUTPUT_BACKUP;F;OLD!BlockSize|:CH_PPV_OUTPUT_BACKUP;F;OLD!ConnectionRetryInterval|:CH_PPV_OUTPUT_BACKUP;F;OLD!FlagFileSuffix|:CH_PPV_OUTPUT_BACKUP;F;OLD!MaxDays|30:CH_PPV_OUTPUT_BACKUP;F;OLD!MaxFiles|0:CH_PPV_OUTPUT_BACKUP;F;OLD!MaximumSustainedNetworkDowntime|:CH_PPV_OUTPUT_BACKUP;F;OLD!Password|:CH_PPV_OUTPUT_BACKUP;F;OLD!RemoteOS|:CH_PPV_OUTPUT_BACKUP;F;OLD!TransferMode|:CH_PPV_PRODIS_RDC;F;OLD!TRS.DataStorage|UPCCH_PPV:CH_PPV_DWH_ENCODER;F;OLD!CreateEmptyOutputFileOnSeparation|:CH_PPV_DWH_ENCODER;F;OLD!MaxAgeOfFile|1M:CH_PPV_RDC;F;OLD!DuplicateCheckEnabled|Yes:CH_PPV_DWH_DISTRIBUTOR;F;OLD!TargetDirectory|${EventLinkUserHome}/delivery/UPCCH_PPV/OUTPUT/DWH:CH_PPV_RAW_BACKUP;F;OLD!BlockSize|:CH_PPV_RAW_BACKUP;F;OLD!DailyDirectories|no:CH_PPV_RAW_BACKUP;F;OLD!InputLinkDirectories|No:CH_PPV_RAW_BACKUP;F;OLD!RemoteSuffix|.&CREATIONTIME(%Y%m%d%H%M%S):CH_PPV_RAW_BACKUP;F;OLD!TransferRetryInterval|:CH_PPV_PRODIS_COLLECTOR;F;OLD!RemotePrefix|:CH_PPV_LOCAL_COLLECTOR;F;OLD!SourceDirectory|${EventLinkUserHome}/delivery/UPCCH_PPV/INPUT/:CH_PPV_PRODIS_COMMON_BLN;F;OLD!StreamName|${StreamName}:CH_PPV_HORIZON_BLN;F;OLD!AuditOutType|${AuditOutType}:CH_PPV_OUTPUT_BACKUP;F;OLD!InputLinkDirectories|Yes:CH_PPV_DWH_ENCODER;F;OLD!CreateEmptyOutputFileOnFlush|:CH_PPV_DWH_ENCODER;F;OLD!CreateEmptyOutputFiles|:CH_PPV_KENAN_ENCODER;F;OLD!SeparateSequenceNumbersInOutput|1:CH_PPV_KENAN_DISTRIBUTOR;F;OLD!TargetDirectory|${EventLinkUserHome}/delivery/UPCCH_PPV/OUTPUT/KENAN:CH_PPV_FRAUD_DISTRIBUTOR;F;OLD!TargetDirectory|${EventLinkUserHome}/delivery/UPCCH_PPV/OUTPUT/FRAUD:CH_PPV_FRAUD_DISTRIBUTOR;F;OLD!Username|u1elkpe:CH_PPV_KENAN_DWH_BLN;F;OLD!StreamName|${StreamName}:CH_PPV_RAW_BACKUP;F;OLD!ConnectionEstablishmentTimeout|:CH_PPV_RAW_BACKUP;F;OLD!Port|:CH_PPV_RAW_BACKUP;F;OLD!Ruleset|backup.pm:CH_PPV_CAS_COLLECTOR;F;OLD!BindTimeout|10:CH_PPV_CAS_COLLECTOR;F;OLD!CasHeartbeatInterval|300:CH_PPV_OUTPUT_BACKUP;F;OLD!DailyDirectories|no:CH_PPV_OUTPUT_BACKUP;F;OLD!RemotePrefix|:CH_PPV_OUTPUT_BACKUP;F;OLD!SourceIdDirectories|no:CH_PPV_OUTPUT_BACKUP;F;OLD!Username|:CH_PPV_PRODIS_RDC;F;OLD!DuplicateCheckEnabled|Yes:CH_PPV_DWH_ENCODER;F;OLD!OutputDescriptionFileName|brio_description.xml:CH_PPV_DWH_DISTRIBUTOR;F;OLD!PublicKey|:CH_PPV_KENAN_ENCODER;F;OLD!MaxAgeOfFile|86400:CH_PPV_KENAN_ENCODER;F;OLD!OutputDescriptionFileName|kenan_description.xml:CH_PPV_FRAUD_DISTRIBUTOR;F;OLD!PrivateKey|:CH_PPV_RAW_BACKUP;F;OLD!CompressionMethod|gzip:CH_PPV_RAW_BACKUP;F;OLD!ConnectionRetryCount|:CH_PPV_RAW_BACKUP;F;OLD!RemotePrefix|:CH_PPV_RAW_BACKUP;F;OLD!TransferMode|:CH_PPV_RAW_BACKUP;F;OLD!Username|:CH_PPV_CAS_COLLECTOR;F;OLD!CommitInterval|10:CH_PPV_CAS_COLLECTOR;F;OLD!OutputFileNameCreationMask|CHCAS_&CREATIONTIME(%Y%m%d%H%M%S):CH_PPV_HORIZON_BLN;F;OLD!StreamName|${StreamName}:CH_PPV_DECODER;F;OLD!SendDiscardedFilesToLink|:CH_PPV_OUTPUT_BACKUP;F;OLD!CompressionMethod|gzip:CH_PPV_OUTPUT_BACKUP;F;OLD!ConnectionEstablishmentTimeout|:CH_PPV_OUTPUT_BACKUP;F;OLD!ConnectionRetryCount|:CH_PPV_OUTPUT_BACKUP;F;OLD!DestinationHost|:CH_PPV_OUTPUT_BACKUP;F;OLD!MaximumReconnectionInterval|:CH_PPV_OUTPUT_BACKUP;F;OLD!OriginalFilenameMask|:CH_PPV_OUTPUT_BACKUP;F;OLD!TransferProtocol|Local:CH_PPV_OUTPUT_BACKUP;F;OLD!TransferRetryInterval|:CH_PPV_PRODIS_RDC;F;OLD!OutputCounter|B_0_2_1:CH_PPV_AUDIT_DISTRIBUTOR;F;OLD!TargetDirectory|${EventLinkUserHome}/delivery/UPC_PE_Rejected_Loader_stream/INPUT/CH_PPV:CH_PPV_DWH_DISTRIBUTOR;F;OLD!CompressionMethod|no compression:CH_PPV_FRAUD_DISTRIBUTOR;F;OLD!TempDirectory|${EventLinkUserHome}/delivery/UPCCH_PPV/OUTPUT/FRAUD/tmp:CH_PPV_RAW_BACKUP;F;OLD!Cipher|:CH_PPV_RAW_BACKUP;F;OLD!Compression|:CH_PPV_RAW_BACKUP;F;OLD!MaximumReconnectionInterval|:CH_PPV_RAW_BACKUP;F;OLD!MaximumSustainedNetworkDowntime|:CH_PPV_RAW_BACKUP;F;OLD!TransferType|:CH_PPV_PRODIS_COLLECTOR;F;OLD!DeleteSource|Yes:CH_PPV_LOCAL_COLLECTOR;F;OLD!BehaviourOnError|Restart:CH_PPV_HORIZON_BLN;F;OLD!KenanCounter|K_0_2_1:CH_PPV_VALIDATOR;F;OLD!StreamName|${StreamName}:CH_PPV_OUTPUT_BACKUP;F;OLD!Cipher|:CH_PPV_OUTPUT_BACKUP;F;OLD!ExternalCommand|:CH_PPV_OUTPUT_BACKUP;F;OLD!PrivateKey|:CH_PPV_OUTPUT_BACKUP;F;OLD!RemoteSuffix|:CH_PPV_AUDIT_DISTRIBUTOR;F;OLD!BehaviourOnError|Restart:CH_PPV_RDC;F;OLD!Keys|I_UA, I_PURCHASE_DATE, I_PURCHASE_TIME, I_IMS_PRODUCT_ID:CH_PPV_KENAN_ENCODER;F;OLD!RecordLimit|100:CH_PPV_KENAN_DISTRIBUTOR;F;OLD!Username|u1elkpe:CH_PPV_FRAUD_DISTRIBUTOR;F;OLD!Password|u1elkpe:CH_PPV_KENAN_DWH_BLN;F;OLD!202_DEFAULT_TIME|000000:CH_PPV_RAW_BACKUP;F;OLD!DestinationHost|:CH_PPV_RAW_BACKUP;F;OLD!ExternalCommand|:CH_PPV_RAW_BACKUP;F;OLD!Kex|:CH_PPV_RAW_BACKUP;F;OLD!Password|:CH_PPV_RAW_BACKUP;F;OLD!PublicKey|:CH_PPV_RAW_BACKUP;F;OLD!SourceIdDirectories|yes:CH_PPV_RAW_BACKUP;F;OLD!TempDirectory|:CH_PPV_RAW_BACKUP;F;OLD!TransferProtocol|Local:CH_PPV_PRODIS_FDC;F;OLD!SequenceChecking|1:CH_PPV_OUTPUT_BACKUP;F;OLD!PublicKey|:CH_PPV_OUTPUT_BACKUP;F;OLD!Ruleset|backup.pm:CH_PPV_OUTPUT_BACKUP;F;OLD!TempSuffix|:CH_PPV_PRODIS_RDC;F;OLD!StreamName|${StreamName}:CH_PPV_DWH_DISTRIBUTOR;F;OLD!Password|u1elkpe:CH_PPV_FRAUD_DISTRIBUTOR;F;OLD!PublicKey|:CH_PPV_KENAN_DWH_BLN;F;OLD!LsAdmin|${EventLinkUserHome}/EventLink/lookup_server3/bin/ls_admin:CH_PPV_KENAN_DWH_BLN;F;OLD!ReprocessLimit|100:CH_PPV_RAW_BACKUP;F;OLD!MaxDays|30:CH_PPV_RAW_BACKUP;F;OLD!MaxFiles|0:CH_PPV_RAW_BACKUP;F;OLD!TransferRetryCount|:CH_PPV_PRODIS_COLLECTOR;F;OLD!SourceDirectory|${EventLinkUserHome}/delivery/UPCCH_PPV/INPUT/PRODIS:CH_PPV_PRODIS_COLLECTOR;F;OLD!Username|u1elkpe:CH_PPV_CAS_COLLECTOR;F;OLD!TransactionIdFile|${EventLinkUserHome}/delivery/UPCCH_PPV/WORKING/id_file.txt:CH_PPV_PRODIS_COMMON_BLN;F;OLD!AuditOutType|${AuditOutType}:CH_PPV_DECODER;F;OLD!NetworkElementID|CAS:CH_PPV_DECODER;F;OLD!UseRecordSequenceNumbers|:I do not understand why this throws unexpected errors. Can you please help in resolving the problem.
Edited by: BluShadow on 09-Oct-2012 09:37
added {noformat}{noformat} tags for readability. Please read {message:id=9360002} and learn to do this yourself in future.Hi,
Returned rows from the query are as follows;
"NODENAME" "OLDCOUNTER" "NEWCOUNTER" "NODEPARAMETER" "NODEPARAMETERVALUE"
"CH_HIQ_ICONX_BACKUP" 1 0 "BehaviourOnError" "Abort"
"CH_HIQ_ICONX_BACKUP" 1 0 "DestinationHost" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "Kex" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "TransferMode" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "TransferRetryInterval" ""
"CH_HIQ_DWH_BACKUP" 1 0 "ConnectionRetryCount" ""
"CH_HIQ_DWH_BACKUP" 1 0 "DailyDirectories" "no"
"CH_HIQ_DWH_BACKUP" 1 0 "MaximumSustainedNetworkDowntime" ""
"CH_HIQ_DWH_BACKUP" 1 0 "OriginalFilenameMask" ""
"CH_HIQ_DWH_BACKUP" 1 0 "TempSuffix" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "ConnectionRetryCount" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "DestinationHost" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "MaxDays" "0"
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "MaximumSustainedNetworkDowntime" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "Ruleset" "backup.pm"
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "TransferRetryCount" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "TransferType" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "Cipher" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "MaximumReconnectionInterval" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "ConnectionEstablishmentTimeout" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "ExternalCommand" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "RemoteSuffix" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "TransferProtocol" "Local"
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "TransferRetryCount" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "TransferRetryInterval" ""
"CH_HIQ_RAW_BACKUP" 1 0 "BlockSize" ""
"CH_HIQ_RAW_BACKUP" 1 0 "RemoteOS" ""
"CH_HIQ_RAW_BACKUP" 1 0 "RemotePrefix" ""
"CH_HIQ_RAW_BACKUP" 1 0 "TransferProtocol" "Local"
"CH_HIQ_RAW_BACKUP" 1 0 "TransferRetryCount" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "BehaviourOnError" "Abort"
"CH_HIQ_FRAUD_BACKUP" 1 0 "Compression" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "DailyDirectories" "no"
"CH_HIQ_FRAUD_BACKUP" 1 0 "MaxDays" "0"
"CH_HIQ_FRAUD_BACKUP" 1 0 "PublicKey" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "BlockSize" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "CompressionMethod" "gzip"
"CH_HIQ_KENAN_BACKUP" 1 0 "ConnectionRetryInterval" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "FlagFileSuffix" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "TempSuffix" ""
"CH_HIQ_BACKUP" 0 1 "BlockSize" ""
"CH_HIQ_BACKUP" 0 1 "CompressionMethod" "gzip"
"CH_HIQ_BACKUP" 0 1 "PrivateKey" ""
"CH_HIQ_BACKUP" 0 1 "PublicKey" ""
"CH_HIQ_TAIFUN_DISTRIBUTOR" 0 1 "Subdirectory" ""
"CH_HIQ_KENAN_DISTRIBUTOR" 0 1 "OutputFileNameExtractionMask" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "Cipher" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "MaximumReconnectionInterval" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "MaximumSustainedNetworkDowntime" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "Port" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "RemoteOS" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "Ruleset" "backup.pm"
"CH_HIQ_ICONX_BACKUP" 1 0 "TransferType" ""
"CH_HIQ_DWH_BACKUP" 1 0 "ExternalCommand" ""
"CH_HIQ_DWH_BACKUP" 1 0 "Ruleset" "backup.pm"
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "BehaviourOnError" "Abort"
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "Compression" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "RemoteSuffix" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "TransferProtocol" "Local"
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "TransferRetryInterval" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "Compression" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "ConnectionRetryCount" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "PrivateKey" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "RemoteSuffix" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "Ruleset" "backup.pm"
"CH_HIQ_TAIFUN_BACKUP" 1 0 "TempDirectory" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "MaxFiles" "0"
"CH_HIQ_RAW_BACKUP" 1 0 "ConnectionRetryInterval" ""
"CH_HIQ_RAW_BACKUP" 1 0 "OriginalFilenameMask" ""
"CH_HIQ_RAW_BACKUP" 1 0 "Password" ""
"CH_HIQ_RAW_BACKUP" 1 0 "PrivateKey" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "ConnectionRetryCount" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "RemoteSuffix" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "TargetDirectory" "/backup/BACKUP_EL603/UPCCH_HIQ/FRAUD"
"CH_HIQ_AUDIT_REJECTED_ENCODER" 1 0 "OutputDescriptionFileName" "rejected_to_audit_description.xml"
"CH_HIQ_KENAN_BACKUP" 1 0 "BehaviourOnError" "Abort"
"CH_HIQ_KENAN_BACKUP" 1 0 "DailyDirectories" "no"
"CH_HIQ_KENAN_BACKUP" 1 0 "ExternalCommand" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "Kex" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "TransferType" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "Username" ""
"CH_HIQ_OTF01A_COLLECTOR" 0 1 "OnlyCollectFilesOlderThan" ""
"CH_HIQ_BACKUP" 0 1 "BehaviourOnError" "Abort"
"CH_HIQ_BACKUP" 0 1 "FlagFileSuffix" ""
"CH_HIQ_BACKUP" 0 1 "InputLinkDirectories" "Yes"
"CH_HIQ_BACKUP" 0 1 "Port" ""
"CH_HIQ_BACKUP" 0 1 "RemoteSuffix" ""
"CH_HIQ_BACKUP" 0 1 "Ruleset" "backup.pm"
"CH_HIQ_FRAUD_DISTRIBUTOR" 0 1 "OutputFileNameExtractionMask" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "ConnectionRetryCount" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "TargetDirectory" "/backup/BACKUP_EL603/UPCCH_HIQ/ICONX"
"CH_HIQ_DWH_BACKUP" 1 0 "FlagFileSuffix" ""
"CH_HIQ_DWH_BACKUP" 1 0 "Kex" ""
"CH_HIQ_DWH_BACKUP" 1 0 "RemoteSuffix" ""
"CH_HIQ_DWH_BACKUP" 1 0 "TransferRetryInterval" ""
"CH_HIQ_VALIDATION" 1 0 "MigrationCutOffDate" "20100924000000"
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "PrivateKey" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "TransferRetryInterval" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "CompressionMethod" "gzip"
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "FlagFileSuffix" ""
"CH_HIQ_RAW_BACKUP" 1 0 "ConnectionEstablishmentTimeout" ""
"CH_HIQ_RAW_BACKUP" 1 0 "FlagFileSuffix" ""
"CH_HIQ_RAW_BACKUP" 1 0 "MaxFiles" "0"
"CH_HIQ_RAW_BACKUP" 1 0 "MaximumSustainedNetworkDowntime" ""
"CH_HIQ_RAW_BACKUP" 1 0 "TempSuffix" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "ExternalCommand" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "FlagFileSuffix" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "PrivateKey" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "MaxDays" "0"
"CH_HIQ_KENAN_BACKUP" 1 0 "MaxFiles" "0"
"CH_HIQ_KENAN_BACKUP" 1 0 "SourceIdDirectories" "no"
"CH_HIQ_KENAN_BACKUP" 1 0 "TransferMode" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "TransferProtocol" "Local"
"CH_HIQ_DWH_DISTRIBUTOR" 0 1 "OutputFileNameExtractionMask" ""
"CH_HIQ_HU_TOOL_DISTRIBUTOR" 0 1 "OutputFileNameExtractionMask" ""
"CH_HIQ_BACKUP" 0 1 "RemotePrefix" ""
"CH_HIQ_BACKUP" 0 1 "SourceIdDirectories" "no"
"CH_HIQ_BACKUP" 0 1 "TransferProtocol" "Local"
"CH_HIQ_BACKUP" 0 1 "TransferType" ""
"CH_HIQ_R14_DECODER" 0 1 "RejectInvalid" "1"
"CH_HIQ_ICONX_BACKUP" 1 0 "BlockSize" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "CompressionMethod" "gzip"
"CH_HIQ_ICONX_BACKUP" 1 0 "MaxDays" "0"
"CH_HIQ_ICONX_BACKUP" 1 0 "Password" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "SourceIdDirectories" "no"
"CH_HIQ_ICONX_BACKUP" 1 0 "TransferProtocol" "Local"
"CH_HIQ_ICONX_BACKUP" 1 0 "TransferRetryCount" ""
"CH_HIQ_DWH_BACKUP" 1 0 "Password" ""
"CH_HIQ_DWH_BACKUP" 1 0 "TransferProtocol" "Local"
"CH_HIQ_DWH_BACKUP" 1 0 "Username" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "DailyDirectories" "no"
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "OriginalFilenameMask" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "TempDirectory" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "TransferMode" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "BehaviourOnError" "Abort"
"CH_HIQ_TAIFUN_BACKUP" 1 0 "ConnectionEstablishmentTimeout" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "MaximumSustainedNetworkDowntime" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "OriginalFilenameMask" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "RemoteOS" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "TransferType" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "MaxDays" "0"
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "PublicKey" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "TempSuffix" ""
"CH_HIQ_RAW_BACKUP" 1 0 "Compression" ""
"CH_HIQ_RAW_BACKUP" 1 0 "Kex" ""
"CH_HIQ_RAW_BACKUP" 1 0 "Ruleset" "backup.pm"
"CH_HIQ_RAW_BACKUP" 1 0 "Username" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "ConnectionRetryInterval" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "Kex" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "OriginalFilenameMask" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "Port" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "RemotePrefix" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "TransferRetryInterval" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "TransferType" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "DestinationHost" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "Port" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "TransferRetryCount" ""
"CH_HIQ_HU_TOOL_DISTRIBUTOR" 0 1 "Subdirectory" ""
"CH_HIQ_ICONX_DISTRIBUTOR" 0 1 "OutputFileNameExtractionMask" ""
"CH_HIQ_BACKUP" 0 1 "InputLinksToSubDirectories" "FILE_VALIDATED=RAW/&SOURCEID"
"CH_HIQ_BACKUP" 0 1 "TargetDirectory" "/backup/BACKUP_EL603/UPCCH_HIQ/"
"CH_HIQ_BACKUP" 0 1 "Username" ""
"CH_HIQ_R10_DECODER" 0 1 "RejectInvalid" "1"
"CH_HIQ_VSSOTF_COLLECTOR" 0 1 "OnlyCollectFilesOlderThan" ""
"CH_HIQ_AUDIT_REJECTED_DISTRIBUTOR" 0 1 "Subdirectory" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "OriginalFilenameMask" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "PrivateKey" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "RemoteSuffix" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "TempDirectory" ""
"CH_HIQ_DWH_BACKUP" 1 0 "BehaviourOnError" "Abort"
"CH_HIQ_DWH_BACKUP" 1 0 "Cipher" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "ConnectionEstablishmentTimeout" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "ConnectionRetryInterval" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "MaxFiles" "0"
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "TempSuffix" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "FlagFileSuffix" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "Password" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "Port" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "TargetDirectory" "/backup/BACKUP_EL603/UPCCH_HIQ/TAIFUN"
"CH_HIQ_TAIFUN_BACKUP" 1 0 "TransferRetryCount" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "Username" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "MaximumReconnectionInterval" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "MaximumSustainedNetworkDowntime" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "OriginalFilenameMask" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "Password" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "RemoteOS" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "Ruleset" "backup.pm"
"CH_HIQ_RAW_BACKUP" 1 0 "BehaviourOnError" "Abort"
"CH_HIQ_RAW_BACKUP" 1 0 "Cipher" ""
"CH_HIQ_RAW_BACKUP" 1 0 "ConnectionRetryCount" ""
"CH_HIQ_RAW_BACKUP" 1 0 "DailyDirectories" "no"
"CH_HIQ_RAW_BACKUP" 1 0 "DestinationHost" ""
"CH_HIQ_RAW_BACKUP" 1 0 "SourceIdDirectories" "yes"
"CH_HIQ_RAW_BACKUP" 1 0 "TempDirectory" ""
"CH_HIQ_RAW_BACKUP" 1 0 "TransferRetryInterval" ""
"CH_HIQ_LOOKUPS" 1 0 "LsAdmin" "${EventLinkUserHome}/EventLink/lookup_server3/bin/ls_admin"
"CH_HIQ_FRAUD_BACKUP" 1 0 "Cipher" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "DestinationHost" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "Ruleset" "backup.pm"
"CH_HIQ_KENAN_BACKUP" 1 0 "TargetDirectory" "/backup/BACKUP_EL603/UPCCH_HIQ/KENAN"
"CH_HIQ_KENAN_BACKUP" 1 0 "TransferRetryInterval" ""
"CH_HIQ_DWH_DISTRIBUTOR" 0 1 "Subdirectory" ""
"CH_HIQ_BACKUP" 0 1 "Cipher" ""
"CH_HIQ_BACKUP" 0 1 "ConnectionRetryInterval" ""
"CH_HIQ_BACKUP" 0 1 "MaximumReconnectionInterval" ""
"CH_HIQ_TAIFUN_DISTRIBUTOR" 0 1 "OutputFileNameExtractionMask" ""
"CH_HIQ_GLB01A_COLLECTOR" 0 1 "OnlyCollectFilesOlderThan" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "Compression" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "DailyDirectories" "no"
"CH_HIQ_ICONX_BACKUP" 1 0 "ExternalCommand" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "MaxFiles" "0"
"CH_HIQ_ICONX_BACKUP" 1 0 "PublicKey" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "TempSuffix" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "Username" ""
"CH_HIQ_DWH_BACKUP" 1 0 "MaxDays" "0"
"CH_HIQ_DWH_BACKUP" 1 0 "PublicKey" ""
"CH_HIQ_DWH_BACKUP" 1 0 "TransferType" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "BlockSize" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "ExternalCommand" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "FlagFileSuffix" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "RemotePrefix" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "SourceIdDirectories" "no"
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "TargetDirectory" "/backup/BACKUP_EL603/UPCCH_HIQ/AUDIT_REJECTED"
"CH_HIQ_TAIFUN_BACKUP" 1 0 "MaxDays" "0"
"CH_HIQ_TAIFUN_BACKUP" 1 0 "PublicKey" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "RemotePrefix" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "SourceIdDirectories" "no"
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "DailyDirectories" "no"
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "PrivateKey" ""
"CH_HIQ_RAW_BACKUP" 1 0 "MaxDays" "0"
"CH_HIQ_RAW_BACKUP" 1 0 "TargetDirectory" "/backup/BACKUP_EL603/UPCCH_HIQ/RAW"
"CH_HIQ_RAW_BACKUP" 1 0 "TransferMode" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "Password" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "RemoteOS" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "SourceIdDirectories" "no"
"CH_HIQ_FRAUD_BACKUP" 1 0 "TempDirectory" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "ConnectionRetryCount" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "OriginalFilenameMask" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "PrivateKey" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "PublicKey" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "RemoteOS" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "RemotePrefix" ""
"CH_HIQ_VSSBRN_COLLECTOR" 0 1 "OnlyCollectFilesOlderThan" ""
"CH_HIQ_BACKUP" 0 1 "DestinationHost" ""
"CH_HIQ_BACKUP" 0 1 "Password" ""
"CH_HIQ_BACKUP" 0 1 "TransferMode" ""
"CH_HIQ_BACKUP" 0 1 "TransferRetryCount" ""
"CH_HIQ_R10_DECODER" 0 1 "EscapeWithBackslash" "0"
"CH_HIQ_FRAUD_DISTRIBUTOR" 0 1 "Subdirectory" ""
"CH_HIQ_DWH_BACKUP" 1 0 "BlockSize" ""
"CH_HIQ_DWH_BACKUP" 1 0 "ConnectionRetryInterval" ""
"CH_HIQ_DWH_BACKUP" 1 0 "DestinationHost" ""
"CH_HIQ_DWH_BACKUP" 1 0 "MaxFiles" "0"
"CH_HIQ_DWH_BACKUP" 1 0 "MaximumReconnectionInterval" ""
"CH_HIQ_DWH_BACKUP" 1 0 "Port" ""
"CH_HIQ_DWH_BACKUP" 1 0 "PrivateKey" ""
"CH_HIQ_DWH_BACKUP" 1 0 "SourceIdDirectories" "no"
"CH_HIQ_DWH_BACKUP" 1 0 "TempDirectory" ""
"CH_HIQ_DWH_BACKUP" 1 0 "TransferMode" ""
"CH_HIQ_DWH_BACKUP" 1 0 "TransferRetryCount" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "CompressionMethod" "gzip"
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "Password" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "PublicKey" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "Username" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "BlockSize" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "ConnectionRetryInterval" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "DailyDirectories" "no"
"CH_HIQ_TAIFUN_BACKUP" 1 0 "DestinationHost" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "Kex" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "MaxFiles" "0"
"CH_HIQ_TAIFUN_BACKUP" 1 0 "TempSuffix" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "TransferMode" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "BlockSize" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "Cipher" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "Kex" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "TransferType" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "Username" ""
"CH_HIQ_RAW_BACKUP" 1 0 "CompressionMethod" "gzip"
"CH_HIQ_RAW_BACKUP" 1 0 "ExternalCommand" ""
"CH_HIQ_RAW_BACKUP" 1 0 "MaximumReconnectionInterval" ""
"CH_HIQ_RAW_BACKUP" 1 0 "PublicKey" ""
"CH_HIQ_RAW_BACKUP" 1 0 "TransferType" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "BlockSize" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "CompressionMethod" "gzip"
"CH_HIQ_FRAUD_BACKUP" 1 0 "MaximumReconnectionInterval" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "Ruleset" "backup.pm"
"CH_HIQ_FRAUD_BACKUP" 1 0 "TransferMode" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "TransferRetryCount" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "Username" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "Cipher" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "Compression" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "ConnectionEstablishmentTimeout" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "MaximumReconnectionInterval" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "Password" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "RemoteSuffix" ""
"CH_HIQ_KENAN_BACKUP" 1 0 "TempDirectory" ""
"CH_HIQ_BACKUP" 0 1 "ExternalCommand" ""
"CH_HIQ_BACKUP" 0 1 "Kex" ""
"CH_HIQ_BACKUP" 0 1 "MaxDays" "0"
"CH_HIQ_BACKUP" 0 1 "MaxFiles" "0"
"CH_HIQ_BACKUP" 0 1 "OriginalFilenameMask" ""
"CH_HIQ_BACKUP" 0 1 "RemoteOS" ""
"CH_HIQ_BACKUP" 0 1 "TempSuffix" ""
"CH_HIQ_AUDIT_REJECTED_ENCODER" 0 1 "OutputDescriptionFileName" "telephony.xml"
"CH_HIQ_PRIMECARRIER_DISTRIBUTOR" 0 1 "Subdirectory" ""
"CH_HIQ_R14_DECODER" 0 1 "EscapeWithBackslash" "0"
"CH_HIQ_R14_DECODER" 0 1 "PercentOfRejectedRecordsAllowed" ""
"CH_HIQ_AUDIT_REJECTED_DISTRIBUTOR" 0 1 "OutputFileNameExtractionMask" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "ConnectionEstablishmentTimeout" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "ConnectionRetryInterval" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "FlagFileSuffix" ""
"CH_HIQ_ICONX_BACKUP" 1 0 "RemotePrefix" ""
"CH_HIQ_DWH_BACKUP" 1 0 "Compression" ""
"CH_HIQ_DWH_BACKUP" 1 0 "CompressionMethod" "gzip"
"CH_HIQ_DWH_BACKUP" 1 0 "ConnectionEstablishmentTimeout" ""
"CH_HIQ_DWH_BACKUP" 1 0 "RemoteOS" ""
"CH_HIQ_DWH_BACKUP" 1 0 "RemotePrefix" ""
"CH_HIQ_DWH_BACKUP" 1 0 "TargetDirectory" "/backup/BACKUP_EL603/UPCCH_HIQ/DWH"
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "Cipher" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "Kex" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "MaximumReconnectionInterval" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "Port" ""
"CH_HIQ_AUDIT_REJECTED_BACKUP" 1 0 "RemoteOS" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "CompressionMethod" "gzip"
"CH_HIQ_TAIFUN_BACKUP" 1 0 "ExternalCommand" ""
"CH_HIQ_TAIFUN_BACKUP" 1 0 "TransferProtocol" "Local"
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "BehaviourOnError" "Abort"
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "Compression" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "ConnectionRetryCount" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "ConnectionRetryInterval" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "DestinationHost" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "Port" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "RemotePrefix" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "SourceIdDirectories" "no"
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "TargetDirectory" "/backup/BACKUP_EL603/UPCCH_HIQ/PRIMECARRIER"
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "TempDirectory" ""
"CH_HIQ_PRIMECARRIER_BACKUP" 1 0 "TransferMode" ""
"CH_HIQ_RAW_BACKUP" 1 0 "Port" ""
"CH_HIQ_RAW_BACKUP" 1 0 "RemoteSuffix" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "ConnectionEstablishmentTimeout" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "MaxFiles" "0"
"CH_HIQ_FRAUD_BACKUP" 1 0 "MaximumSustainedNetworkDowntime" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "TempSuffix" ""
"CH_HIQ_FRAUD_BACKUP" 1 0 "TransferProtocol" "Local"
"CH_HIQ_KENAN_BACKUP" 1 0 "MaximumSustainedNetworkDowntime" ""
"CH_HIQ_ICONX_DISTRIBUTOR" 0 1 "Subdirectory" ""
"CH_HIQ_BACKUP" 0 1 "Compression" ""
"CH_HIQ_BACKUP" 0 1 "ConnectionEstablishmentTimeout" ""
"CH_HIQ_BACKUP" 0 1 "ConnectionRetryCount" ""
"CH_HIQ_BACKUP" 0 1 "DailyDirectories" "no"
"CH_HIQ_BACKUP" 0 1 "MaximumSustainedNetworkDowntime" ""
"CH_HIQ_BACKUP" 0 1 "TempDirectory" ""
"CH_HIQ_BACKUP" 0 1 "TransferRetryInterval" ""
"CH_HIQ_PRIMECARRIER_DISTRIBUTOR" 0 1 "OutputFileNameExtractionMask" ""
"CH_HIQ_R10_DECODER" 0 1 "PercentOfRejectedRecordsAllowed" ""
"CH_HIQ_KENAN_DISTRIBUTOR" 0 1 "Subdirectory" "" -
Hi,
Can we tranfer CLOB data type over DBlink?
I heared we cannot tranfer CLOB data over DB link.So i'm having varchar data type and collects data into varchar variable and insert into removed table's clob column over db link.
Now i couldnt tranfer more than 4000 chars. But i want to tranfer 32000 chars..
Please give me some suggestions..
Thanks,
SujeethThanks for your updates..
Still i'm having issue..
The following procedure is working fine for me
Here i declared xml_msg_in as varchar and in the same procedure i'm inserting into dstb_to_wm_msg table's XML_DATA column which is CLOB
Declare
xml_msg_in varchar(32767);
Successful One:
Begin
xml_msg_in :=rpad('#',31999,'#');
insert into dstb_to_wm_msg("CREATE_DT","CREATED_BY","STATUS","MSG_TYPE","REC_NUM","APP_NAME","MSG_ID","XML_DATA") values (to_date('26-JUL-07','DD-MON-RR'),'OPRDV91','Y','item1',44447,'dwh','18523998',xml_msg_in);
commit;
End;
=================
Now my issue is, instead of inserting dstb_to_wm_msg table in same procedure i'm
passing this xml_msg_in varchar value to some other procdure(DWM_SEND_OUT_MSG_SP). In DWM_SEND_OUT_MSG_SP procedure i'm inserting into dstb_to_wm_msg table. Here only i'm getting error message.
Please refer the following one which is failing
declare
xml_msg_in varchar(32767);
begin
xml_msg_in := rpad('#',31999,'#');
DWM_SEND_OUT_MSG_SP('item1',
'dwh',
xml_msg_in,
lpad(12367, 8, '0'),
'IMMEDIATE',
'Test');
DBMS_OUTPUT.PUT_LINE('SQLCODE : ' || SQLCODE);
DBMS_OUTPUT.PUT_LINE('SQLERRM : ' || SQLERRM);
end;
==========================
DWM_SEND_OUT_MSG_SP procedure is as follows
PROCEDURE dwm_send_out_msg_sp(msg_type_in IN VARCHAR,
app_name_in IN VARCHAR,
xml_msg_in IN VARCHAR,
msg_id_in IN VARCHAR,
msg_pri_in IN VARCHAR,
prg_name_in IN VARCHAR)
Begin
Using this xml_msg_in variable we are just inserting into dstb_to_wm_msg table which is in Remote database.
End;
My aim is to send 32000 characters to remote database table (dstb_to_wm_msg) . I'm not in the position to change is table(dstb_to_wm_msg) column (xml_data)CLOB to Varchar.
Thanks for your support.
sujeeth
Maybe you are looking for
-
Get previous and latest salary from IT0008 Record
Hey guys, i am trying to develop a letter that needs to show an increment, i.e. grab the current and previous records from IT0008.. I have tried a few things: CALL FUNCTION 'HR_READ_INFOTYPE' >> this does not get the salary i need.. but gives m
-
I have a 1654 error code and is not listed....what do I do?
i have a 1654 error code and is not listed. what do I do?
-
Is anyone else getting a "secure"/"non-secure" items warning when iTunes is being launched from a webpage? The page with the problem lives on "https://deimos.apple.com". I don't think that I can fix the problem locally, but the warning stops iTunes f
-
FF67 Batch Input session not created
Dear All, When I am key in the manual bank statement in FF67 system doesnot generate the batch input session in SM35. In FF67 in setting - specification I have selected 2 i.e. to generate batch. Please guide me what might be the reason. Thanks & Reg
-
Techniques to create template-like flash...
I noticed that alot of flash templates, like at www.templatemonster.com, have alot of the same aesthetics/motions - loaders, page transitions (flips etc), etc... Is there a place where I can learn techniques used in many template sites? I can usually