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.

Similar Messages

  • 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

  • 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 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!

  • 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.

  • Problem when connecting locally to Oracle Database 10g from Java code

    Good afternoon,
    I try to connect to my local Oracle 10g from JAVA code. Could somebody tells me what are the 'values' to enter in place of 'value1, value2, value3' in the following:
    final String connectionURLThin = "jdbc:oracle:thin:@value1:value2:value3";
    I tried to put my 'user' and 'pw' credentials I used when connecting with SQL*PLUS:
    value1=my_user_name
    value2=my_pw
    value3=my_schema
    but it doest work. Besides where could have I to put the 'WORKSPACE" name?
    Thanks for any help.
    Claude
    Details:
    ERR MESSAGE----------------------
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/dms/instrument/ExecutionContextForJDBC
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:365)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:854)
    at java.sql.DriverManager.getConnection(DriverManager.java:620)
    at java.sql.DriverManager.getConnection(DriverManager.java:200)
    at javaapplication6.ConnectionExample.driverManager(ConnectionExample.java:138)
    at javaapplication6.Main.main(Main.java:36)
    Caused by: java.lang.ClassNotFoundException: oracle.dms.instrument.ExecutionContextForJDBC
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
    ... 8 more
    Java Result: 1
    BUILD SUCCESSFUL (total time: 0 seconds)
    ---------------------ERR MESSAGE
    JAVA code------------------it compiles but throw an error when running there -> (*)...
    final String driverClass = "oracle.jdbc.driver.OracleDriver";
    final String connectionURLThin = "jdbc:oracle:thin:@jeffreyh3:1521:CUSTDB";
    final String userID = "scott";
    final String userPassword = "tiger";
    final String queryString = "SELECT" +
    " user " +
    " , TO_CHAR(sysdate, 'DD-MON-YYYY HH24:MI:SS') " +
    "FROM dual";
    public void driverManager() {
    Connection con = null;
    Statement stmt = null;
    ResultSet rset = null;
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con = DriverManager.getConnection(connectionURLThin, userID, userPassword); // (*) prob here
    stmt = con.createStatement ();
    rset = stmt.executeQuery(queryString);
    rset.close();
    stmt.close();
    } catch (SQLException e) {e.printStackTrace();
    --------------------JAVA JDK 1.6
    My system ------------------------
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production

    Yes, the network connection could not be established. Like the error said.
    What you're asking about is the exact reason, but that could be any number of things and not at all related to code. You could have the wrong host, the wrong port. A firewall could be blocking the outgoing connection, a firewall could be blocking the incoming connection. Etc. etc.

  • How do you remove previous Oracle Database installations from your registry

    HI,
    I am trying to reinstall Oracle 9i and Oracle 9i developer on windows XP home and i have used the OUI to uninstall both programs. I tried re-installing the database and Oracle universal Installer gave me a message indicating i have 2 previous databases. Besides taking a different Oracle Home and removing the Oracle folder on the hard disk, how can i remove the Oracle Entries in the registry so that the computer is free of Oracle?
    Thanks

    if u reinstall oracle and before that u have to delete the oracle related previous installation information from your registry.for that go to registry and open
    1)hkey_local_machine-software-in that delete oracle folder
    2)hkey_local_machine-system-controlset001-in that delete the old database service information,listener info._lo
    3)hkey_local_machine-system-controlset002-in that also delete the old database service,listener information.
    bye.

  • 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 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!

  • 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 ;
    }

  • How to connect java with oracle

    can any body show me the code of how to connect java with oracle database.
    thank you

    To configure Oracle JDBC:
    1. Add Oracle JDBC JAR file classes12.zip or ojdbc14.zip to classpath.
    2. Load and register the JDBC driver.
    Class.forName("oracle.jdbc.driver.OracleDriver");
    3. Obtain a connection:
    String url="jdbc:oracle:thin:@<host>:1521:<database>
    Connection con = DriverManager.getConnection(url,
    "myLogin", "myPassword");
    4. Create a SQL statement.
    Statement stmt = con.createStatement();
    5. Obtain a result set.
    ResultSet rs = stmt.executeQuery(
    "SELECT ...");

  • Import Oracle DataBase dump file Into Sql Server With out connection oracle using c# code.

    Hi All,
    I would like to ask how can imports my dump oracle database file data and struct into sql server 2005
    with out make connection oracle.
    best regards.
    Hakim. 

    Hi Hakim.
    Based on your title, what I understood there is a issue regarding transfer oracle db dump to sql database using C# code. Am I right? If so, I am afraid there is no build-in method which meet your requrements in .NET framework. You must provides
    OraDump  Export API to allow developers integrate corresponding capabilities  into their applications. These capabilities are about export data from  Oracle dump files into popular databases like Microsoft SQL server. Every developer
    having OraDump Export API can write just few lines of code on C# or  Visual Basic to implement the appropriate export process.
    I am search a third-party link, but it's a paid service. 
    http://www.convert-in.com/data-migration-service.htm
    If you don't have to with code, Please refer to: Migrating Oracle Databases to SQL Server 2000
    http://technet.microsoft.com/en-us/library/cc966513.aspx
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How sql developer connects to a oracle database

    hi,
    I wonder how sql developer connects to a oracle database. does it use oracle client like Toad?
    How does it make the connection with oracle server?
    Sameera

    924164 wrote:
    hi,
    I wonder how sql developer connects to a oracle database. does it use oracle client like Toad?
    How does it make the connection with oracle server?
    SameeraWelcome to OTN
    From Left side Tab click on (+) New Connection. Then at the window give a connection name,User name,Password.
    Then provide Host Name, Port and SID
    Click on Test button and then save or connect.
    Hope this will help you

  • Software to connect to a Oracle database server.

    Does anyone know of software that enables me to connect to a Oracle database server, and check out the content? Doesn't need to have a gui.
    Orjanp...

    JAVA + JDBC type 4.

Maybe you are looking for