JDBC requirement

Hi
My scenario is file - xi- jdbc. Here I want to delete the entire records in the database and insert the new one. Normally update command is used to delete the records which matches and to create the new if it won't exist. But in this case how will we do that ??
thanks
kumar

Hi Palnati,
For this you will have to use synchronous select in JDBC adapter.
Just go through this blog
/people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
This is surely going to help you.
Thanks
Amitanshu
Reward Points If useful

Similar Messages

  • Creator's JDBC Requirements

    Oracle says at its website
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm
    that their 10.1.0 drivers offer:
    "Full support for JDBC 3.0 except for:
    * retrieving auto-generated keys
    * result-set holdability
    * returning multiple result-sets."
    Does Creator-generated code need any of the exceptions listed above?
    Thanks,
    Peter

    I would say, try it and let us know;-)
    Some suggestions: Creator at designtime needs different information from the JDBC driver than the actual application when it's running. So I would suggest, use the bundled DataDirect drivers at designtime and set up your own JDBC resources on the appserver, using the Oracle drivers. Then point the app at your resources for the runtime.
    I don't know if that will work!!
    Thanks,
    -- Marco

  • SQLJ vs. JDBC

    This was posted some time ago:
    Some advantages you gain in using SQLJ over JDBC for static SQL
    statements are:
    SQLJ uses database connections to type-check static SQL code.
    JDBC, being a completely dynamic API, does not do any type
    checking until run-time.
    SQLJ programs allow direct embedding of Java bind expressions
    within SQL statements. JDBC requires separate get and/or set
    call statements for each bind variable and specifies the binding
    by position number.
    SQLJ provides strong typing of query outputs and return
    parameters and allows type-checking on calls. JDBC passes values
    to and from SQL without compile-time type checking.
    [i]
    My question is: If the SQLJ is converted to JDBC code once compiled, then how can it offer anything different than JDBC? How can it offer type-checking or binding or any of that?

    I finally solved my own problem. The SQLJ compiler creates a .ser file that is used on the DB side to customize and build the packages needed so that the SQL is static. Using straight JDBC creates dynamic calls.
    At this point I'm worried because I've not had one question answered regarding SQLJ, and it appears that nobody is using it. So, I'm looking in other directions if I can.

  • 9i CLOBs vs JDBC -- contradiction and frustration

    Oracle's various "what's new" whitepapers for 9i all joyfully proclaim its new ability to handle CLOB fields using SQL semantics. However, I've spent most of the day getting increasingly frustrated, because it's increasingly beginning to look like they should have followed it with a big, bold, red warning that it doesn't apply if you're using JDBC.
    What's the real story about 9i and CLOBs? Does 9i REALLY support treating them like big, ersatz VARCHAR2 objects (at least, for things that are too big for VARCHAR2, but still pretty small)? And if it does, what does taking advantage of this great new convenience using JDBC require (besides dropping ojdbc14.jar into the classpath)?
    So far, I've seen at least one post here declaring that Statement.setString(int index, String value) is still limited to 4000 characters. If that's true, is it a JDBC-imposed limit, or an Oracle-imposed limit? And if it's Oracle imposed, doesn't that flat-out contradict their own documentation? I guess I could live with limits on setString(), but if the same restriction exists with getString(), I'm going to go outside and shout vile, anti-Oracle obscenities at the traffic for a while... ;-)
    Seriously, though... is the general lack of working examples of newly-convenient CLOB access via JDBC just because few people are aware of it yet and keep doing it the old way, or are the new SQL Semantics capabilities utterly meaningless as far as practical get/set column access from JDBC is concerned, and we're still stuck having to handle our own stream and buffer semantics just to read 6,000 character long fields?

    how I did clobs (before new stuff I think, did early this year) as a get around for CMP. having to use oracle.sql.CLOB is a drawback but databases shouldnt change too often.
    import javax.sql.*;
    import java.sql.*;
    import java.io.*;
    import oracle.sql.CLOB;
    setting::
    Connection c = null; PreparedStatement p = null; ResultSet r = null;
    try {
    ServiceLocator sl = ServiceLocator.getInstance();
    DataSource ds = sl.getDataSource(dsName);
    c = ds.getConnection();
    c.setAutoCommit(false);
    PreparedStatement ps = c.prepareStatement("GET myCLOB from mytable where pid=?");
    ps.setLong(1,aPK.longValue());
    r = ps.executeQuery();
    if (r.next()) {
    CLOB oraclob = (CLOB)r.getClob("myCLOB");
    oraclob.trim(0);
    Writer w = oraclob.getCharacterOutputStream();
    w.write(clob);
    w.flush();
    w.close();
    c.commit();
    c.setAutoCommit(true);
    r.close();
    ps.close();
    c.close();
    catch (Exception e)
    e.printStackTrace(System.out);
    throw new Exception(e.getMessage());
    and getting::
    Connection c = null; PreparedStatement p = null; ResultSet r = null;
    String ret = "Empty";
    try {     
    ServiceLocator sl = ServiceLocator.getInstance();
    DataSource ds = sl.getDataSource(dsName);
    c = ds.getConnection();
    p = c.prepareStatement(stmt);
    p.setLong(1,aPK.longValue());
    r = p.executeQuery();
    if (r.next())
    Clob clob = r.getClob("myCLOB");
    ret = clob.getSubString(1L,Integer.parseInt(Long.toString(clob.length())));
    r.close(); p.close(); c.close();
    catch (NullPointerException npe) {}
    catch (Exception e)
    throw new Exception(e.getMessage());

  • JDBC and Struts - how?

    Hi, I am writing my first struts application. However despite all the great tutorials out there, I can't find any real examples on how to connect to a database using the <data-source> tags in the struts-config.xml file.
    I know you provide details of the db as follows:
    <data-sources>
    <data-source
    autoCommit="false"
    description="MySql Database Configuration"
    driverClass="org.gjt.mm.mysql.Driver"
    maxCount="4"
    minCount="2"
    password="myPass"
    url="jdbc:mysql://localhost:1526/myDB"
    user="myUser"
    />
    </data-source>
    but then what?! Even if I can get this to work (which I can't!), how do I use the connection? What do I do with it then?
    Many, many, thanks for any guidance.

    The properties file is just used to store the data-source info as you have outlined.
    <data-sources>
    <data-source key="name" ... />
    </data-sources>
    Once you have defined all the parameters identifying your data source you need to retrieve it in the Action class or in the relevant model class - the later only works with Tomcat 4 and later, so check your web server, the first will (should?) work on all web servers.
    //fetch the datasource
    DataSource ds = servlet.findDataSource("name");
    Once you have the DS you can create the connection where needed, if in the action class simple generate a connection object form the data source and do the JDBC required. Or as is preferable pass the data source to a model class and do it all there.
    //pass DS to model
    modelClass searchBean = new modelClass(ds);
    Hopes this helps.

  • How to call statement's execute function to execute procedure in Oracle?

    I made a very simple procedure in oracle logged as internal user.
    the procedure as the following:
    create or replace procedure temptest
    as
    begin
    insert into indextab(idx) values(100);
    commit;
    end temptest;
    in Java program,I use Oracle's jdbc driver to connect database, still connect as internal user.
    I can call statement.executeUpdate("insert into indextab(idx) values(100)"). and 100 row was added in database.
    then,I delete this row, try to run procedure in java,
    but the call of statement.execute("temptest") throw a exception
    the error message is:"java.sql.SQLException: ORA-00900: invalid SQL statement"
    then, I write the same procedure in sql server.
    all things work right.( I use jdbc-odbc bridge connect to sql server database)
    who can tell me what's the reason?
    I'm so urgent, please help me as soon as fast, thank you very much

    Instead of a Statement object, use a CallableStatement. CallableStatement is the JDBC wrapper for a stored proc. JDBC requires that the vendor specific call be wrapped in a {CALL ....}.
    So, your code would look like the following:
    Connection con = some connection;
    CallableStatement cs = con.prepareCall("{CALL temptest}");
    cs.execute();
    Take a look at the Javadoc. You can set both IN and OUT parameters using a CallableStatement.

  • [XI 3.1] BEST PRACTICE method of Oracle connection for RPTs on Linux

    Business Objects XI (3.1) - SP3.
    Running on Red Hat Enterprise Linux OS.
    7,000+ Crystal Reports 2008 *.rpt objects ONLY (No Universe / No WebI).
    All reports connecting to Oracle 10g databases.
    ==================
    In the past, all of this infrastructure was running on Windows Server OS and providing the database access via a Named ODBC connection (eg. "APP_DATA".)
    This made it easy to manage as all the Report Developers had a standard System DSN called "APP_DATA" which was the same as the System DSN name on all of our DEV, TEST/UAT, and PROD servers for Business Objects.
    When we wanted to move/promote a *.rpt file from DEV to PROD we did not have to change any "Database Connection" info as it was all taken care of by pointing the System DSN called "APP_DATA" a a different physical Oracle server at the ODBC level.
    Now, that hardware is moving from Windows OS to Red Hat Linux and we are trying to determine the Best Practices (and Pros/Cons) of using one of the three methods below to access the Oracle database for our *.rpts....
    1.) Oracle Native connection
    2.) ODBC connection
    3.) JDBC connection
    Here's what we have determined so far -
    1a.) Oracle Native connection should be the most efficient method of passing SQL-query to the DB with the fewest issues and best speed [PRO]
    1b.) Oracle Native connection may not be supported on Linux - http://www.forumtopics.com/busobj/viewtopic.php?t=118770&view=previous&sid=9cca754b468fc67888ab2553c0fbe448 [CON]
    1c.) Using Oracle Native would require special-handling on the *.rpts at either the source-file or the CMC level to change them from DEV -> TEST -> PROD connection. This would result in a lot more Developer / Admin overhead than they are currently used to. [CON]
    2a.) A 3rd-Party Linux ODBC option may be available from EasySoft - http://www.easysoft.com/products/data_access/odbc_oracle_driver/index.html - which would allow us to use a similar Developer / Admin overhead to what we are used to. [PRO]
    2b.) Adding a 3rd-Party Vendor into the mix may lead to support issues is we have problems with results or speeds of our queries. [CON]
    3a.) JDBC appears to be the "defacto standard" when running Oracle SQL queries from Linux. [PRO]
    3b.) There may be issues with results or speeds of our queries when using JDBC. [CON]
    3c.) Using JDBC requires the explicit-IP of the Oracle server to be defined for each connection. This would require special-handling on the *.rpts at either the source-file (and NOT the CMC level) to change them from DEV -> TEST -> PROD connection. This would result in a lot more Developer / Admin overhead than they are currently used to. [CON]
    ==================
    We would appreciate some advice from anyone who has been down this road before.
    What were your Best Practices?
    What can you add to the Pros and Cons listed above?
    How do we find the "sweet spot" between quality/performance/speed of reports and easy-overhead for the Admins and Developers?
    As always, thanks in advance for your comments.

    Hi,
    I just saw this article and I would like to add some infos.
    First you can quite easely reproduce the same way of working with the odbc entries by playing with the oracle name resolution on the server. By changing some files (sqlnet, tnsnames.ora,..) you can define a different oracle server for a specific name that will be the same accross all environments.
    Database name will be resolved differently regarding to the environment and therefore will access a different database.
    Second option is the possibility to change the connection in .rpt files by an automated way like the schedule manager. This tool is a additional web application to deploy that can change the connection settings of rpt reports on thousands of reports in a few clicks. you can find it here :
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80af7965-8bdf-2b10-fa94-bb21833f3db8
    The last option is to do it with a small sdk script, for this purpose, a few lines of codes can change all the reports in a row.
    After some implementations on linux to oracle database I would prefer also the native connection. ODBC and JDBC are deprecated ways to connect to database. You can use DATADIRECT connectors that are quite good but for volumes you will see the difference.

  • NontransactionalRead and NontransactionalWrite problem

    I have gotten Kodo to work with transactions; however my application does
    not need the transactional support and I am trying to turn off the
    transactional support to help performance.
    In my kodo.properties file I have added:
    javax.jdo.option.NontransactionalRead=true
    javax.jdo.option.NontransactionalWrite=true
    However, this seems to have no effect; when I attempt to perform a
    makePersistent() I get the following error:
    com.solarmetric.kodo.runtime.UserException: Can only perform operation while
    a transaction is active. at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.checkActiveTransaction(P
    ersistenceManagerImpl.java:2604) at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistent(Persisten
    ceManagerImpl.java:1379) at
    .....rest of the trace
    I am using Mysql if that makes a difference.
    Is there something else I need to configure to make the nontransactional
    stuff work?
    As a side note, the performance I am getting is about 50% of the performance
    from straight jdbc code (i.e. takes twice as long to do the same thing).
    However the jdbc code is not doing the transactional things that Kodo is; so
    I am hoping that by turning off the transactional support I will realize
    performance that is close enough to straight jdbc.
    As another side note, is it possible to convert your newsgroup into a
    mailing list? I prefer mailing lists and having to fire up my newsreader to
    see if there is anything new on your newsgroup is a less preferred solution
    for me.
    Thanks,
    Steven Balthazor

    "Stephen Kim" <[email protected]> wrote in message
    news:[email protected]...
    My guess is there are some other configuration/usage problems that are
    affecting your performance. Can you describe your test case and post your
    properties?I have moved all the code into a test case (so that I can isolate it from
    any other interactions) and include it in the attached zip file. The
    following files are attached:
    1. jdo.jdo The jdo metadata
    2. kodo.properties The kodo properties I am using
    3. Test.java The jdo class for my table
    4. KodoTest.java The test cases
    5. Results.htm The results that I recorded.
    6. test.sql The sql to create the table which I am populating.
    Some notes about my setup:
    1. I am running this inside a servlet container (Jetty) which configures
    the PersistenceManagerFactory and provides a jndi reference point
    2. The testing was done using a cactus test suite wrapper which provided a
    TestServlet. The results included are not the results from the first run
    through; I reran the tests multiple times to allow the JVM to provide any
    possible optimizations.
    My platform:
    Windows XP (current patches)
    Java 1.4.1_02
    Kodo 2.5.2
    The only reason I am benchmarking the two (Jdbc and Kodo) side by side is so
    that I can understand if I am doing something stupid on the Kodo side. I am
    new to Jdo and I have not found many good references that show the best way
    to do things. The queries I have included are fairly simple queries but are
    representative of many of the things that my application (Web application)
    will need to do, so I need to know how to do them in the best/fastest way
    possible. So please feel free to tell me everything I am doing wrong on the
    Jdo side of things--I want to learn.
    I really want to use Kodo; I have investigated just about every other Tool
    out there and the features Kodo provides match my needs perfectly. The
    major selling points I see for Kodo:
    1. Based on a standard
    2. Makes my sql portable -- I have a need to run my application on varying
    backend dbs (Mysql, MS-SQL, Oracle) and I don't feel good about doing this
    strictly in jdbc. I have been able to run my tests across all three
    platforms by changing only the kodo.properties file which is incredibly
    fantastic. Also the schematool is a great differentiator; it allows me to
    push schema changes out for the different platforms while maintaining one
    base schema.
    3. Ease of use -- Jdbc requires me to do a great deal more type juggling and
    exception handling -- I would prefer not to have to build my own framework
    to do these things
    Thanks,
    Steven Balthazor
    begin 666 KodoTest.zip
    M4$L#!!0````(`-E&#B^#3/44#P$``*T#```0````2V]D;U1E<W0O:F1O+FID
    M;ZV306Z#,!!%UXF4.UC>&S>[+DRSRPG2`[CVE+K8GB@V47K[#H0@1-)"I;("
    M^?/^\X#5[A(\.\,I.8PEWQ9/G$$T:%VL2OYZV(MGOGO9K#=K]6F1;AA=ZJA-
    MK2M@40<HN<%0)#0.FU10B/>I+FF\3JG/'2#E\>)*P25#;)O)(%H\B6NP1J*P
    M&KZ(W;XO#/HF1,[.VC>T'C$"ET1:#3WSI*S?/ R(W+K(D<PR'8^F_M%FA/HK
    M]WA'=7;"I$V^._"V'V:"G%T`/IY"%YHOLSKK:=T-=]<IN]+?3 *I_I-%>+3K
    M>8/V8V9JY)/0DLD_TAAX4Y<EP"M+>(A5_AB08KM@8TIVO_OME,G^F-&SDNWI
    M^P902P,$% ````@`#4<.+]T8Q!TJ`0``O0(``!@```!+;V1O5&5S="]K;V1O
    M+G!R;W!E<G1I97.5DL%.`C$0AN^;[#LT\=[%$#V0[$$A)@H8HO@`0W>$8MM9
    M.EV$&-_=;C'!Z(KQLI=_OG^^;9MGBJQD,N M!J^5?*&*Y$0K=(QCW)=O'BUM
    ML7K/LS5L82?7,9^A9\T!G<(I.%BBOP$5R.^'!IC+SDYM:Q/AA9)WH^OAKPUY
    MEF=G#:,81T@,R3E409,3-9'1;BF^>E#=1G*JW2RFY457!KN4G?=Z>??/'L6.
    MV^;(8:XM4A,BF9SLGC=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ZS/WC'J\*J^B!,?^A,Y^^3_939+,?^;E7U0/*)8XLA36JUE
    M"3&[A7,N\?8MIBV+S%IL\@-8Y-,#4$L#!!0````(`#E*#B\CJA"AE0```,,`
    M```1````2V]D;U1E<W0O=&5S="YS<6QMSC$+PC 0!> ]D/_PQ@8<K*LX1,E0
    M;&NI<>AD:G-*P%:P5]!_KZFKRW'<^^#=KC;:&EB]S0T<T\@.B12 "][A$FYA
    MX&2U5"@/%N4IS]%._#B'H7M23P,O9MM''&6:*GBZMM.=9_V+1V(./3GXEBEN
    M?TRL9GI]Z^.<;U6=%;INL#<-D,2'E!0*MJG,IGAG1UVLI9#B`U!+`0(4"Q0`
    M```(`-E&#B^#3/44#P$``*T#```0``````````$`( ````````!+;V1O5&5S
    M="]J9&\N:F1O4$L!`A0+% ````@`#4<.+]T8Q!TJ`0``O0(``!@`````````
    M`0`@````/0$``$MO9&]497-T+VMO9&\N<')O<&5R=&EE<U!+`0(4"Q0````(
    M`"A'#B_:;G0YGP8``'(>```6``````````$`( ```)T"``!+;V1O5&5S="]+
    M;V1O5&5S="YJ879A4$L!`A0+% ````@`(T@.+WCSA.)(!@``RRX``!0`````
    M`````0`@````< D``$MO9&]497-T+W)E<W5L=',N:'1M4$L!`A0+% ````@`
    M)$<.+_R6`9C;````*@(``!(``````````0`@````Z@\``$MO9&]497-T+U1E
    M<W0N:F%V85!+`0(4"Q0````(`#E*#B\CJA"AE0```,,````1``````````$`
    M( ```/40``!+;V1O5&5S="]T97-T+G-Q;%!+!08`````!@`&`(D!``"Y$0``
    "````
    `
    end

  • Error: Installing EM Grid 10.1.0.3 and Oracle 10.2

    Hi folks,
    I've been looking through the pre-installation notes for EM Grid. Wondering if I missed the JDBC requirements. Maybe thick JDBC? How can we check this on Linux?
    I get an error while installing EM Grid on Windows. I'm using an existing Oracle 10.2 (Linux) DB as the repository. Anyone else run into this? Tks, Chris
    Error below:
    java.lang.NoSuchMethodException: EMSuperAdminConfig.setPrompt1(java.lang.String)
         at java.lang.Class.getMethod(Unknown Source)
         at oracle.sysman.oii.oiif.oiifm.OiifmGraphicPageHandler.setDialogProperties(OiifmGraphicPageHandler.java:376)
         at oracle.sysman.oii.oiif.oiifm.OiifmGraphicPageHandler.showWizardPage(OiifmGraphicPageHandler.java:216)
         at oracle.sysman.oii.oiif.oiifm.OiifmGraphicPageHandler.processWizardPage(OiifmGraphicPageHandler.java:167)
         at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.doWizardPageOperation(OiifmGraphicInterfaceManager.java:319)
         at oracle.sysman.oii.oiif.oiifb.OiifbWizChainDlgElem.doOperation(OiifbWizChainDlgElem.java:683)
         at oracle.sysman.oii.oiif.oiifb.OiifbCompWizChainDlgElem.doOperation(OiifbCompWizChainDlgElem.java:100)
         at oracle.sysman.oii.oiif.oiifb.OiifbCondIterator.iterate(OiifbCondIterator.java:162)
         at oracle.sysman.oii.oiis.OiisCompContext.doOperation(OiisCompContext.java:1175)
         at oracle.sysman.oii.oiif.oiifb.OiifbLinearIterator.iterate(OiifbLinearIterator.java:131)
         at oracle.sysman.oii.oiic.OiicCompsWizEngine.doOperation(OiicCompsWizEngine.java:198)
         at oracle.sysman.oii.oiif.oiifb.OiifbLinearIterator.iterate(OiifbLinearIterator.java:131)
         at oracle.sysman.oii.oiic.OiicInstallSession$OiicSelCompsInstall.doOperation(OiicInstallSession.java:3425)
         at oracle.sysman.oii.oiif.oiifb.OiifbCondIterator.iterate(OiifbCondIterator.java:162)
         at oracle.sysman.oii.oiic.OiicPullSession.doOperation(OiicPullSession.java:937)
         at oracle.sysman.oii.oiic.OiicSessionWrapper.doOperation(OiicSessionWrapper.java:230)
         at oracle.sysman.oii.oiic.OiicInstaller.run(OiicInstaller.java:399)
         at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:717)
         at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:628)
    Method tried to invoke is 'setPrompt1'
    Method tried to invoke is 'setLabel3'
    Method tried to invoke is 'setLabel4'
    Method tried to invoke is 'setPrompt2'
    Method tried to invoke is 'setRequireEmailNotification'
    Method tried to invoke is 'setCheckBoxLabel0'
    Method tried to invoke is 'setCheckBoxLabel1'

    Oracle Database 10g release 2 is not supported as a repository for Grid Control 10.1.0.3 or 10.1.0.4 . In fact the 10.1.0.4 grid control creates a 9i database behind the scene. We have tried to use an existing repository even on 10gR1 and not succeed. The best option is to create a new repository while installing 10gR1 grid control. 10gR2 grid control is not released yet.
    However, 10g release 2 (10.2) can be managed as a target by Grid Control 10.1.0.4.

  • Connection problem to SQL Server 2000

    I have a local installation of MSSQL 2000, that doesn't seem to use any port as a listener. when checking the log I can see that even though I said it should use a TCP/IP connection, it says it uses a shared memory (I guess the reason is that the installation I did is not for a server but only for running on my machine).
    How can I define through BPEL the connection to this kind of MSSQL? can I define a connection that will run on the named pipes of the SQL server?
    Thanks in advance.

    Hi Ophir,
    I tried this exercise of connecting to SQL Server myself via jdbc and I wrote a new section for the developer's guide based on it. It was not completely painless. For your specific question the SQL Server Express install sets up connectivity by either 'shared memory' or 'named pipes' by default, but you can easily add a TCP/IP listener (for me via the SQL Server Configuration Manager), which is mandatory for jdbc access. Please see the section 'TCP Port' below.
    Not sure if you have it, I am cutting and pasting from the 10.1.2.0.2 DBAdapter guide:
    (Oracle® Application Server Adapters for Files, FTP, Databases, and Enterprise Messaging User's Guide
    10g Release 2 (10.1.2))
    Using a Microsoft SQL Server Database
    When using a Microsoft SQL Server database, follow the database connection steps in Chapter4, "Design Time" and use the following information:
    MS JDBC Driver
    URL: jdbc:microsoft:sqlserver://localhost\NAME:1433;SelectMethod=cursor;databasename=???
    Driver Class: com.microsoft.jdbc.sqlserver.SQLServerDriver
    Driver Jar: .\SQLServer2000\msbase.jar, msutil.jar, mssqlserver.jar
    DataDirect Driver
    URL: jdbc:oracle:sqlserver://localhost
    Driver Class: com.oracle.ias.jdbc.sqlserver.SQLServerDriver
    Driver Jar: .\DataDirect\YMbase.jar, YMoc4j.jar, YMutil.jar, YMsqlserver.jar
    Note the following when connecting to a SQL Server database:
    User name and password
    o
    SQL Server 2005 installs with Windows authentication as the default. Therefore, you do not log in with a user name and password; rather, your Windows user account either has privilege or does not. JDBC requires you to provide a user name and password.
    According to support.microsoft.com, "Microsoft SQL Server 2000 driver for JDBC does not support connecting by using Windows NT authentication." See
    http://support.microsoft.com/default.aspx?scid=kb;en-us;313100
    However, the DataDirect driver specification states that it does.
    If you use your Windows user name and password, you may see something like the following:
    [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Login failed for user
    'DOMAIN\USER'. The user is not associated with a trusted SQL Server
    connection.[Microsoft][SQLServer 2000 Driver for JDBC]
    An error occured while attempting to log onto the database.
    You must select mixed mode authentication on a clean installation.
    o
    On a Microsoft SQL Server 2000 Express Edition installation, the system username is su and the password is whatever you provide.
    Connect string
    From the sqlcmd login, you can infer your connect string, as in the following examples:
    Example 1:
    sqlcmd
    1>
    jdbc:microsoft:sqlserver://localhost:1433
    Example 2:
    sqlcmd -S user.mycompany.com\SQLExpress
    1>
    jdbc:microsoft:sqlserver://user.mycompany.com\SQLExpress:1433
    Example 3:
    sqlcmd -S user.mycompany.com\SQLExpress -d master
    1>
    jdbc:microsoft:sqlserver://user.mycompany.com\SQLExpress:1433;databasename=
    master
    A full URL is as follows:
    jdbc:microsoft:sqlserver://serverName[\instanceName]:tcpPort[;SelectMethod=cursor][;databasename=databaseName]
    Database name
    If you must explicitly supply the database name, but do not know it, go to
    C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data
    If you see a file named master.mdf, then one of the database names is master.
    TCP port
    Make sure that SQL Server Browser is running and that your SQL Server service has TCP/IP enabled and is listening on static port 1433. Disable dynamic ports. In SQL Native Client Configuration/Client Protocols, make sure that TCP/IP is enabled and that the default port is 1433.
    JDBC drivers
    You must download the JDBC drivers separately. From www.microsoft.com, click Downloads and search on jdbc. You can also try using the DataDirect driver.
    Thanks
    Steve

  • B1i (2005) installation failedSo far:  windows XP, MS-SQL 2005 express: ok

    Dear All,
    I try to install B1i for NW 2005 on a SBO 2005B installation. I have installed all prerequisites like JDK, MSXML, Tomcat (no blanks in path). When running the setup program and after all information gathered, the connection to the MS-SQL 2005 database succeeds and the final installation step starts but returns the message:
    "Initail database failed, make sure Tomcat or mini-http is shut down and please check your database's status and try again"
    Looking into MS-SQL shows a database beeing created named localhost/B1i. Tomcat and mini-http are definately shut down. When starting Tomcat, it is accessible via http://localhost:8080.
    System Parameters:
    windows server 2003
    SBO 2005B
    java: 1.4.2.19
    tomcat 5.5.27 including compat package for 1.4.2.19)
    sql jdbc 1.2.2828.100
    msxml 4.0 SP 2
    I can not find an error in the system. Is there a way to diagnose what is happening and does anyone have an idea where the problem lies?
    Ciao, Mathias
    [Update]
    I have tried JDBC 2.0.1008 and JDBC 2.0.1607 - both lead to a fatal error when trying to connect to the database. I assume this is due to Java JDK 1.4.2 as JDBC requires Java 5.0 (1.5.0)
    Does anybody know if I can use JDK 1.5.0_17 instead of 1.4.2_19?
    [Update 2]
    I have tried to install the B1i on two other servers with identical setup and it worked. However, this will not help me with this machine... On the other side, it shows, that there is nothing wrong with the procedure I am using
    I found by the way: B1i works fine with MSSQL 2005 Express, it works with jdk 1.5.0.17 (and then JDBC 2.0)
    [Update 3]
    So far:
    windows XP, MS-SQL 2005 express: ok
    windows XP, MS-SQL 2005 express, SBO2005A: ok
    windows 2003, MS-SQL 2005 SBO2005A: fail
    windows 2003, MS-SQL 2005 SBO2005B: fail
    windows 2003, MS-SQL 2005 SBO2007A: ok
    windows 2003, MS-SQL 2005 Netweaver 2004S: fail
    Unfortunately the three servers where it fails are the ones I need to use for production
    The precise error state is that the install routine creates the database in SQL 2005 and then reports that it can not create the database. Is there something I should check in SQL 2005?
    Edited by: Mathias Wilhelm on Feb 11, 2009 5:17 PM

    Salut Eddy,
    I tried it with tomcat 5.0.30 - no success. JDK is 1.4.2.19
    I tried it with tomcat 5.5.27 - no success. JDK was 1.4.2.19 and 1.5.17
    I checked the database: The structure is created but the tables are not created. As the user 'sa' has full admin rights it must be with the access path to the database that is wrong. What I do not understand is, why the installation routine is able to connect to the database to create B1i and then unable to create the tables. I checked in the log files of the db and found no error messages. I tested this as well by using a wrong password for sa or a wrong user. In both cases, the installation routine fails already when checing the existence of B1i database
    [Update]
    In the meantime:
    Checked permissions on database
    Checked that administrator is member of local admin group
    Checked JAVA_HOME environment variable
    Found collation SQL_Latin1_General_CP1_CI_AS for working setup and SQL_Latin1_General_CP1_CS_AS in failing setup
    Checked all security settings by comparing to working setup
    Checked event viewer and found no errors
    Checked all log files and found no errors
    Checked that sa can create tables manually in localhost\B1i
    Ciao, Mathias
    Edited by: Mathias Wilhelm on Feb 12, 2009 2:36 PM

  • Update one column while getting the value in another column

    Is it possible to in one single SQL statement update two columns in a table while at the same time obtaining the value of another column, on the same row, in the same table, and independently (that is, the update of the columns has nothing to do with the data that I want from another column)*?* Of course, I can do this in two operations, one being a "select" and the other one being an "update", but since I am in the same table and even on the same row, is it really necessary to make TWO database calls? That's why I want to combine the the two SQL-statements, for reasons of presumed effiency.

    jsun wrote:
    Is it possible to in one single SQL statement update two columns in a table while at the same time obtaining the value of another column, on the same row, in the same table, and independently (that is, the update of the columns has nothing to do with the data that I want from another column)*?* Of course, I can do this in two operations, one being a "select" and the other one being an "update", but since I am in the same table and even on the same row, is it really necessary to make TWO database calls? That's why I want to combine the the two SQL-statements, for reasons of presumed effiency.Two statements != two database calls.
    At least not in terms of SQL.
    JDBC requires a 'statement' but in SQL (depending on the data source) that can include multiple statements. An obvious example of this is a stored proc but there are other ways as well.

  • Its been such a long time.....

    Hello all
    I have used JDBC before but it was about 3 years ago, so my memory is kind of hazy.
    I know jdbc drivers are included in java.sql.* but if I wanted to connect to an informix database would I have to use the informix jdbc drivers or are the ones included in j2se sdk ok?
    does every implementation of jdbc require some kind of client installation?
    Is it possible to use a jdbc driver in say ASP or PHP?
    Is jdbc exclusively for use in java application/applets?
    Sorry for such basic questions but it has been such a long time.
    Regards
    poncenby

    I have used JDBC before but it was about 3 years ago,
    so my memory is kind of hazy.
    I know jdbc drivers are included in java.sql.* but if
    I wanted to connect to an informix database would I
    have to use the informix jdbc drivers or are the ones
    included in j2se sdk ok?It'd be better to download the Informix JDBC driver JAR. A 100% Java, type IV driver is what you want. Google for it.
    does every implementation of jdbc require some kind of client installation?I'm not sure I know what this means. If I write a Web app, there's no client installation. I have the JDBC driver on the server. The JDBC driver needs to live where the objects that do database access are.
    Is it possible to use a jdbc driver in say ASP or PHP?JDBC is a Java technology. I don't think it makes sense to think about using it with ASP or PHP.
    Is jdbc exclusively for use in java application/applets?JDBC is for any Java app that needs to connect to a relational database.

  • Authorizations required in Communication Channel for JDBC Lookup mapping

    Is there of list of required authorizations and or patch needed to use a JDBC Lookup in a message mapping?  We are using PI 7.1, and trying to use the new JDBC Lookup feature.  We currently have a user that is not an ower of the DB tables, this does work in our current solution of using UDFs, but we would like to avoid switching it to a user that has full access on the tables, e.g. SAPXI*
    Current environment: PI 7.1 (not EhP1)
    Thanks,
    Matt

    Do you know what those authorizations should be when using a standard JDBC Lookup mapping function?  Currently we have a custom UDF that calls the table via a <schema>.<table name> and the current user in the Receiver Comm Channel works just fine.  It appears that when using the standard SAP JDBC Lookup function it calls the table directly and the user in the Comm Channel no longer has the correct permissions.
    I would expact that the JDBC Lookup function would allow for a standard "Read" on any table as long as the user has that level of access...but not in this case.  I am going to bring it up to our SAP XI software development team and see what they say, but wanted to get some views from our other experts as well.
    Thanks,
    Matt

  • Help required in JDBC to RFC to JDBC

    Hi Guys,
    I have a requirement where I'll query my database which will give me back multiple rows. Each row has a flag which indicates CREATE,DELETE or MODIFY.
    According to the value in these flags, I have to call different BAPI's i.e
    BAPI_CREATE
    BAPI_DELETE
    BAPI_CHANGE
    After calling the BAPI, I need to insert the response back to my database.
    My design logic is
    Inside my BPM, receive my jdbc message and do multimapping transformation with the 3 BAPI types and bundle them.
    After this , I need to use a BLOCK for each STEP where I'll insert the sync send step
    Bundle all the response messages obtained so far and call the jdbc transformation
    Guys I need your help in suggesting any changes in my design
    Am i approaching this situation in the right way???
    Please help me on this guys
    Thanks
    Varun

    Varun,
    Just one thoought over your design....
    Rather than calling BAPI's for every row, just send all rows to the abap proxy or zbapi.
    You can process all your rows at a one time ( which I think would be better design and fast processing) and gather all response from Individual BAPI's for every row  in one internal table and send it back to XI as BAPI's response message.
    In this way you can avoid BPM as well..which will be more faster.
    Let me know if you need more details.
    Nilesh

Maybe you are looking for