IBM Guardium

IBM Guardium

Join this online user group to communicate across Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

What is error in SQL statement - Custom table upload

  • 1.  What is error in SQL statement - Custom table upload

    Posted 09/17/20 07:40 AM

    Hello,

    I want to create Custom table with following SQL statement:

    SELECT table_name, owner

    FROM dba_tables

    WHERE owner='HR' OR owner='TEST1'

    ORDER BY owner, table_name

    but I got error when want to upload data:

    You have an error in your sql syntax check the manual that corresponds to your MySql server version for the right syntax to use near 'Schema limit 1,2' at line 1.

    What can be the problem? I use Oracle DB.

    Thanks



    #Guardium
    #Support
    #SupportMigration


  • 2.  RE: What is error in SQL statement - Custom table upload

    Posted 09/17/20 03:13 PM

    Perhaps the Oracle DB is expecting SCHEMA_NAME.TABLE_NAME in the SQL ?

    SELECT

    table_name,

    owner

    FROM

    dba_tables

    WHERE

    owner = 'HR'

    OR owner = 'TEST1'

    ORDER BY

    owner,

    table_name



    #Guardium
    #Support
    #SupportMigration