Database Mirroring problem

I'm getting an error setting up Mirrroring that I cannot seems to fix. I'm using a setup of two SQL servers with no witness, both running SQL Server 2008 R2. I setup the perms on Primary, Backup Full the database in question (MMS Database to test) and then
restore that using NO Recovery on the Secondary. I then setup the Security Wizard on the Primary, after which it sets up the end-points correctly on both servers using the service account which is local admin and Sysadmin on both boxes. However, when I then
choose to start mirroring, I consistently get a 1418 error saying that the server cannot be reached or does not exist. I have verified that the FQDN and port 5022 is open using Netstat and using telnet and TCP protocol is enabled on both boxes. 
Any other suggestions? Any obvious perms I might have forgotten to copy across? I've copied App Pool, CA, Content Access, Cache and Service accounts to the secondary box as logins with no fixed roles. Both End Points for Database Mirroring list as started. 

Hi Robin,
According to your description, my understanding is that the error occurred when mirroring the databases.
Did you use Kerberos authentication in SharePoint?
If yes, when you run the SQL Server service under a domain account or under a local account, the attempt to create the SPN will fail in most cases because the domain account and the local account do not have the right to set their own SPNs. When the SPN
creation is not successful, this means that no SPN is set up for the computer that is running SQL Server, so the communication between the servers will fail.
So I recommend to configure the SPN for SQL, please refer to the link below:
http://support.microsoft.com/kb/811889/en-us
Here is a similar issue for you to take a look:
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=191014
Best regards.
Thanks
Victoria Xia
TechNet Community Support

Similar Messages

  • Database Mirroring

    If database in suspect mode what is going to be happen in mirroring? will it failover?

    Yes I would say yes because suspect mode mostly likely occurs due to Hardware failure,
    improper shutdown of the database server,
    corruption of the database files, and of course unavailable database files and so on...
    And as we all know in mirroring
    unplanned downtime can be caused by hardware failures such as storage failure, by power outages, by human error, or by natural disasters, all of which can cause the production server as suspect mode or data center to be unavailable.
    However if we talkling about Suspect_pages The principal recognizes a page read error, marks the page with an 829 error (restore pending), inserts a row into the suspect_pages
    table in MSDB with the error status, and requests the page from the mirror. If the mirror is victorious in reading the page, it returns the page to the principal who applies it. After the page is repaired, the principal marks the page as restored — that is,
    event_type =
    5 in the suspect_pages table. Then any deferred transactions are resolved.
    You can use this code SELECT
    * FROM
    sys.dm_db_mirroring_auto_page_repair
    catalog view to  displays corrupted pages in the data mirroring environment.
    If the mirror fails, then the principal continues functioning, so the database continues to be available to the clients. The mirroring state is DISCONNECTED, and the principal
    is running exposed in this case. You can use the sys.database_mirroring
    catalog view to see the mirroring state on the principal server. Make sure you have plenty of disk space for the transaction log to grow on the principal and be sure to bring the mirror server online before you run out of disk space and your other option
    will be using this code to break the database mirroring session ALTER DATABASE
    <database_name> SET PARTNER OFF if you have to.
    If the
    witness is lost, the database mirroring session will continue functioning
    without interruption, and the database will be available. 
    However If the
    principal server is lost, the failover scenario
    depends on the transaction safety (FULL or OFF) and whether a witness is present. if we talk about
    FULL with a witness If Server A fails, then Server B will be the Principal but witness down Server B will not be able to Serve. so if we talk about
    without a witness if the Principal fails the database is not accessible to client unless you don't have to go several
    steps to make it available. Finally we talk about Principal with OFF (no witness) if the
    principal is lost the database will be unavailable and then your option is to FORCE FAILOVER 
    I hope this will help and give you idea to make more research about it and overcome your problem. Good Luck

  • Mirror Database shows Recovery state in Database mirroring in sql 2012

    Hi I am working on DBmirroring and have encountered problem of mirror database showing recovery state.
    I tried to resolve issue by removing database mirroring from principal ,removing endpoints from both the nodes and
    finally firing alter database db1 set partner off statement also.But when reconfigure dbmirroring on principal it does not allow
    start dbmirroring and mirror database db1 comes in to recovery state from restoring stage.
    srm_2010

    ok in that case why it is not allowing me to configure db mirroring when I am trying from SSMS.It gives an error.tell me????
    srm_2010
    And what is the error ? If while configuring mirroring it fails for some reason you have to make sure the mirror database which has gone in recovery state needs to be brought in restoring state.
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Lack of support for FIM database mirroring

    The official line is that database mirroring is not a supported architecture for the FIM deployment. I am not proposing using this, however I'd like to understand 1) What the issues really would be with a mirrored database deployment, 2) Will support
    ever be added for this, and will it come in the form of SQL AlwaysOn?
    Really appreciate help and input.
    Rgds,
    David

    Database mirroring comes has two modes regarding transactions: synchronous or asynchronous.
    Synchronous requires that the data be committed in both places before releasing the transaction. This has a big performance impact on the FIM Service database and to a lesser extent on the FIM Sync Database.
    Asynchronous means that data isn't committed in both places at the same time, the mirror can fall behind and then in failover you could be behind. In order to have automatic failover with Mirroring you have to be able to modify the connection string to include
    the failover partner or the client has to support getting that data at first logon. While you can modify the FIM database connection strings, it is not understood if FIM is using database clients that support mirroring. I believe it is. Even with asynchronous
    you still have performance hit for copying every transaction to the mirror.
    SQL Always On combines the best of mirroring and clustering to allow you to group databases together into an availability set, and then automatic failover the whole group to another server. It should be noted that Always On makes use of a similar underlying
    mechanisms as mirroring to copy the data -- this is evident when you read that Always on also has an asynchronous and synchronous mode. You will most likely run into the same performance quandary.
    Will the product group add support for it? My guess is that it depends on if they find a good way to address the performance issues.
    David Lundell, Get your copy of FIM Best Practices Volume 1 http://blog.ilmbestpractices.com/2010/08/book-is-here-fim-best-practices-volume.html

  • Error in Starting Database Mirroring

    Hai Everyone.. I have an issue in mirroring which i described below.
    I am getting the above error when i click on "start mirroring" button. I turned off firewall in my antivirus. 
    And i also executed the below script in both my principal and mirror server. Because i created both the instances in my system only. And i am accessing those instances with windows authentication.
    Go
    GRANT CONNECT ON ENDPOINT:: EMP1_MIRRORING TO [DEVLAP5170\login];
    Go 
    -- Thanks and Regards Srikar Reddy Gondesi, Trainee SQL Server Database Administrator Miracle Software systems, Inc.

    Hi,
    How’s everything going?
    Also, see prerequisites for database mirroring:
    For a mirroring session to be established, the partners and the witness, if any, must be running on the same version of SQL Server.
    The two partners, that is the principal server and mirror server, must be running the same edition of SQL Server. The witness, if any, can run on any edition of SQL Server that supports database mirroring.
    The database must use the full recovery model.
    Verify that the mirror server has sufficient disk space for the mirror database.
    When you are creating the mirror database on the mirror server, make sure that you restore the backup of the principal database specifying the same database name WITH NORECOVERY. Also, all log backups that were created after
    that backup was taken must also be applied, again WITH NORECOVERY.
    Helpful link:
    Prerequisites, Restrictions, and Recommendations for Database Mirroring
    http://msdn.microsoft.com/en-us/library/ms366349.aspx
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Database termination Problem

    Hi every body ..plz help me on this..
    We are facing database termination problem in ECC6 production syste.
    Database: Oracle 10.2, O/S: Windows 2003. Spam  :27, SP level 13.
    Error is:
    Errors in file f:\oracle\p02\saptrace\background\p02_ckpt_6520.trc:
    ORA-00206: error in writing (block 3, # blocks 1) of control file
    ORA-00202: control file: 'D:\ORACLE\P02\ORIGLOGB\CNTRL\CNTRLP02.DBF'
    ORA-27072: File I/O error
    OSD-04008: WriteFile() failure, unable to write to file
    O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.
    When we are performing backup then data base termination occuring freequently.
    Give right solution as early as possible.
    Thanks,
    Nani.

    Hi,
    Have a look at below snote which actually speaks about the oracle error codes
    Snote :  546006
    within the Snote it says :-
    " If you cannot access a database file (for instance a data file, control file or RedoLog) for whatever reason, an ORA-270xx appears. The actual cause comes from additional error messages (usually in the operating system) that occur on ORA-270xx. "
    And as per your last update
    " ORA-00206: error in writing (block 3, # blocks 1) of control file
    ORA-00202: control file: 'D:\ORACLE\P02\ORIGLOGB\CNTRL\CNTRLP02.DBF' "
    i think there is problem accessing the database control file. Hence you  are facing the above problem.
    I think if you recreate your control file i think, it should resolve the problem.
    Hope it will be helpful to resolve your problem.
    Rgds
    Radhakrishna D S

  • Alert: SQL Server Service Broker or Database Mirroring Transport stopped

    Hi Team,
    I got this error message even no one DB configured as mirroring ???
    Alert: SQL Server Service Broker or Database Mirroring Transport stopped Priority: 0 Severity: 2 Resolution state: New
    Alert description: The Database Mirroring protocol transport has stopped listening for connections.

    Can you check the rule. By default the configurations are disabled state that is the reason you are getting the alert.
    If it's not configured properly then you might need to override it
    --Prashanth

  • Immediate HELP in Tomcat 5 to Postgresql 7.4 database connectivity problem

    Hi,
    I failed to connect Tomcat 5.0.24 with Postgresql
    7.4.2. The files created by me and the changes i had
    made in the existing files are rates.jsp,
    conversionDAO.java, web.xml and server.xml. The error
    message on the top of the rest of it was "The value of
    useBean class attribute converter.conversionDAO is
    invalid". So far I found out that the coding for
    database connectivity purpose in conversionDAO.java
    cause the error. Another thing is Postgresql jdbc
    driver is required to set in the CLASSPATH for the
    java file to access the Postgresql database. I don't
    know where should I put it in Tomcat for web
    application. Anyway, I put it in
    $CATALINA_HOME/shared/lib according the book i
    refered. I do the database connectivity coding refer
    to the Tomcat Kick Start book from Sams Publishing.
    Below are the coding involved, please show me the
    mistake i had made. Thank you.
    ----server.xml----
    <Context path="/database"
    docBase="${catalina.home}/webapps/database" debug="0"
    reload="true">
    <ResourceParams name="jdbc/conversion">
    <parameter>
    <name>username</name>
    <value>myusername</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>mypassword</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>org.postgresql.Driver</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:postgresql://localhost/conversion</value>
    </parameter>
    </ResourceParams>
    </Context>
    ----web.xml----
    <servlet>
    <servlet-name>conversionDAO</servlet-name>
    <servlet-class>converters.conversionDAO</servlet-class>
    </servlet>
    <resource-ref>
    <res-ref-name>jdbc/conversion</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    ----conversionDAO.java----
    public conversionDAO() throws SQLException,
    NamingException
    Context init = new InitialContext();
    Context ctx = (Context)
    init.lookup("java:comp/env");
    DataSource ds = (DataSource)
    ctx.lookup("jdbc/conversion");
    con = ds.getConnection();
    select = con.prepareStatement(
    "SELECT rate FROM Exchange WHERE src= ? AND dst =

    Immediate HELP in Tomcat 5 to Postgresql 7.4 database connectivity problem (cont.)
    Errors log
    2004-06-06 01:07:53 StandardContext[servlets-examples]SessionListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[servlets-examples]ContextListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[jsp-examples]SessionListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[jsp-examples]ContextListener: contextDestroyed()
    2004-06-06 01:07:59 StandardContext[balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2004-06-06 01:08:00 StandardContext[jsp-examples]ContextListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[jsp-examples]SessionListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[servlets-examples]ContextListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[servlets-examples]SessionListener: contextInitialized()
    2004-06-06 01:08:01 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: /rates/rates.jsp(5,0) The value for the useBean class attribute converters.conversionDAO is invalid.
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:141)
         at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1217)
         at org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         at org.apache.jasper.compiler.Generator.generate(Generator.java:3261)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:422)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:507)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    ----more----

  • Database configuring problem in setup of managed systems in SMD

    Hello,
    i'm doing the setup of a CRM 5.0 in SMD Abap+Java and the setup results returns following:
    "Database configuration problem"  with the exception:
    java.lang.NullPointerException
         at com.sap.smd.server.manager.SMDPluginProperties.setProperty(SMDPluginProperties.java:114)
         at com.sap.smd.agent.plugins.database.ConfigurationTask.configureCustomProperties(ConfigurationTask.java:242)
         at com.sap.smd.agent.plugins.database.ConfigurationTask.configureProperties(ConfigurationTask.java:370)
         at com.sap.smd.agent.plugins.database.ConfigurationTask.execute(ConfigurationTask.java:124)
         at com.sap.sup.admin.setup.AppCfgTasks.configureDbApp(AppCfgTasks.java:115)
         at com.sap.sup.admin.setup.SetupStep.execute(SetupStep.java:202)
         at com.sap.smd.agent.plugins.remotesetup.SapInstance.setup(SapInstance.java:217)
         at com.sap.sup.admin.setup.SapCluster.setup(SapCluster.java:461)
         at com.sap.sup.admin.setup.SapCluster.access$000(SapCluster.java:26)
         at com.sap.sup.admin.setup.SapCluster$SetupRunner.run(SapCluster.java:669)
         at java.lang.Thread.run(Thread.java:534)
    Anybody knows which can be the problem?
    Thanks a lot
    Carlos

    Hi Shriraj,
    ensure that the installation path is correct. I only put /urs/sap/<SID> and you must put /usr/sap/<SID>/DV***/.
    In my case with that the setup returns all in green.
    I hope it helps you
    Regards
    Carlos

  • Monitor SQL Database mirroring using powershell script

    I am trying use the below powershell script to monitor SQL Database mirroring. The motive here is to determine if there are databases which are in "Disconnected" or "Suspended" mode.
    I am running the script on the Principal Server:
    $returnStateOK = 0
    $returnStateWarning = 1
    $returnStateCritical = 2
    $returnStateUnknown = 3
    $NagiosStatus = ""
    # Load SMO extension
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo") | Out-Null;
    # Servers to check
    $sqlservers = @("$env:computername");
    foreach($server in $sqlservers)
    $srv = New-Object "Microsoft.SqlServer.Management.Smo.Server" $server;
    # Get mirrored databases
    $databases = $srv.Databases | Where-Object {$_.IsMirroringEnabled -eq $true -and $_.MirroringStatus -eq "Suspended" -or $_.MirroringStatus -eq "Synchronizing" -or $_.MirroringStatus -eq "Disconnected"
    -or $_.MirroringStatus -eq "None"  -and $_.Name -ne "Master" -and $_.Name -ne "model" -and $_.Name -ne "msdb" -and $_.Name -ne "tempdb"};
    if ($databases -ne $null)
    $databases | Select-Object -Property Name, MirroringStatus | Format-Table -AutoSize;
    exit $returnStateCritical
    } Else {
    Write-Host "All Databaes are Mirrored"
    exit $returnStateOK
    I have Suspended few databases for testing purpose but when I run the above script the output says "All Databaes are Mirrored"
    If I make changes to $database and use it below i.e. I am changing the AND operator to OR after "$_.IsMirroringEnabled -eq $true"
    $databases = $srv.Databases | Where-Object {$_.IsMirroringEnabled -eq $true -or $_.MirroringStatus -eq "Suspended" -or $_.MirroringStatus -eq "Synchronizing" -or $_.MirroringStatus
    -eq "Disconnected" -or $_.MirroringStatus -eq "None"  -and $_.Name -ne "Master" -and $_.Name -ne "model" -and $_.Name -ne "msdb" -and $_.Name -ne "tempdb"};
    I get the below output:
    Name                                                                        
       MirroringStatus
    DB1                                                                    
      Synchronized
    DB2                                                                    
      Synchronized
    DB3                                                                       Synchronized
    DB4                                                                   
    Suspended
    DB5                                                                       Suspended
    DB6                  
         Suspended
    DB7                                                              
            Synchronized
    DB8                                                              
            Synchronized
    I only want the databases which are Suspended or Disconnected to be listed.

    I only want the databases which are Suspended or Disconnected to be listed.
    Hi raul-133,
    Based on your description, to list the databases which are Suspended or Disconnected ,I recommend you execute the following Transact-SQL statements in SQL Server firstly. If you can get the expected results from this query, then use the SQL Server query
    in powershell script. For more details, please review this similar blog:
    Monitor database mirroring.
    Use master
    go
    select d.name, m.mirroring_state_desc
    from sys.database_mirroring m,
    sys.databases d
    where m.database_id = d.database_id and (m.mirroring_state in (0,1))
    For more details about mirroring state, you can review this article:
    sys.database_mirroring (Transact-SQL).
    Thanks,
    Lydia Zhang

  • SIMPLE Database Design Problem !

    Mapping is a big problem for many complex applications.
    So what happens if we put all the tables into one table called ENTITY?
    I have more than 300 attributeTypes.And there will be lots of null values in the records of that single table as every entityType uses the same table.
    Other than wasting space if I put a clustered index on my entityType coloumn in that table.What kind of performance penalties to I get?
    Definition of the table
    ENTITY
    EntityID > uniqueidentifier
    EntityType > Tells the entityTypeName
    Name >
    LastName >
    CompanyName > 300 attributeTypes
    OppurtunityPeriod >
    PS:There is also another table called RELATION that points the relations between entities.

    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    check the coloumn with WHERE _entityType='PERSON'
    as there is is clustered index on entityType...there
    is NO performance decrease.
    there is also a clustered index on RELATION table on
    relationType
    when we say WHERE _entityType ='PERSON' or
    WHERE relationType='CONTACTMECHANISM'.
    it scans the clustered index first.it acts like a
    table as it is physically ordered.I was thinking in terms of using several conditions in the same select, such as
    WHERE _entityType ='PERSON'
      AND LastName LIKE 'A%' In your case you have to use at least two indices, and since your clustered index comes first ...
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Have you ever thought of using constraints in your
    modell? How would you realize those?
    ...in fact we did.We have arranged the generic object
    model in an object database.The knowledge information
    is held in the object database.So your relational database is used only as a "simple" storage, everything has go through your object database.
    But the data schema is held in the RDBMS with code
    generation that creates a schema to hold data.If you think that this approach makes sense, why not.
    But in able to have a efficent mapping and a good
    performance we have thought about building only one
    table.The problem is we know we are losing some space
    but the thing is harddisk is much cheaper than RAM
    and CPU.So our trade off concerated on the storage
    cost.But I still wonder if there is a point that I
    have missed in terms performance?Just test your approach by using sufficiently data - only you know how many records you have to store in your modell.
    PS: it is not wise effective using generic object
    models also in object databases as CPU cost is a lot
    when u are holding the data.I don't know if I'd have taken your approach - using two database systems to hold data and business logic.
    PS2: RDBMS is a value based system where object
    databases are identity based.we are trying to be in
    the gray area of both worlds.Like I wrote: if your approach works and scales to the required size, why not? I would assume that you did a load test with your approach.
    What I would question though is that your discussing a "SIMPLE Database Design" problem. I don't see anything simple in your approach when it comes to implementation.
    C.

  • Database connection problem when i try store the values in JTable

    Hi Sir,
    I have a database connection problem when i try to store the data's in a JTable.I think the problem is with in the database connection.I have used 3 vectors here.The database which i have used is
    Access.Where the program is compiling well.But when i run it only the first column heading is printed and error message showing that
    "Invalid Cursor State".I need to solve this problem.pls. do help me.
    I will provide u with the code.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.util.*;
    import java.sql.*;
    public class DataBaseVector extends JPanel
    //Container contentPane=getContentPane();
    JScrollBar jsb = new JScrollBar(JScrollBar.HORIZONTAL);
    JScrollBar jsb1 = new JScrollBar(JScrollBar.VERTICAL);
    Image i1;
    String url="jdbc:odbc:Ananth";
    Vector col=new Vector();
    Vector rows=new Vector();
    Vector rdata=new Vector();
    Connection conn;
    public DataBaseVector()
    //super("JTable With ScrollBars");
    this.setLayout(new BorderLayout());
    UIManager.put("ScrollBar.track",Color.red);
    UIManager.put("ScrollBar.thumb",Color.blue);
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    conn=DriverManager.getConnection(url); // Is there any problem here?
    Statement st=conn.createStatement();
    ResultSet rs=st.executeQuery("Select * from AccountMaster");
    // rs is the result set obtained
    ResultSetMetaData rsmd=rs.getMetaData();
    int cols=rsmd.getColumnCount();
    for(int i=1;i<=cols;i++)
    col.addElement(rsmd.getColumnName(i));
    rdata.addElement(rs.getString(i));
    rows.addElement(rdata);
    }catch(Exception e)
         System.out.println("The Error Message was:"+e.getMessage());
    JTable jt=new JTable(rows,col);
    int v=ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
    int h=ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
    JScrollPane jsp=new JScrollPane(jt,v,h);
    this.add(jsp,BorderLayout.CENTER);
    this.add(jsb, BorderLayout.SOUTH);
    this.add(jsb1, BorderLayout.EAST);
    public static void main(String args[])
    JFrame jf=new JFrame();
    JPanel frame=new DataBaseVector();
    jf.getContentPane().add(frame);
    jf.setSize(800,600);
    jf.setVisible(true);
    Thanx,
    m.ananthu

    The problem is ResultSet.next() is not called.
    Try this and modify the table creation as you need.
    ResultSetMetaData rsmd=rs.getMetaData();
    int cols=rsmd.getColumnCount();
         while(rs.next()) {
              for(int i=1;i<=cols;i++)
                        col.addElement(rsmd.getColumnName(i));
                        rdata.addElement(rs.getString(i));
              rows.addElement(rdata);
    Hope this helps

  • Database Mirroring - Witness Server

    Hi,
    Can I have a setup where both the Primary and the Mirror servers are running on SQL Server 2008 and Witness is running on SQL Server 2005? Somehere, I read that the witness can be of any edition, however the version has to match with the Primary and the
    Mirror setup.
    Could someone please confirm?
    Also, if SQL Server 2008 Standard Edition supports automatic failover on Database Mirroring?
    Thanks,

    In the Microsoft SQL 2014 docs I see: 
    "We strongly recommend that the witness reside on a separate computer from the partners. Database mirroring partners are supported
    only by SQL Server Standard edition and by SQL Server Enterprise edition.
    Witnesses, in contrast, are also supported by SQL Server Workgroup and by SQL Server Express."
    I figured I'd post this, since I ended up here looking for an answer to this question.  

  • Database Mirroring Idea

    Hi Senseis
    I was thinking about this concept and I want to know if someone else think the same idea before. As I say in other Thread, I will use database mirroring on top of MSCS to protect our systems. The mirror site will be in Miami and the primary in  Cancun, Mexico. In the documentation says that the distance and bandwitch is essential for the succed of this configuration, so I will implement the high performance method. But (and is here where I want to know your opinions), if I recreate my production enviorement in the mirror site (I mean everything, disk distribution, SID, NSID, everything), apply the DB Mirroring and, in case of crash in my production site, just redirect the traffic to my mirror site... this will work?
    Thanks for your help

    I could imagine using a name in the SAPLogon to connect to the original system. If it fails you change one DNS entry to point to the other system and it should work.
    But there are other things to consider:
    - printers
    - interfaces to other systems (BW)
    - mounted file systems
    Those need to be made aware too of the fact, that the systems IP changed.
    Markus

  • Database Mirroring Encryption

    Hi,
     Our security team, scanned database server (SQL 2005) and mentioned that there are two connections (ref: below screenshot) which are not being encrypted. When we looked at the connections, they were database mirroring related. (Engine
    level: we implemented SSL certificate).
    So, we started working on to encrypt these connections as well. We created certificate and assigned it to the Endpoints, successfully. (Ref: http://msdn.microsoft.com/en-us/library/ms191140(v=sql.90).aspx). The only thing that we didn't follow is "CREATE
    LOGIN" part and Database mirroring is running & synchronizing. But we still can see those two connections exists.
    QUESTION: What are we missing? Any ideas will be a great help. Thank you very much.
    If you feel that I have answered your question then please "Mark as Answer".

    Data Encryption in Database Mirroring Transport Security (http://technet.microsoft.com/en-us/library/ms186360.aspx), and
    Encrypting Connections to SQL Server (http://technet.microsoft.com/en-us/library/ms189067.aspx).
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

Maybe you are looking for

  • Itunes software installation

    When i try to install itunes 10.5 it gives me the following error There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Please let m

  • Heading for Report appearing more than once

    Hi All, I am running a report, the report contain more than 1 lakhs records, how can I avoid the heading of the report to repeat, because as of now heading information is repeating for 50 records. Please advice how to proceed on this issue. Thanks, M

  • Why is a special character  inserted into my drafts?

    After I save a draft, and then return later to finish it.... I frequently (more times than not) find that Thunderbird has inserted a ton of  characters in the email, all over. Usually at the end of every sentence. Often the are 3 in a row, with spac

  • Linux Testdrive SAP NetWeaver 7.02 on DB2 LUW now available in SAP Shop

    You can find the DB6 based NW7.02 (SP09) Testdrive in www.sap.com/shop -> Knowledge Shop -> Documentation -> SAP NetWeaver -> SAP NetWeaver, material number is 50108304. Don't let yourself get fooled by the currently misleading description, 50108304

  • Photoshop CS6 not working right

    Issues are happening on a mac. using photoshop CS6. opening files from bridge CS6, trying to edit the photos and the photos sometimes goes black or scrambled. recently started to happen every now and then and now it's every time. I have uninstalled p