过去几天我一直在与Oracle合作,我正在尝试设置本地Oracle 12c Std。在我的机器上。而且我一直在疯狂地试图为测试和教育设置示例模式。
首先我的安装没有脚本,所以我从GitHub中取出它们并将它们粘贴到架构目录中。
https://github.com/oracle/db-sample-schemas/releases/tag/v12.2.0.1
然后我从我的OCA书中执行了SQLPLUS中的命令
SQL> @ \演示\架构\ human_resources \ hr_main.sql
这是我的输出:
specify connect string as parameter 6:
Enter value for 6: localhost:1521\neworcl
SP2-0556: Invalid file name.
DROP USER hr CASCADE
*
ERROR at line 1:
ORA-01918: user 'HR' does not exist
CREATE USER hr IDENTIFIED BY *****
*
ERROR at line 1:
ORA-65096: invalid common user or role name
ALTER USER hr DEFAULT TABLESPACE users
*
ERROR at line 1:
ORA-01918: user 'HR' does not exist
ALTER USER hr TEMPORARY TABLESPACE temp
*
ERROR at line 1:
ORA-01918: user 'HR' does not exist
GRANT CREATE SESSION, CREATE VIEW, ALTER SESSION, CREATE SEQUENCE TO hr
*
ERROR at line 1:
ORA-01917: user or role 'HR' does not exist
GRANT CREATE SYNONYM, CREATE DATABASE LINK, RESOURCE , UNLIMITED TABLESPACE TO hr
*
ERROR at line 1:
ORA-01917: user or role 'HR' does not exist
ERROR:
ORA-12545: Connect failed because target host or object does not exist
Warning: You are no longer connected to ORACLE.
SP2-0640: Not connected
ERROR:
ORA-12545: Connect failed because target host or object does not exist
SP2-0640: Not connected
SP2-0640: Not connected
****** Creating REGIONS table ....
SP2-0640: Not connected
SP2-0640: Not connected
SP2-0640: Not connected
(输出继续“未连接”很长时间)
我在研究中读到了一些简短的常用用户名必须用'C ##'标记才能被接受为用户/模式名称。我试着弄乱它并且不能让它快乐。
我认为它也不喜欢我的连接器字符串。
有没有人有任何见解?这让我发疯了。