Performance of JDBC type 2 vs. type 4

We are currently using Oracle's thin (type
4) JDBC driver on Solaris. Should we switch to the type 2 driver for performance
reasons? Does anyone have practical
experience with this?
Thanks
-Bernhard

It has been my experience that the type 4 is better than the type 2 because the driver synchronizes around the native calls. If you have multithreaded application, the type 4 is much more concurrent.
This was as of 8.0.4... versions and may have changed.

Similar Messages

  • Jdbc connectivity using type 4 driver using oracle10g

    Hi while running a jdbc program using type 4 driver using oracle 10 g I am Getting following exception
    java.lang.NullPointerException
    java.lang.NullPointerException
    at Type4ConnectTest.main(Type4ConnectTest.java:31)
    Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.driver.
    OracleDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at Type4ConnectTest.main(Type4ConnectTest.java:15)
    My Program Code is..
    import java.sql.*;
    class Type4ConnectTest
    public static void main(String args[])throws Exception
    Connection con=null;
    Statement st=null;
    ResultSet rs=null;
    try
    // DriverManager.registerDriver(new Oracle:jdbc:OracleDriver());
    Class.forName("oracle.jdbc.OracleDriver");
    String url="jdbcracle:thin:@localhost:1521";
    con=DriverManager.getConnection(url,"sarika","sarika");
    catch(NullPointerException e)
    System.out.println("e");
    e.printStackTrace();
    finally
    try
    con.close();
    st.close();
    rs.close();
    catch(Exception e)
    System.out.println(e);
    e.printStackTrace();
    I also set path of ojdbc14.jar and orai18n.jar in environment variable.
    pls help to solve the problem

    Class.forName("SOME_DRIVER_CLASS");Is tricky to use because it will compile not needing to reference the vendors jar file.
    You have to remember to deploy it though where ever you plan to run this program.
    If you are running from command line
    java -cp PATH_TO_JAR Type4ConnectTest

  • Jdbc-odbc bridge (type) driver

    Hi, mavens:
    Does there any free jdbc-odbc bridge (type 1) driver except that sun provides, for I heard of that seemly there's some bugs that may cause fatal error occurred when using it?
    I appreciate any suggestions,
    sincerely.

    Does there any free jdbc-odbc bridge (type 1) driver
    except that sun provides, for I heard of that seemly
    there's some bugs that may cause fatal error occurred
    when using it? I have never seen any fatal bugs when using it. I have never actually traced a single bug to it.
    Merant, now DataDirect, wrote it. They ones they sell that are new and improved - http://www.datadirect-technologies.com/products/odbc/odbcindex.asp
    There are of course other drivers and probably even ODBC ones which you can find by searching the driver list. http://servlet.java.sun.com/products/jdbc/drivers

  • Transaction types(PO types) not visible on SRM 7.0 portal

    Hi all,
    We added transaction types in the SRM 7.0system.But these are not reflecting in the SRM 7.0 portal.
    Under Purchasing role ->create Documents -> Purchase order .
    Once I click on the purchase order it is giving a table with columns PO type and PO desc.
    and showing a message the table does not contain any data.
    But SRM consultant added the transaction types(PO types) in the backe nd.
    Is there missing configuration steps?
    Thanks and regards,
    Rajesh

    Hello Rajesh,
    Few more pointers, if works:
    1. Check the roles, sometimes security restricts role by document types.
    2. Extended classic scenario is activated.
    3. As a standard, there are 3 purchasing tabs in SRM 7.0 for buyer depending on portal roles, ECC, SRM & harmonized role (ECC & SRM), Check if you are trying to create PO in SRM/Harmonized role purchasing tab & not in ECC. Easiest way to check is you will have shopping cart POWL visible in SRM purchasing tab.
    Hope this helps.
    Thanks
    Ashutosh

  • I need to set up an expense form so that our consultant can "filter" by customer type, program type, and finally the purpose of the trip. For instance: the customer types are churches, schools, organizations. The program type would be fund raising, gift p

    I need to set up an expense form so that our consultant can "filter" by customer type, program type, and finally the purpose of the trip. For instance: the customer types are churches, schools, organizations. The program type would be dependent on the customer type selection from the first list. Some examples would be: fund raising, gift planning, surveys, and others. The purpose of the trip would be dependent on the program type selected from the second list. Some examples of trip purposes would be: presentation, design, prospecting. Further, the purpose of trip selection from the third drop-down box would then have to determine the values of other fields by expense type: such as commission, airfare, hotel. etc. I've tried pop-up menu but can't figure out how to "select" from the final popup list and have it populate a field for the purpose of the trip. I've tried to look at the JavaScript examples for dependent drop-down boxes, but can't find any that quite fit what I'm trying to accomplish. I am very new to all of this. No training in writing Javascripts - just trying to wing it. The form has to be very simple for our consultants to use, but also give our office the detail we need to process through the correct account numbers. I would appreciate any detailed step-by-step instructions - kind of a javascript for dummies type of info. HELP!

    An AcroForm is the name given to the type of PDF form that you create in Acrobat. An XFA form is the type of form that you create in LiveCycle Designer. Although they are both PDF files, they are very different structurally and have significant;y different scripting models. So pay attention to the information on AcroForms and ignore anything about XFA. Be sure to get the sample PDF forms so you can look at how it works and where the scripts are placed.
    What you want to do will require scripting, and if you don't have the experience and are unable to use the information in the tutorials to create what you want, you might consider getting someone who has experience do this for you. I'll often suggest code if I can do so quickly, but what you want requires more than a few minutes.

  • Slow performance of JDBC - ODBC MS ACCESS

    I experience a very slow performance for jdbc-odbc using ms access as the database. This program works fine with other computer (in term of performance). However, the harddrive is cranking big time with this computer (this is the fastest one among the computers I tested, and also has many gigabytes left to be used). The database is very small. Other computer use exactly the same java version and msaccess driver version. If anyone found the same problem, or have any suggestion please help. Thank you.

    I am having the same problem with one machine as well. Running MS Access 2000 (unfortunately), and all machines run well with one exception. DB reads take about 10 seconds each. If a solution has been found, please report.
    --Dave                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Could not create task or type of type: validateTask

    While writing a master Ant script which calls the build.xml of individual BPEL processes, the following exception is thrown.
    validateTask:
    [echo]
    [echo] -------------------------------------------------------------
    [echo] | Validating workflow
    [echo] -------------------------------------------------------------
    [echo]
    <process name>: The following error occurred while executing this line:
    <build file>:210: The following error occurred while executing this line:
    <build file>:49: Could not create task or type of type: validateTask.
    Ant could not find the task or a class this task relies upon.
    I have tried the following options;
    1.) The same build.xml is successfully compiled when executed from JDeveloper
    2.) Both Ant versions are one and the same (Apache Ant 1.7.0)
    3.) Oracle_home points to the SOA installation folder
    4.) Appropriate classpath is set
    I am unable to drill down on this issue further. Is there any small setting (like additional classpaths, oracle_home etc..) that I am missing out here? or is there a jar file that is required by the external Ant builder to execute the <validateTask> and other custom bpel ant tasks?
    Any help would be greatly appreciated.
    Thanks!
    Regards,
    Sathya

    Hi James,
    Let me clear this again. Whenever i try to compile the build.xml of a BPEL process in JDeveloper IDE, I am able to do so without any issues. However, when i try to execute or call the build.xml from a command prompt, I am facing the following error. The "validateTask" ant task is the first task and I dont think that has anything to do with the connection settings as this task will get executed the first in any BPEL process even before <bpelc> (Compilation) or <deployProcess> (deployment) tasks.
    I think I am missing some classpath/libraries/ant settings required for calling the build.xml externally.
    Any help would be greatly appreciated. Thanks!
    Regards,
    Sathya

  • IDod Type,Message Type,Inbound Function,Process Code Required

    Dear All,
    I require
    1. IDoc Type
    2. Message Type
    3. Inbound Function
    4. Process Code
    for
    a. Vendor Master Creation,Updation,Deletion
    b. Customer Master Creation,Updation,Deletion
    c. Vendor Invoice(TCode-FB60) Creation,Updation,Creation
    d. Vendor Credit Memo(Tcode-FB65) Creation,Updation,Creation
    e. Customer Invoice(TCode-FB70) Creation,Updation,Creation
    f. Customer Credit Memo(TCode-FB75) Creation,Updation,Creation
    i require to insert all the above detail into SAP from another system so please provide me the full detail.if the IDoc type is separate for Creation Updation Deletion then provide likewise.
    Everybody will rewarded.
    Thanks,
    RP

    hi
    use t code wedi and goto EDI administration menu. in that goto development menu. there you can find all items like Idoc type, message type or process code all information is available.  You can also use t code WE30,WE31,WE80,WE81, WE42 - Inbound process code and WE41 Outbound process code.
    Hope this helps.  Assign points if useful.
    Rago

  • IDOC type & Message type for posting GR against PO

    Hi Experts
    I want to Post Goods Receipt against Purchase Order using Idoc in Material Management & AFS ( Apparel Fashion & Footwear Solutions) module. so I want to know what is the Idoc type/ mesaage type for this?
    & how to trigger the idoc & what are the settings need to be done for this?
    Appreciate you quick responses.
    Thanks
    Rgds
    Ramesh

    Hi Ramesh,
    is it not an abused thread (a litle)...   as by using google or sdn search button, in 2min you have your answer of all your questions.
    Tips: to find an IDoc type, in SAP, in WE60 or WE02, or BD87 or ..., use the search help button (F4) of field "message type" by giving the description "goodreceipt*".
    For the triggering to outbound Idoc, think to "change pointer", or eventually "change document", table CDHDR, CDPOS.
    Good search.
    Regards
    Mickael

  • Problem with Type Reference "TYPE' in JCO

    Hi All,
    I am facing a weard situation when i am creating a custom RFC function module. This FM is called by Java program with JCO. But, if i define the FM parameters with Reference type as 'TYPE', the Java application is not able to get the data. But the same time, if i declare the parameters with 'LIKE', it is working successfully.
    Can anybody advise me, why it is behaving differently? Is the problem with JCO which is not able to recognise the 'TYPE' reference or from SAP side?
    And, any solution to use 'TYPE' reference successfully?

    hi Sailesh,
    You are right. SAP doesn't recommend the usage of Like in PROGRAMS/REPORTS - mind it, only REPORTS.
    But when it comes to RFC enabled FMs, JCo Understands only LIKE. what you had observed is true. LIKE creates a WA and JCo looks into a workarea. TYPE can refer to a pool of variables but your JCo can't differentiate them. So, you use LIKE.
    Again, you use LIKE only Remote enabled FMs not in Reports/Programs. so, you may use TYPE as your company remommends in reports but in RFMs, use LIKE.
    Hope this cleared.
    Regards
    Ak.
    PS: If my post helped, don't forget the rewards!

  • Condition Types : Calculation Type Change from A (percentage) to B (fixed )

    Dear All,
    We created a condition type (Calculation Type : A (percentage) ) and assigned access sequence and maintained in pricing procedure but later decided to change the calculation type to B (Fixed Amount) on this condition type.
    I am wondering, what impact it will have ?? Can I simple change the calculation type on this condition type or should I take care of any thing else ??
    Let me know, What things I have to take care of.  Thanking you.
    Anu.

    Hi Anu,
    No need of worry if it is independent condition type, means other conditions are not depending on it OR it is not depending on others.
    Also check the condition records if they have any impact.
    Else not a big issue, simply go ahead.

  • In cross apps what is basic type,idoc type , message type

    in cross apps what is basic type,idoc type , message type  explain to me breflley how to work on realtime plz help me i am learning

    ALE/ IDOC
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    Check these step-by-step links
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985

  • My zagg key board connects but the keys I type either don't type character, type 2 characters that are different when I hit only 1 key, or doesn't type at all. Is there a way to reset zagg keyboard to factory settings?

    My zagg key board connects but the keys I type either don't type character, type 2 characters that are different when I hit only 1 key, or doesn't type at all. Is there a way to reset zagg keyboard to factory settings?

    Recharging is a good thing to try. They do start to act odd when the battery gets low. Beyond that, just like Tom says, contact Zagg. I have one of their keyboards and the company has wonderful customer service.

  • Using same Idoc type & Message type for 2 Interfaces

    Hi all,
    we have 2 interfaces which uses same Idoc type, message type & Partner No.Only Process code is going to different according to the posting logic.
    How can we differentiate both while posting idocs to not mess up each other .
    Regards

    Hi all,
    Say example:
    Interface 1 is invoice coming from legacy system to SAP and i have to use AAA.BBB Idoc
    Interfaces 2 is accrual coming from legacy system to SAP and i have to use AAA.BBB Idoc
    So i am creating partner No with LS_LEGACY and with 2 inbound entries one for each.
    Even though i am using the same Idoc types but inside those the process codes are different because they are different in posting logic.
    Issue:
    From XI perspective i can't differentiate them saying like Invoice interface should execute the entry in the partner profile with invoice process code and accrual interface with accrual process code.
    My Idea is to design like this...
    Using the  Message Code option, While creating partner profile give the MESCODE and  in Mapping provide the same MESCODE.
    So that even thought i am using the same partner No with same message type & basis types for 2 scenarios, the right interface will trigger the right process code based on the MESCODE mentioned in mapping by carrying the control record values
    Please let me know ur views
    Regards

  • Outbound output type & Idoc type for MIRO (Invoice Posting)

    Hi Gurus,
    I have requirement like , I want to send the outbound IDoc to a external system containg the invoice detials after Saving in MIRO.
    I am not able to find any output type & Idoc type for the same.
    By going through varios threads , I found that there tell there is no Idoc type & output type for sending Idocs after MIRO.
    Kindlt let me know, if it so, or how this req can be fullfiled by other ways.
    Thanks
    Amresh

    Hi,
    Create Custom Idoc type with required fields,custom output type and assign it to partner profiles.(If there is no std idoc type or output type)
    Use Funtion module MASTER_IDOC_DISTRIBUTE to generate Idocs while saving MIRO, for this you need to find exit or implement implicit enhancement while saving MIRO.
    Regards,
    Ashok.

  • Please provide the Message type ,IDOC TYPE , PROCESS CODE for Edi 990 ,214

    Hi friends,
    Please provide the Message type ,IDOC TYPE , PROCESS CODE for Edi 990 (Response to a Load Tender)., 214 (Shipment Status )
    For shipement status i got trxstc01 for idoc type .. but its only before 4.6 version ..for 4.7 its not there .. please give the alternate for that ...
    Thanks in Advance ....
    If any one is provide exact answer i will give Max marks ..
    Edited by: ajay KOLLA on Aug 6, 2009 8:04 AM

    Hi,
    Have you resolved this issue. If yes, can you please let me know. Im actually looking for same for EDI 867 (guess it is for summary report and need to know message type, Idoc type associated with this).
    Rgds
    Sudhanshu

Maybe you are looking for

  • Font gets truncated at the end while exporting to PDF

    Iam working on Crystal Reports bundled with ASP.NET 1.1 Have installed crystal reports.net 1.1 Patch also which claims to have fixed this issue. Also have tried installing crnet11win_en_sp2 also. Have checked forcelargefonts option also with both 0 a

  • Why I can't print on any wifi printer?

    I use my iPad 2 in my enterprise, and also at home. Apple advertised that iPad was the first device that is the real alternative to home Pc and also for some enterprise works. In my experience of a few months with iPad 2,  i realize of the efforts do

  • BOR method "Returnparameter" on class

    Hi all, on the BOR object method, there is an option for "Resultparameter" so the method returns a value which can be used in the outgoing payments of a workflowtask. How can I achieve this using a method of a class? Regards Robert

  • CUCM: Third Party SIP Phone "Caller ID" is not displaying for outgoing calls

    Hi Team, we are running CUCM 9.1(2a), we have integrated Third Party SIP Phone(Avaya 1230 SIP Phone) with CUCM, Issue: Third Party SIP Phone "Caller ID" is not displaying for outgoing calls, we are able to see only the dailed Number, When "A" calls t

  • Error in smart forms

    Hi all, When am working in smartforms i have to add a field(ANLN1) in the report. But the following error occurs? Hw to solve it? The work area name is w_rkpf. The data object "W_RKPF" does not have a component called "W_ANLN1". Regards, Priya