command-line comparison tool to compare the schemas of the db?

We would like to have the rest of the process where we have A server with an existing database with all tables (say there db version of Figure 3). We want to do the following
1 export all the information about the tables, columns, constraints, sequences from a file or something
2 blow the database
3 re-create the database
4. have you Hibernate running with create and it will create all tables and constraints and sequences
5. export all the information of this new scheme (version 4) to another file or something
6. compare steps 1 and 5.

Can what tools I use to do step 1, 5 and 6? It's all automated, so I need some command line tools. How can I do this? I'm quite new to oracle and new on schema comparison as well.

Thank you
Dean

You don't mention a version of Oracle, so I'll assume something relatively new, 10.2 or 11.1.

An option that would be relatively simple to automate would be to use the DBMS_METADATA package to generate the DDL for each object in the schema (I assume that you're not really blow away the entire base Oracle, just the particular schema where you deploy your application tables). SQL * more script that covered objects in the schema, calling DBMS_METADATA, queue the results to a flat file would be all that is necessary. Assuming that you do this before and after reconstruction, you should be able to use your favorite diff command line tool to generate the differences between the two.

Another option would be to simply save the data in the data dictionary (e.g., USER_CONSTRAINTS USER_TABLES USER_INDEXES, USER_TAB_COLS, USER_CONSTRAINTS, etc.) and compare it to the actual data dictionary after the reconstruction (ignoring statistics columns that are supposed to change).

Oracle has also a pack of change management (additional cost) which has an interface SQL that you could probably use. But I'm guessing that this is not what you are looking for.

Justin

Tags: Database

Similar Questions

  • Y at - it a command line option that overrides to the "show my windows and tabs from last time"?

    One of my friends sometimes runs into a web page which causes him problems. To be sure, it must note the URL and submit a bug report, if a page causes a browser crash, but in any case, although by default, he likes the browser to restore windows and tabs from the previous session, in the case of a heinous webpage, you * don't * want that to happen. I hope that I can set up an icon so he can click on that starts the browser on its homepage instead of restore the tabs and windows when it gets into trouble.

    The value of the integer pref browser.sessionstore.max_resumed_crashes to 0 on the subject: config page in order to get the about: sessionrestore page immediately with the first reboot after a failure has occurred or the Task Manager was used for the closing of Firefox.

    Which allows to deselect the tabs that you do not want to reopen, but will reopen the other tabs.

    See:

  • SQL * call command line loader with spaces in the path

    I need to call a remote file and try this:
    sqlldr USER/password@SERVER \\servername\drivename\Folder Name Messing Me Up\PLACE\Programs\QC2\Data\StandardRawFileRAW.ctl
    He always tells me that the file is not found, but it is there! How should I write it so that it can find the file?

    Thank you very much!

    Wrap your name in path in single quotes

    sqlldr USER/password@SERVER '\\servername\drivename\Folder Name Messing Me Up\PLACE\Programs\QC2\Data\StandardRawFileRAW.ctl'
    

    Kind regards
    Phiri

  • The tools of command line for applications Android download problem

    Hello

    I can't download 'Tools of command line for Android applications' Web of BlackBerry site. When I click on the blue download button with label 'Tools command line for Android applications' in the Tools section, browser updates the website tools and nothing more.

    ARO

    Maciek

    Hi again,

    Problem solved. A few hours later, I downloaded tools successfully.

    ARO

    Maciek

  • WinRAR command line tools do not check an executable Windows Server 2012

    Hi all

    I have developed a VI in LabVIEW 8.6 using WinRAR command line tools (passed in the Exec.vi system) to archive data that takes place on 5 different computers on a network and stores on a server .rar files.  Executable file of the VI works perfectly on my computer (WinXP) development.  The data from each of the 5 machines are archived and .rar files are stored on the server.  However, when I move the executable on the server where the .rar files will be stored and run the executable file, the command window flashes on the screen as if WinRAR commands are running, but no data is archived on the server.  No errors are passed out of the Exec.vi of the system.  The server's operating system is Windows Server 2012 and I placed the Rar and UnRAR .exe in the folder system32 on the server.  The server firewall is disabled, and he is able to explore at the location of the data to arhived.  The server is logged in as a domain administrator account.

    Here is an example of one of the commands in command line that I spend in the Exec.vi system:

    cmd /c rar a - m5 \\selsacn11\viscom\selsvis01\15\07\20.rar \\selsvis01\Rep0\Archiv\15\07\20

    When I manually type this command in the command line on the server, the data is stored properly.  The problem occurs when I run the executable on the server.

    I tried to work around the problem by creating a batch of files containing the command above, then using the Exec.vi system to call this batch file.  Yet once, when I manually run the batch file, it works correctly, but when Exec.vi system in a LabVIEW executable file runs the command on the server file, I get the same result as described above - no data are archived on the server.  This batch file works on my development computer and on my laptop to the company.

    My only thought is that there is a problem with the access rights.  So far, the executable works fine on an older server (Windows Server 2003), the development computer (Win XP) and my laptop (Win7) company, but the executable archive not the data on the Server 2012 server or on another computer running WIndows 7.  I have all these machines connected under the same domain administrator account, but COMPUTER networks are certainly above my head, so I wanted to check here if anyone has seen this problem with WinRAR or the Exec.vi system.

    Thanks for any info!

    Success!

    Darin, I took your suggestions and after some more fighting with him, I have an error Code 2 on the Exec.vi system.  This led me in search of the forums where I fell on the following:

    http://forums.NI.com/T5/LabVIEW/problem-using-quot-MSG-quot-command-with-quot-system-exec-VI/m-p/153...

    Of course, all the machines that had been able to run the executable file are 32-bit.  All the machines that could not run the executable are a 64 bit system.  I placed the Rar.exe in the C:\Windows\SysWOW64 folder on the server and it works exactly as expected today.

    I fought with this for weeks, so I'm a little disappointed that it was something so simple, but I'm very happy to have finally work!

    Thank you all very much for the help!

  • The file of the bar - descriptor.xml (and make the application of command line)

    I made a game with air and it is online for sale on Android and iOS. It is somewhat popular and I thought to put up on Blackberry for quite awhile now and with the Port of soon-to-start-A-Thon, this seems to be a great time to finally make it.

    BlackBerry is not very common that here where I live in Sweden, however it still looks like an interesting with a potential platform if I want to get the trip. Unfortunately I don't own a camera myself so I'll use the Simulator. With some graphic problems with the simulator when running in mode BB10DevAlpha (icons does not appear right) and the Simulator is very slow when running in mode BB10DevAlphaSafe (chart appears on the right, but it seems that updating them requires more CPU my computer are available).

    The game is built using nothing other than Adobe Flash Professional CS6 and a bunch of command line tools to build the package and sign. I've only got an old computer with Windows XP now since the death of my main PC, all at the time and since the Port-A-Thon is just a few days I do with what I got.

    Firstly I understand that only AIR 3.1 is supported by Blackberry 10, so I use the old AIR SDK 3.1 to create a SWF (flash) file.

    What I really need to do should be used in the exported SWF file of the game, then use the command line tools provided by RIM to build the package, right?

    Except that I did not count on bar - descriptor.xml to be so difficult to understand.

    I was brought to the documentation here: https://developer.blackberry.com/air/documentation/bb10/bar-descriptor_config_file.html

    It says Adobe AIR at the top, the platform selected is Blackberry 10 and the title says "bar-descriptor configuration file", so it must be in the right place!

    I start by trying the 'bar-descriptor configuration example file"on this page:

    ===========================================================



      
          None
          fake
      

     
      
       Name of the author
     
      
       gXXXxXXx ##XxXxXxxxXxXX #xxx
     
      
       Core.Games
     
      
       Icon.PNG
     
      
       HelloWorld - splash.png
     
      
       read_geolocation
       use_camera
     
      
       1

    ===========================================================

    Of course during the test I replaced a few things in the example above with the correct filenames for images etc, I just copied the example of right - off this time to you guys show what I mean.

    Firstly, I extract "blackberry-tablets-sdk - 3.0.0" in a folder on the disc, then I make sure as a full path to the "bin" in the SDK folder inside the path on the OS environment variable.

    Then I read on "Applications of Test using the command line": https://developer.blackberry.com/air/documentation/bb10/testing_your_application_cmd_ms_2010851_11.h...

    Now I run:

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf myappnameicon86.png bg splashscreen1024.png - device 192.168.8.128

    Note that "bg" is a folder with 500 images that must be accessible from the app. I hope that I can just add the folder like this and not type a path to each image file...

    What I get (in lib\adt.jar via the bat file):

    error 101: Namespace is missing
    Error: Validation of the AIR is not

    Okay, so the example did not straight on the box.

    Now, I've read all paragraphs in the first URL I linked above ("the bar-descriptor configuration file"). I start my own XML file and make sure to include everything that is marked as "necessary". That's what I'm left with:

    ===========================================================



        MyCompany
        
            
            com.mydomain.myappname
            My App name
            3.0.0
            
                splashscreen1024.PNG
            

            1.5.0
        

        run_native
        
            application
            
                bb.action.VIEW
                application/octet-stream
            

        

    ===========================================================

    I have no idea of what concerns the block whole call target, but it took, so he must be there.

    Now I launch (notice that myappnameicon86.png is gone since no icon is mentioned in the above XML code, it is not mandatory):

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf bg splashscreen1024.png - device 192.168.8.128

    Yet once, I get:

    error 101: Namespace is missing
    Error: Validation of the AIR is not

    Frustrated I get autour on the forums for answers, because the official documentation is nowhere getting me.

    I'm left with this:

    ===========================================================


    http://ns.Adobe.com/air/application/3.1">
        com.mydomain.myappname
        1.5.0
        
        My App name
        
        My App name
        
        
            myappname.swf
            standard
            fake
            true
            true
            landscape
            GPU
            fake
        

        
            myappnameicon36.PNG
            myappnameicon48.PNG
            myappnameicon72.PNG
        

        fake
        fake
        
            qnx.fuse.ui.skins.QNXDevice
            qnx.fuse.ui.skins.QNXNetwork
            qnx.fuse.ui.skins.QNXSensors

            qnx.fuse.ui.skins.QNXSkins
        

    ===========================================================

    Looks like the XML code that I use when I build for Android.

    First of all it doesn't have the tag root of qnx, but also nothing of the icons are of the required size (86 x 86). The tag required splashscreens and invoke target is also absent, to name a few. No idea of what the entire block of 'extensions' really do.

    Surely, this does not work:

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf QNXDevice.ane QNXNetwork.ane QNXSensors.ane QNXSkins.ane myappnameicon36.png myappnameicon48.png myappnameicon72.png bg-device 192.168.8.128

    Success in building the package BAR to my infinite surprise!

    He even managed to install on the Simulator. An icon for the game. However when it auto-couru the app went into landscape, thought for a second and then crashed (or you leave?) without a message.

    Perhaps because the required qnx tag was missing in the XML?
    Perhaps because images in the bg file could not be loaded?
    Perhaps because he had no permission to keep screen from dimming?

    I have no idea. I tried to add XML to qnx at the address previous to the bar - descriptor.xml, I thought that maybe he needed both the qnx block for when you run the application and the application block for when packaging. But now, he has complained of something like XML is not not clean ("' fatal error: markup in the document following the root element must be well-formed." ").

    So he came to it, I have to ask for help if I ever make the deadline of the Port-A-Thon.

    (1) how am I supposed to write the bar - descriptor.xml?
    (2) what command line starting by "blackberry - airpackager.bat" is OK to use?
    (3) all I have to do is build the SWF using Adobe Flash Professional CS6 and then pack it using the Blackberry SDK, right?

    First of all, there are two xml files that you need.

    One is called the manifesto, is to AIR and is called yourappname- app.xml. It is identical to the ones you use for Android and IOS, though some elements will be ignored. It's one you need to switch on the command line, and is probably causing the 'Namespace' missing error message. A file manifest a minimum is:

    
    http://ns.adobe.com/air/application/3.1">
    
        com.example.appname
        My Fabulous Game
        1.0.0
    
        FileNameOfYourSwfWithoutExtension
        YourCompanyName
        
            [This value will be overwritten by Flash Builder in the output app.xml]
            true
            false
            none
            cpu
            false
        
    
    

    Replace the text in red with your own stuff.

    The second xml file is called to the bar of descriptor. It is for App World and the installation process and is called bar - descriptor.xml. It contains information about signing code, icon, permissions etc. A simple bar - descriptor.xml is:

    
    
       
          none
          true
          landscape
          false
          cpu
       
    
       
       your-name-on-certificate
       your-id-on-certificate
    
       core.games
    
       
       1
    
       
       
          icon86x86.png
       
       splash-landscape.png
    
       
       2.1.0.1314
    
       
       access_shared
       access_internet
       play_audio
       set_audio_volume
    
    

    Make sure that you at least change the red dots.

  • expdp/impdp method in the database upgrade from 11.2.0.4 to 12.1.0.2 an error in logic of "command line"?

    Hi DBA:

    We are evaluating different methods of upgrading 11 GR 2 DB to 12 c (12.1.0.2) this year, it is very important for us to use the right method.  It was reported that when DB version was 9i and has been updated to 11g, there were some order of tables 'line' was wrong when execute SELECT statements in application (Java application) - at the moment I didn't if it is ' select * from... "or any specific part with a"where"clause, and what type of data was wrong (maybe sequence CLOB data, etc.).

    I think I know, ' exp/imp', "expdp/impdp" logical backup of DB methods.  Therefore, Oracle automatically import data and fix it in each table.  If no error in impdp connects after it's over, should not be any mistake, right?

    If the use of the method of 'creates a new data + expdp/impdp basis for schemas user' 11g 12 c port data, questions:

    1. this method will lead to erroneous sequence data when ordering?  If so, how to re - generate the sequence number?

    2. this method can bring CLOB, BLOB data and without any errors?  If error, how to detect and repair?

    I use the same method in the 10.2.0.5 to 11g port data, no problem.

    I'll keep this thread posted after getting more information from application.

    Thank you very much!

    Dania

    INSERT... SELECT, CREATE TABLE in the SELECT and Export-Import will all "re-organize" the table by assigning new blocks.

    In place--update (using DBUA or command line) don't re-create the user tables (although it DOES not rebuild the data dictionary tables).  Therefore, does not change the physical location of lines for user tables.  However, there is no guarantee that a further reason for INSERT, DELETE, UPDATE instructions does not change the physical location of ranks.  Nor is it a guarantee that a SELECT statement will return always stored in the same order unless an ORDER BY is specified explicitly.

    If you export the data while it is still used, you don't avoid update sequences in the source database.  Usually results in a mismatching number sequence between the source database and the new database (imported). In fact, even the numbers may be different, unless you use CONSISTENT or FLASHBACK_SCN.  (These two options in exp / expdp do NOT prevent update sequences).   The right way to manage sequences is to rebuild or increase them in data imported with the values in the data source, once the import is complete.

    Hemant K Collette

  • Can I print the last page of a PDF document using the command line?

    Hello

    I'm in a situation where I constantly have to deal with several documents in PDF format, and I need to print the last page in each of them and ONLY the last page. The total number of pages vary for each file, so the page to the last page number will also vary.

    I really prefer to not do it manually, to open each file in the visible window of Adobe Reader, and then print.

    Question:

    Is it possible with Adobe Reader (perhaps with the help of another Adobe product) to print only the last page of a PDF document using some sort of command line without having to open the PDF file in the Adobe Reader window visible?

    I use Windows.

    Thanks in advance,

    Kind regards

    Emil

    Hey, I've just set up a measure of inquiry by accident. That's really bad thinking. Here's what to do.

    When the "Create new Action" checkbox is shown...

    Choose Start with: a file open in Acrobat

    DO NOT CLICK on add a step statement

    Open tools more

    Click once on run JavaScript

    A blue line to run JavaScript must appear on the right side.

    Click on the small box under Options inside the blue line

    A JavaScript editor should appear; Enter the program, and then click Ok

    To save in: select do not save the changes.

    Click Save

    Give a name; you don't need to enter a description (although it won't hurt if you do).

  • How can I enter in the start page of the command line "firefox.exe"?

    I want to write a script to use firefox to download information about a series of addresses on a street. For example: 101 State St, 102, 103 State St State St,... etc. The script will travel addresses and streets, on interest. Firefox.exe accepts command line parameters that define a web page specific and data to be filled in this page?

    You can start Firefox to open a specific web page or a local file by adding the url to the command line, but you cannot specify the data to display, unless these data does not appear in the page source.

  • Command line option to stop the update at startup?

    We have a shortcut on the desktop to access webmail server. (Firefox is the default browser.) When Firefox has updates available, the link fails with a message of network downtime, which connfuses users. Y at - it an option to command line, I can add to the shortcut to prevent the update at startup of Firefox?

    http://developer.Mozilla.org/en/docs/Command_Line_Options

  • How to freeze the quick sign in command-line executable is runing

    Hello

    I have an executable file, that I compiled in Labview and I run from the line of command (CMD) as part of a sequence of commands.

    The command line may look like this example:

    Order #1

    Order #2

    MyLabviewFile.exe

    Order #3

    Order #4

    ....

    Once the exe starts, it works for about 1 minute.

    The problem is that the command line is not locked while the executable is runing and the following command (No. 3 in the example) is sent before the end of the executable. This can be a problem.

    I have to 'freeze' lock the quick sign while the executable is runing and/or have some sort of indication to the INTERIOR of THE LINE of COMMAND when the executable ends. Or any other way to do the #3 command starts only when the executable ends.

    Does anyone have an idea how to do this?

    Instead of using

    MyLabVIEWFile.exe

    use

    cmd /C MyLabVIEWFile.exe

    This will cause the sequence of order hang until the end MyLabVIEWFile.exe of execution.  If your exe/path has spaces, you will need to put quotes around it as such:

    cmd /C "MyLabVIEWFile.exe."

  • Go (argc and argv) command line argument to a LabVIEW built the shared library.

    Hello

    I correctly use this trick to create a LabVIEW application that runs on Linux without X display.

    http://digital.NI.com/public.nsf/allkb/5D6EC36DCF43343786257449006919E6

    I would like to know if it is possible to pass command line arguments (. / TEST A B C D) directly in the library shared without having to pass arguments using an array of strings that would need to write code using DSNewHandle, DSSetHandleSize, extract arguments and... (I'm not proficient in C, but if I don't have the choice, I'll do and improve my skills of C).

    int main(int argc, char *argv[])
    {
            Test(argc, argv);
            return 0;
    }
    

    Thank you

    Michel

    Well, you can always flatten it into a single string separated by a space and pass like that. Reverse basically what made the operating system, when he calls your main function with command line parameters. And while the first element of the array is always the name of the program itself you can just ignore that here, but then put shaped everything in a single string.

  • Take possession of the key to register via command line

    Is there a way to take ownership of a registry key without having access to the registry? Editing the registry is disabled, I could activate normally using command line, but I don't have permission to change the key. I was wondering if so there is a way to take possession of the key by command line, so I can set the button to activate the registry change.

    Give this extract a whirl:

    ... If the registry editor has also been disabled, you will not be able to run registry changes to fix the rest of the problems, then you must first activate the command registry editor run.  Even if the registry editor is not broken, these commands are safe to run.

    Click Start, run and enter in the box (copy/paste would be safer) the following text:

    Tracking Add HKCU/v DisableRegistryTools /t REG_DWORD /d 0

    Click OK and answer Yes, if you are prompted with a message of crash.

    Click Start, run and enter in the box (copy/paste would be safer) the following text:

    Tracking Add HKLM/v DisableRegistryTools /t REG_DWORD /d 0

    Click OK and answer Yes, if you are prompted with a message of crash.

    Now try your registry editor.

    If you inflict not on purpose to this situation on your system, no doubt there are other things on your system that are also affected... we can fix them then.

  • Using command line to update the certificates of fglam

    We try to change all of our FGLAMs to use a private communication to the FMS certification authority, but I'm unable to get the command line parameters to work.  The documentation is vague on the use of all parameters.

    fglam - configure - headless - fms address = https://someaddress:port ssl-enable-self-signed = false ssl-cert-name common CertName compressed

    "I receive an unrecognized command line argument ' ssl-enable-self-signed = false ssl-cert-name common = compressed CertName". "

    FMS: 5.6.10

    FGLAM: 5.6.11

    actually I take that.

    We use the compressed argument, but looking at the doc, it seems the thought that is set to true by default, else, you must specify it as false, so you may be able to remove this setting all together.

  • change the IP address of a command-line switch 6248

    Hello
    could you tell me how to change the address of my management 6248 switch command line.
    I connect to the com port and I turn on I type my password
    and then I do not know the command?
    How to find my ip address?
    How to change?
    Thank you for your help

    Here is the link to the manual ftp://ftp.dell.com/Manuals/all-products/esuprt_ser_stor_net/esuprt_powerconnect/powerconnect-6248_User%27s%20Guide2_en-us.pdf

    Shows how to get the IP address on Page 90

    interface ip Show

    In the CLI page 358 guide, it shows how to set the IP address ftp://ftp.dell.com/Manuals/all-products/esuprt_ser_stor_net/esuprt_powerconnect/powerconnect-6248_Reference%20Guide_en-us.pdf

Maybe you are looking for

  • NB550D - black screen on startup

    I have a NB550D who refuses to start after a black screen. I see a mouse pointer, but he won't go any further than that. I tried to boot into the Startup Repair, in safe mode and even tried to install a new copy of Windows from a USB key. Each time I

  • Tecra M2 errors with screen: colors black, white & Rainbow fade in and out

    My laptop screen fades in and out with the colors white, black, grey and Rainbow. No command/function is able to accomplish. When I disable (using the power button) and back on, it goes back to wipe the screen. My laptop is currently useless. Someone

  • R51 new HARD drive will not restore factory correctly state with discs

    I caught a HDD of 80 GB on old computer my gf, and I thought I would use it to replace the 40 GB hard drive in my ThinkPad R51.  There is not really important info on my old hdd, so I just created a factory recovery disks, put on the new hard drive (

  • Using a XP printer driver in Windows 7 for Epson Stylus Photo 1280

    My Epson Stylus Photo 1280 does not recognize my paper defined by the user of 12 x 12; Neither will Windows Photo Viewer. It will only fill a 8.5 x 11 part of the page. The contour of 12 x 12 presents however when you preview before printing. Custome

  • What type of license I need?

    Hello! I will buy cisco unified contact center express 4.5 with 30 USERS and premium 50 IVR. Can I purchase a license only for 30 USERS or I need to buy a license for 80 USERS? Thank you!