oracle使用者解鎖
檢視Oracle例項有哪些使用者?
涉及的表為dba_users
[sql] view plain copy print?- [[email protected] ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.3.0 Production on Mon Sep 2 11:05:49 2013
- Copyright (c) 1982, 2011, Oracle. All rights reserved.
- idle> conn /as sysdba
- Connected.
-
[email protected]> desc
- NameNull? Type
- ----------------------------------------------------- -------- ------------------------------------
- USERNAME NOTNULL VARCHAR2(30)
- USER_ID NOTNULL NUMBER
-
PASSWORD VARCHAR2(30)
- ACCOUNT_STATUS NOTNULL VARCHAR2(32)
- LOCK_DATE DATE
- EXPIRY_DATE DATE
- DEFAULT_TABLESPACE NOTNULL VARCHAR2(30)
-
TEMPORARY_TABLESPACE NOT
- CREATED NOTNULLDATE
- PROFILE NOTNULL VARCHAR2(30)
- INITIAL_RSRC_CONSUMER_GROUP VARCHAR2(30)
- EXTERNAL_NAME VARCHAR2(4000)
- PASSWORD_VERSIONS VARCHAR2(8)
- EDITIONS_ENABLED VARCHAR2(1)
- AUTHENTICATION_TYPE VARCHAR2(8)
檢視使用者狀態:
- [email protected]> select username,account_status from dba_users;
- USERNAME ACCOUNT_STATUS
- ------------------------------ --------------------------------
- SYS OPEN
- SYSTEM OPEN
- OUTLN EXPIRED & LOCKED
- MGMT_VIEW EXPIRED & LOCKED
- FLOWS_FILES EXPIRED & LOCKED
- MDSYS EXPIRED & LOCKED
- ORDSYS EXPIRED & LOCKED
- EXFSYS EXPIRED & LOCKED
- DBSNMP EXPIRED & LOCKED
- WMSYS EXPIRED & LOCKED
- APPQOSSYS EXPIRED & LOCKED
- APEX_030200 EXPIRED & LOCKED
- OWBSYS_AUDIT EXPIRED & LOCKED
- ORDDATA EXPIRED & LOCKED
- CTXSYS EXPIRED & LOCKED
- ANONYMOUS EXPIRED & LOCKED
- SYSMAN EXPIRED & LOCKED
- XDB EXPIRED & LOCKED
- ORDPLUGINS EXPIRED & LOCKED
- OWBSYS EXPIRED & LOCKED
- SI_INFORMTN_SCHEMA EXPIRED & LOCKED
- OLAPSYS EXPIRED & LOCKED
- SCOTT EXPIRED & LOCKED
- ORACLE_OCM EXPIRED & LOCKED
- XS$NULL EXPIRED & LOCKED
- BI EXPIRED & LOCKED
- PM EXPIRED & LOCKED
- MDDATA EXPIRED & LOCKED
- IX EXPIRED & LOCKED
- SH EXPIRED & LOCKED
- DIP EXPIRED & LOCKED
- OE EXPIRED & LOCKED
- APEX_PUBLIC_USER EXPIRED & LOCKED
- HR EXPIRED & LOCKED
- SPATIAL_CSW_ADMIN_USR EXPIRED & LOCKED
- SPATIAL_WFS_ADMIN_USR EXPIRED & LOCKED
- 36 rows selected.
比如解鎖sh賬戶,sh賬戶為OCP考試需要用到的使用者,SH賬戶裡涉及的多張表在OCP有涉及考試。
目前SH的賬戶的狀態為:EXPIRED & LOCKED
用以下命令給SH賬戶解鎖:
[email protected]> alter user sh account unlock; --解開LOCKED
[email protected]> alter user sh identified by sh;--解開EXPIRED
[sql] view plain copy print?- [email protected]> alteruser sh account unlock;
- User altered.
- [email protected]> select username,account_status from dba_users;
- USERNAME ACCOUNT_STATUS
- ------------------------------ --------------------------------
- SYS OPEN
- SYSTEM OPEN
- SH EXPIRED
- OUTLN EXPIRED & LOCKED
- MGMT_VIEW EXPIRED & LOCKED
- FLOWS_FILES EXPIRED & LOCKED
- MDSYS EXPIRED & LOCKED
- ORDSYS EXPIRED & LOCKED
- EXFSYS EXPIRED & LOCKED
- DBSNMP EXPIRED & LOCKED
- WMSYS EXPIRED & LOCKED
- APPQOSSYS EXPIRED & LOCKED
- APEX_030200 EXPIRED & LOCKED
- OWBSYS_AUDIT EXPIRED & LOCKED
- ORDDATA EXPIRED & LOCKED
- CTXSYS EXPIRED & LOCKED
- ANONYMOUS EXPIRED & LOCKED
- SYSMAN EXPIRED & LOCKED
- XDB EXPIRED & LOCKED
- ORDPLUGINS EXPIRED & LOCKED
- OWBSYS EXPIRED & LOCKED
- SI_INFORMTN_SCHEMA EXPIRED & LOCKED
- OLAPSYS EXPIRED & LOCKED
- SCOTT EXPIRED & LOCKED
- ORACLE_OCM EXPIRED & LOCKED
- XS$NULL EXPIRED & LOCKED
- BI EXPIRED & LOCKED
- PM EXPIRED & LOCKED
- MDDATA EXPIRED & LOCKED
- IX EXPIRED & LOCKED
- DIP EXPIRED & LOCKED
- OE EXPIRED & LOCKED
- APEX_PUBLIC_USER EXPIRED & LOCKED
- HR EXPIRED & LOCKED
- SPATIAL_CSW_ADMIN_USR EXPIRED & LOCKED
- SPATIAL_WFS_ADMIN_USR EXPIRED & LOCKED
- 36 rows selected.
- [email protected]> alteruser sh identified by sh;
- User altered.
- [email protected]> select username,account_status from dba_users;
- USERNAME ACCOUNT_STATUS
- ------------------------------ --------------------------------
- SYS OPEN
- SYSTEM OPEN
- SH OPEN
- OUTLN EXPIRED & LOCKED
- MGMT_VIEW EXPIRED & LOCKED
- FLOWS_FILES EXPIRED & LOCKED
- MDSYS EXPIRED & LOCKED
- ORDSYS EXPIRED & LOCKED
- EXFSYS EXPIRED & LOCKED
- DBSNMP EXPIRED & LOCKED
- WMSYS EXPIRED & LOCKED
- APPQOSSYS EXPIRED & LOCKED
- APEX_030200 EXPIRED & LOCKED
- OWBSYS_AUDIT EXPIRED & LOCKED
- ORDDATA EXPIRED & LOCKED
- CTXSYS EXPIRED & LOCKED
- ANONYMOUS EXPIRED & LOCKED
- SYSMAN EXPIRED & LOCKED
- XDB EXPIRED & LOCKED
- ORDPLUGINS EXPIRED & LOCKED
- OWBSYS EXPIRED & LOCKED
- SI_INFORMTN_SCHEMA EXPIRED & LOCKED
- OLAPSYS EXPIRED & LOCKED
- SCOTT EXPIRED & LOCKED
- ORACLE_OCM EXPIRED & LOCKED
- XS$NULL EXPIRED & LOCKED
- BI EXPIRED & LOCKED
- PM EXPIRED & LOCKED
- MDDATA EXPIRED & LOCKED
- IX EXPIRED & LOCKED
- DIP EXPIRED & LOCKED
- OE EXPIRED & LOCKED
- APEX_PUBLIC_USER EXPIRED & LOCKED
- HR EXPIRED & LOCKED
- SPATIAL_CSW_ADMIN_USR EXPIRED & LOCKED
- SPATIAL_WFS_ADMIN_USR EXPIRED & LOCKED
- 36 rows selected.
相關推薦
oracle 查解鎖sql
oracle 查解鎖sql oracle中的查鎖sql eg: SELECT object_name, machine, s.client_info, s.serial#, s.sid FROM gv$locked_object l, dba_objects o, gv$ses
Oracle 使用者解鎖之後總被鎖住
在建立一般使用者時,遠端連線使用者,提示被鎖住,解鎖之後,開始能夠連線,但是過幾秒鐘又被鎖住。解決步驟:1:建立一般使用者2:檢視使用者開始狀態3:遠端連線測試4:幾秒鐘之後,使用者被鎖住5:解鎖並設定遠端登入嘗試次數6:驗證 建立一般使用者SQL> create user sa iden
oracle使用者解鎖
檢視Oracle例項有哪些使用者? 涉及的表為dba_users [sql] view plain copy print? [[email protected] ~]$
Oracle使用者解鎖方法
Oracle在安裝後一些user是預設鎖定的,例如常用到的scott user是lucked的,那我們要使用她就必須先設法給她unluck,本文將介紹怎麼手動給scoot user解鎖,當然你也可以在oracle的以系統管理員身份進入Enterprise Manager Console中通過勾選解鎖,那另說
oracle資料庫解鎖表
首先查詢sid與串列埠: select object_name,machine,s.sid,s.serial# from v$locked_object l,dba_objects o ,v$sess
oracle 用戶被鎖定解鎖方法
logic 連續 param body ora min 密碼 integer 動態 修改了用戶密碼,第二天過來發現用戶被鎖定,晚上走的時候還好好的 。 alter profile DEFAULT limit FAILED_LOGIN_ATTEMPTS UNLIMITED
Oracle查詢被鎖的表及解鎖方法
v$lock req 查找 rom 方法 session lock acl oracle 1.用下列sql語句查詢操作不當引起鎖表的進程的SESSION_ID及USERNAME SELECT S.SID SESSION_ID, S.USERNAME, DECODE(LMOD
Oracle中查看表是否被鎖和如何解鎖的處理方法
objects dba where type 語句 ner term and schema --1、以下幾個為相關表SELECT * FROM v$lock;SELECT * FROM v$sqlarea;SELECT * FROM v$session;SELECT * F
for update造成的Oracle鎖表與解鎖
執行 lec 如果 pl/sql 查看 數據 system oracle log 我遇到的情況: 當使用select語句查詢表時,後面跟著for update , select * from table for update 當修改表中數據,但是沒有com
Oracle解鎖scott用戶
name 用戶名 命令提示符 tiger mit oracle acl class dba 解決: (1)conn sys/sys as sysdba;//以DBA的身份登錄 (2)alter user scott account unlock;// 然後解鎖 (3)
Oracle系列-鎖表與解鎖解決方案(操刀版)
ria 目錄 time terminal serial 終極 logo add 系統 【Oracle系列-鎖表與解鎖解決方案(大招版)】 --1查看被鎖的表 select b.owner,b.object_name,a.session_id,a.locked_mode fr
Oracle系列-鎖表與解鎖解決方案(基礎版)
使用 因此 logo 才會 解決方案 date操作 order rest table 【Oracle鎖表查詢和解鎖解決方案】 一、了解原因(借鑒整理) 數據庫操作語句的分類 DDL:數據庫模式定義語言,關鍵字:createDML:數據操縱語言,關鍵字:Insert、del
oracle數據庫刪除表時遇見需要解鎖問題
圖片 解鎖 遇見 註意 9.png 數據 http bsp 操作數 今天在進行數據清空時,不註意把表鎖住了,記錄一下解鎖過程。 第一步執行 select t2.username,t2.sid,t2.serial#,t2.logon_time from v$locked_o
oracle 表鎖定解鎖
evo sel from sid tail revoke 相關 art 執行命令 Oracle數據庫操作中,我們有時會用到鎖表查詢以及解鎖和kill進程等操作,那麽這些操作是怎麽實現的呢?本文我們主要就介紹一下這部分內容。(1)鎖表查詢的代碼有以下的形式:select co
oracle解鎖
如果 roo sele lte color marked machine order program --以下幾個為相關表SELECT * FROM v$lock;SELECT * FROM v$sqlarea;SELECT * FROM v$session;SELECT
Oracle檢視正在執行的SQL,當前被鎖物件以及解鎖物件
1、檢視正在執行的SQL SELECT b.sid, b.username, b.serial#, spid, paddr, sql_text,--正在執行的SQL, b.machine --計算機名 FROM
Oracle 資料庫 系統常見使用者 以及 使用者的管理(查詢修改建立解鎖刪除)
系統常見使用者 使用者 說明 sys 超級使用者,主要用來維護系統資訊和管理例項,以SYSDBA或SYSOPER角色登入。密碼為在安裝時設定的管理口令,如一般設定為:orcl
Oracle查詢被鎖定表以及解鎖
1、查詢被鎖資訊 SELECT object_name, machine, s.sid, s.serial# FROM gv$locked_object l, dba_objects o, gv$session s WHERE l.object_id = o.obj
Oracle解鎖scott使用者
原因:預設Oracle10g的scott不能登陸。 解決: (1)conn sys/sys as sysdba;//以DBA的身份登入 (2)alter user scott account unlock;// 然後解鎖 (3)conn scott/tiger //彈出一個修改密碼的對話
Oracle EBS 加鎖解鎖程式
FUNCTION request_lock(p_lock_name IN VARCHAR2) RETURN BOOLEAN IS l_lock_name VARCHAR2(128); l_lock_ret INTEGER; l_ret_val BOOLEAN