Common Oracle DBA operations

Source: Internet
Author: User

Common Oracle DBA operations

Modify language environment

Change Chinese environment to English environment

Alter session set als_language = 'American ';

Change the English environment to a Chinese Environment

Alter session set nls_language = 'simplified CHINESE ';

Queries the tables owned by the user.

Select table_name from user_tables;

Query the name and purpose of a data dictionary table in oracle

Select * from dictionary;

Query the number of views in oracle

Select index_name from user_views;

Queries the database objects owned by the user, including constraints.

Select object_name from user_objects;

Dictionary operations

Desc user_tables;

Select table_name from user_tables;

Select index_name from user_indexes;

Select view_name from user_views;

Select * from dictionary;

Backup and recovery

Exp

Imp

Create a new user

Create user haungfang identified by huangfang default tablespace users quota 10 M on users

Grant connect, resource, create view, create trigger to huangfang

Drop user liuchao cascade;

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.