Oracle Admin User (iii) How to display user information in Oracle

Source: Internet
Author: User
Tags true true

1. Display user Information

(1) Display the current session user

10:16:18 sql> Show user;

USER is "SYS"

(2) Show privileged users

10:17:07 sql> Conn sys/oracle as SYSDBA;

Connected.

10:17:09 sql> SELECT * from V$pwfile_users;

USERNAME Sysdb SYSOP

------------------------------ ----- -----

SYS true True

(3) Display user information

10:17:22 sql> col username format A20

10:18:32 sql> Col default_tablespace for A20

10:18:45 sql> Col temporary_tablespace for A20

10:18:59 sql> Select Username,default_tablespace, Temporary_tablespace

10:19:22 2 from Dba_users;

USERNAME Default_tablespace Temporary_tablespace

-------------------- -------------------- --------------------

Ops$oracle USERS TEMP

SCOTT USERS TEMGRP01

HR USERS TEMGRP01

TEST USERS TEMGRP01

Tsmsys USERS TEMGRP01

BI USERS TEMGRP01

PM USERS TEMGRP01

Mddata USERS TEMGRP01

IX USERS TEMGRP01

SH USERS TEMGRP01

DIP USERS TEMGRP01

OE USERS TEMGRP01

DBSNMP Sysaux TEMGRP01

Sysman Sysaux TEMGRP01

Mdsys Sysaux TEMGRP01

Ordsys Sysaux TEMGRP01

Exfsys Sysaux TEMGRP01

USERNAME Default_tablespace Temporary_tablespace

-------------------- -------------------- --------------------

Dmsys Sysaux TEMGRP01

Wmsys Sysaux TEMGRP01

Ctxsys Sysaux TEMGRP01

ANONYMOUS Sysaux TEMGRP01

XDB Sysaux TEMGRP01

Ordplugins Sysaux TEMGRP01

Si_informtn_schema Sysaux TEMGRP01

Olapsys Sysaux TEMGRP01

Mgmt_view SYSTEM TEMGRP01

SYS SYSTEM TEMGRP01

System System TEMGRP01

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.