[How To] access Ms SQL Server2k multiple instance via JDBC?

hi,
could anybody tell me how to?
sql server 'servera': ms sql 2000 enterprise (english)
installed 3 name instances ('instance1','instance2' and 'instance3')
jdbc driver: i-net opta 2000
I don't find any parameter like 'instance' in driver's document, so how could I present my db instance?
Here is my attemp, but not hit:
"jdbc:inetdae7:servera\instance1?database=aaa" via tcp/ip and
"jdbc:inetdae7:\\servera$instance1\pipe\sql\query?database=aaa" via pipe
who can help me, thanks

Though I am not an expert in this area, I wish to give my thoughts. Each instance will be listening to a particular port. So in the url string you can specify the port to connect to the particular instance. For example
jdbc:oracle:thin:@127.0.0.1:1521:oracle","scott","tiger
the above url string is for the instance running on my local box listening to port 1521.
If I have one more instance running on 1523, I just change the port number.
Hope this gives you some insight.
Cheers.
Sekar

Similar Messages

  • How to access MS SQL in Oracle BI Administration?

    Hi All,
    I'm a new in Oracle BI, I've just created an business application using Oracle BI Administration Tool of Oracle BI Server version 10.1.3.4.1:
    Steps:
    1. building repository (through Physical, Business model and Mapping, Presentation),
    2. making Answers from Presentation Services.
    => It ran well and beautiful reports, charts. But now, my DB is stored in Microsoft SQL Server, help me how to access MS SQL in Oracle BI, more details steps, are there any useful links?
    Appreciate All.

    Hi
    Do the following
    Control panel> Administration tool> ODBC>SystemDSN > ADD > select the driver>Your SQL SERVER credentials
    Then test the connection
    Go to the BI tool
    IMPORT from Database>Select the SQL server connection you have just created>Locate your desired schema> configure the connection pool> import
    regards
    Roy

  • How to access the sql database in applet?

    How to access the sql database in applet?
    Please help me.

    import java.applet.*;
    import java.awl.*;
    import java.sql.*;
    //other packages
    public class jdb extends Applet
    Connection con;
    Statement stmt;
    String name="drvijay";
    String phoneno="9842088860";
    public void init(){}
    pubilc void stop(){}
    public void destroy(){}
    public void start()
    call();
    public void call()
    try{
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              conn=DriverManager.getConnection("Jdbc:Odbc:emp","sa","");
              stmt=conn.createStatement();
              stmt.executeUpdate("insert into empdetails(name,phoneno) values ('"+name + "',''"+ phoneno +"' )" );
              }catch(SQLException e)
                   System.out.println("error"+e);
                   System.exit(0);
    //<applet code="jdb" height="200" width="200"> </applet>
    u this jdbc statement in any of the method..
    */

  • How to access PL/SQL Web Services using java

    New to Webservices. Created PL/SQL Web Service using JDeveloper. Vendor is not sure how to access it using java. Can anyone please help to point in the right direction or provide some sample ?

    So if I'm correct you have already exposed a PL/SQL procedure or function as web service?
    In that case you can generate a proxy (client) for the generated web service using JDeveloper. It will generate Java code which invokes the web service.
    See the wizard in JDeveloper, it should be in the same category as the create PL/SQL web service wizard.
    Regards, Ronald

  • Accessing and retreiving ResultSets through CORBA via JDBC

    Hey,
    Im in the middle of doing a project and I was originally planning to connect to the database through JDBC over TCP/IP only. Everything worked fine. Now Ive been told that I have to use CORBA to relay the result sets over from the remote database. ie An applet requests information, queries the CORBA server, the CORBA server via JDBC then queries the database and gets the result set. The result set is sent back via CORBA to the client applet, where the data is then manipulated.
    What I want to know is it actually possible to do this? I only know a small amount of CORBA and Ive been crawling the web for even a small example of it. Could anyone help me out. Ive been looking for the past week and you guys are my last hope.
    Thanks in advance

    Hi,
    You won't be able to send actual instances of the Java class ResultSet via CORBA. All interfaces and data structures you use must be defined in CORBA IDL. You should be able to find a lot of tutorials about general CORBA, including the ones at the bottom of
    http://java.sun.com/j2se/1.4.1/docs/guide/idl/index.html
    You should define an interface in CORBA IDL for your server that the client applet will call. Probably you'll have a method which takes the query parameters and returns some sort of data structure that you also define in IDL.
    The only problem I really see is whether or not the JVM your browser uses does CORBA very well.
    - Everett

  • How to access jtable cells in multiple tabs?

    Hi,
    in my program when I push a button 3 tabs are created. And all these tabs have a table in it. What I want to do is that When I push other button I want to access all these tables and cells. and get the cell values. How can I get the value of one cell in the jtable when I have multiple tabs?
    thanks in advance.

    This is my main window
    public class AuditClient extends javax.swing.JFrame {
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    createCheckList();
    public void createCheckList() {
    CheckList.createCheckList(CheckListChildPane);
    private javax.swing.JTabbedPane CheckListChildPane;
    private javax.swing.JPanel CheckListParentPanel;
    And This is the CheckList.java : This code create tabs and tables in it. (from xml file).
    public class CheckList extends JPanel implements ActionListener{
    JTable table;
    public CheckList(Object[][] TheData) {
    MyTableModel model = new MyTableModel();
    model.setData(TheData);
    table = new JTable(model);
    JScrollPane scrollPane = new JScrollPane(table);
    add(scrollPane);
    class MyTableModel extends AbstractTableModel {
    public String[] columnNames = null;
    public Object[][] data = null;
    public final Object[] longValues = null;
    public void setColumnNames(String[] cols) {
    this.columnNames=cols;
    public void setData(Object[][] datas) {
    this.data=datas;
    public int getColumnCount() {
    return columnNames.length;
    public int getRowCount() {
    return data.length;
    public String getColumnName(int col) {
    return columnNames[col];
    public Object getValueAt(int row, int col) {
    return data[row][col];
    public Class getColumnClass(int c) {
    return getValueAt(0, c).getClass();
    public static void createCheckList(JTabbedPane CheckListChildPane) {
    //creates tabs and tables in it
    I want to access the tables (which I created in CheckList java) from my main window. I want to get the cell values of these tables
    thanks

  • How To access MS SQL Server 2000 in Linux

    I have a MS SQL Server 2000 on Windows2000,
    For some speical reasons,I need to write a JAVA
    Program running on Linux which can access datas
    in MS SQL Server....How do I code????

    You should be able to it, but I think you'll need to use a third party JDBC driver.
    I've used a driver from http://www.jturbo.com and another from http://www.inetsoftware.de/ , and if my memory is correct both worked quite well. You can search for other 3rd party drivers here: http://industry.java.sun.com/products/jdbc/drivers
    Good luck.

  • How can I get file from multiple instance using file adapter

    Hi.
    Our system(PI7.1) have three application instances running with each physical servers.
    We use sender file adapter.
    The file data is sent to one of the servers.
    Now, how can I get the file using three file adater?
    Should I put the file "sapmnt(\usr\sap)" .
    Or are there another solution?
    regards,

    Hi Ashutosh
    You will have to use sapcar.zip which contains the utility Sapcar.exe utility for unzipping the files from SAP compressed files. (*.car file)
    Regards
    Gaurav
    PS: Reward points if solved

  • How to access PL/SQL code using JDBC

    Hi,
    We have stored procedures written in PL/SQL. These stored procs take both IN and OUT parameters. The parameter types are both regular datatypes like NUMBER, VARCHAR etc. So far so good. I know how to handle these data types.
    Some of the stored procs also use parameters that are defined as composite data types like %ROWTYPE or %RECORD. How would I set the values of these data types? Can I use the oracle extension - support for Oracle Objects to accomplish this. If so please let me know with an example. If not any other suggestions or help will be greatly appreciated.
    Thanks
    Karthik

    JDBC (and SQLJ) only support SQL types as stored procedure arguments, not PL/SQL types.
    If your stored procedure uses a PL/SQL-only type, such as BOOLEAN, record types, or index-by tables, then you cannot call it from Java (or, for that matter, from other languages as well).
    There is one exception: scalar index-by table arguments have been supported since JDBC 8.1.7 in the JDBC-OCI driver (refer to the JDBC manual for specifics).
    One workaround is to create wrapper PL/SQL stored procedures that take SQL arguments and convert them to PL/SQL -and vice versa- and call the original PL/SQL stored procedures. For example, a record type could be exploded into individual arguments, or it could be converted into a SQL object type, index-by tables could be represented as SQL collection types, etc.
    You can find a small example of this in the back of the JPublisher manual, where an example is given how to call a PL/SQL stored procedure that takes BOOLEAN arguments.

  • How to access PL/SQL data types through JDBC

    Hi,
    We have stored procedures written in PL/SQL. These stored procs take both IN and OUT parameters. The parameter types are both regular datatypes like NUMBER, VARCHAR etc. So far so good. I know how to handle these data types.
    Some of the stored procs also use parameters that are defined as composite data types like %ROWTYPE or %RECORD. How would I set the values of these data types? Can I use the oracle extension - support for Oracle Objects to accomplish this. If so please let me know with an example. If not any other suggestions or help will be greatly appreciated.
    Thanks
    Karthik
    null

    JDBC (and SQLJ) only support SQL types as stored procedure arguments, not PL/SQL types.
    If your stored procedure uses a PL/SQL-only type, such as BOOLEAN, record types, or index-by tables, then you cannot call it from Java (or, for that matter, from other languages as well).
    There is one exception: scalar index-by table arguments have been supported since JDBC 8.1.7 in the JDBC-OCI driver (refer to the JDBC manual for specifics).
    One workaround is to create wrapper PL/SQL stored procedures that take SQL arguments and convert them to PL/SQL -and vice versa- and call the original PL/SQL stored procedures. For example, a record type could be exploded into individual arguments, or it could be converted into a SQL object type, index-by tables could be represented as SQL collection types, etc.
    You can find a small example of this in the back of the JPublisher manual, where an example is given how to call a PL/SQL stored procedure that takes BOOLEAN arguments.

  • How to access biz data of process instances in workspace at any time in 11g

    Hi,
    We are using Oracle BPM Suite 11g.
    Our users want to be able to check and search the business data associated with the process instance at any time (i.e. even after the instance is completed. And the business data should be included in the task list or search result list in the BPM workspace.
    I am new to Oracle BPM 11g. Please help. For the data to be displayed in the workspace, should I define them as “Process Data Objects”?
    Regarding to how to display the data, I find something about Flexfield. But the Oracle document says the Flexfield is for the data that saved in human workflow database schema. When the process instance is completed, will the data in human workflow database for this instance be removed? Can I setup flexfield for the Process Data Objects?

    Hi Ramandeep,
    Apparently I am not getting the required exception.
    I have a TF that outputs an Invalid Region Site when I run it and the when I run it I only got the loading page image of ADF.
    Looking at JDEV logs, I see an Invalid Region Site error
    Here's what I did, I created a TF template with only one view in it like this.
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-template id="TFTemplate">
        <default-activity id="__7">errorPage</default-activity>
        <exception-handler id="__14">errorPage</exception-handler>
        <view id="errorPage">
          <page>/com/test/errorPage.jsff</page>
        </view>
        <use-page-fragments/>
      </task-flow-template>
    </adfc-config>My error page as this:
    <af:panelGroupLayout id="pgl1">
         <af:outputText value="Error has occurred!" id="ot2"/>
         <af:outputText value="#{pageFlowScope.MyErrorHandler.stacktrace}" id="ot1"/>
    </af:panelGroupLayout>...and my bean.
    public class MyErrorHandler
      public String getStacktrace() { 
        ControllerContext context = ControllerContext.getInstance();
        ViewPortContext currentRootViewPort = context.getCurrentRootViewPort();
        Exception exceptionData = currentRootViewPort.getExceptionData();
        if (currentRootViewPort.isExceptionPresent())
          if(exceptionData!=null)
            return exceptionData.getMessage();
        return null;
      }But exception data still returns null.
    I exactly wanted to show this invalid region site but it seems I cannot catch it.
    Any idea why?

  • How to access (call) variables from multiple components

    I have what I think is a basic task, but I cant seem to get it to work.  I have a Flex project with one application.  In addition to the one application, I have many components that are used in the application.  These components vary from simple (a ComboBox) to complex (many sub-components).  What I need to do is define a viable in one component and access it in another component.  I can't seem to do this.  Below is an example of how I think it should be:
    Component1
    <mx:Script>
           <![CDATA[
            [Bindable]
            private var userID:int=0;
           ]]>
    </mx:Script>
    Component2
    <mx:TextInput  text="{Component1.userID}"/>
    Any help you can provide would be beneficial.
    Lee

    Hello,
         You may also want to consider using the mx.core method.
         In your main application script area define all of your public variables and functions. Then from your component, you can reference these absolutely with the following syntax.
    <!-- Main App -->
    [Bindable]
    public var userID:int;
    <!-- Component -->
    private function init():void {
         var com_UserID = mx.core.Application.application.userID;
    Using this method ensures that you will have access to any Function or variable within the scope of the project.
    Kind Regards,
    Dr. Ivan Alexander, Ph.D.
    Sr. Applications Engineer
    FlexAppsStore.com
    Sun Microsystems
    MySQL Enterprise Ready Partner 2009

  • How is the SNMP support for multiple instances

    Hi,
    I have two instances of WebLogic Server 5.1 running on Solaris 5.8 node.
    How can get the details thru SNMP for both instances. I was able to
    start only one instace of SNMP agent at any time. Is there any solution
    Any help is appreciated. Thanks.
    --sreeni.

    You can provide URLs of both servers to one SNMP agent, via the -serverURLs
    option.
    Sreeni Gaddam <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    I have two instances of WebLogic Server 5.1 running on Solaris 5.8 node.
    How can get the details thru SNMP for both instances. I was able to
    start only one instace of SNMP agent at any time. Is there any solution
    Any help is appreciated. Thanks.
    --sreeni.

  • How to access PL/SQL  Records

    hello all I am in a fix
    I need to write a connector which inputs data to an oracle 10g database.
    This has to be done using a pl/sql procedure.
    Actually there is a Stored procedure which takes record type as
    input variable .
    So i need to some how create a recordtype from jave to call the
    stored procedure.
    The procedure looks like
    function ( variable in datatypa) as .......
    where the dataype is
    type datatype is record (...)
    I have to call the function via making JDBC calls. How do i do it.
    I am seriously stuck.

    callable statement is being used to call the stored procedure.
    But the stored procedure has "Record" as input
    how do i create a Record from java side to send it to
    stored procedure.

  • How can I get objects of multiple instances of InDesignServer

    Hello,
    We need to have InDesignServer running in more than one configuration. And we need to script them. So to keep easy let's pretend there are 2 instances of InDesignServer running. One startet with 'indesignserver -configuration conf0' and the other started with 'indesignserver -configuration conf1'.
    So we try (Visual Basic):
    dim myIndApp0 as InDesign.Application
    dim myIndApp1 as InDesign.Application
    myIndApps0 = CreateObject("InDesignServer.Application.CS2")
    myIndApps1 = CreateObject("InDesignServer.Application.CS2")
    But both objects referring to the instance with conf0. How can we get an object of the second instance?
    We tried to solve this using System.Diagnostics.Process.GetProcesses(). So we got both processes. But did not find a way to get an object of class InDesignServer.Application by using an object of System.Diagnostics.Process. Any ideas about that way?

    Hi Ian,
    The problem is not to start different instances. In the Windows Task Manager and the console output of InDesign Server I can see, that both instances are running with different configurations. When I use Systems.Diagnostics.Processes.GetProcess() I get both processes too.
    But I don't know how to get objects of both instances using the Interop Assembly or (as a runaround) how to cast an object of System.Diagnostics.Process into an object of InDesignServer.Application.
    When you talking about SOAP, do you know how to start InDesignServer twice with diffrent ports from inside VB and getting the InDesignServer.Application objects of it?
    This should be solve our problem too.

Maybe you are looking for

  • PDF Wont Print on Safari

    Ive had this problem for years and just started using another browser when I had to print any PDF FIles. While I can open and read them while in Safari, whenever I try to print all I get is a blank page.  Thats all that shows up in the print preview

  • VA02 - maintain settlement rules

    Hi folks, I am trying to maintain a settlement rule within the Sales Order without the user going to the Item Level. I want to inherit the WBS element from the Header VBAK and on the save of the document automatically create the settlement rule. I ha

  • 2008 R2 printer server, cannot connect to printer, access denied, Windows 7 OS only

    Deployed new Windows 2008 R2 domain controller, added print and document controll. Added several network printers on R2 server. We currently have mostly Vista biz clients but half a dozen W7Pro clients also. The Vista clients connect to these new net

  • Scroll motion on image fill resets itself...

    When I set the scroll motion for a rectangle with an image fill, it resets the vertical final motion to 1 after I set it to 0.

  • Can't Open WMV - linked files in Safari

    I have a problem opening wmv content on webpages. I have windows media player installed on my Mac, however, when I go to a page with WMV content, it either a: does not open at all or b: crashes Safari. I haven't installed flip4mac or any other 3rd pa