Database connectivity in the EP development

hi,
can any one of tell me the solution to the following query.
How can we connect to the database at the time of development part of EP.
i.e.,
I want to work with the backend databse as MSSQL in EP developemnt please tell me the procedure to communicate with the database,database creation, retrival of data,working with the data which stored in back end.
i need the complete procedure of all these steps.
Regards,
sireesha.

Hi Sireesha, hi Prakash, hi Raj,
> isn't the procedure is correct for the MSSQL,
> if it is wrong tell me the correct procedure
As said, and as you could see by yourself, you used values for SAPDB, i.e. DriversapDB and jdbc:sap:sapdb://... Ooops, I just saw it - you just took the example values from the linked side I provided... That's not what you're supposed to do, be aware that you are providing connection information to your database in here.
For MSSQL, it should be something like:
jdbc:sap:sqlserver://localhost:1433;DatabaseName=YourName
and the driver:
com.sap.portals.jdbc.sqlserver.SQLServerDriver.class
This is the SQLServer driver delivered by SAP.
Prakash: A had a longer discussion with Karsten Stombrowski about this issue, and still I don't have been given good reasons (not one good reason) to use JCA for pure DB access, see connection pool
> The code is easier to migrate because
> you don't have to worry about figuring out data source
As already written in the other thread, I cannot see any worries to care about. It's such a standardized procedure with many advantages and without the disadvantage of an extra layer (JCA), that I still don't think that using JCA for pure DB access should be promoted.
The only situation where I can see advantages are when it is not sure that data will always be retrieved by a DB and when you want to provide flexibility to change from DB to another kind of backend, also connected by JCA.
Best regards
Detlev

Similar Messages

  • How can i include database connection in an EP development

    Does any body knows what are the steps to include database connection in an EP development in NWDS?

    Hi Jose.
    http://help.sap.com/saphelp_nw04/helpdata/en/30/a0f17aacb34b108b39a96acc33da3f/frameset.htm
    or
    http://help.sap.com/saphelp_nw04/helpdata/en/fe/9e362f3d954e8e8555007d8030df63/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/b0/6e62f30cbe9e44977c78dbdc7a6b27/frameset.htm
    Regards, Karsten

  • Error during database connection to the database : MS SQL Server 2008 R2

    Hi All,
    I am working with ABAP Proxy to Rec JDBC( Integrating XI with MS SQL Server 2008 R2). I am using SAP PI 7.0
    I am getting error in RWB at communication channel monitoring :
    Error during database connection to the database URL 'jdbc:microsoft:sqlserver://10.1.92.111:1433;database=XONTUSERVENTURA_ORG_TEST' using the JDBC driver 'com.microsoft.jdbc.sqlserver.SQLServerDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:microsoft:sqlserver://10.1.92.111:1433;database=XONTUSERVENTURA_ORG_TEST': SAPClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver'
    I have given Connection details at Rec JDBC Communication channel as :
    JDBC Driver as : com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection : jdbc:sqlserver://10.1.92.111:1433;database=XONTUSERVENTURA_ORG_TEST.
    Please help me in this regard. I really appreciate your valuable information and time.
    Thanks and Regards,
    Ayub.
    Edited by: Ayubsajjid on Feb 15, 2012 8:49 AM

    Hi All,
    Thanks for all your valuable inputs on my question...
    As per all your inputs, we have to install/Deploy the below required jar files in the aii_af_jmsproviderlib.sda file
    ojdbc14.jar
    msbase.jar
    mssqlserver.jar
    msutil.jar
    Can you please tell me from where we will exact this .jar file, bcoz we have search lotzz but we helpless.
    We install from this link http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=21599--> we download sqljdbc_3.0.1301.101_enu  file >sqljdbc_3.0>enu-->in that I find sqljdbc.jar and sqljdbc4.jar files only . I cant above said .jar files.
    Please help me.
    Regards,
    Ayub.

  • Try to connect oracle in portal 4.0 and cannot create database connection for the realm

    hello,
    i have try to use the method in configuring Weblogic Portal for Oracle Database.
    I have made all with no problems
    but when i stop and i start the weblogic portal i have this error
    java.lang.IllegalAccessError: Exception[com.bea.p13n.security.realm.RDBMSException
    : An error occured creating a database connection for the realm.]
    Any one have a solution? Thx!

    Jean-Philippe,
    This usually is due to a DB configuration issue. Check your RDBMS realm
    username, password and driver properties. Check your database is running and
    have enough Connection free.
    Sincererly,
    Daniel Selman
    "jpmeert" <[email protected]> wrote in message
    news:3c88e867$[email protected]..
    >
    hello,
    i have try to use the method in configuring Weblogic Portal for OracleDatabase.
    >
    I have made all with no problems
    but when i stop and i start the weblogic portal i have this error
    java.lang.IllegalAccessError:Exception[com.bea.p13n.security.realm.RDBMSException
    : An error occured creating a database connection for the realm.]
    Any one have a solution? Thx!

  • How can I save a form with database connections with the info w/o requiring the connection again?

    I have a form in LiveCycle ES2 that has an ODBC connection to an Access 2007 database.  The form works great and all the data populates the form just fine, but next I need a way to save the generated form with the data so it can be sent and signed by people who won't (and can't) have a connection to the database.  I am developing on a Windows 7, 64 bit machine and have Adobe Acrobat X Pro, and Adobe Reader X.
    Any help or suggestions would be appreciated.
    Thanks

    Thanks for the quick response.  I tried saving the form as Reader Extended in Acrobat Pro, but if I close the form I saved as extended, it still prompts for the data connection.  Is there some setting in Adobe LiveCycle in the properties that maybe needs to be set?  I have it set as a Dynamic XML Form.  In form properties, there is a tab called data binding, should I have "Allow binding to data not defined by the default data connection" checked?  Wasn't sure what "Add data nodes inside the filtered data hierarchy" would do either.

  • Why does it take over 2 minutes to get a database connection from the DataSource?

    Hello,
    It is taking over 2 minutes for my application to get a connection from a registered DataSource in iAS 6.0 sp4 on Solaris. The proper results are returned it just takes 2 minutes to establish the connection. The DataSource is an Oracle 9i database. I have the 9i drivers in the classpath. I also have a registered datasource that is an Oracle 8 database and have no problems establishing a connection quickly to that database. As an aside I have setup this application on JBOSS and both datasource's return a connection very quickly. If anyone has any ideas about what might be going on please respond. This issue is holding up a production release.
    Here is the code:
    try {
    log.debug("getting a new initial context");
    ctx = new InitialContext();
    ds = (DataSource) ctx.lookup(bundle.getString("IW_DATASOURCE"));
    log.debug("after looking up datasource from initial context");
    } catch (NamingException e) {
    log.error(e);
    throw new FinstarException
    (bundle.getString("E-0001"));
    try {
    log.debug("about to get connection");
    conn = ds.getConnection();
    log.debug("after getting connection");
    Produces this in the logs:
    2002-05-29 08:55:12,859 DEBUG org.mitre.mii.project.finstar.FinancialSummary - about to get connection
    2002-05-29 08:57:24,963 DEBUG org.mitre.mii.project.finstar.FinancialSummary - after getting connection
    Here is the datasource registration file:
    <ias-resource>
    <resource>
    <jndi-name>jdbc/pdc/IWDataSource</jndi-name>
    <jdbc>
    <database-url>jdbc:oracle:thin:@xxx.xxx.org:1521:acisdb</database-url>
    <datasource>jdbc/pdc/IWDataSource</datasource>
    <username>XXXXX</username>
    <password>XXXXX</password>
    <driver-type>OracleThinDriver</driver-type>
    </jdbc>
    </resource>
    </ias-resource>

    Have you tried to eliminate everything extraneous. In other words, do you experience the same delays with a simple Java program (no lookups, JNDI) that loads the drivermanager and creates a connection.
    Do you have access to a traciong JVM or some program that captures run-time execution timing information? Even without the source, this will tell you the specific class::methos where time is spent so you can better determine where the delay is ocurring.

  • Problem with Database Connections in the designer - Catalog not updated

    This is Crystal Reports 2008 (12.2.0290). We have a number of reports that are viewed using the .Net runtime with the connection details set at runtime using ODBC to talk to SQL Server on different systems. This all works fine and is not the problem. The problem is when editing reports in the designer take the following example:
    Developer 1 creates report on their machine that references tables. DSN Name is DEV_DSN, pointing at their local database on their machine called DEV_DB1. Developer 2 needs to edit the report on their machine with a DSN of the same name (DEV_DSN) but this points to a different database on developer 2's machine called DEV_DB2.
    Developer 2 goes to the Set Datasource Location option in the Database menu to get it to point at their local DB only it doesn't work. They click on the first table included  (or the connection name) in the report and click update - they are prompted for the logon details for their local DSN/DB and supply them but they see an error indicating that there is an "Invalid object name" because the table is still being prefixed with the database name from developer 1's machine. When the table is expanded in this view the Catalog still shows as the DB name from developer 1's machine despite the connection properties above correctly showing the local DB name.
    As I say this is a design time issue not a runtime issue.
    Any ideas? Is there any way we can edit the Catalog name manually?

    Try setting the Over ridden qualified Table Name
    Set Datasource - > Tablename -> Properties
    Double click Over ridden qualified Table Name, type name as shown in in the table name field above it.
    Repeat for each table, this removes schema and db names associated with Table. Take a look at the SQL and make sure all tables are no longer prefixed.
    Report should now be totally portable.
    Ian

  • How to share the same Database Connection when using several Task Flows ?

    Hi All,
    I’m using JDev 11.1.1.3.0.
    I’m developing ADF Fusion Applications (ABC BC, ADF Faces…)
    These applications are deployed on a Weblogic server.
    Each application has only one Application Module.
    All Application Modules have the same connection type defined: JDBC DataSource : jdbc/GCCDS
    It is working fine.
    I’ve also developed Task Flow Applications for small thinks that are reused in multiple main applications.
    Each Task Flow Application has also one Application Module with the same connections type as main applications.
    All these task flows are deployed to JAR file (ADF Library JAR File) and are reused on my main applications. (drag and drop from the Resource Palette to ADF Regions….).
    There are some parameters passed to Task Flows, so that they can filter data depending on which main applications they are called from.
    Everything is working perfectly.
    All my main applications are using more and more task flows. Which is nice for the reusability etc…?
    Only ONE PROBLEM: DATABASE CONNECTIONS.
    Every Task Flows service made a database connection. So one user may have 10 database connections for the same adf page. And when there are 100 users that are working at the same time, it becomes a problem.
    How to share the same database connections for the main applications and all task flows which are used in the main application?
    Best Regards
    Nicolas

    Hi John,
    When I open a ADF Library JAR file of one of my task flow. (gcc_tf_recentSites.jar)
    I can see TF_RecentSitesService.xml and TF_RecentSitesServiceImpl.class in gcc_tf_recentSites.jar\mu\gcc\tf\recentSites\model\service folder
    + bc4j.xcfg in gcc_tf_recentSites.jar\mu\gcc\tf\recentSites\model\service\common folder.
    bc4j.xcfg details are
    +<?xml version = '1.0' encoding = 'UTF-8'?>+
    +<BC4JConfig version="11.1" xmlns="http://xmlns.oracle.com/bc4j/configuration">+
    +<AppModuleConfigBag ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService">+
    +<AppModuleConfig DeployPlatform="LOCAL" jbo.project="mu.gcc.tf.recentSites.model.TF_RecentSites_Model" name="TF_RecentSitesServiceLocal" ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService">+
    +<Security AppModuleJndiName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService"/>+
    +<Custom JDBCDataSource="jdbc/GCCDS"/>+
    +</AppModuleConfig>+
    +<AppModuleConfig name="TF_RecentSitesServiceShared" ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService" DeployPlatform="LOCAL" JDBCName="gccdev" jbo.project="mu.gcc.tf.recentSites.model.TF_RecentSites_Model">+
    +<AM-Pooling jbo.ampool.maxpoolsize="1" jbo.ampool.isuseexclusive="false"/>+
    +<Security AppModuleJndiName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService"/>+
    +</AppModuleConfig>+
    +</AppModuleConfigBag>+
    +</BC4JConfig>+
    So, it seems that the Application Module is packaged with the task flow....
    Is it normal ?
    Regards
    Nicolas

  • Trying to get the default database connection

    I'm trying to use the default database connection that the application server has but when I call this method I get an error :
    Connection conn = (new oracle.jdbc.driver.OracleDriver()).defaultConnection();
    java.sql.SQLException: Invalid Oracle URL specified
    Do I have to do some setup? I don't want to hard code the connection URL in my code.
    Thanks,
    Merced

    Hi Avi,
    Thank you so much. I added the following and I was able to get the connection:
    Context ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/DBConnection1CoreDS");
    Connection c = ds.getConnection();
    Currently I'm running it from JDeveloper and the data-source.xml gets generated automatically. How will it work when I deploy this application to the Oracle Application server? Do I have to update or copy data-source.xml? What does "jdbc/DBConnection1CoreDS" mean? I only know that in data-source.xml I have location="jdbc/DBConnection1CoreDS". I don't understand how Context is able to find this. I also deleted this entry from data-souce.xml but it got generated again. I don't understand that either.
    Your help is appreciated.
    Thanks,
    Merced

  • Workspace Error 8001: The Database Connection could not be found

    We had to reboot all our windows servers recently and since then all the database connections in the database base manager in workspace are gone.
    I can see all the existing reports but cannot use any of them as I dont have any connections.
    Also I cannot create any new connections
    I get the error 8001: The Database Connection could not be found: 13cbd63_12b5e2a8b73_-7f8f when I try to create a new connection.
    Not sure what the problem is.
    Any suggestions?

    Hi Pat,
    It loks like your Biplus relational DB is corrupted, try with those steps:
    1. De-register BI+ from Shared Services (Config Utility->Hyperion Reporting and Analysis > Deregister from Shared Services)
    2. Configure against the backup database (Drop and recreate tables option).
    3. Re-register BI+ with Shared Services.
    4. Re-deploy BI+.
    5. Test Workspace and add new connections.
    Regards.

  • Monitoring/debug the database connection process

    Hi,
    I am trying to define a new database connection using the JDBC-ODBC Bridge (trying to connect to a legacy apps), and keep getting an error message from the ODBC driver manager, which work perfectly fine outside the JDev environment.
    Is there a way for me to monitor/debug the database connection process, prior to a successful test connection, in order for me to find out exactly where/what the problem is?
    Thanks for the help,
    Arie.

    Repost

  • How to connect to the mysql database using applet from remote PC

    Hii All..
    I am also facing a problem.
    My web server and mysql server are running on the same PC.
    when i connect to the database from the same PC.
    Its connection but when i am trying to connect to the database from the different PC its giving error and not finding the driver "com.mysql.jdbc.Driver" because this is there on the server PC and applet runs on the client side..
    So to load the deriver on the client side so that it can run the applet to make the database connection on the remote PC.
    Thanks
    Uttam

    You are missing the library on the client.
    It must be moved to the client.
    Just like any other library that an applet requires.
    And that has nothing to do with JDBC.
    There are certainly way(s) to do it. Perhaps a forum that addresses applets, web usage or guis would provide an answer.

  • Prevent JDdeveloper connect to the database at Startup

    Jdeveloper is trying to establish a database connection at the startup...I would want to establish a connection only when trying to lauch a project.Is there any means of disabling this setting at the startup??

    ... in fact, many times I start and work with JDeveloper without my database being up. So what you describe sounds strange to me.
    Frank

  • A database connection in a swing application

    hi ,
    i am developping an intranet stabdalone swing application based on a jdbc connection to oracle8i data server.
    in fact i am interested in keeping my user authentification encrypted while this connection is done! is there any method to do it ! i read about SSL but is it supported by web application ! i have a client-server simple connection !
    please help !

    Hello Levi,
    You can to do this form:
    String appModule = "yourAppmodule";
    String config = "yourAppmodule"+ "Local";
    ApplicationModule am = Configuration.createRootApplicationModule(appModule, config);
    ConnectionMetada cm = am.getTransaction().getConnectionMetadata();
    DriverManager.registerDriver(new OracleDriver());
    Connection connection = DriverManager.getConnection(cm.getJdbcURL());You can to see this threads:
    Retrieve Database Connection
    Getting the Connection object out of ApplicationModule
    Regards,
    Renan

  • How database connection pooling works in a application

    Hi Guys,
    I am new to Java and looking into best way of doing J2ee database conectivity. I am using Eclipse galileo3.5 J2EE with Mysql database and Tomcate 6.0.
    I am developing an email application where I need to implement MVC model for my webapplication, using jsp for presentation, servlet for control and java beans for model.
    I came across two tutorial for database connection pooling as given below.
    Eclipse Corner Article: Creating Database Web Applications with Eclipse - In this tutorial connection pooling is configure in Tomcate 6.0
    It says Copy and paste the following into your context.xml file (you may have to click on the Source tab at the bottom of the editor to be able to paste). This defines a DataSource with the name "jdbc/SampleDB". Our application will retrieve database connections from the pool using this name.
    <?xml version="1.0" encoding="UTF-8"?>
    <Context>
    <Resource name="jdbc/SampleDB" auth="Container"
    type="javax.sql.DataSource"
    username="app" password="app"
    driverClassName="org.apache.derby.jdbc.ClientDrive r"
    url="jdbc:derby://localhost:1527/sample"
    maxActive="8" />
    </Context>
    Where as in second tutorial - http://www.roseindia.net/answers/viewanswers/2838.html
    It uses java bean for connection pooling and then use straight way in JSP and no Servlet used.
    conpool.jsp
    <%@page import="java.sql.Connection"%>
    <jsp:useBean id="pl" class="com.CoreJava.ConnectionPooling"/>
    <% Connection con = pl.getConnection(); %>
    //do something using con
    connectionPooling.java
    import com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolD ataSource;
    public class ConnectionPooling
    static Connection con=null;
    public static Connection getConnection()
    try
    MysqlConnectionPoolDataSource po=new MysqlConnectionPoolDataSource();
    po.setServerName("localhost");
    po.setPortNumber(3306);
    po.setDatabaseName("mydatabase"); //changeur database name
    po.setUser("root");//ur username
    po.setPassword("");//ur password
    con = po.getConnection();
    catch(Exception e)
    System.out.println("Exception Connection :"+e);
    return con;
    Please some one explain which is the best way of doing connection pooling to the database by using MVC pattern
    Please if some one advise me how to use MVC architecture for simple email application and database connectivty.
    Thanks

    >
    >
    Where as in second tutorial - http://www.roseindia.net/answers/viewanswers/2838.html
    Never EVER use roseindia. It is terrible shit.
    [http://balusc.blogspot.com/2008/06/what-is-it-with-roseindia.html]
    The correct answer is what you found in the eclipse article. And you can read the Tomcat docs for more.
    As per usual the code you have posted from Roseindia is a big pile of rubbish that was written by a complete idiot. I mean the person who wrote it apparently doesn't know much Java at all. Let alone JDBC. Or Connection pools. Or J2EE. It's not the worst I've seen from them but it's pretty bad.

Maybe you are looking for