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.

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

  • 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

  • Problem in starting SQL*PLUS in oracle database 10g

    Hi
    Well I am facing one problem while starting SQL*PLUS in oracle database 10g
    ERROR - "Procedure entry point longjmp could not be located in dynamic link library orauts.dll"
    This has happened when I installed Oracle Database 11g on same machine and when I deinstalled Oracle 11g then SQL*PLUS is started...no error came
    Can anybody tell me the reason please...

    hi
    pls im having the same problem but in my own case i installed oracle apex using 11g.
    im env variable is:
    C:\Oracle\product\10.1.0\Client_1\bin;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin\client;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin;C:\app\Xty\product\11.2.0\dbhome_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\
    pls which is my apex_home so i can interchange it?
    i also have oracle 10g client installed

  • 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

  • Problem entering password sql plus in wnidows vista

    hello,
    after i successful installation in windows vista, i try run SQL Plus
    when i try running SQL PLUS, i have to entered my username and password.
    Entering my username is no problem. but when i try entering password, i cannot entering input password because no matter what i do, my password does not appear on the screen SQL Plus
    Is something wrong about installation?
    Please help me.

    Well, that is why it is called password. You do not want anyone to see it while you are typing, right? Just type in the password (you should see * for each typed password character) and hit enter. And if you are running non-gui version of SQL*Plus (in command window) you will not see any characters (even *) while typing password.
    SY.
    Edited by: Solomon Yakobson on Jun 5, 2010 7:36 AM

  • 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

  • ASM Auto Start vs SQL*Plus Contention Issue

    We are trying to install the single server instance of ASM with the Grid Infrastructure and DB 11gR2. We have specified auto start on the oracleasm configuration.
    OS = Linux 5.
    After a reboot. the ASM processes show up when I run "ps -ef|grep asm". When I log into SQL*Plus it says it's connected to an idle instance. However, when I issue the startup command it responds with "ORA-15149: another ASM instance found running on the host".
    My ORACLE_SID = +ASM and my ORACLE_HOME is set to the directory where grid is installed. These are the values that I specified during the Universal Installer session.
    Can someone help me make sense of this?
    Thanks,
    Gregory

    Thanks for your replies.
    It turns out that the problem had to do with how I specified the grid ORACLE_HOME. I still don't understand why it should make a difference, but...
    I am in the habit of typing a few characters of a directory or file name and hitting tab to have the system fill in the rest of the name. As the system finishes a name it appends a slash. So, I would end up with something like
    export ORACLE_HOME=/LIB_ORACLE/11.2.0/grid/That trailing slash was screwing things up. If I entered all of that without the trailing slash, my sqlplus connected just fine.
    Thanks again,
    Gregory

  • Oracle SQL Plus login fails

    Hi
    I have install Oracle 9i Enterprise Edition on Windows XP. Then I have created a database call "itcmdb". Then to login to SQL Plus in graphical mode I have enter
    User Name: sys as sysdba
    Password : password
    Host String : itcmdb
    Then I have got an error:
    SQL*Plus: Release 9.2.0.1.0 - Production on Fri Feb 17 16:46:17 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
    where <logon> ::= <username>[<password>][@<connect_string>] | /
    so I try to log into SQL Plus by using command prompt. So i enter following command in the command prompt.
    D:\>SQLPLUS /NOLOG
    SQL*Plus: Release 9.2.0.1.0 - Production on Fri Feb 17 16:50:34 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    SQL> connect sys/password@itcmdb as sysdba
    Connected.
    SQL>
    the it was connected without any problem. Then i check "C:\oracle\ora92\network\admin\tnsnames.ora". So it was contain following information.
    ITCMDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Rasika)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME=itcmdb)
    Then i check "C:\oracle\ora92\network\admin\listener.ora". so it was contains following information.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = rasika)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\ora92)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = ITCMDB)
    (ORACLE_HOME = C:\oracle\ora92)
    (SID_NAME = ITCMDB)
    Cold u plz help me to fix this problem........

    Hi
    I have install Oracle 9i Enterprise Edition on
    Windows XP. Then I have created a database call
    "itcmdb". Then to login to SQL Plus in graphical mode
    I have enter
    User Name: sys as sysdba
    Password : password
    Host String : itcmdb
    Then I have got an error:
    SQL*Plus: Release 9.2.0.1.0 - Production on Fri Feb
    17 16:46:17 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All
    rights reserved.
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
    where <logon> ::=
    <username>[<password>][@<connect_string>] | /
    so I try to log into SQL Plus by using command
    prompt. So i enter following command in the command
    prompt.
    D:\>SQLPLUS /NOLOG
    SQL*Plus: Release 9.2.0.1.0 - Production on Fri Feb
    17 16:50:34 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All
    rights reserved.
    SQL> connect sys/password@itcmdb as sysdba
    Connected.
    SQL>
    the it was connected without any problem. Then i
    check "C:\oracle\ora92\network\admin\tnsnames.ora".
    So it was contain following information.
    ITCMDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Rasika)(PORT
    )(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME=itcmdb)
    Then i check
    "C:\oracle\ora92\network\admin\listener.ora". so it
    was contains following information.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST =
    )(HOST = rasika)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\ora92)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = ITCMDB)
    (ORACLE_HOME = C:\oracle\ora92)
    (SID_NAME = ITCMDB)
    Cold u plz help me to fix this problem........on the sqlplusw gui you can not pass sys as sysdba as this option is available in OEM or other FRONTEND tools, wherein they inherently implement connect command.
    Hope this helps !

Maybe you are looking for