a) 用PUTTY链接到PORTAL IP地址(帐号: root,密码: huawei)
b) 输入: “cd /opt/SPG2800/workshop/tomcat/conf”
c) 输入: “vi context.xml”
d) 按”i”进入编辑模式
e) 倒数第二行添加
<Resource name="iac" auth="Container" type="javax.sql.DataSource"
username="数据库用户名"
password="数据库密码"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@127.0.0.1:1531:IMSSPG"
maxActive="100"
maxIdle="10" maxWait="5000" />
示例:
<Resource name="iac" auth="Container" type="javax.sql.DataSource"
username="ims"
password="huawei"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@127.0.0.1:1531:IMSSPG"
maxActive="100"
maxIdle="10" maxWait="5000" />