Oracle doesn't allow direct access to root on cloud machines. sudo is the only option users have to access the root privileges.   There is a alternative way of achieving this doing below, Refer MOS note Doc ID 2507383.1