Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8765915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:24:48+00:00 2026-06-13T16:24:48+00:00

There is a dump in .sql format, to be imported to the server. From

  • 0

There is a dump in .sql format, to be imported to the server. From tools only sqlplus. The problem is that sqlplus requires that after each CREATE TABLE was / and only after / start creating the table. And dump looks like this:

DROP TABLE ...;
CREATE TABLE ...;
INSERT INTO ...;
...
DROP TABLE ...;
CREATE TABLE ...;
INSERT INTO ...;
...
...

When it comes to INSERT nothing is inserted because the table is not created. Edit the file is not possible because it is a large (~ 700 MB). How to import the dump?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:24:50+00:00Added an answer on June 13, 2026 at 4:24 pm

    Given the file /tmp/foo.sql:

    CREATE TABLE foo (
        a integer primary key,
        b integer
    );
    
    INSERT INTO foo VALUES (1, 2);
    

    running sqlplus:

    $ sqlplus user/pass@db @/tmp/foo
    
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Oct 25 10:54:39 2012
    
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle9i Release 9.2.0.4.0 - 64bit Production
    JServer Release 9.2.0.4.0 - Production
    
    
    Table created.
    
    
    1 row created.
    
    SQL>
    

    It sounds like you’ve set delimiter to / somewhere. Change it back to ;.

    If you need to edit the file, you can do so with perl -p -E "s/pattern/replacement/" oldfile.sql > newfile.sql or similar. (Or, honestly, many editors can handle 700MB files on modern machines with many gigabytes of RAM).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have server that needs to process and dump from an SQL database queries
I imported the Stack Overflow data dump into SQL Server 2008. Some queries, especially
I have a sql dump file from MySQL that I use to create SQL
I want to retrieve stack trace from a user dump file programmatically . There
I have a really large SQL dump around 400MB. It's in the following format,
Hello I'm doing some data conversion from PostgreSQL to Microsoft SQL Server. So far
I currently keep an SQL Dump of my db with each commit. However, the
I have a dump of Ontonotes - v3.0 in sql format, of size 2.33
I want to create schema.sql instead of schema.rb. After googling around I found that
I have an mnesia database dump from an ejabberd server (DCD, DCL, and DAT

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.