The user I had created needed some particular roles and system privildges.
Roles : CONNECT, CSW_USR_ROLE, RESOURCE, WFS_USR_ROLE
System privileges : CREATE SESSION, CREATE TABLE, CREATE VIEW, UNLIMITED TABLESPACE
I had given some other roles and privileges which were unnecessary, hence the error came.