I am trying to connect to Oracle Database using the following settings-
conn_string=['jdbc:oracle:thin:@',...'(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)',...'(HOST = nj******n.***.***)(PORT = 1521)))',...'(CONNECT_DATA =(SERVICE_NAME = PEWS)))']; setdbprefs('DataReturnFormat','cellarray'); conn = database('','****','***','Vendor','Oracle', 'URL',conn_string);
The connection is unsuccessful and I get the following error message-
'IO Error: The Network Adapter could not establish the connection'
I am able to connect to same Oracle Database from a sample Java application.
But it will always error out while trying to connect from MATLAB.
How to fix this?
Best Answer