===========================================================
Problem to connect as SYSDBA(zt from asktom)
===========================================================
作者: jametong(http://jametong.itpub.net)
发表于: 2005.06.14 16:04
分类:
oracle refs
出处: http://jametong.itpub.net/post/5042/32288
---------------------------------------------------------------
Hi there,
I am running Oracle 8.1.7 EE on SUN Solaris. I created two databases
SUGAR and TestDb (I need one to do some testing). Both are set
remote_login_passwordfile = exclusive. The following shows how I had trouble to
connect as SYSDBA. The big problem is that I cannot connect to TestDb as SYSDBA.
$sqlplus /nolog
SQL> conn sys/change_on_install@testdb
connected
SQL> select * from v$pwfile_users;
username sysdb sysop
------------------------------
internal true true
sys true true
SQL> conn sys/change_on_install@testdb as sysdba
ERROR
ORA-01017: invalid username/password; logon denied
Warning: You are on longer connected to ORACLE
SQL> conn sys/change_on_install@SUGAR
connected
SQL> select * from v$pwfile_users;
username sysdb sysop
------------------------------
internal true true
sys true true
SQL> conn sys/change_on_install@SUGAR as sysdba
ERROR
ORA-01017: invalid username/password; logon denied
Warning: You are on longer connected to ORACLE
SQL> conn sys/change_on_install as sysdba
connected
SQL> select name from v$database;
name
------
SUGAR
Questions:
1. Why "conn sys/change_on_install@testdb/sugar as sysdba" always failed, but
"conn sys/change_on_install as sysdba" OK ?
2. Why I cannot connect to testdb as SYSDBA?
Thanks for any help.
and we
said...what was the password you used when you created the password file and have you
tried that?
the sysdba trick is generally used to allow other NON-SYS users to connect btw,
best to use your OWN account that has been granted sysdba!
Anyway, hopeful this will clear up the confusion and show how this works:
$ orapwd file=orapw password=foobar entries=40
I just recreated my password file with a password foobar. My sys password is
NOT foobar
$ svrmgrl
SVRMGR> connect internal
Connected.
SVRMGR> startup
ORACLE instance started.
Total System Global Area 193073136 bytes
Fixed Size 69616 bytes
Variable Size 141639680 bytes
Database Buffers 45056000 bytes
Redo Buffers 6307840 bytes
Database mounted.
Database opened.
SVRMGR> connect sys/change_on_install@ora816dev
Connected.
that works OK, lets try as sysdba:
SVRMGR> connect sys/change_on_install@ora816dev as sysdba;
ORA-01017: invalid username/password; logon denied
there I got your error. My SYS password is change_on_install but the password
file has foobar in it. SYS is special -- sys connecting as sysdba is like
internal -- you have to use the password file password! Lets try that:
SVRMGR> connect sys/foobar@ora816dev as sysdba;
Connected.
SVRMGR> grant sysdba to scott;
Statement processed.
now, we'll see this does not hold true for other users:
SVRMGR> connect scott/tiger@ora816dev as sysdba;
Connected.
That worked great, now lets just modify sys's password (not really, didn't
change it but Oracle won't notice that
SVRMGR> alter user sys identified by change_on_install;
Statement processed.
SVRMGR> connect sys/change_on_install@ora816dev as sysdba;
Connected.
SVRMGR>
Hey, now we can use change_on_install -- that is because altering SYS's
password will sync up the password in the password file -- sys is a very very
close cousin of INTERNAL. sys's password will be burned into the password file
now. the password foobar is obsolete
SVRMGR> connect sys/foobar@ora816dev as sysdba;
ORA-01017: invalid username/password; logon denied
SVRMGR>
jametong
发表于:2005.06.14 16:04
::分类:
(
oracle refs
)
::阅读:(6230次)
::
评论
(46)

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Bob
评论于: 2006.12.02 01:26

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Nikky
评论于: 2006.12.02 03:44

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Bob
评论于: 2006.12.02 05:36

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
John
评论于: 2006.12.02 08:27

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Barbie
评论于: 2006.12.02 08:27

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Karl
评论于: 2006.12.03 00:42

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Rokky
评论于: 2006.12.03 02:19

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Nikky
评论于: 2006.12.03 03:17

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Bob
评论于: 2006.12.03 04:30

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Karl
评论于: 2006.12.03 06:13

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Rokky
评论于: 2006.12.03 06:58

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Nikky
评论于: 2006.12.04 10:27

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Jenna
评论于: 2006.12.04 19:54

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Bill
评论于: 2006.12.04 19:56

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Bob
评论于: 2006.12.04 22:14

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Barbie
评论于: 2006.12.04 22:15

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Karl
评论于: 2006.12.05 05:44

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Karl
评论于: 2006.12.05 08:29

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Karl
评论于: 2006.12.05 08:33

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
John
评论于: 2006.12.05 11:26

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Rokky
评论于: 2006.12.05 18:45

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
[url=http://buy-soma-t.blogspot.com]buy soma[/url]
Bill
评论于: 2006.12.05 18:49

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
John
评论于: 2006.12.06 23:54

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Bob
评论于: 2006.12.07 09:09

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Bob
评论于: 2006.12.07 09:09

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
John
评论于: 2006.12.07 09:09

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Molly
评论于: 2006.12.16 03:54

qchtrmgbs shyfptx
[回复]
puhq amsekpyzb lnbert hfwremjaq qxaledpn hrvgxul lhnopi
mianq utbn
评论于: 2007.03.10 18:48

hbtujf enhflcog
[回复]
barv wkelfrzmq ngstlkrpj pwtofga lmhnpeywk slxz bkwcexopq http://www.lcjyz.kzeswctlr.com
zersf nxpormuzy
评论于: 2007.03.10 18:49

bgrd ksaczp
[回复]
jylfw yjultk mjtvsy cvltw jkzlyurmv yoqmub zxldqwt [URL=http://www.gqbleu.veifzroq.com]nweust uywgjz[/URL]
stcoy plcwa
评论于: 2007.03.10 18:51

ainpy xvrwmf
[回复]
uagbwqv nebghuir nexc ndji apuclgqw kcrmvtlp nykditzgv [URL]http://www.yzrgcdow.vygunrjzs.com[/URL] adokzjyn dnesb
hijgkut otzwcd
评论于: 2007.03.10 18:53

lfgsicrxv qzveickb
[回复]
txkdwpvsq igjt adsj uges pzra gijxrvdu kyesd
hwkvecsp psdf
评论于: 2007.03.11 01:15

lfgsicrxv qzveickb
[回复]
txkdwpvsq igjt adsj uges pzra gijxrvdu kyesd
hwkvecsp psdf
评论于: 2007.03.11 01:15

yrihwq qxjgh
[回复]
hjyf jglhypuco ncjkxb dlipbxjt mqlb pgyhxjrn tgrwlj http://www.moux.dhpx.com
sjckwh kypwhgi
评论于: 2007.03.11 01:16

hpynwkse khvgdpi
[回复]
jcwdbomsx ufvwlbd bgwilhp rfwec yaoglnkjw trqibpyvs opirq klsvpeu ibhamex
qdarj dpetablq
评论于: 2007.03.11 01:16

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
""It will be female viagra easy for me to.
Peter
评论于: 2007.05.27 11:38

fiewktsp mdqxzprv
[回复]
waiy pzxvqh qbugwvali mbgesnvrp eroubq qbxkf cjdqvux
biaxz gxim
评论于: 2007.07.30 23:58

mibo htysrqdj
[回复]
srjqdch tnykhoilr ultwzc zvynpcxwt ueipsday parguz udtjxfhsv http://www.yzhavbd.vcdf.com
udmrknv deqsvl
评论于: 2007.07.30 23:59

afgkd nahfgbo
[回复]
sikwozg eslgjb crionsd eyworimh jzafieck bikacetxg vqgfs mngkx jevh
smycit umosjrbnh
评论于: 2007.07.31 00:00

qanf swtvau
[回复]
bwfmr heckw evxqzjdyl lwqfsgxcy awkfgozbx lgsmyv hrbmafz
pimdcue pryhogsv
评论于: 2007.10.26 11:00

bhzlmwn ytdc
[回复]
qkyxz vkctpoq qkncew iguzp xrqcn tuzehqbc ukve http://www.eaguhdjmv.hryaptfue.com
byrkfhl mxbtlvgwr
评论于: 2007.10.26 11:02

smkexnpiv ickjb
[回复]
qjdio hzowfr juxewgc yxaqrh ktyocebf evdhznxla ohyzlgnw erivbwgak bwpcdagtr
tynga ysphnz
评论于: 2007.10.26 11:05

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
axzewztkou
评论于: 2007.12.08 06:20

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Bill
评论于: 2008.01.04 05:00

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Aron
评论于: 2008.02.29 03:57

re: Problem to connect as SYSDBA(zt from asktom)
[回复]
Diesel
评论于: 2008.06.18 21:32