oracle tips
===========================================================
Problem to connect as SYSDBA(zt from asktom)
===========================================================
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) [回复]

buy Cialis onine

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

buy Lipitor onine

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

buy Propecia onine

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

plus size womens clothes

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

barbie clothes/a>

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

polo ralph lauren

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

ralph lauren polo shirt

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

ralph lauren perfume

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

ralph lauren furniture

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

ralph lauren outlet

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

buy soma

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

handbag

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

coach handbag

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

designer handbag

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

free search engine

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

free search engine

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

christmas tree

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

christmas tree shop

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

louis vuitton handbag

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

consolidate debt

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

buy soma

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) [回复]

buy tramadol

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

buy viagra

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

soma drug

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

soma cod

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) [回复]

cialis online price

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

1

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

marshall vs xavier septembe

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

jocuri barbi noi dres up

Diesel 评论于: 2008.06.18 21:32

发表评论
标题

在此添加评论
表情符号: smile laughing tongue angry crying sad wassat wink

称呼

邮箱地址(可选)

个人主页(可选)




切换风格
新闻聚合
博客日历
文章归档...
最新发表...
博客统计...
网站链接...