Install the Oracle Instant Client (get the right one 32/64 bit) on your computer that you are running GEL scripts on.
This is the datasource I use to run gel scripts on my laptop.
<!-- Connecting to Database -->
<sql:setDataSource url="jdbc:oracle:thin:@DatabaseServerName:1521:niku" driver="oracle.jdbc.driver.OracleDriver" user="DatabaseUserName" password="DatabaseUserPassword" var="clarityDS" />
<sql:query dataSource="${clarityDS}" var="queryResults">
If in On-Demand, you will have to VPN in to get access to the database.
I used this GEL script snippet to set the correct datasource base if I am on my laptop or on the server (Note: I haven't tested this on 14. but it worked on 13!).
<!-- Get the configuration manager for DB and XOG -->
<core:invokeStatic var="caConfigMngr" className="com.niku.union.config.ConfigurationManager" method="getInstance" />
<!-- Database Source -->
<core:catch var="dataSourceException">
<gel:setDataSource dbId="niku" />
</core:catch>
<core:if test="${dataSourceException != null}">
<core:set var="dbDatabase" value="${caConfigMngr.getProperties().getDatabase(0)}" />
<core:set var="dbHost" value="${dbDatabase.getHost()}" />
<core:set var="dbUrl" value="${dbDatabase.getUrl()}" />
<core:set var="dbHost" value="${dbUrl.replaceAll('.*//', '').replaceAll(':.*','')}" />
<core:set var="dbPort" value="${dbUrl.replaceAll('^.*//+.*?:', '').replaceAll(';.*','')}" />
<core:set var="dbSid" value="${dbUrl.replaceAll('^.*SID=', '').replaceAll(';.*','')}" />
<core:set var="dbDriver" value="oracle.jdbc.driver.OracleDriver" />
<core:set var="dbUser" value="${dbDatabase.getUsername()}" />
<core:set var="dbPassword" value="${dbDatabase.getPassword()}" />
<core:set var="dbUrl" value="jdbc:oracle:thin:@//${dbHost}:${dbPort}/${dbSid}" />
<gel:log message="dbUser = ${dbUser} | dbUrl = ${dbUrl}" />
<sql:setDataSource url="${dbUrl}" driver="${dbDriver}" user="${dbUser}" password="${dbPassword}" />
</core:if>
And make sure you laptop gel has access to the Oracle JDBC driver jar.
V/r,
Gene