Login in as SYSDBA
When I login with this command "Sqlplus SAM/password as sysdba" and do show user, it returned the User is "SYS"
is it suppose to return the User is "SAM"?
I have set remote_login_passwordfile = Exclusive
Select * from V$pwfile_users;
USERNAME SYSDBA SYSOPER
SYS TRUE TRUE
SAM TRUE FALSE
2 rows selected
Please advise
Thanks,
user8721301 wrote:
When I login with this command "Sqlplus SAM/password as sysdba" and do show user, it returned the User is "SYS"
is it suppose to return the User is "SAM"?
I have set remote_login_passwordfile = Exclusive
Select * from V$pwfile_users;
USERNAME SYSDBA SYSOPER
SYS TRUE TRUE
SAM TRUE FALSE
2 rows selected
Please advise
Thanks,As you connect with SYSDBA privilege, the user will act as a SYS user and all objects which are created by connecting SYSDBA privilege will be created under SYS schema
Similar Messages
-
Why I can't login as a sysdba on server?
Hi, all:
I can login as a sysdba under DOS prompt on my PC but can't on the server. Why?
I'm using NT platform.
Thank you
Mark
2000.12.04Did you happen to get an answer for this yet? I set up icloud on my phone 3 months ago and have used it. Now my phone is lost so I'm trying to login on the computer (first time doing that) with my icould email and password, and I get the same message? If I can't login to icloud.com, I can't use the FindMyPhone app...
-
Hello all,
I need to someone's help.
I just installed Oracle After 9i (9.2.0.1)Install on Windows 2003.
I can only login using scott/tiger.
cannot login as sys/sysdba/system
I used Oracle dtabase Configuration Assistant. At the last step it asked me if I want to change sys and system passwords, I did. However, I cannot verify if system took those. The default combinations system/manager sys/change_on_install are not working.
As well as my new passwords.
How can I resolve it?
Thank you in advance,
SonyaRecall what you used and you should be able to login .
OR
On windows create new password for sys user. This should work for you since you are on windows OS
back up the file in you ORACLE_HOME/database/PWD<SID>.ora
Create a new one using
orapwd file=...database/PWD<sid>.ora password=<new password> entries=5
stop the oracleService<SID>
start the oracleService<SID>
sqlplus /nolog
connect sys as sysdba
Enter password: <new password>
You should be able to login with this new password created
Ss -
Login as sysdba problem...
Hi,
I've created my own database to make tests on Oracle and directly after that I've changed the passwords for all the users (sys and system users included).
When I try to login without the sysdba role, Oracle applies the password verification fine.
The problem is when I try to login as sysdba:
$> sqlplus 'sys as sysdba'
I can enter whatever password I want and I'm connected !!!
And it's the same if first I type:
$> sqlplus /NOLOG
SQL*Plus: Release 9.2.0.1.0 - Production on Wed May 7 13:21:44 2003
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect sys as sysdba
Could someone help me to find where It comes from and how I do solve this security hole...
Thanks in advance
PaulWhat's the OS? Are you signed on to the OS as a user in > the DBA group?I'm using a Debian 3.0 (Woody) operating system with a Linux 2.4.18 kernel
I've got only one user which is a member of the DBA group and what I experienced, It's true, was only when I was logged as this user...
Does it means that when a user is a member of the DBA group on the operating system, even if the remote_os_authent parameter is set to false, he can login with sys as sysdba as he wants trough sqlplus ?
+++++++++++++++++++++++++++++++
Original message:
Hi,
I've created my own database to make tests on Oracle and directly after that I've changed the passwords for all the users (sys and system users included).
When I try to login without the sysdba role, Oracle applies the password verification fine.
The problem is when I try to login as sysdba:
$> sqlplus 'sys as sysdba'
I can enter whatever password I want and I'm connected !!!
And it's the same if first I type:
$> sqlplus /NOLOG
SQL*Plus: Release 9.2.0.1.0 - Production on Wed May 7 13:21:44 2003
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect sys as sysdba
Could someone help me to find where It comes from and how I do solve this security hole...
Thanks in advance
Paul
+++++++++++++++++++++++++++++++ -
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.
Thanksyou 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 ... -
Oracle Login with sysdba not working
Hi All,
I have oracle datatbase version 9.2.0.4 on solaris 9.
I have assigned sysdba to a user with grant command.
when i am trying to login with as sysdba option from a remote system running windows 2000 server, its giving error as follows.
ORA-01031: insufficient privileges
I can connect to the database without sysdba option.
Kindly let me know what could the issue in this.
thanksOnly granting is not enough, the user also need the proper connection.You should read up on admn type authentication methods and specifically using a password file.
-
Can't login isql*plus as sys sysdba
Installed 10g on Windows XP SP3.
Everything works fine except can not login as sys sysdba via url
http://I6000D:5560/isqlplus/dba
It prompts for ONLY username and password and connection ID. however, I don't where to enter 'As sysdba'. Tried put 'as sysdba' in each field but no use.
No problem from DOS command prompt: connect sys/pwd as sysdbaConfused about the info on the web site regarding enabling dba
- Do i do the enabling only, or everything after enabling, like ' To set up the iSQL*Plus DBA URL'?
- for enabling dba access, please provide detailed instructions since I have very little time to get this resolved
That web site pointing to a lot of documents. do not know which doc to look into...
Thanks for the help,
Dennis -
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. -
ADDM Report is not produced by SQL DEV 4.0 if logged in user does not have SYSDBA privilege
Hello -
In SQLDEV 4.0 (Early Adapter), I logged in as user with no SYSDBA privilege granted. But ADVISOR granted and execute on DBMS_ADDM granted and "select any dictionary" granted, etc.
Then i go to the menu View --> DBA --> Performance --> Automatic Database Diagnostic Monitor
Select ADDM report from the available choices.
Out of 3 menu options: Summary, Findings and ADDM Report, I can see the first two, but I am getting a grey screen for ADDM Report.
^^^^^^^^^^^^^^^^^^^^^
If i do exactly the same but login as SYSDBA, then ADDM Report can be produced and can be seen. So the issue is in the missing grants and privileges.
^^^^^^^^^^^^^^^^^^^^^^
The goal that we are pursuing in our shop is to empower developers to work with ADDM reports by having them login as non-SYSDBA user.
^^^^^^^^^^^^^^^^^^^^^^^^
Please advise what privilege should be granted to get this working for non-SYSDBA login
The same user can successfully execute $ORACLE_HOME/rdbms/admin/addmrpt.sql and produce file with complete ADDM report. But not able to get the ADDM from SQL DEV 4.0
Thank you,
vrThank you, Phil.
This worked for me in my quick test case.
Great help, as DBA group wants to allow NON-privileged users (like Developers and QA) to execute ADDM on demand.
Here is my observation for RAC database with two instances.
I have followed your instructions:
"Performance / Automatic Database Diagnostic Monitor -> Run ADDM"
Then
- Uncheck box "By Creating New Snapshot" (this box was checked by default)
- Provide new "Task Name" (let's say "vr1")
- Select "Start Snapshot" (this is where my first confusion is: each screen shot # is shown twice, may be because i have two instances of RAC)
- Select "End Snapshot" (the same way: each SNAP_ID is shown twice)
- and finally APPLY button is pressed
This creates 3 reports:
vr1
vr1$1 (for instance_id=1)
vr1$2 (for instance_id=2_
So, my question is: this expected and normal behavior of the tool?
What if my RAC database has 8 instances? Then I would generate 9 separate ADDM reports?
Is this correct observation?
Thank you,
vr -
Help with Oracle 10g--SYSDBA password
Hi,
I installed oracle 10g on my machine ( WIN XP Pro, 512 RAM ) . Installation was Ok and then I created a database which was created successfully.
But now I am trying to SQL PLUS to logon to database to run some scripts . I ma trying to login as SYS but it says I can only login in as SYSDBA or SYSOPR .
Problem is that while creating database it never asked for SYSDBA or SYSOPR passwords and I am just thinking may be there is a default password for these?
Please let me know how can I connect to database to run some scripts?
Any help will be appreciated.Hi Khushhal Mahajan, Oracle Corporation has upgraded the database creation procedure from version 9i, that if database is created that prompts for a password. At that time we cannot use the default password & more over SYSDBA & SYSOPR are not user logins they are psudeo roles. So you must remember the admin password which will be prompted at the end of the installation. Try the following
sqlplus /nolog
SQL> connect / as sysdba
Before this set the environment variable to your database instance.
If you are connected alter the sys and system user and change the password.
kamalesh jk -
Unable to login- ORA-12560: TNS:protocol adapter error
I have upgraded the oracle db to 11.1.0.7 from 11.1.0.0 . before upgrade i have stop the db and listener process.
after the upgrade, i have started the listener(mentioned the listener status below) and tried to login as a sysdba, but unable to login itself to the db. Kindly help me to login and to start the database.
Error msg :
bash-3.00$ cd $ORACLE_HOME
bash-3.00$ cd bin
bash-3.00$ sqlplus /nolog
SQLPlus: Release 11.1.0.7.0 - Production on Thu Apr 26 19:28:19 2012*
Copyright (c) 1982, 2008, Oracle. All rights reserved.
SQL> connect sys as sysdba
Enter password:
ERROR:
ORA-12560: TNS:protocol adapter error
bash-3.00$ lsnrctl status
LSNRCTL for Solaris: Version 11.1.0.7.0 - Production on 27-APR-2012 16:30:01
Copyright (c) 1991, 2008, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1525)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Solaris: Version 11.1.0.7.0 - Production
Start Date 27-APR-2012 10:50:31
Uptime 0 days 5 hr. 39 min. 30 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u02/AIUJAPAN/oracle11g/product/11.1.0/db_1/network/ad
min/listener.ora
Listener Log File /u02/AIUJAPAN/oracle11g/diag/tnslsnr/AIGUK/listener/al
ert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1525)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.95.24.10)(PORT=1525)))
The listener supports no services
The command completed successfully
bash-3.00$id
uid=100(oracle) gid=102(oinstall)
env | sort
CLASSPATH=:/oracle/AIG_IBM/AIG/classes12.zip:
COBDIR=/u01/opt/microfocus/cobol
HOME=/export/home/oracle
HZ=100
LD_LIBRARY_PATH=/u02/AIUJAPAN/oracle11g/product/11.1.0/db_1/lib
LOGNAME=oracle
MAIL=/var/mail/oracle
ORACLE_BASE=/u02/AIUJAPAN/oracle11g
ORACLE_HOME=/u02/AIUJAPAN/oracle11g/product/11.1.0/db_1
ORACLE_SID=AIUJAPAN
PATH=/usr/bin::/usr/local/bin:/usr/ccs/bin:/u02/AIUJAPAN/oracle11g/product/11.1.
0/db_1/bin
PWD=/export/home/oracle
SHELL=/bin/sh
SHLVL=1
TERM=ansi
TZ=Asia/Calcutta
_=/usr/bin/env
hostname
AIGUK.aig.com
cat /etc/hosts
# Internet host table
127.0.0.1 localhost
#10.95.24.73 AIGUK.aig.com
10.95.24.10 AIGUK.aig.com
10.95.24.10 AIGUK
#10.95.24.73 AIGUK
10.95.24.71 AIUNHLM
192.18.108.101 supportfiles.sun.com
#10.90.140.40 mailhost
10.90.140.55 mailhost
uname -a
SunOS AIGUK.aig.com 5.10 Generic_118833-20 sun4u sparc SUNW,Sun-Fire-V490
ifconfig
- This command is not working - saying "Command not found"
lsnrctl start
LSNRCTL for Solaris: Version 11.1.0.7.0 - Production on 04-MAY-2012 20:39:52
Copyright (c) 1991, 2008, Oracle. All rights reserved.
TNS-01106: Listener using listener name LISTENER has already been started
lsnrctl status
LSNRCTL for Solaris: Version 11.1.0.7.0 - Production on 04-MAY-2012 20:40:17
Copyright (c) 1991, 2008, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1525)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Solaris: Version 11.1.0.7.0 - Production
Start Date 27-APR-2012 10:50:31
Uptime 7 days 9 hr. 49 min. 45 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u02/AIUJAPAN/oracle11g/product/11.1.0/db_1/network/ad
min/listener.ora
Listener Log File /u02/AIUJAPAN/oracle11g/diag/tnslsnr/AIGUK/listener/al
ert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1525)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.95.24.10)(PORT=1525)))
The listener supports no services
The command completed successfully
lsnrctl service
LSNRCTL for Solaris: Version 11.1.0.7.0 - Production on 04-MAY-2012 20:40:46
Copyright (c) 1991, 2008, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1525)))
The listener supports no services
The command completed successfully -
ADDM Report is not produced if logged in user does not have SYSDBA privilege
Hello -
In SQLDEV 4.0 (Early Adapter), I logged in as user with no SYSDBA privilege granted. But ADVISOR granted and execute on DBMS_ADDM granted and "select any dictionary" granted, etc.
Then i go to the menu View --> DBA --> Performance --> Automatic Database Diagnostic Monitor
Select ADDM report from the available choices.
Out of 3 menu options: Summary, Findings and ADDM Report, I can see the first two, but I am getting a grey screen for ADDM Report.
^^^^^^^^^^^^^^^^^^^^^
If i do exactly the same but login as SYSDBA, then ADDM Report can be produced and can be seen. So the issue is in the missing grants and privileges.
^^^^^^^^^^^^^^^^^^^^^^
The goal that we are pursuing in our shop is to empower developers to work with ADDM reports by having them login as non-SYSDBA user.
^^^^^^^^^^^^^^^^^^^^^^^^
Please advise what privilege should be granted to get this working for non-SYSDBA login
Thank you,
vrThank you, Phil.
This worked for me in my quick test case.
Great help, as DBA group wants to allow NON-privileged users (like Developers and QA) to execute ADDM on demand.
Here is my observation for RAC database with two instances.
I have followed your instructions:
"Performance / Automatic Database Diagnostic Monitor -> Run ADDM"
Then
- Uncheck box "By Creating New Snapshot" (this box was checked by default)
- Provide new "Task Name" (let's say "vr1")
- Select "Start Snapshot" (this is where my first confusion is: each screen shot # is shown twice, may be because i have two instances of RAC)
- Select "End Snapshot" (the same way: each SNAP_ID is shown twice)
- and finally APPLY button is pressed
This creates 3 reports:
vr1
vr1$1 (for instance_id=1)
vr1$2 (for instance_id=2_
So, my question is: this expected and normal behavior of the tool?
What if my RAC database has 8 instances? Then I would generate 9 separate ADDM reports?
Is this correct observation?
Thank you,
vr -
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 prohitbit login as sys?
Hi All...
How to protect login : conn / as sysdba
because beginners also login as sysdba . So i want to protect him to login.
S.One thing is that dont allow them to connect to the server.
Because, the above command can be done on through the server.
Prevent them entering into the db server, which also prevents them accessing db as sysdba.
Jaffar -
Protocol Adaptor Error while creating a DB manually
Hi Friends,
In my pc already a DB is running (DBCA created db). Now I want to create a new one manually by running "create database..." script. I try to login "sys as sysdba" (after setting oracle_sid=db1) but it is giving the "ORA-12560: TNS:protocol adapter error" error. where as if I try to connect the existing db then it is getting connected. It is oracle 9i and windows XP os. Pls help me out.
Thnx in Advance...
Rajesh
Message was edited by:
RajeshBarnwalYou have to create a new service for the new database.
To craete databse manually:
1)create pfile for the new database.
Create it at default location.You can copy the pfile of existing database and modify it .
2)create service
ORADIM -NEW -SID db1 pfile "define pfile location"
3)conn /as sysdba
4)next you start the instance in nomount mode
startup nomount pfile ='your pfile location'
5)Create database command.
Maybe you are looking for
-
Lightroom features/bug fixes I would like to see in next version
I love the Adobe Lightroom Application. It is very intiutive and out of the different RAW processing programs I've tried, it is the only one that has most of the features I need and has the least amount of complications. However, I think there are st
-
Is this phising? or genuine? The link doesn't work btw
Hello, Your AppleID was just used to buy the "Dungeon Fighter 4" from the iTunes Store on a computer or device that had not previously been linked to your AppleID. This buying was registered from the following IP: 217.149.159.141 (Astrahan, Russia).
-
Vcard from iBook to iMac - more
One addition to your instructions. After I used my flash drive I did need to drag and drop the Vcard file onto the iMac hard drive. The Vcard I transfered was the ALL group. I have 14 other groups. Do I transfer each one, one at a time, or is there a
-
Hi, a friend is visiting and needs to open a power point on my mac. I downloaded file and tried to open in microsoft office ppt, however the file format is .key and I've no idea what that is or what to do with it, all I know is I can't open it!! Help
-
What happened to Layout Adjustment? CS6 MENA
Hey, what happened to Layout Adjustment?! I'm looking at InDesign CS6 8.0.1 ME version (Hebrew enabled, English interface). It's definitely not there under the Layout menu. I've got "Create Alternate Layout", "Liquid Layout", "Reverse Layout" (an ME