473,399 Members | 3,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

how do i fix the error ORA-01401: inserted value too large for column in PL/SQL

INSERT INTO sm3pm
SELECT 'MANILA',
group_nm,
upper(theater_desc),
null,
upper(movie_title),
nvl(gross_amt,0),
v_mladt,
sysdate
from mlasm_details@hs_sm3pm_xls
where group_nm is not null
and movie_title is not null
and group_nm <> 'MOVIE_TITLE';

COMMIT;

update sm3pm_gross x
set theater_cd = (select max(theater_cd)
from stg_bds_theater_mstr
where trim(upper(theater_name)) = trim(upper(x.theater)))
where area = 'MANILA'
and theater_cd is null;
Sep 28 '10 #1
2 5125
rski
700 Expert 512MB
You need to show us table definitions. It looks like you try to put value that do not match column type.
Sep 28 '10 #2
amitpatel66
2,367 Expert 2GB
The problem is with your Insert statement. Just check the length of all the columns of the table sm3pm and make sure the values that you are trying to insert are within the maximum length allowed for the columns.

I suspect columns like theater_Desc and movie_title are causing the problem.

It would be helpful if you can post the table structure and the output of the below query:

Expand|Select|Wrap|Line Numbers
  1.  
  2. SQL> SELECT group_nm,LENGTH(group_nm)
  3. upper(theater_desc),LENGTH(theater_desc),
  4. null,
  5. upper(movie_title),LENGTH(movie_title),
  6. nvl(gross_amt,0),
  7. v_mladt,LENGTH(v_mladt),
  8. sysdate
  9. from mlasm_details@hs_sm3pm_xls
  10. where group_nm is not null
  11. and movie_title is not null
  12. and group_nm <> 'MOVIE_TITLE'
  13. /
  14.  
  15.  
Sep 29 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Barry Young | last post by:
I am using the following code to insert a row in an Oracle Database. strConnection = "Provider=OraOLEDB.Oracle;Data Source=MYDATABASE;User Id=SYSTEM;Password=******" Dim strMessage As String ...
1
by: Park Yeon Jo | last post by:
About Error : ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor I installed Oracle 8.1.7 on Windows XP Professional. and I wanto connect to that server...
1
by: valexena | last post by:
I am attempting to take tablespace offline and receiving the following error: ORA-01546- cannot take tablespace offline. What I am doing wrong? -- Posted via http://dbforums.com
0
by: Brian Lesker | Impulse Info Systems | last post by:
Keywords: Oracle 6i Citrix ORA-06508 Crash Problem descryption: Oracle (6i) application crashes in Citrix farm with error ORA-06508. HOWTO resolve:
2
by: pooja sharma | last post by:
When I have installed oracle 8i on my window xp it was working alright. but when i rebooted the system and to logged in SQL+ it is giving error ORA-01034: ORACLE not available . Can anybody tell me...
1
by: 3xxx | last post by:
I start to learn the form now with oracle 9i environment (this URL appear after running menu in Oracle forms builder ==>>> program-> run form) ...
3
by: Thakur vikas | last post by:
when we run the query then we got ": (Error): ORA-00907: missing right parenthesis" what may be the error?
2
by: sushil4487 | last post by:
I am getting this error while writing this query. I am using the same query in other server but i am not getting any error message Do I need to reset the date format in Server. Date is saved in...
2
by: amoldiego | last post by:
Hi I have encountered the error ORA-01536 . I have earlier grant sysdba to SCOTT & then I revoked the sysdba role from SCOTT a couple of days later. After that, I encountered the error...
1
by: gowthams123 | last post by:
Dear All, Plz help me with this oracle form builder installation? I have installed SQL *PLUS Release 9.2.0.1.0 and then installed form builder 9.0.2.7.0. When i enter the following username...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.