INNER CODE UNIT · Python

get_deployment_directory

oracle/docker-images · OracleGoldenGate/21c/bin/deployment-init.py:36

def get_deployment_directory(directories):
    """Returns an os.path object for either the main OGG Deployment or the ServiceManager deployment"""
    return os.path.join(os.environ['OGG_DEPLOYMENT_HOME'], *directories)


def get_admin_credentials():
    """Returns the administrator username and password for the OGG administrator"""
    return os.environ['OGG_ADMIN'], os.environ['OGG_ADMIN_PWD']


def wait_for_service(port):
    """Return once an SCA service is running, waiting up to two minutes"""
    url = 'http://' + service_address + ':' + str(port) + '/services/v2'
    for sequence in range(24):
        try:
            urllib.request.urlopen(url).read()
            return True
        except urllib.error.URLError:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…