成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

Oracle密碼文件學習心得

數據庫 Oracle
要使用Oracle密碼文件,需要先創建密碼文件。本文介紹了如何在不同操作系統下創建Oracle密碼文件,并介紹了一些常見問題的解決方法。

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

創建Oracle密碼文件的命令

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

這里的file命名規則在unix/linux下 orapw<ORACLE_SID>,在windows下為 pwd<SID>.ora

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

1. unix 環境:

查了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功能創建密碼文件):

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

請注意黑體字, 所以unix環境中, password file 一定是要用 orapw<SID>, 沒有例外。

2. windows 環境:

查了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 環境中, 很大的部分是基于 registry 中變量 ora_sid_pwfile 或者 ora_pwfile 的設置, 缺省的值, 正如paulyibinyi兄弟指出的, 是 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認證方式,可以在操作系統->控制面版->計算機管理->用戶 將當前用戶的屬性組 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重新創建一個就可以了。

【編輯推薦】

  1. 詳聊驗證Oracle SQL語句
  2. 三分鐘搞定oracle用戶表空間
  3. Oracle導出sql語句存儲過程
  4. 詳聊Oracle用戶表空間寶典
  5. 淺析Oracle用戶表空間權限的幾個問題
責任編輯:yangsai 來源: 網絡轉載
相關推薦

2010-11-19 11:51:40

Oracle密碼文件

2009-12-22 15:49:50

Linux系統文件鎖

2009-09-17 13:38:42

LINQ to XML

2011-04-06 11:08:52

Java異常

2010-04-29 15:09:42

Oracle密碼文件

2012-06-27 14:04:22

folly

2009-06-23 09:05:10

Seam框架JSF

2009-08-18 10:59:46

C#枚舉類型

2011-01-04 09:34:23

LambdaC#

2009-09-14 18:19:49

LINQ模糊查詢

2011-04-08 17:22:39

2009-09-10 16:35:06

CCNA考試培訓

2009-07-15 18:11:17

MVC模式學習

2009-08-13 18:10:31

C#靜態構造函數

2013-05-27 10:02:55

2009-10-27 13:34:56

Oracle密碼管理

2010-04-20 16:46:41

Oracle數據庫密碼

2010-03-22 16:57:18

密碼文件數據庫密碼安全

2009-10-28 13:50:16

Oracle密碼丟失

2010-06-17 18:31:12

繪制UML序列圖
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 国产精品精品 | 狠狠骚 | 日韩www| 免费观看成人鲁鲁鲁鲁鲁视频 | 国产成人免费视频网站视频社区 | 中文字幕国产精品 | 精品亚洲一区二区三区 | 欧美视频在线一区 | 久艹网站 | 91精品久久久久久久久久入口 | 天天躁日日躁xxxxaaaa | 国产精品99久久久久 | 天天插天天狠天天透 | 日日av | 日本午夜精品一区二区三区 | 日韩久久久一区二区 | 久久国产视频网站 | 涩涩视频在线观看 | 精品亚洲国产成av人片传媒 | 成人免费网站视频 | 在线观看视频一区二区三区 | 亚洲精选久久 | 久久亚洲一区二区三区四区 | 少妇精品久久久久久久久久 | 人成精品 | 天堂资源最新在线 | 久久精片| 国产一区二区在线视频 | 亚洲精品电影在线观看 | 欧美一级免费观看 | 成年人网站在线观看视频 | 久久精品在线免费视频 | 免费成人高清在线视频 | av片在线观看 | 欧美亚洲视频在线观看 | 男人视频网站 | 影音先锋中文字幕在线观看 | 久久精品国产一区二区电影 | av永久 | 一区二区三区av | 亚洲女人天堂网 |