In Oracle Utilities Mobile Workforce Management runs on WebLogic server.
Pre-requisites
Oracle native WebLogic domain configured and the Admin Server must be up and running because our automation will be going to work online WLST.
How does it works?
In the Oracle Utilities products have a file ENVIRON.INI, that will having all connection related parameters available such as: ADMIN HOST, ADMIN PORT, UserStoreConfig files userConfigFile
userKeyFile path. By reading this file as properties we can get connected to the running WebLogic Admin Server.
We will need the GEOCODE data source parameters, this can be passed as properties file ConfigGEOCODE.properties. To create a data source we need the following :
- Name of the datasoruce as GEOCODE
- JNDI Name as NAVTEQ_UTIL
- Select the database as Oracle
Connection pool configuration in the JDBC System Resource
- Enter your database hostname
- Database port
- Database name
- Database user credentials
- Test Connection Pool
###################****##############****################################################ # Generic Datasource configuration script applicable on any Operating Environments (Unix, Windows) # ScriptName : ConfigGEOCODE.py # Properties : ConfigGEOCODE.properties # Updated by : Pavan Devarakonda # Date creation : 9th Aug 2018 ############### Connecting to Start ################################################ def connectAdmin() : try: import os splebase=os.environ['SPLEBASE'] loadProperties(splebase+"/etc/ENVIRON.INI") userconfig = splebase+"/etc/.wlsuserconfig" userkey = splebase+"/etc/.wlsuserkey" adminurl="t3s://"+WEB_ADMIN_SERVER+":"+WLS_ADMIN_PORT printline('Connectiong to adminurl: '+adminurl) connect(userConfigFile=userconfig,userKeyFile=userkey, url=adminurl) printline('Successfully connected') except: printline('Unable to find admin server...') exit() #================== Printing line ===================================== def printline(msg): print 45*'#' print msg print 45*'#' ################### Configuring Connection Pool ############################# def connPool(DSnam) : DRVPARM='/JDBCSystemResources/'+DSnam+'/JDBCResource/'+DSnam+'/JDBCDriverParams/'+DSnam cd(DRVPARM) set('Url',DBURL) set('DriverName',DBDRV) cmo.setPassword('XXXXXX') cd(DRVPARM+'/Properties/'+DSnam) cmo.createProperty('user') cd(DRVPARM+'/Properties/'+DSnam+'/Properties/user') set('Value',DBUSR) ############ Creating Data source ############################### def createDS() : DSnam = DSName printline('Creating datasource :'+DSnam) cmo.createJDBCSystemResource(DSnam) RESOURCE='/JDBCSystemResources/'+DSnam+'/JDBCResource/'+DSnam cd(RESOURCE) set('Name',DSnam) #Setting JNDI name cd(RESOURCE+'/JDBCDataSourceParams/'+DSnam) print RESOURCE+'/JDBCDataSourceParams/'+DSnam set('JNDINames',jarray.array([String(JNDIname)], String)) connPool(DSnam) #Set Connection Pool specific parameters cd(RESOURCE+'/JDBCConnectionPoolParams/'+DSnam) cmo.setTestConnectionsOnReserve(true) cmo.setTestTableName('SQL SELECT 1 FROM DUAL\r\n\r\n') #cmo.setTestTableName('SQL ISVALID') cmo.setConnectionReserveTimeoutSeconds(25) cmo.setMaxCapacity(15) cmo.setConnectionReserveTimeoutSeconds(10) cmo.setTestFrequencySeconds(120) cd(RESOURCE+'/JDBCDataSourceParams/'+DSnam) cmo.setGlobalTransactionsProtocol('TwoPhaseCommit') # targets the GEOCODE DataSource to utilities_cluster1 cd('/SystemResources/'+DSnam) set('Targets',jarray.array([ObjectName('com.bea:Name='+clstrNam+',Type=Cluster')], ObjectName)) ########################### Main Module ##################################### if __name__== "main": connectAdmin() edit() startEdit() # Create a new JDBC resource) try: cd('/') createDS() except BeanAlreadyExistsException: printline('Error: GEOCODE Datasource already exist') cancelEdit('y'); exit() save() activate() printline('Successfully created GEOCODE datasource') disconnect()The properties file look like this:
#========================================= DBURL=jdbc:oracle:thin:@mydb.server.com:1521:M1DBMAPS DBDRV=oracle.jdbc.xa.client.OracleXADataSource DBPASS=XXXXXXX DBUSR=NAVTEQ_UTIL DSName=GEOCODE JNDIname=NAVTEQ_UTIL clstrNam=utilities_cluster1The script execution goes as follows:
Now prepare for execution of WLST script, setup the environment and also define proper SSL related options to include in JAVA_OPTIONS which will be considered when wlst.sh execution time.
wlst -loadProperties ConfigGEOCODE.properties ConfigGEOCODE.py
This script execution was tested successful and ready to use. You need to enter properties file corresponding to your database values.
ReplyDeleteiphongthuynet
iphongthuynet
iphongthuynet
iphongthuynet
iphongthuynet
iphongthuynet
iphongthuynet
iphongthuynet
iphongthuynet
ReplyDeleteI was scrolling the internet like every day, there I found this article which is related to my interest. The way you covered the knowledge about the subject and the Bungalows in chunabhatti bhopal was worth to read, it undoubtedly cleared my vision and thoughts towards B Commercial Shops on ayodhya bypass road. Your writing skills and the way you portrayed the examples are very impressive. The knowledge about flats in chunabhatti bhopal is well covered. Thank you for putting this highly informative article on the internet which is clearing the vision about top builders in Bhopal and who are making an impact in the real estate sector by building such amazing townships.
Good Post. I like your blog. Thanks for Sharing
ReplyDeletePython Course in Noida
Peau Jeune
ReplyDeleteSite officiel (Magasinez maintenant) :- https://www.dietarycafe.com/peau-jeune-avis-fr/
Visitez maintenant plus d'informations:-
https://www.completefoods.co/diy/recipes/peau-jeune-2
https://sites.google.com/site/dietarycafe/peau-jeune
https://medium.com/@dietarycafe/peau-jeune-avis-d89c0665a2ee
https://dietarycafe.blogspot.com/2019/11/peau-jeune.html
http://thedietarycafe.over-blog.com/peau-jeune
Peau Jeune a ses propres caractéristiques et avantages qui aide à maintenir vos rides et les lignes du visage avec sa formule anti-vieillissement énorme.
Hi! Are you having tough time writing an excel projects for your college or university courses? Feel free to seek help from expert custom writing service! https://essaysprofessor.com/questionnaire-writing-service.html
ReplyDeleteThis article is a great article that I have seen in my python programming career so far, Its helps me a lot in Configuration of GEOCODE Datasource for Oracle MapViewer.
ReplyDeletehire python developers in US
Time is money. There are few types of businesses that understand and embody this adage as much as a casino. While casinos promote themselves as a place of luck and luck, for owners it is quite the opposite.
ReplyDeleteData driven decision making examples
Thank you!!!!!!
ReplyDeleteBrilliant post. A blog like this GEOCODE data source is the basic configuration requirement for running an Oracle MapViewer with the latest Technology. Once again thank you!, Very nice information sharing with us, and very helpful. If you want to about USA VPS Server more information then pick now with reliability our USA VPS hosting plans.
This comment has been removed by the author.
ReplyDeleteThank you!!! once again
ReplyDeleteThis is the best Knowledge and info on the blog that I found - and I have been researching for a while now! that was very helpful for us. Nowadays it is very important to take the right information from the internet. Are you searching for a website related to hosting information on the internet? if yes, then you can choose UK VPS Hosting from Onlive Server. The UK VPS Server Hosting plans ensure. Thank you so much for sharing this information with us.
I have never been afraid of it and I'm not about to begin now. I'm not betting the farm on that where let's imagine that we accept your offer. That is a fab Keto Advanced Fat Burner scheme. When you hear the phrase, "I love Keto Advanced Fat Burner" you wouldn't imagine of a business dedicated entirely to Keto Advanced Fat Burner. At the very least I must not invite that as much as possible.
ReplyDeleteKeto Advanced
Keto Advanced Weight Loss