欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

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

程序员文章站 2024-04-05 08:56:24
...

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>