How to recreate a table that was created 3 years earlier?

Guru's, a co-worker, before they left, created several tables with indexes, foreign keys, and constraints.
Is there any way to re-create the table like that person did?
Example if a user typed this in 3 years ago, is there a way to recreate it today?
=============
CREATE TABLE products
( product_id numeric(10) not null,
  supplier_id numeric(10) not null,
  supplier_name varchar2(50) not null,
  supplier_phone varchar2(20),
  CONSTRAINT fk_supplier_comp
    FOREIGN KEY (supplier_id, supplier_name)
    REFERENCES supplier(supplier_id, supplier_name)
=======================
I'm using SQL Developer.
Version:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
PL/SQL Release 10.2.0.4.0 - Production
"CORE    10.2.0.4.0    Production"
TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
TIA.
Steve42

Steve42 wrote:
Guru's, a co-worker, before they left, created several tables with indexes, foreign keys, and constraints.
Is there any way to re-create the table like that person did?
Example if a user typed this in 3 years ago, is there a way to recreate it today?
=============
CREATE TABLE products
( product_id numeric(10) not null,
  supplier_id numeric(10) not null,
  supplier_name varchar2(50) not null,
  supplier_phone varchar2(20),
  CONSTRAINT fk_supplier_comp
    FOREIGN KEY (supplier_id, supplier_name)
    REFERENCES supplier(supplier_id, supplier_name)
No - there is no way to guarantee the production of the EXACT DDL that was orginally used.
The FK constraint in your example was provided 'in-line' as part of the CREATE TABLE statement. But after the statement is executed the 'table' metadata and the FK metadata will not be stored together within Oracle.
If you use DBMS_METADATA to extract the table DDL it will NOT include the FK constraint. You would need to extract the REF_CONSTRAINT metadata for the table.
The same comments apply to primary keys.

Similar Messages

  • Delete table that was created via RSCRM_BAPI

    Gurus,
    What is the easiest way to delete a table that was created using RSCRM_BAPI.  We have replace the table with an ODS and now want to remove RSCRM_BAPI's and the tables they created.

    Hi,
    Come across this thread when google the same.
    I've found a FM to delete the extract with the data, which is RSCRMBW_EX_DELETE. You may find this useful.
    Thanks,
    Anfernee

  • I entered new fields in a form that was created last year to update it.  However, now when I view the responses, they are listed as Column 1, Column 5, etc.  It doesn't show a label for the actual field when I view the responses.  Can you please help?

    I entered new fields in a form that was created last year to update it.  However, now when I view the responses, the headings are listed as Column 1, Column 5, etc. rather than the name of the heading.  Can you please help?

    Hi Mike,
    CRSE is an OEM Product and for use with a custom application they have written. Unfortunately we don't their reports or how they are connecting, it would appear they were originally built off a SQL and then set to a Dataset in the app or they could be adding the data source at runtime. Lots of variations and without access to the source code to see what they are doing not much we can help you with.
    You need to contact the OEM Partner for help in resolving this and find out what you can and need to do to update your SP and work with their canned reports,
    Thank you
    Don

  • A Table that was created at Run time. A Row Properly Deleted from Table Is Still Present on Form with BindingNavigator

    Hello
    I have a dataset that was created at design time
    but - after I run the app, it randomly creates a table based on The Users name
    since I do not know the users name before had, the table is not part of my existing dataset
    (I actually used an insert into sql nonquery to just make this table a copy of the masterUserTable)
    Now - I have a binding navigator on my form, that is originally bound to masterUserTable, but my goal is to make it bound to the users table (let's say GabrielUserTable)
    I thought I did so with this code: 
            'TODO: This line of code loads data into the 'MyLearningDBDataSet.masterUserTable' table. You can move, or remove it, as needed.
            Me.MyMainDBTableAdapter.Fill(Me.MyLearningDBDataSet.masterUserTable)
            Dim ThisNewVariable As String = MyUserNameIs & "UserTable"
            Dim ThisNewTableName As New DataTable
            Me.MyLearningDBDataSet.masterUserTable.TableName = ThisNewVariable
            Me.MyMainDBTableAdapter.Fill(Me.MyLearningDBDataSet.masterUserTable)
    that appeared to do the trick  (but if it is incorrect please advice on the proper way to add a table made at runtime to a users existing datset)
    Else where in my code  I successfully execute the following NonQuery :
            SqlString= "DELETE FROM " & MyUserNameIs & "UserTable" & vbCrLf &
                "WHERE vState='" & txtStateInfo.Text & "';"
    I check in Visual Studio 2013 that the row was deleted from the "GabrielUserTable"  (Gabriel is the current value of MyUserNameIs) by using the Server Explorer and right clicking
    on the table and choosing show talbe data
    But the MyMainDBBindingNavigator is still showing the item I deleted.
    So after searching for answers - I created a new button for testing and added the following code to test if it would work
            Me.Validate()
            Me.MyMainDBBindingSource.EndEdit()
            Me.TableAdapterManager.UpdateAll(Me.MyLearningDBDataSet)
    but the data is still shwoing after deleting it with my NonQuery 
    Please Help!

    Hi genterprise,
    >> Now - I have a binding navigator on my form, that is originally bound to masterUserTable, but my goal is to make it bound to the users table (let's say GabrielUserTable)
    In my option, if you want to rebind the users table to the navigator, you need to set the BindingNavigator.BindingSource. Based on your description, it seems that you did not reset the datasoure of the MyMainDBBindingNavigator. It was the original datasource
    of the masterUserTable. For more details about BindingNavigator.BindingSource Property. You could refer the link below:
    # BindingNavigator.BindingSource Property
    https://msdn.microsoft.com/en-us/library/system.windows.forms.bindingnavigator.bindingsource%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • How to get the vendor number that was created using xk01..?

    Suppose i am creating a vendor with all the information by using a bdc program.
    In the same program if i want to go to the XK02 of that particular vendor that was created recently....how it possible..?
    Means how to get that particular vendor number that was created recently...?

    Hi...
    You Can Get the Vendor number after Calling the Transaction 'XK01' as below.
    <b>Declare a table for Collecting messages :</b>
    DATA: T_MSG TYPE TABLE OF BDCMSGCOLL,
              WA_MSG TYPE  BDCMSGCOLL.
    <b>Then Call Transaction Statment:</b>
    CALL TRANSACTION 'XK01'
               USING T_BDCDATA
               MODE 'N'
               MESSAGES INTO t_msg.
    if sy-subrc = 0.
      READ TABLE T_MSG INTO WA_MSG WITH MSGTYP = 'S'.
                                                                    MSGID = 'F2'
                                                                    MSGNR =  '175'.
    <b>Note: Bcoz the XK01 will issue this message</b>
      if sy-subrc = 0.
      write: / WA_MSG-MSGV1.  "This will contrain Vendor Number
    endif.
    endif.
    And you can also Try the Other method i.e. after the Call transaction statement
    <b> GET PARAMETER ID 'LIF' field V_LIFNR.
      WRITE:/ V_LIFNR.</b>
    Reward if Helpful.

  • I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?

    I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?
    I have tried back ups and  restoring, resetting, and even updating the pages app. And nothing has worked.

    I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?
    I have tried back ups and  restoring, resetting, and even updating the pages app. And nothing has worked.

  • Is there a way to save a table in Photoshop (that was created in InDesign) without fuzzy text?

    I am trying to save a table in Photoshop that was created in InDesign for web use. When I save it as a png (can't save as pdf or jpeg due to limitations with our company's website), the text appears fuzzy (pixelated?). Is this because the table is getting flattened/rasterized?
    Is there a different adobe product that can be used to avoid this happening? The company who has built our website has a style editor that has limited capabilities. We have tried using the website's editor to create the tables; however, the editor lacks the flexibilty and user-friendliness that comes with InDesign. That is why we opted to create the tables in Indesign.
    In order to upload the table into the editor, the file must be saved as a png, so that is why we are creating in InDesign and then saving the table in Photoshop.
    Any ideas?
    Thank you for the help!
    Tracy

    Thanks for your help!
    Just to clarify, are you suggesting going through the export process while in Indesign? I did that and saved the table as an EPS file, then proceeded to open it, trim, and save as png in Photoshop. I noticed it lost it's white background when I reopened it in Photoshop; the table appeared with a transparent background (which isn't a big deal). When I uploaded the png in the website it doesn't appear to be as blurry, so that did help.
    Thank you for the suggestion!

  • How do I edit a merged clip in Audition, that was created in premiere to correct the synchronisation, and have it all updated to the premiere clip?

    Hello,
    How do I edit a merged clip in Audition, that was created in premiere to correct the synchronisation, and have it all updated to the premiere clip?
    I have tried several tutorials but these either:
    - show correction in premiere sequence (which is not practical; given the huge number of files we have)
    - or show the editing in audition of a sequence, not the clip.
    We have started merging audio and video (removing the original audio during merge) but some of the merged clips are out of sync, so we need to correct manually, BUT we want to correct the merged clip, which may or may not end up being used, so we do not want to take it to the sequence as all we are doing is prepare the synced files for editing.
    Any idea how I can correct the synchronisation in Audition?, when I right click on clip and select "Edit in Adobe Audition" I get a list of files but not a multitrack session where I can see my video and audio tracks.

    if premiere pro doesn't sync your footage properly, and you have a huge number of files, you may want to look at pluraleyes.  there is a demo, and if it works properly, it would save you time to have it done right the first time, instead of tracking down random merged clips with bad sync.
    premiere will either export a complete sequence or "edit clip in audition". the edit clip will create a copy of the original audio and open that in audition. there is no dynamic link, its just an audio file open in two programs at the same time.  since there is no dynamic link, its not possible to bring merged clips into audition.
    Adobe Premiere Pro Help | Synchronizing audio and video with Merge Clips
    Once created, the merged clip cannot be re-synchronized, or adjusted. You must make a new merged clip.
    Merged clip audio results in mono track audio only.Final Cut Pro XML and AAF interchange formats are not supported.
    this doesn't give me much hope that audition or any other adobe program outside of premiere will help you fix the problem merged clips.

  • Can't seem to change the Document Properties Advanced Reading Options in a Form that was created in Adobe LiveCycle. This option has been "greyed" out - anyone know how to update this to English so I can pass Accessibility Testing?

    Can't seem to change the Document Properties > Advanced > Reading Options in a Form that was created in Adobe LiveCycle. This option has been "greyed" out - anyone know how to update this to English so I can pass Accessibility Testing?

    LiveCycle forms use a very different approach to create a PDF form than Acrobat and that approach makes many features for processing PDFs non-functional.
    You might want to ask this question in one of the LiveCycle product forums.

  • Why do vector lines appear different in my Photoshop document compared to the PDF that was created using "Scripts Layer Comps to PDF"? And how do I get them to look the same?

    Why do vector lines appear different in my Photoshop document compared to the PDF that was created using "Scripts > Layer Comps to PDF"? And how do I get them to look the same?

    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand, such as your platform (Mac or Win), exact versions of your OS, of Photoshop and of Bridge, machine specs, what troubleshooting steps you have taken so far, what error message(s) you receive, if having issues opening raw files also the exact camera make and model that generated them, etc., someone may be able to help you.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • How can I add the status and profile picture features on an account that was created before iOS 5?

    How can I add the status and profile picture features on an account that was created before iOS 5?

    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?

  • How do I keep a document that was created on another computer? I have the link.

    How do I keep a document that was created on another computer. I have the link. https://adobeformscentral.com/?f=Mv9KGJZhLFi47Q-H63fajA

    Hi,
    The link you provided is for the HTML fillable form. Is that what you are trying to download?
    FormsCentral form files are stored on the FormsCentral servers. If you are the author or a co-author of the form you can access it from any machine by logging into FormsCentral. If you aren't the author or a co-author of the form you will need to contact the author and have them share the form with your FormsCentral account. The following FAQ explains how to share forms with other users:
    http://forums.adobe.com/docs/DOC-2462
    Regards,
    Brian

  • How to find the TCODE that is created for the table maintanance generator

    Hi ,
    How to find the TCODE that is created for the table maintanance generator of particular table,if we only know the table name.
    Regards
    Ramakrishna L

    Hello,
    I try it this way
    1. Goto SE16 --> enter table TSTCP.
    2. In the selection-screen displayed, enter
    PARAM = *<ZTABNAME>*
    You will get the t-code for the TMG.
    BR,
    Suhas
    PS: Are you sure a t-code has been created for this TMG ?

  • How does one attach other documents to a fillable form that was created?

    How does one attach other documents to a fillable form that was created?

    Are you asking about a web form or a PDF form? PDF forms don't support this, but for a web form you'd use File Attachment type field.

  • How to include a .lvlib in a build that was created using a custom .dll

    I am trying to build an executable in LV2010 that uses a .lvlib that was created using a .dll from Keyence. I have added the .lvlib to the source files as "Always Included" and I have also added all of the .vi files of the library to "Always Included." I still get the error saying "Missing External Function" when running the program. The executable seems to open fine on the development computer but not on a secondary computer. Any ideas?
    Solved!
    Go to Solution.

    ...I assumed too quickly that the problem was resolved. By specifying the path I was actually able to open the executable after installing but none of the .dll functions worked. I noticed that when I specified a path on the diagram, the .dll was no longer included in the dependencies and was no longer included in the build. I guess this would explain why none of the functions were working. I copied the .dll over to the path specified on the diagram and it still did not function.
    This brings me back to the original problem I was facing. I actually removed the .lvlib. I replaced all of the library vi references with the Call Library Function and deselected the "Specify path on diagram" Boolean. When I do this, the build includes the .dll in the dependencies list and it includes the .dll file in the destination folder of the install. However, when running the executable I get a list of errors that read, "Missing external function …” I have attached an image of this error. This is the same error that occurred when I was using the library, but I thought maybe the library was the cause of the problem, which is why I used the Call Library Function instead.
    *I have tried adding the .dll to the support files and I receive the same error when trying to run the executable.
    *I have tried adding the .dll to the support files and making it an “always include” in the installer properties under source files. This returns the same error.
    I’m really not sure where to go from here. Any help is greatly appreciated!
    Attachments:
    Call Library Function.jpg ‏56 KB
    Error.JPG ‏23 KB

Maybe you are looking for

  • New Machine: Application no longer exports Crystal Reports

    I have a web application that was written in C#. We build and debug the application locally on Windows XP machines. Recently we got new machines, which were loaded with XP, but now with service pack 3 instead of service pack 2. On the new machine, I

  • EAP-TLS Questions....

    Hi all, My setup is like this.. Laptop - LWAPP - WLC - ACS - AD I m using CA to generate certificate.. I have configured EAP-TLS on WLC & ACS SE. Everything is working fine ie when i issue a certificate from CA on my AD login name & install that cert

  • Change in A/C entry in stock transfer process..

    Dear All, In stock transfer process in std sap following are the a/c entries generated during goods movement Movement type - 641 Stock account supplying plant - credit Stock account receiving plant - Debit And for movement  type 101 there is no a/c e

  • Adobe Premiere Pro Help | Importing still images

    This question was posted in response to the following article: http://helpx.adobe.com/premiere-pro/using/importing-still-images.html

  • !* Message Notification Error *!

    Dear Fellow Nokia Users I need help, for some reason my Nokia N97 Mini doesnt tell me when I have a new message, nor vibrate. I always have to go to 'Messaging' to see the red star by Inbox to see if one is there. Before I never had this problem but