How to get information from Oracle's views

Hi,
I need to get information from Oracle's views about:
* in which table's column is set index
* what type of index is on this column
* name of a trigger which exist on a table
* type of trigger (before, after etc)
* trigger status (enable, disable)
Thanks for help.

Hi..
One of the best way to know which views to use is doing select * from dict where table_name like 'xxx';
For example in your case you needed to know about the indexes and triggers so
SQL> select * from dictionary where table_name like 'DBA_IND%';
TABLE_NAME                     COMMENTS
DBA_INDEXES                    Description for all indexes in the database
*DBA_IND_COLUMNS                COLUMNs comprising INDEXes on all TABLEs and CLUSTERs*
DBA_IND_EXPRESSIONS            FUNCTIONAL INDEX EXPRESSIONs on all TABLES and CLUSTERS
DBA_INDEXTYPES                 All indextypes
DBA_INDEXTYPE_COMMENTS         Comments for user-defined indextypes
DBA_INDEXTYPE_ARRAYTYPES       All array types specified by the indextype
DBA_INDEXTYPE_OPERATORS        All indextype operators
DBA_IND_PARTITIONS
DBA_IND_SUBPARTITIONS
DBA_IND_STATISTICS             Optimizer statistics for all indexes in the database
10 rows selected.
SQL> select * from dictionary where table_name like 'DBA_TRI%';
TABLE_NAME                     COMMENTS
DBA_TRIGGERS                   All triggers in the database
DBA_TRIGGER_COLS               Column usage in all triggers
Reading the comments you can know which view to use, then  describe the view and use what you need

Similar Messages

  • How to get resultset from oracle procedure use ejb3

    how to get resultset from oracle procedure use ejb3
    i know oracle procedure should like this
    Create or replace PROCEDURE resultset_test(
    aaa IN NUMBER,
    bbb OUT sys_refcursor) ....
    but what s the ejb3 scripts looks like? please give me an example or link~
    ths

    - there are no EJB3 scripts, only compiled application code
    - the part of the EJB spec that deals with databases is called the Java Persistence API, but likely you are just looking for the JDBC API.
    Now you should know what to Google to get your "example script": "java jdbc oracle procedure"

  • How to get information from my laptop to my ipad

    I`m new on I-pad
    How to get information from my laptop to my ipad
    Saludos
    Josè Montero

    Heres some Apple Support tips on the subject.
    How to transfer and sync content to your computer:
    http://support.apple.com/kb/ht1296
    How to transfer files between your computer and mobile apps:
    http://support.apple.com/kb/PH1693
    How to do file transfers:
    http://support.apple.com/kb/HT4094

  • How to get information from ODBC sources to Forms Builder environment

    Hi,
    Could anyone help me, to get some examples or more information, that how can I get information from ODBC sources to Forms Builder environment. I have a need to read data for example to LOV.

    If you are on Forms 6i you install the Oracle Client Adaptor from the Forms CD. You then have a way of connecting to ODBC datasources.
    To connect to ODBC at the same time as you are connected to Oracle you can use the EXEC_SQL package to create a second connection via odbc and issue select statements against that datasource.

  • How to get data from Oracle to SAP

    Hi All,
           I want to get data from Oracle to my internal table in SAP,
    I worked on puting  the data from SAP to Oracle, it's working fine...
    Can anybody suggest the code for accessing from Oracle with 4 primary keys in oracle.
    regards
    manish

    hi
    good
    there is two things in sap open sql and native .if you ll use the open sql than you can access any database.
    thanks
    mrutyun

  • How to get data from Oracle using Native SQL in SAP.. Problem with date

    Hi Masters.
    I'm trying to get data from an Oracle DB. I was able to connect to Oracle using tcode DBCO. The connetion works fine
    I wrote this code and it works fine without the statement of where date > '01-09-2010'
    But i need that statement on the select. I read a lot about this issue, but no answer.
    My code is (this code is in SAP ECC 6.0)
    DATA: BEGIN OF datos OCCURS 0,
          id_numeric(10),
          component_name(40),
          comuna(10),
          record_id(10),
          status,
          sampled_date(10),
          END OF datos.
    DATA: c TYPE cursor.
    EXEC SQL.
      connect to 'LIM' as 'MYDB'
    ENDEXEC.
    EXEC SQL.
      SET CONNECTION 'MYDB'
    ENDEXEC.
    EXEC SQL PERFORMING loop_output.
      SELECT ID_NUMERIC, COMPONENT_NAME, COMUNA, RECORD_ID, STATUS, SAMPLED_DATE
      into :datos from lims.SAMP_TEST_RESULT
      where     date > '01-09-2010'
    ENDEXEC.
    EXEC SQL.
      disconnect 'MYDB'
    ENDEXEC.
    How can i get the data from that date?? If i delete the where statemet, the program works well, it takes 30 mins and show all the data, I just need the data from that date.
    Any help
    Regards

    Please refer the example in this link which deals with Oracle date format.
    You can finnd a command DECODE which is used for date formats. If you have a look at whole theory then you will get an idea.
    Link:[Bulk insert SQL command to transfer data from SAP to Oracle|http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bulk-insert-sql-command-to-transfer-data-from-sap-to-oracle-cl_sql_connection-3780804]

  • How to get information from a text editor in the SAP standard transactions

    Hi SAP gurus I have a requirement in which it is required to gte the information from a text editor(which is not a field) in mm02 (click on) goto Purchase Order Text  in this view there is a text editor there is some text  in te the text editor i have to get that information in a table can it be done if so please give example and steps
    Points will be given to useful information

    Ah yes, excellent question, and not really a clear cut answer. In my experience, the easiest way to find this information is to simply create the text using the standard transaction, in this case MM02.  Then go to transaction SE16, using table STXH, do a query on this table, entering your user name, and today's date as the creation date.  The results should show the text that you just created, now you can see the object, id, and the way the name is being used here. 
    I also understand that in some cases, there is a button next to the editor in the screen which gives you some idea of these values, but this is not implemented everywhere, and I believe that I've only seen this in one place, can't remember where, but the first solution above will always work for you.
    Regards,
    Rich Heilman

  • How to get information from edit box

    Hi,
    I have to modfy user-exit EXIT_SAPMM07M_004
    For me necceassry is field GOHEAD-LFSNR but it is
    edit box and when customer fill this field i need to get
    the information from this field.
    There is question how to in module EXIT_SAPMM07M_004
    I can read infromation from structure GOHEAD ?
    Any suggestions ?
    Please help.
    Regards,
    Greg.

    Hi,
    You can read data and modify it from another program using assign.
    Here's an example of modifying in internal table from another program in CRM
      FIELD-SYMBOLS : <fieldcat> TYPE slis_fieldcat_alv,
                      <links>    TYPE crmt_kw_document_change.
      ASSIGN ('(SAPLCRM_KW_SERVICE)gt_link[]') TO <links>.
    With the above assign you can alter the data
    Kind regards, Rob Dielemans

  • How to get information from desktops into SQL?

    Hello Everyone,
    I could use some help with an idea that I have been working on. I basically am looking for a way to capture information from desktops and get that data into a SQL database. Could anyone give me any links, kb articles, etc on how I can go about doing this?
    Any help would be very appreciated
    Thanks :)

    Powershell is the tool for you. If you could please move this post to powershell; you should get better response.  I almost certain that there are already some powershell scripts that does this, or at least will give you a report or a excel\csv file
    with this information.
    once you have that info you import that data into sql and sql server agent jobs you can automate. 
    Below are some of the resources :
    http://serverfault.com/questions/585223/how-to-list-all-computers-operating-system-on-a-network-in-powershell
    https://www.simple-talk.com/sql/database-administration/let-powershell-do-an-inventory-of-your-servers/
    http://gallery.technet.microsoft.com/scriptcenter/Hardware-Inventory-Using-fe6611e0
    http://blogs.technet.com/b/heyscriptingguy/archive/2006/11/09/how-can-i-use-windows-powershell-to-get-a-list-of-all-my-computers.aspx
    Again, please move this powershell thread. you will get better response,
    Hope it Helps!!

  • How to get information from my iPhone to the SIMcard?

    I do not know how to get my information from an iphone4s to another phone - not apple!!????

    You will need to find out which Address Book/Contacts app on the computer that the Lumia can sync with. Once you know that you can use a program like Backup Extractor to pull out your contact information, a program like TouchCopy to move your information out of the iPhone, or see if you are already using an address book that can be read by the Lumia.

  • How to get information from SOAP header in weblogic without handlers

    I need to retrieve information from SOAP header without handlers.
    Any ideas how to do that?

    Just wondering if Filter can be used here, though I never tried that.

  • How to get information from JEditorPane if underlined or not?

    Hello!
    I'm making WYSIWYG html editor using JEditorPane (contentType -> text/html, editable = true). There are several standard buttons and combo boxes on the toolbar like B, I, U, font color etc. I need to update those whenever the caret chages position. So if the caret is set at the bold formatted text I require the bold button to be pressed and so on. However I have problem with getting information about underline state.
    So which method of which class would tell me that?
    Thans in advance!
    Maciej

    This is from memory so forgive if slighly incorrect.
    StyledDocument doc = (StyledDocument)myEditorPane.getDocument();
    boolean isUnderlined = doc.getCharacterElement(myEditorPane.getCaretPosition()).getAttributes().isDefined(StyleConstants.Underline);

  • How to get information from Matrix Cell

    Hello
    I have a system matrix, that shows OBOE (Bill of exchange
    SAPbouiCOM.Form form = SBO_Application.Forms.ActiveForm;
    SAPbouiCOM.Item item = form.Items.Item("5");
    matrix = (SAPbouiCOM.Matrix)item.Specific;
    And them i need to get value from Column 9 row 1 (it is a checkbox, so i need to get if it is checked)
    Now i found only way to serialize this matrix to XML, and then deserialize it, but it is VERY slow
    String MatrixXml = matrix.SerializeAsXML(SAPbouiCOM.BoMatrixXmlSelect.mxs_All);
    Is there any other faster way to get information of matrix cell ?
    Thank you

    Hi Stefano Osler ,
    we can get the information from the matrix by using this below line
    ((SAPbouiCOM.CheckBox)oMatrix.Columns.Item("9").Cells.Item(pval.row).Specific).Checked
    if this is true then it is check else unchecked.
    with Regards,
    MadhuSudhana Rao.G

  • HELP IN JNI (1.4) : how to get informations from a jclass pointer ?

    Hi,
    I am integrating a JVM inside an already built product in C and Objective C. I need to build hash tables of jclass pointers. The problem is :
    On two different JNI interactions, when for instance you ask for the jclass pointer of "java/lang/String", you get different pointers. So I cannot built a hash key based on the jclass value. Only
    (*env)->IsSameObject(env,jclass1,jclass2) can help to recognize that those pointers points to the same java class.
    So it would be usefull for me to grab (efficiently) a stable information, such as the name of the class, to build a hash key from.
    Anybody could tell me how can I do this ?
    Thanks in advance,
    Regards,
    C.Dore

    Yes, sorry, realized that myself and actually thought I would have posted the correct solution but I guess I forgot about it. Here it is:
    import java.util.Hashtable;
    public final class Test {
        static { System.loadLibrary("test"); }
        private static native Hashtable  makeHash();
        public static void main(String[] args) {
         Hashtable  h = makeHash();
         h.put("ba", "ba");
         System.out.println(h);
        } // main(String[])
    // NATIVE portion:
    #include <jni.h>
    /* Header for class Test */
    #ifdef __cplusplus
    extern "C" {
    #endif
    * Class:     Test
    * Method:    makeHash
    * Signature: ()Ljava/util/Hashtable;
      JNIEXPORT jobject JNICALL Java_Test_makeHash(JNIEnv *env, jclass klass) {
        jclass    hashClass  = (*env)->FindClass(env, "java/util/Hashtable");
        jmethodID hashConstr = (*env)->GetMethodID(env, hashClass, "<init>", "()V");
        jobject   hash       = (*env)->NewObject(env, hashClass, hashConstr);
        return  hash;
    #ifdef __cplusplus
    #endif

  • How to retrieve information from a database View name

    For a given database View name, is there any way to retrieve what are the columns (also the corresponding table name) associated with that View?
    I am getting the view names by using DatabaseMetaData APIs.
    Now I want to retrieve the info associated with that view.
    Any help will be highly appreciated.

    If all else fails then since you have the view name then "select * from viewname where 1=0" should work.

Maybe you are looking for

  • All In One Printer Suggestion

    Hello Everyone: I am looking for a suggestion for an All-in-One Printer. I have an iMac, but also have a Mac Book that connects wirelessly for printing, as well as a Dell Laptop that connects wirelessly for printing, and I would also like to be able

  • How do I upload podcasts in a specific order to my iPod?

    I am trying to upload a series of podcasts to my iPod in an order I have determined myself.  They are a series of language lessons I have purchased and I want to listen to them in an order that I have chosen. Not by their release date.  I have tried

  • Macbook air doesn't see Harmony 9000

    trying to update the remote settings on a Logitech Harmony 9000.  New to Apple.  It seems that the device is not being seen through the USB port.  Do I need to do something for the device to be found?

  • MIRO transaction related

    Hi Experts, How can i capture multiple vendors for a particular purchase order in transaction MIRO through BADI  Invoice_update.There can be a situatin where a particular purchase order can be linked to multiple vendors ( due to change in address), i

  • Dynamic Form Commenting

    Hello, I created a dynamic XFA form by LiveCycle Designer. I can not comment on form by using Acrobat. Why we can not comment on dynamic forms? Thank You Asiye