Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\OC4J_DBConsole\config\data-sources.xml
<?xml version="1.0" standalone='yes'?> <data-sources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/data-sources-10_1.xsd" schema-major-version="10" schema-minor-version="1" > <!-- This is the old example...It will soon be removed from this file. An example/default DataSource that uses Oracle JDBC-driver to create the connections. This tag creates all the needed kinds of data-sources, transactional, pooled and EJB-aware sources. The source generally used in application code is the "EJB" one - it provides transactional safety and connection pooling. Oracle thin driver could be used as well, like below. url="jdbc:oracle:thin:@host:port:sid" <data-source class="com.evermind.sql.DriverManagerDataSource" name="OracleDS" location="jdbc/OracleCoreDS" xa-location="jdbc/xa/OracleXADS" ejb-location="jdbc/OracleDS" connection-driver="oracle.jdbc.driver.OracleDriver" username="scott" password="->pwForScott" url="jdbc:oracle:thin:@localhost:1521:oracle" inactivity-timeout="30" /> --> <connection-pool name="Example Connection Pool"> <!-- This is an example of a connection factory that emulates XA behavior. --> <connection-factory factory-class="oracle.jdbc.pool.OracleDataSource" user="scott" password="tiger" url="jdbc:oracle:thin:@//localhost:1521/oracle.regress.rdbms.dev.us.oracle.com"> </connection-factory> </connection-pool> <managed-data-source name="OracleDS" connection-pool-name="Example Connection Pool" jndi-name="jdbc/OracleDS"/> <!-- The following is an example of data source whose connection factory that does not emulate XA behavior. It includes an xa-recovery-config that can be specified in order to override the runtime password-credential in the case where a recover scan is necessary --> <!-- <managed-data-source name='NonEmulatedDS' connection-pool-name='NonEmulated Connection Pool' jndi-name='jdbc/NonEmulatedDS'/> <connection-pool name='NonEmulated Connection Pool'> <connection-factory factory-class='oracle.jdbc.xa.client.OracleXADataSource' user='scott' password='tiger' url="jdbc:oracle:thin:@//localhost:1521/oracle.regress.rdbms.dev.us.oracle.com"> <xa-recovery-config> <password-credential> <username>system</username> <password>manager</password> </password-credential> </xa-recovery-config> </connection-factory> </connection-pool> --> <!-- The following is an example of the connection pool attributes in use. --> <!-- <connection-pool name='NonEmulated Connection Pool' min-connections='0' max-connections='0' initial-limit='0' used-connection-wait-timeout='60' inactivity-timeout='60' connection-retry-interval='1' max-connect-attempts='3' validate-connection='false' num-cached-statements='0' time-to-live-timeout='-1' abandoned-connection-timeout='-1' property-check-interval='900'> <connection-factory factory-class='oracle.jdbc.xa.client.OracleDataSource' user='scott' password='tiger' url="jdbc:oracle:thin:@//localhost:1521/oracle.regress.rdbms.dev.us.oracle.com"> </connection-factory> </connection-pool> --> <!-- An example of using password indirection. <managed-data-source name='PasswordIndirection' connection-pool-name='NonEmulated Connection Pool' jndi-name='jdbc/PasswordIndirection' user='scott' password='->scott'/> --> </data-sources>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de