Hi Jaideep,
If you are using the SYSTEM user for the DB connection it should be assigned authorization to execute the following SQL commands on the SAP database schema (SAPSID): SELECT, INDEX, ALTER
And also must be assigned the object authorizations sys.trexviadbsl and sys.trexviadbslwithparameter
Regards,
Mina