installing the sample schemas
Hi I am new to sqlOracle
I was trying to follow some Oracle tutorial,but i needed to install the sample schemas (OE-order entry) first
http://www.oracle.com/technology/obe/obe1013jdev/common/OBEConnection.htm
1. First i download the sample_schema_scripts.zip and extracted into the folder
c:\schema that i created
2. I start database from my database OracleEX10g
3. go to the C:\schema that have the sql script (oe8_main.sql)
4.use sqlplus
5. login as system and put the password
6. run the scripts oe8_main.sql with no problems
7. it asked me for " specify password for oe8 as parameter 1:
and i need to enter value for 1: which is i dont know
8. i need to fil this value til parameter 6
9. so i typed the value &1 for parameter 1 and &2 for parameter 2...til parameter 6
10. it showned error:
ERROR at line 1:
ora-00988 : missing or invalid passwords(s)
and user or role 'OE8" does not exist and
ask me to enter value for database_name: which i dont know
11. anyone can help to solve the problem and how can i know what are the passwords for 6 parameters
12. Do i need to create my new user because i used system as a user
13. this is the content of oe8_main.sql file attached:
____________________________________________________________________
SET ECHO OFF
PROMPT
PROMPT specify password for oe8 as parameter 1:
DEFINE pass = &1
PROMPT
PROMPT specify default tablespeace for oe8 as parameter 2:
DEFINE tbs = &2
PROMPT
PROMPT specify temporary tablespace for oe8 as parameter 3:
DEFINE ttbs = &3
PROMPT
PROMPT specify password for HR as parameter 4:
DEFINE passhr = &4
PROMPT
PROMPT specify password for SYS as parameter 5:
DEFINE pass_sys = &5
PROMPT
PROMPT specify path for log files as parameter 6:
DEFINE log_path = &6
PROMPT
-- The first dot in the spool command below is
-- the SQL*Plus concatenation character
DEFINE spool_file = &log_path.oe8_main.log
SPOOL &spool_file
-- Dropping the user with all its objects
DROP USER oe8 CASCADE;
REM =======================================================
REM create user
REM
REM The user is assigned tablespaces and quota in separate
REM ALTER USER statements so that the CREATE USER statement
REM will succeed even if the demo and temp tablespaces do
REM not exist.
REM =======================================================
CREATE USER oe8 IDENTIFIED BY &pass;
ALTER USER oe8 DEFAULT TABLESPACE &tbs QUOTA UNLIMITED ON &tbs;
ALTER USER oe8 TEMPORARY TABLESPACE &ttbs;
GRANT CONNECT TO oe8;
GRANT RESOURCE TO oe8;
GRANT CREATE MATERIALIZED VIEW TO oe8;
GRANT QUERY REWRITE TO oe8;
REM =======================================================
REM grants from sys schema
REM =======================================================
rem KM: 01Aug02 - remove "AS SYSDBA" clause - NOT needed FOR GRANT
CONNECT sys/&pass_sys&&database_name
GRANT execute ON sys.dbms_stats TO oe8;
REM =======================================================
REM grants from hr8 schema
REM =======================================================
CONNECT hr8/&passhr&&database_name;
GRANT REFERENCES, SELECT ON employees TO oe8;
GRANT REFERENCES, SELECT ON countries TO oe8;
GRANT REFERENCES, SELECT ON locations TO oe8;
GRANT SELECT ON jobs TO oe8;
GRANT SELECT ON job_history TO oe8;
GRANT SELECT ON departments TO oe8;
REM =======================================================
REM create oe8 schema (order entry)
REM =======================================================
CONNECT oe8/&pass&&database_name
ALTER SESSION SET NLS_LANGUAGE=American;
ALTER SESSION SET NLS_TERRITORY=America;
@@oe8_cre
@@oe8_p_pi
@@oe8_p_pd
@@oe8_p_whs
@@oe8_p_cus
@@oe8_p_ord
@@oe8_p_itm
@@oe8_p_inv
@@oe8_views
@@oe8_comnt
@@oe8_idx
@@oe8_analz
spool off