| Administrator | 
		I didn't analyze the code, but what I can say about this is;
 Those port values are also stored in the context file stored in the FND_OAM_CONTEXT_FILES table.
 So probably adop gets them from there.
 
 Following are some example queries for finding the port pool in EBS 12.2 using the FND_OAM_CONTEXT_FILES;
 
 Check Ports in Run Edition
 
 SELECT  extractValue(XMLType(TEXT),'//oacore_server_ports'),
 extractValue(XMLType(TEXT),'//forms_server_ports'),
 extractValue(XMLType(TEXT),'//oafm_server_ports'),
 extractValue(XMLType(TEXT),'//forms-c4ws_server_ports'),
 extractValue(XMLType(TEXT),'//oaea_server_ports')
 from apps.fnd_oam_context_files
 where name not in ('TEMPLATE','METADATA')
 and (status is null or status !='H')
 and EXTRACTVALUE(XMLType(TEXT),'//file_edition_type')='run'
 and CTX_TYPE = 'A';
 
 Check Ports in Patch Edition
 
 SELECT
 extractValue(XMLType(TEXT),'//oacore_server_ports'),
 extractValue(XMLType(TEXT),'//forms_server_ports'),
 extractValue(XMLType(TEXT),'//oafm_server_ports'),
 extractValue(XMLType(TEXT),'//forms-c4ws_server_ports'),
 extractValue(XMLType(TEXT),'//oaea_server_ports')
 from apps.fnd_oam_context_files
 where name not in ('TEMPLATE','METADATA')
 and (status is null or status !='H')
 and EXTRACTVALUE(XMLType(TEXT),'//file_edition_type')='patch'
 and CTX_TYPE = 'A';
 
 
 |