error report: ORA - 06502:character too small string buffer. urgent!
Hi guys,.My version of the APEX is 3.0.1.00.08, my application run on my test environment, but on the PROD environment, she raised the error:
error report:
ORA-06502: PL/SQL: digital or value error: character string buffer too small
On this page, on the left is a tree, the right side is a tabular presentation, when I click on a tree node, it will pass the id of the current node to the form and the form shows data from children. When I click on a tree node, it triggers the ORA-06502 error, but when click on some other nodes, it is correct. I don't know why. And on my test environment, it does not have this error, the test environment has same version with the prod environment, has only less data in the database. Could you help me?
I searched in the forum, someone said it's LOV problem, if there is problem LOV, all nodes must have the error, why click on some nodes are ok?
Thank you!
Jessica
I don't know, but why do you need a semicolon at the end of the SQL?
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
-------------------------------------------------------------------
Tags: Database
Similar Questions
-
Literal string is too long and too small string buffer
Hello
Can someone please explain what the difference is between these two errors.
The maximum size of the character in SQL is 4000 and PL/SQL its 32 k. So if a string literal exceeds this limit "string literal too long" error message is triggered by oracle.
Here is an example
SQL> select 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 4 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 28 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 29 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 30 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 31 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' str 32 from dual; select 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx * ERROR at line 1: ORA-01704: string literal too long
Now, when you try to set a string variable with a value greater than the defined size, you get "too small character string buffer.
Here is an example
SQL> declare 2 var varchar2(1); 3 begin 4 var := 'aa'; 5 end; 6 / declare * ERROR at line 1: ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at line 4
Oracle error message there two of each, one for SQL and one for PL/SQL.
ORA-19011: character string buffer too small
Cause : the result of the chain asked is too big to go back
Action : get the result like a lob instead
ORA-01704: string literal too long
Cause : the string literal is longer than 4000 characters.
Action : use a string literal of more than 4,000 characters. Longer values can only be entered using bind variables.
PLS-01905: character string buffer too small
Cause : an error occurred while moving a string from a source to a destination. This error occurs if, for example, an attempt is made to move an a string of 10 characters into a buffer of 1 character. The cause of this error may not always be obvious. For example, the following will cause this error: a varchar2 (1); b the number; b: = 10; a: = b; An error occurs because an implicit conversion causes the number 10 to become the string '10', which does not fit in memory buffer of characters of 1 assigned to the variable.
Action : first, look for the character string assignment statements where the size of the buffer is incompatible. If there is none found, then consider the case of an implicit conversion shown in the example above.
PLS-00172: string literal too long
Cause : the string literal is longer than 32767octets.
Action : use a string literal of at most 32767octets.
-
Problem with error ORA-06502: PL/SQL: numeric string or the error value
Hello
I use a loop for the coil just out of data using 'dbms_output.put_line' and I get this error after a few records. I've been using and it happens at a different interval. He would have to do with the length of the question, I am trying to spool? Thank you.
ORA-06502: PL/SQL: numeric string or the error valueSD wrote:
HelloI use a loop for the coil just out of data using 'dbms_output.put_line' and I get this error after a few records. I've been using and it happens at a different interval. He would have to do with the length of the question, I am trying to spool? Thank you.
ORA-06502: PL/SQL: numeric string or the error value
Yes, it's a mistake to dependent data.
Manage: SD
Status level: Beginner
Join date: November 21, 2001
Messages total: 289
Total Questions: 189 (183 pending)Why wasting you time here when you get rarely answers your questions?
-
Dear friends,
I get the error report:
ORA-20001: the print engine could not be reached because the URL is incorrect or a proxy URL must be specified.
then click on the link to print the report.
Print server the value-> advanced
Protocol-> Http
Host-> bieeserver
The printing-> 7877 server port
and the script->/xmlpserver/convert print server
I'm sure that the settings are correct, but I get the error
someone has an idea?
concerningHello
No problem, happy to help.
John.
--------------------------------------------
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd
AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone! -
Ideas for work around ORA-06502: character string buffer too small on the interactive report
Hello
It comes to Apex 4.2. We try to create an interactive report. The report is for something similar at a follow-up time. We try to concat a comments column as the sum of the hours. For example,.
Select TASK_NAME, sum (HOURS), to_char (XMLAGG (XMLELEMENT(E,E.COMMENTS ||) ' : ')). Extract ('//Text ()'). GETSTRINGVAL()) USER_COMMENTS of...
This query works fine if we seek only to a window of 1 week. The question that we live, when we expand the scope of the query to include data from 3 months, we hit ORA-06502 interactive report. If we remove this column from the interactive report, then the report works very well.
Anyone has any ideas on how we might be able to work around this problem? I'm guessing we're reached the limit of 32 k on the report. Ideally, we would show just the last X number of comments and then have a link to show all comments
Any help would be appreciated
Thank you
Mike
ListAGG raises an ORA-01489 for varchar2 > 4000 bytes
OP has an ORA - 06502--> IR is running within a limit of 4 k / 32 k.
quick fix: wrap USER_COMMENTS ListAGG in a substr (..., 1, 4000)
Longer solution, use a subquery to modify comments based on ROW_NUMBER() (IE after the nth line, change the null)
with -- simulating data t as (select task_id, sysdate - lv as date_entered ,round(dbms_random.value(1,24)) hours , '-*' || lv || '.' || task_id || '*-' as user_comments from ( select level as task_id from dual connect by level <=10 ), (select level lv from dual connect by level < 1000) ), -- modify data modified_data as ( select task_id, hours, date_entered ,case when row_number() over (partition by task_id order by date_entered desc) < 5 then user_comments else null end USER_COMMENTS from t) select task_id, sum(hours) total_hours, listagg( user_comments ) within group (order by date_entered desc) || case when count(*) >= 5 then '! MORE COMMENTS !' else null end as user_comments from modified_data group by task_id;
-
GATHER_TABLE_STATS and character buffer too small string error
Hello
I am trying to run stats gather on a partition of a table. It gives me the error below.
There is no trigger or whatever it is on the table. Can you please help...
BEGIN
DBMS_STATS. GATHER_TABLE_STATS (ownname = > 'AB', tabname = > 'SAMPLE_TABLE_NAME_FRTEST',)
estimate_percent = > DBMS_STATS. AUTO_SAMPLE_SIZE,
partName = > 'SAMPLE_TABLE_NAME_FRTEST_201011');
END;
ORA-06502: PL/SQL: digital or value error: character string buffer too small
ORA-06512: at "SYS." DBMS_STATS", line 13437
ORA-06512: at "SYS." DBMS_STATS", line 13457
ORA-06512: at line 2
Here are the details of the version:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
Thank you.
Published by: me * on 21/08/2011 17:10me * wrote:
HelloI am trying to run stats gather on a partition of a table. It gives me the error below.
There is no trigger or whatever it is on the table. Can you please help...BEGIN
DBMS_STATS. GATHER_TABLE_STATS (ownname => 'AB', tabname => 'SAMPLE_TABLE_NAME_FRTEST',
estimate_percent-online DBMS_STATS. AUTO_SAMPLE_SIZE,
partName => 'SAMPLE_TABLE_NAME_FRTEST_201011');
END;ORA-06502: PL/SQL: digital or value error: character string buffer too small
ORA-06512: at "SYS." DBMS_STATS", line 13437
ORA-06512: at "SYS." DBMS_STATS", line 13457
ORA-06512: at line 2Here are the details of the version:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - ProductionThank you.
Published by: me * on 21/08/2011 17:10
You get a maximum of 30 characters in the array, column, etc. names in Oracle.
You have really a partition name exceeds?
SAMPLE_TABLE_NAME_FRTEST_201011
At more than 30 characters...
-
ORA-01873 leading too small precision
I'm getting an ORA-01873 ' leading precision of the interval is too small "error and can't understand why. The error occurs during a call to the following function (please excuse any syntax errors since I'm greasy finger all my entries):
The code that calls this function is as follows:FUNCTION hrmin_interval_string(val INTERVAL DAY TO SECOND) RETURN VARCHAR2 IS hrs NUMBER(6); mins NUMBER(2); BEGIN hrs := EXTRACT(DAY FROM val)*24 + EXTRACT(HOUR FROM val); mins := EXTRACT(MINUTE FROM val); RETURN hrs || ':' || TRIM(TO_CHAR(mins, '00'), 12); END;
The time_delta value when the error is + 000105 06:56:00.000000.... time_delta INTERVAL DAY(6) TO SECOND; tstr VARCHAR2(500); ... tstr := RPAD(hrmin_interval_string(time_delta), 12);
This time_delta value is in the precision and should not be this error, at least as far as I can tell. Is that what everyone else sees what Miss me?
I tried specifying INTERVAL DAY (6) SECOND in the list of function parameters, but which simply causes a compilation error, saying: he met the "("caractère quand elle attend «ÀLE».) "
I am running Oracle 11 g.Bug. You must create a subtype:
SQL> create or replace 2 FUNCTION hrmin_interval_string(val INTERVAL DAY TO SECOND) 3 RETURN VARCHAR2 IS 4 hrs NUMBER(6); 5 mins NUMBER(2); 6 BEGIN 7 hrs := EXTRACT(DAY FROM val)*24 + EXTRACT(HOUR FROM val); 8 mins := EXTRACT(MINUTE FROM val); 9 10 RETURN hrs || ':' || TO_CHAR(mins, '00'); 11 END; 12 / Function created. SQL> exec dbms_output.put_line(RPAD(hrmin_interval_string('+000105 06:56:00.000000'), 12)); BEGIN dbms_output.put_line(RPAD(hrmin_interval_string('+000105 06:56:00.000000'), 12)); END; * ERROR at line 1: ORA-01873: the leading precision of the interval is too small ORA-06512: at line 1 SQL> create or replace 2 package pkg1 3 is 4 subtype unconstrained_ds is interval day(9) to second(9); 5 end; 6 / Package created. SQL> create or replace 2 FUNCTION hrmin_interval_string(val pkg1.unconstrained_ds) 3 RETURN VARCHAR2 IS 4 hrs NUMBER(6); 5 mins NUMBER(2); 6 BEGIN 7 hrs := EXTRACT(DAY FROM val)*24 + EXTRACT(HOUR FROM val); 8 mins := EXTRACT(MINUTE FROM val); 9 10 RETURN hrs || ':' || TO_CHAR(mins, '00'); 11 END; 12 / Function created. SQL> exec dbms_output.put_line(RPAD(hrmin_interval_string('+000105 06:56:00.000000'), 12)); PL/SQL procedure successfully completed. SQL>
SY.
-
error report: ORA-29262: bad URL
Hi friends,
When I tried to reorder the items in my form through drag and drop operation. I tried to change the display of the form of two rows to three rows.
I am facing this error-> report error: ORA-29262: wrong URL.
My Version of Oracle Apex is - > 3.1.1.00.09
My version of the database is - > 10.2.0.1.0
Please let me know if anyone of you has solutions.Hello
I had this error, I think it's related to the bug listed on Metalink as 6360779 which is would have been set in Application Express 3.1.1.00.09 see http://www.oracle.com/technology/products/database/application_express/html/3.1.1_patchnote.html?_template=/ocom/print
However, I use the version above to the apex and received the error, I found that I had put a % at the end of a label sign, that caused the error. Remove the % sign, helped him drag / move to continue.
Hope this helps
Paul
-
error report: ORA-01008: not all variables
Hello
I have my tent to run the following query in the form of application of the APEX report:
Select * from table (convertsqlstmt2table ("SELECT DynamicObject (trans.isrt_tmstmp, trans.start_txn_tmstmp, trans.user_sess_audt_txn_id, trans.lst_txn_tmstmp)
TRANS user_sess_audt_txn,
(SELECT DISTINCT user_sess_audt_txn_id
Of user_audt_txn_obj_log
WHERE LOWER (own_ref) = LOW (DECODE (: P1_OWNER_NM, NULL, own_ref,: P1_OWNER_NM))
AND LOWER (obj_nm) = LOW (DECODE (: P1_TABLE_NM, NULL, obj_nm,: P1_TABLE_NM))
() trans_obj'));
Function convertsqlstmt2table(sql_stmt VARCHAR2) returns the results of my query, passed a string as a table object. There is probably a problem with: P1_OWNER_NM and: P1_TABLE_NM variables passed from the APEX of text fields. In my case this fields are empty, because I want to get maximum of records.
I'm getting ORA-01008: not all variables.
Could you please advice?
Kind regards
BenyI think we need a few additional quotes:
NVL('''||:P1_TABLE_NM||''', obj_nm )
-
error report: ORA-01422: exact fetch returns more than number of lines
I get this error in table form that should be filled by selecting a week called item description in this page by a dynamic action.
In the main table, I have two primary keys and so two foreign keys in the secondary table even if it is not a type of form master detail.
When I select the week description point and the related records in the form of sound. But it gives the above error.
In the main table, there are two records of same, in this user name folders is different which defines the unique character of the file.
It is really basic and happens if you have something like this in your code - the SQL code is supposed to return exactly ONE value and it returns two or more:
Denes Kubicek
-
Error (ORA-06502) when addinng a LOV-more element in a table
I created the collection. Then, I created in a table, this collection from.
In the form of tables, I created 3 elements, based on the "list of (named LOV) selection.
It is ok.
LOV:
Select SN_ZVET display_value, KOD_ZVET return_value
of PLENKA
order by 1
Table (PLENKA):
KOD_ZVET NUMBER (3.0)
FN_ZVET VARCHAR2 (50 BYTE)
SN_ZVET VARCHAR2 (25 BYTE)
FIRMA_IZGOTOV VARCHAR2 (50 BYTE)
SETTING VARCHAR2 (30 BYTE)
KOD_ED_IZM NUMBER (2.0)
NAZ_ZVET NUMBER (6.3)
KOD_PVX NUMBER (2.0)
KOD_PR NUMBER (1.0)
When I added 4th element, based on the same LOV, I get error:
error report:
ORA-06502: PL/SQL: digital or value error: character string buffer too small
What evil? Why I created 3 identical items and could not created one more element (the same)?Alex - selection lists can generate a lot of HTML code. If it exceeds 4K for all a "column in your query, or if the cumulative for all 'a line' size exceeds 32K, you will get this error. How many items in each LOV?
Scott
-
ORA-06502: PL/SQL: digital or value error: character string too small buffer
Dear gurus, I'm generation mail format html from oracle 10 g database.
Display the data in html format message body are superior to more than 32 k.
can you please guide me how to handle this error?
ORA-06502: PL/SQL: digital or value error: character string too small buffer
I use the long data type for message body data.http://asktom.Oracle.com/pls/asktom/f?p=100:11:4325516854017254:P11_QUESTION_ID:1739411218448
see you soon
-
PL/SQL error: digital or value error: character string buffer too small
HI gurus of the oracle,.
I'm new to PL/SQL,
my version of oracle's oracle 11g.
I create a procedure to insert data from flat file to a table using UTL_FILE.
The table is
CREATE TABLE EXT_PERSON_INFO
(
ID_PERSON NUMBER (38),
ID_BATCH NUMBER (38),
ID_PERSON_NBR VARCHAR2 (3 BYTE),
ID_AREA VARCHAR2 (5 BYTE),
NM_FINAL VARCHAR2 (20 BYTE),
NM_START VARCHAR2 (20 BYTE),
DATE OF DT_DOB,
ID_SERIAL VARCHAR2 (BYTE 9),
DATE OF DT_RESPONSE,
TRANS_TYPE VARCHAR2 (2 BYTE),
REG_RESPONSE VARCHAR2 (1 BYTE),
TM_RX TIMESTAMP (6)
)
My procedure is
CREATE OR REPLACE PROCEDURE PROC_PERSON
IS
f_line VARCHAR2 (2000);
f utl_file.file_type;
f_dir VARCHAR2 (250);
fname VARCHAR2 (50);
F_ID_PERSON EXT_PERSON_INFO.ID_PERSON%type: = 1;
F_ID_BATCH EXT_PERSON_INFO.ID_BATCH%type: = 1;
F_ID_PERSON_NBR EXT_PERSON_INFO.ID_PERSON_NBR%type;
F_ID_AREA EXT_PERSON_INFO.ID_AREA%type;
F_NM_FINAL EXT_PERSON_INFO. Type of NM_FINAL %;
F_NM_START EXT_PERSON_INFO. Type of NM_START %;
F_DT_DOB EXT_PERSON_INFO. Type of DT_DOB %;
F_ID_SERIAL EXT_PERSON_INFO.ID_SERIAL%type;
F_DT_RESPONSE EXT_PERSON_INFO. Type of DT_RESPONSE %;
F_TRANS_TYPE EXT_PERSON_INFO. Type of TRANS_TYPE %;
F_REG_RESPONSE EXT_PERSON_INFO. Type of REG_RESPONSE %;
BEGIN
fname: = "D:\raj\raj.txt";
f: = utl_file.fopen('RAJ',fname,'r');
loop
Start
UTL_FILE.get_line (f, f_line);
exception
When no_data_found then
"exit";
end;
F_ID_PERSON: = 1;
F_ID_BATCH: = 1;
F_ID_PERSON_NBR: = substr (f_line, 1, 3);
F_NM_FINAL: = substr (f_line, 4, 22);
F_NM_START: = substr (f_line, 23, 34);
F_DT_DOB: = substr (f_line, 35, 44);
F_ID_SERIAL: = substr (f_line, 45, 48);
F_DT_RESPONSE: = substr (f_line, 49, 58);
F_TRANS_TYPE: = substr (f_line, 59, 60);
F_REG_RESPONSE: = substr (f_line, 61, 61);
F_ID_AREA: = substr (f_line, 62, 64);
insert into EXT_PERSON_INFO VALUES (F_ID_PERSON, F_ID_BATCH, F_ID_PERSON_NBR, F_ID_AREA, F_NM_FINAL, F_NM_START, F_DT_DOB, F_ID_SERIAL, F_DT_RESPONSE, F_TRANS_TYPE, F_REG_RESPONSE);
end loop;
UTL_FILE.fclose (f);
commit;
end;
/
am getting error
ORA-06502: PL/SQL: digital or value error: character string buffer too small
Please help me in this regard. Impossible to trace the issue.
Thanks in advance
Kind regards
REDA
The error message should include a line number to reference your code to see what line the error occurred on.
That said, look at the documentation for SUBSTR as you incorrectly use the third parm. It's length, no end of race. That's your problem.
-
ORA-06502: PL/SQL: digital or value error: character buffer t string
I understand the error, but I don't know where is the case,
The error
Exception: ORA-06502: PL/SQL: digital or value error: character buffer t string
Little OO
I know that to be here: but it makes no sense I got anought space, I got same increse VARCHAR2 (42); for VARCHAR2 (100);
I guess my question is is there a way to debug, so I can see exactly which variable creates the problem.
There is a lot of code, I hate to put all the code here, please help I'm stuck!
PROCEDURE process2 ( v_aidy_code IN faismgr.rorstat.rorstat_aidy_code%TYPE ) IS v_filename1 VARCHAR2 (42); v_filename2 VARCHAR2 (42); v_path VARCHAR2 (26); v_file_out1 UTL_FILE.file_type; v_file_out2 UTL_FILE.file_type; w_pidm faismgr.rorstat.rorstat_pidm%TYPE; w_match1_no NUMBER; w_match2_no NUMBER; w_match3_no NUMBER; w_match4_no NUMBER; w_match5_no NUMBER; w_match6_no NUMBER; w_match7_no NUMBER; w_match8_no NUMBER; w_pidm_check faismgr.rorstat.rorstat_pidm%TYPE; w_ssn_check saturn.spbpers.spbpers_ssn%TYPE; w_idoc_id_no_check NUMBER; w_pidm_no NUMBER; w_comment ryridoc_cover.nomatch_comment%TYPE; w_ryridoc_insert VARCHAR2 (1); w_tgrp_code faismgr.rorstat.rorstat_tgrp_code%TYPE; w_ntf VARCHAR2 (1); d_space5 VARCHAR2 (5); w_no_recs NUMBER; w_no_1recs NUMBER; w_no_2recs NUMBER; w_no_notprocessed NUMBER; w_no_questionable NUMBER; w_no_subsequent VARCHAR2 (1); BEGIN --v_path := '/' || SUBSTR (database_name, 1, 4) ---- || '/u02/sct/banner/bandev2/middlebury/dat_files'; v_path := 'MIDD_DATA' ; v_filename1 := 'idoc_nomatch' || TO_CHAR (SYSDATE, 'yyyymonddhhmiss') || '.lis'; v_filename2 := 'idoc_error' || TO_CHAR (SYSDATE, 'yyyymonddhhmiss') || '.lis'; v_file_out1 := UTL_FILE.fopen (v_path, v_filename1, 'w'); v_file_out2 := UTL_FILE.fopen (v_path, v_filename2, 'w'); d_space5 := ' '; w_no_recs := 0; w_no_1recs := 0; w_no_2recs := 0; w_no_notprocessed := 0; w_no_questionable := 0; w_match1_no := 0; w_match2_no := 0; w_match3_no := 0; w_match4_no := 0; w_match5_no := 0; w_match6_no := 0; w_match7_no := 0; w_match8_no := 0;
Certainly an improvement, you are now thank yourself.
You are welcome, regardless of the problem.
Concerning
Peter -
ORA-06502: PL/SQL: digital or value error: character conversion number e
Hi all
I work with DBLOCALE , which is
and DBREMOTEOracle Database 10g Release 10.2.0.3.0 - 64bit Production PL/SQL Release 10.2.0.3.0 - Production CORE 10.2.0.3.0 Production TNS for IBM/AIX RISC System/6000: Version 10.2.0.3.0 - Productio NLSRTL Version 10.2.0.3.0 - Production
Leave a procedure on DBLOCALE I run SCHEMA. MYPROCEDURE@dbremote (NUMBER, stringPar VARCHAR2, datePar DATE numberPar)Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production PL/SQL Release 9.2.0.8.0 - Production CORE 9.2.0.8.0 Production TNS for IBM/AIX RISC System/6000: Version 9.2.0.8.0 - Production NLSRTL Version 9.2.0.8.0 - Production
I use this procedure only to call a function in a package of DBREMOTE with education booleanresult: = MYPACKAGE. MYFUNC (NUMBER, stringPar VARCHAR2, datePar DATE numberPar)
In the service, I try to INSERT IN MYTABLE (numberPar, stringPar, datePar) and the error
is triggered.ORA-06502: PL/SQL: numeric or value error: character to number conversion error
I missed something basic? Where is my mistake?
I have check all types of past data and types of data in the table, that I have to insert.
Any help or suggestion will be appreciated. Feel free to ask me any questions that need me to explain or for more details.
Best regards
AlexOraclePSP wrote:
It starts with a page of APEX who call a procedure in DBLOCALE.
Apex point (page) variables are all text - and bind as text variables when used in PL/SQL and SQL code.
In this procedure, ii assess the past, then insert into a few tables@DBREMOTE without errors.
The end of it, I'm calling the remote packaged function.
In the function I use parameters to open a cursor and insert into MYTABLE.That you pass as parameters? The variable element of Apex (e.g. : P1_DATE) or do you attribute the object variable to a PL/SQL variable and the neck of the PL/SQL variable as a parameter?
Even if I agree with you on the copy & paste I don't know what part of the process, I can speak to you.
Well, you can try the following. Create a dynamic PL/SQL region on the page. This region should be implemented and made that the page has been sent (in other words, element variables used in the page need value for this region, for the record). You can create a condition for this region that must be met to be made - and this can check the QUERY variable, or to check if the relevant variables have values.
In this dynamic PL/SQL code for the region block, use HTP.prn () as you would use DBMS_OUTPUT.put_line () in client-server test normal (using TOAD or SQL * more). And in this block of code, call the remote procedure.
For example
--// dynamic PL/SQL region code block: HTP.prn( 'Item P1_DATE = ['||:P1_DATE||']
' ); HTP.prn( 'Item P1_NUMBER = ['||:P1_NUMBER||']
' ); ..etc.. HTP.prn( 'Calling remote procedure:
' ); begin RemoteProc@RemoteDB( param1=>:P1_DATE, param2=>:P1_NUMBER ); HTP.prn( 'Call was successful
' ); exception when OTHERS then HTP.prn( 'Call failed with: '||SQLERMM(SQLCODE)||'
'); end; ..etc..
Maybe you are looking for
-
Refund of the windows $8 14.99 cost upgrade HP
Hello I understand that there is a time limited by HP offer to repay a sum of money applied by its customers to offer Microsoft Windows 8 Upgrade so that the net cost to upgrade a HP computer purchased within a certain time is zero dollars. Is there
-
Pavilion dv6 6119tx: dv6 beatsaudio driver 6119tx
Mr President My computer hp pavilion dv6 6119tx laptop. Kindly give me link of the driver software audio beats & bio metric software driver link (hp simple pass JJUJ print).
-
(T530) Port replicator M01060 windows 7 64-bit driver
Hello. Where can I download a driver for the M01060 port replicator. When I attach it to the usb port, windows starts the installation of drivers, but points out the errors with driver for ethernet and video. Keyboard and mouse works fine when it is
-
NO tab "speed up" on Intel RST MISTLETOE on U310
Hello I'm not able to see "speed up" tab on my ideapad u310 Intel RST GUI. Is this usual somehting wrong with my system, or is?
-
I bought this great app, but I'm afraid he is out of biz and world BB does not yet recognize. Any comments?