otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTMFAQ Tutorials

OTM SIG
MavenWire


Database Administration Database installation, creation, administration and related topics.

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old July 16th, 2007, 14:29
Junior Member
 
Join Date: Mar 2007
Location: Iowa
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
sloppypoet is on a distinguished road
[SOLVED] tranmission purge errors

While purging transmissions we received the Oracle error 00920: invalid relational operator. The procedure called to purge transmissions has not been changed so we are confused as to why this would occur. We are using 4.5 on Oracle 9i in a Linux environment.....any help is appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2 (permalink)  
Old July 23rd, 2007, 16:09
Junior Member
 
Join Date: Jun 2006
Posts: 23
Thanks: 0
Thanked 3 Times in 3 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
Shells will become famous soon enough
Re: tranmission purge errors

Has this ever worked before for you guys or are you just now trying to use the purge process? I would not change the existing purge package as 1) next time you install a patch it will overwrite and 2) might cause you more issues in the future.

As a side note -we purge with our own edited procedure/jobs using the below as an example:
Procedure:
CREATE OR REPLACE PROCEDURE Clear_Transmission_Xml(v_status VARCHAR2) AS
v_days_range NUMBER := 21;
v_days_keep NUMBER := 20;
v_count NUMBER := 0;
v_commit_count NUMBER := 200;
v_records_left NUMBER := 0;
BEGIN
SELECT COUNT(*) INTO v_count
FROM I_TRANSMISSION
WHERE status = v_status
AND insert_date >= (TRUNC(SYSDATE) - v_days_range)
AND insert_date <= (TRUNC(SYSDATE) - v_days_keep)
AND xml_blob IS NOT NULL;
IF v_count = 0 THEN
dbms_output.put_line('No records cleared');
ELSE
v_records_left := v_count;
LOOP
IF v_records_left > v_commit_count THEN
UPDATE I_TRANSMISSION
SET xml_blob = NULL
WHERE status = v_status
AND insert_date >= (TRUNC(SYSDATE) - v_days_range)
AND insert_date <= (TRUNC(SYSDATE) - v_days_keep)
AND xml_blob IS NOT NULL
AND ROWNUM <= v_commit_count;
COMMIT;
v_records_left := v_records_left - v_commit_count;
ELSE
UPDATE I_TRANSMISSION
SET xml_blob = NULL
WHERE status = v_status
AND insert_date >= (TRUNC(SYSDATE) - v_days_range)
AND insert_date <= (TRUNC(SYSDATE) - v_days_keep)
AND xml_blob IS NOT NULL;
COMMIT;
EXIT;
END IF;
END LOOP;
END IF;
dbms_output.put_line('Records cleared = '||v_count);
END;
/

Job example:

DECLARE
X NUMBER;
BEGIN
SYS.DBMS_JOB.SUBMIT
( job => X
,what => 'clear_transmission_xml(''PROCESSED'');'
,next_date => to_date('23/07/2007 23:00:00','dd/mm/yyyy hh24:mi:ss')
,interval => 'TRUNC(SYSDATE+1) + 23/24'
,no_parse => TRUE
);
END;
/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3 (permalink)  
Old July 23rd, 2007, 17:22
Junior Member
 
Join Date: Mar 2007
Location: Iowa
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
sloppypoet is on a distinguished road
Re: tranmission purge errors

Shells,

Thanks for the reply. Yes, this has worked in the past. Also, it appears to be working when we run it but still seeing the error. Not sure why.

Thanks for the example. I'll take a look at it to see if something similar will work for us.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exceptions during Purge ajoybasu Database Administration 1 October 15th, 2007 02:53
[SOLVED] Simple Order Screen showing java errors peacefuleye Installation and Upgrades 3 August 2nd, 2007 12:50
[SOLVED] Resolved: console.log errors after CU2 upgrade chrisplough Patches 0 February 15th, 2007 13:49
How do you verify your install had no errors? chrisplough Installation and Upgrades 0 May 31st, 2006 13:20



All times are GMT. The time now is 22:08.
Copyright © 2008, Open Book Solutions LLC. All rights reserved.

Sponsored by MavenWire - MavenWire.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37