Solved

What is the meaning of this statment in sql

Posted on 2012-03-15
4
585 Views
Last Modified: 2012-03-15
Hi experts

what is the meaning of the following statmetn in batch file xyz.bat ?

sqlplus /nolog @move_data.sql

pause
0
Comment
Question by:Haidar1
  • 2
4 Comments
 
LVL 9

Assisted Solution

by:sachinpatil10d
sachinpatil10d earned 125 total points
ID: 37723684
sqlplus

/nolog
Starts SQL*Plus but does not log on (connect) a user/session.
A connection can then be made in SQL*Plus with connect.
@
Executes the script following the @


for more details use
sqlplus -h
0
 
LVL 16

Accepted Solution

by:
Wasim Akram Shaik earned 125 total points
ID: 37723996
yes, as the expert sachinpatil said, you can login to sqlprompt without connecting to database..

showing you the screenshot of your case and  the sequence of the steps that will happen..

sqlplus /nolog @move_data.sql

first it will get connected to sqlplus like this

C:\Documents and Settings\Administrator>sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on Thu Mar 15 14:58:00 2012

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

SQL>

Open in new window


after getting connected to this prompt.. the @ part file move_data.sql gets executed...
0
 

Author Closing Comment

by:Haidar1
ID: 37724129
Dear All Thansk for your help
0
 
LVL 16

Expert Comment

by:Wasim Akram Shaik
ID: 37724218
why this answer was accept only as Good..???

have you expected more??

incase if you are looking for more? what good we have missed out, please let us know which will help us in answering better in future..!!!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now