Tested and Verified for Weblogic 9.2
Copy XML files
Identify the Datasource XML files that needs to be copied. You will find the XML files under BEA_HOME
Copy these files into another domain or different machine under the same folder path mentioned above.
Make entry in config.xml file
For the number of XML files that are copied an entry needs to be made to config.xml file located under BEA_HOME
NOTE: Repeat the above steps for every Datasource you are copying. In case your Datasource needs to be deployed to multiple target servers, you can mention the server names using "," as delimiter. e.g. AdminServer,testServer,myServer,myCluster
Is that it?
No, you have one more step to perform. Database password that is set in the XML file is encrypted and needs to be changed when copying the Datasource to a different system. Perform below steps.
1. Open command prompt
2. cd BEA_HOME
3. Execute the setDomainEnv script (For Eg. setDomainEnv.cmd)
6. That's it
Hope this helps