Oracle system系统表空间和数据表空间的insert性能测试
来源:互联网 发布:mac intellij idea 卡 编辑:程序博客网 时间:2024/06/06 07:37
SQL> show user
USER is "ZHONGWC"
SQL>
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
PL/SQL Release 10.2.0.5.0 - Production
CORE 10.2.0.5.0 Production
TNS for Linux: Version 10.2.0.5.0 - Production
NLSRTL Version 10.2.0.5.0 - Production
Elapsed: 00:00:00.00
SQL> select username,default_tablespace from dba_users where username in('SYS','SYSTEM');
USERNAME DEFAULT_TABLESPACE
------------------------------ ------------------------------
SYS SYSTEM
SYSTEM SYSTEM
Elapsed: 00:00:00.04
SQL>
SQL> create table t_users(id number) tablespace users;
Table created.
Elapsed: 00:00:00.07
SQL> create table t_system(id number) tablespace system;
Table created.
Elapsed: 00:00:00.01
SQL> select table_name,tablespace_name from user_tables;
TABLE_NAME TABLESPACE_NAME
------------------------------ ------------------------------
T_SYSTEM SYSTEM
T_USERS USERS
Elapsed: 00:00:00.11
SQL>
SQL> select statistic#,name from v$statname where name='CPU used by this session';
STATISTIC# NAME
---------- ----------------------------------------------------------------
13 CPU used by this session
Elapsed: 00:00:00.00
SQL> select * from v$mystat where statistic#=13;
SID STATISTIC# VALUE
---------- ---------- ----------
860 13 18
Elapsed: 00:00:00.01
SQL>
SQL> begin
2 for i in 1..200000 loop
3 insert into t_users values(i);
4 end loop;
5 end;
6 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:04.87 --执行时间4.87s
SQL> select * from v$mystat where statistic#=13;
SID STATISTIC# VALUE
---------- ---------- ----------
860 13 482 --CUP消耗482-18=464
Elapsed: 00:00:00.00
SQL>
SQL>
SQL> begin
2 for i in 1..200000 loop
3 insert into t_system values(i);
4 end loop;
5 end;
6 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:10.95 --执行时间10.95s
SQL> select * from v$mystat where statistic#=13;
SID STATISTIC# VALUE
---------- ---------- ----------
860 13 1546 --CUP消耗1546-482=1064
USER is "ZHONGWC"
SQL>
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
PL/SQL Release 10.2.0.5.0 - Production
CORE 10.2.0.5.0 Production
TNS for Linux: Version 10.2.0.5.0 - Production
NLSRTL Version 10.2.0.5.0 - Production
Elapsed: 00:00:00.00
SQL> select username,default_tablespace from dba_users where username in('SYS','SYSTEM');
USERNAME DEFAULT_TABLESPACE
------------------------------ ------------------------------
SYS SYSTEM
SYSTEM SYSTEM
Elapsed: 00:00:00.04
SQL>
SQL> create table t_users(id number) tablespace users;
Table created.
Elapsed: 00:00:00.07
SQL> create table t_system(id number) tablespace system;
Table created.
Elapsed: 00:00:00.01
SQL> select table_name,tablespace_name from user_tables;
TABLE_NAME TABLESPACE_NAME
------------------------------ ------------------------------
T_SYSTEM SYSTEM
T_USERS USERS
Elapsed: 00:00:00.11
SQL>
SQL> select statistic#,name from v$statname where name='CPU used by this session';
STATISTIC# NAME
---------- ----------------------------------------------------------------
13 CPU used by this session
Elapsed: 00:00:00.00
SQL> select * from v$mystat where statistic#=13;
SID STATISTIC# VALUE
---------- ---------- ----------
860 13 18
Elapsed: 00:00:00.01
SQL>
SQL> begin
2 for i in 1..200000 loop
3 insert into t_users values(i);
4 end loop;
5 end;
6 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:04.87 --执行时间4.87s
SQL> select * from v$mystat where statistic#=13;
SID STATISTIC# VALUE
---------- ---------- ----------
860 13 482 --CUP消耗482-18=464
Elapsed: 00:00:00.00
SQL>
SQL>
SQL> begin
2 for i in 1..200000 loop
3 insert into t_system values(i);
4 end loop;
5 end;
6 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:10.95 --执行时间10.95s
SQL> select * from v$mystat where statistic#=13;
SID STATISTIC# VALUE
---------- ---------- ----------
860 13 1546 --CUP消耗1546-482=1064
Elapsed: 00:00:00.01
0 0
- Oracle system系统表空间和数据表空间的insert性能测试
- oracle 临时表空间和数据表空间
- oracle 临时表空间和数据表空间
- 【数据库】Oracle表空间和Oracle数据表
- oracle创建临时表空间和数据表空间以及删除
- oracle系统表空间system和sysaux使用率很高
- Oracle 临时表空间 数据表空间
- oracle 数据表 表空间迁移
- Oracle数据表迁移表空间
- 临时表空间和数据表空间
- Oracle 建立表空间和用户 \ 导出和导入 数据表
- Oracle system表空间的恢复
- oracle system表空间的管理
- 什么是表空间(tablespace)和系统表空间(System tablespace)的区别?
- oracle数据库数据表空间和用户创建
- oracle 创建数据表空间和用户
- oracle创建数据表空间
- Oracle创建数据表空间
- Palindrome Partitioning
- Git 使用的简单汇总
- sscanf,sscanf_s及其相关用法
- Git diff 比较不同版本的差异
- [二分]HDOJ1969 Pie
- Oracle system系统表空间和数据表空间的insert性能测试
- fwrite、fflush、fileno、fsync
- android学习笔记1: AsyncTask使用
- WAS 6.1 的类加载
- Android WIFI热点默认安全性的修改方法
- git参考手册
- 海量数据查找
- http://www.soleilnoir.net/believein/#/start
- 如何利用 JConsole观察分析Java程序的运行,进行排错调优