How to create a dsn

hi,
i am on win xp sp2 pro, installed oracle 10g xe, i also have the odbc driver.
i try to create a dsn and i try to test it i just displays a dialog box and just an ok button no messages nothing and then just closes down. and windows asks me to send error report
how do i set up a dsn that works.?
thanks bye
typo error
Message was edited by:
user491518

1) make sure XE database and XE listener are started, and HR user is unlocked.
2) Open Microsoft ODBC manager
Press "Add..." button in the "User DSN" tab
Select "Oracle in XE" driver and press "Finish" button.
In the "Oracle ODBC Driver configuration", enter:
Data Source Name: XE
TNS service name: XE
user id: hr
Press "test connection" button and enter password: hr
You can use any other user as well.
I tested it in Windows 2000 system - it worked.
Edward

Similar Messages

  • How to create user dsn for microsoft access driver(*.mdb,.*accdb) in 64 bit

    hi,
    how to create user dsn for microsodt access driver(*.mdb,*.accdb) using command line in 64 bit.
    i have installed 64 bit drivers and when use following command
    C:\Windows\System32>odbccad.exe CONFIGDSN "Microsoft Access Driver (*.mdb,*.accdb)" "DSN=GLDatabase|Description=GL Data Source|DBQ=C:\DataBase\1.mdb"
    CONFIGDSN:'unable to create a datasource for the "Microsoft Access Driver (*.mdb,*.accdb)" component not found in the registry with the error code -2147467259
    but it works with C:\Windows\SysWow64

    yes i have installed Microsoft Access Database engine 2010 redistributale => AccessDatabaseEngine_x64.exe
    i can able to create user dsn using odbccad32.exe in system32 folder but using command line its not working
    C:\Windows\System32>
    odbccad.exe CONFIGDSN "Microsoft Access Driver (*.mdb,*.accdb)" "DSN=GLDatabase|Description=GL Data Source|DBQ=C:\DataBase\1.mdb"
    CONFIGDSN:'unable to create a datasource for the "Microsoft Access Driver (*.mdb,*.accdb)" component not found in the registry with the error code -2147467259

  • How to create a DSN Less Connection using MySQL

    Hi All
    How to create a DSN Less Connection using MySQL?
    http://www.caucho.com/projects/jdbc-mysql/index.xtp and downloaded Caucho driver and installed the jar ---- caucho-jdbc-mysql-0.2.7.jar in my classpath..
    this is how i embedded the code
    try
    driver = (Driver) Class.forName("com.caucho-jdbc-mysql-0.2.7.Driver").newInstance();
    catch (Exception e)
    lastErr = "Cannot load the driver, reason:"+e.toString();
    nothing seems to work with code..
    Unable to proceed..Any piece of code would be of great help..
    Thanks and regds
    Gautam

    According to the installation instructions for that driver:
    The driver is com.caucho.jdbc.mysql.Driver
    The url is jdbc:mysql-caucho://hostname:port/database
    You used something else for the driver name. So it doesn't work. By the way, I found those instructions here: http://www.caucho.com/projects/jdbc-mysql/

  • How to create a DSN for Oracle Provider for OLE DB in a web server

    Dear Guys,
    I am a Excel VBA developer.
    My requirement is from the Excel I have to call a Stored Procedure with REF CURSOR.
    Normally I am using Microsoft ODBC for Oracle Driver for connecting Oracle DB, which is in the Server .
    We have users using the Excel reports across the globe.
    Sending Excel report is enough, the clients can connect DB from Excel via the DSN created in a web server.
    But, I came to know that we can't access the REF CURSOR using Microsoft ODBC for Oracle Driver and it is possible to access by using ORA OLE DB Provider.
    I have installed Oracle Client in my machine and tried using ORA OLE DB Provider like below
    +con.ConnectionString = "Provider=OraOLEDB.Oracle.1;User ID=user_name;" & _+
    +"Password=pwd;Data Source=Oracle;"+
    The Excel worked fine in my machine but when I run the same Excel in my user machine in a different country I couldn't connect to DB.
    Because the user machine doesn't have Oracle Client installed. We have n number of users across the world and we can't install Oracle client individually.
    So, I have the plan of creating a DSN in a web sever as I used for Microsoft ODBC for Oracle Driver.
    But, my doubt is how can I create a DSN for accessing ORA OLE DB provider? Is there any driver for ORA OLE DB provider? or is there any alternate solution for my issue?
    Can anybody help me on this ASAP?
    Thanks & Regards,
    Satz

    I have created a DSN in a web server (a Public IP machine) that is mapped to a Oracle DB.
    In my Excel using VBA coding, with the help of RDO object I will call the DSN in the Web server using the connection string like "DSN=ORS;UID=SDATA;PWD=SDATA;"
    This is working fine and in this case the client machine doesn't need Oracle client to be installed or any TNS entry.
    The user can run the Excel report by clicking a button and the click event connects the DSN in the web server (through its URL) and routes to the mapped DB and fetches the quried data.
    Please note that the above DSN is created based on Microsoft ODBC for Oracle driver.
    But the issue is using the Microsoft ODBC for Oracle driver I couldnt call the SP with Ref Cursor.
    When I searched in Internet I came to know using the provider oraoledb.oracle we can call SP that uses REF CURSOR.
    Now my question is what is the driver name that I can use to create a DSN to make use of the provider oraoledb.oracle for calling the SP with REF CURSOR from Excel VBA coding ?
    Appreciate your prompt reply.
    Thanks & Regards,
    Sathish

  • How to create a dsn less connection using a jsp

    hi,
    presently i have created a web site using jsp..i used a dsn connection to access the database.i used the basic jdbc:odbc type one driver..the issue is that when i tried to webhost my website they told me that i have to use a dsn less connection ....code anyone refer me the code as to how i could a dsn less connection jsp...i am using a access database..

    Well Friend,
    This is not the right form to post this query i would advice u to post this query in the JDBC thread
    If U are not satisfied with the resolution provided below
    Howevr as per my experience
    If U wanna use DSN less Connection U may go ahead and use TYPE II/III/IV drivers which would be Application(database) specific in general.
    u wud have to include the driver specific .jar files (to load drivers) in your classpath for few specific type of drivers like thin/OCI/.......
    And it wud be different for different Databases U can easily get information and downloadables about those drivers from db vendors web portals.
    Just for U reference check the links below
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm
    http://forums.oracle.com/forums/thread.jspa;jsessionid=8d92200830de37db8191784349ff8c14cef5a6d94e36.e34QbhuKaxmMai0MaNeMb3aTbxz0?messageID=901133��
    http://www.kitebird.com/articles/jdbc.html
    http://www.developer.com/java/data/article.php/3417381
    http://www.akadia.com/services/sqlsrv_jdbc.html
    http://www.thescripts.com/forum/thread182937.html
    Else where U can make use of Hibernate/ EJB/.....
    which would include support for Dbconnection internally.

  • How to create odbc (dsn) connection for OBIEE AND INFOR in unix environment

    Hi,
    we are establishing OBIA in Unix environment we set all the things fine but we are getting problem how to create ODBC connection
    for INFORMATICA AND OBIEE. I searched some blogs thats telling there is a ODBC.INI file we need to configure.
    but i am not getting clear idea to give parameters and it will not showing any TNSNAME ..........etc
    please any body give clear idea about how to create ODBC connection and LOCATION of that file AND parameter which i need to give.
    Thanks,
    charan....

    Hi Dpka,
    yah i already checked that one but i have not find out any parameter for TNS NAME information.
    is OBIEE connected to ORACLE DATA BASE without giving TNS information?............in UNIX OPERATING SYSTEM.
    pls give me the clear idea abt how to connect OBIEE, INFORMATICA to ORACLE DATA BASE IN UNIX ENVRNMENT
    thanks,
    charan.

  • How to create a DSN-less connection to SQL Server for linked tables in Access

    hey
    i cant understand how i use that Function
    if that information what you need
     stLocalTableName: dbo_user_name
    stRemoteTableName: user_name
    stServer :sedo2015.mssql.somee.com
    stDatabase :sedo2015
    stUsername :sedo_menf_SQLLogin_1
    stPassword :123456789
    how will be that Function??
    please write that Function to me
    '//Name : AttachDSNLessTable
    '//Purpose : Create a linked table to SQL Server without using a DSN
    '//Parameters
    '// stLocalTableName: Name of the table that you are creating in the current database
    '// stRemoteTableName: Name of the table that you are linking to on the SQL Server database
    '// stServer: Name of the SQL Server that you are linking to
    '// stDatabase: Name of the SQL Server database that you are linking to
    '// stUsername: Name of the SQL Server user who can connect to SQL Server, leave blank to use a Trusted Connection
    '// stPassword: SQL Server user password
    Function AttachDSNLessTable(stLocalTableName As String, stRemoteTableName As String, stServer As String, stDatabase As String, Optional stUsername As String, Optional stPassword As String)
    On Error GoTo AttachDSNLessTable_Err
    Dim td As TableDef
    Dim stConnect As String
    For Each td In CurrentDb.TableDefs
    If td.Name = stLocalTableName Then
    CurrentDb.TableDefs.Delete stLocalTableName
    End If
    Next
    If Len(stUsername) = 0 Then
    '//Use trusted authentication if stUsername is not supplied.
    stConnect = "ODBC;DRIVER=SQL Server;SERVER=" & stServer & ";DATABASE=" & stDatabase & ";Trusted_Connection=Yes"
    Else
    '//WARNING: This will save the username and the password with the linked table information.
    stConnect = "ODBC;DRIVER=SQL Server;SERVER=" & stServer & ";DATABASE=" & stDatabase & ";UID=" & stUsername & ";PWD=" & stPassword
    End If
    Set td = CurrentDb.CreateTableDef(stLocalTableName, dbAttachSavePWD, stRemoteTableName, stConnect)
    CurrentDb.TableDefs.Append td
    AttachDSNLessTable = True
    Exit Function
    AttachDSNLessTable_Err:
    AttachDSNLessTable = False
    MsgBox "AttachDSNLessTable encountered an unexpected error: " & Err.Description
    End Function

    thanks more thanks for you
    look i add that code in form
    it worked but i cant add recored  why ??
    Private Sub Form_Open(Cancel As Integer)
    Call AttachDSNLessTable("dbo_user_name", "user_name", "sedo2015.mssql.somee.com", "sedo2015", "sedo_menf_SQLLogin_1", "123456789")
    End Sub

  • How to create a DSN (Data Source Name) for "Oracle 10g XE" on SUSE 10??

    Hii Friends,
    I am new Linux user.I installed SUSE Linux 10.2. I am planning to do my project on Linux with J2EE,Oracle technologies. I installed Oracle 10g Express Edition. But unfortunately i have no provider name for oracle in the Providers List in SUSE/Gnome Desktop/System/Data Access points/ dsn list. I am unable to understand what actually happened. Should i install any other libraries, or Odbc drivers (I mean aren't they not given by Oracle XE Setup, as in MS Windows XP) ? Any one please help me. I need this immediately.
    Waiting for a reply,
    Mahidhar Chaluvadi
    CS Engg. Student
    Vizag.

    I am planning to do my project on Linux with J2EE,Oracle technologies.You don't need to set up a DSN. Just use a JDBC connect string such as jdbc:oracle:thin:@localhost:1521:xe
    ~Jer

  • How to create db conn for JDBC-ODBC Bridge for MS Access in ADF APP?

    Sir,
    How to create db conn for JDBC-ODBC Bridge for MS Access in ADF APP?
    Regards

    Hello Every Body!
    I succeeded in getting connect to the ms access database in adf application in jdeveloper as below:
    First in control panel to to admin tools and  go to data source(odbc) and create system dsn as bellow pic
    Then go to jdeveloper resources ide conn and then database and new database conn and then select jdbc-odbc briddge and then give custom jdbc url as bellow pic
    Cheers
    tanvir

  • How to create an excel spreadsheet?

    Hello,
    Im interested how to create the *.xls file with NI Library. I cant find the right function. Usually, Im using following code (ODBC):
    CDatabase database;
      CString sDriver = "MICROSOFT EXCEL DRIVER (*.XLS)"; // exactly the same name as in the ODBC-Manager
      CString sExcelFile = "c:\\demo.xls";                // Filename and path for the file to be created
      CString sSql;
      TRY
        // Build the creation string for access without DSN
        sSql.Format("DRIVER={%s};DSN='';FIRSTROWHASNAMES=1;READONLY=FALSE;CREATE_DB=\"%s\";DBQ=%s", sDriver,sExcelFile,sExcelFile);
        // Create the database (i.e. Excel sheet)
        if( database.OpenEx(sSql,CDatabase::noOdbcDialog) )
          // Create table structure
          sSql = "CREATE TABLE demo (Name TEXT,Age NUMBER)";
          database.ExecuteSQL(sSql);
          // Insert data
          sSql = "INSERT INTO demo (Name,Age) VALUES ('Bruno Brutalinsky',45)";
          database.ExecuteSQL(sSql);
          sSql = "INSERT INTO demo (Name,Age) VALUES ('Fritz Pappenheimer',30)";
          database.ExecuteSQL(sSql);
          sSql = "INSERT INTO demo (Name,Age) VALUES ('Hella Wahnsinn',28)";
          database.ExecuteSQL(sSql);
        // Close database
        database.Close();
      CATCH_ALL(e)
        TRACE1("Driver not installed: %s",sDriver);
      END_CATCH_ALL;
    I looked for the function with parameters like sExcelFile but i cant find the right. Do You have any idea How to work with NI Library and Excel files. If it will be possible, send me a procedure or example.... Thank you very much for help and advice.
    emta

    There are two examples that ship with Measurement Studio that demonstrate how to use the Measurement Studio C++ classes to interface to Excel. The examples are installed to the following locations by default:
    C:\Program Files\National Instruments\MeasurementStudioVS2003\VCNET\Examples\Office\ExcelAdvanced
    C:\Program Files\National Instruments\MeasurementStudioVS2003\VCNET\Examples\Office\ExcelReport
    The top level class that you use in this API is CNiExcelApplication. You should be able to find this through the Index in the Measurement Studio help.
    One point to note that this API controls the Excel application through its ActiveX automation interface. This is different than the approach you are using above and so will require that you write different code to accomplish your task.

  • How to create Mobile User Account

    Hi all,
    I have a dumb question but it makes me crazy !!!
    I'm new in CRM 5.2 and in mobile as weel.
    My question is : How to create a user acount into my mobile infrastructure ?
    I've followed the following explanation but I don't find the solution :
    [help|http://help.sap.com/saphelp_crm60/helpdata/de/c8/2ae1a3c73245c8aef8c4b69c2ff072/content.htm]
    In there, it tells me to go thought User Management tool of Mobile Application Studio ( is it Microsoft Visual Studio ?) but in there i do not find any tools.
    Thanks for your future help
    Regards

    hi,
    Creation of User Accounts
    Purpose
    This process describes the steps required to create user accounts for secured and controlled access to the Mobile Application Repository (MAR). User accounts are created for consultants, who intend to customize mobile client applications using Mobile Application Studio (MAS). User account allows a consultant to log on to MAS.
    Process Flow
           1.      During the installation of MAR, the system enables the User Management feature.
    If MAR is upgraded from a release prior to 3.0 to the current release, the User Management feature must be enabled manually by system administrator. This is done by changing the umfrc parameter value to “YES” in the ARS_SYSTABLE.
           2.      The CRM technical administrator creates a DSN to access MAR by using the default internal login arsdb with password arsdb.
           3.      The CRM technical administrator carries out the following tasks using the User Manager tool of MAS:
                                a.      Creates user accounts.
                                b.      Associates each user account with a standard MAR profile. For more information, see Profiles of the Mobile Application Repository.
                                c.      Specifies a password for each user account.
    Login IDs of the Mobile Application Repository
    Definition
    A login ID is a source through which users log on to Mobile Application Studio, and connect to the Mobile Application Repository (MAR). When MAR is installed, standard login IDs are available by default. While creating user accounts, the system administrator associates a standard login ID with the profile of each user account.
    Structure
    Login ID
    Allows you to:
    ARSAdmin
    ·        Perform administrative activities in MAR.
    ·        Create and modify development objects in MAR.
    ·        Modify the password of a user account.
    ARSDeveloper
    ·        Create and modify development objects in MAR.
    ·        Modify your own password.
    ARSUser
    ·        View development objects in MAR.
    ·        Modify your own password.
    ARSSys
    ·        Get information about the MAR.
    ·        Validate MAR users.
    ARSdb
    Create a DSN for MAR. The default password for this login is arsdb.
    Profiles of the Mobile Application Repository
    Definition
    A profile of the Mobile Application Repository (MAR) is a collection of access rights defined for:
    ·        Development objects, like tiles, tile sets and business objects of mobile client applications
    ·        Services of MAR like change lists and namespaces
    Structure
    The standard profiles that are available are listed below.
    Profile name
    Associated login ID
    Allows you to:
    Administrator
    ARSAdmin
    ·        Perform administrative activities like creating and maintaining users.
    ·        Read and write repository specific information (ARS_SYSTABLE).
    ·        Create and modify development objects in MAR.
    ·        Release and revert a change list.
    ·        Transfer the ownership of objects to another MAR.
    ·        Create link objects to integrate tile set help.
    ·        Create and modify framework objects in MAR.
    ROGuest
    ARSUser
    ·        View development objects in MAR.
    ·        Modify your own password.
    Developer
    ARSDeveloper
    ·        Read repository specific information (ARS_SYSTABLE).
    ·        Create and modify development objects in MAR.
    ·        Release change lists that have been created only by you.
    ·        Modify your own password.
    ·        Transfer the ownership of objects to another MAR.
    SPDeveloper
    ARSDeveloper
    ·        Read repository specific information (ARS_SYSTABLE).
    ·        Modify your own password.
    ·        Create and modify development objects in MAR.
    This profile does not allow you to release change lists.
    QMResponsible
    ARSDeveloper
    ·        Read repository specific information (ARS_SYSTABLE).
    ·        Create and modify development objects in MAR.
    ·        Modify your own password.
    ·        Transfer the ownership of objects to another MAR.
    ·        Release and revert change lists.
    This profile does not allow you to create a change list.
    Coordinator
    ARSDeveloper
    ·        Read repository specific information (ARS_SYSTABLE).
    ·        Create and modify development objects in MAR.
    ·        Release and revert change lists.
    ·        Modify your own password.
    ·        Transfer the ownership of objects to another MAR.
    Frwkuser
    ARSDeveloper
    ·        Read repository specific information (ARS_SYSTABLE).
    ·        Create and modify development objects in MAR.
    ·        Release the change list you have created.
    ·        Transfer the ownership of objects to another MAR.
    ·        Create and modify framework objects in MAR.
    Infodeveloper
    ARSDeveloper
    ·        Read repository specific information (ARS_SYSTABLE).
    ·        Create and modify development objects in MAR.
    ·        Release the change list you have created.
    ·        Create link objects to integrate tile set help.
    thanks
    karthik
    ifhelpfull reward me some points

  • How to create a DNS? How access to Micr. Acces DB?

    This is because i wish to conect to a DB of Microsoft Access....
    I have found that i need to create a System DNS...but i dont how to create it....Could somebody help me please?
    I have found that with the following servlet i can access to the db.....but.... what is TEST?....i think that it is "@IP_address:1521:name_db"
    am i rigth?
    Thanks by your help....
    Mary
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.io.*;
    public class serv1 extends HttpServlet
    Connection con;
    ResultSet rs;
    Statement st;
    public void init(ServletConfig sc) throws ServletException
    try
    //creating the connection
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con=DriverManager.getConnection("jdbc:odbc:TEST");
    System.out.println("connection established");
    st=con.createStatement();
    catch(Exception er)
    System.out.println(er);
    public void doGet(HttpServletRequest req,HttpServletResponse
    res) throws ServletException,IOException
    try
    //retrieving the values from the table
    rs=st.executeQuery("select * from sree");
    PrintWriter pw=res.getWriter();
    while (rs.next())
    for(int i=1;i<4;i++)
    pw.println(rs.getString(i));
    catch(Exception e)
    System.out.println(e);
    }

    I already could reach it.....
    A friend help me.....
    To create a DSN:
    Control panel
    Admin. Tools
    Source data
    DSN System
    New....
    And fill the data
    Thanks any way,
    Good day!!!
    Mary

  • How to create server named sets in Essbase 9.3.1

    Hi there,
    I'm writing software against Essbase 9.3.1 Analytic Services right now and am trying to find out whether or not Essbase supports server named sets (not the session/query-scoped named sets that are created from CREATE SET or WITH respectively). I am able to execute the MDSCHEMA_SETS request against my Essbase server with the following response:
    <?xml version="1.0"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><m:DiscoverResponse xmlns:m="urn:schemas-microsoft-com:xml-analysis"><m:return xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><root xmlns="urn:schemas-microsoft-com:xml-analysis:rowset" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:schema xmlns="urn:schemas-microsoft-com:xml-analysis:rowset" targetNamespace="urn:schemas-microsoft-com:xml-analysis:rowset" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sql="urn:schemas-microsoft-com:xml-sql" elementFormDefault="qualified"><xsd:element name="root"><xsd:complexType><xsd:sequence minOccurs="0" maxOccurs="unbounded"><xsd:element name="row" type="row"/></xsd:sequence></xsd:complexType></xsd:element><xsd:complexType name="row"><xsd:sequence maxOccurs="unbounded" minOccurs="0"><xsd:element name="CATALOG_NAME" type="xsd:string" sql:field="CATALOG_NAME"/>
    <xsd:element name="CUBE_NAME" type="xsd:string" sql:field="CUBE_NAME"/>
    <xsd:element name="SET_NAME" type="xsd:string" sql:field="SET_NAME"/>
    <xsd:element name="SCOPE" type="xsd:int" sql:field="SCOPE"/>
    <xsd:element name="DESCRIPTION" type="xsd:string" sql:field="DESCRIPTION" minOccurs="0"/>
    <xsd:element name="EXPRESSION" type="xsd:string" sql:field="EXPRESSION" minOccurs="0"/>
    <xsd:element name="DIMENSIONS" type="xsd:string" sql:field="DIMENSIONS" minOccurs="0"/>
    <xsd:element name="SET_CAPTION" type="xsd:string" sql:field="SET_CAPTION" minOccurs="0"/>
    <xsd:element name="SET_DISPLAY_FOLDER" type="xsd:string" sql:field="SET_DISPLAY_FOLDER" minOccurs="0"/>
    </xsd:sequence></xsd:complexType></xsd:schema>
    </root></m:return></m:DiscoverResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
    Anyone know how to create/access this? If so, what tool (essmsh.exe, Administration Services?) is needed to do this?
    Thanks,
    J

    Yes you need to create one DSN connection and you have to use DSN name and login details at the time of building/loading of the outline.
    Create DSN
    Goto Administrative tools -> DataSources (ODBC) and add the DSN name and specify the Server name of SQL and login details and database.
    goto data prep editor and click on File Menu and Click on Open SQL option Next window opens.
    There you have to enter the details of the DSN connection and SQL query to build/load.
    Thanks,
    Prathap

  • How to create database link between oracle and SQL Server

    Hello Everyone,
    Here i have Oracle Database 9i and SQL Server 2005 databases.
    I have some tables in sql server db and i want to access from Oracle.
    How to create a database link between these two servers
    Thanks,

    Thanks for Everyone,
    I was struggle with this almost 10 days....
    I created Database link from Oracle to SQL Server
    Now it is fine.........
    Here i am giving my servers configuration and proceedure how i created the db link...@
    Using Generic Connectivity (HSODBC) we can create db link between Oracle and SQL server.
    Machine (1)
    DB Version : Oracle 9.2.0.7.0
    Operating System : HP-UX Itanuim 64 11.23
    IP : 192.168.0.31
    Host : abcdbt
    Machine (2)
    Version : SQL Server 2005
    Operating System : Windows server 2003 x86
    IP : 192.168.0.175
    Host : SQLDEV1
    User/PW : sa/abc@123! (Connect to database)
    Database : SQLTEST (exsisting)
    Table : T (“ T “ is the table existing in SQLTEST database with 10 rows)
    Prerequisites in Machine (2):
    a)     Oracle 10g software
    b)     User account to access SQL Server database (sa/abc@123!)
    c)     Existing SQL Server Database (SQLTEST)
    d) Tables (testing purpose) (T)
    Steps:
    1)     Install Oracle 10.2.0.1 (Only SW,No need of database) *(Machine 2)*
    2)     Create a DSN where your windows Oracle 10g SW resides *(Machine 2)*
    Control panel >> Administrative Tools >> Data Source (ODBC) >> System DSN ADD
    You can follow this link also.....
    http://www.databasejournal.com/features/oracle/article.php/3442661/Making-a-Connection-from-Oracle-to-SQL-Server.htm
    I created DSN as
    DSN name : SQLTEST
    User : SA/abc@123! (Existing user account)
    Host : 192.168.0.175 (machine 2)
    Already I have 1 database in SQL Server with the name SQLTEST
    You can create DSN with different name also (not same as db name also)
    3)     Create a hsodbc init file in $ORACLE_HOME\hs\admin *(Machine 2)*
    Create init<DSN NAME> file
    Ex: initSQLTEST
    Copy inithsodbc to initSQLTEST
    And edit
    initSQLTEST file
    HS_FDS_CONNECT_INFO = SQLTEST    <DSN NAME>*
    HS_FDS_TRACE_LEVEL = OFF*
    save the file....@
    4)     Configure Listener.ora *(Machine 2)*
    LISTENER_NEW =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.175)(PORT = 1525))
    SID_LIST_LISTENER_NEW =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = SQLTEST) *+< Here SQLTEST is DSN NAME >+*
    (ORACLE_HOME = G:\oracle 10g\oracle\product\10.2.0\db_1)
    (PROGRAM = hsodbc))
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = G:\oracle 10g\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc) )
    :> lsnrctl start LISTENER_NEW
    5)     Configure tnsname.ora *(Machine 2)*
    SQLTEST11 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.175)(PORT = 1525))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = SQLTEST))
    (HS=OK)
    :> tnsping SQLTEST11
    If No errors then conti….
    6)     Configure a file *(Machine 1)*
    Cd $TNS_ADMIN ($ORACLE_HOME/network/admin)
    Create a file
    $ vi TEST_abcdbt_ifile.ora
    something=
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST =192.168.0.175) (PORT=1525))
    (CONNECT_DATA=
    (SID=SQLTEST))
    (HS=OK)
    $ tnsping something
    $ sqlplus system/manager
    Your connected to Oracle database *(machine 1)*
    create database link xyz connect to “sa” identified by “abc@123!” using ‘SOMETHING’;
    select * from t@xyz;10 rows selected.
    Thanks,
    Edited by: ram5424 on Feb 10, 2010 7:24 PM

  • How to create database in timesten?

    Please let me know how to create database in timesten as we create in Oracle 10g named orcl
    Please guide in detail
    Thanks.

    Hi!
    You can use TimesTen in standalone mode instead of Cache connect to Oracle.
    If you have deployed TimesTen on Linux then you should make DSN in sys.odbc.ini which is located in info folder of TimesTen. If you are using Windows then you can use ODBC utility in control panel.
    You can see the documentation of TimesTen for more detailed information.
    /Ahmad

Maybe you are looking for

  • Manual Bank Statement ERROR

    Hi, I am running the FF67, but after saving the message is coming like this "Statement/list posted" and in the next window is showing                 No Posting    Error       Total Bank                               1          5000 Subledger       

  • TDMS open problem

    I have a TMDS file but every time I try to open it it gives me the error 2500. I tried to solve it with TDMS Defragment.vi, but I don't know if I'm using it correctly or if it doesn't work.

  • Express card adapter for NI Express Card 8360

    Hi All, I am trying to find a USB or Firewire or eSATA or PCMICIA to express card adapter for my laptop (DELL Latitude E6400) to connect an NI Express card 8360. I have searched for adapters but they are all based on USB2.0 technology but the link be

  • Generate an array of an object

    Hi There, I want to make an array of JRadioButton, so I do: JRadioButton [] jR; JRadioButton jR[] = new JRadioButton("yes"); Doing this, I get the following error: Found JRadioButton Expecting JRadioButton [] What is wrong ?? Thanks

  • Import apple mails to outlook 2011

    Having trouble in moving my mails to outlook 2011 for mac. Gone through a lot of forums and forum sites but none provided the right solution. Tried the the IMAP procedure but it takes long time. Don't have that much time to waste. Have got around 100