日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關咨詢
選擇下列產品馬上在線溝通
服務時間:8:30-17:00
你可能遇到了下面的問題
關閉右側工具欄

新聞中心

這里有您想知道的互聯網營銷解決方案
Oracle密碼文件學習心得

下面總結了一些Oracle密碼文件的學習心得,希望對大家有所幫助。

創(chuàng)建Oracle密碼文件的命令

orapwd  file=<>  password=<> entries=最大數目

這里的file命名規(guī)則在unix/linux下 orapw,在windows下為 pwd.ora

具體資料看下面的描述(這是pub中一個網友的總結)

1. unix 環(huán)境:

查了Administrator‘s Reference 10g Release 2 (10.2) for UNIX-Based Operating Systems.

1. Log in as the Oracle software owner. (以Oracle管理員身份登入)

2. Use the orapwd utility to create the password file as follows(使用orapwd功能創(chuàng)建密碼文件):

$ $ORACLE_HOME/bin/orapwd file=filename password=password entries=max_users……

filename The name of the file in which password information is written(filename指密碼信息保存文件的文件名)

The name of the file must be orapwsid, and you must supply the full path name. Its contents are encrypted. Typically, the password file is created in the $ORACLE_HOME/dbs directory.(文件名必須為orapwsid,并需要提供完整路徑。內容是加密的。通常情況下,密碼文件被創(chuàng)建在$ORACLE_HOME/dbs路徑下。)

請注意黑體字, 所以unix環(huán)境中, password file 一定是要用 orapw, 沒有例外。

2. windows 環(huán)境:

查了Platform. Guide 10g Release 2 (10.2) for Microsoft Windows (32-Bit) (沒查64-bit)

To create and populate a password file:

(1). Create a password file with the Password Utility:

C:> orapwd FILE=PWDsid.ora PASSWORD=password ENTRIES=max_users

where

 | FILE specifies the password filename.

| SID identifies the database instance.

| PASSWORD sets the password for account SYS.

| ENTRIES sets maximum number of entries in password file. This corresponds to maximum number of distinct users allowed to connect to the database simultaneously with either the SYSDBA or the SYSOPER DBA privilege.

(2). Set initialization parameter file parameter REMOTE_LOGIN_PASSWORDFILE to exclusive, shared, or none.

In search of the password file, Oracle Database looks in the registry for the value of parameter

ORA_SID_PWFILE. If no value is specified, then it looks in the registry for the

value of parameter ORA_PWFILE, which points to a file containing usernames,

passwords, and privileges. If that is not set, then it uses the default:

ORACLE_BASEORACLE_HOMEDATABASEPWDsid.ORA.

The default value is shared.

請注意黑體字, windows 環(huán)境中, 很大的部分是基于 registry 中變量 ora_sid_pwfile 或者 ora_pwfile 的設置, 缺省的值, 正如paulyibinyi兄弟指出的, 是 pwd.ora (unix中是沒有這個。ora后綴的)。

二、在windows下對于connect /as sysdba及其它用戶可以不用密碼就能登錄的問題

1.這是因為oracle采用了 OS認證的方式,具體的可以查看 sqlnet.ora具體同容如下

SQLNET.AUTHENTICATION_SERVICES= (NTS)

將其改成SQLNET.AUTHENTICATION_SERVICES= (NONE)

這樣就是oracle認證方式了

2.因為用的OS認證方式,可以在操作系統(tǒng)->控制面版->計算機管理->用戶 將當前用戶的屬性組 ORA_DBA去掉,這時如果沒有用戶名及密碼則不可以。

如下:

SQL> connect /as sysdba ERROR:ORA-01031: insufficient privileges

SQL> connect sys/oracle as sysdba

已連接。

三、利用alter user identified by ……來修改密碼alter user sys identified by abc一下,就連數據庫中的密碼和密碼文件中的密碼一起改成abc了;

四、如果Oracle密碼文件丟失了如何辦?

利用 orapwd重新創(chuàng)建一個就可以了。

【編輯推薦】

  1. 詳聊驗證Oracle SQL語句
  2. 三分鐘搞定oracle用戶表空間
  3. Oracle導出sql語句存儲過程
  4. 詳聊Oracle用戶表空間寶典
  5. 淺析Oracle用戶表空間權限的幾個問題

標題名稱:Oracle密碼文件學習心得
轉載注明:http://www.5511xx.com/article/cdieigo.html