Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old March 10th, 2004, 03:24 PM
GuruGeek2003 GuruGeek2003 is offline
Null Zero
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 24 GuruGeek2003 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 56 sec
Reputation Power: 0
SQL/Plus from Command Line

I was wondering is it possible to SSH into a server and run SQL/Plus from the command line or must I have some client installed?

Thanks,
R

Reply With Quote
  #2  
Old March 12th, 2004, 12:30 PM
dohertym dohertym is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: cali
Posts: 10 dohertym User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Re-

Sure, you just need to set environment variables
ORACLE_HOME=/bla/bla/bla; export ORACLE_HOME
ORACLE_SID=<NAME>;export ORACLE_SID
PATH=$PATH:$ORACLE_HOME/bin;export PATH


etc..

Reply With Quote
  #3  
Old March 13th, 2004, 09:19 AM
GuruGeek2003 GuruGeek2003 is offline
Null Zero
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 24 GuruGeek2003 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 56 sec
Reputation Power: 0
Quote:
Originally Posted by dohertym
Sure, you just need to set environment variables
ORACLE_HOME=/bla/bla/bla; export ORACLE_HOME
ORACLE_SID=<NAME>;export ORACLE_SID
PATH=$PATH:$ORACLE_HOME/bin;export PATH


etc..


Ok, when I log in, those variables are set.

I have never used SQL/Plus before, anytime I've had to do something with an oracle table, I've always authored a PHP script to do it.

I'm assuming I can use SQL/Plus to create, alter, insert, and delete from Oracle tables?

How do I launch SQL/Plus?

Thanks,
Roger

Reply With Quote
  #4  
Old March 13th, 2004, 12:16 PM
dohertym dohertym is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: cali
Posts: 10 dohertym User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Sqlpus

if evrything is set you just need to call the sqlplus binary located $ORACLE_HOME/bin

SHELL>sqlplus username(owner of schema)

sqlplus>

that's it you can do any operations from here

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > SQL/Plus from Command Line


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway