OAS and using JDBC-drivers from EJB

Hi.
I have a problem with accessing the database from EJB-components
deployed to OAS 4.0.8. The database is 8.1.5-version. I'm trying
to use a connection exactly like it is documented in OAS-EJB-
documents, the connection string looks like this:
Connection conn = DriverManager.getConnection
("jdbc:oracle:jts8:@ora8i");
And this is the error that above sentence it generates:
"Sub Protocol must be specified in connection URL".
The DAD(ora8i) is created in OAS.
Now, I don't even know if this uses JDBC/OCI or thin since the
documented connection-string doesn't contain that information. I
quess it must use OCI-drivers, at least I should use them and
they should be installed with OAS.
So:
* I should use only jts-enabled JDBC-drivers when developing EJB-
components, is this right?
* How can I connect to the database (from OAS 4.0.8 to Oracle
8i), the string please?
Thanks,
[email protected]
null

Hi Suresh,
There is lot of Documentation available on this, check these links
http://help.sap.com/saphelp_nwce10/helpdata/en/45/07d2eeea3e0485e10000000a155369/frameset.htm
http://help.sap.com/saphelp_nwce10/helpdata/en/45/08546ff5200486e10000000a155369/frameset.htm
Venkat.

Similar Messages

  • Using INET and DATADIRECT JDBC Drivers to connect MS SQL Server 2005

    Hi,
    I have reqmt to connect SQL server 2005 from ODI using INET and DATADIRECT JDBC drivers to test Local characters Encoding.
    In my case, Oracle is the Source and SQL Server 2005 is the Target. I have problem while interfacing Local Characters to SQL Server 2005 using com.microsoft.sqlserver.jdbc.SQLServerDriver driver( which is default driver provided by ODI). To fix local charatcters issue, I want to try using INET or DATADIRECT JDBC drivers. Please provide me the below of any one has used these Drivers to connect SQL Server 2005 from ODI.
    We are trying to connect to MS SQL Server 2005 from ODI Topology Mgr using INET and DATADIRECT JDBC Drivers. We need the following info to connect to the same,
    --> What are list of the drivers need to be placed in OraHome_1\oracledi\drivers path?
    --> Where can i get the latest driver versions.
    --> What are the JDBC DRIVER and URL formats.
    --> Any other additional configurations?
    --> Does these drivers support interfacing of Local character data.
    Please respond...
    Regards,
    Anil

    Check this article [HOW TO: SQL & JAVA|http://www.shahriarnk.com/Shahriar-N-K-Research-Embedding-SQL-in-C-Sharp-Java.html] for details on how to connect to SQL Server database from C#.NET database applications as well as Java database applications. It also describes how to pass embedded SQL queries (SELECT, INSERT, UPDATE, DELETE), calling stored procedures, pass parameters etc.

  • What is the impact of upgrading jdbc drivers from 9.2 version to 10g driver

    Hi,
    My application is built on Oracle 9.2 with 9.2 version jdbc drivers.
    To use Java objects mapping with Oracle object TYPES (for ex. STRUCT),
    I had to go for 10g jdbc drivers. Otherwise, I am getting an error:
    java.sql.SQLException: Non supported character set: oracle-character-set-178
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
    at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:829)
    at oracle.sql.CharacterSetUnknown.failCharsetUnknown(CharacterSetFactory
    Thin.java:150)
    at oracle.sql.CharacterSetUnknown.convert(CharacterSetFactoryThin.java:1
    14)
    at oracle.sql.CHAR.<init>(CHAR.java:109)
    at oracle.sql.CHAR.<init>(CHAR.java:133)
    at oracle.jdbc.oracore.OracleTypeCHAR.toDatum(OracleTypeCHAR.java:143)
    at oracle.sql.StructDescriptor.toOracleArray(StructDescriptor.java:385)
    at oracle.sql.StructDescriptor.toArray(StructDescriptor.java:560)
    at oracle.sql.STRUCT.<init>(STRUCT.java:95)
    at oracle.sql.OracleSQLOutput.getSTRUCT(OracleSQLOutput.java:95)
    at oracle.sql.STRUCT.toSTRUCT(STRUCT.java:328)
    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedSt
    atement.java:2025)
    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedSt
    atement.java:2148)
    I would like to hear from you that, what is the impact on the existing application if I upgrade
    jdbc drivers from 9.2 version to 10g version?
    Please do mention all the impact.
    Vyshu

    JDBC 10g works just fine against 9.2 database. See the interopeability matrix on the JDBC portal http://www.oracle.com/technology/tech/java/sqlj_jdbc/index.html
    Kuassi - blog http://db360.blogspot.com/

  • Itunes copied my files from my portable harddrive to my new computer harddrive on a new computer. I didn't want that, but didn't realize I did it.  How do I fix this so I can delete the songs from my computer harddrive and use the songs from the portable

    On my new computer I installed Itunes.  I wanted Itunes to use my portable harddrive for music, but instead it copied my library to the hard drive of my computer, filling it almost full.  I didn't realize this happened until I synced my iphone to Itunes.  How do I fix this?  I want to delete the library from my hard drive of my computer, and use the library from my portable hard drive.

    Hi Robin,
    Welcome to Apple Support Communities.
    You may find this article helpful with using a media library on an external hard drive:
    iTunes for Windows: Moving your iTunes Media folder
    http://support.apple.com/kb/HT1364
    Have a good day,
    Jeremy

  • I make greetings cards and use images downloaded from cardmaking websites eg - cently I find I cannot copy and paste an image from adobe reader which is the how the images are downloaded. Why is this and how do I copy and paste an image on a  adobe reader

    copying and pasting images from adobe.     I make greetings cards and use images downloaded from cardmaking websites eg - printable heaven. Recently I find I am unable to copy and paste the images which are opened in adobe reader. Why ?  How can I overcome this problem.

    Check the document properties; is copying allowed?

  • Error when using JDBC drivers

    Hi ..
    We have successfully deployed the JDBC drivers but in RWB(Communication channel monitoring) ,when executing we are getting an error
    Received XI System Error. ErrorCode: EXCHANGE_PROFILE_ACCESS ErrorText:   ErrorStack: Error while reading exchange profile for system PI7 and client 001
    2006-12-05 12:33:25 Error Transmitting the message to endpoint http://sap1:8001/sap/xi/engine?type=entry using connection AFW failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: EXCHANGE_PROFILE_ACCESS:.
    <b></b><i></i>
    Any suggestions
    Thanks
    Gopal
    Message was edited by:
            Gopal krishnan
    Message was edited by:
            Gopal krishnan

    Hi..
    I did it but here i am wondering becoz my RFC connection SAPSLDAPI works fine
    But at transaction SLDCHECK..it throws an error like
    Calling function LCR_LIST_BUSINESS_SYSTEMS
    Retrieving data from the SLD server...
    Function call returned exception code     4
    => Check whether the SLD is running!
    Summary: Connection to SLD does not work
    => Check SLD function and configurations
    But the SLD URL pops up and opens wih put any error.in a same fashion,it happens in SXMB_ADM--> integration engine config.it says connections to SLD doesnot work
    any idea to verify
    Thanks
    Gopal

  • Dynamically loading and registering JDBC driver from an archive (zip - jar)

    I'm programming an JDBC driver tester.
    I have to load dynamically any driver from an archive (jar or zip) after the user uploaded it.
    I think i did it well with my ClassLoader, i can get an instance of the driver and use any method like (getMinorVersion()) but when i registering it fail.
    There is no error but the driver is not registered.
    I rode the DriverManager log (with his logwriter) and he says :
    skipping: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@5439fe]
    skipping: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@2b7db1]
    (two times, it looks curious isn't it ?)
    This is a part of my code :
    Driver pilote = (Driver)Class.forName(driverClass.getName(), true,this).newInstance();
    System.out.println("Minor Version = "+ pilote.getMinorVersion());
    PrintWriter printwriter = new PrintWriter(new OutputStreamWriter(System.out));
    DriverManager.setLogWriter(printwriter);
    DriverManager.registerDriver(pilote);
    System.out.println("Driver registered\n");

    I have made a simple test :
    public static void main(String[] param)
    System.out.println("Loading Driver from JAR ...");
    try
    File jar = new File("c://mbm//drivers//oracle.jar");
    URL aurl[] = {jar.toURL()};
    URLClassLoader urlclassloader = new URLClassLoader(aurl, ClassLoader.getSystemClassLoader());
    Class.forName("oracle.jdbc.driver.OracleDriver", true, urlclassloader);
    PrintWriter printwriter = new PrintWriter(new OutputStreamWriter(System.out));
    DriverManager.setLogWriter(printwriter);
    Enumeration listDriver = DriverManager.getDrivers();
    System.out.println("[---------Drivers-----------]");
    while (listDriver.hasMoreElements())
    Driver driver = (Driver) listDriver.nextElement();
    System.out.println("->> "+driver.getClass().getName());
    catch (MalformedURLException e)
    e.printStackTrace();
    catch (ClassNotFoundException e)
    e.printStackTrace();
    This displays that :
    Loading Driver from JAR ...
    skipping: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@9ec21d67]
    [---------Drivers-----------]
    D:\www\tomcat\webapps\mbm\WEB-INF\classes>
    I think there is in this case only one instance

  • Using T3 Services from EJB's

    I want to use weblogic's T3Services from within stateless session beans. But when I try to do this I get the following error
    java.rmi.RemoteException: java.lang.NoClassDefFoundError: weblogic/common/T3ServicesDef
    and when I try to put \weblogic\classes in JAVA_CLASSPATH while starting weblogic the server does not start.
    Is their a way of using these services from within EJB's
    I am using weblogic 5.1.0 service pack 6 under WINNT environment with SP5
    Thanks
    Sohit

    You have classpath problems. Please post the classpath and the weblogic
    classpath that you are using to start the server. In particular, make
    sure that your ejb-jar is not found in either of these.
    -- Rob
    Sohit wadhwa wrote:
    >
    I want to use weblogic's T3Services from within stateless session beans. But when I try to do this I get the following error
    java.rmi.RemoteException: java.lang.NoClassDefFoundError: weblogic/common/T3ServicesDef
    and when I try to put \weblogic\classes in JAVA_CLASSPATH while starting weblogic the server does not start.
    Is their a way of using these services from within EJB's
    I am using weblogic 5.1.0 service pack 6 under WINNT environment with SP5
    Thanks
    Sohit

  • How do I get the iTunes store to pull and use updated info from Gracenote?

    I'm helping a music group fix their CD information, which was incorrect in the Gracenote database. Gracenote made the corrections, but the iTunes store is not reflecting the changes. I verified the changes were made by inserting the CD on a PC, and, through the iTunes client, asking it to pull the track info from Gracenote. The info is correct.
    However, if you use the iTunes client to go to the store, the info in the store does not match what was pulled when sticking the CD in the drive and querying Gracenote. Also, if you go to the CD URL via a web browser to preview or purchase a digital download, the iTunes store web site is still showing the wrong information.
    How do I get the iTunes store (that is, Apple's server, not the iTunes client) to pull and use updated (correct) CD information from Gracenote?

    Geek Girl,
    The official Content Provider relationship with the Store depends how it was set up, and may be the group or their agent or a 3rd party such as TuneCore.  They can go back through the same official channel that put the tracks in the Store in the first place.
    Or, if it is simply an error, as opposed to an official change by the Artist, you can try the Feedback page:
    http://www.apple.com/feedback/itunesapp.html

  • HOW TO CREATE AND USE ModbusSlave drivers ?

    the idea is to have a ModbusSlave driver to test the applications developed as Master modbus; with both drivers running in the same computer in both com 1 and com 2.

    This is an excellent idea for troubleshooting, which we have been using and recommending for long. ModbusSlave Object simulates a Modbus PLC within Lookout. This can be used to test and troubleshoot the functioning of the Modbus driver object without requiring an actual PLC/RTU.
    To use the ModbusSlave object, create the Object as if your PC were the PLC. So, assign it a COM port, baud rate, etc. Let's say you assign it COM2.
    Now, create the drive Modbus object on COM1. Then, physically connect the two COM ports with a null-modem (crossed) serial cable. So, basically you fool the Modbus driver object that there's a Modbus PLC out there but you loop-back and connect to the other COM port and use the ModbusSlave.
    Once you've done this, you can
    simulate some values within the Slave by connecting some Pots to the Slave's registers. You can then try reading these with the driver Modbus object, etc.
    Hope this helps.
    Khalid

  • How to Extend C: Drive On PC or/and use Mac drive from the PC

    I Install Boot camp on Mac book pro
    the Limit for Drive C: is only 32 GB,can i extend it ?
    From the mac i can see and use the PC C: Drive but i cant See and use the Mac drive from the PC,
    Do you know any way to see and use it ?
    Thanks,
    Yariv

    You weren't limited to 32GB unless you chose to do so.
    HFSExplorer can read HFS+
    MacDrive7 can read and write
    Personally would not use FAT and just stick with NTFS.
    Paragon Software has 3 products. To write to NTFS from OS X. To resize partition. Backup software for Windows.

  • List all JDBC drivers from a machine

    How to list all the JDBC drivers supported by Java through programing in Java.
    Thanks in advance

    Write a spider to look though all the links you can
    get to through [url
    http://servlet.java.sun.com/products/jdbc/drivers]this
    page, find the names of the drivers and add themto you list. There are probably some drivers which
    aren't listed there, but I bet a quick google through
    [url
    http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=
    ava+driver]these 1,910,000 pages should get you
    most of the rest.
    So would you suggest doing that once to build a static list or doing it dynamically each time? :)

  • Installing Log4J in Tomcat and using JDBC to log errors

    Has anyone figured out how to install Log4J in Tomcat and use the Log4J JDBC functionality?
    I have log4j.jar in CATALINA_HOME/common/lib.
    I also have log4j.properties is in CATALINA_HOME/common/classes
    Then when I start Tomcat I get the following error:
    [main] DEBUG org.apache.commons.digester.Digester - addRuleSet() with no namespace URI
    is it something to do w/ the log4j.properties file? do i have to use a xml format or is it ok to use .properties format?
    -Karthik

    I would say you have something wrong in your log4j properties file.
    properties format is fine, but I suspect something in there is not quite right.
    Try starting with a simple example one, see if it works, and then try adding your own config based on that one.
    Good luck,
    evnafets

  • Using Spring beans from EJB MDB

    I have a situation where I need to use spring beans from an EJB 3.0 MDB. The project does not have any webapps or anything,
    it will be only a MessageBean facade that needs to call spring beans. It is meant to be a service, that can be called by usign a single EJB message.
    The problem is I cannot get the spring context to load properly, since the MDBean it self is initialized(constructor called) only when it receives the first message from the broker, thus It's "too late" to initialize the spring context. What I want to do is load the spring context when the EJB is deployed in the Java EE container. So, is there a way I can call a some method, class, anything when the EJB is deployed in the container. Can I do something with a deployment descriptor?
    I am using glassfish V2 UR1, EJB 3.0, Spring 2.0.7 The project is deployed as a jar.

    Miku wrote:
    I have a situation where I need to use spring beans from an EJB 3.0 MDB. The project does not have any webapps or anything,
    it will be only a MessageBean facade that needs to call spring beans. It is meant to be a service, that can be called by usign a single EJB message. Why not make it a real service? Spring's contract first web services are a very nice way to go. It hides the fact that you're using a message-driven component for processing, too.
    %

  • TS4020 "cannot get mail" The connection to the server failed. My mail account from Icloud will work if I only disconnect my wifi in my iphone and use internet plan from carrier. Anybody else with this proble??

    My mail account from icloud will work if I only disconnect my wifi in my iphone and only use internet plan from my carrier. Anybody else with this problem??

    I've been having the same problem since iCloud appeared and complicated an otherwise trouble-free system. Doubling frustrating is that iCloud duplicates my .Mac account so I get two of everything in my Inbox. I turned off iCloud and now mail at least goes out but I can't delete the duplicate account.

Maybe you are looking for

  • Office:mac 2008 Word Question

    We just purchased Office:mac 2008 Home and Student Edition. I thought I could convert text to Chinese; however, it is not highlighted as an option (greyed out). Does anyone know how I can activate this?

  • F110 - ecc6

    Hi guru, my companies do the following operations for a vendor: 1) Invoice:  Posting Key: 31     100 eur                    Posting key : 40     100 eur 2) DOcument:   Posting Key: 24      2 eur                          Posting Key :50      2 eur Bef

  • I'd like to read  your opinions about  a method.

    Hi everyone. Just want opinions. If someone tells u that its only going to use the method , what kind of asserts would u use? They told me that , i must use asserts, but i already have an assert in the main (which is not going to be used by them) The

  • File name font (web gallery output)

    I am using CS4 with adobe bridge.  I have created some web galleries and have selected the option to show the file name.  This shows up just below the picture in the gallery.  The problem is the font is too light to show up against my chosen backgrou

  • Can´t seem to install any update on Snow Leopard. Why?

    Hello everyone. First post here. I tried searching the forum but I couldn´t seem to find someone with the exact same problem as me. Yesterday I bought Snow Leopard and tried installing it on my 13" Macbook Pro. Everything went fine and it´s running o