Oracle 11g on ECS 测试实践--安装案例

本文涉及的产品
云原生数据仓库AnalyticDB MySQL版,基础版 8ACU 100GB 1个月
简介: 参考文档:MOS Doc ID 472408.1基于 AMERICAN_AMERICA.US7ASCII 字符集[oracle@orcl1 schema]$ cd /u01/app/oracle/product/11.

参考文档:MOS Doc ID 472408.1
基于 AMERICAN_AMERICA.US7ASCII 字符集

[oracle@orcl1 schema]$ cd /u01/app/oracle/product/11.2.0/db_1/demo/schema/
[oracle@orcl1 schema]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Thu Jul 25 15:54:50 2019

Copyright (c) 1982, 2013, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> @mkplug.sql

specify password for SYS as parameter 1:
Enter value for 1: oracle

specify password for HR as parameter 2:
Enter value for 2: oracle

specify password for OE as parameter 3:
Enter value for 3: oracle

specify password for PM as parameter 4:
Enter value for 4: oracle

specify password for IX as parameter 5:
Enter value for 5: oracle

specify password for  SH as parameter 6:
Enter value for 6: oracle

specify password for  BI as parameter 7:
Enter value for 7: oracle

specify INPUT metadata import file as parameter 8:
Enter value for 8: /u01/app/oracle/product/11.2.0/db_1/assistants/dbca/templates/example.dmp

specify INPUT database backup file for tablespace EXAMPLE as parameter 9:
Enter value for 9: /u01/app/oracle/product/11.2.0/db_1/assistants/dbca/templates/example01.dfb

specify OUTPUT database file for tablespace EXAMPLE as parameter 10:
Enter value for 10: /oradata/ORCL/example01.dbf

specify OUTPUT log directory as parameter 11:
Enter value for 11: /home/oracle/log.txt

specify OUTPUT dump file directory as parameter 12:
Enter value for 12: /home/oracle/

Sample Schemas are being plugged in  ...

Connected.

TO_CHAR(SYSTIMEST
-----------------
20190725 04:01:07

1 row selected.

old   1: CREATE USER hr IDENTIFIED BY &&password_hr
new   1: CREATE USER hr IDENTIFIED BY oracle

User created.

old   1: CREATE USER oe IDENTIFIED BY &&password_oe
new   1: CREATE USER oe IDENTIFIED BY oracle

User created.

old   1: CREATE USER ix IDENTIFIED BY &&password_ix
new   1: CREATE USER ix IDENTIFIED BY oracle

User created.

old   1: CREATE USER sh IDENTIFIED BY &&password_sh
new   1: CREATE USER sh IDENTIFIED BY oracle

User created.

old   1: CREATE USER pm IDENTIFIED BY &&password_pm
new   1: CREATE USER pm IDENTIFIED BY oracle

User created.

old   1: CREATE USER bi IDENTIFIED BY &&password_bi
new   1: CREATE USER bi IDENTIFIED BY oracle

User created.

SQL> SET FEEDBACK 1
SQL> SET NUMWIDTH 10
SQL> SET LINESIZE 80
SQL> SET TRIMSPOOL ON
SQL> SET TAB OFF
SQL> SET PAGESIZE 100
SQL> 
SQL> CREATE OR REPLACE DIRECTORY data_file_dir AS '/u01/app/oracle/product/11.2.0/db_1/demo/schema/sales_history/';

Directory created.

SQL> CREATE OR REPLACE DIRECTORY log_file_dir  AS '/u01/app/oracle/product/11.2.0/db_1/demo/schema/log/';

Directory created.

SQL> CREATE OR REPLACE DIRECTORY media_dir     AS '/u01/app/oracle/product/11.2.0/db_1/demo/schema/product_media/';

Directory created.

SQL> 
SQL> GRANT READ ON DIRECTORY media_dir      TO pm;

Grant succeeded.

SQL> GRANT READ ON DIRECTORY log_file_dir   TO sh;

Grant succeeded.

SQL> GRANT READ ON DIRECTORY data_file_dir  TO sh;

Grant succeeded.

SQL> GRANT WRITE ON DIRECTORY log_file_dir  TO sh;

Grant succeeded.

SQL> EXECUTE DBMS_DATAPUMP_UTL.REPLACE_DEFAULT_DIR;

PL/SQL procedure successfully completed.

SQL> EXECUTE ORACLE_OCM.MGMT_CONFIG_UTL.create_replace_dir_obj;

PL/SQL procedure successfully completed.

SQL> 
SQL> GRANT CREATE SESSION                    TO hr;

Grant succeeded.

SQL> GRANT ALTER SESSION                     TO hr;

Grant succeeded.

SQL> GRANT CREATE DATABASE LINK              TO hr;

Grant succeeded.

SQL> GRANT CREATE SEQUENCE                   TO hr;

Grant succeeded.

SQL> GRANT CREATE SYNONYM                    TO hr;

Grant succeeded.

SQL> GRANT CREATE VIEW                       TO hr;

Grant succeeded.

SQL> GRANT RESOURCE                          TO hr;

Grant succeeded.

SQL> GRANT execute ON sys.dbms_stats         TO hr;

Grant succeeded.

SQL> 
SQL> GRANT CREATE SESSION                    TO oe;

Grant succeeded.

SQL> GRANT CREATE DATABASE LINK              TO oe;

Grant succeeded.

SQL> GRANT CREATE SYNONYM                    TO oe;

Grant succeeded.

SQL> GRANT CREATE VIEW                       TO oe;

Grant succeeded.

SQL> GRANT RESOURCE                          TO oe;

Grant succeeded.

SQL> GRANT CREATE MATERIALIZED VIEW          TO oe;

Grant succeeded.

SQL> GRANT QUERY REWRITE                     TO oe;

Grant succeeded.

SQL> GRANT execute ON sys.dbms_stats         TO oe;

Grant succeeded.

SQL> 
SQL> GRANT CONNECT                           TO pm;

Grant succeeded.

SQL> GRANT RESOURCE                          TO pm;

Grant succeeded.

SQL> GRANT execute ON sys.dbms_stats         TO pm;

Grant succeeded.

SQL> GRANT READ ON DIRECTORY media_dir       TO pm;

Grant succeeded.

SQL> 
SQL> GRANT CONNECT                           TO ix;

Grant succeeded.

SQL> GRANT RESOURCE                          TO ix;

Grant succeeded.

SQL> 
SQL> GRANT aq_administrator_role             TO ix;

Grant succeeded.

SQL> GRANT aq_user_role                      TO ix;

Grant succeeded.

SQL> 
SQL> GRANT ALTER SESSION TO ix;

Grant succeeded.

SQL> GRANT CREATE CLUSTER TO ix;

Grant succeeded.

SQL> GRANT CREATE DATABASE LINK TO ix;

Grant succeeded.

SQL> GRANT CREATE SEQUENCE TO ix;

Grant succeeded.

SQL> GRANT CREATE SESSION TO ix;

Grant succeeded.

SQL> GRANT CREATE SYNONYM TO ix;

Grant succeeded.

SQL> GRANT CREATE TABLE TO ix;

Grant succeeded.

SQL> GRANT CREATE VIEW TO ix;

Grant succeeded.

SQL> GRANT CREATE CLUSTER TO ix;

Grant succeeded.

SQL> GRANT CREATE INDEXTYPE TO ix;

Grant succeeded.

SQL> GRANT CREATE OPERATOR TO ix;

Grant succeeded.

SQL> GRANT CREATE PROCEDURE TO ix;

Grant succeeded.

SQL> GRANT CREATE SEQUENCE TO ix;

Grant succeeded.

SQL> GRANT CREATE TABLE TO ix;

Grant succeeded.

SQL> GRANT CREATE TRIGGER TO ix;

Grant succeeded.

SQL> GRANT CREATE TYPE TO ix;

Grant succeeded.

SQL> GRANT CREATE SESSION TO ix;

Grant succeeded.

SQL> 
SQL> GRANT CONNECT, RESOURCE, SELECT_CATALOG_ROLE TO ix;

Grant succeeded.

SQL> 
SQL> GRANT EXECUTE ON sys.dbms_stats         TO ix;

Grant succeeded.

SQL> GRANT EXECUTE ON DBMS_AQ                TO ix;

Grant succeeded.

SQL> GRANT EXECUTE ON DBMS_AQADM             TO ix;

Grant succeeded.

SQL> GRANT EXECUTE ON DBMS_APPLY_ADM         TO ix;

Grant succeeded.

SQL> GRANT EXECUTE ON DBMS_CAPTURE_ADM       TO ix;

Grant succeeded.

SQL> GRANT EXECUTE ON DBMS_FLASHBACK         TO ix;

Grant succeeded.

SQL> GRANT EXECUTE ON DBMS_PROPAGATION_ADM   TO ix;

Grant succeeded.

SQL> GRANT EXECUTE ON DBMS_STREAMS_ADM       TO ix;

Grant succeeded.

SQL> GRANT SELECT ANY DICTIONARY             TO ix;

Grant succeeded.

SQL> 
SQL> EXECUTE DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE( -
>     privilege    => DBMS_RULE_ADM.CREATE_RULE_SET_OBJ,  -
>     grantee      => 'ix', -
>     grant_option => FALSE);

PL/SQL procedure successfully completed.

SQL> 
SQL> EXECUTE DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE( -
>     privilege    => DBMS_RULE_ADM.CREATE_RULE_OBJ,  -
>     grantee      => 'ix', -
>     grant_option => FALSE);

PL/SQL procedure successfully completed.

SQL> 
SQL> GRANT CREATE SESSION                    TO sh;

Grant succeeded.

SQL> GRANT CREATE TABLE                      TO sh;

Grant succeeded.

SQL> GRANT CREATE VIEW                       TO sh;

Grant succeeded.

SQL> GRANT CREATE CLUSTER                    TO sh;

Grant succeeded.

SQL> GRANT ALTER SESSION                     TO sh;

Grant succeeded.

SQL> GRANT CREATE SEQUENCE                   TO sh;

Grant succeeded.

SQL> GRANT CREATE SYNONYM                    TO sh;

Grant succeeded.

SQL> GRANT CREATE DATABASE LINK              TO sh;

Grant succeeded.

SQL> GRANT CREATE DIMENSION                  TO sh;

Grant succeeded.

SQL> GRANT QUERY REWRITE                     TO sh;

Grant succeeded.

SQL> GRANT CREATE MATERIALIZED VIEW          TO sh;

Grant succeeded.

SQL> GRANT CREATE VIEW                       TO sh;

Grant succeeded.

SQL> GRANT RESOURCE                          TO sh;

Grant succeeded.

SQL> GRANT select_catalog_role               TO sh;

Grant succeeded.

SQL> GRANT cwm_user                          TO sh;

Grant succeeded.

SQL> GRANT execute ON sys.dbms_stats         TO sh;

Grant succeeded.

SQL> rem   ALTER USER sh GRANT CONNECT THROUGH olapsvr;
SQL> 
SQL> GRANT CREATE SESSION                    TO bi;

Grant succeeded.

SQL> GRANT CREATE TABLE                      TO bi;

Grant succeeded.

SQL> GRANT CREATE VIEW                       TO bi;

Grant succeeded.

SQL> GRANT CREATE CLUSTER                    TO bi;

Grant succeeded.

SQL> GRANT ALTER SESSION                     TO bi;

Grant succeeded.

SQL> GRANT CREATE SEQUENCE                   TO bi;

Grant succeeded.

SQL> GRANT CREATE SYNONYM                    TO bi;

Grant succeeded.

SQL> GRANT CREATE DATABASE LINK              TO bi;

Grant succeeded.

SQL> GRANT RESOURCE                          TO bi;

Grant succeeded.

SQL> 
SQL> --
SQL> -- Restoring database file backup
SQL> -- (Using RMAN works in OMF, OCFS, raw devices and in normal file systems)
SQL> --
SQL> 
SQL> 
SQL> set echo off;

TO_CHAR(SYSTIMEST
-----------------
20190725 04:01:07

1 row selected.

old  30:       dbms_backup_restore.restoreDataFileTo(data_file_id,'&data_file_name');
new  30:       dbms_backup_restore.restoreDataFileTo(data_file_id,'/oradata/ORCL/example01.dbf');
old  33:     dbms_backup_restore.restoreBackupPiece('&dump_path'||'&data_file_backup', done);
new  33:     dbms_backup_restore.restoreBackupPiece('/home/oracle/'||'/u01/app/oracle/product/11.2.0/db_1/assistants/dbca/templates/example01.dfb', done);
Allocating device....
Specifying datafiles...
Specifing datafiles...
Restoring ...
declare
*
ERROR at line 1:
ORA-19624: operation failed, retry possible
ORA-19870: error while restoring backup piece
/home/oracle/u01/app/oracle/product/11.2.0/db_1/assistants/dbca/templates/exampl
e01.dfb
ORA-19505: failed to identify file
"/home/oracle/u01/app/oracle/product/11.2.0/db_1/assistants/dbca/templates/examp
le01.dfb"
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
ORA-06512: at "SYS.DBMS_BACKUP_RESTORE", line 5937
ORA-06512: at line 33






1 row selected.


TO_CHAR(SYSTIMEST
-----------------
20190725 04:01:07

1 row selected.

old   1: create or replace directory SS_IMPEXP_DIR as '&dump_path'
new   1: create or replace directory SS_IMPEXP_DIR as '/home/oracle/'

Directory created.


Grant succeeded.

old   1: create or replace directory SS_LOGPATH_DIR as '&log_path'
new   1: create or replace directory SS_LOGPATH_DIR as '/home/oracle/log.txt'

Directory created.


Grant succeeded.

LRM-00118: syntax error at '=' at the end of input


Connected.

TO_CHAR(SYSTIMEST
-----------------
20190725 04:01:08

1 row selected.

ALTER TABLESPACE example READ WRITE
*
ERROR at line 1:
ORA-00959: tablespace 'EXAMPLE' does not exist



TABLESPACE_NAME FILE_NAME                                      STATUS
--------------- ---------------------------------------------- ---------
SYSTEM          /oradata/ORCL/system01.dbf                     AVAILABLE
SYSAUX          /oradata/ORCL/sysaux01.dbf                     AVAILABLE
UNDOTBS1        /oradata/ORCL/undotbs01.dbf                    AVAILABLE
USERS           /oradata/ORCL/user01.dbf                       AVAILABLE

4 rows selected.


Creating sequences, views, procedures and objects privileges for HR ...

TO_CHAR(SYSTIMEST
-----------------
20190725 04:01:08

1 row selected.

Connected.

Sequence created.


Sequence created.


Sequence created.

  regions r
  *
ERROR at line 41:
ORA-00942: table or view does not exist



Procedure created.

  BEFORE INSERT OR UPDATE OR DELETE ON employees
                                       *
ERROR at line 2:
ORA-00942: table or view does not exist


ALTER TRIGGER secure_employees DISABLE
*
ERROR at line 1:
ORA-04080: trigger 'SECURE_EMPLOYEES' does not exist



Warning: Procedure created with compilation errors.

  AFTER UPDATE OF job_id, department_id ON employees
                                           *
ERROR at line 2:
ORA-00942: table or view does not exist



Commit complete.

GRANT REFERENCES, SELECT ON employees   TO oe
                            *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT REFERENCES, SELECT ON countries   TO oe
                            *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT REFERENCES, SELECT ON locations   TO oe
                            *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON jobs                    TO oe
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON job_history             TO oe
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON departments             TO oe
                *
ERROR at line 1:
ORA-00942: table or view does not exist



Creating synonyms, sequences, views and functions for OE ...

TO_CHAR(SYSTIMEST
-----------------
20190725 04:01:08

1 row selected.

Connected.

Synonym created.


Synonym created.


Synonym created.


Synonym created.


Synonym created.


Synonym created.


Sequence created.

,      product_descriptions d
       *
ERROR at line 22:
ORA-00942: table or view does not exist


,      products    p
       *
ERROR at line 8:
ORA-00942: table or view does not exist


,      products    p
       *
ERROR at line 8:
ORA-00942: table or view does not exist


,      products    p
       *
ERROR at line 8:
ORA-00942: table or view does not exist


FROM   product_information
       *
ERROR at line 7:
ORA-00942: table or view does not exist


FROM            customers c, countries cr
                             *
ERROR at line 7:
ORA-00980: synonym translation is no longer valid



Warning: Function created with compilation errors.

  customers c
  *
ERROR at line 30:
ORA-00942: table or view does not exist


FROM orders
     *
ERROR at line 11:
ORA-00942: table or view does not exist



Creating XML schema, XML folders, OC subschema and objects privileges for OE ...

TO_CHAR(SYSTIMEST
-----------------
20190725 04:01:08

1 row selected.


specify password for OE as parameter 1:

PROMPT password for SYS as parameter 2:

Connected.

Grant succeeded.


Grant succeeded.


Grant succeeded.


Grant succeeded.

  1* GRANT alter session TO oe

Grant succeeded.


View created.


View created.


Grant succeeded.


Session altered.


Package created.


Warning: Package Body created with compilation errors.


View created.


Package altered.


View altered.


Grant succeeded.


Trigger created.


Synonym created.


Grant succeeded.


Call completed.


Session altered.


Session altered.


Function created.


no rows selected


Synonym created.


Grant succeeded.


Package created.


no rows selected


Synonym created.


Grant succeeded.


Package created.


no rows selected


Package body created.


no rows selected


Synonym created.


Grant succeeded.


Package created.


no rows selected


Package body created.


no rows selected


Grant succeeded.


Synonym created.


Package created.


no rows selected


Package body created.


no rows selected


Synonym created.


Grant succeeded.


PL/SQL procedure successfully completed.

Connected.
DROP DIRECTORY SS_OE_XMLDIR
*
ERROR at line 1:
ORA-04043: object SS_OE_XMLDIR does not exist



Directory created.


Commit complete.

Connected.

Revoke succeeded.

Connected.
Connected.

Session altered.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


Call completed.


Call completed.


PL/SQL procedure successfully completed.

Connected.

Revoke succeeded.

Connected.
Connected.

Revoke succeeded.


Revoke succeeded.


Revoke succeeded.


Package dropped.


Package dropped.


Package dropped.


Package dropped.


Package dropped.


Trigger dropped.


View dropped.

Connected.

Session altered.

...creating subschema OC in OE

Type created.


Type created.


Type created.


Type created.


Type created.


Type created.


Type created.


Type created.


Type created.


Warning: Type created with compilation errors.


Type created.


Type created.


Type created.


Warning: Type created with compilation errors.


Type created.


Type body created.


Type created.


Type body created.


Type created.


Type body created.


Table created.

    FROM inventories i, warehouses w
                        *
ERROR at line 6:
ORA-00942: table or view does not exist


    FROM product_information p
         *
ERROR at line 10:
ORA-00942: table or view does not exist


     FROM customers c
          *
ERROR at line 20:
ORA-00942: table or view does not exist


     FROM customers c
          *
ERROR at line 20:
ORA-00942: table or view does not exist


     FROM customers c
          *
ERROR at line 20:
ORA-00942: table or view does not exist


    FROM orders o
         *
ERROR at line 9:
ORA-00942: table or view does not exist


 ON oc_orders FOR EACH ROW
    *
ERROR at line 2:
ORA-00942: table or view does not exist


 TABLE order_item_list OF oc_orders FOR EACH ROW
                          *
ERROR at line 2:
ORA-00942: table or view does not exist



Commit complete.

    FROM oc_product_information o
         *
ERROR at line 4:
ORA-00942: table or view does not exist


    FROM oc_product_information o
         *
ERROR at line 4:
ORA-00942: table or view does not exist


    FROM oc_product_information o
         *
ERROR at line 4:
ORA-00942: table or view does not exist


    FROM oc_product_information o
         *
ERROR at line 4:
ORA-00942: table or view does not exist


    FROM oc_product_information o
         *
ERROR at line 5:
ORA-00942: table or view does not exist


    FROM oc_product_information o
         *
ERROR at line 4:
ORA-00942: table or view does not exist


    FROM oc_product_information o
         *
ERROR at line 5:
ORA-00942: table or view does not exist


    FROM oc_product_information o
         *
ERROR at line 5:
ORA-00942: table or view does not exist


    FROM oc_product_information o
         *
ERROR at line 4:
ORA-00942: table or view does not exist


    FROM oc_product_information o
         *
ERROR at line 4:
ORA-00942: table or view does not exist


    FROM oc_product_information o
         *
ERROR at line 4:
ORA-00942: table or view does not exist


    FROM oc_product_information o
         *
ERROR at line 4:
ORA-00942: table or view does not exist


    FROM oc_product_information o
         *
ERROR at line 4:
ORA-00942: table or view does not exist


    FROM oc_product_information o
         *
ERROR at line 4:
ORA-00942: table or view does not exist


    FROM oc_product_information o
         *
ERROR at line 4:
ORA-00942: table or view does not exist


    FROM oc_product_information o
         *
ERROR at line 5:
ORA-00942: table or view does not exist


    FROM oc_product_information o
         *
ERROR at line 4:
ORA-00942: table or view does not exist


    FROM oc_product_information o
         *
ERROR at line 4:
ORA-00942: table or view does not exist



1 row created.


1 row created.


1 row created.


1 row created.


Type altered.


3 rows updated.


0 rows updated.


0 rows updated.


0 rows updated.


Commit complete.


Type body altered.


Type body altered.


Type body altered.

GRANT SELECT ON bombay_inventory        TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON customers               TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON inventories             TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON orders                  TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON order_items             TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON products                TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON product_descriptions    TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON product_information     TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON product_prices          TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON promotions              TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON sydney_inventory        TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON toronto_inventory       TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON warehouses              TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT REFERENCES, SELECT ON product_information TO pm
                            *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON order_items                     TO pm
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON orders                          TO pm
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON product_descriptions            TO pm
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON inventories                     TO pm
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON customers                       TO pm
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON warehouses                      TO pm
                *
ERROR at line 1:
ORA-00942: table or view does not exist



Creating dimensions, materialized views, external table and object privileges for SH ...

TO_CHAR(SYSTIMEST
-----------------
20190725 04:01:14

1 row selected.

Connected.
CREATE DIMENSION customers_dim
*
ERROR at line 1:
ORA-00942: table or view does not exist



Commit complete.

BEGIN dbms_olap.validate_dimension('customers_dim','sh',false,true); END;

*
ERROR at line 1:
ORA-20000: cannot find the dimension
ORA-06512: at "SYS.DBMS_DIMENSION", line 413
ORA-06512: at "SYS.DBMS_DIMENSION", line 435
ORA-06512: at "SYS.DBMS_SUMMARY", line 54
ORA-06512: at line 1



no rows selected

CREATE DIMENSION products_dim
*
ERROR at line 1:
ORA-00942: table or view does not exist


BEGIN dbms_olap.validate_dimension('products_dim','sh',false,true); END;

*
ERROR at line 1:
ORA-20000: cannot find the dimension
ORA-06512: at "SYS.DBMS_DIMENSION", line 413
ORA-06512: at "SYS.DBMS_DIMENSION", line 435
ORA-06512: at "SYS.DBMS_SUMMARY", line 54
ORA-06512: at line 1



no rows selected

CREATE DIMENSION times_dim
*
ERROR at line 1:
ORA-00942: table or view does not exist


BEGIN dbms_olap.validate_dimension('times_dim','sh',false,true); END;

*
ERROR at line 1:
ORA-20000: cannot find the dimension
ORA-06512: at "SYS.DBMS_DIMENSION", line 413
ORA-06512: at "SYS.DBMS_DIMENSION", line 435
ORA-06512: at "SYS.DBMS_SUMMARY", line 54
ORA-06512: at line 1



no rows selected

CREATE DIMENSION channels_dim
*
ERROR at line 1:
ORA-00942: table or view does not exist


BEGIN dbms_olap.validate_dimension('channels_dim','sh',false,true); END;

*
ERROR at line 1:
ORA-20000: cannot find the dimension
ORA-06512: at "SYS.DBMS_DIMENSION", line 413
ORA-06512: at "SYS.DBMS_DIMENSION", line 435
ORA-06512: at "SYS.DBMS_SUMMARY", line 54
ORA-06512: at line 1



no rows selected

CREATE DIMENSION promotions_dim
*
ERROR at line 1:
ORA-00942: table or view does not exist


BEGIN dbms_olap.validate_dimension('promotions_dim','sh',false,true); END;

*
ERROR at line 1:
ORA-20000: cannot find the dimension
ORA-06512: at "SYS.DBMS_DIMENSION", line 413
ORA-06512: at "SYS.DBMS_DIMENSION", line 435
ORA-06512: at "SYS.DBMS_SUMMARY", line 54
ORA-06512: at line 1



no rows selected


TO_CHAR(SYSTIMEST
-----------------
20190725 04:01:14

1 row selected.

 FROM   costs c, sales s
                 *
ERROR at line 13:
ORA-00942: table or view does not exist


  ,        times t
           *
ERROR at line 8:
ORA-00942: table or view does not exist


  ,        products p
           *
ERROR at line 12:
ORA-00942: table or view does not exist



Table created.


Creating OLAP metadata ...
<<<<< CREATE CWMLite Metadata for the Sales History Schema >>>>>
-
<<<<< CREATE CATALOG sh_cat for Sales History >>>>>
        No catalog to drop
        CWM Collect Garbage
-
<<<<< CREATE the Sales CUBE >>>>>
        Sales amount, Sales quantity
        <TIMES CHANNELS PRODUCTS CUSTOMERS PROMOTIONS >
        Drop SALES_CUBE prior to recreation
        No cube to drop
        Add dimensions -
         to SALES_CUBE and map the foreign keys
ERROR::         dimension_not_found
Object Type:    DIMENSION
Object Owner:   SH
Object Name:    TIMES_DIM
Secondary Name:
Tertiary Name:
User-Defined Exception
ERROR: dimension_not_found
declare
*
ERROR at line 1:
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "OLAPSYS.CWM$OLAP$DIMENSION", line 242
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "OLAPSYS.CWM$UTIL", line 368
ORA-01403: no data found
ORA-06512: at line 1691



Commit complete.

GRANT SELECT ON channels                TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON countries               TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON times                   TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON costs                   TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON customers               TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON products                TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON promotions              TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON sales                   TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON times                   TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON cal_month_sales_mv      TO bi
                *
ERROR at line 1:
ORA-00942: table or view does not exist


GRANT SELECT ON sh.fweek_pscat_sales_mv TO bi
                   *
ERROR at line 1:
ORA-00942: table or view does not exist



Creating views, synonyms for BI ...

TO_CHAR(SYSTIMEST
-----------------
20190725 04:01:15

1 row selected.


specify password for BI as parameter 1:

Connected.

Synonym created.


Synonym created.


Synonym created.


Synonym created.


Synonym created.


Synonym created.


Synonym created.


Synonym created.


Commit complete.

Connected.

PL/SQL procedure successfully completed.

Connected.
BEGIN dbms_aqadm_sys.validate_Queue('IX', 'AQ$_ORDERS_QUEUETABLE_E'); END;

*
ERROR at line 1:
ORA-24010: QUEUE IX.AQ$_ORDERS_QUEUETABLE_E does not exist
ORA-06512: at "SYS.DBMS_AQADM_SYSCALLS", line 312
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 11383
ORA-06512: at line 1


BEGIN dbms_aqadm_sys.validate_Queue('IX', 'AQ$_STREAMS_QUEUE_TABLE_E'); END;

*
ERROR at line 1:
ORA-24010: QUEUE IX.AQ$_STREAMS_QUEUE_TABLE_E does not exist
ORA-06512: at "SYS.DBMS_AQADM_SYSCALLS", line 312
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 11383
ORA-06512: at line 1


BEGIN dbms_aqadm_sys.validate_Queue('IX', 'ORDERS_QUEUE'); END;

*
ERROR at line 1:
ORA-24010: QUEUE IX.ORDERS_QUEUE does not exist
ORA-06512: at "SYS.DBMS_AQADM_SYSCALLS", line 312
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 11383
ORA-06512: at line 1


BEGIN dbms_aqadm_sys.validate_Queue('IX', 'STREAMS_QUEUE'); END;

*
ERROR at line 1:
ORA-24010: QUEUE IX.STREAMS_QUEUE does not exist
ORA-06512: at "SYS.DBMS_AQADM_SYSCALLS", line 312
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 11383
ORA-06512: at line 1



Directory dropped.


Directory dropped.


mkplug.sql DONE

TO_CHAR(SYSTIMEST
-----------------
20190725 04:01:16

1 row selected.

SQL> 
相关实践学习
2分钟自动化部署人生模拟器
本场景将带你借助云效流水线Flow实现人生模拟器小游戏的自动化部署
7天玩转云服务器
云服务器ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,可降低 IT 成本,提升运维效率。本课程手把手带你了解ECS、掌握基本操作、动手实操快照管理、镜像管理等。了解产品详情:&nbsp;https://www.aliyun.com/product/ecs
相关文章
|
14天前
|
存储 Oracle 关系型数据库
oracle服务器存储过程中调用http
通过配置权限、创建和调用存储过程,您可以在Oracle数据库中使用UTL_HTTP包发起HTTP请求。这使得Oracle存储过程可以与外部HTTP服务进行交互,从而实现更复杂的数据处理和集成。在实际应用中,根据具体需求调整请求类型和错误处理逻辑,以确保系统的稳定性和可靠性。
16 0
|
1月前
|
弹性计算 安全 Linux
阿里云国际版使用ping命令测试ECS云服务器不通的排查方法
阿里云国际版使用ping命令测试ECS云服务器不通的排查方法
|
1月前
|
分布式计算 大数据 Spark
大数据-95 Spark 集群 SparkSQL Action与Transformation操作 详细解释与测试案例(二)
大数据-95 Spark 集群 SparkSQL Action与Transformation操作 详细解释与测试案例(二)
39 1
|
2月前
|
前端开发 机器人 测试技术
【RF案例】Web自动化测试弹窗处理
在进行Web自动化测试时,常会遇到不同类型的弹窗,如ajax、iframe、新窗口及alert/Confirm等。这些弹窗可通过Selenium进行定位与处理。其中,ajax弹窗直接定位处理;iframe需先选中再操作;新窗口类似iframe处理;而alert/Confirm则需特殊方法应对。在Robot Framework中,需先定义并获取窗口后使用特定关键字处理。此外,还有部分div弹窗需在消失前快速定位。希望本文能帮助大家更好地处理各类弹窗。
42 6
【RF案例】Web自动化测试弹窗处理
|
1月前
|
存储 SQL 分布式计算
大数据-95 Spark 集群 SparkSQL Action与Transformation操作 详细解释与测试案例(一)
大数据-95 Spark 集群 SparkSQL Action与Transformation操作 详细解释与测试案例(一)
38 0
|
2月前
|
存储 Oracle 关系型数据库
Oracle同一台服务器创建多个数据库
【8月更文挑战第30天】在 Oracle 中,可在同一服务器上创建多个数据库。首先确保已安装 Oracle 软件并具有足够资源,然后使用 DBCA 工具按步骤创建,包括选择模板、配置存储及字符集等。重复此过程可创建多个数据库,需确保名称、SID 和存储位置唯一。创建后,可通过 Oracle Enterprise Manager 进行管理,注意服务器资源分配与规划。
122 10
|
4月前
|
监控 Oracle 关系型数据库
关系型数据库Oracle恢复测试
【7月更文挑战第20天】
77 7
|
5月前
|
运维 DataWorks Oracle
DataWorks产品使用合集之在标准模式下,当同步Oracle的表或视图时,是否需要在源端的测试和生产环境中都存在要同步的表或视图
DataWorks作为一站式的数据开发与治理平台,提供了从数据采集、清洗、开发、调度、服务化、质量监控到安全管理的全套解决方案,帮助企业构建高效、规范、安全的大数据处理体系。以下是对DataWorks产品使用合集的概述,涵盖数据处理的各个环节。
47 3
支付系统---微信支付14----创建案例项目---介绍,第二步引入Swagger,接口文档和测试页面生成工具,定义统一结果的目的是让结果变得更加规范,以上就是谷粒项目的几个过程
支付系统---微信支付14----创建案例项目---介绍,第二步引入Swagger,接口文档和测试页面生成工具,定义统一结果的目的是让结果变得更加规范,以上就是谷粒项目的几个过程
|
5月前
|
安全 测试技术
软件测试项目式学习二(认识软件测试及软件测试分类与案例分析)
软件测试项目式学习二(认识软件测试及软件测试分类与案例分析)
85 1

推荐镜像

更多