I have used DB connect 2 to estabilish a connection to an Oracle database. Now I want to use dbxquery to search the oracle table, but to run the dbxquery command, I must first URL encode the SQL query and I have no idea how to do this. For example, I search a table using
SELECT * FROM "USER_ADDR" but how do I change this to a URL encoded query and where I can learn how to do it?
************ command="dbxquery", No JSON object could be decoded*************
Any answers for this one , we were able to work with the SQL queries using dbquery in DB connect 1 but are facing issues with DB COnnect 2 (dbxquery). Please help on this.
I suspect the JSON error you receive is not because of query encoding. After query is executed and database returns the results, the content has a special characters which are not JSON friendly, since results is returned through REST API and in JSON format. To verify it simplify your query and instead of asking for all columns change it to:
Also you don't need to encode comma to %2C.