楼主: angel-yuchen
3215 1

SAS读取ORACLE数据慢的问题 [推广有奖]

  • 0关注
  • 0粉丝

本科生

0%

还不是VIP/贵宾

-

威望
0
论坛币
124 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
557 点
帖子
26
精华
0
在线时间
117 小时
注册时间
2007-10-11
最后登录
2017-2-17

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
ORACLE数据(在本机)中有550万行记录,8个字段,用PL/SQL取数仅需要0.5秒左右,用MATLAB读取的速度亦非常快,然而通过SAS连接ORACLE取数的时间却需要13秒多,通过逻辑库的方法获取数据的耗时也基本相同,哪位大侠能帮忙解决一下这个问题吧!

proc sql;

connect to oracle as tmp(user=system  password=*****   path="@ashare") ;
create table data_ashare as select * from connection to tmp (select * from ashareprice where code='600012.SH' and t_date between 20050101 and 20130101 );
disconnect from tmp;
quit;


NOTE: “PROCEDURE SQL”所用时间(总处理时间):
      实际时间          13.29 秒
      CPU 时间          0.04 秒

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Oracle ACL CLE connection Disconnect password between oracle system create

沙发
邓贵大 发表于 2013-9-3 11:48:03 |只看作者 |坛友微信交流群
(1) make sure your Oracle table has an index on column code
(2) increase buffsize (default is 250) in the CONNECT TO statement.
My hunch is that either an index does not exist or the index is not utilized by the pass-through query.
Be still, my soul: the hour is hastening on
When we shall be forever with the Lord.
When disappointment, grief and fear are gone,
Sorrow forgot, love's purest joys restored.

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-1 04:21