Sql 2008 peer-to-peer replication and jdbc driver

Hi, sorry but i'm a sql dummy...:-)
I setup a sql 2008 p2p replication for a database.
Can i specify, on a jbdc connection string, the path of the 2nd sql server for automatic failover?
I try failoverPartner variable, but this is only for database mirroring.....
Can u help me?
Thanks in advance

Hi, sorry but i'm a sql dummy...:-)
I setup a sql 2008 p2p replication for a database.
Can i specify, on a jbdc connection string, the path of the 2nd sql server for automatic failover?
I try failoverPartner variable, but this is only for database mirroring.....
Can u help me?
Thanks in advance

Similar Messages

  • Connection reset by peer:/Broken pipe using JTurbo JDBC Driver

    I am using the JTurbo JDBC driver to connect to a SQL Server 7.0 database. I am using Connection Pooling. After roughly an hour or so, I am no longer to get connections from the pool. Exceptions thrown are "connection reset by peer", followed by "Broken pipe" exceptions on every subsequent getConnection call.
    Has anyone found a successfull resolution to this problem using the JTurbo JDBC driver for SQL Server 7.0? I have tried the "autoReconnection=true" option on the URL string for the driver, but this has had no effect.
    I am running the Resin app server, version 1.2.7, on Solaris 8 and connecting to a SQL Server database running on NT 4.0. The JVM on Solaris where the servlet is running is 1.3.1.
    Any help is greatly appreciated!
    Mark Crouch
    Lead Developer
    accessKent

    I do not have an idea about your application server but i do know how i solved it in weblogic. Just see whether this is helpful to you.
    Points to be sure of........
    1) Make sure that when ever you request a connection from a pool, after you are done with it return it. If you are not returning it and trying to use that reference again, this problem will occur.
    2) Look at the capabilities of your app server. Set the connection pool such that
    a) All the connections are checked at regular interval with some default select statement from any table in the database.
    b) Connections are check when the connection is checked out and returned to the pool.
    I the connection object is not ready , close it and create a new one. The app server which manages the pool should implement these feature so that when you get the connection - its the tested and working object.
    If your app server does not support - then think of ways you testing it before you using it(Anyway this is not the good solution).

  • Handheld and jdbc driver

    hello,
    i have to develop an application in java for handeld devices .i want to connect my handheld database through jdbc driver with the database on the desktop. .
    so is there any jdbc driver of any database available which can solve this problem.
    or is there any other way to do this?
    hoping a quich reply. thanking u
    its
    abhishek chopra
    ispan technologies

    Hi,
    Better way to connect to a database is using an intermediate JSP or servlet which receives request from client, executes SQL command on database and sends the result to the client. The reason why it is better to use this method is that any change to database will not need change in client code.

  • Reading Advance Queuing with XMLType payload and JDBC Driver character encoding

    Hi
    I've got a problem retrieving the message from the queue with XMLType payload in Java.
    It was working fine in 10g database but after the switch to 11g it returns corrupted string instead of real XML message. Database NLS_LANG setting is AL32UTF8
    It is said that JDBC driver should deal with that automatically but it obviously don't in this case. When I dequeue the message using database functionality (DBMS_AQ package) it looks fine but not when using JDBC driver so Ithink it is character encoding issue or so. The message itself is enqueued by the database and supposed to be retrieved by dedicated EJB.
    Driver file used: ojdbc6.jar
    Additional libraries: aqapi.jar, xdb.jar
    All file taken from 11g database installation.
    What shoul dI do to get the xml message correctly?

    Do you mean NLS_LANG is AL32UTF8 or the database character set is AL32UTF8? What is the database character set (SELECT value FROM nls_database_parameters WHERE parameter='NLS_CHARACTERSET')?
    Thanks,
    Sergiusz

  • Oracle 9.2.0.6 , JDK 5 and JDBC driver

    Hi Friends,
    At my work place they have Oracle 9.2.0.6 and now they want to user JDK 5. I find that JDBC driver only supports JDK 1.4. Can some one suggest what I need to do so that later I should not face unknown issues
    Thx
    V

    Oracle database 10.2 drivers ojdbc14.jar may also be used with JDK 5.0.
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#02_03

  • Pda and jdbc driver

    hello,
    i have asked this question before also .
    my question is can i use jdbc driver in handhelds(PDA) so that i can connect my database which is residing on desktop through my java program.
    i got answer that there is no jdbc driver that can be put on handhelds but now i have came to know that i can use hsqldb jdbc driver and postgresql jdbc driver in handhelds to access desktop database.
    so i am very much confused that whether i can use jdbc driver in handhelds on not?
    kindly help me
    thanking u in advance
    its
    abhishek chopra

    hi,
    thanks for reply. ya i visited that site .but its not free as u have said.
    but i inquired about hsqldb jdbc driver in their forum and mailing lists and they have said that hsqldb drivers can be used on handheld devices to access desktop database.
    same thing for postgresql jdbc driver. they all r telling that drivers came in the form of jar file and we can deploye it on handheld (pda) with the java application
    so sir how can i get confirmed about it.
    about ur another option to use intermediate servelets to access database is also good. but problem will be that when we have to access that via http call and for it we require internet connection to access to servlet which is on our lan network(if am not wrong) . i have doubt that is internet connection is required to communicate to servlet if we connect to our pda in network.
    please suggest me.
    thanking u
    its
    abhishek

  • Dreamweaver CS5 and JDBC Driver

    Does Dreamweaver CS5 support JDBC Driver for MySQL ?
    If yes how to set up a JDBC connexion to a MySQL database ?
    If no how can I connect a JSP page/application to a MySQL database ?
    Thanks.

    Support for JSP has not been available since Dreamweaver CS4.
    Correct, but the JSP Server Model functionality can be installed as an Extension that is delivered with Dreamweaver. You can find it here:
      [install-dir]/configuration/DisabledFeatures/
    HTH,
    Randy

  • MS SQL Server 2000 and JDBC Driver Problem

    I was wondering if you could help me. I installed Java 1.4.1 on my Win2K machine along with MS SQL Server 2000 JDBC Service Pack 1 drivers.
    The drivers and JDK installed perfectly and I properly set my class path. Yet everytime I try to execute my code I get the: java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver error.
    Any idea why? Is it posisible that the JDBC drivers are not comaptible with Java 1.4? I also installed 1.3.1 and I get the same issue. Let me know if you have any insisghts. Much thanks.
    [email protected]

    Those drivers are perfectly compatible with JDK 1.4.1. I've used them successfully.
    CNF Exception ALWAYS means that the class loader can't find the JAR in the CLASSPATH. You said you "properly" set your CLASSPATH. Am I right in assuming that you mean a Win2K environment variable?
    I think that's a bad idea. I don't have one on my machines at all.
    I always set the CLASSPATH myself when I compile and run an app, to make sure that I always have exactly what I need.
    If you're running Tomcat, it doesn't even look at the system CLASSPATH as far as I know. If you're using this in a Web app, but those JARs in your WEB-INF/lib directory and deploy your stuff as a WAR file. Tomcat will find it in the CLASSPATH for sure then.
    Let me know if either of those suggestions hits the mark. If not, send more info and I'll try again. - MOD

  • How to make data base link from oracle 11g r2 to microsoft sql 2008 express

    I need to make data base link from oracle 11g r2 to microsoft sql 2008 express to make replication between then
    please help me !
    I didn't know what is the user and password in the command which create database link

    To replicate data you can ude Database Gateway for ODBC or Database Gatewy for MS SQl Server. Please use the search engine of this forum if you ant to get more details about each product.
    Some SQl Servers are set up to use Windows authentication only. In this case you won't be able to connect to the SQL Server as Windows authentication isn't supported with the gateways. You have to make sure your SQL server is supporting username and password authentication - a common user is the "sa" user. Regarding the username/password, please get in touch with your SQL Server Admin.

  • Microsoft SQL 2008

    I'm trying to connect to Microsoft SQL 2008. I'm using "sqljdbc_1.2 driver". I'm having trouble getting the right "jdbc driver" and "jdbc url".
    For jdbc url, I tried: "jdbc:sqlserver://localhost" but there was errors.
    run-single:
    java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerXADataSource
    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 com.home.DisplayAuthors.main(DisplayAuthors.java:17)
    Java Result: 1
    Does anybody know the right "jdbc driver" and "jdbc url" I should use?
    Thank you.

    Robert_oak wrote:
    I'm trying to connect to Microsoft SQL 2008. I'm using "sqljdbc_1.2 driver". I'm having trouble getting the right "jdbc driver" and "jdbc url".
    The stack trace provides information - use it.
    For jdbc url, I tried: "jdbc:sqlserver://localhost" but there was errors.
    The connection string has nothing to do with it.
    java.lang.Class.forName(Class.java:169)The forName() however does.
    Does anybody know the right "jdbc driver" and "jdbc url" I should use?You start by loading the class. If you can't load the class then either you don't have the right class name or it is NOT in your class path.
    Until you load the class you can't connect.
    Googling would provide the correct driver name.

  • Sample Servlet code that connects to Microsoft SQL 2008

    Does anybody have sample Servlet code that connects to a Microsoft SQL 2008 Resource Pool?
    Thank you.

    JDBC is used to talk to databases. Not database utilities. As an example SSIS is not a database.
    So the question would be is the 2008 "Resource Governor" (of which "Resource Pools" are part) a utility or a database entity?
    [http://technet.microsoft.com/en-us/library/bb933866.aspx]
    I would guess that it isn't a database entity.
    Thus the only way to access it is if a database entity allows you do access it. And for that you would need to look for SQL Server system proc(s).

  • Migrate SQL 2008 Analysis database to 2012 AS database along with data level security defined in current production cube

    I want to migrate Analysis Services 2008 database to 2012 AS database along with data level security defined in current production cube
    Note: Only Production environment have security, while no security is defined in development environment
    Potential Approach:
    1 - Using Synchronization Wizard: Gives me error : "The OLAP element at line1 can not appear under envelope......" and this is because Synchrinzation works only for same version
    and in my case, there are different versions of SQL (SQL 2008 and 2012)
    2 - Using Visual studio conversion wizard - Convert SQL 2008 AS project to 2012 and then process cube, so I can get the cube working but then how can I get data level security since 100's of data level security is defined in production Cube, so how can I
    migrate that across
    3 - Script out XMLA and deploy cube - But then again having issues with how can i script SSAS security
    4 - Would taking backup of SSAS 2008 database and restore to SSAS 2012 will help ?
    Any suggestions would be appreciated
    Thanks,
    Mihir

    Hi Mihir,
    According to your description, you want to migrate the SQL Server Analysis Services (SSAS) 2008 database which have some security setting with it to SSAS 2012, right? We can migrate existing Analysis Services databases either during Setup, by upgrading an
    existing instance of Analysis Services, or after Setup, by running the Migration Wizard. Generally, when migrating a database to another server, all the setting will be migrated. So in your scenario, you can refer to the steps on the links below to migrate
    your SSAS database.
    How to: Migrate Analysis Services Databases
    Migrating Existing Analysis Services Databases
    Regards,
    Charlie Liao
    TechNet Community Support

  • Compatability of ECC DEV&QAS on Win 2008/SQL 2008 with Prdn on Win 2003/Win

    We are planning our  upgrade of my SAP landscape (ECC 6.0 , Portal & BI) . Would it be feasible and do-able to migrate sandbox, dev, and qas to Windows 2008 & SQL 2008 , allow the support team to use the 2008 landscape.  That means that my Dev. environments would be on Wind 2008 & SQL 2008 while my production would still be Win 2003 & 2008.   I'm not feeling like this is workable for the transport domain? will I have issues with transports across to production?
    So the question is
    Is it possible to transport from Windows 2008 SQL 2008 landscape over to a production landscape that is on Windows 2003 SQL 2005?
    Any other issues I should be aware of ?
    BTW, we would have Portal and BI setup in the same way  DEV & QAS on the newer releases and Production on the Older release.
    NOTE: this would be for about 3 - 4 weeks
    Please advise
    Maria

    Thank you,
    So you're saying that if I had the DEV environment in Win 2008 SQL 2008 (being the transport domain) , and the production environment in win 2003 sql 2005, IF we had to transport across this type of landscape there should be NO issues. 
    Nothing else to think of as posing risk?
    Maria

  • TAF and JDBC

    Today it's possible to use TAF with JDBC OCI.
    When will be possible to use TAF with JDBC Thin ?

    I remember TAF only works with OCI (thick) JDBC driver. Not sure about the restriction is there or not in the latest version of Oracle. Tell us your Oracle version and JDBC driver.
    sqlplus uses OCI.
    Yong Huang

  • CF 10 getting random resets : Detail: [Macromedia][SQLServer JDBC Driver]A problem occurred when attempting to contact the server (Server returned: Connection reset).

      These resets appear to coincide with a clearing of the cached queries for the DSN from memory, breaking all my sub queries that try to use the initial cached one.  I am grasping at straws to discover the reset culprit, the DSN tests always show OK, there is not packet loss at the switch level.  If anyone has some suggestions, I am all ears!
      The resets are completely random and under no load.  My sql 2008 r2 box is set to unlimited connections.
    An example of a DSN setup is :
    Maintain Connections [x]
    String Format [ ]
    Max Pooled Statements 100
    Timeout 20 Interval 7
    Query Timeout 0
    Login Timeout 30
    CLOB [ ]
    BLOB [ ]
    Long Text Buffer 64000
    Blob Buffer 64000
    Validate Connection [ ]
    I am running the following :
    CF Enterprise 10,0,13,287689
    Tomcat 7.0.23.0
    Ubuntu 1204 x64
    Java VM 20.4-b02
    Java 1.6 (Sun Microsystems Inc)
      I have seen it suggested to uncheck the maintain connections advanced options but this doesn't seem like a good approach to the problem and will cause more stress on the sql box IMHO.
      I have also seen it suggested to enable Validate Connection but documentation on this is a bit sparse...
    Here are more examples of the initial reset error and then the subsequent cache related errors :
    Database Error Information:
    Native Error Code: 0
    SQL State: 08S01
    Query Error: [Macromedia][SQLServer JDBC Driver]A problem occurred when attempting to contact the server (Server returned: Connection reset). Please ensure that the server parameters passed to the driver are correct and that the server is running. Also ensure that the maximum number of connections have not been exceeded for this server.
    Custom Error Code: 08S01
    Database Error Information:
    Native Error Code: 0
    SQL State: n/a
    Query Error:
    Query Of Queries runtime error.
    Table named GlobalDetails was not found in memory. The name is misspelled or the table is not defined.
    Custom Error Code: n/a
    Thanks in advance to anyone who has a suggestion.

    Hi, could DBA check MS SQL Server connection logs???
    May be server has some limits (for example sessions, memory and e.t.c.)

Maybe you are looking for

  • IPhoto Album pictures differ in Screen Saver selection

    When selecting an iPhoto Album as a Screen Saver, the Preview picture pane often displays pictures in other albums. Also, in certain albums, only one picture in that album displays continuously. I hope this problem is fixable. Thanks for your help!

  • Any suggestons on how to remove exclusion areas from a polygon?

    any suggestons on how to remove exclusion areas from a polygon?

  • Is it possible to do a batch in Illustrator?

    Hi everyone! Do you know by any chance if it's possible to do a batch in Illustrator as you do in Photoshop? I can't find any Actions scripts similar to Photoshop but maybe it's just because it's not possible! Thanks for your help! Marie

  • Having problems with the app store

    Hi my brother has a 8gb 4th generation iPod touch and everytime we try to download an app, or update a game it says "Your account is not valid for use in the U.S store. You must switch to the Canadian store before purchasing." How do I switch to the

  • DVD Player - Where are the language folders located?

    In attempting to free-up HD space, I accidently deleted ALL of my languages from the Open Apple-I window of DVD Player. They luckily went to the trash, and I recovered the English.Iproj folder. All I need to do is find a home for it, but alas, even S