oracle script
SQL> SELECT name,password FROM user$ WHERE name='VISU_MD0000'; //檢視user,hash表裡的密碼
NAME PASSWORD
------------------------------ ------------------------------
VISU_MD0000 1979CBB6E32F9417
SQL> SELECT * FROM DBA_USERS_WITH_DEFPWD WHERE username='VISU_MD0000'; //檢視username是不是已經修改過,不是原始密碼
no rows selected
NAME PASSWORD
------------------------------ ------------------------------
VISU_MD0000 1979CBB6E32F9417
SQL> SELECT * FROM DBA_USERS_WITH_DEFPWD WHERE username='VISU_MD0000'; //檢視username是不是已經修改過,不是原始密碼
no rows selected
--是原始密碼的使用者會被顯示
set linesize 250
SELECT S.sid || ',' || S.serial# sid_serial, S.username, S.osuser, P.spid, S.module,
P.program, SUM (T.blocks) * TBS.block_size / 1024 / 1024 mb_used, T.tablespace,
COUNT(*) statements
FROM v$sort_usage T, v$session S, dba_tablespaces TBS, v$process P
WHERE T.session_addr = S.saddr
AND S.paddr = P.addr
AND T.tablespace = TBS.tablespace_name
GROUP BY S.sid, S.serial#, S.username, S.osuser, P.spid, S.module,
P.program, TBS.block_size, T.tablespace
ORDER BY mb_used;
SID_SERIAL USERNAME OSUSER SPID MODULE
--------------------------------------------------------------------------------- ------------------------------ ------------------------------ ------------------------ ----------------------------------------------------------------
PROGRAM MB_USED TABLESPACE STATEMENTS
------------------------------------------------ ---------- ------------------------------- ----------
25,24493 MD0000 oracle 4587752 oracle@rtdka1odb25.hosting.eu (TNS V1-V3)
oracle@infra2odb02.hosting.eu (P030) 588 TEMP 1
43,111 MD0000 ora10gdb 6619262 oracle@tladbxd5.dktetrix.net (TNS V1-V3)
oracle@infra2odb02.hosting.eu (P024) 763 TEMP 1
206,2519 MD0000 oracle 13238500 oracle@rtdka1odb25.hosting.eu (TNS V1-V3)
oracle@infra2odb02.hosting.eu (P029) 985 TEMP 1
228,38205 MD0000 ora10gdb 11141192 oracle@tladbxd5.dktetrix.net (TNS V1-V3)
oracle@infra2odb02.hosting.eu (P026) 1065 TEMP 1
163,32167 MD0000 ora10gdb 6815988 oracle@tladbxd5.dktetrix.net (TNS V1-V3)
oracle@infra2odb02.hosting.eu (P025) 1277 TEMP 1
set linesize 250
SELECT S.sid || ',' || S.serial# sid_serial, S.username, S.osuser, P.spid, S.module,
P.program, SUM (T.blocks) * TBS.block_size / 1024 / 1024 mb_used, T.tablespace,
COUNT(*) statements
FROM v$sort_usage T, v$session S, dba_tablespaces TBS, v$process P
WHERE T.session_addr = S.saddr
AND S.paddr = P.addr
AND T.tablespace = TBS.tablespace_name
GROUP BY S.sid, S.serial#, S.username, S.osuser, P.spid, S.module,
P.program, TBS.block_size, T.tablespace
ORDER BY mb_used;
SID_SERIAL USERNAME OSUSER SPID MODULE
--------------------------------------------------------------------------------- ------------------------------ ------------------------------ ------------------------ ----------------------------------------------------------------
PROGRAM MB_USED TABLESPACE STATEMENTS
------------------------------------------------ ---------- ------------------------------- ----------
25,24493 MD0000 oracle 4587752 oracle@rtdka1odb25.hosting.eu (TNS V1-V3)
oracle@infra2odb02.hosting.eu (P030) 588 TEMP 1
43,111 MD0000 ora10gdb 6619262 oracle@tladbxd5.dktetrix.net (TNS V1-V3)
oracle@infra2odb02.hosting.eu (P024) 763 TEMP 1
206,2519 MD0000 oracle 13238500 oracle@rtdka1odb25.hosting.eu (TNS V1-V3)
oracle@infra2odb02.hosting.eu (P029) 985 TEMP 1
228,38205 MD0000 ora10gdb 11141192 oracle@tladbxd5.dktetrix.net (TNS V1-V3)
oracle@infra2odb02.hosting.eu (P026) 1065 TEMP 1
163,32167 MD0000 ora10gdb 6815988 oracle@tladbxd5.dktetrix.net (TNS V1-V3)
oracle@infra2odb02.hosting.eu (P025) 1277 TEMP 1
JDBC詳解
http://my.oschina.net/hongdengyan/blog/182978來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26477398/viewspace-1431440/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [Oracle Script] LockOracle
- Oracle Database ScriptOracleDatabase
- [Oracle Script] Top sqlOracleSQL
- [Oracle Script] check userOracle
- [Oracle Script] check latchOracle
- Oracle kill session scriptOracleSession
- ORACLE常用Script(轉)Oracle
- ORACLE常用Script (轉)Oracle
- [Oracle Script] check active sessionOracleSession
- [Oracle Script] Log switch statusOracle
- [Oracle Script] check lock infoOracle
- [Oracle Script] latch holderOracle
- [Oracle Script] Temporary Sort UsageOracle
- [Oracle Script] Rollback Segment UsageOracle
- [Oracle Script] check Literal SQLOracleSQL
- [Oracle Script] check tablespace usage infoOracle
- [Oracle Script] select db parameterOracle
- [Oracle Script] check temp tablespace usageOracle
- [Oracle Script] ASM Disks Performance metricOracleASMORM
- [Oracle Script] Undo Usage Per statusOracle
- [Oracle Script] Undo Usage Per sessionOracleSession
- [Oracle Script] Buffer Cache Hit RatioOracle
- [Oracle Script] check object count by userOracleObject
- [Oracle Script] check File I/OOracle
- [Oracle Script] ASM Disk Groups UsedOracleASM
- [Oracle Script] Library Cche Hit RatioOracle
- 自動啟動ORACLE Script ServiceOracle
- oracle 11g rman backup scriptOracle
- 【SCRIPT】Oracle統計資訊相關SQLOracleSQL
- Script to find Whether patches is applied in Oracle EBSAPPOracle
- 【SCRIPT】Oracle表管理段管理常用語句Oracle
- oracle 練習之table初始化scriptOracle
- Script
- 請說說`<script>`、`<script async>`和`<script defer>`的區別
- 【SCRIPT】Oracle資料庫基本資訊收集指令碼Oracle資料庫指令碼
- 【SCRIPT】Oracle日常巡檢指令碼通用版Oracle指令碼
- 關於Oracle DB中SQL Script的註釋(REM,--,/* */)OracleSQLREM
- 使用Linux下script工具記錄Oracle輸出LinuxOracle