Home php教程 PHP开发 Detailed introduction to creating table space in oracle

Detailed introduction to creating table space in oracle

Jan 06, 2017 am 11:28 AM

Notes:
1. If you open it in a tool such as PL/SQL, directly modify the [italic and bold part] in the following code to execute
2. Make sure the path exists, such as [D:\oracle \oradata\Oracle9i\] That is, the path where you want to save the file exists
/*It is divided into four steps*/
/*Step 1: Create a temporary table space*/

create temporary tablespace user_temp 
tempfile 'D:\oracle\oradata\Oracle9i\user_temp.dbf' 
size 50m 
autoextend on 
next 50m maxsize 20480m 
extent management local;
Copy after login

/* Step 2: Create a data table space*/

create tablespace user_data 
logging 
datafile 'D:\oracle\oradata\Oracle9i\user_data.dbf' 
size 50m 
autoextend on 
next 50m maxsize 20480m 
extent management local;
Copy after login

/*Step 3: Create a user and specify the table space*/

create user username identified by password 
default tablespace user_data 
temporary tablespace user_temp;
Copy after login

/*Step 4: Grant permissions to the user*/

grant connect,resource,dba to username;
Copy after login

For more detailed introduction to oracle table space creation and related articles, please pay attention to the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)