Primavera (MOSC)

MOSC Banner

Primavera P6 API Exadata Connection Error

edited Feb 15, 2019 4:00AM in Primavera (MOSC) 1 commentAnswered

I am trying to connect to an Exadata database via the Primavera P6 API version 16.2.  My development environment is NetBeans 10.0, JDK version jdk1.8.0_202 and WIndows 7 64-bit.   I am using the demo code provided in the API documentation located here: https://docs.oracle.com/cd/E16281_01/Technical_Documentation/Integration_API/ProgrammerReference.html#demos.  I am following example 2 under the "Where to Begin Section".  The specific line of code is:

            DatabaseInstance[] dbInstances = Session.getDatabaseInstances(                RMIURL.getRmiUrl(RMIURL.STANDARD_RMI_SERVICE, "host", 1521 ) );

Please note that I replace the parameter "host" with the real name of my host.  I can also successfully connect to the database with Toad so I know it's not down.  One of the issues I have is I do not understand where to put the service name (assuming that I need it).  The method does not have a parameter for that so I think it's just trying to connect to the Exadata machine itself and not the actual database.  I have tried variations such as

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center