使用SYS使用者遠端登陸報許可權不足的解決:ORA-01031: insufficient privileges
1.監聽及tnsnames.ora正常,普通使用者使用服務名可以登陸資料庫。
[[email protected] admin]$ cat tnsnames.oramypl =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.22.55)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = mypl)
)
)
[[email protected] admin]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 15-NOV-2013 22:30:55
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 15-NOV-2013 20:13:45
Uptime 0 days 2 hr. 17 min. 10 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File /u01/app/oracle/diag/tnslsnr/orale stener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=orale)(PORT=1521)))
Services Summary...
Service "mypl" has 1 instance(s).
Instance "mypl",
The command completed successfully
[[email protected] admin]$ sqlplus xiaoming/[email protected]
SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 15 22:26:52 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> exit
#########################################################################
2.使用SYS使用者登陸報許可權不足--上一步驗證了監聽及tnsnames.ora是正確的。
[[email protected] admin]$ sqlplus sys/[email protected] as sysdbaSQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 15 22:27:31 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
ERROR:
ORA-01031: insufficient privileges
Enter user-name:
##########################################
3.檢查$ORACLE_HOME/dbs目錄下的密碼檔案,當前例項名是mypl。
[[email protected] dbs]$ lshc_DBUA0.dat init.ora spfilemypl.ora
hc_mypl.dat orapwocm peshm_plocp_0
檢查發現密碼檔案格式與當前例項名不符。
此時可以重建密碼檔案或者將orapwocm重命令為orapwmypl
建立密碼檔案--注意WINDOWS下和LINUX下的密碼檔案格式是不一樣的
注意:WIN下資料夾名和LINUX下不一樣。WIN下$ORACLE_HOME/database LINUX下是:$ORACLE_HOME\dbs\
如例項名為orcl,則WINDOWS下密碼檔案格式為:PWDorcl.ORA LINUX下為orapworcl
如下建立密碼檔案,密碼為oracle,例項名為orapwbys3
orapwd file=/u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwbys3 password=oracle entries=3 force=y
4.重命令為用SYS使用者可以正常登陸--就不演示了。
相關推薦
使用SYS使用者遠端登陸報許可權不足的解決:ORA-01031: insufficient privileges
1.監聽及tnsnames.ora正常,普通使用者使用服務名可以登陸資料庫。 [[email protected] admin]$ cat tnsnames.ora mypl = (DESCRIPTION = (ADDRESS = (PROTOCOL
sqlplus / as sysdba 報錯:ora-01031 insufficient privileges
今天在使用sqlplus / as sysdba登陸時,竟然報錯:ora-01031 insufficient privileges。當時我直接就納悶掉了,平時等的時候都好好的啊,怎麼現在就不行了。 這時我想,我這樣是屬於作業系統認證的登陸方法啊,而且使用者也是oracle
standby主從不同步,主庫報錯:ORA-01031: insufficient privileges
今天發現物理standby的從庫不能同步主庫的資料了,主庫報錯:ORA-01031: insufficient privileges ORA-01031: insufficient privileges PING[ARC2]: Heartbeat failed to co
oracle:sys、system 無法登入問題:ORA-01031: insufficient privileges
請輸入使用者名稱: sys/sys as sysdbaERROR:ORA-01031: insufficient privileges 請輸入使用者名稱: system/system as sysoperERROR:ORA-01031: insufficient pri
oracle: 淺談orapwd命令,及解決遠端登入ORA-01031: insufficient privileges問題
1、先看下命令說明:orapwd Usage: orapwd file=<fname> entries=<users> force=<y/n> ignorecase=<y/n> nosysdba=<y/n>
在Linux環境下設定 ora-01031:insufficient privileges解決方法總結
今天需要使用sys使用者處理問題,但是報錯上面ora-01031:insufficient privileges。 在網上有很多方法,這個是自己經過測試的方法步驟。 1:首先檢查檔案sqlnet.ora檔案是否設定正確(檔案地址就是你oracle安裝的目錄)# sqlnet
conn / as sysdba 出現ORA-01031: insufficient privileges的解決方案
一、檢查sqlnet.ora(WINDOWS下位於%ORACLE_HOME%NETWORKADMIN目錄)是否包含這句:SQLNET.AUTHENTICATION_SERVICES=(NTS),沒有的話加上 sqlnet.ora所在目錄(以Oracle 11g為例):
conn / as sysdba 出現ORA-01031: insufficient privileges 解決辦法
sysdba不能遠端登入這個也是一個很常見的問題了。 碰到這樣的問題我們該如何解決呢? 我們用sysdba登入的時候,用來管理我們的資料庫例項,特別是有時候,伺服器不再本臺機器,這個就更是有必要了。 當我們用sqlplus "/ as sysdba" 是可以登入
在Oracle資料庫啟動時提示沒有許可權 ora-01031:insufficient privileges
情況說明 環境:Linux 操作語句: [Oracle@ora11r2 ~]$ sqlplus /nolog SQL*Plus: Release 11.1.0.6.0 - Production on Thu Jun 10 18:22:16 2010 Copyri
ora-01031:insufficient privileges解決方法總結
主要是 sqlnet.ora 檔案和 remote_login_passwordfile 引數影響。 一直以來,我記住的一個知識點就是:SQLNET.AUTHENTICATION_SERVICES=(NTS)是使用OS認證的必須條件之一。 今天一個偶然的機會,才知道這個結論是不完全準確的。 在本文的測試中,
ora-01031:insufficient privileges解決方法總結 .
sqlplus "/ as sysdba" 連不上,報ora-01031:insufficient privileges解決方法 注意多個數據庫例項時候,set ORACLE_SID='', 1、檢查sqlnet.ora(WINDOWS下位於%ORACLE_HOME%N
sqlplus / as sysdba報錯ORA-01031: insufficient privileges的原因分析
-------------------------轉載-------------- 今天碰到一個奇怪的小問題,看起來是一個非常簡單的問題。我先說一下問題背景。有一臺DB伺服器,因為需要搭建備庫,現在找了一臺已有的機器臨時用一下,這臺臨時的伺服器上已經安裝了Oracle軟體是
支付寶介面報錯 insufficient-isv-permissions 錯誤原因: ISV許可權不足解決方案
原貼地址:https://openclub.alipay.com/read.php?tid=1672&fid=72,歡迎大家訪問錯誤資訊一般如下:錯誤程式碼 insufficient-isv-p
oracle 建立表空間報許可權不足,引發的問題如下
建立表空間報許可權不足,引發的問題如下: create tablespace test1 datafile 'D:\mydf.dbf' size 10m; 1.建立表空間,報許可權不足 2.檢視當前使用者的許可權 3.許可權與角色的關係 許可權:分為系統許可權與實體
Lnmp下pureftpd新建FTP賬戶許可權不足解決方法
看似簡單的Lnmp一鍵包,但裝下來比自己手動裝麻煩多了,首先是下載問題:竟然沒有國內映象,三個下載點全是國外的,Aliyun的速度就能達到70KB左右,預算時間要7個多小時,哪能忍,最後在BBS找到了一位朋友提供的包,速度600KB左右,下完後安裝又花了我快一小時時間。無
關於微信登陸報錯的解決方法 Caused by: java.lang.IllegalStateException: Activity
先上圖 這種報錯 網上找了許久 找到了解決方法 把微信回撥那個activity 該成 這樣的就可以了 <activity android:name=".wxapi.WXEntryActivity" andr
python報錯問題解決:'ascii' codec can't encode character
odi char 格式 中修改 asc 編碼 出現 imp ges python在安裝時,默認的編碼是ascii,當程序中出現非ascii編碼時,python的處理常常會報這樣的錯,python沒辦法處理非ascii編碼的,此時需要自己設置將python的默認編碼,一般設置
PyCharm導入pymysql包運行報錯問題解決:No module named 'PyMySQL'
install pymysql already 運行 tro python char ror req import pymysql # 導入包 # 報錯問題顯示: ImportError: No module named ‘PyMySQL‘ 出現該問題提示:找不到
報錯(已解決):訓練SSD網路時候出現DuplicateFlagError: The flag 'loss_alpha' is defined twice. 問題求助
https://blog.csdn.net/liuyan20062010/article/details/78905517#commentsedit 第一: 按照上述部落格方法做訓練部落格中的方案3 方案3:從頭開始訓練自己的模型 # 註釋掉CHECKPOINT_PATH,不提供初始
報錯問題解決:net.sf.json.JSONException: There is a cycle in the hierarchy!
若非java這一塊相關的戰友,直接點評即可,無需閱讀文章報錯問題:net.sf.json.JSONException: There is a cycle in the hierarchy!atnet.sf.json.util.CycleDetectionStrategy$St