首页 文章

使用sqlplus结果在命令行中运行SQL文件时出错

提问于
浏览
0

使用ORACLE 12.0c和SQL Developer .

我尝试使用sqlplus在命令行中运行SQL文件(myfile.sql): sqlplus username/password@schema @myfile.sql 导致错误 .

我只运行带有连接参数 sqlplus username/password@schema 的sqlplus,但仍然收到错误(见截图) .

enter image description here

输入用户名和密码也无济于事 .

只运行sqlplus并提供数据库域,端口和数据库名称,我设法连接并运行该文件 .

数据库是在SQL Developer中定义的,但我在 TNSNames.ora 中没有看到它 .

我错过了什么?

1 回答

  • 0

    我赞美@thatjeffsmith,答案是......看截图:
    enter image description here

相关问题