Solved

SQLPlus and Example Oracle Scripts

Posted on 2004-09-16
4
3,963 Views
Last Modified: 2012-06-27
Tutorials on Oracle's website assume that I'm already in SQL*Plus.  They tell me to execute some script.  The script then does a
CONNECT system@orc1.world

First of all how do I get into SQL*Plus when it prompts me for a username and password?   Which account should be used to run these examples?
0
Comment
Question by:lcor
[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
4 Comments
 
LVL 23

Expert Comment

by:seazodiac
ID: 12079225
what sqlplus are you talking about?  GUI version (it's called sqlplusw only for windows) or command-line?

they are using Command-line sqlplus to do script execution.


you can execute script in one of two ways :

1. first log in to database via sqlplus

I assume you are in windows:

C:\>sqlplus "system/manager@orcl.world"

then

SQL>@<file_path_to_script_file>


2. you can also execute a sql script directly

C:\>sqlplus "system/manager@orcl.world" @<script_file_name>
0
 
LVL 15

Accepted Solution

by:
ishando earned 500 total points
ID: 12079918
Do:

c:\> sqlplus /nolog
SQL> @script

or

c:\> sqlplus /nolog @script
0
 

Expert Comment

by:Captive1180
ID: 12083356
If you say ,you are in oracle then, you must be getting a dialog box which asks for a username ,password and host string

So enter username-  scott  
password- tiger
host string - enter server name if you are on a client machine else leave it blank


or

So enter username-  system
password- manager
host string - enter server name if you are on a client machine else leave it blank

OR


Try executing the following command on the command prompt  depending on where oracle is installed ----

c:\ connect scott/tiger@servername

or

c:\ connect system/manager@servername

All the best
0
 

Author Comment

by:lcor
ID: 12086778
ishando's solution was what I was looking for because I needed a way to log into SQLPlus without specifying username and password.  The Oracle example scripts do that for me.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…

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