Die Erstellung des Pakets Probleme mit SQL Developer

Also ich habe noch nie gearbeitet, mit gespeicherten Prozeduren und haben nicht eine ganze Menge DB-Erfahrung im Allgemeinen, und ich habe eine Aufgabe zugewiesen wird, die erfordert, dass ich ein Paket erstellen und ich bin stecken.

Mithilfe von SQL Developer, ich versuche zu schaffen, ein Paket namens JUMPTO mit diesem code...


create or replace package JUMPTO is
  type t_locations is ref cursor;

  procedure procGetLocations(locations out t_locations);

end JUMPTO;

Wenn ich es starten will, spuckt es diese PL/SQL-code-block...


DECLARE
  LOCATIONS APPLICATION.JUMPTO.t_locations;
BEGIN

  JUMPTO.PROCGET_LOCATIONS(
    LOCATIONS => LOCATIONS
  );
  -- Modify the code to output the variable
  -- DBMS_OUTPUT.PUT_LINE('LOCATIONS = ' || LOCATIONS);
END;

Einem tutorial habe ich gefunden, sagte, um den Kommentar, die zweite Zeile gibt. Ich habe versucht, mit und ohne Kommentar.

Wenn ich drücken Sie "ok" erhalte ich die Fehlermeldung...


ORA-06550: line 2, column 32:
PLS-00302: component 'JUMPTO' must be declared
ORA-06550: line 2, column 13:
PL/SQL: item ignored
ORA-06550: line 6, column 18:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 5, column 3:
PL/SQL: Statement ignored
ORA-06512: at line 58

Ich habe nicht wirklich eine Ahnung, was Los ist, das ist alles komplettes Neuland für mich. Ich habe versucht, die Schaffung einer Stelle, dass nur einige ausgewählte Sachen aus der Datenbank, aber nichts funktioniert so, wie es scheint, wie es sein sollte in meinem Kopf. Kann jemand geben mir keinen Einblick?

InformationsquelleAutor Carter | 2009-01-08
Schreibe einen Kommentar