ORA-24345 in valueOf(value 4k)
hi, ora 8.1.7.3, winxp sp1, xdk-plsql-9.2.0.4
the following fails with ORA-24345 when exceeding a node value of 4k both in oracle-jvm java and pl/sql. what's wrong about that?
regards peter
declare
-- make a buf > 4k to test by continuing bla bla ...
doc_buf varchar2(32767) :=
'<?xml version="1.0" encoding="ISO-8859-1" ?>' ||
'<root><bla>bla bla bla</bla></root>';
parser xmlparser.Parser;
doc xmldom.DOMDocument;
begin
dbms_output.put_line('buf-len: ' || length(doc_buf));
parser := xmlparser.newParser();
xmlparser.setValidationMode(parser, false);
xmlparser.parseBuffer(parser, doc_buf);
doc := xmlparser.getDocument(parser);
dbms_output.put_line(substr(xslprocessor.valueOf(xmldom.makeNode(doc), '/root/bla'), 1, 100));
xmlparser.freeParser(parser);
xmldom.freeDocument(doc);
exception when others then
dbms_output.put_line('Exception: ' || sqlerrm);
end;
Which version do you use? If you provide sample data and sample
code, we can take care of that.
Similar Messages
-
ORA-24345 on getNodeValue / getAttribute for Value 4095 chars
I get the error ORA-24345 when i try to fetch the value of an
attribute arnd 4096 chars.
I tried a few variations to get the Attribute Value but keep
getting the same problem
v_Attributes := XMLDOM.getAttributes(pix_Node);
IF XMLDOM.getLength(v_Attributes) > 0 THEN
FOR i IN 0..XMLDOM.getLength(v_Attributes) - 1 LOOP
v_AttribNode := XMLDOM.item(v_Attributes, i);
vr_Criteria.idx := pan_CriteriaIndex;
vr_Criteria.key := TRIM(XMLDOM.getNodeName
(v_AttribNode));
begin
debug_msg('make element');
v_element := XMLDOM.makeElement
(pix_Node);
debug_msg('getting attrib tcode_id');
vr_Criteria.value := XMLDOM.getAttribute
(v_element, 'TCODE_ID');
--OR
--vr_Criteria.value := TRIM
(XMLDOM.getNodeValue(v_AttribNode));
exception
when others then
debug_msg('error 1 :' || SQLERRM);
end;
debug_msg('length :' || length
(vr_Criteria.value ));
IF pot_Attributes.COUNT > 0 THEN
vn_Count := pot_Attributes.LAST + 1;
ELSE
vn_Count := 1;
END IF;
pot_Attributes.EXTEND;
pot_Attributes(vn_Count) := vr_Criteria;
END LOOP;
Any help will be really appreciated
-KalashWhich version do you use? If you provide sample data and sample
code, we can take care of that. -
Error while exporting : ORA-24801: illegal parameter value in OCI lob funct
hello,
I am doing an export on a 10.2.0.4 , solaris machine.
The table i am doing an export has a blob & clob.
During the export I get the error :
EXP-00056: ORACLE error 24801 encountered
ORA-24801: illegal parameter value in OCI lob function
In metalink it was given : Check every parameter in the OCI Lob function call to make sure they
are correct. Offsets should be greater than or equal to one.
Where should I check for that OCI Lob function. Or is there any other alternative to do the export.
Thanks for any help.I have increased the space on the mount I was doing the export and that solved the problem.
Thanks -
ORA-01405: fetched column value is NULL
Hi All,
I am using OWB 10gR2 and DB 10gR2. I am getting the following error while executing the mapping,
ORA-01405: fetched column value is NULL.
I have used NVL function for the measure columns, but the problem is not solved.
Can anybody please tell me solution,
Thanks in advance,
SivaHi Siva
It may be that you've taken care of null value in just one place and now, the error is coming
from somewhere further down the line.
Regards
Arif -
REP-1401 Fatal PL/SQL error occur ORA-06502 numeric or value error
Hi,
I am getting following error in reports 6i
REP-1401 Fatal PL/SQL error occur ORA-06502 numeric or value error.
I have added a formula column based on other formula column
function CF_1FORMULA0005 return varchar2 is
CF_CREDIT varchar2(38);
begin
:CF_CREDIT:= :D_CARRY_F_CR+:D_HD_SUM_REP_CR;
RETURN (:CF_CREDIT);
end;
Oracle Standard formula coulmn:
function D_CARRY_F_DRFormula return VARCHAR2 is
l_dr VARCHAR2(38);
l_dr_disp VARCHAR2(38);
begin
SRW.REFERENCE(:C_FUNC_CURRENCY);
SRW.REFERENCE(:C_CARRY_F_DR);
if (:C_CARRY_F_DR = 0) THEN
ax_globe_package.g_dr_cf := TRUE;
--l_dr:= '0.00';
l_dr_disp := '0.00';
l_dr := ax_currency_pkg.display_char(:C_FUNC_CURRENCY,l_dr_disp,38);
else
-- return(ax_currency_pkg.display_char(:C_FUNC_CURRENCY,:C_CARRY_F_DR,ax_page_pkg.f_maxlength));
-- Bug2239881. Setting the carried forward totals.
IF (:P_GLOBAL_ATTR_CAT = 'JE.GR.GLXSTBKS.BOOKS' AND ax_globe_package.g_dr_cf = FALSE) THEN
ax_globe_package.g_dr_cf := TRUE;
ax_globe_package.g_dr_total := :C_CARRY_F_DR;
END IF;
srw.message(999,'G_DR_TOTAL = ' || ax_globe_package.g_dr_total );
l_dr := ax_currency_pkg.display_char(:C_FUNC_CURRENCY,to_char(ax_globe_package.g_dr_total),38);
/*select to_number(l_dr, '999G999G999G999G990D00')
into l_dr_disp
from dual;
end if;
srw.message(999,'l_dr = ' || l_dr );
return l_dr;
--return ltrim(to_char(l_dr_disp,'999G999G999G999G990D00','nls_numeric_characters=,.'));
end;
both formula column return types are character.Please help me ASAP.
Thanks,
sriharsha.Hi,
First of all: when you should use concatenation operator (||) instead of plus sign when working with strings. So, instead of
:CF_CREDIT:= :D_CARRY_F_CR+:D_HD_SUM_REP_CR; you should use
:CF_CREDIT:= :D_CARRY_F_CR||:D_HD_SUM_REP_CR; If :D_CARRY_F_CR and :D_HD_SUM_REP_CR are both numbers then consider to use to_char function before you assign value to :CF_CREDIT.
I wonder, why your CF's returns varchar's if they operates on numbers?
regards
kikolus
Edited by: kikolus on 2012-11-30 08:03 -
ORA-06502:Numeric or value error ORA-01403: No data found --6502
Dear All
I am using Forms 10g.
I am calling a report from my form.
but when i am calling then it is showing this error:
ORA-06502:Numeric or value error ORA-01403: No data found --6502
My code is in Print Button :
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
plid ParamList;
vParamValue number;
BEGIN
plid := Get_parameter_List('tmp');
IF NOT Id_Null(plid) THEN
Destroy_parameter_List( plid );
END IF;
plid := Create_parameter_List('tmp');
Add_Parameter(PLid, 'P_Block', Text_Parameter, :block_query.item_block);
Add_Parameter(PLid, 'P_Category', Text_Parameter, :block_query.item_category);
Add_Parameter(PLid, 'P_Dept', Text_Parameter, :block_query.item_dept);
Add_Parameter(PLid, 'P_sub_Category', Text_Parameter, :block_query.item_sub_category);
Add_Parameter(PLid, 'P_FLOOR', Text_Parameter, :block_query.item_floor);
Add_Parameter(PLid, 'P_IP', Text_Parameter, :block_query.item_ip);
Add_Parameter(PLid, 'P_Room', Text_Parameter, :block_query.item_room);
Add_Parameter(PLid, 'P_Userid', Text_Parameter, :block_query.item_usr_id);
Add_Parameter(PLid, 'PARAMFORM', Text_Parameter, 'NO');
repid := FIND_REPORT_OBJECT('rp_report');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_oracleapps_eHOpeAS');
v_rep := RUN_REPORT_OBJECT(repid,plid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?
'||'server=rep_oracleapps_eHOpeAS');
Exception
When others then
message(Sqlerrm||'-'||sqlcode);
End;
Edited by: Sandip Mohapatra on Feb 8, 2010 12:44 AMhi
u can write for all no problem.
here is an example please modify it with u r requirements.
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
plid ParamList;
vParamValue number;
BEGIN
plid := Get_parameter_List('tmp');
IF NOT Id_Null(plid) THEN
Destroy_parameter_List( plid );
END IF;
plid := Create_parameter_List('tmp');
add_parameter(plid,'P_code',text_parameter,to_char(:hr.employee_code));
add_parameter(plid,'P_name',text_parameter,to_char(:hr.name));
add_parameter(plid,'P_fname',text_parameter,to_char(:hr.fname));
add_parameter(plid,'P_gender',text_parameter,to_char(:hr.gender));
add_parameter(plid,'P_married',text_parameter,to_char(:hr.marital_status));
add_parameter(plid,'P_job',text_parameter,to_char(:hr.job));
add_parameter(plid,'P_sal',text_parameter,to_char(:hr.sal));
add_parameter(plid,'P_dob',text_parameter,to_char(:hr.dob));
add_parameter(plid,'P_country',text_parameter,to_char(:hr.country));
add_parameter(plid,'P_nationality',text_parameter,to_char(:hr.nationality));
add_parameter(plid,'P_address',text_parameter,to_char(:hr.address));
add_parameter(plid,'p_imagecode',text_parameter,to_char(:images.employee_code));
Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');
repid := FIND_REPORT_OBJECT('REPORT6');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
SET_APPLICATION_PROPERTY(CURSOR_STYLE,'NORMAL');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
v_rep := RUN_REPORT_OBJECT(repid,plid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
/*Display report in the browser*/
WEB.SHOW_DOCUMENT('http://sarah:8890/reports/rwservlet/getjobid'||
substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver&P_code='||:hr.employee_code||'&P_name'
||:hr.name ||'&P_fname'|| :hr.fname ||'&P_gender'||:hr.gender||'&P_married'||:hr.marital_status||'&P_job'||:hr.job||'&P_sal'||:hr.sal||'&P_dob'||:hr.dob||
'&p_country'||:hr.country||'&p_natioanlity'||:hr.nationality||'&p_address'||:hr.address||'&p_image'||:images.employee_code||'¶mform=no','_SELF');
END;sarah -
ORA-39001: invalid argument value dbms_datapump.open
Hello,
I'm trying to import objects in a tablespace from a remote database.
The link source.de is working, but the dbms_datapump.open statements fails with below errors
SQL> var h number;
SQL> exec :h := dbms_datapump.open (operation => 'IMPORT',job_mode => 'TABLESPACE', remote_link => 'source.de');
BEGIN :h := dbms_datapump.open (operation => 'IMPORT',job_mode => 'TABLESPACE', remote_link => 'source.de'); END;
ERROR at line 1:
ORA-39001: invalid argument value
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
ORA-06512: at "SYS.DBMS_DATAPUMP", line 2953
ORA-06512: at "SYS.DBMS_DATAPUMP", line 4603
ORA-06512: at line 1
When I describe dbms_datapump.open:
FUNCTION OPEN RETURNS NUMBER
Argument Name Type In/Out Default?
OPERATION VARCHAR2 IN
JOB_MODE VARCHAR2 IN
REMOTE_LINK VARCHAR2 IN DEFAULT
JOB_NAME VARCHAR2 IN DEFAULT
VERSION VARCHAR2 IN DEFAULT
COMPRESSION NUMBER IN DEFAULT
Anyone familier with this problem?
Regards,
TimORA-39001: invalid argument value, could be because of the db_link (is not seen by the owner of the code, by the schema which has the rights to run the code).
You can take a look at:
<p>
http://www.oracle-home.ro/Oracle_Database/10g_New_Features/Schema_refresh_DP.html</p> -
Error ORA-06502, numeric or value error character to number conversion
I have been trying to create an email including data from a table as part of the body. Whenever I try to send it, I get an error ORA-06502, numeric or value error, character to number conversion. If I take out the part referencing the table, the email will go without error, but if I put it back in I get the error.
There is the code:
DECLARE
v_email_body CLOB;
v_from_email_address VARCHAR2(100) := v('APP_USER');
v_id NUMBER;
BEGIN
v_email_body := 'Please pay the attached invoice from FY '||:P14_FY||' funds
Date: '||:P14_PURCHASE_DATE||'
Vendor: '||:P14_VENDOR||'
Invoice Number: '||:P14_INVOICE||'
Invoice Date: '||:P14_INVOICE_DT||'
Due Date: '||:P14_INVOICE_DUE_DT||'
KSR Number: '||:P14_KSR||'
DTS PO: '||:P14_DTS_PO||'
FINANCE DO: '||:P14_FINANCE_PO||'
FOR detail IN(SELECT OB_CODE
FROM BUDGET_USED
WHERE P_ID = :P14_ID)
v_email_body := v_email_body||detail.OB_CODE||utl_tcp.crlf;
LOOP
FOR detail2 IN (SELECT ob_code, amount
FROM budget_used
WHERE p_id = :P14_ID)
LOOP
v_email_body := v_email_body||detail2.ELCID||' - '||detail2.AMOUNT||utl_tcp.crlf;
END LOOP;
END LOOP;
v_email_body := v_email_body
'||:P14_EMAIL_NOTES||'
Thanks.
v_id := APEX_MAIL.SEND
(p_to => :P14_SUBMIT_TO
,p_cc => v('APP_USER')
,p_bcc => '[email protected]'
,p_from => v_from_email_address
,p_body => v_email_body
,p_subj => 'Invoice, '||:P14_VENDOR||', '||:P14_INVOICE||'');
--Having set up your email, now add one (or more) attachments...
FOR c1 in (SELECT FILENAME
,BLOB_CONTENT
,MIME_TYPE
FROM file_subjects f, apex_application_files a
where a.name = f.name
and f.P_ID = :P14_ID) LOOP
IF c1.blob_content IS NOT NULL THEN
APEX_MAIL.ADD_ATTACHMENT( p_mail_id => v_id,
p_attachment => c1.blob_content,
p_filename => c1.filename,
p_mime_type => c1.mime_type);
END IF;
END LOOP;
END;
Apex_mail.push_queue();
This is important to my company to be able to put this data into an email. If anyone can help me, I would greatly appreciate it. Thank you in advance.Lets isolate the erroring line by running the code in debug mode and adding some debug lines at various stages in the code
Apex has a builtin function named wwv_flow.debug which can print messages to the debug stack and would be visible when the page is run in debug mode.
DECLARE
v_email_body CLOB;
v_from_email_address VARCHAR2(100) := v('APP_USER');
v_id NUMBER;
BEGIN
wwv_flow.debug('BEGIN');
v_email_body := 'Please pay the attached invoice from FY '||:P14_FY||' funds
Date: '||:P14_PURCHASE_DATE||'
Vendor: '||:P14_VENDOR||'
Invoice Number: '||:P14_INVOICE||'
Invoice Date: '||:P14_INVOICE_DT||'
Due Date: '||:P14_INVOICE_DUE_DT||'
KSR Number: '||:P14_KSR||'
DTS PO: '||:P14_DTS_PO||'
FINANCE DO: '||:P14_FINANCE_PO||'
'||:P14_EMAIL_NOTES||'
Thanks.
wwv_flow.debug('Before sending mail');
v_id := APEX_MAIL.SEND
(p_to => :P14_SUBMIT_TO
,p_cc => v('APP_USER')
,p_bcc => '[email protected]'
,p_from => v_from_email_address
,p_body => v_email_body
,p_subj => 'Invoice, '||:P14_VENDOR||', '||:P14_INVOICE||'');
wwv_flow.debug('Before attachements');
--Having set up your email, now add one (or more) attachments...
FOR c1 in
(SELECT FILENAME
,BLOB_CONTENT
,MIME_TYPE
FROM file_subjects f, apex_application_files a
where a.name = f.name
and f.P_ID = :P14_ID)
LOOP
IF c1.blob_content IS NOT NULL THEN
APEX_MAIL.ADD_ATTACHMENT( p_mail_id => v_id,
p_attachment => c1.blob_content,
p_filename => c1.filename,
p_mime_type => c1.mime_type);
END IF;
END LOOP;
wwv_flow.debug('Finished attachements');
Apex_mail.push_queue();
END;What is the last message you see in the debug after running the page in debug mode and submitting it ? -
Checkbox and ORA-20507: Invalid numeric value #:# for column
Hi All,
I'm facing problems Checkboxes in a form.
I created a form and report on a table. one of the fields on the form is a checkbox and when ever I want to create a new record or update with more than one value for the checkkbox I obtain the following error:
ORA-20507: Invalid numeric value #:# for column COLUMN_NAME Where by #:# is numbers
I think the error occurs at the processes of get_pk and process_row_of_......
how should I change the processes to accommodate the checkbox values.
Kind regards
MelHi Roel,
Colunm = number
LOV Definition
select product display, prod_num return from product_category_vw
where prod_num not in (select p.prod_num from product_user_tb p, user_tb u
where p.user_num = u.user_number
and u.user_name = :APP_USER)
ORDER BY 1column = number
LOV Definition
select school d, sch_id r from school_tbRegards
Mel -
JDBC receiver error - ORA-00913: too many values
Hi all,
Facing a strange issue with proxy-jdbc issue.
Message fails with error - ORA-00913: too many values
Handling the missing fields from the source with - Empty String in the comm. Channel
Empty string handling works fine - whenever there is no value coming form souce, null is inserted into the field value on the DB.
Trying to insert the same data manually, it works fine. But gives this error END2END.
When testing END2END, if the field values are made couple of chars less in length, that works fine....fails with the actual data.....seems to be the issue with the field lenghts on the DB.
Increased all the lengths by 10 chars..still does not work.
Except the key fields of the DB table, all others are nullable.
Is there anything else, I am missing...
Note: Generally, ORA-00913: too many values comes when the number of fields and the number of values donot match in an INSERT/UPDATE statement.
regHi
When testing END2END, if the field values are made couple of chars less in length, that works fine....fails with the actual data.....seems to be the issue with the field lenghts on the DB.
Increased all the lengths by 10 chars..still does not work
Well the error you mention generally occurs when the insert statement has more fields mention than in the table .ie you are mentioning extra field .aur this error is due to the field lenght of any of the filed you had to check in the oracle itself by using the command DESCRIBE there you ll be able to see the field lenght of each and every field .
hope your problem got resolved :
Regard's
Chetan Ahuja -
ORA-22922: nonexistent LOB value in outer join in XMLDB parsing query
Hi,
We are in a situation where i must use outer join with the address type fragment in the XML reader query,
Here is the oracle installation details
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
"CORE 11.2.0.3.0 Production"
However once i add the (+) sign i get an error, other wise it runs absolutely fine without the (+) s
ORA-29400: data cartridge error
ORA-22922: nonexistent LOB value
29400. 00000 - "data cartridge error\n%s"
*Cause: An error has occurred in a data cartridge external procedure.
This message will be followed by a second message giving
more details about the data cartridge error.
*Action: See the data cartridge documentation
for an explanation of the second error message.
Query:
=======
select
from PWAYWORKFILE_TABLE,
xmltable(
xmlnamespaces(DEFAULT 'http://www.cccis.com/Pathways/Workfile'
, 'http://www.cccis.com/Pathways/CommonType' as "pct")
, '$XS/PwayWorkfile' passing WORKFILE as "XS"
columns
CURESTID VARCHAR2 (4000) PATH 'EstimateComp/LastOutboxEstID',
Est_Fragment XMLTYPE PATH 'EstimateComp/EstList/VehEstimate'
) m,
XMLTABLE(
xmlnamespaces(DEFAULT 'http://www.cccis.com/Pathways/Workfile'
, 'http://www.cccis.com/Pathways/CommonType' as "pct")
, '$PY/VehEstimate' passing m.Est_Fragment as "PY"
columns
NUMBERLINES VARCHAR2 (4000) PATH '@NumberLines',
LINEESTIMATEID VARCHAR2 (4000) PATH 'EstimateID',
EstLine_Fragment XMLTYPE PATH 'EstimateLines/EstimateLine'
) (+) l,
XMLTABLE(
xmlnamespaces(DEFAULT 'http://www.cccis.com/Pathways/Workfile'
, 'http://www.cccis.com/Pathways/CommonType' as "pct")
, '$NY/EstimateLine' passing l.EstLine_Fragment as "NY"
columns
LINENUMBER VARCHAR2 (4000) PATH '@LineNumber',
LINEBLOCKID VARCHAR2 (4000) PATH 'LineBlockID',
LABORCATEGORY VARCHAR2 (4000) PATH 'LaborCategory',
LABORHOURS VARCHAR2 (4000) PATH 'LaborHours',
LINEOPERATION VARCHAR2 (4000) PATH 'LineOperation',
MANUALLABORINCLUDE VARCHAR2 (4000) PATH 'ManualLaborInclude',
MANUALPAINTINCLUDE VARCHAR2 (4000) PATH 'ManualPaintInclude',
MANUALPRICEINCLUDE VARCHAR2 (4000) PATH 'ManualPriceInclude',
OEMPRICE VARCHAR2 (4000) PATH 'Calculation/OEMPrice',
SINGLEOHINCL VARCHAR2 (4000) PATH 'DataList/DBMotorData/LaborInclType/@SINGLEOHINCL',
DOUBLEOHINCL VARCHAR2 (4000) PATH 'DataList/DBMotorData/LaborInclType/@DOUBLEOHINCL',
PPAGEINCL VARCHAR2 (4000) PATH 'DataList/DBMotorData/LaborInclType/@PPAGEINCL',
SUPPLIERID VARCHAR2 (4000) PATH 'DataList/RPSPart/SupplierID'
) (+) j
where
l.LINEESTIMATEID = 51 or
l.LINEESTIMATEID = m.CURESTID or
l.LINEESTIMATEID = (CASE
WHEN m.CURESTID = 101 THEN 51
WHEN m.CURESTID > 101 THEN m.CURESTID -1
ELSE -1 END);
Please note that the PWAYWORKFILE_TABLE is objection relationally stored with XMLs.
Please suggest what kind of error i am getting and what possible steps might resolve the same, let me know if i missed any details which might shade more light on the same.
Regards,
ArghyadipWhich outer join gives you the error? I don't see any address information in the SQL, hence my question. The first outer join, on table alias L is not needed. The WHERE clause you have setup requires that L.LINEESTIMATEID has a value and so NULL will not evaluate to TRUE and the row will be filtered out. This means you will only be returning rows where there exists rows in the L table, hence the outer join is not needed.
Are all your columns really VARCHAR2(4000)? You say it is object-relational, but was something defined as a CLOB?
You did not provide much in order to duplicate your error so I am just guessing at causes to identify the error.
Also see #9 in
{message:id=9360002} -
Help Needed: Facing the error ORA-01406: fetched column value was truncated
Hi Everyone,
When I run a particular PL/SQL query using Oracle 9i ODBC driver, it is working fine and fetching me the desired results.
However, when I run the same query using the Oracle 10g ODBC driver, I am getting the error: ORA-01406: fetched column value was truncated.
I have checked all the fields of the table and they are well within the allowable limit.
Can you please let us know what needs to be done to resolve this issue?
Thanks and Regards,
SudhindraWell it's obviously a problem with the client software. Doesn't Datastage have some way of configuring these things?
rgds, APC -
Hi,
I am trying to insert an xml doc into a column of Oracle table which has a datatype CLOB in JSP. PFB my code that I am using --
int id = 100;
String st1 = "NEW";
String st2 = "WLR3_IN_1";
Date dt = new SimpleDateFormat("mm/dd/yyyy").parse("04/02/2008");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:CST Server","xmluser","xmluser");
String query = "INSERT INTO SEQ_API_MESSAGE_IN(SEQ_NO,MESSAGE_TEXT,STATUS,DIALECT,CREATED_TS) VALUES(?,?,?,?,?)";
out.println(6);
String fn = "C:/order.xml";
out.println(7);
PreparedStatement stmt = con.prepareStatement(query);
out.println(8);
File file = new File(fn);
out.println(9);
FileReader inputFileReader = new FileReader(file);
stmt.setInt(1,id);
stmt.setCharacterStream(2,inputFileReader, (long)file.length());
stmt.setString(3,st1);
stmt.setString(4,st2);
stmt.setDate(5,new java.sql.Date(dt.getTime()));
out.println(10);
if (stmt.executeUpdate() != 1) {
System.out.println("No record inserted.");
But I am getting an output in the form of an Oracle error - 5 6 7 8 9 10 [Oracle][ODBC][Ora]ORA-24801: illegal parameter value in OCI lob function
So all the statements are getting executed after which this Oracle error is thrown. Could you help me with this.
Thanks in anticipation.. :)As suggested I may try switching to JDBC instead of JDBC-ODBC bridge driver , but I also tried doing this to get the sysdate --
//Date dt = new SimpleDateFormat("mm/dd/yyyy").parse("04/02/2008");
String date = DateFormat.getInstance().format(new Date());
stmt.setString(5,date);
and now I am getting this error -- 5 6 7 8 9 10 [Oracle][ODBC][Ora]ORA-01843: not a valid month Hello1
Hello1 is coming from --
catch (SQLException sqle){
out.println(sqle.getMessage());
out.print("Hello1");
} -
Weird ORA-01406: fetched column value was truncated error for SELECT query
DB version:10gR2
When one of our application fires the below query, we get
ORA-01406: fetched column value was truncatederror.
select trk_dtl,
trk_type,
trk_id,
trk_desc,
from shp_dtl
where shp_type = 'HN'
and shp_type = 828;The documentation says
Cause:In a host language program, a FETCH operation was forced to truncate a character string. The program buffer area for this column was not large enough to contain the entire string. The cursor return code from the fetch was +3.But when the application is pointed to an identical schema in the same instance, we don't get this error. So, this has got nothing to do client application as the documentation says.
Any idea what other possibilities are there?Post description of shp_dtl.
-
ERROR in PROCEDURE PL/SQL: ORA-00947: not enough values
Hi all i am creating a Procedure in which i am getting very strange ERROR
h4. i am using Oralce 11g, SQL Developer 3
my scenario is :
CREATE SEQUENCE tt_TMPMEASURESOURCE_ID
START WITH 1
INCREMENT BY 1;
CREATE TABLE tt_TMPMEASURESOURCE
ID NUMBER(10,0) ,
OBJNAME VARCHAR2(200) ,
PRSP NUMBER(10,0) ,
SOURCEID NUMBER(10,0) ,
SOURCENAME VARCHAR2(100) ,
FIX NUMBER(3,0) ,
MNAME VARCHAR2(1000) ,
MDESC VARCHAR2(1000)
CREATE OR REPLACE TRIGGER tt_TMPMEASURESOURCE_ID_TRG
BEFORE INSERT
ON tt_TMPMEASURESOURCE
FOR EACH ROW
BEGIN
SELECT tt_TMPMEASURESOURCE_ID.NEXTVAL INTO :NEW.ID
FROM DUAL;
END;
INSERT INTO TT_TMPMEASURESOURCE
*(OBJNAME,PRSP,SOURCEID,SOURCENAME,FIX,MNAME,MDESC)*
values ('rajnish',43,54,'anish',4,'apple','kumar');
output :
+1 row inserted+
h4. select * from TT_TMPMEASURESOURCE;
h3. 1 rajnish 43 54 anish 4 apple kumar
creating and compiling Procedure
create or replace procedure tem_test
as
begin
INSERT INTO tt_TmpMeasureSource
*(OBJNAME,PRSP,SOURCEID,SOURCENAME,FIX,MNAME,MDESC)*
VALUES ( v_ObjName, v_PrespectiveID, v_SourceID, v_SourceName, v_FIX, v_MName, v_MDesc );
when compiling
Error(63,16): PL/SQL: SQL Statement ignored
Error(63,28): PL/SQL: ORA-00947: not enough values
i am do not understand that when Trigger A trigger is allready there for 1st column
then why its giving me this error?
please help me out
thanksi got my solutions
creating and compiling Procedure
create or replace procedure tem_test
as
begin
INSERT INTO tt_TmpMeasureSource
*(OBJNAME,PRSP,SOURCEID,SOURCENAME,FIX,MNAME,MDESC)*
VALUES ( v_ObjName, v_PrespectiveID, v_SourceID, v_SourceName, v_FIX, v_MName, v_MDesc );
it was a typography mistake
this line was missing in Original procedure
*(OBJNAME,PRSP,SOURCEID,SOURCENAME,FIX,MNAME,MDESC)*thanks
Maybe you are looking for
-
How can I transfer my contacts from one group to another?
I have recently discovered that most of my personal contacts have been synced with my work's MS Outlook. This brings two issues to me if I ever had to change jobs and hand over my laptop - 1) My personal contacts will be shared with an unauthorised a
-
Error Message When Downloading itunes
What is Windows error 126 that i get when trying to download the new version of itunes?
-
Hello, I want to select a link in a sql query. I create a report with the following sql query select ' '||'<a href=www.nu.nl /a>' link from dualwhen i run the page I do not get a link to the www address. If I look at the source the sourve is like thi
-
RHEL 5.7 support for BOE XI 3.1 SP3
Hi All, The supported platform guide for BOE XI 3.1 SP3 says its supports RHEL 5.0 I would like to know does it also work with 5.7 version? Thanks, Swapnil Hoderkar
-
File to IDOC Senario (Message Mapping)
Hi Experts, I am a fresher. This is " File to IDOC Senario ". I have Doubt on this: ( In Message Mapping) Source field : MSG Length : 1/264 Taget field : E1EDKT2 - TDLINE Legth : CHAR/70 Mapping Condition : Note: TDFORMAT = '=' (Long Line), until