How to get trigger definition in sqlplus?

H there,
How to get a trigger definition in sqlplus?
Version: 8i.

I think if u are unable to see it in dba_source...u will not be able to see in all_source....
As sundar said...u need to write some thing like shoblock wrote for indexes in:
Generate script of index

Similar Messages

  • How to Get project definition and description  by WBS element

    Hi All,
    Is there any way to get  project definition and description  by providing WBS element.
    Please help .
    Salman Zahir

    Hi,
    These r the tables
    PRHI Work Breakdown Structure, Edges (Hierarchy Pointer)
    PROJ Project definition
    PRPS WBS (Work Breakdown Structure) Element Master Data
    RPSCO Project info database: Costs, revenues, finances
    MSPR Project stock
    Thanks,
    Anitha

  • How to get ORA Errors on SQLPlus in english

    Hi,
    I am running 10gR2 on american Windows.
    Even I have set NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
    still getting oracle errros on SQLPlus in german :-(
    What do I else need to change?
    Thanks

    Hi,
    Are you sure that the NLS_LANG variable was correctly set up ?
    C:\>sqlplus system/manager
    SQL*Plus: Release 10.2.0.1.0 - Production on Dom Jun 10 21:43:40 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Conectado a:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> select * from mytable;
    select * from mytable
    ERRO na linha 1:
    ORA-00942: a tabela ou view não existe
    SQL> select * from nls_session_parameters;
    PARAMETER                      VALUE
    NLS_LANGUAGE                   BRAZILIAN PORTUGUESE
    NLS_TERRITORY                  BRAZIL
    NLS_CURRENCY                   R$
    NLS_ISO_CURRENCY               BRAZIL
    NLS_NUMERIC_CHARACTERS         ,.
    NLS_CALENDAR                   GREGORIAN
    NLS_DATE_FORMAT                DD/MM/RR
    NLS_DATE_LANGUAGE              BRAZILIAN PORTUGUESE
    NLS_SORT                       WEST_EUROPEAN
    NLS_TIME_FORMAT                HH24:MI:SSXFF
    NLS_TIMESTAMP_FORMAT           DD/MM/RR HH24:MI:SSXFF
    NLS_TIME_TZ_FORMAT             HH24:MI:SSXFF TZR
    NLS_TIMESTAMP_TZ_FORMAT        DD/MM/RR HH24:MI:SSXFF TZR
    NLS_DUAL_CURRENCY              Cr$
    NLS_COMP                       BINARY
    NLS_LENGTH_SEMANTICS           BYTE
    NLS_NCHAR_CONV_EXCP            FALSE
    17 linhas selecionadas.
    SQL> exit
    Desconectado de Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    C:\>set NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
    C:\>sqlplus system/manager
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Jun 10 21:44:12 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> select * from mytable;
    select * from mytable
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> select * from nls_session_parameters;
    PARAMETER                      VALUE
    NLS_LANGUAGE                   AMERICAN
    NLS_TERRITORY                  AMERICA
    NLS_CURRENCY                   $
    NLS_ISO_CURRENCY               AMERICA
    NLS_NUMERIC_CHARACTERS         .,
    NLS_CALENDAR                   GREGORIAN
    NLS_DATE_FORMAT                DD-MON-RR
    NLS_DATE_LANGUAGE              AMERICAN
    NLS_SORT                       BINARY
    NLS_TIME_FORMAT                HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT           DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT             HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT        DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY              $
    NLS_COMP                       BINARY
    NLS_LENGTH_SEMANTICS           BYTE
    NLS_NCHAR_CONV_EXCP            FALSE
    17 rows selected.
    SQL> alter session set nls_language=german;
    Session wurde geõndert.
    SQL> select * from my table;
    select * from my table
    FEHLER in Zeile 1:
    ORA-00933: SQL-Befehl wurde nicht korrekt beendet
    SQL> select * from mytable;
    select * from mytable
    FEHLER in Zeile 1:
    ORA-00942: Tabelle oder View nicht vorhandenCheers

  • How to get trigger code from the schema into a file

    Please help me in getting code of any trigger from the schema, without using any data dictionary views.

    In fact you can get the trigger code by using tools like toad,sql developer
    But all are using the data dictonary view to get the code .

  • How to get trigger-filled-in PK immediately after commit

    Hi You Form Experts,
    I have two blocks in a form. The two blocks are "linked" by an FK (block2's PK stored in block1's table), but they do not have an exactly "parent-child" relationship. Block1 always has a record and commits first, and there may or may not be a record in block2. So, in the form the two blocks are not joined. And if and when there is a record in block2, I need to update block1 with the block2's PK so that the records are associated.
    The problem here is that the PK of block2 is a sequence number and is filled in by a DB-side pre-insert trigger. So, there PK is not available in block2 immediately after the commit.
    Is there a way to force a "refresh upon insert" of the PK item of block2 in Forms?
    Thank you very much in advance.
    ZD

    can't u get ur block2 primary key value by:
    ON each new_record_Instance of block2
    rownum := get_block_property('block2',current_record);
    select nvl(max(pk_column))+ rownum into :pk_column
    from block2_table;
    Thus u can get the next assignable value for block2.
    Reply if it works

  • How to get the Definition from a source using WSIF

    Hi All,
    Definition def = WSIFUtils.getDefinitionFromLocation("http://bingweb.binghamton.edu/~npandya1/nirav/"
    , "GlobalWeather.wsdl");
    but its giving me an error:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
    at org.apache.wsif.logging.Trc.<clinit>(Unknown Source)
    at org.apache.wsif.util.WSIFUtils.getDefinitionFromLocation(Unknown Source)
    at Grid.WSIF.invoke(WSIF.java:98)
    Could anyone please tell me what are the actual parameters of the function
    getDefinitionFromLocation()
    what should be the contextURL be and location
    Thanks
    Nirav

    Check this example on Pipelinedfunction

  • (ABAP-FI)How to get project definition from agiven WBS element

    Hi,
    I have to update some columns of PRPS table relating to a WBS element.
    While using  BAPI_BUS2054_CHANGE_MULTI it wants project definition to be passed as an input parameter.
    Is there any means to know project definition for  a given WBS element of PRPS table.
    Thanks in advance.
    Regards,
    Sourya Prakash.

    Hi,
    why don't you display table PRPS in SE11 to see what fields you have there? It's not that hard to see that there is a field PRPS-PSPHI with description "Current number of the appropriate project". Yes, there is a link from WBS element to project definition.
    Cheers

  • Issue : How to get better definition of fonts/typography in Keynote when exporting to HD Quicktime ?

    Hello,
    I understand there are no possibilities to "add" a vector button to future keynote allowing crisper and smoother fonts. However, when writing texts with effects in a Keynote presentation, and exporting it to Quicktime , whatever the resolutions chosen and clors and settings, still,effects are smooths, but  fonts/typography/texts are not clean, crisp and when using a big display in full screen , the .mov or .mpeg4 outcome still always displays poor resolution for text.
    Anyone could suggest something ? I want to be able to choose my texts effects on Keynote, while securing an outstanding fonts/texts resolution and apperance when in HD movie, quicktime or else.
    Thanks a million for any suggestions guys !
    Isa

    I have several video clips from iStockPhoto. I don't know what camera's/settings were used, but know that they are all 640x360 px and vary between 25 fps and 30 fps. I also have 3 still images that I have insterted that I formatted to be 640x360 to keep everything the same size. Everything appears correct when viewing the project as I've built it. I'm attaching a few screen shots of the most recent settings for export, though these are not the only that I have tried. Everything comes out with the same result.
    I can't insert screen shots of my settings for some reason (?) but here is some info on my most recent try. I chose to export as a Microsoft DV AVI. Then in the Video options I'm using the DV NTSC codec. For size, I chose the D1/NTSC Widescreen 16:9 (1.2) option.
    As for other times I've tried this, there are only 2 other codecs to choose from when saving as a DV AVI. I've tried both of them too. Everything has had the same result. I've tried a Quicktime file as well.
    Does anyone have a suggestion as to the best file/codec/setting combination?
    Thanks,
    Holli

  • How to get Systems definition in SMSY with SLD ?

    Hello,
    I have configured SMSY to work with SLD and it works fine.
    After synchronizing, I can see Server, Database and System Component provide by the SLD. But I can only see one System (Solution Manager itself).
    Is it a bug or there a solution to import Systems form SLD that are not SM ?
    Thanks
    Regards
    Chris

    Hi Chris,
    After adding JAVA system into SLD.Then you can choose Relevant main instance for that java system as XI or XSS.Once you choose relevant instance then those JAVA system will be shown into SLD.
    Regards,
    Sumit

  • How to get 64-bit install and 32-bit client to work on 1 pc

    I have installed a full 64-bit 11g R2 install on my Windows 7 D: drive, installed two DB's, worked great. Then I realized application I need to support requires 32-bit client (for drivers) so I installed the 11g client also.
    My problem is that my registry only shows one ORACLE_HOME--the 64-bit full install whereas Cognos reqs to point to 32-bit client.
    Sqlplus in 64-bit works fine (D:\oracle\app\dock\product\11.2.0\dbhome_1\BIN\sqlplus.exe) whereas the 32-bit client sqlplus (D:\oracle\client\app\dock\product\11.2.0\client_1\BIN\sqlplus.exe) does not work. The error is:
    ORA-12560: TNS:protocol adapter error
    If I open cmd prompt and navigate to 32-bit sqlplus under client this WILL work to login (but then I noticed it was using the 64-bit ORACLE_HOME and PATH settings if I typed set). In order to fix Cognos, I changed my ORACLE_HOME and path to point to the 32-bit client (i.e. from D:\oracle\app\dock\product\11.2.0\dbhome_1 to
    ORACLE_HOME = D:\oracle\client\app\dock\product\11.2.0\client_1
    PATH = D:\oracle\client\app\dock\product\11.2.0\client_1\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\
    Guess what? This stopped both the 64-bit and 32-bit sqlplus from working, even after bouncing the computer. Now the listener (64-bit) OracleOraDb11g_home1TNSListener will also not start either.
    Sooooo, I think I need to set the OH and PATH back to the 64-bit as that is what the Listener requires but any ideas how to get the 32-bit sqlplus to also work?!?
    Thanks in advance for any help!

    lo**** wrote:
    My problem is that my registry only shows one ORACLE_HOME--the 64-bit full install whereas Cognos reqs to point to 32-bit client. The env/reg variables probably do exist/show, only in the right place. In Win 64-bit, there's a separate branch of reg entries for 32-bit (look for WoW6432Node).
    >
    ... whereas the 32-bit client sqlplus (D:\oracle\client\app\dock\product\11.2.0\client_1\BIN\sqlplus.exe) does not work. The error is:
    ORA-12560: TNS:protocol adapter errorIt works as expected. Since there is no Oracle instance in the Client home (no surprise), you can't connect "locally" from the 32-bit sqlplus. I.e. you need to use "...@connectident" in the connect string.
    In order to fix Cognos, I changed my ORACLE_HOME and path to point to the 32-bit client (i.e. from D:\oracle\app\dock\product\11.2.0\dbhome_1 toOn Windows platform, ORACLE_HOME should not be set by user (it is already set by installer, in the Registry).
    To pick up proper settings, PATH need to be set or used.
    >
    Sooooo, I think I need to set the OH and PATH back to the 64-bit as that is what the Listener requires but any ideas how to get the 32-bit sqlplus to also work?!?Please remove OH from env system settings.
    Multiple homes on Windows is often a source of problems, since extra consideration and setup is needed more than just installing the software.
    If "Cognos" relies on system PATH, then one way to go might be:
    - put path to 32-bit Client bin folder first in PATH
    - set up a shortcut to command window with only 64-bit in PATH, for times when you need to administer the database via command line.

  • TS3212 how to get 64 bit itunes on windows

    how to get 64 BIT TUNES ON WINDOWS

    lo**** wrote:
    My problem is that my registry only shows one ORACLE_HOME--the 64-bit full install whereas Cognos reqs to point to 32-bit client. The env/reg variables probably do exist/show, only in the right place. In Win 64-bit, there's a separate branch of reg entries for 32-bit (look for WoW6432Node).
    >
    ... whereas the 32-bit client sqlplus (D:\oracle\client\app\dock\product\11.2.0\client_1\BIN\sqlplus.exe) does not work. The error is:
    ORA-12560: TNS:protocol adapter errorIt works as expected. Since there is no Oracle instance in the Client home (no surprise), you can't connect "locally" from the 32-bit sqlplus. I.e. you need to use "...@connectident" in the connect string.
    In order to fix Cognos, I changed my ORACLE_HOME and path to point to the 32-bit client (i.e. from D:\oracle\app\dock\product\11.2.0\dbhome_1 toOn Windows platform, ORACLE_HOME should not be set by user (it is already set by installer, in the Registry).
    To pick up proper settings, PATH need to be set or used.
    >
    Sooooo, I think I need to set the OH and PATH back to the 64-bit as that is what the Listener requires but any ideas how to get the 32-bit sqlplus to also work?!?Please remove OH from env system settings.
    Multiple homes on Windows is often a source of problems, since extra consideration and setup is needed more than just installing the software.
    If "Cognos" relies on system PATH, then one way to go might be:
    - put path to 32-bit Client bin folder first in PATH
    - set up a shortcut to command window with only 64-bit in PATH, for times when you need to administer the database via command line.

  • How to get SSO logged user information in a database trigger

    my database is 9i
    my application server is 9i too
    I need to track which SSO user is inserting data into a table , so how can i get the information of that user in a database trigger on that table
    thanks

    Hi,
    The only way I could figure out how to get it was to import the com.sap.security.api.
    1. From Window>Preferences>Java-->Classpath Variables, set up a variable called WEBAS_HOME pointing to:
    <drive>/usr/sap/<SID>/jc00/j2ee/cluster/server0/
    2. Right click on properties of your Dynpro Project->Properties->Java Build Path->Libraries and click "Add Variable." 
    3. Select WEBAS_HOME and click "Extend"
    4. Select /bin/ext/com.sap.api.sda/com.sap.security.api.jar and click OK.
    If you don't have access to a portal directory, you will have to get this jar file and copy it to your workspace to add to your build path instead of the above steps.
    Then in your code:
    import com.sap.security.api.IUser;
    import com.sap.security.api.IUserAccount;
      public void GetLogonID( )
         String LogonID;
         try {
              /*     create an user object from the current user */
              IWDClientUser wdUser = WDClientUser.getCurrentUser();
              IUser user = wdUser.getSAPUser();
              if (user != null) {
                   IUserAccount acct = user.getUserAccounts()[0];
                   if (acct != null) {
                        LogonID = acct.getLogonUid();
                   } else
                        LogonID = "acct null";
              } else {
                   LogonID = "user null";
              wdContext.currentContextElement().setDisplayName(user.getFirstName() + " " + user.getLastName());
              wdContext.currentContextElement().setLogonID(LogonID.toUpperCase());
         } catch (Exception e) {
              e.printStackTrace();
    Hope this helps...  I had to search several places before I found all the necessary stuff.  Maybe I can get my first points!
    Thanks,
    Andrew

  • Trigger how to get new and old value for nested table column?

    Hi,
    I have created a nested table based on the following details:
    CREATE TYPE typ_item AS OBJECT --create object
    (prodid NUMBER(5),
    price NUMBER(7,2) )
    CREATE TYPE typ_item_nst -- define nested table type
    AS TABLE OF typ_item
    CREATE TABLE pOrder ( -- create database table
    ordid NUMBER(5),
    supplier NUMBER(5),
    requester NUMBER(4),
    ordered DATE,
    items typ_item_nst)
    NESTED TABLE items STORE AS item_stor_tab
    INSERT INTO pOrder
    VALUES (800, 80, 8000, sysdate,
    typ_item_nst (typ_item (88, 888)));
    Now I would like to create a trigger on table pOrder for after insert or update or delete
    and I would like to track the new and old value for the columns inside nested table.
    Can anybody direct me how to do it?
    I would like to know the sytax for it like:
    declare
    x number;
    begin
    x := :new.nestedtablecolumn;--how to get the new and old value from nested table columns
    end;
    Hope my question is clear.
    Thanks,
    Lavan

    Hi,
    Try like this:
    CREATE OR REPLACE TRIGGER PORDER_I
    BEFORE INSERT
    ON PORDER
    REFERENCING OLD AS old NEW AS new
    FOR EACH ROW
    DECLARE
      items_new typ_item_nst;
      ordid_NEW NUMBER;
    BEGIN
    FOR i IN :new.items.FIRST .. :new.items.LAST LOOP -- For first to last element
      DBMS_OUTPUT.PUT_LINE(':new.items(' || I || ').prodid: ' || :new.items(I).prodid );
      DBMS_OUTPUT.PUT_LINE(':new.items(' || I || ').price:  ' || :new.items(I).price );
    END LOOP;
    END;Regards,
    Peter

  • VS2013 / Team Explorer vsix - How to get the currently selected build definition?

    Greetings,
    My goal with a simple extension is to right-click any build definition and if my "Show Build Def Stats" menu item is selected, pop a message box with some summary details I plan to pull from the IBuildDefinition interface.
    I'm missing something fundamental I'm sure, but I cannot figure out how in the menu handler the actual build definition that I clicked on.
    The menu command is added where I want it successfully:
    Symbol info used to get this there:
        <!-- This is the Build Definition Context Menu -->
        <GuidSymbol name="guidTeamExplorerBuildDefContextMenu" value="{34586048-8400-472E-BBBF-3AE30AF8046E}" >
          <IDSymbol name="menuBuildDefinitionContext" value="0x109"/>
        </GuidSymbol>
    I am stumped as to how to get the fact that I clicked the "ISRepository" build definition in either the Initialize() or MenuItemCallBack() methods, I haven't come across the right service or container object that I recognize.
    Much obliged!
    --Jordan

    I have been investigating this for a while using .NET Reflector and finally I got it:
    In VS 2013, add references to the following assemblies in the folder C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer:
    Microsoft.TeamFoundation.Controls.dll
    Microsoft.TeamFoundation.Build.Controls.dl
    And then use this code:
    Microsoft.TeamFoundation.Controls.ITeamExplorer teamExplorer;
    Microsoft.TeamFoundation.Controls.ITeamExplorerPage teamExplorerPage;
    Microsoft.TeamFoundation.Build.Controls.Extensibility.IBuildsPageExt buildsPageExt;
    teamExplorer = base.GetService(typeof(Microsoft.TeamFoundation.Controls.ITeamExplorer)) as Microsoft.TeamFoundation.Controls.ITeamExplorer;
    teamExplorerPage = teamExplorer.CurrentPage;
    buildsPageExt = teamExplorerPage.GetExtensibilityService(typeof(Microsoft.TeamFoundation.Build.Controls.Extensibility.IBuildsPageExt)) as Microsoft.TeamFoundation.Build.Controls.Extensibility.IBuildsPageExt;
    foreach (Microsoft.TeamFoundation.Build.Controls.Extensibility.IDefinitionModel definitionModel in buildsPageExt.SelectedDefinitions)
    System.Windows.Forms.MessageBox.Show(definitionModel.Name);
    * My new blog about VSX: http://www.visualstudioextensibility.com * Twitter: https://twitter.com/VSExtensibility * MZ-Tools productivity extension for Visual Studio: http://www.mztools.com.

  • How to get deleted project definitions information from CDHDR CDPOS tables

    Hi,
    I want to get project definitions or WBS ELmenets that got deleted from CJ02 or CJ12. We can get this information from CDHDR or CDPOS table by passing PROJ object class but in this table changes (change or deletion) are not captured. so can anybody please let me know how to activate object class PROJ or how to track changes in CDHDR or CDPOS table?
    Regards,
    M, Manohar
    <Contact information removed by moderator>
    Edited by: Vinod Kumar on Sep 19, 2011 3:37 PM

    Hi,
    If the requirement is to identify when the project / WBS was deleted, then alternate oprion is to pass the WBS OBJNR to JCDS. JCDS will give you the status updates happened on a project and also when and who made the changes.
    Regards
    Sreekanth

Maybe you are looking for

  • Acrobat 7.0 - Print queue file size increase.

    Hi, I'm hoping someone on these forums can help. When sending a file to print the file size in the print queue can be many times larger than the original file size. For example a 1 page PDF file  762k was inflated to over 9.5Mb. Obviously this massiv

  • Problem in Profit centre

    hi friends i make cash payment in FBCJ in that  i assign profit centre like '4000'.but when i post it and then after check in FBL3N G/L account documents it will display '1000' profit centre what change i will do in configuration to get profit centre

  • Stuck trying to remove Cluster/RAC 11Gr1 in prep for 11Gr2 install...

    Hello all, I'm thinking I'm missing something simple here...but I can't figure it out yet. Ok, I have a 3 node RAC cluster, Oracle 11Gr1...I want to remove all instance, and clustering (ASM is ok to keep)...before I try to put on 11Gr2. This is on RH

  • Send File with Bluetooth

    I am attempting to send/beam a file to another friend using Bluetooth and my Bluetooth is enabled, but when I click the "Send File" tab under my Bluetooth icon nothing happens. Suggestions?

  • New MacBook Pro doesn't recognise external Freecom HHD

    Just got myself a brand spanking new 15" MacBook Pro with the i7 processor running (obviously) OS X 10.6.3. My problem is the machine does not recognise my Feecom 400GB external hard drive (USB). Doesn't show up in finder or under disk utility. And o