When I write out a DDL - no PK:FK constraints

Hi;
When I use Application to write out a .sql file for a schema, it does not write out the PK:FK constraints. Any idea how to get this?
thanks - dave

select
p.constraint_name "Primary or Unique Key", p.owner "PKEY_OWNER", p.table_name "PKEY_TABLENAME"
,f.constraint_name "FKEY_NAME", f.owner "FKEY_OWNER", f.table_name "FKEY_TABLENAME"
from user_constraints p, user_constraints f
where p.constraint_type in ('U','P')
and f.constraint_type(+) = 'R'
and f.r_owner(+) = p.owner
and f.r_constraint_name(+) = p.constraint_name
Or
select
p.constraint_name "Primary or Unique Key", p.owner "PKEY_OWNER", p.table_name "PKEY_TABLENAME"
,f.constraint_name "FKEY_NAME", f.owner "FKEY_OWNER", f.table_name "FKEY_TABLENAME"
from user_constraints p left outer join user_constraints f
on f.r_owner = p.owner
and f.r_constraint_name = p.constraint_name
where p.constraint_type in ('U','P')
and (f.constraint_type = 'R' or f.constraint_name is null)
;

Similar Messages

  • Write out file from java UDF?

    I have a synchronous RFC->XI->HTTP (no BPM) process and need to write out a log of the call details each time it runs.  At first, I tried having multiple receivers (one for HTTP and one for log file) in IB:Config, but received an error that I "cannot have multiple receivers when synchronous call".
    Should I be able to write out a file using java code in a UDF?  Should I do something with a BPM (and if so, any hints)?
    Thanks in advance!

    It deppends on which kind of log you want and how much time you're willing to spend on this.
    If you want to learn BPM and has available time to learn and implement, go for it. It will provide you more flexibility (since you can use any adapter protocol) and is way better for maintenance purposes.
    Your BPM will basically have 4 steps:
    1. A Receiver step in "Open S/A Bridge" mode;
    2. A Sender step in Asynchronous mode (to send the log message to your target system);
    3. A Sender step in Synchronous mode (to send the request to HTTP and receive the response);
    4. A Sender step in "Close S/A Bridge" mode.
    The mapping can be made in three ways:
    1. mapping between RFC and BPM (so your BPM will have abstract interfaces based on HTTP interface); or
    2. mapping between BPM and HTTP (so your BPM will have abstract interfaces based on RFC interface); or
    3. create 2 transformation steps in the BPM, one to map from RFC.request to HTTP.request and the other to map from HTTP.response to RFC.response (I'd not recomend this).
    Regards,
    Henrique.

  • Write out file through servlet

    Hello all,
    I wish to write out a file when a servlet is requested; however the file may be quite large and take a couple of seconds (approx 10) to write out. This results in a ten second delay for the user. I wish to offset this delay so the servlet continues executing returning the response and the file is written out in some form of background process.
    Could someone point me in the right direction?
    Thanks
    John

    Write up a Thread class to do the file writing for you. Your servlet will only start the thread with the required arguments and will generate the response without waiting for the thread to complete.

  • When i write in photoshop cs5 the error

    when i write in photoshop cs5 the error is (img)
    Why this error please help me

    This error is generally caused by a incompatible/incomplete/corrupt font. When you select the type tool, Photoshop reads all of your available fonts to generate a WYSIWYG list. To test if a bad font is the cause of this error, go to Preferences > Type and disable the Font Preview. If the Type tool now works without error, then we know a font is the root issue.
    If on Windows, uninstall (drag font files out of the Fonts folder) and reinstall (drag font files into the Fonts folder) your most recent fonts. The files will be verified on reinstall and most likely one or more will give an error. If on Mac, validate your fonts with Fontbook.

  • How can I get log4j to write out to multiple logs?

    Hi,
    How can I get log4j to write out to multiple logs?
    Pls help me out.
    Thanks

    yawmark wrote:
    Harikesh wrote:
    Thanks@ gimbal2
    for giving valuable url.You should also type your question directly into Google. You might be pleasantly surprised by the results.
    ~Or not... [When tech support goes horribly wrong|http://www.cracked.com/video_16937_when-tech-support-goes-horribly-wrong.html] (cracked.com video)

  • How to debugg a script when the Required out put is like Fax  or email

    Hi this is Durga Prasad i have small doubt in scripts can any one clarify that one plz  normally we will do that one with activating debugger but when a special requirement is like fax or e mail    how we will do that one
    "how to debugg a script when the Required out put is like Fax  or email"
    Thanks in advance
    Durga Prasad.

    Hi
    DEBUG Smartform:
    1) One way to debug smartform is to debug the Function Module of that smartforms.
    If you want to debug particular smartform node that the solution would be,
    insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint.
    So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.
    2) SFTRACE can be used for debugging SMARTFORMS.
    Read More here.
    http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    script
    1). Use Tools - Word Processing - Layout Set (SE71). Enter name of layout set and then Utilities - Activate Debugger.
    It is of no consequence which layoutset you enter when selecting the SAPscript debugger. (Menu path: Tools-Wordprocessing - Forms, Utilities - Activate Debugger) The next layoutset called will invoke the debugger.
    2). Another way to set the SAPScript debugger is to run program RSTXDBUG.
    When you debug Print program it is same as you debug any other ABAP program. While when you debug SAPScript, you actually debug the code ( scripting) you have written SAPScript Form.
    As per ur question there is nothing new with script debugging,
    it is same as normal report debugging...
    SMARTFORMS DEBUGGING
    For smartforms debugging you can do this.
    1. Execute the smartform (execute button in SMARTFORMS transaction)
    2. Take the generated function module and display it in SE80.
    3.Find the smartforms Elements (text elements, windows, code lines, loops) in this and set Soft break points.
    Correct name is SMARTFORM_TRACE. You have lots of options for adequate analysis
    Tcode - SFTRACE
    Re: How to Debug a Smartform
    Debug of smartform and sapscript.
    Debugging SmartForms
    Debugging of a subroutine pool.
    SCRIPT
    There are 2 separate kinds of debugging available when you try to debug scripts.
    1. Debugging the print program : This is the normal debugging we do for our report programs.
    2. Debugging the script itself : You Can debug a SAP Script by activating debugger in two ways:
    a .In SE71->Menu->Utilities->Activate Debugger, then debugger will be get activated and when your print program is executing Script Debugger will be in active and you can proceed with your debugging.
    b. Goto se38-> RSTXDBUG ->Execute this same as going thru in se71-> Menu, now debugger will be activated.
    refer to the link below
    http://www.howforge.com/how-to-debugging-sapscript-form
    Look at the BLOG here, it is well explained
    /people/sudheer.junnuthula2/blog/2007/01/09/script-debugging
    Regards
    Anji

  • Script to take out schema DDL

    Hi,
    I'm looking for a script that takes a given schema from a database into a file, just the DDL and not the data, and then recreate it anywhere.
    It should write i.e. grants, creates (table, synonym, ...) and the create user.
    Is there any "oficial" script to get that?
    Thanks

    Hi..
    I'm using 9i and 10g (better for this one), and the aim is to take out that DDL into a readable text script, where I can see the sentences (create user, table, grants, ...).Just like the exp utility but in a editable text file(s).>
    You can have
    set pagesize 0
    set long 90000
    select DBMS_METADATA.GET_DDL('TABLE',object_name,'&&owner') from dba_objects where owner=upper('&&owner') and object_type ='TABLE' ;
      ---> for INDEX,VIEW,SYNONYMNS etc replace the object_type and the 1st entry in the bracket.For example in
    select DBMS_METADATA.GET_DDL('INDEX',object_name,'&&owner') from dba_objects where owner=upper('&&owner') and object_type ='INDEX' ;
    select dbms_metadata.get_ddl('USER','&OWNER')  from dual;
    select dbms_metadata.get_granted_ddl('ROLE_GRANT','&&OWNER')  from dual;
    select dbms_metadata.get_granted_ddl('SYSTEM_GRANT','&&OWNER') from dual;
    select dbms_metadata.get_granted_ddl('OBJECT_GRANT','&&OWNER') from dual;HTH
    Anand

  • BufferedWriter(Writer out)  and flush()

    BufferedWriter(Writer out)
    correct me if i'm wrong, but when i use BufferedWriter(Writer out) as in
    pout = new PrintWriter(new BufferedWriter(new FileWriter("log.txt");
    i do not have to call flush().
    it will automatically call flush when the buffer is 512 is that correct ?
    or do i have to still call flush to make sure the contents come out.
    Stephen

    I'm using jav 1.4.
    Notice the code below:
    I get a null exception when trying to write() a second time with the PrintWriter instance .
    Here is the error
    Tracer constructor works
    getLogFileDate() = Jun-14--2002-8.17.42-AM
    getLogFileDate() = Jun-14--2002-8.17.42-AM
    main method starts
    main method successfully gets Tracer instance tt. com.myinteractivesite.Tracer@888759
    Exception in thread "main" java.lang.NullPointerException
    at com.myinteractivesite.Tracer.log(Tracer.java:29)
    at com.myinteractivesite.Tracer.main(Tracer.java:72)
    Why do I get this null exception when trying to write a second time using the printwriter in the log() method ?
    * Tracer.class logs items according to the following criteria:
    * @since June 2002
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.text.*;
    class Tracer{
         public static void log(int traceLevel, String message, Object value)
              pout.write(getLogFileDate(new Date()) +" >" + message + " value = " + value.toString());
         public static void log(int traceLevel, String message )
              pout.write("HI HOW ARE YOU " ) ;
              pout.flush();
         //public static accessor method
         public static Tracer getTracerInstance()
              return tracerInstance;
         private static String getLogFileDate(Date d )
              String s = df.format(d);
              String s1= s.replace(',','-');
              String s2= s1.replace(' ','-');
              String s3= s2.replace(':','.');
              System.out.println("getLogFileDate() = " + s3 ) ;
              return s3;
         //private instance
         private Tracer(){
              System.out.println("Tracer constructor works");
              df = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM);
              date                    = new java.util.Date();
              try{
              pout = new PrintWriter(new BufferedWriter(new FileWriter("Crawler_log"+getLogFileDate(new Date())+".txt", true)));
              pout.write("**************** New Log File Created "+ getLogFileDate(new Date()) +"****************");
              pout.flush();
              }catch (IOException e){
              System.out.println("**********THERE WAS A CRITICAL ERROR GETTING TRACER SINGLETON INITIALIZED. APPLICATION WILL STOP EXECUTION. ******* ");
         public static void main(String[] argz){
         System.out.println("main method starts ");
         Tracer tt = Tracer.getTracerInstance();
         System.out.println("main method successfully gets Tracer instance tt. "+ tt.toString());
         //the next method is where it fails - on pout.write() of log method. Why ?
         tt.log(1, "HIGH PRIORITY");
         System.out.println("main method ends ");
         //private static reference
         private static Tracer tracerInstance = new Tracer();
         private static Date date     = null;
         private static PrintWriter pout = null;
         public static DateFormat df = null;
    }

  • How do I shut off receiving phone and text messages when I a out of the country but instill want to send and receive emails emails

    How do I shut off receiving phone and text messages when I am out of the country.  I still want to be able to email and receive email on wifi

    Enable Airplane mode followed by turning on wi-fi access.

  • When I close out a website it goes to my desk top and then tells me firefox is running and I have to shut down the system

    when I close out a website it goes to my desk top and then tells me firefox is already running and I have to shut down my system and bring it back up and wait to log back in. It's quite frustrating.

    Try Ctrl>ALT>DEL then click Start Task Manager, then find the process firefox.exe, then click end program, then try opening Firefox again. <!-- click applications > new task.... > explorer.exe --> done! If that doesn't work, then try re-installing Firefox or going to this link to safe mode area and click continue to safe mode and then try and exit, if this problem still occurs then disable extensions and plugins

  • I am using an iPad and iPhone and have exchange as my email. Both will only collect mails when I am in the wifi of the office, and not when I am out and about. I can't seem to get a fix for it.

    I am using an iPad and iPhone and have exchange as my email. Both will only collect mails when I am in the wifi of the office, and not when I am out and about. I can't seem to get a fix for it.

    This - https://support.mozilla.org/en-US/kb/how-make-web-links-open-firefox-default - didn't work?

  • We had a MacBook Pro stolen from our home when we were out of town and I am pretty sure we never activated the LoJack type of function on it not sure if its called lojack but you get what I am saying is there any way we can activate such  hardware/app now

    to
    We had a MacBook Pro stolen from our home when we were out of town and I am pretty sure we never activated the LoJack type of function on it not sure if its called lojack but you get what I am saying is there any way we can activate such  hardware/app now so we can possibly recover our laptop? Any one who can point us in the right direction that would be great and we would be very grateful. Thanks So Much

    Lojack for laptops - if that is the product you purchased and installed, you will need to read the user manual or contact the manufacturer as it is 3rd party.  You did file a police report right?

  • I have copied my CDs into iTunes  (currently running v11) to play on my iPod.  I have now bought a non Apple mp3 player to use when I am out running.  How can I copy the many tracks I want from iTunes onto the new player?

    I have copied my CDs into iTunes  (currently running v11) to play on my iPod.  I have now bought a non Apple mp3 player to use when I am out running.  How can I copy the many tracks I want from iTunes onto the new player?
    Thanks

    I tried Notpod but can't get it to work.  Part of the problem, I suspect, is that I can't create a folder on my player (a SanDisk Clip+).  I also can't do this in Windows Explorer.  Whilst I can see the Clip+ in Explorer, the option to create a new folder isn't there.
    The error mesag I get in Notpod is:
    "Unhandled exception has occurred in your application.  If you click Continue, the application will ignore this error and attempt to continue.  If you click Quit the application will close immediately.
    InvalidArgument=Value of '0' is not valid for 'SelctedIndex'. Parameter name: SelectedIndex"
    Then, when I plug the Clip+ into a USB port, iTunes thinks it is my iPad - which is because, I guess, Notpod hasn't worked.
    I can drag and drop files from the Music folder where my iTunes tracks are stored onto the Clip+ and they get converted but I'd rather synchronise a Playlist from iTunes if I can.
    Thanks anyone who can help

  • The unlocked IPhone 4S models will not be available until November, Why is that? Why would Apple do that? I should be able to buy a factory unlocked Apple iPhone 4S when it comes out! Why is my interests being put last and Sprint, Verizon

    The unlocked IPhone 4S models will not be available until November, Why is that? Why would Apple do that? I should be able to buy a factory unlocked Apple iPhone 4S when it comes out! I travel all over the world, and so that is why I need one like that. It is unfair to the consumer, and frankly turning away customers like myself willing to pay high dollar to Apple for their product, who can I speak with to complain about this, because I know their are factory unlocked iPhone 4S' sitting in a warehouse somewhere just waiting to be shipped, and I want one.  I know why, cause Apple signed contracts with each carrier so the carrier could increase their sales making customers sign 2 year contracts, I get it, I own my own business, but the delay of releasing factory unlocked ones is just not right and I should be able to buy one without having to buy it over in the UK where it is unlocked when it comes out right away, I should be able to buy it in my own country!  These business practices we practice in the US need to stop, their is a demand that needs to be met with consumers like myself who don't need subsidized iPhone's with 2 year contracts with carriers and don't mine paying full price for an unlocked one, it is unethical in a sense, forcing the customer to buy it with a carrier contract and NOT giving the customer the option to buy it full price and own it themselves, OR, making the consumer wait a month for that option to be available.  THEY SHOULD BE RELEASED AT THE SAME TIME!!!!!!  THAT IS THE RIGHT THING TO DO!!!!!!
    Apple can contact me and I will proudly pay for one.  But making me wait a month for an unlocked one, puts AT&T, Sprint & Verizon's interests before mine, and that is not right, for it is MY money that keeps you guys in business, so my best interests should come first!!!!!!!!!!!!!!!!!!!

    I understand your frustration, but when any form of rationing is required you have to prioritise. The number of unlocked vs packaged phones will be quite small and the number of unlocked buyers wishing to upgrade immediately will be smaller still. Against this you have the corporations sharing $billions between them.
    It would, you're correct, have been fairer to release all at the same time, but fairer doesn't come into it: it's business.

  • I have 2 gamecenters under 1 Apple ID and password, and when I sign out of gamecenter and try to sign into my other gamecenter it won't let me and it just goes to the one I was usin, PLEASE HELP!

    I have 2 gamecenter accounts under 1 Apple ID and password, and when I sign out of gamecenter and try to sign into the other it just logs me into the one I was usin before, please help

    Try:
    iOS: Troubleshooting FaceTime and iMessage activation

Maybe you are looking for

  • Limitation on number of custom attributes visible

    Hi, I am using OIM 11g. All the custom attributes are visible on the create user form. I am able to see only 8 custom attributes on the modify user form. The visible property of all the attributes is set to true. I cannot modify the attribute once it

  • Need to get the Mail attachment name as it is to the receiver file adapter

    I am doing a Mail to File scenario. I need to get the attachment from the mail and store it on the file server. I am using the PayloadSwap bean in the sender mail adapter. My requirement is to carry forward the attachement name as it is to the receiv

  • Smartform in LT31 Transfer Order Printing

    Hi, I have designed a smartform in LT31 Transfer Order Printing for SU Contents . I have to inclued in it user exit MWMD0001. I have an requirement in abap and I need more details on what exactly to modify in the program. What modifications should I

  • Itunes store takes up to an hour to load front page

    we just got a new mac and itunes takes up to an hour to load the front page of the store, when it finally does load if you click on tv shows (all I have done so far) it takes over an hour and by then I just gave up. Our internet connection is super f

  • Exactly what is input power for DAQPad-6015?

    If we include the DAQPad-6015 in our system, what power do we connect it to? Using what type of cable or connector?