How to reference already created tables?

I just started with Oracle and I created 5 tables. On two of the tables i created the references but I never clicked ADD, so they were not added. How can I link the tables after they are already created?

You want to add primary and foreign key. There is alot of articles with how to do this.
The basic solution is:
ALTER TABLE table_name
add CONSTRAINT constraint_name
FOREIGN KEY (column1, column2, ... column_n)
REFERENCES parent_table (column1, column2, ... column_n);

Similar Messages

  • Applying TableSorter to already created table and model.

    I am using the popular TableSorter class (talked about from this site: http://java.sun.com/docs/books/tutorial/uiswing/components/table.html) and I want to know if anyone knows of a way to apply the table sorter after the table has already been created and a table model given to the table.
    Long story as to why I am doing it this way.
    I tried doing:
    TableSorter sorter = new TableSorter(myTable.getModel());
    sorter.setTableHeader(categoriesTable.getTableHeader());
    myTable.setModel(sorter);This just doesn't work right. It doesn't have any sorting to it.
    Does anyone know of a way to apply the TableSorter to an already made table that already has a table model associated?

    It doesn't look correct that you are referencing two different table:
    a) myTable
    b) categoriesTable.
    Also the order should probably be:
    a) setModel(...);
    b) sorter.setTableHeader(...);
    based on the normal code from the tutorial.

  • How to fetch already created sessions from Informatica Repository (Informatica SDK)

    Hi guys,I'm using the Informatica SDK to create a java application that accesses the Informatica repository. I'm having a bit of an issue while trying to fetch the names of already created sessions from the Informatica Repository. I'm able to connect to the repo without any issues and have been able to add sources, targets, mappings, sessions, workflows, etc... and save them directly afterwards. However, when I try to fetch the session names from a folder in the repository, I get the following error:Mon Jul 27 15:03:01 PDT 2015 Severity:DEBUG ThreadID:14 Running the pmrep process in the working directory: [C:\Informatica\9.6.1\clients\PowerCenterClient\client\bin].Mon Jul 27 15:03:01 PDT 2015 Severity:DEBUG ThreadID:14 Running the command [listobjects -o session -f "TechOps" -s . ]. Mon Jul 27 15:03:01 PDT 2015 Severity:DEBUG ThreadID:14 Running the command [exit ].Mon Jul 27 15:03:01 PDT 2015 Severity:DEBUG ThreadID:14 Parsing the output of the ListObjects command for each folder.Mon Jul 27 15:03:01 PDT 2015 Severity:DEBUG ThreadID:14 The following errors occurred while running the ListObjects command: [Failed to read repository connection information. Please first connect to the repository using the connect command. Failed to execute listobjects.]. The following errors occurred while running the ListObjects command: [ Failed to read repository connection information. Please first connect to the repository using the connect command. Failed to execute listobjects.].com.informatica.powercenter.sdk.mapfwk.exception.RepoOperationException: The following errors occurred while running the ListObjects command: [ Failed to read repository connection information. Please first connect to the repository using the connect command. Failed to execute listobjects.]. atcom.informatica.powercenter.sdk.mapfwk.core.Folder.fetchSessionNamesFromRepository(Unknown Source) atcom.informatica.powercenter.sdk.mapfwk.core.Folder.fetchSessionNamesFromRepository(Unknown Source) at com.mars.Main.main(Main.java:170)This doesn't really make sense to me as I'm able to connect to the repo fine to add and save changes. Here's my code for fetching:// Create a list of session names and store the names
    List<String> sessionNames = null;
    try {
        sessionNames = folder.fetchSessionNamesFromRepository();
    } catch (RepoOperationException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (MapFwkReaderException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    // Print the list of session names
    for (int i = 0; i < sessionNames.size(); i++) {
        System.out.println("Session " + i + " is " + sessionNames.get(i));
    }I've confirmed that the folder object works fine as I can add and save other objects to that folder in the repo.The other odd thing is that if I go to the install path for Informatica on my machine and I run pmrep from the command prompt followed by the command to fetch session names, it works fine.Any help on this would be greatly appreciated.Thanks

    Hi neel007,
    Just use a List instead of a Vector, it's more performant :
    List<Folder> rep_FetchedFolders = new ArrayList<Folder>();If you need to synchronize your list, then
    List<Folder> rep_FetchedFolders = Collections.synchronizedList(new ArrayList<Folder>());Also, if you're using Java 5 or higher and if you're sure listOfTargets contains only Target objects, instead of this
    for(int b=0; b<listOfTargets.size();b++){
       Target trg = ((Target)listOfTargets.get(b));
       t_folder.addTarget(trg);
    }you may do this :
    for (Target trg : listOfTargets) {
       t_folder.addTarget(trg);
    }Edited by: Chicon on May 18, 2009 7:29 AM
    Edited by: Chicon on May 18, 2009 7:35 AM

  • How to reference Item with Table Column

    Hi Community,
    we want to reference Table Column with an Item. This Item is a Select-List wich includes a Date. Befor doing something, you have to select this date. After that we want to create a new row in with a date-column. This date should be the same as in this Item. We are using a tool which is called HTML-DB. We reached that there is shown the date, but there is no value. It is an updateable report row.
    How can we copy this value from the Item in this new column?
    I am sorry for my english, but I hope everyone understands our problem.
    Greez Rob

    I did it another way. We are using an old HTML DB version (v1.6). And I think it is a bug to reference a date with a column. I have this opinion because we copied the table but we changed the format. we are using varchar instead of date, and it is working without problems.
    We also tried &px_name and it didn't work.
    Thx anyway!

  • How to connect Already created WebI reports with Xcelsius Dashboards

    HI Experts,
    My requirement it to bring data from already in use WebI reports to a consolidated Dashboard. I am aware of connecting universe with Dashboard with the help of QaaWS.
    Is there is any other way that we can connect our dashboard?
    We are thinking to publish those dashboards on the SAP Enterprise BI Portal.
    Thanks in advance!!!
    Edited by: BIBO_Apprentice on Aug 13, 2011 7:40 AM

    Hi,
    One can connect WebI reports with Xcelsius dashboards in 3 ways:
    1. Using QaaWS : connects universe with Dashboard. Dashboard uses the WSDL link to get data that works on SOAP (that works on exchanging web structures).
    2. Using Live Office Connection: With the help of Live Office one can connect the WebI reports directly. One can take advantage of the scheduled instances of the WebI reports. So it is good for time consuming reports.
    3. Using BI Web Services: Here custom web services are created of intended report instances. Publication is done from CMS side.
    after that WSDL is used as any other web services.
    Get back if you need any further clarification.

  • How to enter a data into the specified column and row in a created table

    Hi,
    I want to enter some data to specified column and row in a already created table. Please let me know how to do this.
    Regards
    Shivakumar Singh

    A table is just a 2D array of strings. Keep it in a shift register and use "replace array element" to modify the desired entry programmatically.
    If you want to modify it manually and directly from the front panel, make it into a control and type directly into the desired element. (In this case your program would need to write to it using a local variable).
    Atttached is a simple example in LabVIEW 7.0 that shows both possibilities.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ChangeTableEntries.vi ‏41 KB

  • How to create table view with reference table

    Hi experts,
    How to create table view with reference table in SE11, plz gve me stp by stp procedure.
    pints grnded for hlp.

    Hi
    Go to Tcode se11 choose view and enter the name and create a popup opens up choose database view option
    enter the description
    On the left hand side choose the table name.
    Click on view fields tab and choose your table fields.Here you can choose which fields you want in your view.
    Save and then activate.
    Hope this helps.
    Regards,
    Harish

  • How to create table in bisystem

    hi,
    how to create table in bi system.
    My requirement is such like that i want to store data which is used in the routine.
    i want to maintain the data dynamically so that i want to create the table.

    Hi.........
    Same as ABAP only...........using SE11........
    Steps for creating table:.
    There are two approach in creating a table.
    1. Bottom-up approach
    2. Top-down approach. 
    Both are valid and you can choose which approach is suitable for you.  I always use the bottom-up approach. Here are the steps to create the tables with this approach.
    1. SE11 will take you to the DDIC and enter the name of the new table to be created. Let us say Zname. Click create.
    2. Enter the short discription of the table and enter the field of the table.  If it is primary key and you have to check the box. 
    3. Enter the data element  and double click it, you will be asked to save and will take you to data element discription page.  Enter the short discription of the data element and enter the information of domain like the length of field and type of field.
    4. If you wanted to use the existing domain then its fine, or else, you have to create one.  Enter the domain name in the data element page and double click it.  Page will ask to save and jump to domain creation page.
    5. In the domain page, you have to save the information which you have already given in the data elements page and check it.  Before going to data element page, you have to activate the domain.
    6. Go to data element page and save, check and activate.
    7. Go to main table page and save, check, and activate.  
    8. Also, you have to save the technical settings of the table.
    The table is now ready for operation. You can use it in your program or you can use it to enter information.
    Check table:  It is the table which will have all the information about the Foreign keys which are the primary keys in the check table.
    It can be created by creating the foreign key from the main table.  Click foreign key in the main table and it will take you to a page which will ask for table name and field to which foreign key relation has to be associated. Enter the information and you can create the check table automatically.
    SM30 is used for maintenance of the table, that is to realease the errors occured during the creation of the table.  
    Hope this helps......
    Regards,
    Debjani..........

  • How and when to create a fact table

    hi every1,
    I am new to oracle and specially to Data Warehousing. I am using OWB 11g on windows XP.
    I have created the dimensional for a database, now i am in the implementation phase.
    i have the following questions.
    1. I don't know how and when to create a fact table. I have already created the dimensions (ROLAP).
    2. Do i need to create a mapping for a Cube. if yes, then how to load them from 4 different dimensions. how will be the join condition, they don't match?
    3. I will also try for aggregation, do i need to use MOLAP for the dimensions or ROLAP works?
    Please, give a quick reply.
    regards
    RF

    You should ask your question here:
    Warehouse Builder
    where it is on topic.

  • Create data reference to a table that is known at runtime

    Hi,
    I am trying to create a data reference to a table that is known only at runtime. In system 4.6C, I am not able to insert this coding
    data: lr_data type ref to data.
    CREATE DATA lr_data type table of (structure_name).
    In hihger releases, I am able to do so.
    Could you please tell me how to solve this problem in 4.6C?
    Best regards,
    Fabian

    Hi fabian,
    If i understood,
    u want to create a dynamic internal table.
    1.
      For this purpose,
      in my program,
      there is an INDEPENDENT FORM
      whose inputs are
      TABLE NAME / STRUCTURE NAME
      and from those, it consructs dynamic table.
    2. Here is the program.
    the dynamic table name will be
    <DYNTABLE>.
    3. U can use this program (FORM in this program)
    to generate any kind of internal table
    by specifying TABLE NAME .
    4.
    REPORT abc.
    COMPULSORY
    FIELD-SYMBOLS: <dyntable> TYPE ANY TABLE.
    FIELD-SYMBOLS: <dynline> TYPE ANY.
    DATA: lt TYPE lvc_t_fcat.
    DATA: ls TYPE lvc_s_fcat.
    FIELD-SYMBOLS: <fld> TYPE ANY.
    DATA : fldname(50) TYPE c.
    parameters : iname LIKE dd02l-tabname.
    START-OF-SELECTION.
    PERFORM
    PERFORM mydyntable USING lt.
    BREAK-POINT.
    INDEPENDENT FORM
    FORM mydyntable USING ptabname.
    Create Dyn Table From FC
    FIELD-SYMBOLS: <fs_data> TYPE REF TO data.
    FIELD-SYMBOLS: <fs_1>.
    FIELD-SYMBOLS: <fs_2> TYPE ANY TABLE.
    DATA: lt_data TYPE REF TO data.
    data : lt TYPE lvc_t_fcat .
    DATA : ddfields LIKE ddfield OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'DD_NAMETAB_TO_DDFIELDS'
    EXPORTING
    tabname = iname
    TABLES
    ddfields = ddfields.
    CONSTRUCT FIELD LIST
    LOOP AT ddfields.
    ls-fieldname = ddfields-fieldname.
    APPEND ls TO lt.
    ENDLOOP.
    ASSIGN lt_data TO <fs_data>.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING
    it_fieldcatalog = lt
    IMPORTING
    ep_table = <fs_data>
    EXCEPTIONS
    generate_subpool_dir_full = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    ENDIF.
    Assign Dyn Table To Field Sumbol
    ASSIGN <fs_data>->* TO <fs_1>.
    ASSIGN <fs_1> TO <fs_2>.
    ASSIGN <fs_1> TO <dyntable>.
    ENDFORM. "MYDYNTABLE
    regards,
    amit m.

  • How to create table columns dynamically ?

    Hi All,
    I am working on an SSRS report that will show sales in the past 5 years. If the user selected to view sales of past 3 years he will only see 3 columns. so How can I create table columns dynamically at run time and how can I make sure that their dimensions
    will adjust to fit the report page size.

    Hi Developer life,
    According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
    As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric  values) in the details,  add  an filter to filter the data base on this column group, but if
    the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
    If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
    Similar threads with details steps for your reference:
    https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings 
    If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
    Any question, please feel free to let me know.
    Best Regards
    Vicky Liu

  • How to create table with row type in smart forms

    How to create table with row type in smart forms with out line type
    please explain me the procedure

    HI,
    A table type describes the structure and functional attributes of an internal table in ABAP. In ABAP programs you can reference a table type TTYP defined in the ABAP Dictionary with the command DATA <inttab> TYPE TTYP. An internal table <inttab> is created in the program with the attributes defined for TTYP in the ABAP Dictionary.
    A table type is defined by:
    its line type, that defines the structure and data type attributes of a line of the internal table
    the options for managing and accessing the data ( access mode) in the internal table
    the key ( key definition and key category) of the internal table
    The row type is defined by directly entering the data type, length and number of decimal places or by referencing a data element, structured type ( structure, table or view) or other table type. Or the row type can be a reference type.
    <b>for more info :</b> http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb366d358411d1829f0000e829fbfe/content.htm
    Internal table
    Regards
    Sudheer

  • Nested table - how to reference internal column without a name??

    Hi guys, I've a question regarding nested tables - Ive searched around and cant find an answer.
    Heres my sample code :
    CREATE OR REPLACE TYPE scotttype AS table of number;
    create table scott1 (col_a varchar2(10), col_b scotttype) nested table col_b store as col_b
    insert into scott1 values ('onetwo',scotttype(1,2))
    insert into scott1 values ('threefour',scotttype(3,4))
    select t1.col_a, column_value col_b
    from scott1 t1, TABLE(t1.col_b) t2
    insert into table(select s.col_b FROM scott1 s WHERE s.col_a = 'onetwo')
    values (5);Ok, so that seems fine.
    If I want to do an update or delete though, how can I reference col_b as the nested table doesnt have a column name ?
    Ie :
    update table(select col_b from scott1 where col_a = 'onetwo') col_b
    set col_b.XXXXX = 6
    where col_b.XXXXX = 5won't work - so what do I put in place of the XXXXX ???
    I'm sure its simple, but I can't find it!
    Thanks all

    SQL> select t1.col_a, column_value col_b
      2  from scott1 t1, TABLE(t1.col_b) t2;
    COL_A           COL_B
    onetwo              1
    onetwo              2
    threefour           3
    threefour           4
    onetwo              5
    SQL> commit;
    Commit complete.
    SQL> update table(select col_b c1 from scott1 where col_a = 'onetwo') t1
      2  set column_value = 6
      3  where column_value= 5;
    1 row updated.
    SQL> commit;
    Commit complete.
    SQL>  select t1.col_a, column_value col_b
      2   from scott1 t1, TABLE(t1.col_b) t2;
    COL_A           COL_B
    onetwo              1
    onetwo              2
    threefour           3
    threefour           4
    onetwo              6
    SQL>

  • How to reference source table in procedure?

    I created a procedure with only 1 sql statement:
    delete * from source_table_name@connector where ...
    I put this procedure in pre-mapping, then validate, pre-deploy are both ok, but when I deployed it, it caused "cannot find table or view" error.
    How to reference source table in the procedure? Thanks.

    anybody helps??? Please.
    Thanks.

  • How do I create a rescue email after I've already created an Apple ID/Account.

    I dont remember my security questions answer, and I understand the whole process of having a Rescue Email but I see that I made the mistake of not making one when I first made this account. I would like to know right now, step by step, how to make a rescue email with a already created account. I don't want a link unless it specifally says how to with an already made account, because I've been through so many threads that have been very unhelpful so far. Please help!

    If you don't have already have rescue email address then you will need to contact iTunes Support or Apple to get the questions reset - you won't be able to add a rescue email address until you can answer 2 of your questions
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then try Apple ID Account Security
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57
    When they've been reset you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312

Maybe you are looking for

  • Macbook pro 8,2, trackpad doesn't do multitouch

    Hi, all.  I have a Macbook pro 8,2 (2011, 15 inch model).  The trackpad works fine as a single-button mouse.  I can move the the cursor, click by pressing down the bottom portion of the trackpad.  However, Synaptics and mtrack don't do anything.  I w

  • PL/SQL web service code in 1013 is schema-specific

    When I generate a Web Service from a pl/sql package in 1013 (ea3), the code will only run against the schema that owns any user-defined SQL types that the package references. These types have synonyms on the database, but to get the code to execute a

  • Extra Space After Size Change, Help!

    I am trying to create a document in Flash, and I had to resize the dimensions of my document from 1920x1280 to 1920x1080. I have reworked all of my elements to fit into this new document size. However, when I preview and export the video, I have extr

  • Trying to edit pdf

    I have followed directions, but once ready to edit  the prompts take me back to purchase product.  help!

  • Alignment of JTableCells

    How can i change the horizontal Alignment of a JTablerow?