Using the datasource in Visual Administrator in the portal appliction

Hi All,
<b>
I want to use the datasource created in the Visual Administrator in my portal application. How do I use it in the portal application to create some tables and make some entries???
</b>
regards
Brahmachaitanya

Hi Brahmachaitanya ,
You can do a lookup like this:
InitialContext contx = new InitialContext();
DataSource datasource = (DataSource)contx.lookup("jdbc/SAPJ2EDB");
Connection connection = datasource.getConnection();
Greetings,
Praveen Gudapati
p.s. Points are always welcome for helpful answers

Similar Messages

  • Access visual administrator from the desktop

    Hi,
    Can anyone tell me if it is possible to access the visual administrator of the XI server from a PC in the network by downloading the go.bat file from the marketplace?
    Thanks.

    Hi,
    You need Xterm/X-windows to access Visual Admin of your remote server with in the network.
    I think we can access the PI server,by just download the go.bat file from service market place..
    cheers
    deepu

  • Creating DataSource in Visual Administrator for Oracle DataBase

    Hi Experts,
    I want to connect to external Orcle Database from my application(EJbs,Web Dynpro) where i need to call some stored Procedures.for that one i want to create
    DataSource in Visual Administrator.
    i got some doubts for  creating DataSource in Visual Administrator
    1.which SQL engine i need to use(open SQL or Native SQL or Vendor SQL)
    2.shall i need to deploy any additional drivers(jars) in WAS
    any help will be appriciated
    thanks in Advance
    With Regards
    Naidu

    I can see you are still looking for answeres, I have included more explicit examples of how to connect to an Oracle DB via an SAP Visual Administrator Datasource.
    First the DB has to exist and you should be able to connect to it using some other application to test with like Toad for example.
    Secondly for installing the Data Source via Visual Administrator you will need to verify that you have a an Database Driver defined in the Visual Admin first, if not define one. Defining an oracle driver is as simple as providing an alias name for the driver and supplying the Oracle classses.jar, or ojdbc14.jar. Click Create Driver in the Visual Admin enter an alias name  and click Browse to find one of the jar files mentioned above. Once done click the diskette looking icon to save.
    After the above 2 steps you can either define the Datasource manually in the Visual Administrator or Import the datasource via an xml file as defined below.
    I have included a mock datasource.xml file which you can copy and paste and more or less use as  a reference.
    <b>Note</b>
    With Oracle I have always sected <b>Vender SQL</b> as I can not get any of the other selections to work properly when connecting to our Oracle DB. I have also used this approach to connect to Oracle 8 databases as well. We have been using these Datasources in production for many years without incident.
    Variables Defined
    <b> data-source-name </b> PORTFOLIODS is the name we use to look up the Datasource via JDBC.
    <b>driver-name </b>  The name that you have defined for the Oracle jar libary you added as a Database Driver via the Visual Administrator.
    <b> url </b>           The "Type 3" Network URL pathname to the Oracle DB.
    <b> user </b>        The account you want to log in as.
    <b> password </b> The account password for the DB.
    Cheers,
    Alex
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE data-sources SYSTEM 'data-sources.dtd'>
    <data-sources>
      <application-name>chep.com/JDBCConnectior_PORTFOLIODS.xml</application-name>
      <data-source>
        <data-source-name>PORTFOLIODS</data-source-name>
        <driver-name>Oracle9i</driver-name>
        <max-connections>25</max-connections>
        <max-time-to-wait-connection>60</max-time-to-wait-connection>
        <sql-engine>vendor_sql</sql-engine>
        <jdbc-2.0>
          <cpds-class-name>oracle.jdbc.pool.OracleConnectionPoolDataSource</cpds-class-name>
          <object-factory>oracle.jdbc.pool.OracleDataSourceFactory</object-factory>
          <properties>
            <property>
              <property-name>url</property-name>
              <property-value>jdbc:oracle:thin:@usdenedu169.cnn.com:1521:ORCL</property-value>
            </property>
            <property>
              <property-name>user</property-name>
              <property-value>LogisticsApplication</property-value>
            </property>
            <property>
              <property-name>password</property-name>
              <property-value>logisticsAppPwd</property-value>
            </property>
          </properties>
        </jdbc-2.0>
      </data-source>
    </data-sources>

  • Creating a new Driver/DataSource in Visual Administrator

    Hello,
    I have been struggling to create a Data Source for a SQL Server DB in Visual Admin. I did the following.
    1) Created a new Driver MSSQL, added to it msutil.jar, mssqlserver.jar and msbase.jar.
    2) Created a new data source gave it a name, description
    - Selected the MSSQL driver which I just created
    - JDBC Version 1.x
    - Driver class:
       com.microsoft.jdbc.sqlserver.SQLServerDriver.class
    - Database URL:
    jdbc:microsoft:sqlserver://xxx.xxx.xx.xx:1433;databaseName=TestDB
    3)Tried both Open SQL and Vendor SQL as database engines.
    4) Gave the appropriate user id and password
    With the above configuration when I entered a SQL Statement in the 'DB Initialization' tab and executed it, I got a SQL Server Driver Class not found exception.
    My second configuration was to use the JDBC Version 2.0
    with the following settings:
    1) Use the same MSSQL driver which I created
    2) JDBC Version 2.0
    3) Object Factory: com.microsoft.jdbcx.sqlServer.SQLServerDataSourceFactory
    4) DataSource Type: ConnectionPoolDataSource
    5) CPDS classname: com.microsoft.jdbcx.sqlServer.SQLServerDataSource
    6) Gave the required key, values in the 'Additional' Tab
    7) Chose Vendor SQL as the SQL Engine.
    With the second configuration I can connect and talk to the database.
    Why would I not be able to connect to the DB in my first configuration? Are there any other configuration steps I am missing for using the JDBC 1.0?
    Thanks,
    Asheesh

    If you are trying to create a new DBPool then you can use the OSS note 706216. This describes the method of adding the connection pools using the commands in the telnet console
    I hope this helps
    D

  • Creating datasource in visual Administrator

    Hi,
    i am trying to create a datasource from the  visual adminsitrator to connect to the mssql as backend,but it is giving the error as not able to connect and raising some exceptions.
    the properties i am specifying to the datasource is extracted from the following link
    http://help.sap.com/saphelp_webas630/helpdata/en/ab/082484173ae045ab8dad8a41d33da3/content.htm
    can any one of u tell me the solution to connect to the database, if u have given in the steps wise, it will be more helpful to me.
    u can tell me the steps from the startingi.e., total connections.
    Thanks & Regards,
    sireesha.

    the error is,
    ava.rmi.RemoteException: Error occurred while starting application in whole cluster and wait.; nested exception is:
         com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Clusterwide execption: server ID 1761750:Cannot create DataSource "first_dsn".
         at com.sap.engine.services.deploy.server.DeployCommunicatorImpl.startApplicationAndWait(DeployCommunicatorImpl.java:679)
         at com.sap.engine.services.deploy.server.DeployCommunicatorImpl.startApplicationAndWait(DeployCommunicatorImpl.java:661)
         at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.startApplication(DataSourceManagerImpl.java:562)
         at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.deploy(DataSourceManagerImpl.java:261)
         at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.createDataSource(DataSourceManagerImpl.java:317)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.pj.jmx.introspect.DefaultMBeanInvoker.invoke(DefaultMBeanInvoker.java:58)
         at com.sap.pj.jmx.mbeaninfo.AdditionalInfoProviderMBean.invoke(AdditionalInfoProviderMBean.java:289)
         at com.sap.pj.jmx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:944)
         at com.sap.pj.jmx.server.interceptor.MBeanServerWrapperInterceptor.invoke(MBeanServerWrapperInterceptor.java:288)
         at com.sap.engine.services.jmx.CompletionInterceptor.invoke(CompletionInterceptor.java:400)
    kindly go through the error specified here,
    regards,
    sireesha.

  • I want to use the DATASOURCE  0SEM_BCS_10

    Hi All,
    I want to use the DATASOURCE  0SEM_BCS_10.
    I  activated the datasource in R/3 SAP ECC 6.0, but when in tried to to check the extrtactionin Transaction RSA3, I go no records for this datasource.
    Is there any other setttings to be done before we extract please suggest.
    WE are on SAP ECC 6.0 with support patch 14 and on BI we are on BI 7.0 with support patch 20.
    Thanks in advance.
    Nilesh Labde

    Hi,
    You would need to fill the setup tables of the datasource before extracting the data in RSA3.
    The setup table can be filled through transaction SBIW.
    regards,
    Mahesh.

  • How can i get the lasted vision of visual administrator

    HI:
    when i connet j2ee engine,i get the system warning:
    "visual administrator vision is older than the version of j2ee engine kernel: ..."
    how can i get the lasted vision of visual administrator?

    Get your portal administrator to copy the j2ee/admin from the server you're trying to connect to.  You can then install and run it from your local hard drive.

  • Unix: where is the J2EE Visual Administration

    Hello,
    In W2K go.bat does the job, where is the J2EE Visual Administration in the UNIX environment? what is the path and the .exe name?
    We are at EP6 sp2, j2ee6.2, HP-UX.
    Regards,
    AAAttar

    Art -
    Marty is correct.  On UNIX, you'll need to have your DISPLAY variable set.  I believe on HP-UX the command is setenv DISPLAY "ip address:0".
    Once this is set, run ./go from the admin directory.
    Regards,
    Kyle

  • What is the datasource for 9.3.1? Does OLEDB supports ODBC

    Plz some one let me know
    what is the datasource for hyperion 9.3.1
    and does OLE DB supports ODBC
    In hyperion 11 the datasource is through ODBC.
    thanks

    Hi,
    The datasource in 9.3 / 11 is stored in the planning system database tables
    In 9.3 it is set up through the configuration utility, in 11 it is done directly through planning web.
    The datasource holds the connection details to the planning repositories and the essbase application.
    The datasource connects to the planning repository through JDBC and to essbase using a JAVA API.
    Ok?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to find the Datasource,ODS,InfoCube by a field of a R3 table

    Hey Folks!
    I'm trying to find the Datasource,ODS,InfoCube by a field of a R3 table.
    It means I want to get the Datasource,ODS,InfoCube which contain the field I wanted.
    I did the following steps, Please correct me if I'm wrong.
    1. I use table RSOSFIELDMAP to get the related Datasource and infoobject by field I wanted.
    2. Then I use the infoobject of filed which I get from step1 to get the related ODS in the table RSDODSOIOBJ.
    3. I also use the infoobject filed which I get from step1 to get the related InfoCube in the table RSDCUBEIOBJ.
    But I have concern about the way I search the ODS and InfoCube.
    Could somebody help me on it?
    Thanks.

    Hi Ihdai,
    1) In step1  what you are doing is good...that table gives the mapping of the source fields in DataSources.
    2) One if you know the InfoObject Name....Open the InfoObject definition...
        and click on the  "Multiple Arrow" button which gives "Where used list"...
        That is a better way to get the list..
    3) You can use the tables also.
    Regards, BB

  • Under Data Marts folder, what is the datasource starting with 8?

    hello BW gurus,
    Run rsa1 -> Source Systems, then pick the BW system itself as the client,  under folders BW DataSources ->  Business Information Warehouse -> Data Marts, we can see some datasources or infosources starting with 8, how these datasouces get created and what are the purpose of them? 
    We know that the datasource starting with 7 means the export datasource generated from PSA, but have no idea what is for datasource starting with 8.   Anyone's explanation is greatly appreciated!

    Hi Kevin,
    The DataSources starting with 8 are the datamart data sources, or Export DatSources. This means that they would supply data from the BW system to the BW system.
    You will notice that the name is 8DataTarget, where DataTarget could be like an ODS object or an InfoCube. This means that data from this ODS or InfoCube can be updated to other data targets in the BW system using update rules.
    You can generate the Export datasource from the context menu of a data target.
    Hope this helps...

  • Problem facing while creating DataSource through visual admin utility

    Hi,
    I have created my database on shw6ur-3\tdemand_1 machine where shw6ur-3 is machine name and tdemand_1 is database instance. Still now we used to create database on the sqlserver machine without databaseinstance . This is first time we have installed separate database instance tdemand_1 on the machine. I am entering parameter through visual admin->serverices-> JDBC connector to create database parameter are server name: shw6ur-3\tdemand_1 and database:ABC.
    But it is not allowing me to create the DataSource.
    I am having the doubt on server name.
    Does anybody know how to create DataSource to connect to particular database on particular database instance.
    regards,
    Chandan

    If you connect as sys you have to specify that you want to connect in the role of sysdba or sysoper.
    In the connection dialog you'll find a drop down box where you select sysdba instead of normal.
    Timo

  • HI, Unable to connect Visual administrator plz help me to this issue.

    Installed SAP XI System every thing is fine except visual administrator,i am getting following error,
    unable to lookup connection default.
    http://sap:8101/msgserver/text/logon returned list of connection parameters

    Hi-
    You can use the template installer to do the post installtion for XI
    To start Visual administrator execute the go.bat file.
    You can find this file in j2ee admin folder.
    J2ee+ ABAP Engine
    C:\usr\sap\<SAPSID>\DVEBMGS<xx>\j2ee\admin\go.bat
    J2EE Engine
    C:\usr\sap\<SAPSID>\JC<xx>\j2ee\admin\go.bat
    So here you can log on to Your Visual Administrator.
    Check out this link its helpful
    http://help.sap.com/saphelp_nw2004s/helpdata/en/98/fa9b6ec510404dbcfebf35cb107c04/frameset.htm

  • "Cannot connect to host:" - Visual Administrator Error

    Dear Experts,
    I am unable to login using Visual administrator and the portal is also down. When i try to login using VA it gives the error
    Cannot connect to Host:XXX and Port:XXXX
    and when i try to call the portal url i get a page cannot be displayed error is displayed.
    I have tried the following solution with out any luck.
    Cannot startup visual administrator due to UME logon client details changed
    /thread/731863 [original link is broken]
    Cannot startup visual administrator due to UME logon client details changed
    Very urgent. Please help ASAP
    Thank you
    Thanu

    Hi Tomas Gustafsson,
    Thank for the reply,
    dev_jcontrol
    dev_server0
    dev_dispatcher
    -> Displays the line as programming code 
    Hallo

  • Cannot access key storage in Visual Administrator

    Hi,
    I cannot access the key storage node (==> Host ==> Server ==> Services ==> Key Storage) in Visual Administrator.
    Everytime I click on the key storage node an error message pops up. It says:
    <b>IAIK security library not found
    java.lang.NoClassDefFoundError:iaik/security/provider/IAIK</b>
    According to SAP (http://help.sap.com/saphelp_nw04/helpdata/en/e9/a1dd44d2c83c43afb5ec8a4292f3e0/content.htm) the SAP Cryptographic Toolkit has to be installed to use the Key Storage functionality of the Visual Administrator. The SAP Cryptographic toolkit has been deployed.
    Does anyone know where I can get that library and where I am supposed to put it? We work with <b>SAP NetWeaver '04 WebAS Java 6.40 SP14</b>.
    I appreciate any kind of help.
    Regards,
    Martin

    Hi,
    The missing class should be in the iaik_jce.jar
    archive. This archive is present in folder \usr\sap\<SID>
    \sys\global\security\lib\tools(or)engine.
    Copying this archive to the visual admin's <j2ee-install>
    \admin\lib folder, this workaround can solve your issue.
    You may also need unlimited strength jurisdiction
    policy depending on your JDK version. For more info:
    http://help.sap.com/saphelp_nw04/helpdata/en/e9/a1dd44d2c83c43afb5ec8a4292f3e0/content.htm ->
    Deploying SAP Java Cryptographic Toolkit.
    Also check SAP Note: 891666
    Hope it helps..
    Regards
    Srikishan

Maybe you are looking for

  • KT6 Delta-LSR lock ups

    Hi again , i was having trouble with my KT6 Delta-LSR not reading the correct cpu speed . ie it read 1.1 when it was a barton 3200 , I was advised to turn fsb up to 200 , which i did and it displayed the correct cpu, but i am getting lots of lock ups

  • Can't install:  "this disk cannot be used to start up your computer"

    After making sure that my current startup disk for 10.5 was imaged to another hard drive, I inserted the Snow Leopard install disk and double-clicked the Install icon. Everything worked fine till I got to "Select the disk where you want to install Ma

  • Select WBS elements with the extension u201C.DRLu201D (i.e. DL000001.DRLu201D)

    Hi All. In my report requirement  I need to get the data with Extn .DRL like, How to get in report. and excluding cost elements 5000994-5000999 like this. Please help me out. Thanks in advance. Durga

  • Got the mismatchedAssignmentFailure in the Dynamic partnerlink

    Hi Friends, while i am trying to implementing the Dynamic partnerlink, i got the mismatchedAssignmentFailure. can you please find the below exceptionn and suggest me what should i needs to do. java.lang.Exception: oracle.sysman.emSDK.webservices.wsdl

  • Can automator be set to always open certain files types?...

    Since screenshots (command/shift/4) always save as PNG files and these are not readable by most email programs, I am always manually converting these to JPGs in order to email the pic. I would like to create a workflow in Automator that would automat