Oracle® OLAP DML Reference 11g Release 1 (11.1) Part Number B28126-01 |
|
|
View PDF |
The AW_ATTACH
procedure attaches an analytic workspace to your SQL session so that you can access its contents. The analytic workspace remains attached until you explicitly detach it, or you end your session.
AW_ATTACH
can also be used to create a new analytic workspace, but the AW_CREATE
procedure is provided specifically for that purpose.
Note:
You cannot execute this procedure from within the OLAP Worksheet. You must execute if in a SQL tool such as SQL*Plus.See also:
"Managing Analytic Workspaces"Syntax
AW_ATTACH ( awname IN VARCHAR2, forwrite IN BOOLEAN DEFAULT FALSE, createaw IN BOOLEAN DEFAULT FALSE, attargs IN VARCHAR2 DEFAULT NULL, tablespace IN VARCHAR2 DEFAULT NULL);
AW_ATTACH ( schema IN VARCHAR2, awname IN VARCHAR2, forwrite IN BOOLEAN DEFAULT FALSE, createaw IN BOOLEAN DEFAULT FALSE, attargs IN VARCHAR2 DEFAULT NULL, tablespace IN VARCHAR2 DEFAULT NULL);
Parameters
Table B-11 AW_ATTACH Procedure Parameters
Parameter | Description |
---|---|
|
The schema that owns awname. |
|
The name of an existing analytic workspace, unless createaw is specified as |
|
|
|
|
|
Keywords for attaching an analytic workspace, such as |
Example
The following command attaches an analytic workspace named MYAW
in read/write mode.
SQL>execute dbms_aw.aw_attach('myaw', true);
The next command creates an analytic workspace named MYAW_PROGRAMS
in the user's schema. MYAW_PROGRAMS
is attached read/write as the last user-owned analytic workspace.
SQL>execute dbms_aw.aw_attach('myaw_programs', true, true, 'last');
This command attaches an analytic workspace named SH
from the SH_AW
schema in read-only mode.
SQL>execute dbms_aw.aw_attach('sh_aw', 'sh');