Databases

The error ORA-30926 as a result of a Merge

3

ORA-30926 error usually occurs when performing merge operations, and typically we leave something descolocados as the description of it does not give too much information about what is happening: 
ORA-30926: unable to get a stable set of rows in the source tables.

Normally this error occurs when the merge operation to target a row to be updated on it more than one row in the table source. As the engine does not know what to choose register returns an error. It is a problem of duplication in the origin table.

Example:

  • We have: 
    TABLA_ORIGEN with the values 
    ID Description 
    1 'The first value' 
    1 'The value with duplicate id' 
    2 'Another value'

Searching for user passwords in Oracle

4

For obvious security reasons we can not see clear the password of the users of the database, but as an administrator user SYSTEM does have privileges to view the encrypted password:

SQL> select password from dba_users where username='SCOTT';
PASSWORD
-----------------------------
F894844C34402B67

The usefulness of this is that as we return the SELECT can be used in a sentence of password change; 

SQL> alter user scott identified by values 'F894844C34402B67';

GRANTS WITH GRANT OPTION: The transitive property granting privileges

3

 

Grant command is used to grant to user's databases generic privileges or permissions over objects.

It's syntax is: 
GRANT [system_privileges | roles] 
TO [user | role | PUBLIC] {WITH GRANT OPTION} 

to grant generic privileges

Build scripts with the help of the dictionary

3

It is quite common when working with databases that often have to perform any job creation or alteration of structures, analysis, compilation, etc. objects on the database. This tends to create a DDL script with a number of judgments, which in most cases the only thing that changes is the name of the object to be treated. 
You can save a lot of work using the dictionary of the database to dynamically build these judgments.

As an example will create a new field to store the date of creation of records in all tables in a schema of an Oracle database. To do so would use the following statement:

SELECT 'ALTER TABLE' | | OWNER | | '. " | | TABLE_NAME | | 
'ADD FECHA_CREACION DATE DEFAULT SYSDATE,' 
FROM ALL_TABLES 
WHERE OWNER = 'HR';

The result would be something like this:

ETL Tools

0

In electronic publishing MCData.ti can be found a fairly complete classification of different tools related to business intelligence and data management. This is the description that makes tools for ETL (Extraction, Transformation and Load).

Company: Cognos Product DecisionStream

Syndicate content
Google