Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to load query

Status
Not open for further replies.

bhavin12300

Programmer
Oct 12, 2006
24
IN
hi i am new suer of this forum.
i need your help.
i want to load query which is written in notepad in to oracle 8i.
how to do that please help throughtout this
 
Can you give us the OS details, please? Could the query be ftp'd to the server as query.sql and run from a sqlplus prompt? More details please.

Alan Bennett said:
I don't mind people who aren't what they seem. I just wish they'd make their mind up.
 

Start>All Programs>Oracle8i>Application Development>SQL*Plus

Login to database.

Copy and paste query from Notepad into SQL*Plus

Then from SQL*Plus you can save the query.

[3eyes]

----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
What exactly do you mean "load" your query into oracle? If you simply want to run it from oracle, SQL*Plus is a good option as mentioned by Ken and LKBrown. If you actually want to store your query on oracle itself, then you must inbed it in a view or stored procedure.
 
BHavin,

You mentioned that the query is in Notepad. So, in Notepad, you click File -> Exit -> Save As "C:\MyScripts\BHavin.sql". Then, from SQL*Plus, at the SQL> prompt, you can say:
Code:
SQL> @c:\myscripts\BHavin
The above will execute the commands that appear in your file "BHavin.sql" that resides in the folder C:\myscripts.

Let us know if this resolves your need.



[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I can provide you with low-cost, remote Database Administration services: see our website and contact me via www.dasages.com]
 
thansk you so much guys .
i really appericiate you my problem is sloved thank youuuuuuuuuuuuuuuu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top