How to list table names accessed by a table base trigger

Hi all,
How can I list all the other tables being accessed by my table trigger?
Say for example: I am deleting a table, then its base trigger fires, it updates an audit log to capture the actions or maybe
select/insert/delete/update ing other more tables?
Thanks a lot.

KinsaKaUy? wrote:
Hi all,
How can I list all the other tables being accessed by my table trigger?
Say for example: I am deleting a table, then its base trigger fires, it updates an audit log to capture the actions or maybe
select/insert/delete/update ing other more tables?
Thanks a lot.query DBA_DEPENDENCIES

Similar Messages

  • How to list all the rows from the table VBAK

    Friends ,
    How to list all the rows from the table VBAK.select query and the output list is appreciated.

    Hi,
    IF you want to select all the rows for VBAK-
    Write-
    Data:itab type table of VBAK,
           wa like line of itab.
    SELECT * FROM VBAK into table itab.
    Itab is the internal table with type VBAK.
    Loop at itab into wa.
    Write: wa-field1,
    endloop.

  • SAP DBTech JDBC: [259] (at 26): invalid table name:  Could not find table/view RS_POOL_CLUSTER_TABLES in schema SYSTEM: line 1 col 27 (at pos 26)

    Hi Gurus,
    I am trying to load a HANA column table using the import function and get the following error even though the mappings from the file to the table are 1:1.
    I get the following errors:
    Error 1: SAP DBTech JDBC: Result set is positioned before first row.
    Error 2: SAP DBTech JDBC: [259] (at 26): invalid table name:  Could not find table/view RS_POOL_CLUSTER_TABLES in schema SYSTEM: line 1 col 27 (at pos 26)
    With the following stack trace:
    com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [259] (at 26): invalid table name:  Could not find table/view RS_POOL_CLUSTER_TABLES in schema SYSTEM: line 1 col 27 (at pos 26)
      at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:334)
      at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateDatabaseException(SQLExceptionSapDB.java:165)
      at com.sap.db.jdbc.packet.ReplyPacket.buildExceptionChain(ReplyPacket.java:100)
      at com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:1141)
      at com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:888)
      at com.sap.db.jdbc.StatementSapDB.sendCommand(StatementSapDB.java:929)
      at com.sap.db.jdbc.StatementSapDB.sendSQL(StatementSapDB.java:978)
      at com.sap.db.jdbc.StatementSapDB.execute(StatementSapDB.java:256)
      at com.sap.db.jdbc.StatementSapDB.executeQuery(StatementSapDB.java:401)
      at com.sap.db.jdbc.trace.Statement.executeQuery(Statement.java:131)
      at com.sap.ndb.studio.bi.dataprovisioning.util.DBUtil.getPoolTables(DBUtil.java:200)
      at com.sap.ndb.studio.bi.dataprovisioning.util.DBUtil.getTablesToHide(DBUtil.java:188)
      at com.sap.ndb.studio.bi.filedataupload.ui.wizards.pages.SelectTableDialog.createDialogArea(SelectTableDialog.java:108)
      at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:775)
      at org.eclipse.jface.window.Window.create(Window.java:432)
      at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1104)
      at com.sap.ndb.studio.bi.filedataupload.ui.wizards.pages.SelectTableDialog.create(SelectTableDialog.java:186)
      at com.sap.ndb.studio.bi.filedataupload.ui.wizards.pages.ImportFileSelectionWizardPage$14.widgetSelected(ImportFileSelectionWizardPage.java:779)
      at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
      at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
      at org.eclipse.jface.window.Window.open(Window.java:802)
      at org.eclipse.ui.internal.handlers.WizardHandler$Import.executeHandler(WizardHandler.java:152)
      at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:279)
      at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
      at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
      at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
      at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243)
      at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224)
      at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
      at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:167)
      at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
      at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
      at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
      at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:420)
      at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
      at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
      at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
      at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
      at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
      at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
      at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
    I'm sure many of you have come across this before. Any help will be much appreciated.
    Thanks in advance

    Hello Akhtar,
    Have you tryed to delete the heador row from your file?
    I received the same error when loading a csv file, but when I delete the heador row it worked.
    Best Regards,
    Juliana Genova

  • How to get source table name according to target table

    hi all
    another question:
    once a map was created and deployed,the corresponding information was stored in the repository and rtr repository.My question is how to find the source table name according to the target table,and in which table these records are recorded.
    somebody help me plz!!
    thanks a lot!

    This is a query that will get you the operators in a mapping. To get source and targets you will need some additional information but this should get you started:
    set pages 999
    col PROJECT format a20
    col MODULE format a20
    col MAPPING format a25
    col OPERATOR format a20
    col OP_TYPE format a15
    select mod.project_name PROJECT
    , map.information_system_name MODULE
    , map.map_name MAPPING
    , cmp.map_component_name OPERATOR
    , cmp.operator_type OP_TYPE
    from all_iv_xform_maps map
    , all_iv_modules mod
    , all_iv_xform_map_components cmp
    where mod.information_system_id = map.information_system_id
    and map.map_id = cmp.map_id
    and mod.project_name = '&Project'
    order by 1,2,3
    Jean-Pierre

  • How to list the name of recipient in Sent mail folder

    In the Gmail folder in Mail, is a Sent Mail folder. It lists FROM, SUBJECT, and DATE RECEIVED. My wife is the only account using the Mail appl. She would like to know how to have the name of the mail recipient listed, rather than her name as the sender since she already knows that info.
    Thanks.
    Jerry

    Jerry,
    That should happen automatically in Mail.
    Click the Gmail Sent folder. Where the names of the columns is displayed, there should be a dot next to the first column name. Right-click or control-click to get the menu. Click to check To. If you don't want to see From bring up the menu again and click it to uncheck.
    Done.
    -Wayne
    Message was edited by: ParentalUnit

  • How to Load file name in to Oracle table column

    hi,
    I am loading data from flat file(TEST_GRET.DMP) to oracle table.
    while the Target Oracle table has four coloumns, in which one is File_name.
    I want to load the FILE NAME into that table too. as there is no ????
    how it can be done???
    Regards,

    If you are loading multiple files using a single interface, using variables, Bhabani's first solution and my solution are good.
    If you only have one interface with your datastore, you know the file name and it won't change, you can use Bhabani's second solution or mine.
    I did not test my solution but it is quite simple to test.
    Just put the code provided for the mapping of your target column.
    This solution has the advantage it should always work.
    Regards

  • How to list the names in arabic language

    hi
    i have table name called emp and has one column called name and it has four rows
    i need those names has to be shown in arabic language.
    can u give sql query to do this please

    hi
    i have inserted datas in english only while viewing it has to view in arabic and how to check my database alows arabic, tell me please

  • How to list "Tabel Name,Tabel Description, Field Name, Field Description...

    Dear All,
    I'm trying to produce a list , using query , to produce the following list:
    Table Name, T.Description, Field Name, F.Description, FieldType, Length
    I use DD02L, DD02T and DD03L, DD03T.
    Somehow - I dont get the same results as I see in the SE16, or SE11. Especially I mis some descriptions on filed level, and I do see them in the SE11.
    Using a query, save effort of exporting the DD for evry table sepratlly.
    This is strange.
    Your help is greatly Appriciated.
    Kind Regards,
    Doron Zaccai

    Helle Andreas, and all Others,
    Thanks very mucht for the input!
    The DD03M has the:
    Tabel name, Field Name, Field Description, Type, Length, Decimals
    Table description is abscent.
    I have joind the DD02T, (Tabelname, and language).
    And now I have all of them.
    Thank you all very much.
    I will try the FM mentioned, in the mentioned program. And will report on the result.
    Kind Regards,
    Doron Zaccai.

  • Table name stored in another table and how to Build the Dynamic Query

    TblMasterTable
    Id
    Unqid
    Tbl_TemplateNameid
    Tbl_Template1
    Unqid
    Field1
    Filed2
    Tbl_Template2
    Unqid
    Field1
    Filed2
    Filed3
    Tbl_Template3
    Unqid
    Field1
    Filed2
    Filed3
    Filed4
    Filed5
    TblMasterTable contains the reference for the table names.
    TblMasterTable contains the data
    1 12     Tbl_Template1
    2 22     Tbl_Template2
    3 12     Tbl_Template1
    4 343 Tbl_Template3
    I want to build the query to retrieve all the Template table records based on the TblmasterTable data for a given id.

    This is possible but you need to understand the performance implications of Dynamic SQL before proceeding with this approach.
    <br>
    use this logic:<br>
    declare sqlstring varchar2(500):=null <br>
    select 'select stuff from '|| tbl_templatenameid into sqlstring from MasterTable where id=someid;<br>
    execute immediate sqlstring;
    <br>
    <br>
    I have really seen very few cases where this approach is justified.
    <br>
    <br>
    Dave<br>
    lehr.servehttp.com

  • How to display Column Names of a Database Table in JSP

    Dear All,
    I want to display all the attribute names(column names) of a database table on JSP.
    [ ex:  mytable contains : ( EmpId,EmpName,Dept ). This should be display as  EmpId--text box                    
    EmpName--text box
    Dept----textbox
    please note , i don't want to display values,but only column names

    Yeah make use of methods like
    ResultSet DatabaseMetaData.getColumns(String catalog, String schemaPattern, String tableName, String columnNamePattern)
    else use
    String ResultMetaData.getColumnName(int column_index)
    search google i'm sure u wud get thousands of example on it... :)

  • Table Names for "Payroll Interface Tables"

    How can I find out the exact table used in "Payroll Interface Tables" section?
    Some of them are Configuration, Field Definition,Definition, Group etc.
    We had a consultant who configured the tables but now we want to move the entire "Payroll interface tables"configuration to an UAT environment and the DBA's want the exact table names so they can move/copy/export the tables.
    We are on version 9.1
    Thanks.

    The Payroll Interface PeopleBook has a section called "Cloning a Payroll Interface Definition" and it lists most of the records that contain the interface definitions. Unfortunately, the cloning process is for cloning an existing definition to a new system id within the same environment, not for migrating to a different environment. You will need to include some additional tables. In HCM 8.9, we used the following in datamover:
    SXPORT PI_SYSTEM_TBL         WHERE PI_SYSTEM_ID='XXX';
    EXPORT PI_SYSTEM_STAT        WHERE PI_SYSTEM_ID='XXX';
    EXPORT PI_SYSTEM_LANG        WHERE PI_SYSTEM_ID='XXX';
    EXPORT PI_PS_RECORD          WHERE PI_SYSTEM_ID='XXX';
    EXPORT PI_PSREC_FLD          WHERE PI_SYSTEM_ID='XXX';
    EXPORT PI_PS_REC_LANG        WHERE PI_SYSTEM_ID='XXX';
    EXPORT PI_INSTANCE_TBL       WHERE PI_SYSTEM_ID='XXX';
    EXPORT PI_INST_VALUE         WHERE PI_SYSTEM_ID='XXX';
    EXPORT PI_INSTANC_LANG       WHERE PI_SYSTEM_ID='XXX';
    EXPORT PI_PROCESS_TBL        WHERE PI_PROCESS_ID >= '800000';
    EXPORT PI_PROCESS_VAL        WHERE PI_PROCESS_ID >= '800000';
    EXPORT PI_PROC_TB_LANG       WHERE PI_PROCESS_ID >= '800000';
    EXPORT PI_PROC_VA_LANG       WHERE PI_PROCESS_ID >= '800000';
    EXPORT PI_FIELD_TBL          WHERE PI_SYSTEM_ID='XXX';
    EXPORT PI_FIELD_XLAT         WHERE PI_SYSTEM_ID='XXX';
    EXPORT PI_FIELD_LANG         WHERE PI_SYSTEM_ID='XXX';
    EXPORT PI_GROUP_TBL          WHERE PI_SYSTEM_ID='XXX';
    EXPORT PI_GROUP_LANG         WHERE PI_SYSTEM_ID='XXX';
    EXPORT PI_DEFN_FILE          WHERE PI_FILE_ID='XXX';
    EXPORT PI_DEFN_RECORD        WHERE PI_FILE_ID='XXX';
    EXPORT PI_DEFN_R_LANG        WHERE PI_FILE_ID='XXX';
    EXPORT PI_DEFN_FIELD         WHERE PI_FILE_ID='XXX';
    EXPORT PI_DEFN_F_LANG        WHERE PI_FILE_ID='XXX';
    EXPORT PI_CONFIG_TBL         WHERE PI_SYSTEM_ID='XXX';
    EXPORT PI_CONFIG_FILE        WHERE PI_CONFIG_ID IN ('YYY','ZZZ');
    EXPORT PI_CONFIG_LANG        WHERE PI_CONFIG_ID IN ('YYY','ZZZ');
    EXPORT FILE_HANDLE_LNG       WHERE FILE_HANDLE IN ('AA','BB');
    EXPORT FILE_HANDLE_TBL       WHERE FILE_HANDLE IN ('AA','BB');If you're on a different release you'll have to review the list to see if anything has changed, and set the literals according to your definitions.
    Regards,
    Bob

  • How to list column names and data types for a given table using SQL

    I remember that it is possible to use a select statement to list the column names and data types of databaase tables but forgot how its done. Please help.

    You can select what you need from DBA_TAB_COLUMNS (or ALL_TAB_COLUMNS or USER_TAB_COLUMNS).

  • How to connect table and access or oracle table?

    so many question at a time . yes but pls hlp me to learn how to create a table that 'll connect to some database.

    You need to use JDBC to access the database, a TableModel to contain the memory image of the data and a JTable to display it. You can derive your TableModel from the DefaultTableModel class. There is a tutorial on JTable use that builds a Stock Quote table that fetches its data from a database in
    http://developer.java.sun.com/developer/Books/swing2/chapter18-01.html

  • Mail 5.0 How To List The Name Of Recipient In Sent Mail Folder Apple Mail instead of sender name

    I am using hotmail on Mail 5.0 using Lion operating system. Sent folder shows sender name only. How could i cange that to recpient name?

    View > Message Attributes > Mailbox
    Click 'View', Move cursor over 'Message Attributes' and check 'Mailbox'.
    The above solved my problem. Now the 'Sent' mailbox shows the recipients' address instead of mine.

  • How to avoid Dimension name in my pivot table

    hi,
    I have developed report from cube using excel
    in this pivo ttable i have an hierarchy in this fields names contains 
    dimension name.fields but i want show only fields name only, i don't want display dimension name before fileds name
    how to avoid this
    Regards
    Mallis

    Hi,
    is it Role playing dimension? In Role playing dimension case you can't hide dimension name prefix. Consider creating new database dimensions instead of using role dimensions.
    see
    it also
    Best regards.

Maybe you are looking for

  • How do I get audio input to my TV when using a HDMI adaptor/converter?

    I bought a Belkin HDMI converter for my mid-2010 Macbook Pro so that I can watch internet movies on my television. When I plugged the HDMI into the adaptor I am able to see the video play on my television however the sound is still coming through my

  • Is there any way to transfer songs from an ipod to the library

    I'm trying to burn a cd of music off of my ipod. Is there a way to upload songs from my ipod that are not in my library to the library.   Windows XP  

  • Odd log files appearing in Bridge after editing in CS5

    During the past week, I've noticed that on two occasions three text files have appeared in the folder that I'm loading/saving files from whilst working in Photoshop. In both cases I've just deleted the files, but it's left me wondering what might hav

  • More questions from a noob (Volume 2)

    I started using Arch yesterday. I got most stuff set up already. Except: 1. Sounds not working (No idea about sound stuff at all ) 2. Can't get OpenDNS working (Automatically overwrites any changes to /etc/resolv.conf) 3. XChat says everything I type

  • Re: adding canvas to applet

    Hi I am trying to add a canvas to an applet. I am successful in doing so. There is a JMenuBar added to the applet. when I click on the file menu The contents are being displayed behind the canvas and as a result I am neither able to see the buttons n