How to save all typed commands in SQLPLUS environment!!!
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 6 of 6

Thread: How to save all typed commands in SQLPLUS environment!!!

  1. #1
    Join Date
    May 2008
    Posts
    23

    How to save all typed commands in SQLPLUS environment!!!

    Hi friends,

    I am rajesh, am new to Oracle DBA.i have one doubt.
    i.e. How can we save the sqlplus environment while from starting to end of the session..

    for better to understand please see the attachment..

    in this whatever the commands i have entered i want to save those commands into one text file from starting to end of the session...


    Please help me ...


    Thanks
    Rajesh
    Attached Images Attached Images

  2. #2
    Join Date
    Apr 2001
    Location
    Czechia
    Posts
    712
    Hi,
    look at the spool command. It saves all typed commands and feedbacks.
    Ales
    The whole difference between a little boy and an adult man is the price of toys

  3. #3
    Join Date
    May 2008
    Posts
    23
    Hi,

    can you give me small discription about the same?
    for example i have started sqlplus environment now....and i have entered some of the commands ....and so on....and am exited.
    Now i want to save these all typed commands in to one textfile based on date like "08032009.txt".
    as you told how to initialize this .txt file before entering any commands in sqlplus environment.


    Thanks
    Rajesh

  4. #4
    Join Date
    Apr 2001
    Location
    Czechia
    Posts
    712
    So, do you think I'm a documentation interface?

    SQL> spool 08032009.txt
    SQL> -- your commands here
    SQL> spool off
    Ales
    The whole difference between a little boy and an adult man is the price of toys

  5. #5
    Join Date
    May 2008
    Posts
    23
    Hi,

    After saving how can i open that saved file again?

    i am unable to fine the location of that file physically.

    Thanks
    Rajesh

  6. #6
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,554
    Quote Originally Posted by rajeshbalusu View Post
    Hi,

    After saving how can i open that saved file again?

    i am unable to fine the location of that file physically.

    Thanks
    Rajesh
    No offense but I would start with simple O/S stuff, then move into Oracle.
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width