Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 java web 服务客户端类,为了从 Oracle 数据库调用这个类,我应该将类中的可访问方法设为静态吗?
是的。
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "Your_Class_Source" as public class Your_Class { public static void Your_Java_Func() { } }; CREATE OR REPLACE PROCEDURE Your_PLSQL_Procedure AS LANGUAGE JAVA NAME 'Your_Class.Your_Java_Func()';