Skip to Main Content

ORDS, SODA & JSON in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORDS silent install prompts for "location to store configuration data"

AoifeJan 10 2020 — edited Jan 10 2020

I'm trying to script an ORDS (version 19.2.0.199.1647) silent install in an environment where stdin is a tty. When it tries to run:

java -jar ords.war install --parameterFile path/to/ords_params.properties

ords.war prompts "Enter the location to store configuration data" on stdin. If stdin is not a tty, an exception is thrown:

Exception in thread "main" java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at oracle.dbtools.jarcl.Entrypoint.invoke(Entrypoint.java:66)

        at oracle.dbtools.jarcl.Entrypoint.main(Entrypoint.java:77)

Caused by: java.lang.NullPointerException

        at oracle.dbtools.cmdline.Commands.promptForConfigDir(Commands.java:561)

        at oracle.dbtools.cmdline.Commands.configurationContext(Commands.java:466)

        at oracle.dbtools.cmdline.Commands.prepareApplicationContext(Commands.java:385)

        at oracle.dbtools.cmdline.Commands.main(Commands.java:363)

        ... 6 more

Is there a way to do an ORDS install without any prompts or requiring stdin be a tty?

Thanks!

This post has been answered by thatJeffSmith-Oracle on Jan 10 2020
Jump to Answer

Comments

Srini Chavali-Oracle

Pl check with your MOS Administrator, who can assign patch download privileges - http://docs.oracle.com/cd/E25290_01/doc.60/e28848/toc.htm#BGBDGCEF

1 - 1

Post Details

Added on Jan 10 2020
2 comments
1,188 views