INNER CODE UNIT · Python
get_admin_credentials
oracle/docker-images · OracleGoldenGate/23/bin/deployment-init.py:40
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:
time.sleep(5)
return False
def find_process(processName):