标签: plsql

尝试使用 SQLDeveloper 连接到 Oracle 时出现初始化错误

我已经在 Windows 7 64 位上安装了 Oracle 11.2.0 和 Allround Automations 的 SQLDeveloper。

当我运行 SQLDeveloper 并尝试连接到 Oracle 时,出现以下错误:

Initialization error
Could not load "C:\app\MyComp\product\11.2.0\dbhome_1\bin\oci.dll"

OCIDLL forced to C:\app\MyComp\product\11.2.0\dbhome_1\bin\oci.dll
LoadLibrary(C:\app\MyComp\product\11.2.0\dbhome_1\bin\oci.dll) returned 0
Run Code Online (Sandbox Code Playgroud)

可能是什么问题?

windows-7 64-bit plsql oracle-11g sqldeveloper

5
推荐指数
1
解决办法
5万
查看次数

PL/SQL Plus 脚本只给我数字

我有一个 PL/SQL 脚本,我正在尝试使用 SQLPLUS 从命令外壳运行它。然而,每当我去运行它时,我得到的只是一个数字和一个等待输入的光标。当我按回车键时,它只会增加数字并重复该过程。这是一个做同样事情的虚拟查询

set serveroutput on

DECLARE
    cursor getServerTime IS
        SELECT sysdate as t  from dual;

    myTime getServerTime%ROWTYPE;
BEGIN
    open getServerTime;

    FETCH getServerTime into myTime;

    dbms_output.put_line(myTime.t);

    close getServerTime;
END;
Run Code Online (Sandbox Code Playgroud)

从我使用的命令外壳运行它: sqlplus me/myPass@myDB @"dummy.sql"

oracle plsql sqlplus

3
推荐指数
1
解决办法
8059
查看次数

标签 统计

plsql ×2

64-bit ×1

oracle ×1

oracle-11g ×1

sqldeveloper ×1

sqlplus ×1

windows-7 ×1