CONNECT HOUSEOPETS/GREATPETS;
This line works only if you run Oracle on your own computer. If you are running on a networked database, modify the line to include your database server name. For example, if your database server were named FRANCE, you would modify the line to say:
CONNECT HOUSEOPETS/GREATPETS@FRANCE;
- Save the file with the change, keeping the same name for the file.
- Get to a command prompt and change directories to the directory where you stored your file.
If you are running on Windows, select Start>>Programs>>MS DOS Prompt. On UNIX, start a terminal window if needed. The command for changing to a directory in Windows and UNIX is:
Cd directoryname
Be sure to type the full path of the directory where you stored your file.
- You must log in as a valid Oracle Database Administrator (DBA). The default username and password of the Oracle DBA are
SYSTEM
and MANAGER
, respectively.
If you are using a database on your local computer, you can leave out the @server
portion.
Type this command at the operating system prompt:
Sqlplus username/password@server
This starts SQL*Plus. You will see a prompt that looks like this:
SQL>
- Execute the complete script by typing the following line and then pressing Enter:
start houseopets.sql
- When the script is done, you will automatically return to your operating system prompt. Exit the operating system window (not always needed in UNIX) by typing EXIT and pressing Enter.
You now have installed the
PETSTORE
user in your Oracle database along with the user's data.