Oracle View data Files-control files-log files-tablespace information

Source: Internet
Author: User

1. View all users in the current database: Select username from dba_users;

2. View the user logged in for the current session: Show users or select username from user_users;

3. View all tables for a user: SELECT * from Dba_tables where owner= ' username ';--username to capitalize or select table_name from dba_tables where owner= ' Netfolder ‘;

4, check the location of control files, and other information: SELECT * from V$controlfile;

5. View users and their default tablespace information: Select Username,default_tablespace from dba_users;--view users and their default tablespace select * from Dba_users;

6. View data file information: SELECT * from V$datafile; SELECT * from Dba_data_files;

7. View Redo log File information: SELECT * from V$logfile;

8, check the current system used parameter file information: Show parameter spfile; File name: pfileoracle instance name. Ora

9. Location of password files

Storage location under Linux: $ORACLE _home/dbs/orapw$oracle_sid

namely:oracle_home/dbs/orapw<sid>

Where to store under Windows: $ORACLE _home/database/pwd%oracle_sid%.ora

Oracle View data Files-control files-log files-tablespace information

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.