Solved

What is the meaning of this statment in sql

Posted on 2012-03-15
4
610 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
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…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.
Suggested Courses

631 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