Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > can't update table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-28-08, 05:14
onyuss onyuss is offline
Registered User
 
Join Date: Jun 2008
Posts: 1
Red face can't update table

CREATE OR REPLACE TRIGGER MAPINFO.log_olusturma_update
before update
ON MAPINFO.NOKTALAR for each row
declare
logid number;
temp_tarih number;
begin
if sys_context('USERENV','HOST') not in ('GVG\GVGSRV','GVGSRV','gvgsrv') then
if (:new.tarih = 0) or (:new.tarih is null) then
SELECT to_number(to_char(sysdate, 'YYYYMMDD') ) tarih into :new.tarih_3 from dual ;
end if;
if (:new.saat is null) or (:new.saat='') or (:new.saat=' ') then
SELECT to_char(sysdate, 'HH24:MiS') saat into :new.saat_3 from dual;
end if;
if (:new.tarih = ld.tarih) and (:new.saat = ld.saat) and (:OLD.RUHSATLI=:NEW.RUHSATLI) then
SELECT to_number(to_char(sysdate, 'YYYYMMDD') ) tarih into :new.tarih_3 from dual ;

i couldn't update the table
and i get these errors
ORA-06502
ORA-06512
ORA-04088
and output writes the last select statement of the trigger that i write above cause the error

does somebody knows why i can't update the table.
Reply With Quote
  #2 (permalink)  
Old 06-28-08, 10:28
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 3,563
You have the complete trigger code & can not understand what is wrong.

Why do you expect anyone to be able to debug you code when you choose to not provide the complete trigger & only truncated error output?

All things considered, the trigger contains invalid PL/SQL.
Does it contain EXECUTE IMMEDIATE?

You're On Your Own (YOYO)!
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On