SQL> select dbms_random.value from dual;     VALUE
----------
0.55712251
可以的啊,是不是你的dbms_random包出问题了?

解决方案 »

  1.   

    请测试:
    select count(*) from dual;
    如果是1,则正常。
    如果是2,可能就是问题的原因。
      

  2.   

    ORA-06512 at string line stringCause: Backtrace message as the stack is unwound by unhandled exceptions.Action: Fix the problem causing the exception or write an exception handler for this condition. Or you may need to contact your application administrator or database administrator.错误。
      

  3.   

    我说,你试了没?最有可能的是你的dual中又被insert了一条记录。
    用delete from dual,试试。
      

  4.   

    如果包有问题,执行%ORACLE_HOME\rdbms\admin\dbmsrand.sql重建该包
      

  5.   

    谢谢 snowy_howe(天下有雪) ,就是这个问题,
    谢谢大家!