10.12.2012 Views

SQL*Plus User's Guide and Reference - InfoLab

SQL*Plus User's Guide and Reference - InfoLab

SQL*Plus User's Guide and Reference - InfoLab

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

xl<br />

If restricted database access has been configured, the Connection Identifier field<br />

is a dropdown list of available databases to select.<br />

5. Click Login to connect to the database. The i<strong>SQL*Plus</strong> Workspace is displayed<br />

in your web browser.<br />

Now you can start entering <strong>and</strong> executing SQL, PL/SQL <strong>and</strong> <strong>SQL*Plus</strong><br />

statements <strong>and</strong> comm<strong>and</strong>s in the Workspace.<br />

Connecting to a Different Database<br />

To connect to a different database from a current comm<strong>and</strong>-line session<br />

From an existing Windows GUI or comm<strong>and</strong>-line session, enter a CONNECT<br />

comm<strong>and</strong> in the form:<br />

SQL> connect username/password@connect_identifier<br />

To hide your password, enter the CONNECT comm<strong>and</strong> in the form:<br />

SQL> connect username@connect_identifier<br />

You will be prompted to enter your password.<br />

To connect to a different database from a current i<strong>SQL*Plus</strong> session<br />

From an existing i<strong>SQL*Plus</strong> session, enter a CONNECT comm<strong>and</strong> in the form:<br />

connect username/password@connect_identifier<br />

If you do not enter a password, i<strong>SQL*Plus</strong> prompts you to enter one.<br />

Sample Schemas <strong>and</strong> <strong>SQL*Plus</strong><br />

Sample schemas are included with the Oracle Database. Examples in this guide use<br />

the EMP_DETAILS_VIEW view of the Human Resources (HR) sample schema. This<br />

schema contains personnel records for a fictitious company.<br />

For more information about the sample schemas, see the Oracle Database Sample<br />

Schemas guide.<br />

Unlocking the Sample Tables<br />

The Human Resources (HR) Sample Schema may be installed as part of the default<br />

Oracle Database installation. The HR account is locked by default.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!