How do I connect to a database...

Hi, my coworker setup a server for me at my work, and he gave me the following listener....
PRNSCXDB_PRIMARY =
(DESCRIPTION = (SDU=32768)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = dm2c0h-d00.on.vcol.ca)(PORT = 1545))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PRNSCXDB)
SD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = mtrlpq02923.lleb.corp.vcol.ca)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SD.llep.corp.vcol.ca)
You seen, i dealt with database only on how to retrieve data and delate/adding tables. I am stuck here, because I don't know where to input this in SQL developer. Can you guys please help me, i really want to learn how to connect to this server in SQL developer.

This has to be pasted to your tnsnames.ora file, If you are using oracle 10 g client version then tnsnames.ora file reside in the following path
Your Drive\oracle\product\10.2.0\client\NETWORK\ADMIN
If you are using Oracle 9i the tnsnames.ora file is in the following path
Your Drive\oracle9i\network\admin
- Open the tnsnames.ora file and paste the entry
PRNSCXDB_PRIMARY =
(DESCRIPTION = (SDU=32768)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = dm2c0h-d00.on.vcol.ca)(PORT = 1545))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PRNSCXDB)
SD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = mtrlpq02923.lleb.corp.vcol.ca)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SD.llep.corp.vcol.ca)
and try to log in to the database
Edited by: user7950134 on Aug 13, 2009 9:56 PM

Similar Messages

  • How can I connect to the database using ODBC within excel.

    Hi,
    How can I connect to the database using ODBC within excel and just refresh the data when needed.
    Thanks,
    Priyanka
    Edited by: user554934 on Jun 9, 2009 2:53 AM

    This is NOT an APEX relevant question, try posting it in the SQL/PL/SQL Forum..
    Thank you,
    Tony Miller
    Webster, TX

  • How can I connect to a database from ipaq with cldc??

    how can I connect to a database from ipaq with cldc??

    Hi Again
    There is a library by Mimer which allows you do connect to a Mimer SQL Server, don't know must about it, but here is a link.
    http://developer.mimer.com/
    If that doesn't suit you, I suspect that you will have to use some sort of proxy solution. Either by creating a servlet to accept the sql string you want to send, or by creating your own custom proxy server running J2EE. The servlet or the proxy server must be able to receive an SQL String, do the query to the actual database and return the results in some sort of format to the mobile device. Maybe just a space delimited string.
    Hope this helps
    -Daur

  • How do i connect ms access database in Eclipse ?

    Help me to solve the problem
    how do i connect ms access database in Eclipse ?
    Its urgent please
    give any link that gives the procedure to connect ...........

    The Eclipse WTP by default has a database explorer: Window - Show View - Data. Finally rightclicking at the new "DB Servers" console gives straightforward menu options.

  • How do with connect  to informix database?

    how do with connect to informix database?I think use own sminformix.jar with java studio creator

    Two steps:
    1. Tell Creator about the Informix drivers:
    Data Sources -> Edit Database Server Types -> New
    Navigate to the appropriate jar files; besides sminformix.jar, you will need smbase.jar and smutil.jar. They can be found in the Java Studio Creator release, for use within the IDE.
    Fill in the other parts of the dialog. I don't know what form Informix URL's take; you may need to look on the Informix site for that.
    2. Create an Informix Data Source, using the newly defined Server Type.

  • How can I connect to my database ORACLE from JavafX?

    Hi! ¿Anybody have a example to learn how could connect my ORACLE database from my javafx application?

    Just use JDBC like you do in a regular Java program.
    Either you translate the code to JavaFX (creating Java objects, etc.) or you do a Java layer to simplify access.

  • How can I connect to the database using the Oracle Remote Diagnostic Agent?

    Now I try to study RDA on Windows XP platform,when I run 'rda.cmd',there is a question 'Enter password for 'SYSTEM@'',what is the answer?
    Because I didn't know how to connect to database,there are many error messages - RDA-00510: SQL execution disabled,What can I do?

    Metalink Note:314422.1 to start
    It is asking you to tell how to connect to 'the database that you are investigating' over a network. The answer .... the password for the userid called 'system' in the database specified after the @
    I am confused ... you do not know how to connect to your database?

  • How do I connect to a database on a different machine

    Hello all
    I have a Web server which is on a Linux box but the database I wish to connect to is on Windows NT. How can I connect to the data source.
    Both Linux and Windows machines are on the same network at the moment but will change later on.
    thanxs

    Connecting is as good as u do in anyother environment...
    I have a Web server which is on a Linux box but the
    database I wish to connect to is on Windows NT. How
    can I connect to the data source.You mean connect to database or DataSource ? If you are planning to lookup a data source and get a connection... you have to create a datastore first and give a jndi name so that you can lookup and get a connection....
    Both Linux and Windows machines are on the same
    network at the moment but will change later on.This will not give any problem ..
    thanxs

  • How do I connect to a database on a different machine(URGENT PLEASE)

    Hello all
    I have a Web server which is on a Linux box but the database I wish to connect to is on Windows NT. How can I connect to the data source.
    Both Linux and Windows machines are on the same network at the moment but will change later on.
    Please e-mail on [email protected]
    thanxs

    I think there are 3 ways to do so
    1. JDBC
    2. ODBC-JDBC bridge
    3. don't remember the third
    I would check it with JDBC section of the javasoft site. Also since your web server is on a linux box, you probably will not be able to use ODBC-JDBC bridge. I would try the JDBC method, but that requires you to get the JDBC driver for the database that you are trying to connect to!
    good luck
    Ku916

  • How does it connect to the database

    can anyone pls tell me how the below coding connect to the database, and if i want to change to use other type of connection, which part of the coding should i use? thank
    loginAction.jsp
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <html><!-- InstanceBegin template="/Templates/biome.dwt.jsp" codeOutsideHTMLIsLocked="false" -->
    <head>
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- InstanceEndEditable -->
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <LINK href="bios.css" type=text/css rel=stylesheet>
    <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
    </head>
    <body leftmargin="0" topmargin="0">
    <%@ include file="useAndImport.jsp" %>
    <%
    String username = (String)session.getAttribute("username");
    session.setMaxInactiveInterval(10*60);
    boolean isLoggedIn=work.isUsable(username)?true:false;
    %>
    <table width="100%" height="22" border="0" cellpadding="0" cellspacing="0" bgcolor="#CC3300" class="statusloginsearch">
    <tr>
              <SCRIPT LANGUAGE="JavaScript">
    <!-- Idea by: Nic Wolfe ([email protected]) -->
    <!-- Web URL: http://fineline.xs.mw -->
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->
    <!-- Begin
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=500');");
    // End -->
    </script>
    <form action=loginAction.jsp method=POST>
    <td width="77%" valign="baseline" nowrap id="statusbar">   <% if (isLoggedIn)
    out.println("<img src=images/active.gif width=10 height=15 align=middle><font size=1 color=white face=Verdana, Arial, Helvetica, sans-serif><b>Welcome, " + username + "  </b></font>");%> <% if (!isLoggedIn) { %>
    <font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Username:</font><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
    <input type=text name=username class="form" <%= work.getValueAttribute(username) %> >
    <font color="#FFFFFF"> Password:</font>
    <input type=password name=password class="form">
    <input type="submit" name="action" value="Login" class="formbutton" onfocus="this.blur()" onmouseover="this.className='formbuttonover';" onmouseout="this.className='formbutton';" onmousedown="this.className='formbuttonover';" onmouseup="this.className='formbuttonover';">
    <input type="reset" name="action" value="Reset" class="formbutton" onfocus="this.blur()" onmouseover="this.className='formbuttonover';" onmouseout="this.className='formbutton';" onmousedown="this.className='formbuttonover';" onmouseup="this.className='formbuttonover';">
    <img src="images/question.gif" alt="what's this?" width="15" height="15" border="0" align="middle">
    <% } %>
    </font></td>
    </form>
    <td width="23%" valign="baseline" nowrap id="statusbar"> <div align="right">
    <% if (isLoggedIn)
    out.println("<form action=SignOut.jsp method=POST><input type=submit name=action value=Logout class=formbutton onfocus=this.blur() onmouseover=this.className='formbuttonover'; onmouseout=this.className='formbutton'; onmousedown=this.className='formbuttonover'; onmouseup=this.className='formbuttonover';></form> <a href=tour.jsp><img src=images/newtothissite.gif border=0 align=middle></a>");%>
      </div></td>
    </tr>
    </table>
    <table width="650" border="0" cellspacing="4" cellpadding="1">
    <tr>
    <td><!-- InstanceBeginEditable name="main" -->
    <table width="580" border="0">
    <tr>
    <td><strong><font color="#CCCCCC" size="+2" face="Arial, Helvetica, sans-serif">ERROR</font></strong></td>
    </tr>
    </table>
    <%-- loginAction.jsp --%>
    <%
    String username1 = request.getParameter("username");
    String password=request.getParameter("password");
    boolean isUsername=work.isUsable(username1);
    boolean isPassword=work.isUsable(password);
    String usernameQuoted=work.getSingleQuoted(username1);
    String usernameParam = work.makeUrlParameter("username",username1);
    ResultSet resultset;
    if(isUsername && isPassword) {
    resultset=db.executeQuery
    ("SELECT * FROM users WHERE USERNAME = " + usernameQuoted);
    if (resultset.next() &&
    resultset.getString("password").equals(password))
    out.println("<font color=green>You are logged on.</font>");
    session.setAttribute("username", username1);
    String accessLevel = resultset.getString("access_level");
         session.setAttribute("access", accessLevel);
         if(accessLevel.equals("0"))
         response.sendRedirect("Welcome.jsp");
         else if(accessLevel.equals("3"))
         response.sendRedirect("Admin.jsp");
    %>
    <%
    } else {
    out.print(work.tryAgain(
    "<font size=2 color=red face=Verdana, Arial, Helvetica, sans-serif><b>Your username and/or password are incorrect.</b>",
    "Login.jsp"+usernameParam));
    } else {
    out.print(work.tryAgain(
    "<font size=2 color=red face=Verdana, Arial, Helvetica, sans-serif><b>Your login information is incomplete.",
    "Login.jsp"+usernameParam));
    %>
    <!-- InstanceEndEditable -->
    </td>
    </tr>
    </table>
    </body>
    <!-- InstanceEnd --></html>
    useAndImport.jsp
    <%-- thingsToUseAndImport.jsp --%>
    <jsp:useBean id="db"
    class="kw.search.DbAccess"
    scope="application"/>
    <jsp:useBean id="work"
    class="kw.search.Worker"
    scope="application"/>
    <jsp:useBean id="dataB"
    class="bb.messageBoard.DataB"
    scope="application"/>
    <jsp:useBean id="forum"
    class="bb.messageBoard.Forum"
    scope="application"/>
    <%@ page import="java.text.DateFormat, java.util.Vector, java.io.*" %>
    DbAccess.java
    package kw.search;
    import java.sql.*;
    public class DbAccess implements java.io.Serializable {
    private Connection connection;
    private Statement statement;
    String db = "btc";
    String user = "javauser";
    String password = "javauser";
    String dbUrl = "jdbc:mysql://localhost:3306/" +db;
    //dbUrl = "jdbc:mysql://localhost:3306/"+db;
    public DbAccess ()
    throws ClassNotFoundException, SQLException
    Class.forName("com.mysql.jdbc.Driver");
    //connection = DriverManager.getConnection ("jdbc:mysql://localhost:3306/btc?"+"user=javauser&password=javauser");
    connection = DriverManager.getConnection
    (dbUrl+"?user="+user+"&password="+password);
    connection.setAutoCommit(false);
    statement = connection.createStatement();
    public void executeUpdate(String sqlCommand)
    throws SQLException
    statement.executeUpdate(sqlCommand);
    public ResultSet executeQuery(String sqlCommand)
    throws SQLException
    return statement.executeQuery(sqlCommand);
    public void commit() throws SQLException
    connection.commit();
    public void rollback() throws SQLException
    connection.rollback();
    protected void finalize() throws SQLException
    statement.close();
    connection.close();
    }

    This section of your code makes the connection:
    public DbAccess ()
    throws ClassNotFoundException, SQLException
    Class.forName("com.mysql.jdbc.Driver");
    //connection = DriverManager.getConnection ("jdbc:mysql://localhost:3306/btc?"+"user=javauser&password=javauser");
    connection = DriverManager.getConnection
    (dbUrl+"?user="+user+"&password="+password);
    connection.setAutoCommit(false);
    statement = connection.createStatement();
    public void executeUpdate(String sqlCommand)
    throws SQLException
    statement.executeUpdate(sqlCommand);
    public ResultSet executeQuery(String sqlCommand)
    throws SQLException
    return statement.executeQuery(sqlCommand);
    public void commit() throws SQLException
    connection.commit();
    public void rollback() throws SQLException
    connection.rollback();
    }

  • How can I connect to a database using Java Web Start?

    When I run the application without Java Web Start, the program can get the driver and connect to the database. However, when I try to use this same application with Java Web Start, the program can not load the driver. Why is this happening? I am using a mySql database driver.

    I assume you are trying to connect using JDBC, are did you include the jdbc jar in your resources ?

  • How can i connect to remote database from netbeans

    Hi,
    I have got MySQL database server installed and running on a different machine. Is there any way to connect and browse database remotely using netbeans 5.5?
    I have added connector/driver for that database. i can connect and browse the database with host: "localhost" and port number. But when i specified the ip address of that machine, it gives me error.
    Can anyone help please.
    cheers.

    well, its not working in App server either.
    In App server admin console, on that connection pool if i define servername as "localhost", it works fine. If i change it to the remote machine's ip address, then it doesn't work.
    Any idea will be appreciated.
    cheers.

  • How can I connect to WinCC database (best by use of OLE DB provider)?

    Post Author: MarkusR
    CA Forum: Data Connectivity and SQL
    Hello,
    if I connect to the WinCC database by using the WinCC OLE DB provider I do not get the tables I expect.
    E.g. I would like to see the AlgViewEnu or other tables/views of AlarmLogging or TagLogging.
    Who can help?

    Hi
    I have not used asp.net with CS4, due to it using an old version of the framework, so unfortunately I cannot really help in solving the problem. But I can remember having a similar problem with DW8, a tutorial for connecting to the database in DW8 is - http://www.webdesign.org/html-and-css/tutorials/asp-net-in-dreamweaver-8.7367.html. I also seem to remember that the connection required the old, (very old) Jet4 access database connector to be installed to work correctly.
    These problems, and the fact that MS keeps updating the framework every year or so, (which are often not backwardly compatible) are why I use Visual Studio for .net C# sites, and no longer actively develop them, but I must admit I still prefer C# to PHP.
    PZ

  • How can i connect to a Database Server (live data)?

    hi,
    i'm trying to figure out how i can create a dashboard that's connected to live data coming from a Database server.  i have the username and password and the DB name, but can't find a direct way from within SAP dashboard design where i can make the connection.
    MUST i go through XML?
    i know other tools like Tableu that allow direct connections to the server.
    is this possible?

    Hi Sam
    Please refer to the tutorial http://scn.sap.com/docs/DOC-7946 and under "Connecting to Data Sources" section you will get the step by step guidance of various data connectivity options..
    Basically the options available under Data > Connections > Add and Query Browser in Dashboards 4 are your options.
    If you want to write direct SQL to get data you have to use add-ons InfoBurst like InfoBurst infosol.com/solutions/infoburst/
    Runali

  • How To Disable Connections or Freeze Database

    I have no need to do so right now but I'm curious what the recommended process would be if there's an issue with Oracle 11g & one had to keep the database engine up and running but stop all users from connecting while 'X' was investigated. Do you guys have any recommendations (examples) on standard / simple procedure to stop users from connecting to Oracle 11g and querying the database or altering the database?
    Thanks for any info and like I said, this is a hypothetical question as to what would one do if this issue came up. I don't have an actual performance issue that requires me from limiting database access.
    Thank you!

    >
    When searching Google, you don't get the details that could make or break an idea you have but rather generic instructions if that. Yes all this could have been easily found on some janky site linked off Google but you miss specific reasoning and theory based on my specific needs
    >
    Totally wrong on both counts. You may get some initial satisfaction from copping an attitude and trying to blame others for your omissions but that is not the way to learn.
    If you want to learn you need to be able to analyze what other, more experienced people are trying to tell you and then try their suggestions.
    You asked
    >
    I'm curious what the recommended process would be if there's an issue with Oracle 11g & one had to keep the database engine up and running but stop all users from connecting while 'X' was investigated. Do you guys have any recommendations (examples) on standard / simple procedure to stop users from connecting to Oracle 11g and querying the database or altering the database?
    >
    And sb92075 responded with
    >
    ALTER SYSTEM ENABLE RESTRICTED SESSION;
    >
    At that point you should have thought about that reply and try to understand what was meant.
    Did you recognize that as an Oracle command? If not you should have followed up with questions like
    1. what does 'ALTER SYSTEM' mean? What is that?'
    2. where can I get more information about that ALTER SYSTEM reply you provided?
    If you recognized the reply as an Oracle command then it is obvious how to get more information about it. You check the Oracle documentation. If you don't have it you can 'Google' for it.
    Did you do that? Apparently not because your next question was
    >
    So if I run this command as SYS, does that mean . . .
    >
    That is an indication that an OP is too lazy to do anything at all to answer their own question. Why should we look something up in the documentation if you won't bother to do it?
    >
    I am sorry to see that GOOGLE is broken for you.
    >
    Perfectly appropriate response for someone that is too lazy to do any work. Especially after you were given the exact answer you ask for.
    So let's see what the result is if you had thought about exactly 'why' you were given this response.
    I recognized ALTER SYSTEM as an Oracle command so my first thought is to read the Oracle documentation for that command to see what it says. I have the Oracle documentation but in order to provide a link to users asking questions I prefer to find the doc on the net so I can provide a link that lets a user read the same documentation, for the same version of Oracle, that I read.
    So I entered a Google search
    >
    oracle 11g doc ALTER SYSTEM ENABLE RESTRICTED SESSION;
    >
    And what do you know?
    The VERY FIRST RESULT was for
    >
    ALTER SYSTEM - Oracle Documentation
    >
    which took me to this link - http://docs.oracle.com/cd/E11882_01/server.112/e17118/statements_2014.htm
    And if you search for RESTRICTED SESSION (words in the command you were provided) you will find
    >
    RESTRICTED SESSION
    The RESTRICTED SESSION clause lets you restrict logon to Oracle Database. You can use this clause regardless of whether your instance has the database dismounted or mounted, open or closed.
    Specify ENABLE to allow only users with RESTRICTED SESSION system privilege to log on to Oracle Database. Existing sessions are not terminated.
    This clause applies only to the current instance. Therefore, in an Oracle RAC environment, authorized users without the RESTRICTED SESSION system privilege can still access the database by way of other instances.
    Specify DISABLE to reverse the effect of the ENABLE RESTRICTED SESSION clause, allowing all users with CREATE SESSION system privilege to log on to Oracle Database. This is the default.
    >
    Which answers the question you ask instead of looking it up yourself.
    So your comment that
    >
    When searching Google, you don't get the details that could make or break an idea you have but rather generic instructions if that
    >
    is totally wrong. I searched Google and got the exact details that were needed.
    And this?
    >
    Yes all this could have been easily found on some janky site linked off Google but you miss specific reasoning and theory
    >
    The Oracle doc was the very first link provided! And it wasn't a link to 'some janky site' - it was the official Oracle documentation. And it contains the reasoning and an example.
    So next time you need help
    1. leave the attitude behind - it doesn't impress anyone and makes it less likely that people will want to help you in the future.
    2. check the documentation first - if you don't know how to find something in the docs then ask what it is called or what doc it is in.
    3. when you are given a command or example go back to the doc and read the complete command and all of the syntax options. If you have any questions about how to interpret something then ask.
    4. demonstrate that you are willing to do more work to find an answer than any of us - it's your problem - why should we spend time helping you if you aren't willing to spend your own time?

Maybe you are looking for

  • How to move the pages and reports from one dashboard to another

    hi all can please any one tel me hw to copy the reports along with pages from one dashboard to another Thanks

  • Server stopped responding

    Safari will not connect to internet on ipads in home.  Androids and Windows systems having no problems.  What's up with Apple products?

  • Xp ethernet driver

    Right I am new to Mac's and this forum so hello everyone. My problem is with bootcamp and ive only found one forum entry on the net that points to this isuue so i hope you lot can help me. I've got Mac OS X 10.6.7 and have decided i also need xp on a

  • Leopard Mail doesn't auto-mark sent mail as sent

    In Tiger's Mail, whenever I sent a message and the message got put into my Sent folder, it would automatically mark the message as read. This is what I want. I obviously know what the message says since I just wrote it. However, since upgrading to Le

  • Why are the maps so crappy on ios6?

    Just upgraded to ios6 on my iphone 4s, the maps app is just horrible. Seems like a huge step back, nothing good about them at all.