SQLPLUS login

Hello,
I have the following question:
If I log into sqlplus with:
sqlplus system/manager
the username and password are validated correctly and I can only log in if 'manager' is the correct password.
However, if I log into sqlplus with:
sqlplus 'system/wrongPasswd as sysdba'
it does not not appear to verify the password, I am logged in anyway and can perform all administrative actions (i.e. drop users etc.)
Would anyone know which setting determines this security glitch?
Thanks, ChrisBe

You (the Opearating System logged in user) have DBA group assigned so that you can login AS SYSDBA without requiring a username and/or password.
Below, even though there is no user JUNK, I can still login AS SYSDBA using that non-existant user. See that the user I actually logged in as is SYS (not JUNK).
SQL*Plus: Release 9.2.0.3.0 - Production on Fri Aug 6 08:23:16 2004
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
Enter user-name: junk/junk
ERROR:
ORA-01017: invalid username/password; logon denied
Enter user-name: junk/junk AS SYSDBA
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.3.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.3.0 - Production
SQL> show user
USER is "SYS"
SQL>Below, you can see that if I do not have DBA group assigned to me for a particular database, I get insufficient privledge error instead (even though the user JUNK does not exists):
SQL*Plus: Release 9.2.0.3.0 - Production on Fri Aug 6 08:27:43 2004
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
Enter user-name: junk/junk@XXXXX
ERROR:
ORA-01017: invalid username/password; logon denied
Enter user-name: junk/junk@XXXXX AS SYSDBA
ERROR:
ORA-01031: insufficient privileges
Enter user-name:

Similar Messages

  • SQLPlus login hangs because of "Thread 1 cannot allocate new log"

    Hi to everybody!
    Could you please give an advice how to overcome the following situation.
    In my 10GR2 database I have destination for archive logs placed in ASM disk group. When suddenly this disk group becomes overfilled I can not login into the database even "/as sysdba" locally. The best solution is to switch log_archive_dest_1 to some other place, but as I mentioned I even can not login into the database to do this change. Another solution is to free some space in ASM disk group by deletion of some archive logs. But if I have a Standby DB and if I delete some archive logs I'll lose my Standby DB.
    I will be glad to hear your real life's experience :)
    Thank's in advance!

    Dear Sybrand, I've used search button a lot. I'd be happier if you had pointed where the documentation has something useful for my situation. May be you meant
    an alternate destination for archive logs, but as you know there is no exact upper bound for the "REOPEN" parameter. So switching can take undetermined time.
    Seems to me I've made a full description of my situation.
    I was not able to login to the database - this is a fact. My database is quite up to date (PSU 4) and OS environment is set correctly. So i don't believe that my case is something very uncommon.
    Let me make several clarification:
    1)I can not extend LUN on wich ASM disk group has been created, because this operation requires restart of the host - not an online operation.
    2) I can not move archive logs from my ASM disk group to ether another one or to the file systems, because a) I can not login into the database neither through SQLPLUS nor through RMAN 2) in 10GR2 "asmcmd" doesn't have an ability to copy files ("cp")
    3) Let's imagine (it can be) that connectivity with standby had been broken before my incident took place and none of the archive logs was shipped to the Standby site. This exclude an option of deleting some of archive logs through the "asmcmd" and "rm" because none of them were applied to a standby.
    The only solution I used is to find some idle opened consoles in a SCREEN (linux) and use them. But this method is not quite reliable.
    P.S. When I said "SQLPlus login hangs" I meant "/as sysdba", not just simple login.. It is clear that simple login will fail.

  • SQLPLUS login as SYSDBA

    Hi Guys,
    When I try to login as SYS, oracle complains that I should connect as SYSDBA or SYSOPER. Fine. Now I enter the login user as SYSDBA and enter the password..it fails. However, if I login as user scott and password tiger, I can login. Then from the SQL prompt I do:
    connect SYS/<password> as SYSDBA;
    and it works. So my question is, when I use the same <password> as login prompt and user as SYSDBA or SYSOPER, why does that fail and how can I change to make that work directly without loggin in as some other user and then manually change to SYS.
    Thanks

    you must use a special screen
    http://machine_name.domain:port/isqlplus/dba
    check your sqlplus manualAre you sure?
    I always do:
    http://machine_name.domain:port/isqlplusdba
    Note that in that case you must use htpasswd before ...

  • Bowser login works, sqlplus login fails

    I can login on the browser with the username and password, but sqlplus produces the message:
    ORA-12638: Credential retrieval failed
    This was working with beta 2 and beta 3. Now I have installed the released production version and it fails.
    Please advise. Thanks.

    This is on XP SP2. Database and listener appear to be running. There are -no- ORA* environment variables defined. The XE ./bin directory is the only Oracle in the PATH. Logging in on the browser works.
    C:\Documents and Settings\pwatson>ver
    Microsoft Windows XP [Version 5.1.2600]
    C:\Documents and Settings\pwatson>ps.vbs|grep -i ora
    Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
    264 oracle.exe c:\oraclexe\app\oracle\product\10.2.0\server\bin\ORACLE.EXE
    292 TNSLSNR.EXE C:\oraclexe\app\oracle\product\10.2.0\server\BIN\tnslsnr.exe
    C:\Documents and Settings\pwatson>sqlplus
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 25 12:48:11 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter user-name: pwatson
    Enter password:
    ERROR:
    ORA-12638: Credential retrieval failed

  • Windows SQLPLUS login error

    When attempting to login using Sqlplus
    username = sys/ as sysdba
    passwd = *********
    Host String = orcl
    The screen runs some lines on the window so quick and then terminates?
    However If I login as system with out trying to use sysdba connection it works.
    Windows 2003 server
    Oracle 10G.2
    Am I doing something wrong??

    Oracle Server-Enterprise and Standard Edition/DBA Administration Technical Forum
    Found this in another forum.
    From: Mark Brinsmead 07-Feb-06 20:33
    Subject: Re : /@servicename as sysdba
    In order to allow remote connections as SYSDBA, you need to do the following:
    1. Create a password file for your database(s) using the 'orapwd'
    utility.
    2. Set the init parameter REMOTE_LOGIN_PASSWORDFILE to either
    EXCLUSIVE or SHARED.
    3. Restart the database.
    4. (Re)set the passwords for SYS and any other users to whom you have
    granted SYSDBA privilege. (Note, if using a SHARED password file,
    you effectively cannot grant SYSDBA to anybody other than SYS.)
    5. For remote SYSDBA sessions, always authenticate with a
    USERNAME/PASSWORD. This is mandatory for SYSDBA, regardless of
    the setting for OS/remote-OS authentication.
    After you do this, you'll be able to connect to databases using
    a connect string of the form:
    CONNECT SYS/*******@my_db.my_domain AS SYSDBA
    By the way, SETTING REMOTE_OS_AUTHENT=TRUE is extremely dangerous
    and should never be done under any circumstances. It won't work for
    sysdba sessions anyways. If you have followed earlier advice to
    enable that feature, TURN IT OFF NOW!
    Not sure if this is Windows

  • Newbie sqlplus login only works with sqlplus username/password@xe, why?

    I am using the Express edition 10g on an ubuntu linux 686 box . I have the oracle xe service running and have my bash environment setup correctly . However When I say
    just "sqlplus" to connect to my databases
    The sqlplus application prompts me for username first and then for the password. However it never recognized either and gives the following errors
    ORA-01034 : Oracle not available
    ORA-27123 : unable to attach to shared memory segment
    Linux Error: 13: Permission denied.
    If I instead in the same shell I run
    sqlplus username/password@xe
    Then it logs me in fine without any errors.
    I wanted to understand why the first way where I enter my username and password at the prompts does not work and give me the ORA-01034 and ORA-27123 errors since a lot of the installation seemed a bit of a blackbox for me.
    Thanks for your help in advance
    Hari

    Hi Avi,
    I have setup my environment as mentioned in the installation docs
    So despite that I am getting the errors.
    The only way to not get the error is to say sqlplus username/password@xe
    Here is what the ORACLE_HOME and Oracle_SID are set to:
    myname@hjubuntu:~$ echo $ORACLE_HOME
    /usr/lib/oracle/xe/app/oracle/product/10.2.0/server
    myname@hjubuntu:~$ echo $ORACLE_SID
    XE
    myname@hjubuntu:~$ sqlplus
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Dec 4 00:41:00 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter user-name: myname
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27123: unable to attach to shared memory segment
    Linux Error: 13: Permission denied
    Thanks
    HJ
    Edited by: 817787 on Dec 3, 2010 9:44 PM

  • SQLPlus Login Problem

    Can't access SQL Plus (10g)
    Now installed it
    Dont have a username and password
    created host string orcl7
    Error Message : Can not resolve the connect idenifier specified
    Thanks

    Is this a request for help or an attempt at haiku?
    It sounds like you are trying to connect to Oracle from SQL Plus but you have at most a host name. As the SQL Plus login form (in Windows anyway) will show, you need two more pieces of information: 1) username 2) password. That's assuming everything else is set up correctly. Talk to your DBA.
    If you installed this Oracle yourself then you must have selected a password for the sys account. Login as "sys as sysdba" and create a user account for yourself.

  • Delay in sqlplus login

    When an oracle user logs in sqlplus username/password, it take about close to a minute for the user to get in. I clearly see a delay in there. Any explanations as to why is this delay..
    Thanks
    S~

    There might be two reasons why. Perform a connection from your local server by means of the @TnsAlias. Perform another test, connect directly at the server machine without networking. Meassure response time. And perform the same action remotely. If times are significantly different , it means the problem has to do with networking configuration. Otherwise verify the contents of trace files, you should have the listener.trc and sqlnet.trc files (enable tracing). Once you have collected this information, use the trace assistant tool to convert the trace files into a readable output.
    If times are quite the same, even if you connect locally, then it means there are problems with authentication routins at the database level, excesive resource consumption, swapping, or other lack of resources at the database level that prevents the connection from doing it in a timely manner. Further tuning will have to be performed at the DB level and OS level, as the spawn/bequeath process is taking more than expected.
    ~ Madrid.

  • Sqlplus login/ tsnnames

    Hi,
    I've installed the 9.2.0.5 Patch on a Windows 2000 server. Sqlplus worked OK so far. After installing htmldb 1.5 from the companion CD I'm no longer able to connect to the database from the command promp. It always returns the error message ORA 12154.
    When I connect to the database with the enterprise manager everything works well. Even the identical connect with sqlplus worksheet is successfull.
    # TNSNAMES.ORA Network Configuration File: D:\oracle\ora92\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    DVSORA2 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = olgsdvnsi1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = dvsora2.local)
    DVSORA2_OLGSEGBNSI1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = olgsegbnsi1)(PORT = 1521))
    (CONNECT_DATA =
    (SID = dvsora2)
    (SERVER = DEDICATED)
    DBSTR_10.20.84.46 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.20.84.46)(PORT = 1521))
    (CONNECT_DATA =
    (SID = dbstr)
    (SERVER = DEDICATED)
    INST1_HTTP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = olgsdvnsi1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = MODOSE)
    (PRESENTATION = http://HRService)
    DVSORA2_OLGSDVNSI1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = olgsdvnsi1)(PORT = 1521))
    (CONNECT_DATA =
    (SID = dvsora2)
    (SERVER = DEDICATED)
    The first entry seems to be the one (created when installing patch 9.2.0.5) used by the EM and sqlplus worksheet.
    The last entry is the old one. I've got a VB application, which does not work, when I delete this entry.
    I don't know what kind of function the three other entries have. There is only one database (dvsora2) installed.
    Any ideas why it doesn't work?
    Cheers,
    Synnoeve

    I assume your second installation (HTMLDB) has changed your default ORACLE_HOME, so tnsnames.ora (located in D:\oracle\ora92\network\admin) cannot be found. Check it by copying sqlnet.ora,tnsnames.ora to <HTMLDB_HOME>\network\admin. You may also set TNS_ADMIN as environment variable to define a unique directory for tnsnames.ora .

  • Sqlplus login confussion

    Hi,
    I have different scenerios here and getting error in few, Help me to identify the problem in 2 and 3 scenerios.
    Oracle DB Server is 11.2.0.3.0 in RHEL 6 server
    Oracle Client is 11.2.0.1 in another RHEL 6 server
    Trying to connect DB Server from Oracle Client
    In Oracle Client server I use the following export variables
    export ORACLE_HOME=/opt/oracle/product/11.2.0/client_1
    export PATH=$ORACLE_HOME/bin:$PATH
    export ORACLE_SID=kdb
    tnsping kdb is ok
    Scenerio 1: Able to connect
    $ sqlplus system@kdb/dbora
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 29 09:51:14 2014
    Copyright (c) 1982, 2009, 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>
    Scenerio 2: Not able to connect (oracle_sid is exported)
    $ sqlplus system/dbora
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 29 09:52:40 2014
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    Scenerio 3: Not able to connect (oracle_sid is exported)
    $ sqlplus sys as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 29 09:54:50 2014
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Enter password:
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    I need this to work since I need to connect through an application.
    Thanks in advance,
    Rao.

    You haven't a database on your client, have you?
    You can't connect in this way. ORACLE_SID and TNS are different things.
    You can't use ORACLE_SID from a client.
    Scenerio 2: Not able to connect (oracle_sid is exported)
    $ sqlplus system/dbora
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 29 09:52:40 2014
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    You can't connect in this way. You haven't a database on your client
    Scenerio 3: Not able to connect (oracle_sid is exported)
    $ sqlplus sys as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 29 09:54:50 2014
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Enter password:
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    Regards

  • SQLPLUS - LOGIN PROBLEM 9iR2/Redhat9

    Hi everyone...
    Could anybody solve this error, I am trying to connect to oracle 9iR2 on Redhat9 when i give the command sqlplus its giving this error....
    [oracle@localhost oracle]$ sqlplus /nolog
    sqlplus: error while loading shared libraries: /opt/ora9/product/9.2/lib/libclntsh.so.9.0: invalid ELF header
    Thanks...
    SMGhouri

    The reason of a bad relink ?
    The similar errors i saw were due to :
    - OS patch missing
    - not enough memory
    - some OS error (max process, ...)
    - bad LIBRARY_PATH or library mising (for example, when you install an Oracle version on a non certified OS, some library could be missing, renamed or in a different place... => i remember to have make some links on few librarys when installing 8i - which was certified on RedHat - on a Mandrake distribution :-))
    Fred

  • SQLPLUS login error

    I receive this error when i try to connect to db via sqlplus:
    SQL> connect / as sysdba
    ERROR:
    ORA-01041: internal error. hostdef extension doesn't exist

    sda,
    Did you see this thread:
    Re: Another Install Problem (With Log Files)
    Are you on Windows? If so, did you install as Local Administrator?
    Sergio

  • Sqlplus login security issues

    Users are frequently logging in from the OS with sqlplus and supplying <username>/<password> on the command line despite being told not to. Anyone with an OS account can see the usernames/passwords if they issue the solaris "w" command.
    What can be done about this to disable accepting the password this way and forcing sqlplus to prompt?
    regards,
    --M                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Justin Cave wrote:
    There are shell scripts (and C programs) that have been around for eons that will allow you to replace the regular sql*plus executable with an executable or a shell script that puts thousands of spaces or dashes on the command line before the username & password in order to make it difficult if not impossible for the ps command to display the username & password. For example, a Korn shell script from 1993 will allow you to replace the sqlplus executable with a shell script that throws 3000 dashes before the username and password. Oracle years ago provided a c program hide.c that is probably floating around somewhere. Fundamentally, though, you're trying to work around the functionality of the operating system so it's a bit of an uphill battle.
    From a security standpoint, however, the right answer is almost certainly
    - use externally authenticated accounts rather than forcing people that can log in to the server to specify another password to connect to the database
    - teach DBAs that entering passwords like that (or putting hard-coded passwords in scripts) is a security risk just like you'd tell them not to send passwords to users in clear-text emails
    JustinWhile it would take a bit to work out the details, and it might be a bit of a kludge, but I can imagine a shell script, schedule to run every minute, that would parse out the results of 'ps -ef' and kill any processes found in violation of the policy.

  • SQLPlus behaving differently in DOS prompt than in windows tool - why?

    I'm executing the following using both sqlplus from a DOS prompt, and in the SQLPlus Windows application. I get different behavior and am trying to determine why. Here's the code:
    create procedure JUSTTESTING (DebugStatus IN VARCHAR2)
    AS
    BEGIN
    <do stuff>;
    IF DebugStatus = 'MakeChanges' THEN
    commit;
    DBMS_OUTPUT.PUT_LINE('Changes Made!');
    ELSE
    rollback;
    DBMS_OUTPUT.PUT_LINE('Not gonna do it');
    END IF;
    END;
    Case 1: I fire up the Windows SQLPlus application and type in:
    "execute justtesting('MakeChanges');"
    it responds "Changes Made!"
    If I type "execute justtesting('Just kidding');"
    it responds "Not gonna do it"
    This is as expected, of course.
    Case 2: Now, let's store the following in a text file called "a.sql":
    execute justtesting('MakeChanges');
    execute justtesting('Just kidding');
    quit
    Then I type this from a DOS box:
    sqlplus login/pwd@env @a.sql
    The output says:
    "PL/SQL procedure successfully completed"
    "PL/SQL procedure successfully completed"
    The PUT_LINE does not execute, nor does the commit when I give the right parm. Why, and how can I make it work?
    This is Oracle 8.0 - I know that's way behind the times but that's unfortunately beyond my control.

    user12955329 wrote:
    I'm executing the following using both sqlplus from a DOS prompt, and in the SQLPlus Windows application. I get different behavior and am trying to determine why. Here's the code:
    create procedure JUSTTESTING (DebugStatus IN VARCHAR2)
    AS
    BEGIN
    <do stuff>;
    IF DebugStatus = 'MakeChanges' THEN
    commit;
    DBMS_OUTPUT.PUT_LINE('Changes Made!');
    ELSE
    rollback;
    DBMS_OUTPUT.PUT_LINE('Not gonna do it');
    END IF;
    END;
    Case 1: I fire up the Windows SQLPlus application and type in:
    "execute justtesting('MakeChanges');"
    it responds "Changes Made!"
    If I type "execute justtesting('Just kidding');"
    it responds "Not gonna do it"
    This is as expected, of course.
    Case 2: Now, let's store the following in a text file called "a.sql":
    execute justtesting('MakeChanges');
    execute justtesting('Just kidding');
    quit
    Then I type this from a DOS box:
    sqlplus login/pwd@env @a.sql
    The output says:
    "PL/SQL procedure successfully completed"
    "PL/SQL procedure successfully completed"
    The PUT_LINE does not execute, nor does the commit when I give the right parm. Why, and how can I make it work?
    This is Oracle 8.0 - I know that's way behind the times but that's unfortunately beyond my control.As Anurug says, in the command line version you'll need to do...
    set serveroutput onbefore any dbms_output calls are made so that SQL*Plus retrieves the contents of the DBMS_OUTPUT buffer and displays it.
    As for you saying the commit does not execute, there doesn't appear to be anything in your code to commit, so how are you determining that?

  • Install oracle 8.1.7 in Solaris Problem

    I have completed to install Oracle in solaris and
    created database, when I use sqlplus login to new created database
    The following error is displayed:
    "ora-07217 : sltln : environment variable cannot be evaluated"
    The following is the environment variable for oracle user
    HOME=/oracle_data1/oracle/product/8.1.7
    HZ=100
    IFS=
    LD_LIBRARY=/oracle_data1/oracle/product/8.1.7/lib:/usr/openwin/lib:/usr/db/lib
    LD_LIBRARY_PATH=/oracle_data1/oracle/product/8.1.7/lib:/usr/openwin/lib:/usr/db/lib
    LOGNAME=eprc817
    MAILCHECK=600
    OPTIND=1
    ORACLE_BASE=/oracle_data1/oracle
    ORACLE_HOME=/oracle_data1/oracle/product/8.1.7
    ORACLE_SID=eprc
    PATH=/usr/bin:/usr/ucb:/etc:/oracle_data1/oracle/product/8.1.7/bin:/usr/ccs/bin:/usr/openwin/bin:.
    PS1=$
    PS2=>
    SHELL=/bin/sh
    TERM=ansi
    TZ=Hongkong
    set shmsys:shminfo_shmmax=4294967295
    set shmsys:shminfo_shmmin=1
    set shmsys:shminfo_shmmni=400
    set shmsys:shminfo_shmseg=50
    set shmsys:seminfo_semmni=100
    set semsys:seminfo_semmsl=1024
    set semsys:seminfo_semmns=1024
    set semsys:seminfo_semopm=100
    set semsys:seminfo_semvmx=32767

    You may try to add the environment variable
    ORACLE_TERM=vt100 which is not include in your envornment setting.

Maybe you are looking for

  • Unable to Install iTunes in Windows 8 - 64 bit

    Hi All, I am trying to install the new version of itunes but it failed. Keep getting an error message. (see attached picture) Please help. Thanks!

  • Lost half my info on a external---need help

    Last night I powered up my mac, and my external firewire wasn't recognized by my mac ( it does that sometimes) I changed my connection and used a fire wire 400...and for some reason only a few of the icons for my data,applications, folders ect...were

  • Project Pro 2010 not saving Header or Footer entries

    Using Project Pro 2010 SP1 32bit and have an issue where I have added Header and Footer details from the Print screen(Page Setup), it prints fine, and then I save/publish the plan. The next time I open the plan, the header and footer details are not

  • We could not complete your request

    I am trying to buy an app via the App store, but each time I try, I get the error stated in the subject of this message. Below the words "we could not complete your request" is the following text: "There was an error in the App Store. Please try agai

  • Videos taken on a sony hx9v camera to iphoto

    how do i import videos taken on my sony hx9v camera to iphoto