Why do people login as sqlplus /NOLOG?

Why do DBAs login by issuing
sqlplus /NOLOGfirst and then issue
connect sys as sysdbaWhat's wrong in Logging in using a single step
sqlplus / as sysdba

Daniel,
Interesting observation regarding the username and password displaying with the ps command on Unix (I was not aware of that problem). The same problem exists on the Windows platform as well. A Windows administrator is able to remotely execute against a user's computer the WMI query:
SELECT CommandLine FROM Win32_ProcessIf an Oracle user connects to SQL*Plus with the username and password on the command line, the Oracle user's username and password will be exposed to the Windows administrator without that administrator needing to visit the computer used by the user. Also, on Windows I believe that I recall reading about problems with the command line parameters not being set correctly if the username and password are passed in on the command line, something like this (from a client computer):
Z:\>set oracle_sid=MYTESTDB
Z:\>sqlplus sys/mysyspass as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jul 8 10:10:43 2009
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
ERROR:
ORA-12560: TNS:protocol adapter errorIf on the client computer @MYTESTDB is added after the password, SQL*Plus will connect.
Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc.

Similar Messages

  • Need Help with logins for SQLPLUS and Database Control

    Hi,
    I am new to Oracle. I installed "Oracle 10g Standard Version" on Win XP Pro. I have two questions regarding logins:
    (1)     After installing the software I used “dbca” to create a General Purpose database. At the end of the database creation I clicked on the Password Management button and I entered the password for SYS, SYSTEM and SCOTT. Then at the DOS command prompt I typed “SQLPLUS” and I can login as SCOTT and system, but I cannot as login as sysdba or sysoper. I get invalid username/password; logon denied message.
    But I can type “SQLPLUS /NOLOG” and then issue command “connect /as sysdba” and connect successfully as sysdba. Any idea why I cannot login sysdba or sysoper?
    (2)     When I go to windows Start->All Programs->Oracle - OraDb10g_home1 and select “Database Control”. A browser windows open up Database Control page. I cannot start Listener nor Start up a Database Instance. No matter whether I try SYS, SYSDBA, SYSOPER or SCOTT I cannot login. Any idea what is going on here?
    At the SQLPLUS command prompt if I enter “select status from v$instance;” I get status as “OPEN”.
    I am lost in Oracle world as a typical newbie. Many thanks in advance for any advice or pointers.
    Thanks
    Joe

    (1) Yes I can login if I type "sqlplus / as sysdba". Does that mean "sysdba" doesn't have a password?
    (2) when I run "emctl status dbconsole", I get a message saying "Environment variable ORACLE_SID not defined. Please define it." Can someone tell me what should I do?
    Thanks
    Joe

  • Trying to log in using sqlplus /nolog and getting SP2-0640

    Hello, I searched for this problem but not having much luck. I have Oracle 9iR2 running on Solaris 9 workstation. I can log on giving sys/passwd as sysdba and log on using any other user accounts. What I can't do is get into sqlplus using /nolog. I am setting up a dataguard physical clone. The clone is another 9iR2 workstation and i just installed the RDBMS software without creating a database. I can go into this database with sqlplus /nolog. I cannot do this on my intended primary database. I remember being able to get into the database when i first set it up using sqlplus /nolog but have since changed the unix account password and i believe this caused it but when i change the password back to the same one when I created the database, it still does not work. The error I get is SP2-0640: Not connected. Is there a log I can look up that will give me more information? thanks,
    Jim

    Normally this errors occurs, if you have in glogin.sql (located in $ORACLE_HOME/sqlplus/admin) or login.sql statements,which require a working connection.
    Werner

  • DOS command "sqlplus /nolog @file" and "sqlplus  user / password @file

    It's very strange what j've observed:
    J've two files *.sql :
    -- 1:
    file_with_connect.sql which contains 3 lines :
    connect <user>/<password>@tnsname
    select count(*) from <table_name>;
    exit
    -- 2:
    file_without_connect.sql which contains only:
    select count(*) from <table_name>;
    exit
    table <table_name> isn't empty (it contains 1 row)
    -- 1:
    When J execute from DOS (on the client):
    sqlplus /nolog @file_with_connect.sql le result is 0 rows in table <table_name>
    -- 2:
    When J execute from DOS :
    sqlplus <user>/<password>@tnsname @file_without_connect.sql le result is: 1 row in table <table_name>
    I use the same connection, tnsname, table.
    Why the result isn't the same ?
    There is no error in my alertXXXX.log

    Hi Mustafa
    The table <table_name> that j've used exists only in one database.
    It's tnsname is ok on the server, on the client it was defined 2 times ! (but the same) in the file tnsname.ora. J've modify the client tnsname.ora.
    But, j'm not sure it was the reason of our problem: the error isn't regular (sometimes) so j can't verify that it will never appear.
    Any other idea?

  • "sqlplus / as sysdba" and "sqlplus /nolog;conn / as sysdba"

    Hi,
    What is the difference between "sqlplus / as sysdba"
    and
    "sqlplus /nolog;conn / as sysdba"?
    when "sqlplus / as sysdba", it could not "alter user system identified by password;
    when "sqlplus /nolog;conn / as sysdba", it could "alter user system identified by password"
    why??
    Thanks.

    What is the difference between "sqlplus / as sysdba"
    and
    "sqlplus /nolog;conn / as sysdba"?
    No difference.
    when "sqlplus / as sysdba", it could not "alter user system identified by password;
    when "sqlplus /nolog;conn / as sysdba", it could "alter user system identified by password"
    why??
    Don't know what you mean :
    $ sqlplus /nolog
    SQL*Plus: Release 11.2.0.3.0 Production on Wed Sep 25 15:31:58 2013
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    SQL> conn / as sysdba
    Connected.
    SQL> alter user system identified by manager;
    User altered.
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    $ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.3.0 Production on Wed Sep 25 15:32:20 2013
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> alter user system identified by manager;
    User altered.
    SQL>

  • Can't login with sqlplus 'sys/password@DEV as sysdba'

    Does anyone has idea why I get error message when I am logging using
    sqlplus 'sys/password@DEV as sysdba'
    ERROR:
    ORA-01031: insufficient privileges
    But I can login with sqlplus '/ as sysba' to DEV database.
    Do I need password file for remote as sysdba with sys user also?
    Thanks in advance

    Do I need password file for remote as sysdba with sys user also?Yes. You can use orapwd command to create it.

  • I have an apple id but ı can not use it for sign in to itunes connect account while publishing my ibook document. Why ı can not login? What can ı do to figure out this problem?

    I have an apple id but ı can not use it for sign in to itunes connect account while publishing my ibook document. Why ı can not login? What can ı do to figure out this problem?

    As note already on the iBA forum [ AppleID for ibooks publishing ], you need two IDs. You can't use your developer ID.
    If you already signed up for books with that ID, you need to talk to Apple to straighten things out.

  • Why does my login screen when scrolling mouse over appear pixalated (has small squares wherver the mouse scrolls until the entire page has been scratched like a lotto ticket:) ?

    Why does my login screen when scrolling mouse over appear pixalated (has small squares wherver the mouse scrolls until the entire page has been scratched like a lotto ticket:) ?

    OS X Lion: Login window partially appears, cursor movement redraws screen

  • What is the use of sqlplus /nolog?

    What is the use of sqlplus /nolog?

    In case of /nolog option --> Starts SQL*Plus but does not log on (connect) a user/session. A connection can then be made in SQL*Plus with connect. (i.e., no initial connection)

  • Why Do People Make and Provide Software and Support for Free?

    Hey all, I discovered Linux and open source software a little over 4 years ago now. It transformed the way I thought about software and using the computer. So now in my senior year of college I have chosen for open source software to be the subject of my thesis.
    The topic of this thread is the research question of my thesis. But it is also question that I have been thinking about for the last couple years or so. Why do people decide to write software and then give it out for free for all to modify? The second has to do with forums like these. I have always wondered why people do help support on these forums for free when they can be making money doing the exact same thing. Below I will write 13 research questions that you guys can give me your answers or philosophy too.
    1. How long have you been using Linux?
    2. How did you learn/find out about Linux?
    3. Why have you chosen Linux over other operating systems available?
    4. Why did you choose to use your current distribution?
    5. Do you still use any closed source programs that are not available for Linux?
    6. Tell me the reasons that you contribute to the community?
    7. What do you think motivates others to contribute to the community?
    8. In your opinion, what reasons do you think others provide software to everyone for free?
    9. In what ways do you feel contributing to the community could benefit someone's future/career?
    10. What is it about contributing or programming that you enjoy most? Is there any aspects you dislike?
    11. Are you a member of other non-software communities? Such as a church, voluntary organizations or charities?
    12. Does your open source work spillover with any other areas of your life?
    13. If you provide support on forums such as these, why do it for free?
    You DO NOT have to answer all 13 of the questions above. Please just pick out the ones that you feel are most important or interesting to answer. If someone else says something that you think is interesting feel free to respond to them if you agree or disagree.
    If anyone wants to take this discussion further with me than the forum, I will absolutely love too! Just please send me a private message on here and we can figure out further ways of contacting each other.
    I plan on using your user names on this forum to identify people in my paper. If any of you are uncomfortable with me using your username in my paper, please let me know! I will be monitoring this thread on a day by day basis for the next two months or so, until my thesis is complete. If you guys have any other questions that pop up, please do not hesitate to ask! Thank you all in advance for responding!

    hockeyfighter09 wrote:1. How long have you been using Linux?
    Roughly 3 years, with about 2 of those full-time. Tried out for 6 months a couple of years before that, but didn't stick.
    hockeyfighter09 wrote:2. How did you learn/find out about Linux?
    Older relatives/friends mentioned it in passing due to my interest in computers, was pointed to the (then-new) Ubuntu and actually given a CD (which I never used). Did read up a bit about it at the time, though.
    hockeyfighter09 wrote:3. Why have you chosen Linux over other operating systems available?
    Frustration with fixing Windows. Most of that came from my tinkering with it with a bunch of patches/hacks/cracks etc, necessitating a reformat every few months. Oh, and viruses would pop-up once in a while. Mac was always out of my budget (was a student, am still not done with my post-grad).
    hockeyfighter09 wrote:4. Why did you choose to use your current distribution?
    Ubuntu got quite frustrating from two aspects:-
    1. 'Freeze' policy kept creating lousy bugs. I would have maybe 12 external ppas enabled and of course they wouldn't always play nice with each other, simply because the repos I had been so in awe of when first starting out didn't actually contain all that many useful programs. Used Mint for a while, same problem (now I understand it was the same base).
    2. SNR of forums - When I first joined ubuntuforums it was like heaven-on-earth, so HELPFUL, so many replies almost instantly. It took me roughly 1 and a half months to notice that probably only 2 regular posters were worth listening to, the rest were trying to help with no knowledge to back them up.
    So I tried Sidux, OpenSuse, Fedora, and finally read about Arch. Installed it side-by-side, and viola, it was fun! I like tinkering, basically, and Arch allows me to do it far more than Ubuntu/Windows (I class Ubuntu as similar to Windows by now) ever did.
    hockeyfighter09 wrote:5. Do you still use any closed source programs that are not available for Linux?
    Yes, some games through wine (not sure if that counts as 'available for Linux'. I do not boot into Windows at all, anymore (though its on my laptop).
    hockeyfighter09 wrote:6. Tell me the reasons that you contribute to the community?
    One of the best things I like about open-source is how most active projects have a community around them. So its not just software, but people working together (of course with heirarchies etc.), fits my Utopian view of how things 'should be(tm)'. I'm a sucker for Utopia, so I try to feed the community as far as possible.
    hockeyfighter09 wrote:7. What do you think motivates others to contribute to the community?
    A combination of 6. and substituting social deficiencies. Some come across as not actually having much of a social life (probably lack of those sharing nerdy interests in their area) and substituting that in online communities. This isn't really Linux specific, more internet-community specific.
    hockeyfighter09 wrote:8. In your opinion, what reasons do you think others provide software to everyone for free?
    Perspective of personal developer (one-man projects), I think its a mix of altruism (probably 20-30%), pride (50%) and commercial sensibility (the rest). Most of it is pride, the knowledge that many use my software.
    For companies, as mentioned above, its very financially viable, especially in already-saturated markets.
    hockeyfighter09 wrote:9. In what ways do you feel contributing to the community could benefit someone's future/career?
    Not much, honestly. My career-line is education/engineering, so not much scope there. For someone in the computer sciences, of course there'd be more benefit, but not more than investing the same amount of time into part-time work to expand your portfolio. So for the INDIVIDUAL I believe participating in the community does not bring future/career benefits, we do it because we enjoy the community and want to see it succeed.
    hockeyfighter09 wrote:10. What is it about contributing or programming that you enjoy most? Is there any aspects you dislike?
    The sense of achievement, that what you do is useful to someone. The BIG dislike is when other members of the community don't feel the same way. There will always be members who are demanding (customer mentality) or abrasive (big tough guy mentality). Both are 'big city' mentalities with no place in the 'homely-little-town' community of Linux (that's how I see it anyway).
    Oh, and noobs answering questions with no knowledge (something I've done before as well) are more annoying than noobs asking questions, personal opinion
    hockeyfighter09 wrote:11. Are you a member of other non-software communities? Such as a church, voluntary organizations or charities?
    I'm very active in my church (various leadership roles), and regularly help out at my fiance's NGO (mostly video work, ffmpeg and cinelerra stuff). A child sponsor and blood donor, etc. etc.
    hockeyfighter09 wrote:12. Does your open source work spillover with any other areas of your life?
    I don't 'work' on open-source, so a bit of a N/A here. What small patches I provide, or the moderating I do here, is just small contributions. Doesn't spill over to any other areas of my life, because computers are like that, compartmentalized away from the 'real world' (cue Matrix theme tune).
    hockeyfighter09 wrote:13. If you provide support on forums such as these, why do it for free?
    Like I said, in a small village community setting, people help and are helped for free. I do tech support for friends/relatives in RL for free, so on the forums, for very little time invested, why not?
    In answer to litemotiv - yes control is MUCH more important than freedom. I've never really been taken by all of RMS' screaming and ranting. I'm an engineer by training, I want to know what's going on (to a reasonable degree) and control it. Philosophical discussions are interesting but ultimately a waste of time.

  • Sqlplus /nolog opens wrong copy

    Hi,
    I just installed 10g on a Windows XP machine and am in the process of installing HTTP Server and Apex 3.1.2. After I installed HTTP Server (standalone) it created another copy of SQL PLus, so now whenever I Start>Run>sqlplus /nolog it opens the HTTP Server version which won't allow me to my database. To get the database version I need to enter the full file path, which as you can imagine is a big hassle.
    I'm wondering if anyone knows how I can re-associate the "sqlplus" command to use the proper copy of this program.
    Thanks for your help!

    Tinlemon wrote:
    Hi,
    I just installed 10g on a Windows XP machine and am in the process of installing HTTP Server and Apex 3.1.2. After I installed HTTP Server (standalone) it created another copy of SQL PLus, so now whenever I Start>Run>sqlplus /nolog it opens the HTTP Server version which won't allow me to my database. To get the database version I need to enter the full file path, which as you can imagine is a big hassle.
    I'm wondering if anyone knows how I can re-associate the "sqlplus" command to use the proper copy of this program.
    Thanks for your help!What do you mean by "the HTTP version"?
    What response (error messages?) do you get when it "won't allow" you to your database?
    The command "sqlplus /nolog" says "open sqlplus, but DO NOT connect to a database." If you start sqllpus with the "/nolog" (no logon) option, what happens if you then issue
    SQL> connect / as sysdba
    sqlplus doesn't know of or have any "association" with any particular database, any more than Excel is associated with any particular xls file. If you have multiple copies, due to having multiple ORACLE_HOMEs, it really shouldn't matter which copy you use.
    What is the value of your PATH?
    What is the value of ORACLE_SID?
    What is the full and exact command line you enter from "Start > Run"?
    What happens when you "Start > Run > cmd", then enter "sqlplus /nolog"?

  • Error when login to sqlplus

    Hi, I was able to login to sqlplus. But when I ran a sql script which had some errors, the sqlplus exited (crashed??). When I tried to relogin, I got the following errors:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Please tell me how to solve this problem. Thanks.

    the error means you haven't started up your db yet before you run your SQL*Plus script. please log on as sysdba and startup and try again.

  • Why are people so crazy about XML publisher?

    Why are people so crazy about XML publisher? Maybe there are things I am not aware of, but with the exception of adding the ability to export to Excel from EBS, or having a template for a letter in which a few things will change from copy to copy, I don't see a huge advantage to using it.
    Reports is such a powerful tool and creates so much flexibility in creating graphical documents. Things that are so easy to do in reports, from my experience, is extremely difficult to impossible in XML publisher. In publisher, you have to do a lot of logic yourself that reports would do for you just by saying Yes or No to a property.
    When I first learned about XML publisher, I was really excited about learning to use it. But when I saw how difficult it is to do simple tasks, and how much you have to reinvent the wheel, I became really disappointed. There are lots of examples on the web about how to do this or how to do that with it, but honestly they seem to show you how to go to a lot of trouble to accomplish something that is easy in reports.
    People seem to want to avoid bitmapped reports like the plague, but I think they are extremely underrated.
    What do you guys think? Am I missing something? I would like to hear other opinions and perspectives.
    Thanks,
    Kurz

    Hello Kurz,
    BI Publisher (XML Publisher)
    - can use any relational DB
    - can easily be connected to Oracle Applications (Siebel, JD Edwards, ...)
    - Templates can be edited by users
    - more output formats
    Have a look at http://www.oracle.com/technology/products/xml-publisher/docs/BI_Publisher_for_Apps.pdf
    or the product home at http://www.oracle.com/technology/products/xml-publisher/index.html
    Regards
    Marcus

  • Why are people asking for certain model numbers

    why are people asking question such as this ? Hi I was wondering if you could send me the model number of this item I am looking for a specific Model and want to make sure before I bid. The model I'm looking for is G3 the model number will start like this CGN5

    Go to this link and you will see that WRT54G/GS models from version 1 to version 5 are diferent if you look at the amount of RAM and Flash they contain.
    More RAM and Flash is better of course.
    Click here.
    (Mod note: Link edited to prevent the page from stretching.)
    Message Edited by surix on 08-08-2006 06:23 AM
    Message Edited by twenty3 on 08-08-2006 06:30 AM

  • Database not created under RHL9, unable to login to sqlplus,

    I have installed Oracle9.2.0.4 in Red Hat Linux9 without dbca. While installing it showed me the error, unable to install dbca.
    It prompts for
    stop installation of this product only
    stop installation of all products
    While selecting the first option, atlast it showed me that "Installation of Oracle9i database was unsuccessful"
    But all the files are installed in my directory.
    Also i am unable to login to SQLPLUS.
    I have done uninstalling the products and installing more than three times.
    Help me.
    Regards,
    Raaj

    Hi,
    I have done all the settings as per instructions in http://www.puschitz.com/InstallingOracle9i.shtml. But still i am facing the same problem.
    When executing lsnrctl start or lsnrctl status in terminal, it shows command not found.
    I am unable to execute any database or sql command in prompt.
    It shows "command not found"
    Help me,
    Raaj

Maybe you are looking for

  • Getting SQL to recreate tablespaces in new database

    Hi, This is probably a dumb question but is there a way I can generate the sql to recreate all the tablespaces in my database. I have one with 100+ tablespaces each with several datafiles? I looked at backup controlfile to trace but this just gives m

  • My itouch wont turn on after i completely restarted it

    i did a complete restart which would erase all the content in my itouch,  but i think the itouch died during the hour long restart process and now my itouch wont turn on, all it does is show the apple logo.

  • Screen dim / Input/output error

    I have an Asus N80 laptop. With the latest kernel/nvidia update suddenly my screen is getting dimmed. I've tried http://bbs.archlinux.org/viewtopic.php?id=63102 which seems to be the solution, however when I try: echo 1 > /sys/devices/platform/asus-l

  • Broken root filesystem

    Hello, I've got two eeePCs, both running arch, and yesterday I updated packages and manage to break both of them They've got a 8GB SSDisk per each, on which only Arch is installed. The fisrt one has got a boot partition (/dev/sda1) on EXT2, and a roo

  • Confusion about disc setup.

    Hi all I've read lots and lots about how best to set up discs for Premiere Pro but I'm sitll confused about my own particular setup and was wondering if some nice person here could advise me on how I should proceed. I have just built a new PC for vid