forked from pvelder/wlst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigDSConnectionPool.py
30 lines (21 loc) · 1.47 KB
/
configDSConnectionPool.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
edit()
startEdit()
cd('/JDBCSystemResources/zms_adf/JDBCResource/zms_adf/JDBCDriverParams/zms_adf/Properties/zms_adf')
cmo.destroyProperty(getMBean('/JDBCSystemResources/zms_adf/JDBCResource/zms_adf/JDBCDriverParams/zms_adf/Properties/zms_adf/Properties/oracle.jdbc.ReadTimeout'))
cmo.destroyProperty(getMBean('/JDBCSystemResources/zms_adf/JDBCResource/zms_adf/JDBCDriverParams/zms_adf/Properties/zms_adf/Properties/user'))
cmo.destroyProperty(getMBean('/JDBCSystemResources/zms_adf/JDBCResource/zms_adf/JDBCDriverParams/zms_adf/Properties/zms_adf/Properties/oracle.net.CONNECT_TIMEOUT'))
cmo.createProperty('oracle.jdbc.ReadTimeout')
cd('/JDBCSystemResources/zms_adf/JDBCResource/zms_adf/JDBCDriverParams/zms_adf/Properties/zms_adf/Properties/oracle.jdbc.ReadTimeout')
cmo.setValue('60000')
cd('/JDBCSystemResources/zms_adf/JDBCResource/zms_adf/JDBCDriverParams/zms_adf/Properties/zms_adf')
cmo.createProperty('user')
cd('/JDBCSystemResources/zms_adf/JDBCResource/zms_adf/JDBCDriverParams/zms_adf/Properties/zms_adf/Properties/user')
cmo.setValue('zms')
cd('/JDBCSystemResources/zms_adf/JDBCResource/zms_adf/JDBCDriverParams/zms_adf/Properties/zms_adf')
cmo.createProperty('oracle.net.CONNECT_TIMEOUT')
cd('/JDBCSystemResources/zms_adf/JDBCResource/zms_adf/JDBCDriverParams/zms_adf/Properties/zms_adf/Properties/oracle.net.CONNECT_TIMEOUT')
cmo.setValue('10000')
cd('/JDBCSystemResources/zms_adf/JDBCResource/zms_adf/JDBCConnectionPoolParams/zms_adf')
cmo.setMaxCapacity(50)
save()
activate()