Solved

What is the meaning of this statment in sql

Posted on 2012-03-15
4
604 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL query for highest sequence 4 75
update using pipeline function 3 46
how to tune the query 17 85
C# Web service insert into Oracle table 8 41
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

739 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