SP2-0310: невозможно открыть файл "__SUB__CWD __ / sales_history / csh_v3.sql" - PullRequest
0 голосов
/ 17 сентября 2018

Я пытаюсь установить образец схемы sales_history , но получаю ошибки:

SP2-0310: unable to open file "__SUB__CWD__/sales_history/csh_v3.sql"
SP2-0310: unable to open file "__SUB__CWD__/sales_history/lsh_v3.sql"
SP2-0310: unable to open file "__SUB__CWD__/sales_history/psh_v3.sql"

Как решить эту проблему?csh_v3.sql имеет полные разрешения,

Полный вывод сеанса:

SQL> @?/demo/schema/sales_history/sh_main.sql

specify password for SH as parameter 1:
Enter value for 1: password

specify default tablespace for SH as parameter 2:
Enter value for 2: users

specify temporary tablespace for SH as parameter 3:
Enter value for 3: temp

specify password for SYS as parameter 4:
Enter value for 4: password

specify directory path for the data files as parameter 5:
Enter value for 5: /u01/app/oracle/product/12.2/db_1/demo/schema/sales_history/

writeable directory path for the log files as parameter 6:
Enter value for 6: /u01/app/oracle/product/12.2/db_1/demo/schema/log/

specify version as parameter 7:
Enter value for 7: v3

specify connect string as parameter 8:
Enter value for 8: localhost:1522/techfuturepdb.elom.tg


Session altered.

DROP USER sh CASCADE
*
ERROR at line 1:
ORA-01940: cannot drop a user that is currently connected


old   1: CREATE USER sh IDENTIFIED BY &pass
new   1: CREATE USER sh IDENTIFIED BY password
CREATE USER sh IDENTIFIED BY password
            *
ERROR at line 1:
ORA-01920: user name 'SH' conflicts with another user or role name


old   1: ALTER USER sh DEFAULT TABLESPACE &tbs
new   1: ALTER USER sh DEFAULT TABLESPACE users
old   2:  QUOTA UNLIMITED ON &tbs
new   2:  QUOTA UNLIMITED ON users

User altered.

old   1: ALTER USER sh TEMPORARY TABLESPACE &ttbs
new   1: ALTER USER sh TEMPORARY TABLESPACE temp

User altered.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.

Connected.

Grant succeeded.

old   1: CREATE OR REPLACE DIRECTORY data_file_dir AS '&data_dir'
new   1: CREATE OR REPLACE DIRECTORY data_file_dir AS '/u01/app/oracle/product/12.2/db_1/demo/schema/sales_history/'

Directory created.

old   1: CREATE OR REPLACE DIRECTORY log_file_dir AS '&log_dir'
new   1: CREATE OR REPLACE DIRECTORY log_file_dir AS '/u01/app/oracle/product/12.2/db_1/demo/schema/log/'

Directory created.


Grant succeeded.


Grant succeeded.


Grant succeeded.

Connected.

Session altered.


Session altered.

SP2-0310: unable to open file "__SUB__CWD__/sales_history/csh_v3.sql"
SP2-0310: unable to open file "__SUB__CWD__/sales_history/lsh_v3.sql"
SP2-0310: unable to open file "__SUB__CWD__/sales_history/psh_v3.sql"
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...