Tomcate5.0 和Tomcate5.5 Oracle RAC 配置和分析

Tomcate 5.5 配置

       auth="Container"

        type="javax.sql.DataSource"

        maxActive="100"

        maxIdle="3"

        maxWait="10000"

        username="test1"

        password="test1"

        driverClassName="oracle.jdbc.OracleDriver"

        url="jdbc:oracle:thin:@

                (DESCRIPTION =

                (ADDRESS_LIST =

                (source_route=off)

                (FAILOVER = ON)

                (LOAD_BALANCE=ON)

                (ADDRESS = (PROTOCOL = TCP)(HOST = racdb1)(PORT = 1521))

                (ADDRESS = (PROTOCOL = TCP)(HOST = racdb2)(PORT = 1521))

                )

                (CONNECT_DATA =

                (service_name = RAC.pray.com)

                (failover_mode = (type=select))

                )

                )">

     

Tomcat5.028

 
 
   
      factory
      oracle.jdbc.pool.OracleDataSourceFactory
   

   
     user
     test
   

   
     password
     test
   

   
      url
      jdbc:oracle:thin:@
                (DESCRIPTION =
                (ADDRESS_LIST =
                (source_route=off)
                (FAILOVER = ON)
                (LOAD_BALANCE=ON)
                (ADDRESS = (PROTOCOL = TCP)(HOST =racdb1)(PORT = 1521))
                (ADDRESS = (PROTOCOL = TCP)(HOST = racd)(PORT = $DBPORT2))
                )
                (CONNECT_DATA =
                (service_name = rac.pray.com)
                (failover_mode = (type=select))
                )
                )
     

   

 

你可能感兴趣的:(Web,开发,数据库,相关,中间服务器使用和研究)