- 浏览: 384630 次
- 性别:
- 来自: 深圳
文章分类
- 全部博客 (244)
- Java (71)
- Javascript/Ajax/JQuery (32)
- Oracle/MysqL/PLSQL/Toad (41)
- Linux (24)
- Struts (6)
- Struts2 (4)
- Spring (2)
- Hibernate (1)
- iBATIS (1)
- CSS (1)
- 计算机硬件 (1)
- 收藏 (3)
- Project Management (1)
- 自考-复旦计算机信息管理 (0)
- Intellij IDEA (10)
- PS (1)
- Thinker (5)
- IT Life (22)
- joke (1)
- weblogic (3)
- Ubuntu (4)
- webservice (1)
- Test (1)
- 证券市场基本知识 (4)
- dwr (1)
- 系统操作 (4)
- MS Office (2)
- 多线程 (1)
- Eclipse/MyEclipse (2)
- 金融基本知识 (6)
- Tomcat (8)
- others (5)
- 操作系统 (9)
- PMP (2)
- 售前顾问 (1)
- oracle (0)
- 系统部署 (1)
最新评论
-
麦田里的阳光:
软件下载:http://xiazai.beyondcompar ...
BeyondCompare超强插件! -
xujq:
学习了, 谢谢.一直在用BeyondCompare, 今天突然 ...
BeyondCompare超强插件! -
wujianmin577:
直接用第三个rar效果很好
Intellij idea11破解包 注册机 -
Gosi_:
这样压缩在windows平台上中文文件名会乱码!不知道到博主有 ...
使用Ant的工具类,把目录压缩成zip -
osacar:
能破12版的不?
Intellij idea11破解包 注册机
C:>sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on 星期六 9月 17 20:07:36 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect sys as sysdba
请输入口令:
已连接。
SQL> select instance_name from v$instance;
INSTANCE_NAME
----------------
test
SQL> create tablespace test datafile 'D:oracleoradatatesttest.dbf' size 1m;
表空间已创建。
SQL> connect xys/manager
已连接。
SQL> create table t(id int);
表已创建。
SQL> insert into t values(1);
已创建 1 行。
SQL> commit;
提交完成。
SQL> select default_tablespace from dba_users where username='XYS';
DEFAULT_TABLESPACE
------------------------------
USERS
SQL> create index t_idx on t(id) tablespace test;
索引已创建。
SQL> exec dbms_tts.transport_set_check('test' , true);
BEGIN dbms_tts.transport_set_check('test' , true); END;
*
ERROR 位于第 1 行:
ORA-06550: 第 1 行, 第 7 列:
PLS-00201: 必须说明标识符 'DBMS_TTS.TRANSPORT_SET_CHECK'
ORA-06550: 第 1 行, 第 7 列:
PL/SQL: Statement ignored
SQL> exec sys.dbms_tts.transport_set_check('test' , true);
PL/SQL 过程已成功完成。
SQL> select * from transport_set_violations;
select * from transport_set_violations
*
ERROR 位于第 1 行:
ORA-00942: 表或视图不存在
SQL> connect sys as sysdba
请输入口令:
已连接。
SQL> select * from transport_set_violations;
未选定行
SQL> alter tablespace test read only;
表空间已更改。
SQL> host exp transport_tablespace=y tablespace=test file=d:test.dmp;
LRM-00101: 未知的参数名 'tablespace'
EXP-00019: 处理参数失败,有关帮助请键入 'EXP HELP=Y'
EXP-00000: 导出终止失败
SQL> host exp transport_tablespace=y tablespaces=test file=d:test.dmp;
Export: Release 9.2.0.1.0 - Production on 星期六 9月 17 20:14:30 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
用户名: / as sysdba
连接到: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集
注: 将不会导出表数据(行)
关于导出可传输的表空间元数据...
EXP-00008: 遇到 ORACLE 错误 29341
ORA-29341: 可传送集不是自包含的
ORA-06512: 在"SYS.DBMS_PLUGTS", line 1093
ORA-06512: 在line 1
EXP-00000: 导出终止失败
SQL> drop index xys.t_idx;
索引已丢弃。
SQL> create table xys.tt(id int) tablespace test;
create table xys.tt(id int) tablespace test
*
ERROR 位于第 1 行:
ORA-00955: 名称已由现有对象使用
SQL> create table xys.t_t(id int) tablespace test;
create table xys.t_t(id int) tablespace test
*
ERROR 位于第 1 行:
ORA-01647: 表空间'TEST'是只读,无法在其中分配空间
SQL> alter tablespace test read write;
表空间已更改。
SQL> create table xys.t_t(id int) tablespace test;
表已创建。
SQL> insert into xys.t_t values(1);
已创建 1 行。
SQL> commit;
提交完成。
SQL> select * from transport_set_violations;
未选定行
SQL> show user
USER 为"SYS"
SQL> alter tablespace test read only;
表空间已更改。
SQL> host exp transport_tablespace=y tablespace=test file=d:test.dmp;
LRM-00101: 未知的参数名 'tablespace'
EXP-00019: 处理参数失败,有关帮助请键入 'EXP HELP=Y'
EXP-00000: 导出终止失败
SQL> host exp transport_tablespace=y tablespaces=test file=d:test.dmp;
Export: Release 9.2.0.1.0 - Production on 星期六 9月 17 20:17:09 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
用户名: / as sysdba
连接到: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集
注: 将不会导出表数据(行)
关于导出可传输的表空间元数据...
用于表空间 TEST...
. 正在导出群集定义
. 正在导出表定义
. . 正在导出表 T_T
. 正在导出引用完整性约束条件
. 正在导出触发器
. 结束导出可传输的表空间元数据
在没有警告的情况下成功终止导出。
SQL> exit
从Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production中断开
C:>set oracle_sid=testdb
C:>imp transport_tablespace=y datafiles='D:oracleoradatatestdbtest.dbf' ta
blespaces=test file=d:test.dmp
Import: Release 9.2.0.1.0 - Production on 星期六 9月 17 20:21:12 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
用户名: / as sysdba
连接到: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
经由常规路径导出由EXPORT:V09.02.00创建的文件
关于导入可传输表空间元数据...
已经完成ZHS16GBK字符集和AL16UTF16 NCHAR 字符集中的导入
. 正在将SYS的对象导入到 SYS
IMP-00017: 由于 ORACLE 的 29342 错误,以下的语句失败
"BEGIN sys.dbms_plugts.checkUser('XYS'); END;"
IMP-00003: 遇到 ORACLE 错误 29342
ORA-29342: 数据库中不存在用户 XYS
ORA-06512: 在"SYS.DBMS_PLUGTS", line 1535
ORA-06512: 在line 1
IMP-00000: 未成功终止导入
C:>set oracle_sid=testdb
C:>sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on 星期六 9月 17 20:21:49 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect sys as sysdba
请输入口令:
已连接。
SQL> create user xys identified by manager default tablespace users;
用户已创建
SQL> grant connect , resource , dba to xys;
授权成功。
SQL> exit
从Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production中断开
C:>imp transport_tablespace=y datafiles='D:oracleoradatatestdbtest.dbf' ta
blespaces=test file=d:test.dmp
Import: Release 9.2.0.1.0 - Production on 星期六 9月 17 20:23:10 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
用户名: / as sysdba
连接到: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
经由常规路径导出由EXPORT:V09.02.00创建的文件
关于导入可传输表空间元数据...
已经完成ZHS16GBK字符集和AL16UTF16 NCHAR 字符集中的导入
. 正在将SYS的对象导入到 SYS
. 正在将XYS的对象导入到 XYS
. . 正在导入表 "T_T"
成功终止导入,但出现警告。
C:>set oracle_sid=testdb
C:>sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on 星期六 9月 17 20:23:45 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect xys/manager
已连接。
SQL> select * from t_t;
ID
----------
1
SQL> select name from v$tablespace;
NAME
------------------------------
SYSTEM
UNDOTBS1
TEMP
DRSYS
INDX
TOOLS
USERS
XDB
TEST
已选择9行。
SQL> create table t_tt(id int) tablespace test;
create table t_tt(id int) tablespace test
*
ERROR 位于第 1 行:
ORA-01647: 表空间'TEST'是只读,无法在其中分配空间
SQL> alter tablespace test read write;
表空间已更改。
SQL>
最后别忘了改写表空间的状态!
SQL*Plus: Release 9.2.0.1.0 - Production on 星期六 9月 17 20:07:36 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect sys as sysdba
请输入口令:
已连接。
SQL> select instance_name from v$instance;
INSTANCE_NAME
----------------
test
SQL> create tablespace test datafile 'D:oracleoradatatesttest.dbf' size 1m;
表空间已创建。
SQL> connect xys/manager
已连接。
SQL> create table t(id int);
表已创建。
SQL> insert into t values(1);
已创建 1 行。
SQL> commit;
提交完成。
SQL> select default_tablespace from dba_users where username='XYS';
DEFAULT_TABLESPACE
------------------------------
USERS
SQL> create index t_idx on t(id) tablespace test;
索引已创建。
SQL> exec dbms_tts.transport_set_check('test' , true);
BEGIN dbms_tts.transport_set_check('test' , true); END;
*
ERROR 位于第 1 行:
ORA-06550: 第 1 行, 第 7 列:
PLS-00201: 必须说明标识符 'DBMS_TTS.TRANSPORT_SET_CHECK'
ORA-06550: 第 1 行, 第 7 列:
PL/SQL: Statement ignored
SQL> exec sys.dbms_tts.transport_set_check('test' , true);
PL/SQL 过程已成功完成。
SQL> select * from transport_set_violations;
select * from transport_set_violations
*
ERROR 位于第 1 行:
ORA-00942: 表或视图不存在
SQL> connect sys as sysdba
请输入口令:
已连接。
SQL> select * from transport_set_violations;
未选定行
SQL> alter tablespace test read only;
表空间已更改。
SQL> host exp transport_tablespace=y tablespace=test file=d:test.dmp;
LRM-00101: 未知的参数名 'tablespace'
EXP-00019: 处理参数失败,有关帮助请键入 'EXP HELP=Y'
EXP-00000: 导出终止失败
SQL> host exp transport_tablespace=y tablespaces=test file=d:test.dmp;
Export: Release 9.2.0.1.0 - Production on 星期六 9月 17 20:14:30 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
用户名: / as sysdba
连接到: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集
注: 将不会导出表数据(行)
关于导出可传输的表空间元数据...
EXP-00008: 遇到 ORACLE 错误 29341
ORA-29341: 可传送集不是自包含的
ORA-06512: 在"SYS.DBMS_PLUGTS", line 1093
ORA-06512: 在line 1
EXP-00000: 导出终止失败
SQL> drop index xys.t_idx;
索引已丢弃。
SQL> create table xys.tt(id int) tablespace test;
create table xys.tt(id int) tablespace test
*
ERROR 位于第 1 行:
ORA-00955: 名称已由现有对象使用
SQL> create table xys.t_t(id int) tablespace test;
create table xys.t_t(id int) tablespace test
*
ERROR 位于第 1 行:
ORA-01647: 表空间'TEST'是只读,无法在其中分配空间
SQL> alter tablespace test read write;
表空间已更改。
SQL> create table xys.t_t(id int) tablespace test;
表已创建。
SQL> insert into xys.t_t values(1);
已创建 1 行。
SQL> commit;
提交完成。
SQL> select * from transport_set_violations;
未选定行
SQL> show user
USER 为"SYS"
SQL> alter tablespace test read only;
表空间已更改。
SQL> host exp transport_tablespace=y tablespace=test file=d:test.dmp;
LRM-00101: 未知的参数名 'tablespace'
EXP-00019: 处理参数失败,有关帮助请键入 'EXP HELP=Y'
EXP-00000: 导出终止失败
SQL> host exp transport_tablespace=y tablespaces=test file=d:test.dmp;
Export: Release 9.2.0.1.0 - Production on 星期六 9月 17 20:17:09 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
用户名: / as sysdba
连接到: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集
注: 将不会导出表数据(行)
关于导出可传输的表空间元数据...
用于表空间 TEST...
. 正在导出群集定义
. 正在导出表定义
. . 正在导出表 T_T
. 正在导出引用完整性约束条件
. 正在导出触发器
. 结束导出可传输的表空间元数据
在没有警告的情况下成功终止导出。
SQL> exit
从Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production中断开
C:>set oracle_sid=testdb
C:>imp transport_tablespace=y datafiles='D:oracleoradatatestdbtest.dbf' ta
blespaces=test file=d:test.dmp
Import: Release 9.2.0.1.0 - Production on 星期六 9月 17 20:21:12 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
用户名: / as sysdba
连接到: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
经由常规路径导出由EXPORT:V09.02.00创建的文件
关于导入可传输表空间元数据...
已经完成ZHS16GBK字符集和AL16UTF16 NCHAR 字符集中的导入
. 正在将SYS的对象导入到 SYS
IMP-00017: 由于 ORACLE 的 29342 错误,以下的语句失败
"BEGIN sys.dbms_plugts.checkUser('XYS'); END;"
IMP-00003: 遇到 ORACLE 错误 29342
ORA-29342: 数据库中不存在用户 XYS
ORA-06512: 在"SYS.DBMS_PLUGTS", line 1535
ORA-06512: 在line 1
IMP-00000: 未成功终止导入
C:>set oracle_sid=testdb
C:>sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on 星期六 9月 17 20:21:49 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect sys as sysdba
请输入口令:
已连接。
SQL> create user xys identified by manager default tablespace users;
用户已创建
SQL> grant connect , resource , dba to xys;
授权成功。
SQL> exit
从Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production中断开
C:>imp transport_tablespace=y datafiles='D:oracleoradatatestdbtest.dbf' ta
blespaces=test file=d:test.dmp
Import: Release 9.2.0.1.0 - Production on 星期六 9月 17 20:23:10 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
用户名: / as sysdba
连接到: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
经由常规路径导出由EXPORT:V09.02.00创建的文件
关于导入可传输表空间元数据...
已经完成ZHS16GBK字符集和AL16UTF16 NCHAR 字符集中的导入
. 正在将SYS的对象导入到 SYS
. 正在将XYS的对象导入到 XYS
. . 正在导入表 "T_T"
成功终止导入,但出现警告。
C:>set oracle_sid=testdb
C:>sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on 星期六 9月 17 20:23:45 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect xys/manager
已连接。
SQL> select * from t_t;
ID
----------
1
SQL> select name from v$tablespace;
NAME
------------------------------
SYSTEM
UNDOTBS1
TEMP
DRSYS
INDX
TOOLS
USERS
XDB
TEST
已选择9行。
SQL> create table t_tt(id int) tablespace test;
create table t_tt(id int) tablespace test
*
ERROR 位于第 1 行:
ORA-01647: 表空间'TEST'是只读,无法在其中分配空间
SQL> alter tablespace test read write;
表空间已更改。
SQL>
最后别忘了改写表空间的状态!
发表评论
-
oracle导出部分表
2017-07-27 18:28 0exp username/password@sid:1521 ... -
修改oracle导出的dmp文件的版本
2017-05-03 19:49 1224修改oracle导出的dmp文件的版本 -
oracle基本操作SQL预计
2016-12-20 17:42 628导入数据:imp 用户名/密码@orcl file=要导数据 ... -
Oracle数据泵导入导出
2016-11-03 10:21 1190创建授权目录 create directory DUMP ... -
PL/SQL Developer连接本地Oracle 11g 64位数据库
2015-12-31 00:08 6281.登录PL/SQL Developer 这里省略Orac ... -
oralce中某字段是以逗号分割的字符串,把该字段中逗号分割的值要转换成其他字段的值
2014-11-11 17:31 1021SELECT ( SELECT wm_concat(u.u ... -
查询一个表的数据,并把该数据备份到一个临时表
2014-09-10 15:29 962CREATE TABLE t_setting_BAK AS ... -
oracle比较大小的函数
2014-07-30 18:11 1683select least(1,2), greatest( ... -
Oracle中如何使用DBLink
2014-07-25 10:14 580我们有两个数据库a,b,分别有两个用户A和B,用户A希望访问 ... -
Oracle异常处理概念
2014-06-13 14:18 13405.1 异常处理概念 5.1.1 预定义的异常处理 5 ... -
查询某一字段是否重复
2014-06-10 15:40 533select lu.user_name, count(*) ... -
ora-01033:oracle initialization or shutdown in progress 解决方法
2013-06-19 11:08 1080首先:问题的产生原因 ... -
注册码
2013-06-02 21:58 1021PLSQL Developer V10 注册码 L ... -
PLSQL的快捷键以及使用技巧
2013-06-02 01:08 8961、登录后默认自动选中My Objects 默 ... -
Toad导入Oracle的.DMP文件方法
2013-05-30 09:14 1280见附件! -
toad常用快捷键
2013-05-30 08:58 17301、toad 如何进行表分析?(1)选中表名按F4,然后弹 ... -
Oracle哪些列可以建索引,哪些列不可以建索引
2013-05-19 21:55 3772什么字段应该建立索引 在作为主键的列上,强制该列的唯一 ... -
事务隔离级别
2013-03-28 10:27 881基本内容在JDBC操作中, ... -
oracle导出sequence和view
2012-08-28 10:19 1176--导出sequence select 'create seq ... -
Tomcat6配置JNDI(Oracle数据库)
2012-07-06 10:47 12661. 配置Oracle JDBC Driver。 ...
相关推荐
CREATE TABLESPACE命令详解 CREATE TABLESPACE命令详解
Mysql innodb tablespace 表空间实践
rlv方式增加oracle tablespace datafile
Oracle_create_tablespace语法详解.docx
1tablespace.sql
CREATE TABLESPACECREATE TABLESPACECREATE TABLESPACECREATE TABLESPACECREATE TABLESPACE
本文详细介绍和阐述了 Oracle 用户(user)和表空间(tablespace)的概念和使用方法等内容,并对用户和表空间使用过程中的注意事项、关键知识点等进行了重点标注和详尽解析,以便于读者进行深入学习和理解。...
oracle tablespace usage
表空间信息查询脚本
get_tablespace_usage.sh
在使用EXP/IMP进行数据的迁移,经常会需要转换表空间的操作,简单记录一下,EXP过程碰到表空间的转换时需要注意的问题。 如果不是分区表、不包含LOB字段,且不含索引组织表的OVERFLOW段,那么可以通过下面的方法将...
create temporary tablespace user_temp tempfile 'D:\oracle\oradata\Oracle9i\user_temp.dbf' size 50m autoextend on next 50m maxsize 20480m extent management local; /*第2步:创建数据表空间...
DBA在日常工作中,最重要的一点就是查看表空间的使用情况,去了解是否有表空间满了的情况出现。 具体方法和步骤如下所示: 第一步:打开PLSQL 第二步:新建一个SQL窗口 第三步:输入代码: select a.tablespace_...
NULL 博文链接:https://j2ee2009.iteye.com/blog/1005083
ERP管理系统资料:SAP专业教材资料T_Tablespace_Ext.doc
本地管理的oracle 数据文件存储internal
Oracle_tablespace_(表空间)的创建、删除、修改、扩展及检查等