I want to create an ODBC app server that will allow us to establish an ODBC connection to the Documents database of the Marklogic server.
I am running below xquery in the query console -
xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy";
let $config := admin:get-configuration()
let $groupid := admin:group-get-id($config,"Default")
let $dbid := admin:database-get-id($config,"Documents")
let $config2 := admin:odbc-server-create($config,$groupid,"8002-odbc-documents","/",8002,"file-system",$dbid)
return admin:save-configuration($config2)
And it gives me this in return -
[1.0-ml] ADMIN-PORTINUSE: (err:FOER0000) Port is currently in use Stack Trace In /MarkLogic/admin.xqy on line 19660 In appserver-create-with-config(
<configuration/>, xs:unsignedLong("7455364825454068467"),<odbc-server xmlns="http://marklogic.com/xdmp/group"><odbc-server-name>...</odbc-server-name>...</odbc-server>, "odbc")In appserver-create-with-config(
<configuration/>, xs:unsignedLong("7455364825454068467"),<odbc-server xmlns="http://marklogic.com/xdmp/group"><odbc-server-name>...</odbc-server-name>...</odbc-server>, "odbc")In /MarkLogic/admin.xqy on line 13307
In function() as item()*()
In function() as item()*()`
======
I have tried changing the port to some other, still it gives me the same kind of error.