Forum     

Go Back   Digit Technology Discussion Forum > Software > Software Q&A
Register FAQ Calendar Mark Forums Read

Software Q&A Having trouble with software? Find solutions here

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 02-04-2007, 08:43 PM   #1 (permalink)
Cool and Calm
 
abhi_10_20's Avatar
 
Join Date: Jul 2006
Location: Bangalore
Posts: 395
Question How to run SQL statements?

I am new to DBMS.....

when i construct simple queries, i can't run them either with Oracle 10g
or with MySQL. They show 'Not connected to server'.....or something like that.

this is obvious as there is no server or a central system to store the database queries....

so how to run these on a single standalone PC?
__________________
When Roger's at play, opponents pray..!!!!!
abhi_10_20 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 02-04-2007, 09:52 PM   #2 (permalink)
Torrent Lover :)
 
akshaykapoor_3's Avatar
 
Join Date: Nov 2006
Location: Chandigarh
Posts: 178
Default Re: How to run SQL statements?

1) Open notepad

2) Copy the following code:-

@echo off
echo connect INTERNAL/ORACLE >%0.tmp
echo STARTUP OPEN >>%0.tmp
echo exit 8; >>%0.tmp
rem -- Run sql script --
sqlplus /nolog @%0.tmp
rem -- Cleanup --
del %0.tmp


3) Save the file as "Start.bat"
4) Run this file and then try your SQL commands in MySql.

Hope this will work for you..

Do let me knw if u face any prob still !
akshaykapoor_3 is offline  
Old 02-04-2007, 11:49 PM   #3 (permalink)
God of Mistakes...
 
Garbage's Avatar
 
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,905
Default Re: How to run SQL statements?

when u got SQL> on Oracle 10g, write 'connect' there.

and use username as scott 'n password as tiger.

or username as system and username u provided on installation
__________________
Registered Linux User #468778
----------------------------------
http://twitter.com/_Garbage_
Garbage is online now  
Old 03-04-2007, 12:33 PM   #4 (permalink)
Cool and Calm
 
abhi_10_20's Avatar
 
Join Date: Jul 2006
Location: Bangalore
Posts: 395
Default Re: How to run SQL statements?

tried...but its saying "no database selected"......
__________________
When Roger's at play, opponents pray..!!!!!
abhi_10_20 is offline  
Old 03-04-2007, 12:42 PM   #5 (permalink)
Torrent Lover :)
 
akshaykapoor_3's Avatar
 
Join Date: Nov 2006
Location: Chandigarh
Posts: 178
Default Re: How to run SQL statements?

^^^^ u tried with the batch file??
akshaykapoor_3 is offline  
Old 03-04-2007, 05:53 PM   #6 (permalink)
Cool and Calm
 
abhi_10_20's Avatar
 
Join Date: Jul 2006
Location: Bangalore
Posts: 395
Default Re: How to run SQL statements?

the batch file got executed in a flash and went off.

then once again i opened mysql command line and created a table(query)....
it didnt accept saying, 'no database selected'
__________________
When Roger's at play, opponents pray..!!!!!
abhi_10_20 is offline  
Old 03-04-2007, 06:10 PM   #7 (permalink)
In The Zone
 
Join Date: Oct 2006
Location: Mumbai
Posts: 360
Default Re: How to run SQL statements?

don't just jump on oracle it is very advance database server start from mssql
it is available free @ msdn.com for developer and student.
__________________
Dhiraj Thakur
thakur.dheeraj(@)gmail.com
Desi-Tek.com is offline  
Old 03-04-2007, 11:07 PM   #8 (permalink)
God of Mistakes...
 
Garbage's Avatar
 
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,905
Default Re: How to run SQL statements?

Why u don't tried with GUI ???

Oracle 9i onwards support Browser based database creation!
__________________
Registered Linux User #468778
----------------------------------
http://twitter.com/_Garbage_
Garbage is online now  
Old 04-04-2007, 12:01 AM   #9 (permalink)
In The Zone
 
deepak.krishnan's Avatar
 
Join Date: Jan 2005
Location: Palakkad/Bangalore
Posts: 423
Default Re: How to run SQL statements?

Not Connected to Server error??? tat might b bcoz oracle DB has been disabled in startup... try enabling it???
__________________
.dk
deepak.krishnan is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 09:02 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2