我的pL/SQL怎么没有打印阿?

胖和尚minifat 2004-08-01 10:54:46
[oracle@mars2 fun]$ more call1.sql
declare
tot_id integer;
tot_cnt integer;
begin
-- call fun
-- tot_id := get_id( 30, tot_cnt );
DBMS_OUTPUT.PUT_LINE( 'total id is: '||tot_id||' , count is '|| tot_cnt );
end;
/
[oracle@mars2 fun]$ sqlplus system/emsdts

SQL*Plus: Release 10.1.0.2.0 - Production on Sun Aug 1 10:53:53 2004

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


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

SQL> start call1.sql

PL/SQL procedure successfully completed.

SQL>
...全文
147 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
胖和尚minifat 2004-08-01
  • 打赏
  • 举报
回复
但是自己定义的函数调用不了啊
[oracle@mars2 fun]$ more call1.sql
declare
tot_id integer;
tot_cnt integer;
begin
-- call fun
tot_id := get_id( 30, tot_cnt );
DBMS_OUTPUT.PUT_LINE( 'total id is: '||tot_id||' , count is '|| tot_cnt );
end;
/
[oracle@mars2 fun]$ more fun1.sql
create function system.get_id(
least integer,
total_count integer )
return integer
is
ret integer;
begin
select sum(ID), count(*) into ret, total_count
from yyq_test
where ID>least;
return ret;
end get_id;
/
[oracle@mars2 fun]$ sqlplus system/emsdts

SQL*Plus: Release 10.1.0.2.0 - Production on Sun Aug 1 11:48:32 2004

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


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

SQL> star^H^H^H^[[3~
SP2-0310: unable to open fil.sql"
SQL> set serveroutput on
SQL> start fun1.sql

Warning: Function created with compilation errors.

SQL> start call1.sql
tot_id := get_id( 30, tot_cnt );
*
ERROR at line 6:
ORA-06550: line 6, column 13:
PLS-00905: object SYSTEM.GET_ID is invalid
ORA-06550: line 6, column 3:
PL/SQL: Statement ignored


SQL>
hot.wind 2004-08-01
  • 打赏
  • 举报
回复
SQL> set serveroutput on
SQL> start call1.sql
胖和尚minifat 2004-08-01
  • 打赏
  • 举报
回复
thanks
tyl3 2004-08-01
  • 打赏
  • 举报
回复
set serveroutput on
dlab 2004-08-01
  • 打赏
  • 举报
回复
set serveroutput on
zhpsam109 2004-08-01
  • 打赏
  • 举报
回复
学习!
内容概要:本文针对无刷直流电机驱动的电子机械制动(EMB)执行器,建立了考虑Stribeck摩擦特性的非线性耦合动力学模型,并在Simulink环境中完成了系统级仿真分析。研究综合集成了电机动力学、齿轮传动机构与制动执行机构的动力学特性,构建了高保真的机电一体化系统模型。重点引入Stribeck摩擦模型以精确描述低速工况下执行器内部存在的静摩擦、粘滞摩擦与库仑摩擦之间的过渡行为,有效提升了系统在启停、反向运动等瞬态过程中的动态响应仿真精度。通过多工况仿真验证了模型的有效性,能够准确反映摩擦引起的爬行、滞后与定位误差等非线性现象,为EMB系统的高性能控制算法设计(如摩擦补偿、滑模控制)与结构优化提供了高可信度的仿真平台。; 适合人群:从事汽车电子制动系统、电机驱动控制、机电系统建模与仿真研究的研究生、科研人员及工程技术人员,需具备扎实的机械动力学、自动控制理论基础和MATLAB/Simulink仿真能力。; 使用场景及目标:①用于高精度电子机械制动系统的设计验证与性能预测;②为消除摩擦非线性影响的先进控制策略(如自适应控制、智能控制)提供精确的被控对象模型;③深入探究Stribeck摩擦等非线性因素对系统动态性能(如响应延迟、稳态误差)的作用机理; 阅读建议:读者应结合提供的Simulink模型文件,深入剖析Stribeck摩擦模块的数学实现与参数辨识方法,建议通过改变输入指令(如阶跃、正弦)和负载条件进行对比仿真,以直观理解非线性摩擦对系统动态特性的影响。

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧