Semantic Source Catalog Views
The following semantic source data dictionary views display semantic-source configurations and attributes.
| View | Description |
|---|---|
ALL_AI_SEMANTIC_SOURCE_ATTRIBUTES |
Displays attributes for semantic sources available to the current user. |
ALL_AI_SEMANTIC_SOURCES |
Displays semantic sources available to the current user. |
DBA_AI_SEMANTIC_SOURCE_ATTRIBUTES |
Displays attributes for semantic sources across the database. |
DBA_AI_SEMANTIC_SOURCES |
Displays semantic sources across the database. |
USER_AI_SEMANTIC_SOURCE_ATTRIBUTES |
Displays attributes for semantic sources that the current user owns. |
USER_AI_SEMANTIC_SOURCES |
Displays semantic sources that the current user owns. |
A dash (—) in the NULL column indicates that the column permits null values.
ALL_AI_SEMANTIC_SOURCE_ATTRIBUTES View
The ALL_AI_SEMANTIC_SOURCE_ATTRIBUTES view displays common and source-specific configuration attributes for semantic sources available to the current user.
An ALL_ view displays all the information accessible to the current user, including information from the current user’s schema as well as information from objects in other schemas, if the current user has access to those objects by way of grants of privileges or roles.
| Column | Datatype | NULL | Description |
|---|---|---|---|
SOURCE_ID |
NUMBER |
NOT NULL |
Unique identifier of the semantic source. |
SOURCE_NAME |
VARCHAR2(128) |
NOT NULL |
Name of the semantic source. |
OWNER |
VARCHAR2(128) |
NOT NULL |
Owner of the semantic source. |
ATTRIBUTE_NAME |
VARCHAR2(128) |
NOT NULL |
Name of the configured attribute. |
ATTRIBUTE_VALUE |
CLOB |
— | Stored value of the attribute. The ATTRIBUTE_VALUE column can contain configuration values such as endpoints and credential names. Credential names reference credentials stored separately; these views do not expose credential secrets. |
LAST_MODIFIED |
TIMESTAMP(6) WITH TIME ZONE |
— | Last modification timestamp of the attribute. |
Example
The following query displays the configured attributes for a semantic source available to the current user:
SELECT owner,
source_name,
attribute_name,
attribute_value,
last_modified
FROM all_ai_semantic_source_attributes
WHERE owner = 'SOURCE_OWNER'
AND source_name = 'SALES_BUSINESS_CONTEXT'
ORDER BY attribute_name;
ALL_AI_SEMANTIC_SOURCES View
The ALL_AI_SEMANTIC_SOURCES view displays semantic sources available to the current user. Use this view to inspect source ownership, type, status, description, and timestamps.
An ALL_ view displays all the information accessible to the current user, including information from the current user’s schema as well as information from objects in other schemas, if the current user has access to those objects by way of grants of privileges or roles.
| Column | Datatype | NULL | Description |
|---|---|---|---|
SOURCE_ID |
NUMBER |
NOT NULL |
Unique identifier of the semantic source. |
SOURCE_NAME |
VARCHAR2(128) |
NOT NULL |
Name of the semantic source. |
OWNER |
VARCHAR2(128) |
NOT NULL |
Owner of the semantic source. |
SOURCE_TYPE |
VARCHAR2(30) |
NOT NULL |
Type of semantic source. |
STATUS |
VARCHAR2(8) |
— | Status of the semantic source (ENABLED or DISABLED). |
DESCRIPTION |
CLOB |
— | Description of the semantic source. |
CREATED |
TIMESTAMP(6) WITH TIME ZONE |
— | Creation timestamp. |
LAST_MODIFIED |
TIMESTAMP(6) WITH TIME ZONE |
— | Last modification timestamp. |
ORACLE_MAINTAINED |
CHAR(1) |
— | Indicates whether the source is Oracle-maintained (Y or N). |
Example
The following query displays the owner, name, type, and status of a semantic source available to the current user:
SELECT owner,
source_name,
source_type,
status
FROM all_ai_semantic_sources
WHERE owner = 'SOURCE_OWNER'
AND source_name = 'SALES_BUSINESS_CONTEXT';
Query Sources Available to the Current User
The following query returns semantic sources that the current user owns or can access and their configured attributes:
SELECT s.owner,
s.source_name,
s.source_type,
s.status,
s.description,
s.created,
s.last_modified AS source_last_modified,
a.attribute_name,
a.attribute_value,
a.last_modified AS attribute_last_modified
FROM all_ai_semantic_sources s
LEFT JOIN all_ai_semantic_source_attributes a
ON a.source_id = s.source_id
AND a.source_name = s.source_name
AND a.owner = s.owner
WHERE s.source_name = 'SEM_SOURCE_NAME'
ORDER BY s.owner, s.source_name, a.attribute_name;
DBA_AI_SEMANTIC_SOURCE_ATTRIBUTES View
The DBA_AI_SEMANTIC_SOURCE_ATTRIBUTES view displays common and source-specific configuration attributes for semantic sources across the database.
A DBA_ view displays all relevant information in the entire database. DBA_ views are intended only for administrators. They can be queried only by users with the SYSDBA system privilege or SELECT ANY DICTIONARY privilege, or SELECT_CATALOG_ROLE role, or by users with direct privileges granted to them. The SELECT ANY DICTIONARY privilege is assigned to the DBA role when the system is initially installed.
| Column | Datatype | NULL | Description |
|---|---|---|---|
SOURCE_ID |
NUMBER |
NOT NULL |
Unique identifier of the semantic source. |
SOURCE_NAME |
VARCHAR2(128) |
NOT NULL |
Name of the semantic source. |
OWNER |
VARCHAR2(128) |
NOT NULL |
Owner of the semantic source. |
ATTRIBUTE_NAME |
VARCHAR2(128) |
NOT NULL |
Name of the configured attribute. |
ATTRIBUTE_VALUE |
CLOB |
— | Stored value of the attribute. The ATTRIBUTE_VALUE column can contain configuration values such as endpoints and credential names. Credential names reference credentials stored separately; these views do not expose credential secrets. |
LAST_MODIFIED |
TIMESTAMP(6) WITH TIME ZONE |
— | Last modification timestamp of the attribute. |
Example
The following query displays the configured attributes for a semantic source in the database:
SELECT owner,
source_name,
attribute_name,
attribute_value,
last_modified
FROM dba_ai_semantic_source_attributes
WHERE owner = 'SOURCE_OWNER'
AND source_name = 'SALES_BUSINESS_CONTEXT'
ORDER BY attribute_name;
DBA_AI_SEMANTIC_SOURCES View
The DBA_AI_SEMANTIC_SOURCES view displays semantic sources across the database. Use this view to inspect source ownership, type, status, description, and timestamps.
A DBA_ view displays all relevant information in the entire database. DBA_ views are intended only for administrators. They can be queried only by users with the SYSDBA system privilege or SELECT ANY DICTIONARY privilege, or SELECT_CATALOG_ROLE role, or by users with direct privileges granted to them. The SELECT ANY DICTIONARY privilege is assigned to the DBA role when the system is initially installed.
| Column | Datatype | NULL | Description |
|---|---|---|---|
SOURCE_ID |
NUMBER |
NOT NULL |
Unique identifier of the semantic source. |
SOURCE_NAME |
VARCHAR2(128) |
NOT NULL |
Name of the semantic source. |
OWNER |
VARCHAR2(128) |
NOT NULL |
Owner of the semantic source. |
SOURCE_TYPE |
VARCHAR2(30) |
NOT NULL |
Type of semantic source. |
STATUS |
VARCHAR2(8) |
— | Status of the semantic source (ENABLED or DISABLED). |
DESCRIPTION |
CLOB |
— | Description of the semantic source. |
CREATED |
TIMESTAMP(6) WITH TIME ZONE |
— | Creation timestamp. |
LAST_MODIFIED |
TIMESTAMP(6) WITH TIME ZONE |
— | Last modification timestamp. |
ORACLE_MAINTAINED |
CHAR(1) |
— | Indicates whether the source is Oracle-maintained (Y or N). |
Example
The following query displays the owner, name, type, and status of semantic sources in the database:
SELECT owner,
source_name,
source_type,
status
FROM dba_ai_semantic_sources
ORDER BY owner,
source_name;
Query All Sources in the Database
The following query returns all semantic sources in the database and their configured attributes. The requesting user must have the privileges required to query the DBA_ views:
SELECT s.owner,
s.source_name,
s.source_type,
s.status,
s.description,
s.oracle_maintained,
a.attribute_name,
a.attribute_value,
a.last_modified AS attribute_last_modified
FROM dba_ai_semantic_sources s
LEFT JOIN dba_ai_semantic_source_attributes a
ON a.owner = s.owner
AND a.source_id = s.source_id
AND a.source_name = s.source_name
ORDER BY s.owner,
s.source_name,
a.attribute_name;
USER_AI_SEMANTIC_SOURCE_ATTRIBUTES View
The USER_AI_SEMANTIC_SOURCE_ATTRIBUTES view displays common and source-specific configuration attributes for semantic sources attributes that the current user owns.
The current user can grant access to other users. The database administrator can access these views but sees only the objects they own.
| Column | Datatype | NULL | Description |
|---|---|---|---|
SOURCE_ID |
NUMBER |
NOT NULL |
Unique identifier of the semantic source. |
SOURCE_NAME |
VARCHAR2(128) |
NOT NULL |
Name of the semantic source. |
ATTRIBUTE_NAME |
VARCHAR2(128) |
NOT NULL |
Name of the configured attribute. |
ATTRIBUTE_VALUE |
CLOB |
— | Stored value of the attribute. The ATTRIBUTE_VALUE column can contain configuration values such as endpoints and credential names. Credential names reference credentials stored separately; these views do not expose credential secrets. |
LAST_MODIFIED |
TIMESTAMP(6) WITH TIME ZONE |
— | Last modification timestamp of the attribute. |
Example
The following query displays the configured attributes for a semantic source that the current user owns:
SELECT source_name,
attribute_name,
attribute_value,
last_modified
FROM user_ai_semantic_source_attributes
WHERE source_name = 'SALES_BUSINESS_CONTEXT'
ORDER BY attribute_name;
USER_AI_SEMANTIC_SOURCES View
The USER_AI_SEMANTIC_SOURCES view displays semantic sources that the current user owns. Use this view to inspect source type, status, description, and timestamps.
The current user can grant access to other users. The database administrator can access these views but sees only the objects they own.
| Column | Datatype | NULL | Description |
|---|---|---|---|
SOURCE_ID |
NUMBER |
NOT NULL |
Unique identifier of the semantic source. |
SOURCE_NAME |
VARCHAR2(128) |
NOT NULL |
Name of the semantic source. |
SOURCE_TYPE |
VARCHAR2(30) |
NOT NULL |
Type of semantic source. |
STATUS |
VARCHAR2(8) |
— | Status of the semantic source (ENABLED or DISABLED). |
DESCRIPTION |
CLOB |
— | Description of the semantic source. |
CREATED |
TIMESTAMP(6) WITH TIME ZONE |
— | Creation timestamp. |
LAST_MODIFIED |
TIMESTAMP(6) WITH TIME ZONE |
— | Last modification timestamp. |
ORACLE_MAINTAINED |
CHAR(1) |
— | Indicates whether the source is Oracle-maintained (Y or N). |
Example
The following query displays the name, type, and status of a semantic source that the current user owns:
SELECT source_name,
source_type,
status
FROM user_ai_semantic_sources
WHERE source_name = 'SALES_BUSINESS_CONTEXT';
Query Sources Owned by the Current User
The following query returns semantic sources owned by the current user and their configured attributes:
SELECT s.source_name,
s.source_type,
s.status,
s.description,
a.attribute_name,
a.attribute_value,
a.last_modified AS attribute_last_modified
FROM user_ai_semantic_sources s
LEFT JOIN user_ai_semantic_source_attributes a
ON a.source_id = s.source_id
AND a.source_name = s.source_name
ORDER BY s.source_name,
a.attribute_name;