Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Look up the database name, create temporary table space, create table space, add database file, create

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Rapid deployment of an oracle11G database server that can be used by an application system

-- Yinmo (Sun Zhong)

Query database name:

Select instance_name from v$instance

Create temporary tablespace 500m automatic expansion

Create temporary tablespace zktime_temp

Tempfile'/ data/u01/app/oracle/oradata/zktime_temp.dbf'

Size 500m reuse autoextend on

Query the tablespace data file path:

Select * from dba_data_files

Create a tablespace:

Create tablespace zktime

Datafile'/ data/u01/app/oracle/oradata/zktime_1.dbf'

Size 500m

Autoextend on

New data files for tablespaces:

ALTER TABLESPACE zktime add

Datafile'/ data/u01/app/oracle/oradata/zktime_2.dbf'

Size 500m

Autoextend on

Create a user

CREATE USER zktime

IDENTIFIED BY zktimeoracle11

DEFAULT TABLESPACE zktime

TEMPORARY TABLESPACE zktime_temp

Simple authorization

GRANT CONNECT TO zktime

GRANT RESOURCE TO zktime

GRANT dba TO zktime

Delete tablespaces and database files

DROP TABLESPACE zktime_temp INCLUDING CONTENTS AND DATAFILES

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report