Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import .sql file in Oracle?

I have .sql file. I need to import that to oracle 11g. .sql file contains ddl queries for all tables. How can i import .sql file to oracle 11g. I have sqldeveloper tool.

Thanks in Advance.

like image 615
Naresh.P Avatar asked Nov 20 '12 10:11

Naresh.P


People also ask

How do I import a SQL database file?

Open SQL Server Management Studio. Connect to an instance of the SQL Server Database Engine or localhost. Expand Databases, right-click a database (test in the example below), point to Tasks, and click Import Flat File above Import Data.


1 Answers

From SQL Developer or Toad

Open --> File --> /locationofyourfile/yourfile.sql. 

Once you have the file opened in SQL Developer or Toad,

execute by F5

From SQLPlus

@/locationofyourfile/yourfile.sql
like image 158
Jacob Avatar answered Sep 20 '22 13:09

Jacob