Problem in login with scott/tiger in SQL Plus

Hi,
I want to login with Scott/Tiger in SQL Plus, I have client on my machine, I can connect to any database by entering entry in tnsnames.ora file, but when I try to login with scott/tiger, Protocol adapter error comes, Do I need to enter any thing in tnsnames.ora file? if yes, please tell me the entries,
Thanks
Nidhi..

I have modified tnsnames.ora file, Below is this file
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORCL)
Now i ger error
Error: ORA-12541: TNS: no listener
Regards,
Nidhi..

Similar Messages

  • Logging into em with scott/tiger

    as directed in a prev post , I did:
    SQL> alter user scott account unlock identified by tiger;
    sqlplus / as sysdba
    conn tiger works but nowI cannot login to em with scott/tiger using the browser
    I have no problem logging in as myself
    error:
    The application requires more database privileges than you have currently been granted. Click on Help to get more version specific information.

    "I cannot login using the browser" isn't very informative.
    What URL are you using? What tool are you using in the browser?
    It sounds like you're trying to log in to Enterprise Manager as a normal user. Enterprise Manager, however, is a tool for managers to use (hence its name), not ordinary users. You'll want to log on as Scott in something like iSQL*Plus instead.
    Or, you can escalate Scott into being a manager of the database by doing something like grant dba to scott; in plain old SQL*Plus. That wouldn't be a very sensible thing to do, however: better to find appropriate client tools for clients and leave management tools to managers.
    Either way, be specific about what you are trying to run in your browser if you want any clearer advice.

  • Problem in login with sys

    hi,
    i have a problem in login with sys, the situation as follows:
    1- when i try to connect using : sqlplus "/as sysdba" or "sys/password as sysdba" it connect me to the DB.
    2- when i try to connect : sqlplus "sys/password@MYDB as sysdba" it gives me "ORA-01017: invalid username/password; logon denied".
    3- when i try to connect with another user i.e : sqlplus "system/password@MYDB" it connect me to the DB.
    DB version : 9.2.0.8
    OS version : Solaris 10
    please advice...

    1- when i try to connect using : sqlplus "/as sysdba"
    or "sys/password as sysdba" it connect me to
    the DB.This works anyway, because you're authenticated by OS. Example :
    SQL> conn sys/aaaa as sysdba
    Connected.
    SQL> conn sys/bbbb as sysdba
    Connected.
    SQL>
    2- when i try to connect : sqlplus "sys/password@MYDB
    as sysdba" it gives me "ORA-01017: invalid
    username/password; logon denied".Here you need the real password, so make sure you're using the correct one.

  • Execute procedure with out parameter in sql*plus

    HI All,
    I am executing an stored proc with OUT parameter from sql*plus.
    Getting this error message:
    SQL> execute sp1_cr_ln_num('01',0,3);
    BEGIN sp1_cr_ln_num('01',0,3); END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to
    'sp1_cr_ln_num'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Whereas it works fine using Toad. 4th parameter is for output.
    Thanks.

    then you can see the value either using print :var or execute dbms_output.put_line(:var)

  • First Login to Oracle 9i Personal SQL Plus after installation

    I downloaded the Opacle 9i for Windows NT/2000/XP,3 ZIP
    fiels andI extracted them into 3 special folders disk1,
    disk2 and disk3 according the instructions.Also I
    installed the JRE which is required for that.After the
    installation of Oracle 9,when I wanted to use the SQL Plus
    I could not do it because I had no the first login User
    Name and Password.
    For example,in Oracle 7 Personal for Windows 95 and in
    Oracle 8i Personal for Windows 98,the first login User
    Name is "scott" and the Password is "tiger".
    I shall be great thankfull to you if you will let me know
    how to perform the first login to the SQL Plus of Oracle
    9i (User Name and Password).
    With Great Respect
    Menahem Sharon

    in oracle9i all default users account are lock by default. so if you want to connect
    first when you open sqlplus in user name type "/nolog"
    sqlplus will open with no connection then issue the command.
    conn / as sysdba
    alter user scott account unlock;
    conn scott/tiger
    that is the procedure

  • 1st Login to Oracle 9i Personal SQL Plus (To Mr. Rizwan Islam)

    Dear Mr. Rizwan Islam
    Thank you for trynig to help me in the first login to the
    SQL Plus of Oracle 9i.
    I did as you wrote in your reply to me,but I am sorry to
    tell you that after I typed in the User Name box "/nolog"
    (as you said)and clicked OK button,the SQL Plus was opened
    but it demnded a Password form me.Because I did not know
    the Password for "/nolog" I could not continue with the
    procedure you wrote in your reply for me,so if you forgot
    something or you know another way to solve that problem,
    Please let me know.
    With Many Thanks and Gereat Respect
    Menahem Sharon

    Menahem,
    Here is how you do it.
    Click on the 'Start' button and choose 'Run' from the menu.
    In the 'Open' dialog box, type any of the following and hit the 'enter' key.
    sqlplus /nolog
    sqlplusw /nolog

  • 1st Login to Oracle 9i Personal SQL Plus (To 355099)

    To 355099
    Thank You for trying to help.
    I did as you told me in your reply but I am sorry to tell
    you that it did not worked.I steel demanded
    Password.
    If there is another thing that you forgot or you know
    another way to solve that problem then I shall
    be great thankful to you if you will let me know.
    You can reply to E-Mail [email protected]
    With Many Thanks and Great Respect
    Menahem Sharon

    it is very strange you still not got the solution because i read the sotion which work good on my system.
    do you remember the password which you gave during the installation of oracle database on you system . If so then your system user pass will the same.
    so when you click sql*plus enter user name => system
    and in Password field enter the password which you gave during installation . If you gave no password during installation then the password of user 'system' will be 'manager' so enter this information. and do the same processes which I told you.
    Thankyou.

  • Unable to Login to Idle Instance from SQL*Plus in windows

    Hello,
    I'm cloning the db from windows to windows enviornment. At auxilary instance after configuring the Listener and making Password file to right folder when I try to connect to Idle Instance through sql*plus by follwring connad
    c:\sqlplus sys/password as sysdba
    It gives me ORA-12518 Tns: Listener could not hand off client conenction error
    Then I put the follwing parameter in listener.ora DIRECT_HANDOFF_TTC_LISTENER=OFF and restart listener and then try to connect it gives me Ora-12560: TNS protocol adapter error.
    I try to connect through tnsnames but give me same error.
    Kindly tell me how to resolve this issue as its not allowing me to connect to an idle instance so that I can go further.
    I'm using 10gR2 on windows server 2003.
    Regards,
    Abbasi

    follow the steps to clone database:
    # 1. Backup the source database.
    To use RMAN duplicate an RMAN backup of the source database is required. If there is already one available, skip to step 2. If not, here is a quick example of how to produce an RMAN backup. This example assumes that there is no recovery catalog available:
    rman target sys@<source database> nocatalog
    RMAN>backup database plus archivelog ;
    RMAN> backup archivelog all;
    This will backup the database and archive logs.
    # 2. Produce a pfile for the new database
    This step assumes that the source database is using a spfile. If that is not the case, simply make a copy the existing pfile.
    Connect to the source database as sysdba and run the following:
    create pfile='init<new database sid>.ora' from spfile;
    This will create a new pfile in the $ORACLE_HOME/database directory.
    The new pfile will need to be edited immediately. If the cloned database is to have a different name to the source, this will need to be changed, as will any paths. Review the contents of the file and make alterations as necessary.
    Because in this example the cloned database will reside on the same machine as the source, Oracle must be told how convert the filenames during the RMAN duplicate operation. This is achieved by adding the following lines to the newly created pfile:
    db_file_name_convert=(<source_db_path>,<target_db_path>)
    log_file_name_convert=(<source_db_path>,<target_db_path>)
    # 3. Create bdump, udump & cdump directories
    Create bdump, udump & cdump directories as specified in the pfile
    # 4. Create a service
    c:/>oradim –new –sid <clonedatabasename> –intpwd <pwd>
    eg:
    c:>oradim –new –sid clonedb –intpwd oracle
    # 6. Duplicate the database
    From sqlplus, start the instance up in nomount mode:
    startup nomount
    Exit sqlplus, start RMAN and duplicate the database. As in step 1, it is assumed that no recovery catalog is available. If one is available, simply amend the RMAN command to include it.
    rman target sys@<source_database> nocatalog auxiliary /
    duplicate target database to <clone database name>;
    thats it
    For RMAN Cloning refer:
    follow the documentation replace the destinations/locations with your location/folder/destination in source and target database.
    http://www.dba-oracle.com/t_copy_clone_windows_database.htm
    http://www.shutdownabort.com/quickguides/clone_rman.php
    http://www.akadia.com/services/ora_duplicate_database_rman.html
    for manual cloning in windows refer the link below:
    http://coskan.wordpress.com/2007/04/20/adding-new-database-to-windows-without-dbca-or-rman-clone-or-rman-restore/

  • Problem in login with slim to xfce

    I successfully installed xfce and it well works by starting with command "startxfce4".
    I installed slim for graphical login (according to the instruction given in the wiki), but it does not work.
    When uncommenting "exec startxfce4" in .xinitrc, after login it returns to the login page again.
    If not commenting "exec startxfce4" in .xinitrc, it login and stay with slim wallpaper. I mean login is successful, the problem is at "exec startxfce4" command, which lead to the login page instead of loading xfce.
    With the same settings, I was able to successfully use LXDM. Of course, for LXDM, I set it globally in /etc/lxdm/lxdm.conf
    Last edited by etrader (2012-09-23 20:08:29)

    Show your .xinitrc and slim.log.

  • Problem with executing script in sql*plus

    I have Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production installed
    And I have a script for generating Packages with more than 1000 rows.
    when I try to execute I get this:
    SQL> @c:\gen_pkg\gen_pkg.sql
    Package created.
    977
    The Package Body is not created only Package spec, and
    what could be the problem?
    please, If somebody can help me
    thanks in advance.

    maybe you didn't include the body (maybe aliens took it) :D
    Message was edited by:
    user581409

  • Problem during login with an account

    Hi all
    I have setup two different login accounts on my maverick 10.9.2, but with one of them every time i log in with this account (after a reboot), i have to reregister with the appleID and the mac will be reconfigured again for this account. With the other account there is no problem like this.
    Hope somebody can help me.
    thanks

    Hello
    Just for test ,make a new account ( system pref ->account -> + button ) , and try configure mail again
    if that work , your problem with mail locate on your account  ( preference , caches ,font somwhere into library folder )
    if not work in new accout , may have problem in mail app or system
    HTH
    Pierre
    PS : delet files into library folder could be VERRY destructive !! be carefull

  • Problem creating table with foreign key in SQL Workshop

    Application Express version 2.2.1.00.04
    Get error message "Number of referencing columns/data types must match referenced columns"
    Master table SLS_SUPPLIERS has primary key SLS_ID NUMBER(8,0) and when creating table SLS_PRODUCTS with FK SLS_SLP_ID NUMBER(8,0) using the create table wizard I get the above error.
    The name of the FK is SLP_SLS_FK, key column is SLP_SLS_ID, referenced table is SLS_SUPPLIERS and referenced column is SLS_ID.
    Any help is much appreciated.
    James Edey
    I should add that if I create the table without the foreign key constraint and then create the constraint separately in SQL Workshop then it creates OK. It only fails in the create table wizard dialog.
    Message was edited by:
    edeyje
    Obviously no-one interested in this - just thought it may be a bug in v2.2 that the development team would find useful.
    James
    Message was edited by:
    edeyje

    I replied to the other thread on this too -
    there is a bug on that page when you click Next. If you define more than one fk but then navigate using the links on the process chart on the left (Constraints, Confirm, etc), the page works fine. We do have a bug on this now and I just added the notes I will need to get this fixed in 3.1 (I have already assigned it to me - must have some rogue validation that fires on next).
    Sorry it took so long for this to get noticed - I am glad I checked the forum this morning -
    -- Sharon

  • Sql*Plus Report

    Hi,
    I want to spool the results of a query to a file in Sql*Plus. The only problem I have with this is that Sql*plus is adding a blank line at the end of the file. This file is being used as input to another process and the blank line is causing problems for the process.
    Is there any way of stopping the blank line from being added?
    Thanks,
    Niamh

    hi,the SET TRIMSPOOL command is there to remove the extra blanks in the generated output .see whether it helps.
    mayuri

  • NEW FEATURE:AUTOTRACE IN SQL*PLUS 3.3(EXECUTION PLAN)

    제품 : SQL*PLUS
    작성날짜 : 2003-10-07
    NEW FEATURE:AUTOTRACE IN SQL*PLUS 3.3
    ======================================
    Autotrace는 SQL*Plus 3.3부터 지원하는 New feature로서 기존에는 init.ora에
    SQL_TRACE=TRUE를 setting 후 얻어진 trace file을 TKPROF란 utility를
    이용하여 SQL 문의 수행 경로, 각종 통계 정보를 얻었다.
    그러나, SQL*Plus 3.3부터는 이것을 간단히 처리할 수 있는 방법을 제공한다.
    1. SQL*Plus를 실행하여 scott user로 접속한 후, plan table을 생성한다.
    #sqlplus scott/tiger
    SQL>@$ORACLE_HOME/rdbms/admin/utlxplan
    2. 다음에 sys user에서 PLUSTRACE란 ROLE을 만든다.
    SVRMGR>connect internal;
    SVRMGR>create role plustrace;
    SVRMGR>grant select on v_$sesstat to plustrace;
    SVRMGR>grant select on v_$statname to plustrace;
    SVRMGR>grant select on v_$session to plustrace;
    SVRMGR>grant plustrace to dba with admin option;
    SVRMGR>grant plustrace to scott;
    비고) 위의 grant 문은 client에 SQL*Plus 3.3이 install되어 있는 경우
    C:ORAWIN95\PLUS33\PLUSTRCE.SQL이라는 script에 기록되어 있다.
    다음과 같이 실행해 주면 된다.
    1> connect sys/manager
    2> @$ORACLE_HOME/sqlplus/admin/plustrce.sql
    3> grant plustrace to scott;
    3. 다음에는 scott user로 connect하여 작업한다.
    #sqlplus scott/tiger
    SQL>set autotrace on
    SQL>select * from emp;
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE
    1 0 TABLE ACCESS (FULL) OF 'EMP'
    Statistics
    389 recursive calls
    5 db block gets
    53 consistent gets
    12 physical reads
    0 redo size
    1049 bytes sent via SQL*Net to client
    239 bytes received via SQL*Net from client
    4 SQL*Net round-trips to/from client
    0 sorts (memory)
    0 sorts (disk)
    13 rows processed
    4. 참고로 set autotrace에는 여러가지 option을 부여해 작업할 수도 있다.
    예)set autotrace on => Explain plan and statistics.
    set autotrace on explain => Explain plan only.
    set autotrace traceonly => select된 결과는 빼고 trace만 display
    시킴.
    set autotrace on statistics=> sql statement execution statistics.
    5. 서버 버젼과 상관없다.
    Server가 7.2 version 이하일지라도 clinet에 SQL*Plus 3.3이 install되어
    있으면 client에서 sqlplus 3.3을 구동시켜 server에 접속하여 위와 같이
    작업하면 무리없이 작업이 가능하다.
    Reference Documents
    <Note:43214.1>

    Hi Roman,
    I don't have an Oracle 9.2 database readily available, but it works fine on 10g XE. Please note 3.1 is not certified with 9i:
    http://www.oracle.com/technetwork/developer-tools/sql-developer/certification-096745.html
    Regards,
    Gary
    SQL Developer Team

  • What to Enter in Username,Password and Host String in SQL Plus 8.0??

    I downloaded Oracle Forms,Reports 6i.Along with it I got SQL Plus 8.0.Following
    are not working
    Username:scott
    Password:tiger
    Host String:Empty
    or
    Username :system
    Password:manager
    Host String:Empty
    I want to Know what to enter for Username,password and Host String.If i want to look in the TNSNAMES.ORS Plz Tell What to look for in it.

    Developer 6i is a client software, not database server. Ask the dba of the database, you are trying to connect, for valid userids/passwords/hoststrings.
    Werner

Maybe you are looking for

  • Interest calculation on due date

    Hi I want interest calculation from duedate (which is 30 days from invoice date). In one of the step of configuration, i defined Interest calculation indicator as VK. In that there is a option which says from where interest needs to be calculated. Th

  • Help with an external hard drive enclosure

    I had a Power Mac G5 that had a motherboard which died. The hard drives were still good so I purchased the "EAGLE Consus D-Series ET-CSDU2J-BK JBOD 2Bay SATA to USB 2.0 External Enclosure". I have it on the setting which both of drives show up on the

  • Sync works on 2 out of 3 computers

    I setup DE so that I can keep my reading in sync on some PDF manuals.  The manuals are stored on a file share.  Setup the first computer, added the manuals to a bookshelf.  Setup the second computer, everything showed up just fine.  Setup third compu

  • Weird Runtime error, please help.

    I recently started teaching myself java from a book, I liked it so I continued reading the book etc. I got to the chapter where it starts to talk about swing classes. The examples previous to this chapter compiled and worked great. Althoug in the swi

  • Chart value formatting

    Hi all, I want to format the chart value. There is a chart which is bar-line chart. From chart properties, when i check the "show values" option the value of both bar and line is shown. The chart contain two bars and three lines. Among three lines, t