How to connect to remote Oracle database

hi everybody!  
 i am using LabVIEW with LabSQL locally and Oracle 10.2 database remotely.The remote computer's name is zkz,IP is 192.168.1.2,database name is 'test',TNS listener name is 'listener'.On local computer i have a instantclient.The problem is i can not connect to the database from local computer.What should be the connection string?
thanks      

help me please!

Similar Messages

  • How to connect to remote Oracle Database 10g Express Edition

    Hi,
    I am very new to Oracle. I have created a successful application using OCCI call (createConnection()) to connect to local (resided on the same PC) Oracle Database. Now I would like to move the application to resided on a different PC and try to connect to Oracle Database. Can anyone points me to the right direction in doing this?
    Thanks in advance.

    Can anyone points me to the right direction in doing this? Well at least for me, self study on OCCI documentation is pointing to the right direction ;-)
    OCCI requires only four shared libraries (or dynamic link libraries, as they are called on some operating systems) to be loaded by the dynamic loader of the operating system.
    Installing Instant Client resolve this.
    Cheers!

  • Connect to Remote Oracle Database

    I am unsuccessfully trying to connect to remote Oracle database using OleDB/ODBC/Oracle Client.
    Do I have to install Oracle Client in order to use those drivers and which version?
    I would really appreciate any help. THANK YOU!

    Marina,
    Please refer this question to the general Installation forum. Thanks!
    The short answer is yes, you need to have the Oracle client software installed.

  • How to connect Java to oracle Database Express Edition?

    Anyone can help me?
    How to connect JAVA TO ORACLE DATABASE EXPRESS EDITION?

    I suggest you to read this article:
    http://wiki.oracle.com/page/JDBC
    Regards,
    Ricky

  • Trouble connecting to remote oracle database

    Hi,
    i'm having trouble connecting to an oracle database (Release 9.2.0.6.0) using the ojdbc14.jar from the oracle website. Can anybody spot the problems that i need to sort out to get it working? Code and error stack below.
    Thanks,
    Pat
    Code:
    import java.sql.*;
    public class Query1 {
    public static void main (String[] args) {
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    String url = "jdbc:oracle:thin:@175.3.41.248/KNWAPROD";
    String user = "username";
    String password = "password";
    Connection conn = DriverManager.getConnection(url,user,password);
    Statement stmt = conn.createStatement();
    ResultSet rs;
    rs = stmt.executeQuery("select count(*) from FACT_FAULT;");
    while ( rs.next() ) {
    // String lastName = rs.getString("Lname");
    System.out.println("In while loop!");
    conn.close();
    } catch (Exception e) {
    e.printStackTrace();
    System.err.println("Got an exception! ");
    System.err.println(e.getMessage());
    Error stack:
    java.sql.SQLException: Io exception: SO Exception was generated
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:274)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:319)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:344)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:148)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:545)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at Query1.main(Query1.java:13)
    Got an exception!
    Io exception: SO Exception was generated

    You have:
    String url = "jdbc:oracle:thin:@175.3.41.248/KNWAPROD";Example URLs I've seen/used are:
    String url = "jdbc:oracle:thin:@//myhost:1521/orcl";
    String URL = "jdbc:oracle:thin:scott/tiger@//myhost:1521/orcl"In other words, I think you've munged your URL; you need some slashes and a port number (1521 is the default).

  • Sqlplus to connect to remote oracle database server

    Hi,
    I have oracle 10g database server on solaris 10 and I usually connect using my solaris account and run sqlplus on the server itself. this works !
    I have downloaded and installed oracle instant client for solaris 64 and I can run sqlplus command but I am confused on what should be the syntax on the command to connect to remote solaris 10 databse server where I have both system and oracle account.
    I have tried sqlplus help but still I could not get correct sysntax which could be used to authenticate myself to oracle server.
    I tried
    sqlplus user@hostname:1512/SID
    then it asked for password but when I typed password and pressed enter, it gave some error
    but it again asked for username so I type user@SID and then password prompt - typed password and this works!
    so I don't understand what should be the correct syntax so that in the first attempt only I am able to connect.
    if possible please give the exact command with realworld examples,(I have tried with sqlplus -help already)
    Thanks in advance.

    wonder what if I did not have tnsnames.ora on the client machine, how will be the syntax?You generally need (or at least strongly want) a tnsnames.ora file on the client machine.
    - You could configure Oracle Internet Directory and let that product provide TNS alias resolution for the organization (similar to setting up DNS for a local network).
    - Many tools (I haven't personally tried SQL*Plus and it may be version dependent) allow you to specify the entire TNS alias from the tnsnames.ora file (i.e. everything after the abcd.domain.com = entry) but that is hugely cumbersome to type
    - Depending on the Oracle client version, the sqlnet.ora file, the complexity of your configuration (i.e. if you are trying to use more sophisticated features like failover), you may be able to use the EZConnect syntax
    sqlplus username/password@host:port:SID/service_nameWhere host is the server that the database is running on, port is the port the listener is listening on (i.e. 1521 by default) and SID/service_name is the SID or service name you're trying to connect to.
    Justin

  • Error while making connection with remote oracle database

    Dear,
    I am trying to make connection with oracle database but when i run java file it's raise an error "classnotfoundexception oracle.jdbc.driver.oracledriver"
    DriverManager.getConnection(
      "jdbc:oracle:thin:@erp:1521:ORCL", "apps",
      "apps");
    Pls any body have idea.
    Thanks.

    Thanks for support.
    Below is error which i am getting while making connection with remote database.
    C:\Program Files\Java\jdk1.7.0_05\bin>java OracleJDBC
    -------- Oracle JDBC Connection Testing ------
    Where is your Oracle JDBC Driver?
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
            at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:186)
            at OracleJDBC.main(OracleJDBC.java:13)
    Advice.

  • How to connect to an oracle database server from a linux server?

    Hi,
    I am a total newbie to oracle. At my work, I only know that there is a server with an oracle 10g database set up.
    I was provided with the hostname, oracle sid, port, username and password but i don't know how to connect to it, log on to it and do things on the database.
    Can anyone give me a pointer on how to get started (like how to log on to the server and start doing some simple things. )
    Any help is appreciated :)
    Thank you

    Goto your local Oracle install directory and then goto folder NETWORK/ADMIN
    cd ${ORACLE_HOME}/network/admin
    do you see a tnsnames.ora file there? If you edit that file in your favorite editor, you would hopefully see some entries there already setup. See if one of those entries contain the hostname, sid, port that was given to you. if it does, that name is what you will use:
    $ sqlplus username/password@name_of_tns_entry_you_found_aboveif not, then just duplicate an existing entry and change the relevant settings for your database, give it a new name and use it to connect.
    alternatively you can also use the "Net Configuration Assistant" application.

  • How to connect to remote oracle system from webDynpro

    HI Experts,
       i am trying to call some remote oracle stored procedures in webdynpro using jdbc.
    i am using "jdbc:oracle:thin" driver for connecting to
    oracle database.when i am running this one as java standalone application it is working fine.but when i am
    using this in webdynpro server is getting restarted.
    what might be the problem
    or is there is another way for this.
    thanks in advance
    With Regds
    Naidu

    Hi,
    It seems the flwg thread has the solution for you:
    Oracle as Back-end with Web Dynpro
    Regards
    Srinivasan T

  • How to connect to an Oracle database on one machine from another client machine?

    I installed oracle database 11g (server and client) on one machine. It works perfectly. Then I installed oracle client (ODTwithODAC1120320) in another machine. Now I want to connect to the database of the previous machine. I tried to connect but It failed. I think .ORA files should be configured. What should I do to fulfill this.
    thanks...

    thank you for the quick response..
    this link Installing Oracle Database Client for oracle client installation. But the content refers all oracle database installation. could you please get know me that oracle client means only the OdtWithODAC or some thing else? This link Installing Oracle Database Client explain but not the OdtWithODAC. Please let me know clearly.
    Please let me know the exact name of the software that I should download from the oracle website that refers the oracle database client.
    thanks
    Priyashantha hp

  • How to connect two different oracle databases

    Hi All,
    I have a special scenario like the following:
    I have an oracle Database 10g, it has to get some data from the Oracle Apps Database (the API is defined in the Views and Packages of the 10g database)
    Is it possible for me to make a connection with the 10g database to the Apps database.
    Do I have to use any engines like JDBC for the connection between the two databases
    The issue here is because of security Issue, I cant create a database schema in the Apps database
    What can be the solution for this issue..
    Many thanks in advance
    and best regards.......

    You might be able to use a database link to connect from one db to another.

  • Please explain how to connect to an Oracle database with CF9 standard

    Can someone walk me through this process?  I am trying to help a group that upgraded frmo cf8 enterprise to cf9 standard.

    1. You'll need to download the Oracle JDBC Drivers (http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html)
    2. Put the appropriate .jar files in your <coldfusion>/lib folder
    3. Restart CF
    4. Create a Datasource using the "Other" option
    5. Create an appropriate connection string
    Examples:
    jdbc:oracle:thin:[USER/PASSWORD]@[HOST][:PORT]:SID
    jdbc:oracle:thin:[USER/PASSWORD]@//[HOST][:PORT]/SERVICE
    It has been a long time since I have done this, but I have done it and know it works. I remember the issue with SID vs SERVICE being a huge PITA.
    Good luck,
    Jason

  • Anyone have useful information how to connect to an oracle database?

    I first tried "Instant Client", following all the instructions, and had the problems described here I don't get it :(
    And then I tried the 10g installation CD to install the client and all it did was install the exact same "instant client" files which I had already installed.
    I'm just looking for a quick and easy way to get sqlplus and other clients like Tora connecting. After that, I will worry about how to get JDBC and PHP connecting. I don't mind reading documentation but not hundreds of pages of highly complex material with a raft of assumed knowledge (ie. I have no wish to become a DBA).
    Any links to articles/tutorials etc would be appreciated - ie. connecting to ORACLE in 10 easy steps... not
    "Installation Steps:
    1. Download the appropriate Instant Client packages for your platform. All installations REQUIRE the Basic package.
    2. Unzip the packages into a single directory such as "instantclient".
    3. Set the library loading path in your environment to the directory in Step 2 ("instantclient"). On many UNIX platforms, LD_LIBRARY_PATH is the appropriate environment variable. On Windows, PATH should be used.
    4. Start your application and enjoy."
    from http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html
    which has turned out to be utterly useless and unhelpful :(

    I guess I was asking a broader question in general which related to the more specific question in the "instant client" forum for which I provided a link.
    I don't get it :(
    This has more detail about the client environement and my initial attempts at connecting (as per instructions on the Instant Client page).

  • How to connect a remote Oracle Server with its IP

    is it possible to connect Oracle SerVer in VC
    I have used Microsoft ODBC driver for oracle and Oracle odbc driver to test in VC++6.0,
    but SQLDriverConnect, OCI methods failed.

    with VC++ an odbc driver for oracle is also installed with which u can connect to oracle db all u need to know is the database SID or oracle server name
    try doing this it will work hopefully
    regards

  • Connecting to an Oracle database after clicking on a foi

    Does anyone know how or have any examples on how to connect to an oracle database after clicking on a 'feature of interest' in MapViewer? I want to be able to click on a 'feature of interest' on the map, and have a list of records from an oracle table displayed using the identified key of the foi. I am able to create the feature of interest, and add the event listener for 'mouse click', but am unsure how to connect to the database at this point. I have been able to connect to the database in a different jsp, but not from here. Thank you.

    1. Create a JSP page that does the database query. It should take the foi id as an input parameter.
    2. In the foi mouse click listener, display the JSP page in iframe. The iframe can be placed outside the map or inside the info window. The function should do something like this.
    function myClickListener(point, foi)
    mapview.displayInfoWindow(point, "<iframe id='my_iframe_id' frameborder=0 width=300px height=400px />", 300, 400) ;
    var myIframe = document.getElementById("my_iframe_id") ;
    myIframe.src = "http://myhost/myjsp?key=" + foi.id ;
    }

Maybe you are looking for

  • How to activate the standard workflow :ws10000051

    hello,experts     here is my problem:     I want to activate the standard workflow for document parking :ws10000051 .      I have already activate the event type linkage in SWE2.     And then ,  i maintian  obwa , obwj , obwb, obwc, obwd.obwe,obwf.  

  • More than one shuttle in the same page

    Is it possible to have more than one shuttle in the same page. I've tried to create to regions with one shuttle in each. I have choosen the shuttle item from Apex Is it a way to unique reference/rename the shuttles. Now it seems like both the shuttle

  • Firefox going to gophoto.it after update

    After the latest update, when I access some image sites by clicking on a link to the image, Firefox will go to a gophoto.it page that is blank. Here is an example: http://www.gophoto.it/view.php?i=http://i.imgur.com/XG68F.png If I get rid of everythi

  • How to identify the batch job

    Hi guys, we have a batch job for 1. creating invoice 2. and printing invoices. How do i identify the background job being used for the above two. REgards, Anand

  • How to use the servlets and javabeans in the JavaServer Pages?

    I have some trouble on the usage of JavaBeans and Servlets. Who can tell me the resource about those? Thank you!