Getting Started with Oracle

Source: Internet
Author: User

Oracle tablespace Meaning: A tablespace is a logical division of a database, and a table space can belong to only one database. All database objects are stored in the specified table space. But the main storage is the table, so called table space.

there is at least one tablespace in the Oracle database, the table space for the system.

Oracle Database can create multiple DB instances

You can have more than one table space under a database

Multiple users can be in a database, each user can use a different table space

Users, you can create database tables, tables can also be in different table spaces

Tablespace: Creating a table space creates a data file on the physical disk that acts as the physical storage space for database objects (users, tables, stored procedures, and so on);

User: The creation user must specify a tablespace for it, and if there is no explicit specified default tablespace, it is specified as the Users table space, and after the user is created, other database objects, such as tables, stored procedures, and so on, can be created on the user;

Table: is a collection of data records;

Creation process: Table space---> User---> table;

Owning relationship: The table space contains the user inclusion table;

Query DB instance Name:

Select name,v$database.* from V$database;
Select instance_name,v$instance.* from V$instance;

V$database is a dynamic State Performance view, which is a variety of information for the current DB instance.

Query all table space names: select Tablespace_name from Dba_tablespaces;

Query the current user's basic information: SELECT * from User_users;

Query all users that the current user can manage: select * from All_users;

Query all user information: SELECT * from Dba_users; The prerequisite is to have DBA authority for an account, such as Sys,system.

Find out which tables are available under your current User:

SELECT * from User_tables;

Query what tables you can access under your current user [that is, access yourself and other users]:

SELECT * from All_tables;

Querying all tables in the current database requires that you have DBA authority:

SELECT * from Dba_tables;

Getting Started with Oracle

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.