sqlplus run a script

When we work Oracle database with our fancy tools (like TOAD, SqlDeveloper), need to run some sql scripts. Toad, SqlDeveloper and other database tools have greate interface for doing these jobs but sometimes sql script can be too big for opening in a tool and running it. You face with memory problem when open too big sql script (200 MB).

You can do it this job with sqlplus simple way. First of all you should open command line (in Windows).

Command Window

As you can see from the screenshot, you can connect database sqlplus "user/password@database" like this.

user            : database user
password   : database password
database    : database which you want to connect.

After successfully connected database you should see following screen.



To run sql script we should write @{path}{file}. If we have a script in C drive, we should write (Windows):

SQL> @C:\test.sql


Comments

Popular posts from this blog

XML parsing unable to switch the encoding

d3.js Introduction

HTML Vector Graphic PATH element