awk -F '(Following are the |[dD]omains running in the server )' 'NF>1{x=$3 OFS $2}NF==1{print x $1}' file1
Ram-pc Process_Scheduler VPORCL Ram-pc Application Server VPORCL01 Ram-pc Application Server VPORCL02