Autor Beitrag
Christoph Englmann
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Do 29.06.06 09:32 
Hallo,

wie kann ich auf eine Oracle Systemprocedure wie z.B. DBMS_JOB zugreifen?

habs mit stored procedure versucht, aber hier sind leider irgendwie nur die eigens erstellten prozeduren ansprechbar und nicht die Systemprozeduren....


hilfe

danke
christoph
Bernhard Geyer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 721
Erhaltene Danke: 3



BeitragVerfasst: Do 29.06.06 21:49 
Hat der Benutzer mit dem du dich einlogst überhaupt die Berechtigung diese Auszuführen?
Christoph Englmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Mo 03.07.06 16:02 
hallo,

erstmal danke für Deine Antwort...
ja der benutzer muesste die rechte haben, da ich die prozedure auch vom sql-worksheet ausführen kann...

gruß
christoph
Christoph Englmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Mo 03.07.06 16:28 
nachtrag:

es erscheint die Meldung
ora 0900 invalid sql statement

mein code lautet
ausblenden Delphi-Quelltext
1:
2:
3:
  Query1.SQL.Clear;
  Query1.sql.Add('execute DBMS_JOB.BROKEN ('+IntToStr(ID_Prozess)+',TRUE) ');
  Query1.ExecSQL;


wenn ich mir zur laufzeit das unter sql.add rausschreiben lasse und in ein worksheet reinkopiere und ausführen lasse, meldet das worksheet ganz normal "prozedure erfolgreich abgeschlossen"