亚洲Aⅴ无码Av红楼在线观看_国产午夜福利涩爱AⅤ_国产sm调教一区二区三区_精品人妻一区二区三区不卡毛片

始創(chuàng)于2000年 股票代碼:831685
咨詢熱線:0371-60135900 注冊有禮 登錄
  • 掛牌上市企業(yè)
  • 60秒人工響應
  • 99.99%連通率
  • 7*24h人工
  • 故障100倍補償
全部產(chǎn)品
您的位置: 網(wǎng)站首頁 > 幫助中心>文章內容

Oracle密碼文件

發(fā)布時間:  2012/9/13 16:50:21

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

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

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


具體資料看下面的描述


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<SID>,沒有例外。


2. windows 環(huán)境:

Platform. Guide 10g Release 2 (10.2) for Microsoft Windows (32-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的設置, 缺省的值是 pwd<SID>.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一下,就連數(shù)據(jù)庫中的密碼和密碼文件中的密碼一起改成abc了;


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

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


本文出自:億恩科技【www.allwellnessguide.com】

服務器租用/服務器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質保障!--億恩科技[ENKJ.COM]

  • 您可能在找
  • 億恩北京公司:
  • 經(jīng)營性ICP/ISP證:京B2-20150015
  • 億恩鄭州公司:
  • 經(jīng)營性ICP/ISP/IDC證:豫B1.B2-20060070
  • 億恩南昌公司:
  • 經(jīng)營性ICP/ISP證:贛B2-20080012
  • 服務器/云主機 24小時售后服務電話:0371-60135900
  • 虛擬主機/智能建站 24小時售后服務電話:0371-60135900
  • 專注服務器托管17年
    掃掃關注-微信公眾號
    0371-60135900
    Copyright© 1999-2019 ENKJ All Rights Reserved 億恩科技 版權所有  地址:鄭州市高新區(qū)翠竹街1號總部企業(yè)基地億恩大廈  法律顧問:河南亞太人律師事務所郝建鋒、杜慧月律師   京公網(wǎng)安備41019702002023號
      0
     
     
     
     

    0371-60135900
    7*24小時客服服務熱線