1. 程式人生 > >RMAN-10003: unable to connect to target database、ORA-01017: 使用者名稱/口令無效; 登入被拒絕

RMAN-10003: unable to connect to target database、ORA-01017: 使用者名稱/口令無效; 登入被拒絕

今天遠端協助處理一個RMAN無法分配備份通道的問題
備份腳本里run部分如下:

run{
allocate channel d1 device type disk connect 'sys/[email protected]';
allocate channel d2 device type disk connect 'sys/[email protected]';
backup format '/u01/testdb/testdb_%s_%R_%T.arc' archivelog all delete all input;
release channel d1;
release channel d2;
}

報錯如下:

using target database control file instead of recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-12001: could not open channel d1
RMAN-10008: could not create channel context
RMAN-10003: unable to connect to target database
ORA-01017: 使用者名稱/口令無效; 登入被拒絕


雖然無法分配備份通道,但已經收到ORA-01017,說明連線串TESTDB1和TESTDB2配置沒錯,測試連線證實:

[[email protected] testdb]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.4.0 Production on Fri Sep 19 12:57:18 2014

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

SQL> conn <a target=_blank href="mailto:system/[email protected]
">system/[email protected]</a>; Connect

sys使用者遠端登入需要讀取密碼檔案,如果密碼檔案損壞或丟失都將無法登入,檢查密碼檔案:

果然是密碼檔案orapwtestdb1出問題了.通過重建密碼檔案或修改密碼檔案的許可權可以解決問題:

$ orapw file=$ORACLE_HOME/dbs/orapwtestdb1 password=oracle entries=5 force=y

如果不知道這些引數是什麼意思,可以檢視命令幫助:

$ orapwd help=y
Usage: orapwd file=<fname> entries=<users> force=<y/n> ignorecase=<y/n> nosysdba=<y/n>

  where
    file - name of password file (required),
    password - password for SYS will be prompted if not specified at command line,
    entries - maximum number of distinct DBA (optional),
    force - whether to overwrite existing file (optional),
    ignorecase - passwords are case-insensitive (optional),
    nosysdba - whether to shut out the SYSDBA logon (optional Database Vault only).
    
  There must be no spaces around the equal-to (=) character.


重建密碼檔案之後就可以連線成功

相關推薦

RMAN-10003: unable to connect to target databaseORA-01017: 使用者名稱/口令無效; 登入拒絕

今天遠端協助處理一個RMAN無法分配備份通道的問題 備份腳本里run部分如下: run{ allocate channel d1 device type disk connect 'sys/[email protected]'; allocate channel

連接mongodb Unable to connect to server 127.0.0.1:27017: Invalid credential for database 'test'.

password alt red god 對象引用 客戶 技術分享 database word 用客戶端連接mongodb時,提示Invalid credential for database ‘test‘.或者未將對象引用設置到對象實例 解決方法: 將username、

安卓控件獲取器uiautomatorviewer初體驗:"unable to connect to the adb. check if adb is installed correctly"

isn tdi pty all hal hot cep accep challenge 解決方法:轉自:https://plus.google.com/108487870030743970488/posts/2TrMqs1ZGQv Challenge Accepted:1.

VISUALSVN: UNABLE TO CONNECT TO A REPOSITORY AT URL 無法連接主機的解決辦法

項目 tor svn rto 項目版本 用戶名 setting repos 新的 場景:我的系統是win7,安裝的 VisualSVN Server 作為svn 服務器,昨天是好的,我手漸,使用魯大師優化了系統,今天提交,更新的時候,直接提示:Unable to conne

selenium運行火狐報錯FirefoxDriver : Unable to connect to host 127.0.0.1 on port 7055

jar包 .html 各版本 -s gpo jar htm adding fire 摘要: 這是個常見的啟動firefoxdriver的問題,具體的錯誤日誌如下,其實原因很簡單,就是你的Selenium版本和firefox 不兼容了。 Firefox 版本太高了, 請及

C#連接mysql是提示unable to connect to any of the specid

C# mysql unable to connect to 1、測試連接時提示錯誤如下圖:2、解決的辦法是Server name用127.0.0.1。別用'.'或者localhost。如下圖:C#連接mysql是提示unable to connect to any of the s

【SpringBoot學習筆記】turbine界面不顯示監控信息——unable to connect to command metric stream

code color boa cti In star 技術 alt pan [[錯誤現象:]] 界面沒有監控信息,只有一行字:unable to connect to command metric stream ,如下圖: [[可能原因]]: 1)s

SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus

oracl args 重新登錄 tin ble 2-0 connect pts grep -v [oracle@jtwy02 ~]$ sqlplus ‘/as sysdba‘SQL*Plus: Release 11.2.0.4.0 Production on Sat Oct

Unable to connect to adb. Check if adb is installed correctly解決方法

測試工具 con bind image platform roi uia -s 行為 1、啟動測試工具 "E:\android-sdk_r24.4.1-windows\android-sdk-windows\tools"中的uiautomatorviewer 2、在

Ubuntu 16.04 Unable to connect to Upstart

解決辦法:見 https://bugs.launchpad.net/ubuntu/+source/runit/+bug/1448164 26樓方案 sudo apt-get purge runit sudo apt-get purge git-all sudo apt-get pu

Error: Unable to connect to a repository at URL解決方案

SVN Update突然不好用,提示Error: Unable to connect to a repository at URL,百度查了好多辦法,結果都不好用,最後思考下這兩天自己對電腦做了啥,最後發現新裝一個VMware Workstation,把VMware Workstation的

【原創】叢集搭建報“Error unable to connect to nodes ['
使用防火牆正常開啟SVN自啟後無法連線 Unable to connect to URL 'svn://.' Can't open file './format': Permission denied

相關連結: 在MyEclipse CI 2018.9.0 中安裝 SVN 1.10.13-1.9.x 在CentOS 1804中設定Subversion(SVN)開機自啟 在CentOS 1804 中安裝 Subversion(SVN) 在MyEclipse中使用SVN提交(自動忽略

springcloud Finchley基於springboot2.0 開啟hystrix dashboard Unable to connect to Command Metric Stream

springcloud Finchley改動很大,很多配置的名稱,模組的名稱都變了,開啟hystrix dashboard頁也不一樣 springcloud Finchley 模組名稱變更檢視 pom.xml <dependency> &l

Can't create session svn: Unable to connect to a repository at URL “...”的解決方案

   Can't create sessionsvn: Unable to connect to a repository at URL '...'Cannot negotiate authentication mechanism檢視Eclipse->Windows->Pref

Unable to connect to zookeeper server within timeout: 5000

錯誤 嚴重: StandardWrapper.Throwable org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'brandController' defined in f

svn 檢出 報錯 Unable to connect to a repository at URL 'ip'

1-如下 解決辦法 網上第一種解決辦法: 下面的六種解決方案都未能解決: 1、不提示輸入使用者名稱和密碼,不管重灌多少次都一樣。 2、TortoiseSVN的setting-》Saved Data-》Authentication data 的clear和clear al

Error Unable to connect to a repository at URL Error Access to ‘ ‘ forbidden

今天新建了一個資料夾,打算從SVN上面更新東西,地址全是對的,但是總是報下面的這個錯誤, Error  Unable to connect to a repository at URL ‘https://ljw/svn/MobileSafe’ Error  Access to

fatal: unable to access https:// Failed to connect to: Connection refused|git clone問題(完美解決)

fatal: unable to access ‘https://github.com/xxxx/’: Failed to connect to x.x.x.x port xxxxx: Connection refused|git clone問題(完美解決) 系統: ubunt

關於Mysql unable to connect to remote host. catalog download has failed.

使用MSI安裝Mysql會在windows中新增一個計劃任務,如下圖。 但網友解決方案是刪除這個計劃,但卻不告知這個任務計劃啟動的操作:"C:\Program Files (x86)\MySQL\MySQL Installer for Windows\MySQLInstallerCon