Problem while connecting to oracle in linux

i connected to oracle in linux as
"sqlplus ,#sysdba,"
after that it asked me for password
and i typed as "oracle"
after tat message displayed that "connected to IDEAL instance"
SQL>select * from tab;
i got an error message staying tat "ORACLE not connected"
can anyone help me out where the poblem is getting

hi,
after tat message displayed that "connected to IDEAL instance"
i got an error message staying tat "ORACLE not connected"you are connected to an ideal instance.
you should mount and then open the database
if you are using spfile
then issue
SQL>startup
database mounted.
database opened.
or
SQL> startup nomount pfile='location'
database will be in nomount stage
SQL>alter database mount;
database mounted.
SQL>alter database open;
then you can issue your command..
regards,
Deepak

Similar Messages

  • Error while connecting to Oracle in Linux

    I wrote a JAVA program to test the connection with Oracle. It worked in NT environment, but it did not in Linux Environment. I got the error message: "IO exception: The Network Adapter could not establish the connection."
    Here is JAVA code:
    import java.sql.*;
    class Employee1
    public static void main (String args [])
    throws SQLException
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:thin:@203.149.143.1:1521:ora1",
    "dxhub", "manager");
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("select user_id from user_info");
    while (rset.next ())
    System.out.println (rset.getString ("user_id"));
    catch(Exception e)
    System.out.println(e.getMessage());
    I think there is nothing wrong with JAVA code. There must be something wrong in the Linux environment. I appreciate your help if someone can give me a little advice.
    Tony
    null

    I wrote a JAVA program to test the connection with
    Oracle. It worked in NT environment, but it did not
    in Linux Environment. I got the error message: "IO
    exception: The Network Adapter could not establish
    the connection."
    Here is JAVA code:
    import java.sql.*;
    class Employee1
    public static void main (String args [])
    throws SQLException
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn =
    DriverManager.getConnection
    n ("jdbc:oracle:thin:@203.149.143.1:1521:ora1",
    "dxhub", "manager");
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("select user_id
    d from user_info");
    while (rset.next ())
    System.out.println (rset.getString ("user_id"));
    catch(Exception e)
    System.out.println(e.getMessage());
    I think there is nothing wrong with JAVA code. There
    must be something wrong in the Linux environment. I
    appreciate your help if someone can give me a little
    advice.
    Tony
    nullDid you ever find an answer to this, I'm having the same problem. My application works under windows, but doesn't under linux.
    Lonnie

  • I was facing problem while connecting to oracle database.Can some one help me soon!!!!!

    Hi all,
    I was facing problem from last week.Suddenly i was getting ora-12505 error while connecting to the database through toad.I tried to change tnsnames.ora & listener.ora in multiple ways,but no luck...Inspite i was getting different errors like ora - 01034: ORACLE not available / ora - 27101: shared memory realm does not exist...When i try to connect using sys / sys as sysdba,connection is establishing and when issue the command startup it was throwing the error ORA-01821: date format not recognized......Fed up solving these issues....Can some one help me out...It's very very urgent..
    Thanks in advance,
    pavankumar.

    Well, the obviously solution is to use separate Apple ID's for iCloud.

  • Problem while connecting to Oracle 9i server from Oracle8.1 client

    Hi experts,
    Could you please help in resolving the issue we are facing.
    We are trying to connect from Oracle 8.1 client to Oracle 9.2 server and its giving error .This is on Linux environ ment.
    FYI - we are getting errors when we changed the client as Oracle 8.1 instead of Oracle 9.2.
    Pls suggest.
    Thanks.

    8i client can connect to the 9iR2 database, but beware wich client are you talking about, only 8.1.7 is compatible against 9iR2, even though you must be aware this is a no longer supported combination, which means in case you find a bug the only solution available is to upgrade the client version to 9iR2.
    By the way, is there a real reason why you have to tie your client to 8i? Being 8i long ago dessuported.
    ~ Madrid.

  • Problem while Connecting with oracle thin driver

    I have been trying for the past two days for connecting oracle 8.1.1.6 using thin driver. I set the classpath also. It throws me the following exception.
    Exception in thread "main" java.sql.SQLException: Io exception: The Network Adap
    ter could not establish the connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:260)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at Employee.main(Employee.java:23)
    I am trying to acheive the connection using the following piece of code
    Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@THIRU:1521:ORCL",
                        "scott", "tiger");
    The problem lies in that piece of code only,
    In the TNSNAMES.ora the entries are as follows.
    THIRU =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Thiru)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = thiru)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    How to solve this one. Can anybody tell me how to provide the proper url.
    thanks in advance

    You were very close.
    "Thiru" as opposed to "THIRU" should be the name of the machine running the database, but that would imply that the DNS lookups are case sensitive, and we know that's not the case.
    My guess, because the network adapter itself is reporting an error, is that "Thiru" evaluates to an IP address that isn't correct, that is, it's trying to make a connection to a specific address and getting nothing back in return.
    Anyway, I think your program(s) are just fine, and your network is misconfigured. Incidently, it is always a good idea in cases like this to use the full name of the machine, for example...
    ...getConnection( "jdbc:oracle:thin:@thiru.maran1977.com:1521:ORCL"...
    and in the database configuration itself...
    (ADDRESS = (PROTOCOL = TCP)(HOST = thiru.maran1977.com)(PORT = 1521))
    You may also use the IP address if you wish.

  • Problem while connecting to Oracle from JAVA

    HI ,
    I am stuck with a problem.I could'nt connect from java to SQL.
    Do I need to install any drivers.I installed oracle 8i full version.and i am
    using j2sdk1.4.2.and included class12.zar file in class path......
    what els I have to do.
    please give me the solution.
    feel free to contact me at [email protected]

    I am stuck with a problem.I could'nt connect from java to SQL.
    Do I need to install any drivers.I installed oracle 8i full version.and i am
    using j2sdk1.4.2.and included class12.zar file in class path......
    what els I have to do.Well, what have you tried?
    You need the Oracle JDBC driver jar (ojdbc14.jar) which you can download from Oracle or somewhere I believe....I can't remember where I got it. Anyway, google for the Oracle JDBC driver and you should find it.
    You will probably need to read up on JDBC as I can't believe you even did that before you realised you needed a driver to connect. Good luck.
    feel free to contact me at [email protected]
    Nope.....post to forum, reply to forum.

  • Problem while  connecting to oracle

    Hello sir,
    Me Jr Dba, ours is .net application .Today i have installed oracle on the system
    in which application is running .After the installation when we r opening the .net
    application we got the following error
    Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation.
    Provider is unable to function until these components are installed.
    could we pls suggest the above
    Regards,
    Vamsi

    No version, no help.
    However, this error message usually occurs using a Mickeysucks driver from the Stone Age. This driver expects the ORAWIN.. dll which has been replaced in later versions of Oracle.
    Not an Oracle problem. Just the usual problem of not reading installation documentation, upgrading only one component instead of all, and not paying attention. Usually this ends up in a forum like this one, where others may resolve the problem for free, as the 'company' couldn't be bothered to buy support.
    Sybrand Bakker
    Senior Oracle DBA

  • Stuck while installation of oracle in linux

    Hi guru's
    i am stuck with a problem while installation of oracle in linux please help me
    i am getting following error
      [root@localhost etc]# groupadd oinstall
    groupadd: group oinstall exists
    [root@localhost etc]# useradd -m -g oinstall-G dba-d/home/oracle-s/bin/bash-c"oracle software Owner" oracle
    useradd: unknown group oinstall-G
    [root@localhost etc]# Thanks in advance

    Brian while keeping that space getting this error actually
    [root@localhost etc]# useradd -m -g oinstall -G dba -d /home/oracle -s /bin/bash-c “Oracle Software Owner” oracle
    Usage: useradd [options] LOGIN
    Options:
      -b, --base-dir BASE_DIR       base directory for the new user account
                                    home directory
      -c, --comment COMMENT         set the GECOS field for the new user account
      -d, --home-dir HOME_DIR       home directory for the new user account
      -D, --defaults                print or save modified default useradd
                                    configuration
      -e, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE
      -f, --inactive INACTIVE       set password inactive after expiration
                                    to INACTIVE
      -g, --gid GROUP               force use GROUP for the new user account
      -G, --groups GROUPS           list of supplementary groups for the new
                                    user account
      -h, --help                    display this help message and exit
      -k, --skel SKEL_DIR           specify an alternative skel directory
      -K, --key KEY=VALUE           overrides /etc/login.defs defaults
      -m, --create-home             create home directory for the new user
                                    account
      -l,                       do not add user to lastlog database file
      -M,                       do not create user's home directory(overrides /etc/login.defs)
      -r,                       create system account
      -o, --non-unique              allow create user with duplicate
                                    (non-unique) UID
      -p, --password PASSWORD       use encrypted password for the new user
                                    account
      -s, --shell SHELL             the login shell for the new user account
      -u, --uid UID                 force use the UID for the new user account
      -Z, --selinux-user SEUSER     use a specific SEUSER for the SELinux user mapping

  • SQLDeveloper i18n problem while connecting/testing connection to oracle DB

    Hello,
    i've got a problem with connection to oracle server if there's a number (or some other strange character?) in SID/SERVICE NAME, after pressing "Test" button I get just Exception:
    Status: Failure - Test Failed: oracle.i18n.text.converter.CharacterConverterOGS.getInstance(I)Loracle/sql/converter/CharacterConverters;
    If I skip the test and save the settings, connection to database (expanding + in the list) will do nothing.
    I'm using correct username/password/hostname/port, I've checked it many times.
    I've tried to change database name from TEST9 (it's erroring on this one) to something else and server return exception about non existing database, so connection parameters are ok I think.
    I'm using fedora 8 with JDK1.6 and latest SQL Developer package.
    Thanks for any help.

    I would file an oracle jdbc bug to begin with, but I am guessing the driver is simply waiting
    for the DBMS to respond, so yo may need a good DBA to see what the DBMS thinks is going
    on at the time. I did hear of a case where the DBMS was doing some auditing, logging
    some info during every login. This info was being written to an OS file which just happened
    to be remote-mounted and would occasionally take 30 seconds, which caused connection
    requests to timeout at the driver end.... WebLogic is just asking the driver for a connection
    using your properties, so it's not involved directly with the problem....

  • OFT- Problem while Playback in Oracle Apps 11i

    hi,
    As earlier Oracle E-biz Application are not working in OFT8.5 but now in the latest version OFT9.0 as per the information it will work fine.
    But i'm facing the problem while playback the Oracle E-biz Application.
    I have recorded Order Management Process in Oracle Apps11i. At the time of recording its work fine.
    Steps which i had done
    1) Login into the application
    2) Click on the Responsibility Order Management--> Sales Order
    3) It opens the external Applet window
    4) Open the Sales Order Form where i enter the Customer Name and add the line item for the customer and then book the order
    Stop the Recording and then playback the script
    It works perfectly fine till step3 but on Step4 what ever the action user had done on Sales Order Form it is not playing back that action and just close the form and generate the Pass Result.
    So i want to know why it is not playback the action which user had done on the form.
    I really appreciate if any one can give the solution to the problem

    Thiru,
    Which concurrent manager consumes the CPU usage? Are you able to identify it?
    Any errors in the CM log file? Did you try to start the CM with diag=y and see if any errors are reported in the log files?
    What happen to the CPU usage when you stop the CM?
    I assume that you are running Purge Concurrent Manager/Requests on regular basis, so this should not be an issue here.
    Please review the following notes, and see if it helps.
    Note: 114380.1 - Concurrent Manager Processes Taking Lots of CPU
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=114380.1
    Note: 264752.1 - FNDLIBR Consuming Memory Causing CPU Utilization To Increase Daily
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=264752.1
    System is Live since 2006 and the issue started only today.I assume no changes have been done recently, correct?
    Regards,
    Hussein

  • Problem in connecting with Oracle

    hi everybody
    I have a problem in connecting with Oracle express 10g. I got an error that doesn't allow me to connect. hope anyone can help me and solve this problem
    --------------------Configuration: test - JDK version 1.6.0_20 <Default> - <Default>--------------------
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
    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:801)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at DB.dbConnect(test.java:36)
    at test.main(test.java:18)
    this is the code that I'm following
    import java.io.*; import java.sql.*; public class test2 {   public static void main(String[] args) {     try {       Connection con=null;       Class.forName("oracle.jdbc.driver.OracleDriver");       con=DriverManager.getConnection(         "jdbc:oracle:thin:@PLANET:1521:ORCL",         "scott",         "tiger");       Statement s=con.createStatement();       s.execute("INSERT INTO BOOKS VALUES('A Tale of Two Cities','William Shakespeare',4567891231,'05-JAN-1962')");             s.close();       con.close();   } catch(Exception e){e.printStackTrace();} } }
    Edited by: Vantasia on Nov 12, 2010 10:18 AM

    1. Is the connection url correct?
    "jdbc:oracle:thin:@PLANET:1521:ORCL" is fine.
    2. Is the TNS listener started?
    c:\oracle\product\ora10\bin> lsnrctl status
    3. Is a firewall between client and database server?
    Connection url with firewall would be different.
    http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/jdbcthin.htm#i1004276

  • Error While Connecting to Oracle

    Hi All,
    While Connecting to Oracle through jdbc thin driver, following error is displayed. Please help me in resolving the same.
    <b>SQL Exception:
    State  : null
    Message: Io exception: The Network Adapter could not establish the connection
    Error  : 17002</b>

    hi,
    Any or all of the following conditions may also apply:
    1) You are able to establish a SQL*Plus connection from the same client to the same Oracle instance.
    2) You are able to establish a JDBC OCI connection, but not a Thin
       connection from the same client to the same Oracle instance.
    3) The same JDBC application is able to connect from a different
       client to the same Oracle instance.
    4) The same behavior applies whether the initial JDBC connection
       string specifies a hostname or an IP address.
    Go thru the foll url
    http://www.websina.com/bugzero/kb/oracle-connection.html
    wbr,
    KK

  • MDM WebServices Problem while connecting to MDM repository

    Hello,
    we have installed the Web Services for MDM.
    When I test the Services, say the MDMSearchRecords I always get a ERROR status and the Message:
    id (String)  WS_LogonProblem
    severity (String) ERROR
    text (String)   Problem while connecting to MDM repository: z_Material on server: debmu416.server..... at port: 4000. Maybe the Repository-Information has not been set correctly at the requested query.
    status (String)  FAIL
    The Repository Information I try to connect with is correct (Repository Name, Server Name, Port, data Language and schema Language).
    Can you pls tell me where the problem could be?
    Points will be generously rewarded!
    Best Regards,
    Mircea

    Hi Arun,
    Thanks a lot!
    you were right! The WebServices version was too old.
    Now I can connect to the Repository in Test mode.
    I get some other error Messages, like "Field Material_Number is not defined at Table Products." and "Repository Data is not available in the requested Language ." which isn' right.
    Do you have a clue where this could come from?
    BR,
    Mircea

  • Having problem while connecting to SQL Server through a application

    hi guys ,
    having one problem while connecting to the SQL SERVER 2008 R2 through a application (Dynamics NAV), by using the concept of Linked Server.
    But one more thing , i am able to access that very SQL server through my app , when i am working locally , i mean to say that when i am working on the machine itself on which the server is installed then its working fine .
    But when i am working on another system the query doesn't work.

    by using the concept of Linked Server.
    Why through a linked server and not directly as a simple remote connection? I don't think you app is aware of linked server.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Problem in sql developer while connecting to oracle 11g

    when am creating a database connection with oracle 11g in sql developer editor it s throwing network adapter could not establish the connection
    connection name test
    user name system
    password system
    Role default
    Host name localhost
    Port 1521
    SID orcl
    Can any one help me to resolve the problem?
    Thanks in advance

    Those parameters probably aren't correct.
    Is that 11g on your machine? Try to specify the real IP instead. And sure the listener is up?
    Also sure about the SID and port?
    Hope that helps,
    K.

Maybe you are looking for

  • I am having a crash every time I try to load a photo to the beta.

    I loaded and edited three photos with no issues and now LR4 crashes each time I try to load a new photo.  I saw the mention of lens correction and CA correction, so I turned those off and the program still crashed on loading a photo. The photos I hav

  • Address Book - smart folder - need to delete

    I have created a smart folder that for some reson lock up my Address Book when ever I click on it (applicaton not responding and have to force quit).  How can I delete the the smart folder in question.  If I click on it the program immediately freeze

  • I dont understand this pop-up....

    pop-up says: The Winder Installer Service could not be accessed. This can occur if you are running Windows in safe mode, or if the Window Installer is not correctly installed. Contact your support personnel for assistance. and thats it. how do i get

  • How to Install Lion on iMac from App Store

    I have all the requirements already, but when I click the install button nothing happens. theres no loading bar or wizard. even when i search for "OS X Lion" nothing shows up. but I already have it purchased. odd right? Would I have to buy the disk f

  • Sales Order - confirmed qty

    Hi, Which field stores the confirmed qty (say you order 10 but only 1 exists, 1 would be the confirmed qty) when creating/changing sales order in va01, va02? Thanks, John