Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oracle Database import .sql file by command prompt

I want to import .sql file in Oracle by command prompt so please tell me that command to import .sql file in oracle in MYSQL I am using it like this

mysql -u root -p -h localhost softpoint < D:\Nisarg\NEult\softpoint.sql 

but In Oracle I don't know how to use this utility so please help me

Thanks

like image 263
Chintan Gor Avatar asked Jul 18 '13 12:07

Chintan Gor


3 Answers

In Oracle, to run a script (.sql) you use SQLPLUS command line utility.

c:\> sqlplus user_name/user_password@connect_string @path\your_sql.sql
like image 141
Nick Krasnov Avatar answered Nov 05 '22 15:11

Nick Krasnov


Try to use sqlplus:

  sqlplus user/password@connect @/Nisarg/NEult/softpoint.sql

More information.

like image 35
Robert Avatar answered Nov 05 '22 15:11

Robert


It's worth knowing you can have a space between @ and the input file, which enables the use of the tab key auto completion.

like image 2
Fabien Haddadi Avatar answered Nov 05 '22 16:11

Fabien Haddadi