Logging onto SQL Plus

I am trying to log onto SQL Plus but I am getting this error.
ORA - 1256: TNS: Protocol adapter error
I am using
Scott as the username
tiger as password
placing nothing in the host string.
Help would be appreciated.

If you're still having problems, could you post the install steps you
followed (including version numbers), how you created the database,
the correct error number (12560?), and what steps you've used to try
and resolve the problem? Web search engines contain a lot of hits on
common TNS errors. Also, if you think this is a problem with installation,
the Installation forum is at:
http://www.oracle.com/forums/forum.jsp?forum=64
-- CJ

Similar Messages

  • Oracle 8i Lite: logging to sql plus - uid, password, host string - whats that

    If i install "Oracle 8i Lite" (just locally, not networked). There are two important things : "Navigator", and "SQL Plus". If in navigator, I create a local database called "xxx" (tables under 'system' user). Then if i need to query - i go to SQL Plus. Fine, but how do we log in - what is the "host string" ?.
    The login needs, Userid, Password, Host String. In some docs, it said the userid, password for 'system' account is 'system, manager' respectively. Anyways, now the host string , i had read the 'host string' will be like "@databasename", so I think for me, it will be "@xxx"
    But the way, I'm understing, i cant log, and SQL Plus says something "TNS: could not resolve service name". Maybe i have to something with that tnsnames.ora file....?
    Incase, you could give ANY information, kindly inform.
    Thanks
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Mulyadi Kurniawan ([email protected]):
    Host string usually refers to the host string that is stored in your TNSNAMES.ORA file. You can open TNSNAMES.ORA with a text editor.
    If you get "TNS: could not resolve service name", it's either you have not start the database or your configuration in TNSNAMES.ORA is wrong.<HR></BLOCKQUOTE>
    hi,
    iam getting the same error(the TNS thing)can you be a bit more explaining regarding how to solve the problem.
    thanks
    null

  • Problem logging in sql plus

    If you are running Personal Oracle, you do not need to give host
    string to log in SQL Plus. However, database should be started
    up first.
    In order to run SQL Plus on a client workstation in client-
    server environment, you should create a host string using Net
    Easy Configuration. If you have created 'ORACLE' as the host
    string, it is OK. You will also have to start a listener.

    sorry I was trying to reply to a post I read and had this
    happen. Please ignore this.

  • ShutDown Issue while log in Sql plus

    when i log in Sql plus with username and password. it says Oracle Intialization or shutdown in progress.let me know please .

    when i go to Application Development -> sql plus -> and when i type username sys as sysdba .and type require password.window close automatically . but when i type username and press ok .button it ask for password .and it working fine .let me know please . any help would be highly appreciated.
    Edited by: user1095036 on Sep 2, 2012 2:33 PM

  • Can I use username = system when I log into SQL plus?

    I am new to Oracle and SQL plus and I have some questions to ask?
    I managed to get SQLPlus working using  sqlplus system/password
    When I installed Oracle I created a database called ORCL and set a  password.  My question is when I am using SQL Plus is it OK
    to use username= system.  The problem is that I created 3 tables in this database but when I list the tables I get about 181 tables returned.
    It seems that I have  logged into the master database.
    In fact I just used the password I set when I  installed Oracle (not the @asi past)
    from:
    http://docs.oracle.com/cd/E13212_01/wles/docs42/installadmin/database.html
    Configuring an Oracle Policy Database
    To configure an Oracle policy database, you must create the policy database, create a security role and a user, and grant the security role and user access.
    To configure a policy database, perform the following steps:
    Open a command window, run the Oracle SQLPlus utility, and login as user SYSTEM with the password you set for that user account when you installed the Oracle database software.
    sqlplus system/password@asi
    where: password is the password you set for the system account when you installed the database software and asi is the database instance name.
    The name of the database I set up when I installed Oracle was ORCL.
    I can set up a data source using WebLogic Server Administration Console using  the following data:
    Database name:             ORCL
    Host name:                      localhost
    Port:                                 1521
    Database USer Name:   System
    Password:                        the password I set when I installed Oracle
    This is different form the book I am using where the writer used the database name XE as in the following:
    Database name:             XE
    Host name:                      localhost
    Port:                                 1521
    Database USer Name:   OE
    Password:                        .......
    Confirm Password:        .......
    Anyways I managed to create some tables  using SQL script.  I assume these are in the ORCL database. 
    SELECT TABLE_NAME FROM USER_TABLES  will list all the tables in the database.
    Apparently there are a lot more tables in this database (181 tables) than I thought.  I have only created  3 tables.
    Article
    Section
    Edition
    Is this how it should be?
    Also I am trying to create another table Catalog  but SQLPlus is not allowing me to do this!
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    Next I create an EJB project using Eclipse (Oracle Enterprise Pack for Eclipse).   Then
    I add a JPA (Java Persistence API) project facet.  In this I  specify the following:
    SID:                         ORCL
    Host:                       localhost
    Port Number:       1521
    User name:            System
    Password:               The password I set when I installed Oracle.
    Here there is a GUI called Select tables which gives a list of tables I assume the same list of table
    I had listed in DOS however there appears to be more tables here. 
    Anyways,  I am just wondering am I on the correct path and would this Database I am using be the
    ORCL database.  Would all these tables be tables that are in the ORCL database?
    Thank you in advance for your help.
    Brian.

    Hi Shannon,
    Thanks for visiting Apple Support Communities.
    You can sign in to another iTunes Store account on your Nan's iPad by following the steps in this article:
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/ht1311
    Best,
    Jeremy

  • ORA-12541: TNS: no listener when attempting to log int SQL*Plus

    Hi everyone,
    Since we are now studying forms. I installed The Developer Suite on the same machine as the Oracle Database. I was able to use SQL*Plus and the Procedure Builder in Oracle Forms. I was able to connect to the Oracle 8i database with the Oracle 9i Developer. Then I started playing with forms and when I tried to run the form it told me that it could not find a listener. So, I made some changes on the Oracle Database and added a listener and gave it the 8888 port that it was looking for. That did not work so I change the properties on the forms to the port that the database listener had 1521 or at least that is what I believe it was. Now I cannot connect to Oracle SQL*PLus and I cannot connect from the forms to the database either. I have deleted the listeners and added them again. I have checked under services to make sure that it is started. Has anyone seen this before.
    Thanks for any help.
    Robert

    The problem comes into play when you try to select the actual LOB locator remotely, however straight INSERTs aren't a problem.
    SQL> desc test_clob1
    Name                                      Null?    Type
    A1                                                 NUMBER
    A2                                                 CLOB
    SQL> desc test_clob2@remotedb
    Name                                      Null?    Type
    A1                                                 NUMBER
    A2                                                 CLOB
    SQL> declare
      2     big_text varchar2(32767) := rpad('#',32767,'#');
      3  begin
      4       insert into test_clob1 values (1, big_text );
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SQL> select a1, dbms_lob.getlength(a2) from test_clob1;
            A1 DBMS_LOB.GETLENGTH(A2)
             1                  32767
    SQL> select count(*) from test_clob2@remotedb;
      COUNT(*)
             0
    SQL> insert into test_clob2@remotedb
      2  select * from test_clob1;
    1 row created.
    SQL> select a1, dbms_lob.getlength(a2) from test_clob2@remotedb;
    select a1, dbms_lob.getlength(a2) from test_clob2@remotedb
    ERROR at line 1:
    ORA-22992: cannot use LOB locators selected from remote tables
    SQL> commit;
    Commit complete.However, if I do a COMMIT and then go to the remote database and do the same query, I get the following:
    SQL> select a1, dbms_lob.getlength(a2) from test_clob2;
            A1 DBMS_LOB.GETLENGTH(A2)
             1                  32767HTH

  • ORA-12154 error when logging into SQL*Plus

    I installed Oracle 10g (10.2.0.3.0) server on a Hyper-V virtual machine running Windows Server 2008 Enterprise as a standalone server. I did a software only install and then ran the Database Configuration Assistant to create a database. I also ran the Oracle Net Configuration Assistant to configure the Listener, Naming Methods, and Local Net Service Name. I ran the test in the Net Configuration Assistant and it was successful after I changed the login credentials to use the SYSTEM account and password. TNSPING of the net service name is successful. I can also successfully connect to the database via Enterprise Manager using the SYSTEM account and password. What I can NOT do is connect locally to the database via SQL*Plus (either through the gui or command line). I get the following error:
    ERROR:
    ORA-12154: TNS: Could not resolve the connect identifier specified
    I've checked and double-checked the LISTENER.ORA, SQLNET.ORA, and TNSNAMES.ORA files. They all seem correct to me, especially since I used the configuration assistants to create them.
    Anyone have an idea what might be wrong or what I can check next? Any help would be appreciated!
    Thanks!

    They all seem correct to me, especially since I used the configuration assistants to create them. Garbage In, Garbage Out.
    Since Oracle throws an error, I strongly suspect you are mistaken.
    Simply put, you are using something like "@REMOTE" someplace & somehow and the error indicates SQL*Net does not know to what @REMOTE refers.
    How many systems are involved, names, OS version, etc?
    post connection string & post contents of tnsnames.ora file.

  • When trying to log into SQL*Plus it asks for host string, which I don'

    Pls can any one tell me the host string
    Regards,
    Ashok

    Look the Host String is the Information which tells about the Machine where the dataBase is Located and the SID name and the PORT .
    So when we connect to the data base via JDBC the URL which we supply is the Host String .
    If the database is not installed in ur machine and u access it remotely then u need a Host String which ur DBA will be able to tell U .

  • SQL Plus Log Infor 8i

    I saw a question posted from someone on June 17 about logging into SQl Plus,, although it was for the 9i version and I wanted to know if it was the same user name,password,host string for Oracle 8i? The default settings you gave to (Bill)?
    Thanks Marianne (newbie)

    Marianne,
    The default username, password and host information has been the same through many, many versions of Oracle. The Oracle9i Release 2 version is slightly different in that you set the passwords for SYS and SYSTEM (no default passwords).
    Alison

  • SQL Plus Log On

    Hi ,
    I have an oracle instance on my laptop . now i log into my laptop as administrator on the laptop's domian . when i log on like this i am able to log into SQL*Plus . but when i log into my laptop on my companies domain and try to start up SQL*PLUS i am unable to do so it says end of file communiction even though the ORacle Server Instance up( i am looking at the instance in the NT Services )
    IS there a settings which has to be set so that i can log on to SQL*Plus when logging to my laptop on my company domian
    Thanks
    Ravinder

    You may want to check to see if the LISTENER is running. Often the administrator of a box can login without the listener running, but anyone else cannot.

  • SQL*PLUS

    I am new to oracle and I think this is a fairly simple question.
    When I log into sql*plus using the userid 'SCOTT/TIGER' it connects me to SCOTT schema
    by default.
    I have created a new schema and new users in the database with access to this new schema.
    Whenever I try to login using these new userids it always requires me to enter the new schema name in the 'Host String'. How do I set up these users to connect the new schema without entering the host string.
    I have similar problem in a pro*c program. Currently I connect to the database using following:
    strncpy((char *) db_name.arr, "sprllc", DBNAME_LEN);
    EXEC SQL DECLARE DB_NAME DATABASE;
    EXEC SQL CONNECT :username IDENTIFIED BY :password AT DB_NAME USING :db_name;
    while the examples use the 'SCOTT' user id to
    connect to 'SCOTT' schema without needing to declare DB_NAME.
    Any help is appreciated.
    Thanks
    null

    Thank you very much for your reply.
    I am running the datbase server, SQL*plus and Pro*C program on the same machine
    (Windows NT ) and I am still unable to connect without specifying the host string.
    The entry in the tnsnames.ora file for the database I am working with is as follows:
    SPRLLC =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = SPRLLC)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = SPRLLC)
    What I am confused about is the I am able to connect to same database with using user ids SYSTEM and SCOTT without specifying the host string.
    Thanks again for your help.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by SHAHANI():
    Hi, lakshmi
    I think U are littlte bit confusing the term schema and User in ORACLE user and Schema are the equivalant and Host string identifies the database string which is generally ORC. If u are on the same machine having Oracle server then u are not required to give Host string. The Host String is used to access remote server.
    Let if U created the new user
    user name/schema name :- lakshmi
    P.W lak
    then to connect on local machine just say
    connect lakshmi/lak; do not give Host string.
    If U are accessing remote server then give
    connect lakshmi/lak@ORCL
    where ORCL is Host string for the remote server. It may be any valid string having entry in the home\orant\net80\admin\tnsnames.orl file
    to locate the remote server.
    <HR></BLOCKQUOTE>
    null

  • User name in sql*plus

    hi there
    I want to know if we can store the user by which one has logged in sql*plus .
    like if I want to store the names , times etc of all the users who logged into oracle using SQL*PLus can I store the name in a varible and insert into a table afterwards..
    thankx
    dg

    There is an environment variable USER that you can use. (select USER from dual).
    null

  • SQL*Plus/iSQL*Plus login as DBA

    I just installed 10g Enterprise on a Windows platform and am a bit confused to why I cannot log into SQL*Plus/iSQL as a DBA. I can login as one of the user accounts then use 'connect' to login as dba in SQL*Plus or at the Windows command prompt. I cannot do this, however, in iSQL*Plus. One of the threads on this forum pointed me to using JAZN after installing OC4J. I am in the process of doing this, but I need to understand something apparently fundamental: why should I have to perform another install when the Universal Installer installed iSQL and all the features that came with it? Didn't the 10g download give me the tools necessary to administer its application's accounts? The OC4J download page states that this tool should not be used to replace an existing 10g installation.
    Moreover, why iSQL knows about the 'users' authorization level, but not 'system?' I can see the users and groups in the Enterprise Manager, but no features to set WebDBA users as iSQL*Plus requests.
    Your comments would be much appreciated.

    Hi,
    in order to use iSQL*Plus as DBA, you have to perform additional configuration. See
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch2.htm#BCEIHEJF
    By the way: Get used to a different tool like SQL*Plus linemode or SQL Developer, because iSQL*Plus disappears in future versions.
    Kind regards
    Uwe

  • SQL*Plus vs web/browser admin interface for 10g Express

    hello, I'm a newbie in Oracle. Seem like I executed the setup script using SQL*Plus successfully (the scrpt CREATE TABLE then INSERT setup data) but seems like Oracle 10g Express web/browser interface tells me the setup data has never been inserted into the tables created?!
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Apr 6 14:10:05 2009
    +                         Copyright (c) 1982, 2005, Oracle. All rights reserved.+
    +                         SQL> connect dev/dev+
    +                         Connected.+
    +                         SQL> set serveroutput on+
    +                         SQL> @C:\dev\...sql\Oracle\SetupSchema\setup.oracle.tables.sql+
    +                         1125 /+
    +                         PL/SQL procedure successfully completed.+
    I verified this from SQL*Plus environmet:
    SQL> select count(1) from GenericCombolistItem
    +2 /+
    COUNT(1)
    +506+
    I then closed SQL*Plus and tried to browse via :
    http://127.0.0.1:8081/apex/f?p=4500:1003:480765345738397::NO:1003::
    (Start>All Programs>Oracle Database 10g Express Edition>Go to Database Home Page)
    I ran the count(1) SQL again just to check. The table is empty?! I logged into SQL*Plus AND 10g web interface using same credential dev/dev. Not sure what's happening why I can see data from SQL*Plus but not web/browser admin interface

    GOT IT! --- I needed COMMIT

  • ERROR IN CONNECTING IN SQL PLUS(ORACLE DEVELOPER SUIT 10g)

    hi Friends
    I have just installed ORACLE DEVELOPER SUIT 10g. my DATABASE is ORACLE XE(express edition) and username ,password for database is "SYSTEM","*****".
    when i log in SQL PLUS witn this user name and password ,and HOST STRING=XE.it shows an ERROR =             ORA-12154: TNS:could not tesolve the connect identifier specified.
    my tnsname.ora is
    XE =
      (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ARUNSOROUT-PC)(PORT = 1521))
        (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)   )  )
    EXTPROC_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) )
        (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO) ) )
    ORACLR_CONNECTION_DATA = (DESCRIPTION =   (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))   )
        (CONNECT_DATA =   (SID = CLRExtProc) (PRESENTATION = RO) )  )
    please help me in solving this ERROR.

    This forum is for the SQL Developer tool, not for general SQL or PL/SQL questions.  The clue is in the name.
    Try asking in the Database General or SQL and PL/SQL forums.

Maybe you are looking for