C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » General »

Oracle Schedular


Posted Date: 29 Aug 2008      Posted By: Nagamalleswari      Member Level: Silver     Points: 1   Responses: 2



i used this code

Insert into c Select * from b
begin
dbms_scheduler.create_job1w
(
job_name => 'streams_heartbeat_job',
job_type => 'PLSQL_BLOCK',
job_action => 'Insert into c Select * from b;',
start_date => SYSTIMESTAMP,
repeat_interval => 'freq=secondly; interval=15',
enabled => TRUE,
comments => 'Streams heartbeat job from site A'
);
end


Error:
-----

dbms_scheduler.create_job1w
*
ERROR at line 3:
ORA-00933: SQL command not properly ended

Where error is there please any one help me

Thanks,
Malleswari.





Responses

Author: D.Jeya kumar(JK)    29 Aug 2008Member Level: DiamondRating: 2 out of 52 out of 5     Points: 3

Hi,


run this statement alone in oracle and see what error it is throwing?

Insert into c Select * from b;

is both the table c and b have same structure?

Regards
JK



Author: D.Jeya kumar(JK)    29 Aug 2008Member Level: DiamondRating: 2 out of 52 out of 5     Points: 4

Hi,


Use this code

begin
dbms_scheduler.create_job1w
(
job_name => 'streams_heartbeat_job',
job_type => 'PLSQL_BLOCK',
job_action => 'Insert into c Select * from b;',
start_date => SYSTIMESTAMP,
repeat_interval => 'freq=secondly; interval=15',
enabled => TRUE,
comments => 'Streams heartbeat job from site A'
);
end


Regards
JK



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : photoshop
Previous : plz tell
Return to Discussion Forum
Post New Message
Category: General

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use