Different database structure, same application

Hello,
my database struture must change (this is a requierement), it has more than 400 objects (tables, columns, views). Some objects changed their name, and some were added, others were deleted.
Is there any tool that can help me to change automatically the reports, etc from my application?
Thanks
Gissel

Hi Gissel,
what you could do.
1. Export your application: File1_orig.sql
2. Make a copy of it: File2.sql
3. Open File2.sql with notepad++ > click "CTRL + H" to open the replace window > replace first table name with new one
4. Open WinMerge and compare the changes between File1_orig.sql and File2.sql
5. Make a copy of File2.sql and rename it to File3.sql
6. Open File3.sql with notepad++ > click "CTRL + H" to open the replace window > replace x table/view name with new one
7. Open WinMerge and compare the changes between File2.sql and File3.sql
8. ...
Why should you check both files?
Because I don't want that you destroy your export when it replaces a text at the wrong line.
Regards,
Tobias

Similar Messages

  • Different Database structure migartion

    In second version of our software we change the database structure.
    Now we need to migrate data from version 1 to version 2 that have different database structure.
    Is Streaming or any other oracle feature provides possibility or I should write code by hand?

    I sugeest you migrate the tables individaully having in mind the DML and DDL statements
    hitting the database from the application end. You need to do a mapping for both the databse.
    Do the events from your old application still update the same tables as the new application
    You need to really think this out to avoid having complications in your new version.
    I dont think stream option is the best at this stage rather export/import of tables would be the best option
    then you can think of stream to update your new version at run time.

  • Compare Table Data on 2 different databases having same schema

    I need to compare data in all the tables in 2 different databases having same schema.
    If there is any difference in data in any table on Database1 and Database2 then I need to update/insert/delete the rows in my table in Database2.
    So Database1 is my source database and Database2 is my sync database. I cannot use expdp tables as I am not having sufficient privileges to the database server.
    Also I cannot drop and recreate the tables as they are huge.
    Can anyone please guide me how to compare data and to write a script to comapre the changes in say Database1.Table1 and Database2.Table1 and then accordingly do inserts/updates/deleted on Database2.Table1?
    Thanks

    Karthick_Arp wrote:
    Do you have a DBLink? If youes you can do this.
    1. Login into the Database-2 and run this code.
    begin
    for i in (select table_name from user_tables)
    loop
    execute immediate 'truncate table ' || i.table_name;
    end loop;
    end;This will empty all the tables in your Database-2. Now what you need is to just populate the data from Database-1This might result in error, if any of the tables have referential integrity on them.
    From 10g documentation :
    Restrictions on Truncating Tables
    You cannot individually truncate a table that is part of a cluster. You must either truncate the cluster, delete all rows from the table, or drop and re-create the table.
    You cannot truncate the parent table of an enabled referential integrity constraint. You must disable the constraint before truncating the table. An exception is that you can truncate the table if the integrity constraint is self-referential.
    If a domain index is defined on table, then neither the index nor any index partitions can be marked IN_PROGRESS.I would go for normal MERGE. Also change the cursor to select table names by first modifying the child tables and then the parent table.

  • Restore RMAN Backup in Different Database on Same RAC

    We have 11gR2 2 node RAC on Linux. ASM and OMF is used for database. The database on it is backedup using RMAN.
    We want to test the RMAN backup by restoring it to a new database on same server.
    Can someone guide me to steps on how this can be achieved. I'm afraid this should not affect the actual database.
    Thanks a lot.

    Hi,
    Yes, this can be done without disturbing your source db. Need more information on your DB structure (datafile asm diskgroups), all you need to do is restore as single node and convert to rac, since you want to test rman restore, you can restore to single node to prove your RMAN backups are intact.
    Changes in init.ora
    ==============
    db_file_name_convert= ("source dir structure","target dir structure")
    log_file_name_convert=("source dir structure","target dir structure")
    cluster_database=false
    event="10298 trace name context forever, level 32"
    _no_recovery_through_resetlogs=TRUE
    Set new database sid (export ORACLE_SID=NEW_SID)
    sql>startup nomount;
    rman auxiliary /
    rman>duplicate database to "NEW_SID" backup location "Your RMAN Backup location";
    The above are very high level general steps, please do take other steps into consideration as per your environment.

  • JTree look,why it si different in the same application

    Hi,
    I have app that consists of two panels ,in each panel i have placed jtree component(each jtree has its own model-source)
    First panel is OK:
    http://img135.imageshack.us/img135/5049/goodmx7.jpg
    Unfortunately, in the second panel when i cretae new jtree using absoltely the same method,its look is completely different:
    http://img135.imageshack.us/img135/4403/badrg8.png
    How to make the second jtree looks like the first one?

    cichy410 wrote:
    I have app that consists of two panels ,in each panel i have placed jtree component(each jtree has its own model-source)When you say "I have app" do you mean you wrote the app or got it from somewhere?
    If the former, post some code and ask a specific question about what you don't know or understand. Better still, post a SSCCE that clearly demonstrates your problem.
    If the latter, you might consider asking the source, since we know nothing about it. Of course, I'm assuming you have the right to use the code.
    db

  • ** Is it not possible to use 2 database in same XI server

    Hi friends,
    We were able to connect to oracle database thru JDBC adapter previously. To connect to SQL server , we have installed JDBC drivers for Microsoft SQL Server 2000 in same XI server.  Now, we are able to connect to SQL server table but not able to connect to Oracle table . When change the CC and give the Oracle driver and Connection string, it throws an error 'SAPClassnotFoundException'.
    So, Is it not possible to connect to different database in same XI system ?
    Kindly reply friends,
    Kind Regards,
    Jeg P.

    1) Verify the DB URL by connecting database using Command line SQL plus or any SQL editor.
    2) Check wether the Drivers deployed are supported for the Oracle Db version and JDK version on XI server and OS type ( Solaris )
    Check this URL for details on JDBC drivers support list -
    Re: Different Version Oracle in a SLD
    SAPClassNotFoundException: oracle.jdbc.driver.OracleDriver' --> This error clearly implies that the OracleDriver has not been installed on your XI server.
    Ask you admin team to do the needful and install the Oracle Drivers.
    regards
    kummari

  • Use same report with same database structure to different database server.

    Hi,
    I have standard crystal reports which needs to be copied to another database server.
    The origin database has exactly same database structure with the data base in other server.
    My only question is how to change the connection of the crystal report file from old database server to new one without affecting the linked tables in the report. Would it be possible?
    Note: origin database and new database has same structure, tables and columns but differ in data on it. and both has different server. (MS SQL)
    Thanks,

    Hi Mark,
    Open the report in the CR Designer > select Database option on the top > select Set Datasource location.
    The pane on the top shows the current connection. Go ahead and create a new connection to the target database from the pane at the bottom. Once created, highlight one table from the top, highlight the corresponding table from the bottom pane and click Update. Do this for each table.
    -Abhilash

  • Same application that works on different database user

    I have an application wiritten in htmldb 1.6 taht create areport on a table.
    But on the database i have a lot of different user (each table of each user have different information)
    Can i use the same application with connection on differnet user???
    Thank's again ....

    Hi Algervis,
    There is a lots of issue to get actual solution of your problem .
    If your previous application that use the HTMLDB 1.6 to create a report based on the underlying tables for that particular schema.But if like to switch into different schema for that database then you have to create a workspace pointing to the intended schema which have the same underlying table details as earlier and you have to deploy your application for that schema to re-use it .So the deployed application must use the same tables that your earlier schema does otherwise the application may fail to generate the report.
    Hope this might be useful.
    Thanks & Regards,
    ROSY

  • How to use two different database Drivers in one application ????

    I want to select datas in a result set of a query on a ms access database table and insert these into a mysql table of a mysql database in one application.
    Now my problem is that only on database driver is acceptet in the same application even it`s instanciatet in a completely different class !!!
    Here's the structure of my program:
    class one:
    String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
    database += filename.trim() + ";DriverID=22;READONLY=false}";
    java.sql.Driver driver0=new sun.jdbc.odbc.JdbcOdbcDriver();
    DriverManager.registerDriver(driver0);
    DriverManager.getDriver(database);
    con2=DriverManager.getConnection(database,"","");
    DatabaseMetaData dmd2;
    dmd2=con2.getMetaData();
    stmt2=con2.createStatement();
    rs2=("SELECT (.........
    until here all values can be selected correctly from ms access
    class2.get_gas_id(fla_gas);
    Now I want to insert these values into mysql.
    By despair i created a second class with another jdbc-method:
    class2:
    public class gas_select{
    public static int fla_gas_id;
    public static void get_gas_id(String fla_gas)
    java.sql.Statement stmt3;
    java.sql.Connection con3;
    java.sql.ResultSet rs3;
    FileWriter fout1;
    try
    java.sql.Driver driver1=new org.gjt.mm.mysql.Driver();
    DriverManager.registerDriver(driver1);
    DriverManager.getDriver(config.db_rge_stoffe); ==>
    config.rge_stoffe="jdbc:mysql://192.168.10.101:3306/rge_stoffe?user=<user>";
    con3=DriverManager.getConnection(config.db_rge_stoffe);
    java.sql.DatabaseMetaData dmd3;
    dmd3=con3.getMetaData();
    stmt3=con3.createStatement();
    rs3=stmt3.executeQuery("SELECT (Nr) from tblgaseliste where Gasart like "+"\'"+fla_gas+"\'");
    while(rs3.next())
    fla_gas_id=rs3.getInt("Nr");
    fout1.write(fla_gas_id);
    stmt3.close();
    con3.close();
    fout1.close();
    There's no result and no error message. Idon't know what to do !
    Has anyone an idea ???
    Edited by: goberger on Mar 27, 2008 3:35 PM

    Hi!
    If I understand your problem correctly, you can create connections to as many databases as you want in one class. In one of my programs I have connection to 3 separate databases, but here is an example:
    Connection mysql_con = DriverManager.getConnection("jdbc:mysql://localhost:3306/dbmysql", "root", "12345");
    Connection pg_con    = DriverManager.getConnection("jdbc:postgresql://127.0.0.1:5433/dbpgsql", "postgres", "12345");Then from mysql_con and pg_con create PreparedStatement or Statement then load selections into ResultSet and then use getString() to get a basic String type result that you want and so update table from each database.
    HTH
    Victor.
    BTW Here I use port 5433 for PostgreSQL connection because I SSH tunnel it from 5432 to 5433
    Edited by: vic_sk on Mar 27, 2008 4:23 PM

  • How to host one application using different database connection on OAS?

    Hi,
    Jdeveloper - 10.1.3.4
    Application - ADF/BC
    Oracle Application Server - 10.1.3
    Above our the specifications for our application,
    We have two database schemas different for development and production therfore we have different databse connections for the two,
    we have one application which is in production and enhacements on the same application are done by the development team.
    Since we have two different schemas for developement and prduction we use different database connections for the application on development and production.
    The problem is our Model and View Controller project are same, only the database connection file changes that's why we are able to host only on application at a time on our OAS. This is probably because the URL generated by OAS for developemnt and prodyction application is same.
    Is there a way we can host two instances of the same application with two different database connections on the a single OAS.
    Thanks & Regards,
    Raksha

    Use different deployment profiles each with a different context root for your application?
    See: http://one-size-doesnt-fit-all.blogspot.com/2009/02/configuring-separate-dev-test-prod-urls.html

  • Cookie being used in different applications which are on different database

    Hi,
    I have two htmldb applications. One app (App1) is on database DB1, and the second one (App2) is on database DB2. App1 will create a cookie, and App1 will use URL to redirect to App2. App2 will use the cookie which App1 created.
    The problem is in App2, I used owa_cookie to get the cookie but, it is not there.
    I know different htmldb applications in the same workspace (in the same database) can share the cookie. Can the htmldb applications in the different databases share the same cookie?
    Thanks.
    June

    Scott,
    Thank you for your reply.
    In App1, I have set a cookie as following:
    begin
    owa_util.mime_header('text/html', FALSE);
    owa_cookie.send(
    name=>'LOGIN_USERNAME_COOKIE',
    value=> 'abcd');
    owa_util.http_header_close;
    exception when others then null;
    end;
    App1 in DB1 accesses source(URL) App2 (eg: http://mymachin.domain.com:7778/dbname/f?p=100:101).
    App2 in DB2 has a process (On Load -Before Header) in login page to get the cookie:
    declare
    v varchar2(255) := null;
    c owa_cookie.cookie;
    begin
    c := owa_cookie.get('LOGIN_USERNAME_COOKIE');
    :P101_USERNAME := c.vals(1);
    exception when others then null;
    end;
    I just want to pass the username from App1 to App2.
    Is there any way the cookie can be shared in my case?
    Thanks.
    June

  • Connecting to two different database instances from a swing application.

    Hi All,
    I am developing a swing application which needs to interact with two different database instances of two different weblogic servers.
    More eloborately,
    I have some data in DB_Instance1 running on[b] Weblogic_Server1 and I need to insert the same data into DB_instance2 running on Weblogic_server2. Is it possible. Could some explain me how to do that..
    Thanks in advance...
    Sreekanth.

    Hi Rick,
    Try logging onto both Server first. You'll have to use either 2 separate ODBC DSN's or 2 separate OLE DB connections. Set them both for Trusted Authentication, you'll have to configure that on the Server also.Then try your query.
    If that doesn't work then you'll have to create a Stored Procedure or View that can link the 2 Server side.
    Thank you
    Don

  • How to integrate different tables structures from different databases?

    Hi
    I'm new to oracle ..kindly help me with the below issue...
    I have same set of inter-related attributes (a,b,c,d) in two different databases A and B.
    The structure of tables in both the database are different but they carry same attributes in same relation.
    I have to integrate these attributes into single db object such that any update to base tables updates my object.How can i do this and what object will be helpful?
    Thanks

    Arun Rajesh wrote:
    Hi
    I'm new to oracle ..kindly help me with the below issue...
    I have same set of inter-related attributes (a,b,c,d) in two different databases A and B.
    The structure of tables in both the database are different but they carry same attributes in same relation.
    I have to integrate these attributes into single db object such that any update to base tables updates my object.How can i do this and what object will be helpful?
    ThanksWelcome to Forum!!!
    Please elaborate your question.
    Arun Rajesh wrote:
    I have same set of inter-related attributes (a,b,c,d) in two different databases A and B.1. What are the ATTRIBUTES?
    Arun Rajesh wrote:
    The structure of tables in both the database are different but they carry same attributes in same relation.2. Post the Table Structures.
    Arun Rajesh wrote:
    I have to integrate these attributes into single db object such that any update to base tables updates my object.How can i do this and what object will be helpful?3. What is the end result that you desire? A sample output shall help in our understanding.
    PS:- Please go through this to understand SQL and PL/SQL FAQ.
    Regards,
    P.

  • Standby database with different directory structure

    Hi,
    sorry to say that we are in desupported version due to some constraint.
    oracle version : 8.1.7.0.0.
    os:sun 5.9
    I need to create physical standby database with different directory structure:
    i have created standby database with same directory structure of primary, now i have requirement to create with different directory structure.
    in oracle 8i we can not give multiple parameter for db_file_name_convert(ORA-01678: parameter db_file_name_convert must be two strings, a pattern and a replacement) and i do have partitions in primary as follows:
    bash-2.05$ df -h
    Filesystem             size   used  avail capacity  Mounted on
    /dev/dsk/c1t0d0s0       20G    14G   5.6G    72%    /
    /proc                    0K     0K     0K     0%    /proc
    mnttab                   0K     0K     0K     0%    /etc/mnttab
    fd                       0K     0K     0K     0%    /dev/fd
    swap                    11G    40K    11G     1%    /var/run
    dmpfs                   11G     0K    11G     0%    /dev/vx/dmp
    dmpfs                   11G     0K    11G     0%    /dev/vx/rdmp
    swap                    11G   656K    11G     1%    /tmp
    /dev/dsk/c1t0d0s3       25G    18G   6.8G    72%    /oracle
    /dev/vx/dsk/suportaldg/oracle1
                            12G    11G   1.1G    91%    /oracle1
    /dev/vx/dsk/suportaldg/oracle2
                            12G   8.1G   3.7G    69%    /oracle2
    /dev/vx/dsk/suportaldg/orapurge
                           200G   182G    17G    92%    /orapurge
    /dev/vx/dsk/suportaldg/oracle3
                            12G    10G   1.9G    85%    /oracle3
    /dev/vx/dsk/suportaldg/oracle4
                            12G    12G    58M   100%    /oracle4
    /dev/vx/dsk/suportaldg/oracle5
                           7.0G   5.9G   1.0G    86%    /oracle5
    /dev/vx/dsk/suportaldg/oracle6
                           7.0G   6.4G   564M    93%    /oracle6
    /dev/vx/dsk/suportaldg/oracle7
                            23G    23G   358M    99%    /oracle7
    /dev/vx/dsk/suportaldg/oracle8
                            13G    13G   165M    99%    /oracle8
    /dev/vx/dsk/suportaldg/oracle9
                            23G    22G   1.4G    94%    /oracle9
    /dev/vx/dsk/suportaldg/oracle10
                            12G  10.0G   1.9G    85%    /oracle10
    /dev/vx/dsk/suportaldg/oracle11
                            39G    36G   2.1G    95%    /oracle11
    /dev/vx/dsk/suportaldg/oracle12
                            39G    38G   1.1G    98%    /oracle12
    /dev/vx/dsk/suportaldg/oracle13
                            68G    65G   2.6G    97%    /oracle13
    /dev/vx/dsk/suportaldg/oracle14
                           200G   199G   1.3G   100%    /oracle14
    /dev/vx/dsk/suportaldg/oracle15
                           200G   196G   3.6G    99%    /oracle15
    /dev/vx/dsk/suportaldg/oracle16
                            70G    64G   5.5G    93%    /oracle16
    /dev/vx/dsk/suportaldg/oracle20
                           7.0G   6.4G   609M    92%    /oracle20
    /dev/vx/dsk/suportaldg/oracle50
                            28G    26G   2.0G    93%    /oracle50
    /dev/vx/dsk/suportaldg/oratranslog
                           185G   165G    19G    90%    /oratranslogso how i can create standby database with different directory structure, help is appreciated.
    Thanks
    Edited by: prakashdba on Mar 5, 2009 11:04 PM

    Looks like very difficult and inform you mgmt about the drawbacks of running olderv ersions
    may be you can try something like this but i dont know whether it is supported or not
    db_file_name_convert=['/dev/vx/dsk/suportaldg/oracle3','/dev/vx/dsk/suportaldg/STDBY/oracle3']
    db_file_name_convert=['/dev/vx/dsk/suportaldg/oracle4','/dev/vx/dsk/suportaldg/STDBY/oracle4']
    db_file_name_convert=['/dev/vx/dsk/suportaldg/oracle5','/dev/vx/dsk/suportaldg/STDBY/oracle5']

  • How to create same database structure in Oracle database as in SQLserver?

    Hi experts,
    I have created application in Oracle ADF which used SQL Server as a backend. In SQL server I have six databases. I am using that all six databases.
    I connected the same application with Oracle 11g. In oracle I created only one schema and created all the tables in that schema.
    There are around 2000 tables. I want to know is it better way to keep all the tables in one schema or should I create six different schema as sql server.
    Also please tell me if there is any other solution for situation like this.
    Thanks.

    Digambar, Ithink the answer might depend on how and why the tables were separated in SQL Server. Did you have six separate schemas or just have the tables spread out over six SQL Server databbase with DBO as the owner in all six? Does each SQL Server database represent a different group of objects that make up a different module/feature set of the application?
    If each SQL Server database represents a different portion/module of the application then the ability to identify the tables/objects in that module without having to refer to documentation might be useful so assigning the objects to different owners may be helpful. That is if the object naming standard in use does not provide an easy way to identify the portion of the application the objects belong to.
    HTH -- Mark D Powell --

Maybe you are looking for

  • Is it possible to delete an unread message i sent on imessage?

    hi sent a text via imessage, it hasnt been read, can this still be deleted so that the other person doesnt see it?

  • Release memory for nested top-level classes

    Hello experts. I have a top-level class which consists of several static methods. Inside such a method I create several new instances of a nested top-level class inside my original class. Later I want to release one of these instances i.e. destroy in

  • How to locate my music on itunes

    my  music on itune say it can not be locate on itunes

  • 5000 hits in document overview

    Hi, When I clicked on "Document overview on" in (left side of) ME23N transaction , I am getting a pop-up saying that "You have limited selection to 005000 hits (Note that there are more hits)". Message no. MEQ010. I have more number of PO items to be

  • Tax on intercompany transactions

    Hi gurus, when we do the intercompany transactions  for a free of charge invoices, SAP still incorporate Tax on the invoice. AP didn't want to see the tax on these free of charge invoices. we are using Taxware as our third party Tax software, any hel