0

I have oracle function which I want to convert into PostgreSQL below I am mentioning the oracle function.

create or replace
FUNCTION             "BOMQTYON" (M_Product_ID NUMBER, M_Warehouse_ID NUMBER,
        M_Locator_ID NUMBER, LocatorType VARCHAR2)
    RETURN NUMBER
    AS LANGUAGE JAVA
    NAME 'org.compare.sqlj.Product.bomQtyOnHold(int,int,int,java.lang.String) return java.math.BigDecimal';

I tried to create a function in PostgreSQL but it given me error on language JAVA does not exists

1
  • 1
    Please post what you tried so far and the problems you are having Commented Aug 9, 2016 at 12:49

1 Answer 1

1

You will have to rewrite your function in one of the server programming languages on PostgreSQL.

Apart from the usual suspects PL/pgSQL and PL/Perl, you could consider using PL/Java, but you'll have to build it yourself, and don't expect that you can just reuse your Oracle code without modifications.

Sign up to request clarification or add additional context in comments.

2 Comments

I tried to create PL java language but it s not showing in drop down list please suggest me how can i create PL/java
I have no idea what drop-down list you are talking about. What program has this drop-down list? About installation: did you follow the instructions? With what success?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.