-2
我嘗試創建包:錯誤:ORA-00955:名稱已由現有對象使用。然後,我創建包
CREATE OR REPLACE PACKAGE CARS AS
TYPE REFCURSOR IS REF CURSOR;
TYPE car_arr IS TABLE OF my_cars%ROWTYPE;
PROCEDURE getAllCars(cars OUT REFCURSOR);
FUNCTION getCarById(id IN VARCHAR2) RETURN REFCURSOR;
END CARS;
我得到:錯誤:ORA-00955:名稱已經由現有的對象。
如何解決?
檢查名爲'CARS'的對象是否存在於當前用戶模式中:SELECT owner,object_name,object_type FROM all_objects WHERE object_name ='CARS'; –
錯誤信息很清楚 – GurV
@ Mighty.Moogle所有者:我的用戶,OBJECT_NAME:CARS –