Sqlplus / as sysdba--how it works

When we login as
sqlplus / as sysdba
we login as SYS user, but how no userid or password is given but still we login as SYS user ??

Try this :-
[timepass@adc2110341 bin]$ ./sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jan 7 04:57:28 2011
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> show user
USER is "SYS"And then this :-
[timepass@adc2110341 bin]$ ./sqlplus /
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jan 7 04:57:51 2011
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> show user
USER is "OPS$TIMEPASS"Thanks.

Similar Messages

  • Sqlplus "/as sysdba" is not working

    We created oinstall group & oracle user (group is oinstall) on Solaris 10, 64bit SPARC box. And installed oracle 10g release 2. From the UNIX box sqlplus "/as sysdba" is not working.
    sqlplus
    Enter user-name: sys as sysdba
    Enter password:
    is working fine.
    What could be the problem? Please help.
    Thanks,
    Prasad

    For any of a number of reasons, you do not have 'operating system authentication' enabled.
    This setup is fairly well described here http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/dba.htm#sthref149

  • How to restirct sqlplus '/as sysdba' logins?.

    Hi,
    Anyone know how to restirct
    sqlplus '/as sysdba'
    logins from the Unix prompt.

    Hi,
    Anyone know how to restirct
    sqlplus '/as sysdba'
    logins from the Unix prompt.You can add SQLNET.AUTHENTICATION_SERVICES=(NONE) to the $ORACLE_HOME/network/admin/sqlnet.ora on the database server.
    Attempts to login as / as sysdba will receive ORA-01031: insufficient privileges .
    This will force all users to provide a password.

  • Use of sqlplus / as sysdba in oracle 11g

    What is purpose of sqlplus / as sysdba
    if the database is at client place he can see the data by modifying the existing users password right?
    how to restrict logging under sqlplus / as sysdba by giving some password for it to login

    933663 wrote:
    How to track the no of log-in attempts made for this database either success or failure.
    Any sys table is there to track the records
    Thanks!Unless you have changed the defaults, all connect attempts by normal users are logged to the sys.ayd$ table, and all connects as sysdba are logged to files in audit_file_dest (Unix) or the application log (Windows).
    Edited by: JohnWatson on Jan 24, 2013 9:56 AM
    Typo: for ayd$ read aud$

  • ORA-01031: insufficient privileges when loggin in as sqlplus "/ as sysdba"

    I have recently got a brand new Solaris Box. Have restored the ORacle Home from a live server.
    then gone to restore a database from Tape.
    All done fine.
    However I cannot seem to login as
    $>sqlplus "/ as sysdba"
    I can only seem to login as
    $>sqlplus /nolog
    then
    SQL>connect sys/password as sysdba
    I have shut the Database down and recreated the password file
    orapwd file=$ORACLE_HOME/dbs/orapwFMZ password=passowrd entries=50
    Tried again but the same response... a spool of which is below.
    $ sqlplus "/ as sysdba"
    SQL*Plus: Release 9.2.0.8.0 - Production on Thu Apr 5 09:49:23 2012
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    ERROR:
    ORA-01031: insufficient privileges
    Enter user-name: ^C^X^Z
    SQL> connect / as sysdba
    ERROR:
    ORA-01031: insufficient privileges
    $ sqlplus /nolog
    SQL*Plus: Release 9.2.0.8.0 - Production on Thu Apr 5 09:49:36 2012
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    SQL> connect sys/password as sysdba
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 68386816 bytes
    Fixed Size 729088 bytes
    Variable Size 54525952 bytes
    Database Buffers 12582912 bytes
    Redo Buffers 548864 bytes
    Database mounted.
    Database opened.
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    I have inlcuded a list of parameters below FYI
    SQL> show parameter remote
    NAME TYPE VALUE
    remote_archive_enable string true
    remote_dependencies_mode string TIMESTAMP
    remote_listener string
    remote_login_passwordfile string SHARED
    remote_os_authent boolean TRUE
    remote_os_roles boolean FALSE
    Please can someone help.
    Best Regards,
    M
    Edited by: user5856470 on Apr 5, 2012 2:11 AM

    I have tried what has been suggested but with no result
    SQL> alter system set remote_login_passwordfile=exclusive scope=spfile;
    SQL> show parameter remote_log
    NAME TYPE VALUE
    remote_login_passwordfile string EXCLUSIVE
    SQLNET.AUTHENTICATION_SERVICES = (ALL)
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    Bounced the database but no result...
    $ sqlplus "/ as sysdba"
    SQL*Plus: Release 9.2.0.8.0 - Production on Tue Apr 10 15:54:37 2012
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    ERROR:
    ORA-01031: insufficient privileges
    I have reset the parameters back to original. As this is the parameters in the source database system which is working with sqlplus "/ as sysdba"
    As you can see, I can log in as below but not with remote authentication....
    $ sqlplus
    SQL*Plus: Release 9.2.0.8.0 - Production on Tue Apr 10 15:54:42 2012
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Enter user-name: sys/password as sysdba
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    FYI.
    I did delete the password file and recreated it as well. But cannot still connect as sqlplus "/ as sysdba"
    Any Ideas???

  • How TimesTen works

    Hi,
    I am new to TimesTen. I would like to know how Timesten works. I have created a cache group on table test and have loaded it with 2GB of data. Now if I issue a query from sql plus will it execute on the cache group or from the database?

    TimesTen provides a full-blown relational database and you use it like any other RDBMS. Whatever approach you use to connect to a database, the data access interface and the tool's connection dictates what database you are connecting it to.
    The cache group tables you created are TimesTen tables, so you use TimesTen SQL connection to access them. The equivalent SQL interactive tool is ttIsql.
    SQLPlus is the interactive tool for the Oracle Database, not for TimesTen.
    -scheung

  • Sqlplus -prelim command is not working.

    Hi ,
    sqlplus -prelim command is not working for me. It is giving me the below error.
    oracle@xyz: /app/oracle/product/10.2.0/bin $*sqlplus -prelim*
    SQL*Plus: Release 10.2.0.3.0 - Production on Fri Aug 7 10:31:54 2009
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Enter user-name: oracle
    Enter password:
    ERROR:
    ORA-24300: bad value for mode.
    I am solaris 5.10 and database is 10g.
    Thanks
    Naveen.

    what -prelim command?
    sqlplus -help
    SQL*Plus: Release 10.2.0.4.0 - Production
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Usage 1: sqlplus -H | -V
        -H             Displays the SQL*Plus version and the
                 usage help.
        -V             Displays the SQL*Plus version.
    Usage 2: sqlplus [ [<option>] [<logon>] [<start>] ]
      <option> is: [-C <version>] [-L] [-M "<options>"] [-R <level>] [-S]
        -C <version>   Sets the compatibility of affected commands to the
                 version specified by <version>.  The version has
                 the form "x.y[.z]".     For example, -C 10.2.0
        -L             Attempts to log on just once, instead of
                 reprompting on error.
        -M "<options>" Sets automatic HTML markup of output.  The options
                 have the form:
                 HTML [ON|OFF] [HEAD text] [BODY text] [TABLE text]
                 [ENTMAP {ON|OFF}] [SPOOL {ON|OFF}] [PRE[FORMAT] {ON|OFF}]
        -R <level>        Sets restricted mode to disable SQL*Plus commands
                 that interact with the file system.     The level can
                 be 1, 2 or 3.  The most restrictive is -R 3 which
                 disables all user commands interacting with the
                 file system.
        -S             Sets silent mode which suppresses the display of
                 the SQL*Plus banner, prompts, and echoing of
                 commands.
      <logon> is: (<username>[/<password>][@<connect_identifier>] | /)
               [AS SYSDBA | AS SYSOPER] | /NOLOG
        Specifies the database account username, password and connect
        identifier for the database connection.  Without a connect
        identifier, SQL*Plus connects to the default database.
        The AS SYSDBA and AS SYSOPER options are database administration
        privileges.
        The /NOLOG option starts SQL*Plus without connecting to a
        database.
      <start> is: @<URL>|<filename>[.<ext>] [<parameter> ...]
        Runs the specified SQL*Plus script from a web server (URL) or the
        local file system (filename.ext) with specified parameters that
        will be assigned to substitution variables in the script.
    When SQL*Plus starts, and after CONNECT commands, the site profile
    (e.g. $ORACLE_HOME/sqlplus/admin/glogin.sql) and the user profile
    (e.g. login.sql in the working directory) are run.  The files may
    contain SQL*Plus commands.
    Refer to the SQL*Plus User's Guide and Reference for more information.

  • 'sqlplus /' v.s. 'sqlplus / as sysdba'

    I have a RAC with two nodes. on one node I can log in as 'sqlplus /'; on the other, it doesn't work. I can only log in as 'sqlplus / as sysdba'. I compared the parameters and they are the same on both nodes. Why is that? Thanks.

    As a minimum you should always include the 4-digit version number and the full O/S name and version, in everyone of your posts, in order to allow people to help you. No one here keeps track of here configuration and will remember what you are running.
    sqlplus / is a legitimate login when you have an externally identified oracle account with the same name as the current O/S user.
    Sybrand Bakker
    Senior Oracle DBA

  • Unable to connect to Oracle using OS authentication (sqlplus / as sysdba)

    Hello,
    When I try to connect locally ,using OS authentication ( sqlplus / as sysdba ), on a Oracle database, I get "ORA-01031: insufficient privileges" error.
    OS: Windows XP
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod.
    connecting as sysdba using sys/pasword works.
    I have setup :
    -> Log on as a batch job
    -> Log on as a service
    I am also member of ORA_DBA group.
    I mention that connecting "/ as sysdba" worked many months after I've installed the Oracle database. But at some moment in time connecting "/ as sysdba" was no longer possible.
    C:\>sqlplus / as sysdba
    SQL*Plus: Release 10.1.0.3.0 - Production on Wed May 23 11:08:52 2007
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    ERROR:
    ORA-01031: insufficient privileges.
    Thank you for any suggestion.

    Hi,
    I have the same issues from the beginning..
    I have two Oracle homes ( One for earlier installed SOA10g, and another for current installing SOA11g).
    I have the right sqlora.net file. I have removed the old path and reset to point the new oracle home. I have this home entry as the first entry in my Universal installer too.
    I AM ABLE TO CONNECT WITH sys USER AS SYSDBA on THE SAME SYSTEM ( I MEAN WHERE i INSTALLED THE DATABASE) USING THE command prompt.
    But I am not able to connect as the SYSDBA with sys ACCOUNT through the SQLDeveloper tool. or RCU tool? Any help please. Again I am able to connect as a normal user through the SQL developer using the SYSTEM account.
    -- Khaleel

  • Why sqlplus / as sysdba create 4 connections?

    Hi all,
    I have a 4 node rac set-up running 11.2.0.2.
    If I log on to one of the 4 servers and connect to the database using sqlplus "/ as sysdba" it connects to the local database but also
    creates another 4 connections (one on each instance) so I end up with 5 connections. I wanted to know
    a) why it does this,
    b) how it does this
    c) can I stop it doing this (if I just so wanted to?)
    Many thanks

    Hi Billy,
    your response made me dig a bit deeper, and I found out what it was!
    My query to return sessions was from gv$session, and I was using the gv$session.module column to show the connection.
    However, if I changed this from module to gv$session, it returned the oracle PZ99 process.
    Looking on Metalink, I see this process is used to return data from remote nodes and was introduced in 10g RAC.
    Looking at the columns together, you will see way I thought the way I did originally!
    Inst   SID    SERIAL# USERNAME  MODULE                      PROGRAM
        1    35      17861 SYS      sqlplus@db01 (TNS V1-V3)    sqlplus@db01 (TNS V1-V3)
        3   324      34635 SYS      sqlplus@db01 (TNS V1-V3)    oracle@db03 (PZ99)
        2   320      46165 SYS      sqlplus@db01 (TNS V1-V3)    oracle@db02 (PZ99)
        1   641      36247 SYS      sqlplus@db01 (TNS V1-V3)    oracle@db01 (PZ99)
        4   639      39893 SYS      sqlplus@db01 (TNS V1-V3)    oracle@db04 (PZ99)Thanks

  • I coud not connect by sqlplus / as sysdba

    export ORACLE_SID=prod
    sqlplus / as sysdbait gives the following error:
    ora-01030:insufficient privilege
    how could i login by / as sysdba? do i need some setting?

    You should create a special group for 'dba'.
    Some installations also prefer you create an 'oinstall', but I prefer not to use it myself.
    Rather, I just use the 'dba' group.
    You should have an entry in your /etc/group file similar to:
    dba:!:201:oracle
    Then, in your password file, you should see the 'group' field (4th field) with the group ID that is in the /etc/group file.
    oracle:!:215:201::/home/oracle:/usr/bin/ksh
    Above, notice that the password entry notes the Oracle User ID (UID) is 215, and the Group ID (GID) is 201.
    This is just an example (of course), and yours will be different.
    As a recommendation, you might make a DBA group with ID 501 and then change the Oracle group ID to 501.

  • How to work with both desktop and Surface pro 3

    Hello,
    I have a desktop for my normal use of Adobe Creative Cloud for Photoshop and Lightroom.  I have my lightroom catalog on a separate external drive.  I just got Surface pro 3 to do Adobe on it.  I am now confused on how to work on Surface and how to access my Lightroom catalog.
    Thanks for your help.
    Mo

    Just install Lightroom on your Surface Pro, plug-in the external drive, and double-click the LR catalog file.

  • How to work with 360 video?

    I am new to AE and am trying to work with a 360 equirectangular video I shot with a Freedom 360 and 6 go pros.
    Are there any tutorials on how to work with 360 spherical videos? Do I need to download additional plugins?
    Thank you,
    Phil

    Phil,
    Of course, the image needs to be big for this, but the plugin you would use is CC Sphere.
    Drop your movie into a composition and apply CC Sphere to the video.
    Then set the Render option in the effect to "Inside".
    Under Shading set Ambient to 100% and Diffuse to 0%.
    Then scale inside the effect until the image fills the screen.
    Then you'll be able to use the Rotate Y controls in CC Sphere to spin around inside your video!
    You can also add Optics Compensation and Reverse the Lens Distortion to straighten out your image.
    Let me know if you have any questions!
    Trent

  • Hey Guys, from Germany. I want to connect my iMac 21" with my Tv just for fun. Does anyone know, how it works. With a Hdmi adapter?

    Hey guys! I want to connect my Imac 21 " with my Tv just for fun. Does anyone know , how it works?

    Selecting the correct adapter and cable depends on which year model iMac you have and what inputs the TV has?
    Check the User's Guide that came with your iMac or your Spec's at > Apple - Support - Technical Specifications
    to see if your iMac has a Mini-DVI or Mini DisplayPort and then select that adapter with the correct connection for the TV.
    Example: if you have a 2010 or 2011 iMac and an HDMI ready TV, then you would want the > Moshi Mini DP to HDMI Adapter with Audio Support - Apple Store (U.S.)

  • I was looking at the "Find my iPhone" app and I have a doubt regarding how it works for the macbook. In order to detect the location, the macbook should remain signed into iCloud. What if the thief logs out of iCloud. Would we able to locate the macbook?

    I was looking at the "Find my iPhone" app and I have a doubt regarding how it works for the macbook. In order to detect the location, the macbook should remain signed into iCloud. What if the person who has stolen my macbook logs out of iCloud.
    It should work fine for iPhone/iPad because we can enable "Restrictions" to prevent the user from signing out of iCloud. Do we have simialr settings for the macbook?
    Thanks,

    If it's not on the device list, it indicates that someone has gone to Find My iPhone on icloud.com and manually deleted it from the device list (as explained here: http://help.apple.com/icloud/#mmfc0eeddd), and it has not gone back online since (which would cause it to reappear on the device list; Find My iPhone has been turned of in settings on the device; the iClolud account has been deleted from the device; or the entire devices has been erased and restored.
    Unfortunately, there's no other way to track the phone other than through Find My iPhone.  You could call your carrier and see if they would blackliste it so at least the theif couldn't use it.

Maybe you are looking for

  • My macbook pro isn't connecting to any wifi. HELP?!

    My macbook had all of a sudden stopped connecting to my wifi, I've restarted it and still nothing worked. I've tried to connect my macbook to other wifi's and still the same, it has a tick next to the correct wifi but says 'no internet connection' bu

  • HP LaserJet 2820 All-in-One fails to print on right side of the page

    I have HP LaserJet 2820 All-in-One for 1.5 years now and before the first set of cartridges run out of ink, the printed page comes out blur or no printing on the right side of the page. No smear on the right page.  It doesn't matter if I used color o

  • SAP  6.00   and  Adobe Acrobat Reader 9

    Hi   gurus, Can someone know why SAP 6.0  and Adobe Acrobat Reader 9 was not compatible ? Thanks a lot Soufiene

  • Pls advice........its urgent

    Please advice any FM that takes excel sheet file from local drive and convert the data present in excel sheet into text tab delimited as the output.......My input file should be excell sheet only.......i will call gui upload to get the file.but later

  • An URL link to a ".dot" file doesn't start MS-word.

    When a page has a link to file with suffix ".dot" I expect that the file is being opened with MS-office (WORD) , Just like IE. Instead of that the contetnt of the dot file is presented in firefox itself. I have searched for a way to change the behavi