DB2 as a datasource in Portal

Hi Experts,
I need to use DB2 as a datasouce for my portal components.
Is it possible to access DB2 tables in portal?
How to acheive this?  Please let me know.
Ram

Hi,
you can use. you can fetch the data in the same way as in a java program using JDBC connectivity.
_Vishal

Similar Messages

  • Datasource from Portal (Java Applet)

    Oracle Application server 10.1.2 and Portal 10.1.4, DB 10.2.0.1.0.
    We are familiar with using either properties file or data_source.xml to store the DB connection information. We are deploying .ear file and implementing as a portlet in Oracle Portal. We like NOT to hard code the datasource info (in properties file or data_source.xml) and hoping to use the one from Portal/SSO. Or at least make it more secured than saving in an XML file.
    Any thoughts are well appreciated.
    Thank You

    Oracle Application server 10.1.2 and Portal 10.1.4, DB 10.2.0.1.0.
    We are familiar with using either properties file or data_source.xml to store the DB connection information. We are deploying .ear file and implementing as a portlet in Oracle Portal. We like NOT to hard code the datasource info (in properties file or data_source.xml) and hoping to use the one from Portal/SSO. Or at least make it more secured than saving in an XML file.
    Any thoughts are well appreciated.
    Thank You

  • Error importing a table from DB2 in OBI 10g

    Hello,
    I am trying to import a table from DB2, but I have the following issue:
    *[nQSError: 16001] ODBC error state: S1000 code: 29986 message: [IBM][Controlador ODBC de iSeries Access][DB2 UDB]SQL0901 - Error del sistema SQL..*
    Steps I have done are:
    1) Create System DSN
    Driver: iSeries Access ODBC Driver
    2) Create a new database
    Database souce definition = Database DB2/AS400
    3) Create a new connection pool -->
    Call interface: DB2 CLI (Unicode)
    Datasource name: System name (specified in the System DSN)
    I have tested with System DSN name too
    Username: username DB
    Password: pwd DB
    c) Import table: File --> Import --> from Database
    Connection Type = ODBC 3.5 and I select the System DSN created
    I am working with OBI 10g (10.1.3.2.1) in Windows Server 2003 Enterprise and the DB2 is OS400 V5R4.
    Thank you and regards,
    Mónica.

    Hi,
    I have installed the DB2 client and from Access with the same ODBC is possible to import tables, but I don't understand why I can't do this operation from Administration Tool.
    Do you know how can I test the ODBC? Or if it is possible to see the error with more details (any log file)? I have tested a lot of things, but I can't solve the issue.
    The PATH system variable is right:
    D:\oracle\bise1\bi\server\Bin;D:\oracle\bise1\bi\web\bin;D:\oracle\bise1\bi\web\catalogmanager;D:\oracle\bise1\bi\SQLAnywhere;D:\oracle\bise1\jdk\bin;D:\oracle\bise1\db\bin;D:\oracle\bise1\owb\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\TOOLS;C:\PROGRA~1\IBM\CLIENT~1\Shared;C:\PROGRA~1\IBM\CLIENT~1;C:\PROGRA~1\IBM\CLIENT~1\Emulator;
    And in the path that it is mentioned in the error I can find the dll.
    Are being doing any wrong step to import a table?
    Thank you and regards,
    Mónica.

  • LDAP configuration for HR Portal in dual stack EHP4 - Best Practice

    Hi Experts,
               Hello Experts,
    We are trying to use the JAVA Stack of ECC server for HR Portal i.e Dual Stack and have applied EHP4 package for ESS/MSS Appraisal. When we are trying to configure the LDAP ADS datasource through portal , we are not able to do it since ABAP datasorce file is available by default.This we are doing for HR(ESS/MSS) Portal.This is for access to the object data stored in the Active Directory.
    We have already checked note 718383.
    Also, for the scenatrio ,LDAP <-> ABAP <-> J2EE
    We have already checked sap help doc.here:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/e6/0bfa3823e5d841e10000000a11402f/frameset.htm
    What should now be the best practice to follow for configuration ? Should we go for separate Portal server or is it possible to use Java Stack of ECC server for configuration ?
    Also, LDAP <-> ABAP <-> J2EE scenario please suggest if it a best practice and we can follow the same .What are the limitations , risks and issues ? Please suggest if this has been implemented and running well in any live project .
    Are the suggestions applicable for load balanced production servers as well?
    Thanks,
    Rakesh

    Hi,
    the UME datasource must remain ABAP but you can sync the users between ABAP and LDAP using the LDAP connector:
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/48/74040175bb501ae10000000a42189b/frameset.htm
    Regards,
    Jozsef

  • Datasource

    Environment:
    WSAD 5.1.2
    WAS 5.0.0
    DB2 v.7
    Web Deployment Descriptor:
    <resource-ref id="ResourceRef_1115116452588">
         <res-ref-name>jdbc/iSeries</res-ref-name>
         <res-type>com.ibm.as400.access.AS400JDBCDataSource</res-type>
         <res-auth>Container</res-auth>
         <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>     
    with WebSphere Bindings: jdbc/as400ds
    Server Settings:
    JDBC Provider: JTOpen AS400 DB2 JDBC Provider
    DataSource: as400DS
    JNDI name: jdbc/as400ds
    and the properties needed for the datasource.
    JAAS Authentication Alias:
    defined.
    Source code:
    public void init() throws ServletException {
         super.init();
         try {               
            javax.naming.InitialContext jndiContext = new javax.naming.InitialContext();
            javax.sql.DataSource sqlDatasource = (javax.sql.DataSource) jndiContext.lookup("java:comp/env/jdbc/iSeries");               
            java.sql.Connection sqlConnection = sqlDatasource.getConnection();
            AS400JDBCConnection asConnection= (AS400JDBCConnection)sqlConnection;                                   
            AS400 AS400Object = asConnection.getSystem();
         } catch (javax.naming.NamingException ne) {
              System.out.println("init: Name not found! "+ne.getMessage());
         } catch (java.lang.ClassCastException ce) {
              System.out.println("init: ClassCastException: "+ce.getMessage());
         } catch (SQLException se) {
              System.out.println("init: SQLException: "+se.getMessage());
    }      // fim do initJust can't cast from sql.Connection to AS400JDBCConnection.
    Error:
    java.lang.ClassCastException: com.ibm.ws.rsadapter.jdbc.WSJdbcConnection
    at webSphereSamples.ConnPool.ServletTesteISeries.init(ServletTesteISeries.java:286)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
    at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:870)
    at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
    at com.ibm.ws.webcontainer.webapp.WebAppServletManager.getServletReference(WebAppServletManager.java:455)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletReference(WebApp.java:652)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.calculateInfo(WebAppRequestDispatcherInfo.java:187)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.<init>(WebAppRequestDispatcherInfo.java:68)
    at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1462)
    at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1421)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:268)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
    When I make the DataSource through code, works just fine.
    But must do it through the server settings and web deployment descriptor and gives this CastException.
    Any help would be appreciated.
    M

    Someone else had a similar posting, fwiw, here was my reply :
    I'm not an WSAD expert to be honest, but it's quite possible they are using their own wrappers. Check out what calls you can make on their ps wrapper or more likely conn wrapper - they may have some type of getWrappedConnection functionality as other vendor(s) do in which case you can, eg, cast the connection to OracleConnection [AS400JDBCConnection] and go from there.

  • Can IdM be used as LDAP directory and UME datasource?

    Hi,
    I am trying to figure out what IDM can and cannot do.
    Can IDM be used as a LDAP datasource in its own right for a SAP Portal for example?
    Or do you still have to use an external LDAP directory and IDM is then only used to pull everything together from all systems?
    Thanks,
    Adriaan

    Hi Adriaan,
    it should be tecnically possible to use the Virtual Directory Server as a LDAP datasource for portal, but you probably have to edit the datasource.xml of portal and the connection.
    I'd rather use the portal database or a dedicated LDAP for that and use IdM to provision into this repository.
    Regards,
    Andreas

  • How to create user in local datasource when UME is already switched to LDAP

    HI,
    Info : I have portal ( NW 700),  recently i switched the datasource of portal to LDAP from local datasource.
    issue: if i create user in portal it get created in LDAP, i want create few users in Local datasource.
    how to create user in local datasource when UME is already switched to LDAP?
    one solution is change the ume back to local datasource > create user > then switch back to LDAP.
    do you know any other sol?
    Regards
    Shridhar Gowda

    Please let me know the Datasource file name .. i.e. the .xml filename.
    try to analyze this name and see whether you get a solution or post it here.
    Reward points if helpful -

  • Solaris zone and IBM DB2

    We have a container in T3-1 in which IBM DB2 running it. Recently we migrated the container to T4-1 server. The container is up and running but unable to start DB2. The container configuration is similar as in T3-1. Did anyone faced similar issue while running DB2 on T4-1 server ?

    You can refer
    App Server 9.0 developer guide
    http://docs.sun.com/app/docs/doc/819-3659
    making driver .jar files accessible :
    http://docs.sun.com/app/docs/doc/819-3659/6n5s6m5bk?a=view#beamn
    IBM DB2 8.2 datasource configuration
    http://docs.sun.com/app/docs/doc/819-3658/6n5s5nklk?a=view#beanc
    If you are still not able to setup:
    can you post
    1) con pool configuration from domain.xml
    2) the error message that you get in domains/<domainname>logs/server.log
    Thanks,
    -Jagadish

  • FPN Login problem in portal

    Hi Experts,
    I have configured FPN from EP protal to dual stack system (ABAP+Java) BI portal.
    EP users are LDAP Datasource and portal UME Data source.
    BI users are ABAP UME datasource 
    User ids  are same in both EP and BI portals.
    We  get BI roles under EP protal, we assigned BI role to EP user in EP portal, when accessing BI role in EP portal it is asking user id and password of BI portal. Even we configured SSO between BI portal and EP portal
    Why it is asking user id and password of BI portal in EP portal
    Please let me know what needs to be done
    Thanks & Regards,
    Arun

    Hi David,
    I have created sytem object for BW system( that is for ABAP system in Dual stack) to EP portal which is success.
    Could you please know me the steps how to create BI system(portal ) in EP Portal
    Thanks & Regards,
    Arun

  • SAPInst Error: MDB-01006 Node=/db2/ SID is missing

    hello folks,
    we are running the Distributed system installation, i have DB2 server, separated from the Portal Server, and when we running the SAPINST JAVA database schema during the firts steps "DB2 UDB Check File Sytem" we got a error
    MDB-01006 Node=/db2/EPP
    Our SID is EPP, this could be about FileSytem error, thanks for your support
    Edgar Garduñ

    I´m having the same problem how you solve this situation. This note is the only one that I found talking about the same problme.
    Could you help me please
    Thanks

  • Role Datasource

    Hi all,
       When i tried to create a portal role using WebDynpro, its default Datasouce is showing as UME Database.. How can i change the DataSource to some other.?
    Regards
       Vinod V

    Thanks michael,
       My requirement is to create a portal role, assign a page to it and get its properties using WebDynpro.
    All those roles that comes in UME Database, i am not able to view or assign iviews to it. But those Roles whose Datasource is Portal Role, i can see then in a particular Directory and also possible to assign them with IViews.
    When i create a portal role using WebDynpro, by default its Datasource is UME Database..
    How can i solve this problem?

  • What is the Relation between SAP EP, SAP R/3 and any database

    Hi ALL,
    I am learning SAP EP,Webdynpro
    Previously I have worked on IBM WebSphere Portal for installation and configuration test purpose on different operating systems.
    In case of IBM webSphere Portal
    1. There is a default database named as Cloudspace
    2. I had configured WebSphere Portal with different databases(Oracle,sql,DB2) just by modifing some portal installation files.
    Similarly in case of SAP Enterprise Portal
    1. Is there any default database.
    2. How can we configure the portal with different databases(Oracle,sql,DB2)
    3. Why the SAP R/3 comes into the picture in case of SAP EP
    4. can we communicate to any database(Oracle,sql,DB2) through NetWeaver Developer Studio by writing any code or by setting any fields.
    Please help out me
    Regards
    Seshu

    Hi! Sesshanna,
       Welcome to SAP Enterprise Portal.
    1.Like IBM webSphere Portal,SAP EP is also have a default DataBase Named MaxDB, this database comes with portal installer and you need to install this DataBase as well.
    2.you will get a lots of document on SDN to configure the databases like(Oracle,sql,DB2), you need to make an entry in Visual Administrator(go.bat).But if you want to use DataBase in standalone application then you can use the same code which generally we use in any Java Code(Code written in point 4).
    3.You can use SAP R/3 as BackEnd to access R/3 RFC in WebDynpro application, which is used to develop any customized application.
    4.you can write the following code in any view or controller of the NWDS:--
    MessageManager msgMgr = (MessageManager)wdThis.wdGetAPI().
    getComponent().getMessageManager();
                    String  serverName = "172.21.1.62";
         String portNumber = "1526";
         String sid = "vision";
      String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
         String userName = "scott";
         String password = "tiger";
         Connection connection = null;
         try {
          // Load the JDBC driver
         String driverName = "oracle.jdbc.driver.OracleDriver";
         Class.forName(driverName);
         connection = DriverManager.getConnection(url, userName, password);
         Statement stmt =connection.createStatement();
    ResultSet resultSet = stmt.executeQuery("select * from patni_employee");
            if(resultSet.next()) {
              msgMgr.reportWarning(resultSet.getString(1));
              msgMgr.reportWarning(resultSet.getString(2));
         } catch(Exception exc) {
          exc.printStackTrace();
    regards,
    Mithileshwar

  • How to create Business View against SQL

    We are moving from Crystal 10 to XI. Before moving we were using ASP application for dynamic parameters. Now we are planning to use Business Views or List of Values for these dynamic parameters. We are using IBM DB2 database and datasource is SQL Command Object. I have a list of dynamic parameters with SQL Statement. I want to know what is the best way to convert SQL Statement in Business View or any type of suggestion will be aapreciate.
    Thanks

    Hello Zahid,
    I checked some articles but could not find any ideas how to answer your question.
    Anyway, I am not sure if you have seen this [online BV Admin guide|http://help.sap.com/businessobject/product_guides/boexir3/en/xi3_bv_admin_en.pdf].
    Falk

  • Data Source CE in Visual Composer

    Hello Experts,
    we are running on CE 7.2.
    I wanted to read BPM  task details into a custom application or generate a report of who has claimed the task,currently being processed by whom  and the history of this information relating to every task in uwl.
    I know that CE 7.3 offers BPM API's using which thiscan be accomplished.
    However I have also read that Visual Composer can provide this solution.
    I have the following queries:
    1)what data source should be selectedif i choose to go with vc
    jdbc BI template?  or BI....we do not have a Bw system in our landscape and our datasource is portal DB.
    2)Does that mean BI usage type will  have to be installed alongwith BI jdbc connector..
    3)what would be a more feasible solution ...upgrading  to 7.3 or installing the BI component. ( we need to perform only reporting activity as to with whom the task is currently pending  and ho had processed it in the past)

    Hello Jun,
    Thanks for the reply, however i still have some queries.
    1)I could not find the standard BPM datasource in the dropdown of select providers.
    I therefore selected BI Data sources even though we do not have a BW system .
    2)I  tried selecting  standard BPM tables to fetch the data.
    viz; BPM_MYTASKS_DS..I want to know if there is any standard table which stores information about who had and who is currently proceesing tasks , if yes can you please provide the name of table  or how can i make it available in visual composer's  "search for table" field while creating new model.
    3)we are also trying to upgrade to 7.3
    Now BPM & CE are on same instance.
    Can only BPM 7.2 be upgraded to BPM 7.3 instead of entire CE portal from 7.2 to 7.3?
    4)Also i read somewhere that it would be an entire upgrade to netweaver 7.3 and in usage type we will have to select the usage type of what we want to upgrade like CAF to 7.3, BPM to 7.3 and so and and so forth. Is this right?
    5)Can also you please let me know in which situation we should use visual composer and when BPM  api is suitable?
    Thanks
    Pooja M

  • EJB Web Dynpro  - Data Persistence

    What is the recommended way for connecting to oracle database and adding business logic to web dynpro application.?
    We were researching on the CMP entity bean but found that CMP entity bean in SAP netweaver can be
    configured only to connect to the default database. Its too difficult for my consious to digest why anyone will connect only to the default portal database. Is there any way that we could work on CMP entity beans and connect to an external datasource in EP 7.0 ?
    Your valuable feedbacks would be highly appreciated...

    unlike others, I dont think it should be an issue in connecting to an external data base as long as you can telnet / ping to that db server from Portal.
    All you need to create is a JDBC datasource from portal to that database and use that datasource in your application.
    It should be pretty straight forward.
    Did you try this?
    The reason i know it should work is, i am working on MDM and from portal i create a datasource to connect to MDM database for one of the application provided by SAP and it is the standard procedure defined by SAP to create datasource and consume it.
    I just saw, yardon has provided links to help.sap on how to create datasource, so you should be good.
    Let me know if i need to explain more. I can guide you how to create datasource in Visual admin.
    Good Luck
    Regards,
    Nitin
    Edited by: Nitin Mahajan on May 1, 2009 6:50 PM
    Edited by: Nitin Mahajan on May 1, 2009 6:50 PM

Maybe you are looking for

  • How to create a Windows 8.1 Desktop icon from the Metro/Start and/or Search Tool?

    I'm a Desktop user, but often find myself needing to go to the Metro/Start and Search Tool to find programs and App(let)s in order to run them.  However, after doing this several times for many programs, I find myself wanting to create Desktop icons

  • HP PSC 1600 Scanner doesn't work

    Since installing Snow Leopard the scan function on my HP PSC 1600 does not work, however the print function does work. I deleted then added the device from the Print & Fax list in System Preferences. I downloaded and installed the HP print/scan softw

  • Windows 8.1 dual boot rEFInd

    Hi Everyone, Here's what I have done with my Intel NUC. I have a 480 GB mSATA SSD and 1 TB 2.5" SATA HDD and this is my partition layout NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 931.5G 0 disk └─sda1 8:1 0 931.5G 0 part sdb 8:16 0 447.1G 0 di

  • How do you get a Sub Query in a Mapping

    Hi, I am wanting to know how or what the work around is for getting a Sub query in a join operator? Its a really common place thing to do, I need to add an where exists or not exists type clause to one of my mapping joins. Can someone please advise h

  • Set Codebase and href at runtime

    Hi, I want the codebase and href value in the jnlp file to be set at runtime. Anyone have any idea or a piece of code to achieve the same. Thanks in advance Pankaj