热门标签 | HotTags
当前位置:  开发笔记 > 数据库 > 正文

Oracle10g创建表空间慢问题

系统环境CPUinfo:NumberofCPUs4Clockspeed1595MHzBusspeed532MTsCPUIDregistersvendor

系统环境 CPU info: Number of CPUs = 4 Clock speed = 1595 MHz Bus speed = 532 MT/s CPUID registers vendor

系统环境

CPU info:
Number of CPUs = 4
Clock speed = 1595 MHz
Bus speed = 532 MT/s
CPUID registers
vendor information = "GenuineIntel"
processor serial number = 0x0000000000000000
processor version info = 0x0000000020000704
architecture revision: 0
processor family: 32 Intel(R) Itanium 2 9000 series
processor model: 0 Intel(R) Itanium 2 9000 series
processor revision: 7 Stepping C2
largest CPUID reg: 4
processor capabilities = 0x0000000000000005
implements long branch: 1
implements 16-byte atomic operations: 1
Bus features
implemented = 0xbdf0000020000000
selected = 0x0000000000000000

Cache info (per core):
L1 Instruction: size = 16 KB, associativity = 4
L1 Data: size = 16 KB, associativity = 4
L2 Instruction: size = 1024 KB, associativity = 8
L2 Data: size = 256 KB, associativity = 8
L3 Unified: size = 9216 KB, associativity = 9

Memory = 16364 MB (15.980469 GB)

Platform info:
model string = "ia64 hp server rx2660"
machine id number = d3a7307e-6c0c-11dc-9a43-073f36ab3df2
machine serial number = SGH4735167

OS info:
sysname = HP-UX
nodename = xxx
release = B.11.23
version = U (unlimited-user license)
machine = ia64
idnumber = 3550949502
vmunix _release_version:

数据库系统:Oracle 10g r2

安装的时候把系统80%的内存都分配给oracle数据库(大概是10G左右)

问题:

在/data目录建表空间
1G需要时间为2分多钟
2G需要时间为5分多钟

在/oradata目录建表空间
1G需要时间为5分多钟
2G需要时间为10分多钟

在本机的window系统下安装oracle 11g,,

创建表空间1G大概15到20秒,2G大概30到40秒左右。

为什么在hp-ux上创建表空间会那么慢呢?

具体在hp-ux上简表过程如下:

$ vi create_tablespace.sh
"create_tablespace.sh" 10 lines, 395 characters
#!/bin/sh
echo "===========start date:`date` ============"
sqlplus / as sysdba <create tablespace test1 datafile '/data/test1.dbf' size 1024M;
quit;
EOF
echo "===========end date:`date`==============="
$ ./create_tablespace.sh
===========start date:Mon Dec 5 10:55:48 EAT 2011 ============

SQL*Plus: Release 10.2.0.1.0 - Production on Mon Dec 5 10:55:48 2011

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


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options

SQL> SQL> SQL>
Tablespace created.

SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
===========end date:Mon Dec 5 10:57:53 EAT 2011===============
$ vi create_tablespace.sh
"create_tablespace.sh" 10 lines, 394 characters
#!/bin/sh
echo "===========start date:`date` ============"
sqlplus / as sysdba <create tablespace test2 datafile '/oradata/test2.dbf' size 1024M;
quit;
EOF
echo "===========end date:`date`==============="

"create_tablespace.sh" 10 lines, 397 characters
$ ./create_tablespace.sh
===========start date:Mon Dec 5 10:59:13 EAT 2011 ============

SQL*Plus: Release 10.2.0.1.0 - Production on Mon Dec 5 10:59:13 2011

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


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options

SQL> SQL> SQL>
Tablespace created.

SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
===========end date:Mon Dec 5 11:04:01 EAT 2011===============
$ vi create_tablespace.sh
"create_tablespace.sh" 10 lines, 397 characters
#!/bin/sh
echo "===========start date:`date` ============"
sqlplus / as sysdba <create tablespace test4 datafile '/oradata/test4.dbf' size 2048M;
quit;
EOF
echo "===========end date:`date`==============="

"create_tablespace.sh" 10 lines, 397 characters
$ ./create_tablespace.sh
===========start date:Mon Dec 5 11:05:32 EAT 2011 ============

SQL*Plus: Release 10.2.0.1.0 - Production on Mon Dec 5 11:05:32 2011

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


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options

SQL> SQL> SQL>
Tablespace created.

SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
===========end date:Mon Dec 5 11:16:03 EAT 2011===============
$ vi create_tablespace.sh
"create_tablespace.sh" 10 lines, 397 characters
#!/bin/sh
echo "===========start date:`date` ============"
sqlplus / as sysdba <create tablespace test3 datafile '/data/test3.dbf' size 2048M;
quit;
EOF
echo "===========end date:`date`==============="

$ vi create_tablespace.sh
"create_tablespace.sh" 10 lines, 397 characters
#!/bin/sh
echo "===========start date:`date` ============"
sqlplus / as sysdba <create tablespace test3 datafile '/data/test3.dbf' size 2048M;
quit;
EOF
echo "===========end date:`date`==============="


$ ./create_tablespace.sh
===========start date:Mon Dec 5 12:43:34 EAT 2011 ============

SQL*Plus: Release 10.2.0.1.0 - Production on Mon Dec 5 12:43:34 2011

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


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options

SQL> SQL> SQL>
Tablespace created.

SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
===========end date:Mon Dec 5 12:47:39 EAT 2011===============


推荐阅读
  • 深入理解 SQL 视图、存储过程与事务
    本文详细介绍了SQL中的视图、存储过程和事务的概念及应用。视图为用户提供了一种灵活的数据查询方式,存储过程则封装了复杂的SQL逻辑,而事务确保了数据库操作的完整性和一致性。 ... [详细]
  • 构建基于BERT的中文NL2SQL模型:一个简明的基准
    本文探讨了将自然语言转换为SQL语句(NL2SQL)的任务,这是人工智能领域中一项非常实用的研究方向。文章介绍了笔者在公司举办的首届中文NL2SQL挑战赛中的实践,该比赛提供了金融和通用领域的表格数据,并标注了对应的自然语言与SQL语句对,旨在训练准确的NL2SQL模型。 ... [详细]
  • 在使用 DataGridView 时,如果在当前单元格中输入内容但光标未移开,点击保存按钮后,输入的内容可能无法保存。只有当光标离开单元格后,才能成功保存数据。本文将探讨如何通过调用 DataGridView 的内置方法解决此问题。 ... [详细]
  • 本文详细介绍了如何在 Linux 平台上安装和配置 PostgreSQL 数据库。通过访问官方资源并遵循特定的操作步骤,用户可以在不同发行版(如 Ubuntu 和 Red Hat)上顺利完成 PostgreSQL 的安装。 ... [详细]
  • 如何在PostgreSQL中查看数据表
    本文将指导您使用pgAdmin工具连接到PostgreSQL数据库,并展示如何浏览和查找其中的数据表。通过简单的步骤,您可以轻松访问所需的表结构和数据。 ... [详细]
  • 利用存储过程构建年度日历表的详细指南
    本文将介绍如何使用SQL存储过程创建一个完整的年度日历表。通过实例演示,帮助读者掌握存储过程的应用技巧,并提供详细的代码解析和执行步骤。 ... [详细]
  • 本文介绍了如何通过 Maven 依赖引入 SQLiteJDBC 和 HikariCP 包,从而在 Java 应用中高效地连接和操作 SQLite 数据库。文章提供了详细的代码示例,并解释了每个步骤的实现细节。 ... [详细]
  • 在使用SQL Server进行动态SQL查询时,如果遇到LIKE语句无法正确返回预期结果的情况,通常是因为参数传递方式不当。本文将详细探讨这一问题,并提供解决方案及相关的技术背景。 ... [详细]
  • 本文介绍如何通过创建替代插入触发器,使对视图的插入操作能够正确更新相关的基本表。涉及的表包括:飞机(Aircraft)、员工(Employee)和认证(Certification)。 ... [详细]
  • MySQL缓存机制深度解析
    本文详细探讨了MySQL的缓存机制,包括主从复制、读写分离以及缓存同步策略等内容。通过理解这些概念和技术,读者可以更好地优化数据库性能。 ... [详细]
  • SQLite 动态创建多个表的需求在网络上有不少讨论,但很少有详细的解决方案。本文将介绍如何在 Qt 环境中使用 QString 类轻松实现 SQLite 表的动态创建,并提供详细的步骤和示例代码。 ... [详细]
  • 精选30本C# ASP.NET SQL中文PDF电子书合集
    欢迎订阅我们的技术博客,获取更多关于C#、ASP.NET和SQL的最新资讯和资源。 ... [详细]
  • MySQL 数据库迁移指南:从本地到远程及磁盘间迁移
    本文详细介绍了如何在不同场景下进行 MySQL 数据库的迁移,包括从一个硬盘迁移到另一个硬盘、从一台计算机迁移到另一台计算机,以及解决迁移过程中可能遇到的问题。 ... [详细]
  • Hadoop入门与核心组件详解
    本文详细介绍了Hadoop的基础知识及其核心组件,包括HDFS、MapReduce和YARN。通过本文,读者可以全面了解Hadoop的生态系统及应用场景。 ... [详细]
  • 本文介绍如何在 FireDAC 环境下实现 FDMEMTable 字段的自动获取,为开发人员提供便捷的数据处理方式。 ... [详细]
author-avatar
手机用户2502857067
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有