24周年

財稅實(shí)務(wù) 高薪就業(yè) 學(xué)歷教育
APP下載
APP下載新用戶掃碼下載
立享專屬優(yōu)惠

安卓版本:8.7.20 蘋果版本:8.7.20

開發(fā)者:北京正保會計科技有限公司

應(yīng)用涉及權(quán)限:查看權(quán)限>

APP隱私政策:查看政策>

HD版本上線:點(diǎn)擊下載>

Oracle密碼文件學(xué)習(xí)心得

來源: 51cto 編輯: 2009/12/29 08:53:35  字體:

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

 ?。ㄒ唬﹦?chuàng)建Oracle密碼文件的命令

  orapwd file= password= entries=最大數(shù)目

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

  一、 unix 環(huán)境:

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

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

  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,并需要提供完整路徑。內(nèi)容是加密的。通常情況下,密碼文件被創(chuàng)建在$ORACLE_HOME/dbs路徑下。)

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

  二、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.

 ?。?)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 的設(shè)置,缺省的值,正如paulyibinyi兄弟指出的,是pwd.ora(unix中是沒有這個.ora后綴的)。

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

  1.這是因?yàn)閛racle采用了OS認(rèn)證的方式,具體的可以查看 sqlnet.ora具體同容如下

  SQLNET.AUTHENTICATION_SERVICES= (NTS)

  將其改成SQLNET.AUTHENTICATION_SERVICES=(NONE)

  這樣就是oracle認(rèn)證方式了

  2.因?yàn)橛玫腛S認(rèn)證方式,可以在操作系統(tǒng)->控制面版->計算機(jī)管理->用戶 將當(dāng)前用戶的屬性組 ORA_DBA去掉,這時如果沒有用戶名及密碼則不可以。

  如下:

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

  SQL> connect sys/oracle as sysdba

  已連接。

 ?。ㄈ├胊lter user identified by ……來修改密碼alter user sys identified by abc一下,就連數(shù)據(jù)庫中的密碼和密碼文件中的密碼一起改成abc了;

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

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

責(zé)任編輯:zoe

實(shí)務(wù)學(xué)習(xí)指南

回到頂部
折疊
網(wǎng)站地圖

Copyright © 2000 - galtzs.cn All Rights Reserved. 北京正保會計科技有限公司 版權(quán)所有

京B2-20200959 京ICP備20012371號-7 出版物經(jīng)營許可證 京公網(wǎng)安備 11010802044457號