泛微oa系統連接配接oracle資料庫的檔案存放在:
d:\eweaver\tomcat\webapps\root\web-inf\classes目錄下的eweaver.properties檔案中,如下圖:
内容如下:
db.driver=oracle.jdbc.driver.oracledriver
db.url=jdbc:oracle:thin:@ilanni.com:1521:orcl
db.username=*********
db.password=*********
db.max=250
db.min=100
hibernate.dialect=org.hibernate.dialect.oracledialect
hibernate.show_sql=false
hibernate.generate_statistics=false
hibernate.cache.provider_class=org.hibernate.cache.ehcacheprovider
hibernate.cache.use_minimal_puts=true
hibernate.cache.use_structured_entries=true
hibernate.cache.use_query_cache=true
hibernate.use_sql_comments=trues
hibernate.order_updates=true
hibernate.format_sql=true
hbm2ddl.auto=create
上圖中需要注意的地方,我已經标示出來了。其中第一行是連接配接資料庫的位址、資料庫名稱及端口号:
ilanni.com是oracle資料庫的連接配接位址 1521是oracle資料庫的對應的端口号
orcl是oracle資料庫的資料庫名稱
第二行是資料庫的使用者名 第三行是資料庫的密碼