首页 >数据库 >mysql教程 >Oracle中获取表存放位置及创建表空间

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

WBOY
WBOY原创
2016-06-07 17:27:191033浏览

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

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
上一篇:HBase 定期备份下一篇:HBase 增量备份