Home  >  Article  >  Database  >  Oracle中获取表存放位置及创建表空间

Oracle中获取表存放位置及创建表空间

WBOY
WBOYOriginal
2016-06-07 17:27:191014browse

C:\Users\Administratorgt;sqlplus SQL*Plus: Release 11.2.0.1.0 Production on 星期五 3月 1 17:16:09 2013 Copyright (c) 19

C:\Users\Administrator>sqlplus

SQL*Plus: Release 11.2.0.1.0 Production on 星期五 3月 1 17:16:09 2013

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

请输入用户名:  sys
输入口令:

连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select name from v$datafile;

NAME
--------------------------------------------------------------------------------
D:\APP\ADMINISTRATOR\ORADATA\JXG1_20104350121\SYSTEM01.DBF
D:\APP\ADMINISTRATOR\ORADATA\JXG1_20104350121\SYSAUX01.DBF
D:\APP\ADMINISTRATOR\ORADATA\JXG1_20104350121\UNDOTBS01.DBF
D:\APP\ADMINISTRATOR\ORADATA\JXG1_20104350121\USERS01.DBF
D:\APP\ADMINISTRATOR\ORADATA\JXG1_20104350121\TABLE_LIZHENG.DBF

SQL> create tablespace Table_lizheng3 datafile 'D:\APP\ADMINISTRATOR\ORADATA\JXG1_20104350121\Table_lizheng3.DBF' size 100m autoextend on next 50m maxsize unlimited;

表空间已创建。

SQL>

linux

Statement:
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
Previous article:HBase 定期备份Next article:HBase 增量备份