Follow these steps to connect Weblogic with Postgresql database:
- Download postgresql setup from here
- Download postgresql connection jar file from here
- install postgres database on your PC [during setup, you will enter database password]
- create a database using postgres pgadmin interface [ex: database name: tdb]
- put jar file some where on your pc [ex: C:\jars\postgresql-9.0-801.
jdbc3.jar] - edit file setDomainEnv.cmd under integration directory inside weblogic home directory [ex: C:\bea\weblogic81\samples\
domains\integration] - add jar file path [C:\jars\postgresql-9.0-801.
jdbc3.jar] at line 1999.
[ex: set CLASSPATH=%ARDIR%\ant\ant.jar;%JAVA_HOME%\jre\lib\rt.jar;C:\ jars\postgresql-9.0-801.jdbc3. jar] - open weblogic and start weblogic server
- click on tools menu, then weblogic server=> data source viewer
- click on New Data Source
- fill data source form:
data Source:postgres
pool : postgresbool
driver: select [org.postgresql.Driver]
url: jdbc://postgresql://localhost:5432/tdb
user: postgres
password: password that you entered in postgres installation
thanks for you good post
ReplyDeletebut can I connect now from weblogic forms to the postgresql database? will I configure tns name .ora or any thing els
any help please will i need to configure tnsname.ora after this steps or not
ReplyDeletecan i connect to postgresql database from sqlplis or not?
can i run forms and reports in weblogic so it can connect to postgressql database
ReplyDelete