MCPcopy Create free account
hub / github.com/quentinhardy/odat / getDatabasePlatfromNameWithPortString

Method getDatabasePlatfromNameWithPortString

OracleDatabase.py:396–414  ·  view source on GitHub ↗

Return platform_name string from port_string. Return "" if an error

(self)

Source from the content-addressed store, hash-verified

394 return platformName
395
396 def getDatabasePlatfromNameWithPortString(self):
397 """
398 Return platform_name string from port_string.
399 Return "" if an error
400 """
401 platformName = ""
402 REQ = "select dbms_utility.port_string from dual"
403 response = self.__execQuery__(query=REQ, ld=['platform_name'])
404 if isinstance(response,Exception):
405 logging.debug("Impossible to get remote platform name with port_string")
406 return platformName
407 else:
408 if len(response)>0 and isinstance(response[0],dict):
409 platformName = response[0]['platform_name']
410 logging.debug("Remote platform name: {0}".format(platformName))
411 return platformName
412 else:
413 logging.debug("Impossible to get remote platform name with port_string")
414 return platformName
415
416 def getOSFromPortString(self):
417 """

Callers 1

Calls 2

__execQuery__Method · 0.95
lenFunction · 0.85

Tested by

no test coverage detected