How to define a datasource in Oracle WebLogic WLST Configuration
For a SID:
<attribute name="Url" value="jdbc:oracle:thin:@hostname:1521:SID" />
For a Service:
<attribute name="Url" value="jdbc:oracle:thin:@hostname:1521/Service" />
Welcome to the blog, hope it helps you in resolving your issues.