The idea is to initiate a session (eg, sqlplus, ssh, etc) in a process and once the session is established, control is transferred
this session to another process (child process clone, etc.) is possible? if so, it would be feasible from the standpoint of programming?
The only thing which is different in parent and child process is the return value of fork otherwise rest is same.
So, you can simply create a connection and same FD will be inherited by Child process.