Use of Oracle Database

Source: Internet
Author: User
Tags dba

"Oracel method for creating tablespaces"
--Create a permanent table space--
Create tablespace table space name (for example: Table_1)
DataFile ' file path and filename (such as: F:\java\Oracle tablespace. dbf) ' Note: The suffix is BDF
Size table space (for example: 100M)
Autoextend on next each auto-expansion size (e.g. 50m);

--Create a temporary table space--
Create temporary tablespace table space name (for example: Table_1)
Tempfile ' file path and filename (such as: F:\java\Oracle tablespace. dbf) ' Note: The suffix is BDF
Size table space (for example: 100M)
For example:
Create temporary tablespace table_1
Tempfile F:\java\Oracle Table Space \a.dbf
Size 100M

--View tablespace name, ID, file storage location, initial size
Select Tablespace_name,file_id,file_name
bytes
From Dba_data_files
Order by file_id;


"Oracel method to create a user"
Role Permissions:
Connect
Resource

Set user permissions:
In the SQL window
Create User Usename
identified by password;

Grant connect to Usename;
Grant resource to Usename;
Grant create session to Usename;
Grant Create any index to usename;
Grant create any view to Usename;
Grant Select any table to Usename;
Grant update any table to Usename;
Grant Delete any table to usename;

--Authorizing DBA authority to the user
Grant DBA to Usename;

Use of Oracle Database

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.