Appendix F: Installing the ACME Database - SQL Bible [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

SQL Bible [Electronic resources] - نسخه متنی

Alex Kriegel

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید






Appendix F: Installing the ACME Database

This
appendix explains how to install the sample ACME database on the RDBMS of your
choice. Refer to the section that corresponds to the database platform you've
created.


Installing the ACME Sample Database on
Oracle 9i (Windows) Using SQL*Plus


Following are instructions on how to install
ACME sample database on Oracle 9i (Windows) using the
SQL*Plus utility (explained in
Appendix
E
).



If the Oracle services are not started, start them as described
in
Appendix
D
.



Copy the
D:\sqlbib\oracle_acme (where
D is the letter of your CD-ROM drive) directory from the
CD-ROM that comes with your book to the
C:\ directory of your computer.



Start SQL*Plus from the command line by typing:

C:\> sqlplus
/nolog



If you want to create a log file, use the
spool command (described in
Appendix
E
). For example, if you want the resulting log file
load.log to be created in the same
directory, the other files you need are:

SQL> spool
C:\sqlbib\oracle_acme\load.log



Run script
C:\sqlbib\oracle_acme\load.sql:

SQL>
@C:\sqlbib\oracle_acme\load.sql



This script creates the Oracle ACME database. Stop spooling (if
started) by issuing:

SQL> spool
off



Type
quit to exit SQL*Plus.



Note

Script
Chapter
6
. You can run
Table
F-1
.























Table F-1: Common Errors from Running Oracle
Scripts


Error


Explanation


Solution


ORA-12560:
TNS:
protocol adapter
error


Oracle is not
started.


Start Oracle and try running
your scripts again.


ORA-12154:
TNS:
could
not
resolve
service
name


You supplied an incorrect
service name.


You don't need to supply a
service name, just user ID and password.


ORA-01031:
insufficient
privileges


You are not a member of
ORA_DBA OS
group.


Either log in as a user who is a
member of the
ORA_DBA group or add current user
to the
ORA_DBA group.


ORA-01033:
Oracle
initialization
or
shutdown
in
progress


Oracle is being
started.


Wait and try
again.


/ 207