How to connect to the database

hello, i'm using windows 2000 sp: 4
i have installed databaseXE 10g and Developer suite 10g (installation: Complete).
When i run oracle designer or repository administration utility, i can't enter with my database acount > user : system, password: xxxx(database password).
i try to configure the application with Net Configuration Assistant, creating listeners and service name but i don't understand this procedure.
can somebody help me connecting to my database?!

Try to follow steps from Quick Start to Oracle Net Connections: http://download.oracle.com/docs/cd/B28359_01/network.111/b28316/gettingstart.htm#i485122

Similar Messages

  • How to connect with the database

    Hi
    I have oracle instant client instantclient-basic-win32-11.1.0.6.0 and i have oracle database 11g installed on oracle enterprise linux machine, i want to connect to that oracle from windows xp machine. i have oracle instantclient-basic-win32-11.1.0.6.0, which has following files.
    vc8
    vc71
    adrci
    adrci
    BASIC_README
    genezi
    genezi
    etc.......
    when i connect using sqlplus TNS adapter error is coming what to do

    Try to follow steps from Quick Start to Oracle Net Connections: http://download.oracle.com/docs/cd/B28359_01/network.111/b28316/gettingstart.htm#i485122

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

  • REG: Unable to connect to the database

    Hi All,
    I have installed mdm 7.1 sp06 on one server  with database as SQL on other server, was able to mount the server and running fine but when trying to connect to the database using the user sa, giving the error "Unable to connect to the database server".
    Can any one please help in how to connect to the database on other server?
    Regards,
    Mounika.

    hello,
    What sequence did you follow.
    the normal sequence is to start the data base server first and then the mdm server.
    Kindly take a restart of the servers and check th mds.ini file for the relevant settings for Database connectivity.
    Mostly the restart will solve the problem, if it still doesnt do let me know
    regards,
    Abhishek

  • How is the best way to connect to the Database ?

    I just have a question regarding to the connection to the Oracle DB.
    Every time I create a new JSP I am writing java code such as:
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    conn = DriverManager.getConnection("jdbc:oracle:thin:@host:1521:DB",
    "user",
    "pwd");
    Is there a way I can reuse the connection that we create on JDeveloper on the tab Connections, under the Database node ?
    Because I would like to centralized more the way how I connect to DB.
    Thanks!
    Giovani

    That is a nice solution, but only works if you use embedded OC4J, if not you must define datasources, maybe in standalone OC4J, OAS, JBoss, etc
    this is because the embedded OC4J automatically create datasources if it sees database connectiones created through Connections Tab

  • 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 to create a link to a web page that is connected to the database?

    i am developing a web form in java using Oracle's JDeveloper. i created the form which is connected to the database and now i want to put a link in a page that when clicked it shows the form and populates it if necessary. i have no idea how to do that, can anyone please give me an example or where i can find an example?

    Its really hard to answer this question with this enough information....Which Jdeveloper version? which technology you are using to create this web form ? ADF BC or others
    If 11g then are you aware of Task flows?

  • How can I speed up the connection to the database?

    I am running a JSP application with regular JavaBeans not EJB and connecting to the database through these beans. The connection is set to stay in memory as long as the bean is in session. However when I am running more than 7 sql statements seperatly the execution of the page slows down.
    I have tried using connection pooling but doesn't help much.
    I am not using the JDBC setting in JRUN, I am connecting through the jdbc.odbc drivers provided by the JDK. Basically coded the connection and the connection pool.
    Is there something else that can be done to speed up the execution of the page?
    Thanks in advance

    Thank you all for your input I was trying to work this project to learn JSP so I am not looking at purchasing any drivers right now. That is the reason why I stuck to the JDBC-ODBC Bridge. Are there any other drivers available for MS SQL Servers that are free.
    Jschell,
    That suggests you are taxing the system. It could be >connections. It could also be network, cpu, bus, etc. It >could also be memory, if your app starts swapping to >the hard drive it will get substantially slower.How can i figure out which of the above (i.e. memory, cpu, connections, network) are causing the problem.
    (Presumably you explicitly close your >ResultSets/Statements/Connections when you are >done with them.)You are right about that yes I am closing them at the end of the session, which I think should be after all of the SQL's get executed but I could be wrong it might be openeing a new connection for each SQL which inturn might be the reason for this whole problem. I will take a look into that.
    Thank you all once again.

  • How to connect to the local user database ??

    Hi,
    how can i connect to the local oracle ltie database that is created
    for each individual user (with msql or sqlplus) ?? I created a
    user ms and published an app the user can access. In the oldb40
    directory there is a "ms" directory which contains the database
    for the user ("demoapp.odb"). The DSN Name "ms_demoapp" exists
    and points to the correct directory and file. But how can i
    connect to that database with msql or sqlplus. I tried all
    possible combination of an url string i can think of, but
    nothing did work.
    Any ideas ?? Thanks in Advance.
    ms

    But were you able to connect to the database and make a query on the table you have made through the application. I have tried the todo List example and have seen that the data is stored in a file. But I am not very sure how to query the database using msql. Pls help!
    Thanks in advance,
    Rajiv.

  • How to change a connection with the database in Runtime?

    How to change a connection with the database in Runtime?
    My connection was made using ADF Business component (ApplicationModule).
    ADF Swing.
    JDeveloper Studio 11.1.1.4.0.

    When deploying ADF applications with database connection, you should be using JDBC data sources configured in the weblogic server.
    You could change the JDBC data sources to a different DB instance or location - by changing the JDBC data source and restarting the weblogic server.
    For more details, check
    http://techiecook.wordpress.com/2010/12/02/oracle-weblogic-adf-datasources/
    Thanks,
    Navaneeth

  • 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 to connect to the mysql database using applet from remote PC

    Hii All..
    I am also facing a problem.
    My web server and mysql server are running on the same PC.
    when i connect to the database from the same PC.
    Its connection but when i am trying to connect to the database from the different PC its giving error and not finding the driver "com.mysql.jdbc.Driver" because this is there on the server PC and applet runs on the client side..
    So to load the deriver on the client side so that it can run the applet to make the database connection on the remote PC.
    Thanks
    Uttam

    You are missing the library on the client.
    It must be moved to the client.
    Just like any other library that an applet requires.
    And that has nothing to do with JDBC.
    There are certainly way(s) to do it. Perhaps a forum that addresses applets, web usage or guis would provide an answer.

  • Connect to the database of auto Hosted App on Office 365

    Hi All,
    I developed a custom Application for SharePoint on top Office 365 in Auto-hosted mode. The application has SQL database which will be deployed to SQL Azure.
    I would like to read some info from the database but using another tools not from inside the developed application (e.g. SharePoint designer, PowerPivot) to generate some reports.
    When I try to connect to the database after the application installation using SharePoint Designer I get the following error message:
    Cannot open server 'xxxxxxxxxxx' requested by the login. Client with IP address '41.239.166.230' is not allowed to access the server.  To enable access, use the Windows Azure Management Portal or run sp_set_firewall_rule on the master database to create
    a firewall rule for this IP address or address range.  It may take up to five minutes for this change to take effect.
    Login failed for user 'db_c6ab7aa1_4572_4d36_b99d_741dee28a139_dbo'.
    This session has been assigned a tracing ID of 'c13ecefa-6aa2-4154-86f8-18d272c73b86'.  Provide this tracing ID to customer support when you need assistance. (Microsoft SQL Server, Error: 40615)
    And since I am using the Autohosted mode, I don;t have he Windows Azure Management Portal. is there a workaround for this issue?
    Kind Regards,
    Thanks in advance for you help. Mahmoud

    Hi m_3ryan,
    The error message shows you need to add your IP Address to the firewall rules of the SQL Azure to get yourself connected. As you deploy the database to SQL Azure, you mean you cannot open window azure management portal?
    Follow the steps in below article, check whether it works:
    How to: Set Firewall rule to connect to SQL Azure – sp_set_firewall_rule:
    http://azure-howto.blogspot.com/2011/05/how-to-set-firewall-rule-to-connect-to.html
    Thanks,
    Qiao
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Qiao Wei
    TechNet Community Support

  • Best Practice for closing a blocking connection to the database.

    Background:
    Using toplink/eclipselink to manage the the connection to the database.
    We support 3 databases, Oracle, Mysql, and MSSQL.
    We host the an application locally (SAAS) and we also distribute it to our clients so they can run it on premise.
    Problem:
    From time to time the application will execute a route that query the DB and will take 10+ minutes. When we find these queries we generally fix them, but it takes time to fix the problem and roll new code to production. We have also found that if an end user executes the query to many times they can potentially bring the service down - maxing out the database connection, or putting a huge load on the DB effectively rendering the system to a crawl.
    During this time period the IT team need a way to abort a transaction. The current approach, for our SAAS solution, to scan the database find to the long running query and kill it. The application is smart enough to recover and everything seems to work fine. This doesn't always work for our on premise customers - often they don't have a DBA or adequate resources to monitor the system. Therefore, I'm looking for a way to have the application kill/close any query that is lasting longer then X minutes. We currently track the duration of every thread so I can get the time the thread has been actively running.
    Stack Trace
    Currently we keep track of how long each thread is running waiting for a response from the database such as the stacktrace below, I would like to grab the connection and physically close it. Since we are using a java socket and it's in a blocking state there is no way for us to interrupt the thread. The only option is to wait for it to receive a response from the db - kill the sql process - or to close the java socket.
    java.net.SocketInputStream.socketRead0(Native Method)
    java.net.SocketInputStream.read(SocketInputStream.java:129)
    com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:113)
    com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:160)
    com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:188)
    com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1931)
    com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2380)
    com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2909)
    com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1600)
    com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1695)
    com.mysql.jdbc.Connection.execSQL(Connection.java:2998)
    com.mysql.jdbc.Connection.execSQL(Connection.java:2927)
    com.mysql.jdbc.Statement.executeQuery(Statement.java:956)
    org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeSelect(DatabaseAccessor.java:854)
    org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:573)
    org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:501)
    org.eclipse.persistence.sessions.server.ServerSession.executeCall(ServerSession.java:536)
    org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:205)
    org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:191)
    org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:262)
    org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeSelect(DatasourceCallQueryMechanism.java:244)
    org.eclipse.persistence.queries.DataReadQuery.executeNonCursor(DataReadQuery.java:188)
    org.eclipse.persistence.queries.DataReadQuery.executeDatabaseQuery(DataReadQuery.java:144)
    org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:664)
    org.eclipse.persistence.queries.DataReadQuery.execute(DataReadQuery.java:130)
    org.eclipse.persistence.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2243)
    org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1181)
    org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1165)
    org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1125)
    Question
    What is the best way to grab the connection and close it - from another thread?

    The reason for changing the namespace is to guarantee that they appear as different versions.  The namespace is part of the strong name of the DLL when deployed.  Yes they will be deployed to separate servers because a server can only belong
    to one farm.  But when you are doing a migration it won't be clear that you need to install the 2013 version since the .DLL will report that it exists in the 2010 farm already. It will work without changing the namespace, but it would be best to differentiate
    versions at that level to avoid confusion.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Can't get connected to the database

    Hi There,
    I am a novice to Oracle. I recently installed Oracle 9i Personal Edition in my PC. I also installed 9i Developer suite, however i'm having problem connecting to the database everytime I run for instance, Form developer, report developer or Desginer. I get A Network dial up box. It ask me which network connection I'd like to use. It seems that the applications offered by the 9i Developer attempt to connect into server and in fact I'm runing the database on my pc not from a remote server.
    I appreciate any help regarding this isssue.
    Thank you
    Ayache.

    Step 1 : If you have several Oracle Homes at your PC you have to choose as primary Oracle Home the Oracle Home belonged to the Oracle Server. Do it so:
    SELECT START> PROGRAMS> Oracle Installation Products> Home Selector
    Step 2: tell me how many databases you have created and what are the SIDs of them.
    Joel Pérez

Maybe you are looking for

  • ITunes Unchecks Manually Manage Music and Videos.

    Everytime I connect my iPhone 4 to my computer and open up iTunes, the "manually manage music and videos" option becomes unchecked so that I cannot add or delete any music from my iPhone.  When I check "manually manage music and videos" again, of cou

  • Using formulas in combination with dates

    I'm a salesman and I track my daily sales on numbers. I have 5 columns: date, sales number, sales amount, then other stuff. I need a formula to track on the sales for a certain 2 weeks pay period for another table. I need one that sums the total $ am

  • ODI 11.1.1.5 Installation is failing in HP UX

    Hi All, ODI 11.1.1.5 Installation is failing due to below error. OS: HP UX 11.3i Itanium system JDK 6 Error: /usr/lib/dld.sl: Can't find path for shared library: libjli.sl /usr/lib/dld.sl: No such file or directory [HP ARIES32]: Error occured while w

  • How to get the sparc c compiler in solaris 9.

    How to get the sparc c compiler in solaris9 is the licence one?. If it is license what was the procedure to get the software.

  • XMLQuery (XQuery) with namespace

    I'm pretty new to XML/XQuery and have the following problem. I've got a DB outside oracle which is the same as I got in Oracle (10.2.0.1.0). Using XMLSpy I can make a simple query with a default namespace that gives me an XML document. xquery version