Oracle Create User

Source: Internet
Author: User

--Look up the name and size of the table space
SELECT T.tablespace_name, round (SUM (Bytes/(1024x768)), 0) ts_size from Dba_tablespaces T, dba_data_files D WHERE t.ta Blespace_name = D.tablespace_name GROUP by t.tablespace_name;
--Find the physical name of the table space
SELECT Tablespace_name,
FILE_ID,
file_name,
Round (Bytes/(1024* 1024x768), 0) Total_space
From Dba_data_files
ORDER Bytablespace_name;
--Create a temporary table space
Create temporary tablespace xxx_temp
Tepmfile ' temporary table Space storage path \XXX_TEMP.DBF '
Size 50m--Specify the initial value size
Autoextend on next 50m--50m self-increment after exceeding 50m
MaxSize 20480m extent management local;
--Create TABLE space
Create Tablespace Xxx_data
Logging
DataFile ' table Space storage path \XXX_DATA.DBF '
Size 50m
MaxSize 20480--Specify maximum value
Extent management Local;
--Create user and specify Tablespace
Create user xxx identified by Xxxxs
Default tablespace xxx_data--specifies a table space
Temporary tablespace xxx_temp;--z specifying a temporary table space
--grant permissions to the created user
Grant connect,resource,dba to XXX;

  

Oracle Create User

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.