Connection sys as sysdba
Hi,
Our DB is in 8.1.7.4 on Win 2003 server. If I connect
SQL> connect sys/mypassword@MYDB as sysdba
I have
ERROR:
ORA-01017: invalid username/password; logon denied
But if I issue :
SQL> connect sys@MYDB as sysdba
Enter password:
It would be OK :
Connected.
What is the problem ?
Thank for help.
In the two cases I entered the correct password and I'm sure of it.
By default, the SYS password on 8i is change_on_install, is it the one you used ?
Furthermore, the user/password used when you are conneting as sysdba doesn't matter :
E:\apps\oracle\ora0817\bin>sqlplus /nolog
SQL*Plus: Release 8.1.7.0.0 - Production on Wed Oct 1 18:44:03 2008
(c) Copyright 2000 Oracle Corporation. All rights reserved.
SQL> conn kuere/eiriuur@DEMO817 as sysdba --obviously this user/password doesn't exists onto the database
Connected.
SQL> show user
USER is "SYS"
SQL> disc
Disconnected from Oracle8i Enterprise Edition Release 8.1.7.4.1 - Production
With the Partitioning option
JServer Release 8.1.7.4.1 - Production
SQL> conn sys/change_on_install@DEMO817 as sysdba
Connected.
SQL> show user
USER is "SYS"
SQL> disc
Disconnected from Oracle8i Enterprise Edition Release 8.1.7.4.1 - Production
With the Partitioning option
JServer Release 8.1.7.4.1 - Production
SQL> conn sys@DEMO817 as sysdba
Enter password:
Connected.
SQL> show user
USER is "SYS"
SQL> disc
Disconnected from Oracle8i Enterprise Edition Release 8.1.7.4.1 - Production
With the Partitioning option
JServer Release 8.1.7.4.1 - Production
SQL> conn /@DEMO817 as sysdba
Connected.
SQL> show user
USER is "SYS"
SQL> show parameter password
NAME TYPE VALUE
remote_login_passwordfile string EXCLUSIVE
SQL>Please, check the remote_login_passwordfile parameter value as I showed here above. Are you locally on the server or remote connection ?
Lastly, some unexpected behaviour can come on non-certified config (8i on W2003), but you already know that.
Nicolas.
Similar Messages
-
Metadata Repository Creation Assistant cannot connect SYS
Hi!
I have Oracle10.2.0.1.0 running on Oracle EL4. ORACLE_HOME is /opt/app/oracle/product/10.2.0/db_1 and ORACLE_SID is "orcl".
I have installed MRCA in /opt/app/oracle/product/10.1.4.0.1/mrca. After installation, I run MRCA with /opt/app/oracle/product/10.1.4.0.1/mrca/runRepca. When I get to the section to enter connection information, I enter the SYS password but it fails to connect.
I can go into sqplus and do sqlplus /nolog , and then do connect / as sysdba (as user oracle). That works. However, I have the administrator client software installed in /opt/app/oracle/product/10.2.0/client_1, and when I launch "oemapp control" I cannot connect sys as sysdba (I get an insufficient privileges error).
Please help!there are prerequisits to RepCA, did you check all of them?<<To be honest with you, no.
The OAS MRCA User's Guide has over 25 pages of install requirements (Sections 1.3, 1.5 and 1.6, and surprisingly, the section for installing RepCA, 1.4 comes before the requirement sections for the database and OID), with lots of rabbit trails to follow (for steps here, go here; this stuff is discussed over there, etc) to follow before you can get the whole picture.
In all fairness to Oracle, there's plenty of information there in the docs, not just in a well organized manner, IMHO. Of course, complexity helps Oracle University fill up training sessions. :) For someone who simply wants a cookbook to get up and running in as short a timeframe as possible so that s(he) can start doing work with these technologies (for example, a Java developer that doesn't need/care to know about Oracle DB administration but that needs access to a DB or Portal instance to work on his/her projects but has no access to a DBA resource) following a long trail of docs, release notes, addendums, and interspersed bits of knowledge is just running out of luck.
So what I did is, since RepCA runs its own requisites check when you launch the installer, and my intended install met all of them (except shmmax being like 4GB; my system only has 3GB) I went with that. With help from this forum I was able to figure out how to proceed with the install... now the message about RepCA not supporting Oracle DB 10g 10.2.0.1.0... on Oracle EL4... if it doesn't work I don't know yet what I'm going to do. I've spent significant time working through the matrix to identify a set of components that can happily live with each other and allow me to do some work!
Thanks for your input. I'll follow the link and be more patient and read more (on the prerequisites) and hopefully I'll be able to navigate the maze in order to help out another newbie tomorrow.
Thx! -
Hi ,
I have installed Oracle 11.2.0 . When connecting to sqlplus with sys as sysdba . Getting error as NO listener .
I started listener . But finally getting the message as
The listener supports no services
The command completed successfully
Kindly helpI am getting the same message
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/11.2.0/dbhome_1/log/diag/tnslsnr/oracledb/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracledb.example.com)(PORT=1521)))
The listener supports no services
The command completed successfully
I don't find the services entry here . -
CONNECT INTERNAL 시 SYS에 PASSWORD 걸기(SYSDBA, SYSOPER)
제품 : ORACLE SERVER
작성날짜 : 1997-03-31
SYS user 에 passwd 거는 방법
===========================
이를 걸게 되면 connect internal 접속 시 passwd를 물어보게 되며 DBA group이
아닌 다른 user에서도 sys user와 똑같이 작업할 수 있다.
1) initSID.ora 화일에
REMOTE_OS_AUTHENT = TRUE
REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
2) ?/dbs 에서
orapwd file=orapwSID password=my_password entries=10
(이 때의 SID는 실제의 ORACLE_SID 를 적어주어야 함.)
3) connect internal 후
grant sysdba to scott
grant sysoper to scott 를 부여한다.
이를 부여하면 sys의 passwd를 알지 못해도
SVRMGR> connect internal;
SVRMGR> passwd ? :
만약 passwd 를 모르면
SVRMGR> connect scott/tiger as sysoper ;
SVRMGR> startup 이 가능하다.
참고) 이의 효과를 위해 /etc/group 화일에 oracle os user가 DBA group 이
아니어야 하며 일반 user에서도 위의 작업을 똑같이 실행하려면 configSID.ora
화일을 oracle user 아닌 다른 user에도 실행이 가능할 수 있도록 실행 MODE가
4755 이어야 한다.If you want to connect a new user as SYSDBA or SYSOPER, you must first create a repository. Check some document for creating a repository with seperate tablespace.
-
Is possible to connect db with sys/sys as sysdba in SQLPLUS utility
Hi all,
I'm using windows 2000 with oracle 10.1.0
I have to connect server through SQLPLUS utility. I can able to connect system/manager@instance_name
From system user, i cant able to query >archive log list; .Im getting error as permission denaid.
is any possbilities there to login as super user(sys/sys as sysdba) in SQLLUS utility.
Thanksconnect sys/sys@instance_name as sysdbaUses password file in $ORACLE_HOME/dbs, connecting through SQL*NET
connect sys/sys as sysdbaUses the BEQ protocol to connect to the database process directly and uses OS authentication, meaning your can use whatever username or password, it does not matter, same as connect / as sysdba - It will always connect to the SYS schema regardless. For this to work, your account needs to be in the SYSDBA group. (DBA - Linux, OSDBA - Windows).
See the oracle standard documentation for creating a password file under Windows.
When you have created the passwd file, you can reset the password using
sqlplus / as sysdba
alter user sys identified by 'password' ; -
Cannot sqlplus sys as sysdba from remote server :ORA-12154
Hi,
I am trying to connect from linux VM app server to the database as sys as sysdba but it returns TNS error. I verified that listener is up, the REMOTE_LOGIN_PASSWORDFILE is exclusive and there is password file.
[ORACLE@SERVER admin]$ sqlplus sys as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Apr 12 21:45:08 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
==============================================
It works when I give the DB name
[ORACLE@SERVER admin]$ sqlplus sys@ODB2 as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Apr 12 21:49:50 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
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>
==================================================
Could anyone please help me with the issue ?
Edited by: Cherrish on Apr 12, 2013 10:53 PMCherrish wrote:
Hi,
I am trying to connect from linux VM app server to the database as sys as sysdba but it returns TNS error. I verified that listener is up, the REMOTE_LOGIN_PASSWORDFILE is exclusive and there is password file.
[ORACLE@SERVER admin]$ sqlplus sys as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Apr 12 21:45:08 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specifiedRealize that sqlplus line above shows no @TNS_ALIAS so no SQL*Net should be used to connect.
please type EXACTLY (line for line) as shown below
env | sort
sqlplus
/ as sysdba
COPY the results from above then PASTE all back here -
Hi,
Can anyone tell me why following happens ? my DBA told me that
the sys password is change_on_install
SQL> connect sys/change_on_install@dslim2
ERROR:
ORA-01017: invalid username/password; logon denied
SQL> connect sys/change_on_install@dslim2 as sysdba
ERROR:
ORA-01031: insufficient privileges
Many thanks.
IvanGo Through Below Links
>>>Cannot connect as sys user?
[b]>>>Re: SYS user password -
When I execute dbms_streams_auth.grant_admin_privilege procedure as a user granted the DBA role. I get the following error:
ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_STREAMS_AUTH", line 1211
ORA-06512: at line 2
I can only execute this command with the sys as sysdba on the oracle host. Not as system user from an external machine.
anyone know which privilege that sys user has that system doesnt ? I have tried all the execute privileges, but its not working.
SveinHello
The basic reason why this can not be done with the SYSTEM user is that SYSTEM does not have all the privileges granted with GRANT OPTION. Now if you would like to make system to perform this, please follow the below:
connect / as sysdba
create directory tmp_dir as '/tmp';
--i assume strmadmin user exists already
begin
dbms_streams_auth.grant_admin_privilege
grantee=>'SYSTEM',
grant_privileges=>false,
file_name=>'strm_privs.sql',
directory_name=>'tmp_dir'
end;
Now edit the file 'strm_privs.sql' and modify all the grant statements and add WITH GRANT OPTION clause. Execute this file from SYS so that SYSTEM gets all the required privileges. Now you should be able to perform this from SYSTEM itself.
I have not tested this and verified. Still I doubt the last statement in the file will still fail and you need this to execute from SYS:
BEGIN
dbms_streams_auth.grant_remote_admin_access('strmadmin');
END;
Thanks,
Rijesh -
Can not able to log in into sys as sysdba
Hi all,
I have one instance name is skydb and once upon a time i used it when i created it.i did set one password for the sys user and created password file.but right now i have forgot the password of sys.again creating the password file using below command.
orapwd file=orapwdskydb password=oracle entries=10but can not able to log in into sys as sysdba using this 'oracle' password .
for your information now the database is down.we also need to up it.
please help.
thanks a lot in advance.
atanuHi All,
first of all thaks a lot for your promt reply.now for your information my os info is
Linux oracleDB11g 2.6.32-71.el6.i686 #1 SMP Fri Nov 12 04:17:17 GMT 2010 i686 i686 i386 GNU/Linuxmy account user is in DBA group and its confirm.
now am giving the output of the
each command
[oracle@oracleDB11g admin]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 23 11:04:25 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
ERROR:
ORA-01031: insufficient privileges and
[oracle@oracleDB11g admin]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 23 11:05:59 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> connect / as sysdba
ERROR:
ORA-01031: insufficient privilegesalso want to tell you I have created that password file on location is
/oracle/app/oracle/product/11.2.0/dbhome_1/dbsthanks once again
atanu -
Difference between /as sysdba and sys /as sysdba
Hi,
What is the difference between logging to an oracle dba as
1. sys /as sysdba ->asking for password of sys user
2. /as sysdba -> Logging into the database without asking password.
Also pl explain me the difference between OS authentication and Password Authentication.
Regards,
JibuDear Jibu,
An administrative users belongs to the "dba" group on Unix, or the "ORA_DBA" (ORA_sid_DBA) group on Windows, he/she has the Admin OS writes, so its allows to connect without password.
connect / as sysdba ('/') is treated as root user and he will login without asking for password.
Its simple as, when you logged in as Root user and you want to log to some another user, simply you have to give su abc command, it will get login as abc without asking for password.
Remove root user from DBA group, then try to connect by passing connect / as sysdba, this time it will ask for password.
Edited by: Akram on Oct 12, 2011 4:57 AM -
Error Usage: CONNECT username [AS SYSDBA|SYSOPER]
Hi,
I am running a request set which starts of with unix shell script.
I get this error:
Invalid option.
Usage: CONNECT <username> [AS SYSDBA|SYSOPER]
Invalid option.
Usage: CONNECT <username> [AS SYSDBA|SYSOPER]
Invalid option.
Usage: CONNECT <username> [AS SYSDBA|SYSOPER]
unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
Can anyone tell me why this is happening/
thanks
AshThis is the unix script which is used:
Please let me know where is goin wrong:
#!/usr/bin/ksh
##sqlplus -s apps/w0rkin <<-ENDSQL
logi=`echo $1|awk '{print $3 }'`
login=`echo $logi|awk -F'=' '{ print $2 }'|sed 's/"//g'`
org_id=`echo $1|awk '{print $9 }'`
sqlplus -s $login <<ENDSQL
set serveroutput on size 1000000 verify off
define xxdata=${XXDATA}
variable xxdatav varchar2(100)
var status_out NUMBER;
define org=$org_id
DECLARE
v_xxdata_path1 Varchar2(100);
v_xxdata_path2 Varchar2(100);
v_errbuf Varchar2(100);
v_retstat Number;
v_org VARCHAR2(20);
BEGIN
--v_xxdata_path1 := '&xxdata'||'/ont/outbound';
v_xxdata_path1 := '&xxdata'||'/ont/oraout';
v_xxdata_path2 := '${XXDATA}';
dbms_output.put_line('1. XXDATA ='||v_xxdata_path1);
dbms_output.put_line('2. Organization Id ='||'&org');
select decode('&org','""','-1',null,'-1','&org')
into v_org
from dual;
dbms_output.put_line('v_org='||v_org);
xxont_bt_outbound_pkg.create_outbound_btfile(v_xxdata_path1,to_number(v_org),
v_errbuf,v_retstat);
dbms_output.put_line('v_retstat='||v_retstat);
:status_out := v_retstat;
--dbms_output.put_line('2. XXDATA ='||v_xxdata_path2);
:xxdatav := '${XXDATA}';
END;
print :status_out
exit :status_out
ENDSQL
if [ $? -ne 0 ]
then
echo "Outbound file creation failed!!!"
exit 1
else
exit 0
fi -
Shall i connect SYSTEM AS SYSDBA...?
Hi all..
Is it possible to connect SYSTEM as SYSDBA...? I tried to connect from
DOS prompt like this and i got privilage error.
C:\>sqlplus system/ucpspwd as sysdba
Error is
ORA-01031: insufficient privileges.
Thanks in advance.
Palconnect from DOS prompt I think you have to connect using the dos prompt on the server
-
I installed the 32-Bit version of Oracle 11gR2 on my Windows 7 x64 system because the x64 version wouldn't install. I downloaded the 32-Bit version of SQL Developer with JRE, but when I run SQL Developer, the default connections (SYS, SYSTEM, DBSNMP, and SYSMAN) are not available.
I have entered the tnsnames directory on the Database:Advanced Preferences screen, and restarted my PC, but there's obviously something I'm missing.
Suggestions?
Thanks.Hi Paul,
Once I connect to the Network Adapter, will the default ids show up?The SQL Developer Help says (and I believe this procedure works even if you cannot "connect" to the local database):
To create (automatically generate) a database connection for each unlocked user account in the Oracle database instance
on the local system, right-click the Connections node and select Create Local Connections. The connections are placed in
a folder named Auto-Generated Local Connections. Note that for these autogenerated connections (except for the one
named system-<database-name>), you will always be prompted for the password when you connect, and you cannot edit
the user name or password in the connection properties dialog box.Next, if this what you are actually asking, and you have a local database installed, then you need to make sure your database listener is up and running. Open a command line and try these commands:
lsnrctl statusIf it is not already started, either start it with
lsnrctl startor otherwise from your Windows Administrator Tools -> Services -> Oracle<home>Listener (right-click: Start)
Hope this helps,
Gary -
Getting ORA-01031: Insufficient privileges when connecting as sys as sysdba
Hi There,
I am running Linux AS version 4, oracle 102.0.1, and logginging as oracle user which belongs to dba group. I got error "ORA-01031: Insufficient privileges" when trying to connect as sys user to bring up database. I wondered what is causing the error. Here is an example
oracle-dev>sqlplus /nolog
SQL>conn as sys/oracle@dev as sysdba
ERROR:
ORA-01031: Insufficient privileges
Any suggestions would be greatly appreciated. Thanks again.
Rich,Did you create a password file ?
http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b15658/admin_ora.htm#sthref142
Message was edited by:
Paul M.
BTW, the syntax is
SQL>conn sys/oracle@dev as sysdba -
Cant conect "sys as sysdba" from remote
Hi all ,
A strange thing happening with me ..
my database is on ip(prod1) and client is ip(Host)
When I make connecttion from prod1 as follows :
sqlplus sys@prod1 as sysdba
connected ...
Its giving me sys connection .
But from IP (remote HOst client )
when i fire
sqlplus sys@prod1 as sysdba
LOGON denied ...
But from IP(remote Host client )when i firng
sqlplus scott/tiger@prod1
connected ....
1.i m typing crrect password
2. my remote_login_passwordfile = EXCLUSIVE1. Are you connecting to the right database ?
On you remote client:
$ORACLE_HOME/bin/tnsping prod1 and make sure that it'is resolving to the right service.
2. Try to connect via EZCONNECT (NAMES.DIRECTORY_PATH should contain ezconnect value):
$ORACLE_HOME/bin/sqlplus sys@hostname:port/service as sysdba
On your server
3. Check your $TNS_ADMIN/sqlnet.ora Make sure there is no such a line as
tcp.validnode_checking = yes
If so, make sure that your remote client is a part of tcp.invited_nodes
Maybe you are looking for
-
******Creation of a loading selection for cube in info package level
Hi, when we are scheduling the info package(Infp package name is like XYZ),we want to load past 6 months data from the current date(INFO OBJECT(0CREATEDON) BETWEEN (Sy-Datum - 6 months TO Sy-Datum),in the selection tab in schedule i want to write t
-
Can I find out what the New Features are for Updates?
When the Application Manager says an Update is available, as far as I can see so far, it just says New Features. Is there a web page that will give more details about what features etc. each update will provide? The Application Manager is not showi
-
My MacBook used to play DVDs. I've tried several that used to work on this computer, but none work now. How can I get my MacBook to play DVDs?
-
How can i recover my pic From my old phone since this is my new phone
HiHow can i recover my pic From my old phone since this is my new phone
-
Settings for icloud in outlook for mac
Up until today my outlook for mac worked just fine with my .me email. Now it cannot find the server. I also today got a new license agreement for icloud on my phone and noticed on my phone it is using the icloud smtp server. Are there new settings