rt
两个数据库同时装在一台机器上,as4,2G内存
对同一张表(100w条记录)做select * 查询。
oracle采用本地sqlplus, mysql用几秒查询完毕,oracle得用2个多小时。
下面是启动oracle的配置信息SQL> startup
ORACLE instance started.Total System Global Area 603979776 bytes
Fixed Size 780300 bytes
Variable Size 170661876 bytes
Database Buffers 432013312 bytes
Redo Buffers 524288 bytes
Database mounted.
Database opened.内核配置文件也修改过。多谢大侠指点!
两个数据库同时装在一台机器上,as4,2G内存
对同一张表(100w条记录)做select * 查询。
oracle采用本地sqlplus, mysql用几秒查询完毕,oracle得用2个多小时。
下面是启动oracle的配置信息SQL> startup
ORACLE instance started.Total System Global Area 603979776 bytes
Fixed Size 780300 bytes
Variable Size 170661876 bytes
Database Buffers 432013312 bytes
Redo Buffers 524288 bytes
Database mounted.
Database opened.内核配置文件也修改过。多谢大侠指点!
可能还和sqlplus环境设置有关,
这个和数据库的性能没有啥关系。你可以count(*)试一下,有很大差距?
2個多小华在了显示上了吧!用PL/SQL Developer查询一下可以看出差别了。
用 plsqldev 会自动选取 top25(默认情况下)
sql没问题 就是对一个表做select *操作