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 7092035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:15:45+00:00 2026-05-28T08:15:45+00:00

I have to use SQLPLUS for my database class, and our first assignment is

  • 0

I have to use SQLPLUS for my database class, and our first assignment is simple saving.

I followed the instructions.. (I’m using PuTTY to access sqlplus)

“Use the following SQL commands in this exercise and try the SAVE and SPOOL commands to save your SQL commands and output to external files.

select table_name from all_tables where owner='UNIVERSITY';
select * from university.faculty;
select * from university.clubs;

For this lab, do the following:

  • At the SQL> prompt, type Save test.sql (or save test.sql replace if the file already exists) then hit enter; then type any SQL commands, the commands will be saved to the test.sql file. Later you can use the START command to run the saved SQL commands. E.g.:
    SQL> start test.sql

  • At the SQL> prompt, type spool output.txt then enter; then type any SQL commands; when finished type ‘spool off’; the commands and results will be saved to file output.txt. The file will be overwritten if used in the spool command again. Turn in file test.sql and output.txt in the dropbox on D2L by Monday before class.”

(Obviously asking for help isn’t against the rules, since the instructions are right there already.. i simply don’t understand them or they’re wrong)

When I type SAVE test.sql i yield => “Nothing to save”

When I type SAVE test.sql after a query, it saves only the last typed query.

How do I have it save ALL my queries instead of just the last one typed?

  • 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-05-28T08:15:46+00:00Added an answer on May 28, 2026 at 8:15 am

    How do I have it save ALL my queries instead of just the last one typed?

    SAVE saves the content of the SQL*Plus buffer into the file. The buffer gets replaced with every SQL statement that you write, hence you get only the last command. Save has an append command that will append to the file.

    So, first create your file.

    save test.sql create
    

    and append the file after every SQL script.

    select * from employees
    /
    save test.sql append;
    select * from departments
    /
    save test.sql append;
    

    and so on

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

Sidebar

Related Questions

If I have use database first to build a context, and instantiate this context
Have a use case wherein need to maintain a connection open to a database
Say I have use date = r.find('abbr') to get <abbr class="dtstart" title="2012-11-16T00:00:00-05:00">November 16, 2012</abbr>
In the past I have use the Log4Net ILog interface and custom database appenders
i have use mysql database . my problem is that i run a query
Hi i am developing android application, And now i have to use sqlite database
I have use IlMerge to merge all the dlls of my projects in one
I have use include ('base.php') script in my other scripts ( more.php ). Now
Hello I have use DOMDocs in the past but I am stuck how to
I'm just starting to learn AspectJ, and I have use-case for say, User login.

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.