且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Oracle SQL Developer工具中运行.sql文件以导入数据库?

更新时间:2021-09-28 22:34:03

您可以在 SQL Developer 工作表中将.sql文件作为脚本执行.使用运行脚本图标,或直接按 F5 .

You could execute the .sql file as a script in the SQL Developer worksheet. Either use the Run Script icon, or simply press F5.

例如,

@path\script.sql;

请记住,您需要如上所述放置@.

Remember, you need to put @ as shown above.

但是,如果使用SQL Developer的数据库导出实用程序导出了数据库,则应该使用Import实用程序.请遵循此处提到的步骤使用Oracle SQL Developer 3.0导入和导出

But, if you have exported the database using database export utility of SQL Developer, then you should use the Import utility. Follow the steps mentioned here Importing and Exporting using the Oracle SQL Developer 3.0