15.11.1 Get a Server Instance

You can get a PGX Instance as shown in the following code:

Get a PGX Instance Using Java
import oracle.pgx.api.*;
ServerInstance instance = Pgx.getInstance(Pgx.EMBEDDED_URL);
Get a PGX Instance Using Python
instance = pypgx.get_session(base_url = "url")