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.

Similar Messages

  • 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

  • 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

  • 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']

  • Different Drive Structure Between Principal and Mirror

    We havea 2-node (active/active) cluster with four failover instances installed. We use a dedicated drive for data files, one for log files and one for tempdb per instance .Predicting that we will be adding more instances in the future, we realized that we
    would run out of drive letters to set up. We intend to switch over and use mounted volumes instead that way we only use 1 drive letter per instance and will be able to add many more failover instances in the future. However, seen as we have over 150 databases
    across all current instances, reconfiguring the cluster drive setup will require a lot of time and work and is not in the immediate plans for our team (me :( ). I need to mirror as many databases as possible, based on priority, to a DR server on a geographically
    remote location. Since this server isn't setup with SQLServer yet, I was wondering if it would be a good idea to have the DR server set up with mount volumes now and establish mirroring between our production environment and the DR server that way so that
    at least half the battle is won. I am aware that the best practice for mirroring is to have the same drive structure between the principal and mirror server, however it is not a requirement. The only example issue I have seen with this set up is when you add
    a data file to a database and the DDL statements get sent over to the mirror and will fail since the drive setup will not be the same. This is something I am willing to deal with since adding data files to our databases is not something we do often, or at
    all. As new databases are added and mirrored, the WITH MOVE clause of the RESTORE statement can be used to place the files in their correct location in the mirror server.
    Other than this, are there any other things to consider for this kind of mirroring set up?
    Leroy G. Brown

    Hi Leroy G,
    According to my knowledge, you can deploy database mirroring with different drive structure. And the known issue is that if you add a file to the Principal, the DDL commands get applied across the Mirror, then your database will go into a suspended
    status until you duplicate the path on the mirror.
    However, as your post, you can use WITH MOVE option to create database on Mirror server. For more details, please follow the steps in this
    blog.
    Meanwhile, about setting up database mirroring, I recommend you review this online
    article.
    Thanks,
    Lydia Zhang

  • Work repository on different database configuration

    Hello there,
    I am trying to set my work repository to be a schema on differing database to the source dataserver.
    Currently when I edit the source data server and try to set the work repository I only have the option to select schemas from the source.
    I have my work repository on a different database.
    Can anyone help?
    Regards,
    CM

    I have come to a conclusion that there has been a confusion over the terminologies. What you call "Work Repository" is actually a "Work Schema" in your specific case.
    Then the answer is that Work Schema needs to be on the same data server as your Source Schema.
    Below is a reasoning behind that:
    This schema consists of temporary/intermediate work tables that are generated by ODI knowledge modules.
    These work tables are similar to tables in source schema in terms of data and structure
    Data is moved, copied and compared between source schema and work schema, it makes more sense to store them on the same data server to avoid any network/communication overhead.
    Hence ODI warrants that the source schema and the work schema exist on the same data server.
    P.S. "Work Repository" is the metadata repository that holds the data model definitions, ODI code, packages, interfaces, etc.
    It works in tandem with "Master Repository"
    Hope this helps you.
    If you feel that your question has been answered, please mark the question as answered and all the answers that you have received as helpful or correct.
    Thanks

  • How duplicate ora11 on windows to another host with different directory structure

    Hi,
    I need help.
    I want to duplicate db (11.2) running on windows from server A to Server B
    Directory structures on server A and Server B are different;
    my steps
    on server A
    1.backup database plus archivelog delete input;
    2.insert into table t values(1);
    3.commit;
    4.backup archive log all;
    On Server B
    5.copy backup and archive logs from server A to server B (c:\backup\temp)
    6.create folders C:\oracle\oradata\bamboo
    7.oradim –new –sid bamboo -- (verified service is running)
    8. created pfile.ora with param (db_name=bamboo)
    9.SET oracle_SID=bamboo
    10.sqlplus  /as sysdba
    11.startup nomount pfile='(c:\backup\temp\pfile.ora'
    12.C:\oracle\product\11.2.0\db_1\database>rman auxiliary /
    result
    ..connected to auxiliary database: SBDBT02W (DBID=186082786, not open)  --could it be the fact that I tried to execute code bellow?
    My understanding at this point I should be connected to 'bamboo' -- my new database, what steps did I miss?
    I expect
    ..connected to auxiliary database: bamboo ( not mounted)
    bellow is code that I was going to run on Server B
    RUN
      SET NEWNAME FOR DATAFILE 1 TO 'C:\oracle\oradata\bamboo\SYSTEM01.DBF';
      SET NEWNAME FOR DATAFILE 2 TO 'C:\oracle\oradata\bamboo\SYSAUX01.DBF';
      SET NEWNAME FOR DATAFILE 3 TO 'C:\oracle\oradata\bamboo\UNDOTBS01.DBF';
      SET NEWNAME FOR DATAFILE 4 TO 'C:\oracle\oradata\bamboo\USERS01.DBF';
      SET NEWNAME FOR DATAFILE 5 TO 'C:\oracle\oradata\bamboo\EXAMPLE01.DBF';
      DUPLICATE DATABASE TO bamboo
      UNTIL TIME "TO_DATE('11/24/2013 13:18:02', 'MM/DD/YYYY HH24:MI:SS')"
      BACKUP LOCATION 'C:\backup\temp'
      NOFILENAMECHECK;
    when I executed it on Server B ,I got following error
    Starting Duplicate Db at 25-NOV-13
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 11/25/2013 11:27:36
    RMAN-05500: the auxiliary database must be not mounted when issuing a DUPLICATE
    command
    I looking for steps by step instruction for duplicating db to another windows host with different directory structure.
    Thank you
    Alex

    The topic, "Duplicating a Database on a Remote Host with a Different Directory Structure" can be found at http://docs.oracle.com/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#i1006672
    This information should provide you the step by step process to follow including when on Windows.
    HTH -- Mark D Powell --

  • Restoring Rman backup on New Host with different directory structure

    Hi,
    I have a following scenario to clone the database.
    1. clone the database on new server
    2. source is non - ASM and target is ASM
    3. On source incremental level 0 backup taken on disk connecting to catalog, the backup is moved to target host to different directory structure
    4. source is running on 32-bit Linux two node Rac and Target is running on 64-bit Linux two node Rac
    I did the following steps and getting below error:
    1. I copied incremental Level 0 backup to target server(where we need to build new db) to different directory structure
    2. On target i created pfile and build the instance, as dbf file are in multiple locations in source i put following tow parameters in init.ora of target database
    *.db_file_name_convert =(/u02/oradata/app1p/,+QADATA2/udev/datafile),(/u03/oradata/app1p/,+QADATA1/udev/datafile),(/u12/oradata/app1p/,+QADATA1/udev/datafile,),(/u99/oradata/app1p/,+QADATA1/udev/datafile),(/u09/oradata/app1p/,+QADATA1/udev/datafile),(/u14/oradata/app1p/,+QADATA1/udev/datafile),(/u07/oradata/app1p/,+QADATA1/udev/datafile),(/u06/oradata/prod/,+QADATA1/udev/datafile'),(/u05/oradata/app1p/,+QADATA1/udev/datafile)
    *.log_file_name_convert =("/u99/oradata/app1p/","+QADATA2/udev/onlinelog/")
    3. connected to rman -->> started db in nomount -->> restored the controlfile --> cataloged the backup piece and then i am trying to restore
    All the above steps i did using the Doc id *How To Restore Rman Backups On A Different Node When The Directory Structures Are Different [ID 419137.1]*
    script i am using is :
    RMAN> run {
    2> set until time "to_date('DEC/20/2010 05:30:00','Mon/DD/YYYY HH24:MI:SS')";
    3> allocate channel c1 device type disk;
    4> allocate channel c2 device type disk;
    5> allocate channel c3 device type disk;
    6> allocate channel c4 device type disk;
    7> set newname for datafile 1 to '+QADATA1/UDEV/DATAFILE';
    8> set newname for datafile 2 to '+QADATA1/UDEV/DATAFILE';
    9> set newname for datafile 3 to '+QADATA1/UDEV/DATAFILE';
    10> set newname for datafile 4 to '+QADATA1/UDEV/DATAFILE';
    11> set newname for datafile 5 to '+QADATA1/UDEV/DATAFILE';
    12> set newname for datafile 6 to '+QADATA1/UDEV/DATAFILE';
    13> set newname for datafile 54 to '+QADATA1/UDEV/DATAFILE';
    set newname for datafile 63 to '+QADATA1/UDEV/DATAFILE';
    14> 15> set newname for datafile 67 to '+QADATA1/UDEV/DATAFILE';
    16> set newname for datafile 68 to '+QADATA1/UDEV/DATAFILE';
    17> set newname for datafile 50 to '+QADATA1/UDEV/DATAFILE';
    18> set newname for datafile 39 to '+QADATA1/UDEV/DATAFILE';
    19> set newname for datafile 38 to '+QADATA1/UDEV/DATAFILE';
    20> set newname for datafile 7 to '+QADATA1/UDEV/DATAFILE';
    21> set newname for datafile 9 to '+QADATA1/UDEV/DATAFILE';
    22> set newname for datafile 8 to '+QADATA1/UDEV/DATAFILE';
    23> set newname for datafile 11 to '+QADATA1/UDEV/DATAFILE';
    24> set newname for datafile 10 to '+QADATA1/UDEV/DATAFILE';
    25> set newname for datafile 66 to '+QADATA1/UDEV/DATAFILE';
    26> set newname for datafile 48 to '+QADATA1/UDEV/DATAFILE';
    27> set newname for datafile 47 to '+QADATA1/UDEV/DATAFILE';
    28> set newname for datafile 12 to '+QADATA1/UDEV/DATAFILE';
    29> set newname for datafile 13 to '+QADATA1/UDEV/DATAFILE';
    30> set newname for datafile 14 to '+QADATA1/UDEV/DATAFILE';
    31> set newname for datafile 15 to '+QADATA1/UDEV/DATAFILE';
    32> set newname for datafile 16 to '+QADATA1/UDEV/DATAFILE';
    33> set newname for datafile 18 to '+QADATA1/UDEV/DATAFILE';
    34> set newname for datafile 17 to '+QADATA1/UDEV/DATAFILE';
    35> set newname for datafile 19 to '+QADATA1/UDEV/DATAFILE';
    36> set newname for datafile 69 to '+QADATA1/UDEV/DATAFILE';
    37> set newname for datafile 60 to '+QADATA1/UDEV/DATAFILE';
    38> set newname for datafile 59 to '+QADATA1/UDEV/DATAFILE';
    39> set newname for datafile 55 to '+QADATA1/UDEV/DATAFILE';
    40> set newname for datafile 53 to '+QADATA1/UDEV/DATAFILE';
    41> set newname for datafile 44 to '+QADATA1/UDEV/DATAFILE';
    set newname for datafile 22 to '+QADATA2/UDEV/DATAFILE';
    42> 43> set newname for datafile 21 to '+QADATA2/UDEV/DATAFILE';
    set newname for datafile 20 to '+QADATA2/UDEV/DATAFILE';
    44> 45> set newname for datafile 72 to '+QADATA2/UDEV/DATAFILE';
    46> set newname for datafile 70 to '+QADATA2/UDEV/DATAFILE';
    47> set newname for datafile 65 to '+QADATA2/UDEV/DATAFILE';
    48> set newname for datafile 64 to '+QADATA2/UDEV/DATAFILE';
    49> set newname for datafile 57 to '+QADATA2/UDEV/DATAFILE';
    50> set newname for datafile 56 to '+QADATA2/UDEV/DATAFILE';
    51> set newname for datafile 49 to '+QADATA2/UDEV/DATAFILE';
    52> set newname for datafile 45 to '+QADATA2/UDEV/DATAFILE';
    53> set newname for datafile 26 to '+QADATA2/UDEV/DATAFILE';
    54> set newname for datafile 25 to '+QADATA2/UDEV/DATAFILE';
    55> set newname for datafile 24 to '+QADATA2/UDEV/DATAFILE';
    56> set newname for datafile 23 to '+QADATA2/UDEV/DATAFILE';
    57> set newname for datafile 27 to '+QADATA2/UDEV/DATAFILE';
    58> set newname for datafile 28 to '+QADATA2/UDEV/DATAFILE';
    59> set newname for datafile 29 to '+QADATA2/UDEV/DATAFILE';
    60> set newname for datafile 30 to '+QADATA2/UDEV/DATAFILE';
    61> set newname for datafile 73 to '+QADATA2/UDEV/DATAFILE';
    62> set newname for datafile 32 to '+QADATA2/UDEV/DATAFILE';
    63> set newname for datafile 31 to '+QADATA2/UDEV/DATAFILE';
    64> set newname for datafile 34 to '+QADATA2/UDEV/DATAFILE';
    65> set newname for datafile 33 to '+QADATA2/UDEV/DATAFILE';
    66> set newname for datafile 35 to '+QADATA2/UDEV/DATAFILE';
    67> set newname for datafile 36 to '+QADATA2/UDEV/DATAFILE';
    68> set newname for datafile 37 to '+QADATA2/UDEV/DATAFILE';
    69> set newname for datafile 51 to '+QADATA2/UDEV/DATAFILE';
    70> set newname for datafile 43 to '+QADATA2/UDEV/DATAFILE';
    71> set newname for datafile 40 to '+QADATA2/UDEV/DATAFILE';
    72> set newname for datafile 41 to '+QADATA2/UDEV/DATAFILE';
    set newname for datafile 71 to '+QADATA2/UDEV/DATAFILE';
    set newname for datafile 58 to '+QADATA2/UDEV/DATAFILE';
    set newname for datafile 52 to '+QADATA2/UDEV/DATAFILE';
    set newname for datafile 46 to '+QADATA2/UDEV/DATAFILE';
    set newname for datafile 42 to '+QADATA2/UDEV/DATAFILE';
    73> 74> 75> 76> 77> 78> set newname for datafile 62 to '+QADATA2/UDEV/DATAFILE';
    79> set newname for datafile 61 to '+QADATA2/UDEV/DATAFILE';
    80> set newname for datafile 74 to '+QADATA2/UDEV/DATAFILE';
    81> restore database;
    82> switch datafile all;
    83> recover database;
    84> alter database open resetlogs;
    85>
    86> release channel c1;
    87> release channel c2;
    88> release channel c3;
    89> release channel c4;
    90> }
    Getting the following error, copied lines from the error i am getting.
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting restore at 27-DEC-10
    released channel: c1
    released channel: c2
    released channel: c3
    released channel: c4
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 12/27/2010 08:09:08
    RMAN-06026: some targets not found - aborting restore
    RMAN-06100: no channel to restore a backup or copy of datafile 74
    RMAN-06100: no channel to restore a backup or copy of datafile 73
    Please advice...
    Thanks,
    Tanveer Mohammed

    If you would like, please refer the link:-
    http://gavinsoorma.com/2010/04/creating-an-asm-duplicate-database-from-a-non-asm-database/

  • Changing database structure

    I have to add a tabel a mailalerttext and link that to mailalertypes which is linked to mailalerts. I had some problems with the selectlists, underneath you will find something that will solve that problem I thought, but it may be easier to solve it simpler, but thats apex stuff.
    If a default user and default applicationcode would exist, it would be possible to use them in the mailalert table which has following colums:
    MAILALERTID,APPLICATIECD,GEBRUIKERID,MAILALERTTYPEID,SENDMAILIND
    gebruikerid means userid.
    The defaultuser and application code would then be used in the mailalerts table and the column mailalertype would be replaced by mailalerttypecode. These are defined they can't change.
    The reason is that if mailalerttext is linked to maillalerts using the mailalertid as the foreign key, then that allows to find the correct text, or select it straightaway by using the mailtextid. All the selects would then be made on the mailalert table.
    The numbers used as default are just those that are free, a default user can be filled in like that in te gebruikers table, and a default application code in the apps table.
    Only the standard user and the mailalerttypecode are important, the standard applicationcode could be used as an extra check but might not be necessary.
    A select could then be made on that applicationcode, that user, that typecode if not found select standarduser and typecode.
    Applicationcode is only filled in to stick to the table definitions. To solve a problem with a select list on a page in apex i think this is overkill, as it requires more changes then does the first solution, It means changing tables, dropping columns adding them, changing triggers, changing code in apex pages, a lot of work.
    But I was wondering if concerning a database structure, starting from scratch this is something that would be considered good, not so good, bad, something to not do ?
    I'm not sure this is the right group, but it isn't strictly apex, and it isn't really sql/plsql either. More database structure.
    I'm just beginning, so i'd like to know your opinions and why it would be bad, or possibly good.
    Message was edited by: Floris Vermeir
    Removed the spelling mistakes.
    Floris

    I'm still not sure I understand your existing data model properly. The following is my interpretation of what I think your're trying to achieve.
    There are four core data tables -
    * APPLICATIONS - holds information relating to the programs you administer
    * MAIL_TEXT - holds boilerplate text for each type of e-mail (I'm assuming this text can be shared across applications)
    * MAIL_TYPES - the different kinds of e-mail alerts which can be sent
    * USERS - holds information about the support staff.
    I think you need two intersection tables
    * APP_MAIL_TYPES - application X uses text Y for e-mails of type Z (candidate key: app id and type id)
    * USER_MAIL_REGS - user Joe gets e-mails of type Z from application X (candidate key: app id, type id and user id)
    NB If the registration is just done against alert type for all apps, then the USER_MAIL_REGS table shoudl intersect USERS and MAIL_TYPES.
    |                      |
    |  applications        |
    |                      |
           |
           |
          /|\
    |                      |                |                      |
    |  app_mail_types      |>---------------|  mail types          |
    |                      |                |                      |
             \|/     |
              |      |
                |      ---------------------------------          
                |                            |
                |                              /|\
    |                      |                |                      |    
    |  mail text           |                |  user_mail_regs      |    
    |                      |                |                      |    
                                             \|/
                                              |
                                                       |
                                            |                      |                       
                                            |       users          |                       
                                            |                      |                       
                                            ----------------------                        I think USER_MAIL_REGS corresponds to your "overview" table. (It's a good idea to use names which convey as much info as possible. I acknowledge the difficulty of doing this in another language). Changing the users' registrations would simply be a matter of inserting or deleting rows from the USER_MAIL_REGS.
    If this doesn't help you then I'm afraid you will need to give me more info. Specifically, what tables you have, the role they play and the relationships between them.
    Cheers, APC

  • Refresh database structure

    Hello !
    I'm using VB.net 2013 , Entity Framework 6 , SQL server 2008R2 and SMO.
    I have the application that use the database.
    But sometime I make changes to database structure , and I want to add to my application a "Refresh Database" command.
    Let's say that I have a database model called "Model" ( as a .bak file). The refresh command should compare the current database with this model and after make all the changes needed to make the current database up to date according to model.
    How this can be done using SMO ?
    Thank you !

    Do you think that creating a new database and migrating data it's more easy ?
    Let's get an example :
    The new Model.bak contains only a new field in one of the tables comparing with the current database.
    Do you think that only for 1 field , I should create a new database and migrate thousand of records ? After that of course I should make additional work to make this "New database" connect with my program because I use Entity framework that
    is created with wizard on design time with the database ( that have a specific name ) , and the new database have another name.
    So I think is more easy to add this new field to the current database ( so make a "Refresh" )  and end of the story.
    what do you think ?
    thank you !
    Hi dcode25,
    For such a scenario adding only one more field, what you should do in the upgrade is neither to restore nor to "refresh", the only approach is to run the ALTER table script to add the column when your upgrade wizard fires. This approach should be
    applied to the cases that there's not much modification in your "model". For the cases which are more complex, the restore and migration is the option.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support
    Hello !
    I think that the conversion now is transformed in how we  should call this process.
    Why you don't like the word "Refresh". I like to call this process refresh , but we can call how we want.
    The point is that I want to do this process within my application . I don't know what do you mean with "When your upgrade wizard fire ?"
    Is possible to use the Alter table script in vb.net inside my application and what are the steps ? But of course I want to make this process general so regardless of how many field are added , this process should work. But how can I compare first the
    current database with new model to find out what are the changes that I should made ?
    And what you consider  "too much modification "
    The modifications on new "Model.Bak" may  be :
    - One (or some ) field(s) are added to one (or several )  existing table(s).
    - One (or some ) field(s) are deleted to one (or several )  existing table (s).
    - One (or some ) field(s) in one (or several )  existing table (s) have a different type.
    - A new table is added to database
    - A new table is added that have a new relationship with an existing table
    - 2 or more new tables are added that may have relationship between each other.
    On your opinion , which of these modifications can be done without migration and inside my application ?
    For the others , why do you think that cannot be done without migrating ? Because it's impossible to do , or is difficult ?
    In my opinion ( of course I can be wrong because I don't know ) these may be the steps :
    1) Get one by one the tables in "Model.Bak"
    2) With each table , first detect if this exist in the current database
    3) If not exist , create the table ( or copy from Model ???? I don't know if can be done ).
    4) If exist , compare one by one the fields , and if a field doesn't exist , add the new field. If a field exist but has a different type , change the type. After detect if one of fields in current database doesn't exist on model. If so , delete that field.
    5) If a new relationship exist , add the new relationship
    If you agree with these steps , which of them may be impossible to be done ?
    Or if can be done , how can I realize each of these steps inside my program in vb.net ?
    Thank you !

  • Database structure for a 5 star ratings system

    This is something I've been asked to look at creating. At the moment the site has a database back end storing details of a few hundred holiday properties. So that part is already set up.
    So I'm familiar enough with databases etc, but less so the formulas and any additional database structure for any voting.
    It would be pretty simple, ie visitors could vote 1, 2, 3 4, or 5 stars for any property.
    There needs to be a total score recorded somewhere for each property.
    And the site needs to display the average score for that property.
    Any pointers on this much would be much appreciated.
    Thanks.

    Consider my wrist duly slapped.
    Yes, Google is an excellent resource, although in my experience for many things such as this a search will return 101 different ways of doing something, many of which will do, or explain, 80% of what you need.
    So sometimes posting on a forum is better for getting a recommendation from someone for a good tutorial on something.

  • Database Structure For Articles and Categories

    Hi - This is a question about database structure - please help. Thanks
    For a website with many subjects or themes is it best to use 1 big table to hold or the articles or many small tables to hold articles for different subjects - I will explain what I mean.
    Say my website has a 'cooking' section, a 'sports' section and a general 'blog' section.
    In each section the articles will be organized into different sub-categories but I can't see a way to do this.
    Case 1: All the articles are stored in 1 table. There is a second table which 'assigns' an article to a category (the cateogries themselves are stored in a separate table) and also assigns a sub-category (sub-categories stored in a separate table???) and then what if there needed to be a sub-sub-cateogry?? This just doesn't seem to work well!
    Case 2: For each theme there is a separate table - Cooking Table, Sports Table, Blog Table. And for each separate table there is a categories table Cooking-Categories which assigns each cooking article a sub-cateogry (and the sub-categories are stored in a separate table also) - and what if I needed to make a sub-sub-category - then would I need to make another table? This just sounds like a lot of tables even though the end result would probably be easier!
    Case 3: All categories are stored in 1 table - as well as all subcateogires of those categories as well as all sub-sub categories, etc (each with an ID)... Each article is 'assigned' a category ID
    Please someone show me the light! I am confusing myself.
    Thanks
    Chris

    There is no 'best' way of creating a database. It's more logic that is involved in examining the parameters that determine what DB will suit your current requirement. These parameters may include but aren't limited to:
    Latency
    Performance
    Sortability
    Accessibility
    Ease-of-use
    Scalability
    If I were you, for the said purpose, I'd create with 4 tables as follows:
    Categories - this will hold your main categoriesCatID, Name, Order ID
    Sub-CategotiesSubCatID, CatID (that the SubCat is linked to), Name, Order ID
    Sub-Sub CategoriesSubSubCatID, SubCatID, CatID, Name, Order Id
    ArticlesArticleID, SubSubCatID (can hold multiple Sub-Sub-categories) SubCatID (can hold multiple Sub-categories), CatID (can hold multiple Categotries), Name, Order ID, Article Title, Article Description, Article Thumbnail, URL Name, Metatags (for SEO, if you're looking at doing SEO)
    The CatID in Article Table will usually be an INT value with limited chars, the SubCatID and SubSubCatID in Article Table will ideally be a varchar value with about 200 chars so you could assign multiple SubCatIDs to one article.
    I'd like to add here that this is very much a debatable post. What suits me may not suit you and/ or the others who may read this post! But this way, I can accomplish my programming/ coding task/ CMS integration with ease-of-use.
    Good luck with your DB!
    ~ST

  • Database structure documentation tool

    I have been asked to include the database structure of our application in the help. It doesn't look as though there is a tool within RH that will do this but I thought it was worth asking in case it's hidden away somewhere.
    If not, there are plenty of tools out there that will do the job but are there any that will integrate best with my RH7 chm and webhelp output?
    Thanks

    Hi there
    No, there really isn't a tool in RoboHelp that will facilitate that. If you try a different tool you might ensure it outputs HTML files. You would then import the HTML files into a RoboHelp project.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcererStone Blog
    RoboHelp eBooks

  • Database structure changed. Mapping Crystal reports to new datasource

    There are several crystal reports that need to be remapped to a new database we have in place. The data structure has quite changed. I started using the 'Set datasource Location' option to map the new database fields to existing fields in the report. The problem shows up when trying to map fields from multiple tables to existing fields in the report from a single table. To elaborate, the old database structure has only one table used for a report and the new database structure has these same fileds coming from two different tables. The 'Set datasource Location'  option is leting me map the existing table used in the report to only one report. Is this how this functionality works or am I missing something. Please advise the best way to do this mapping.
    VJ

    hi VJ,
    when you're dealing with reports where the data source can change along with the number of tables or the table names or the field names etc. then this is a method that you can design with to avoid issues associated with datasource changes.
    you can also change existing reports to use this formula only method but of course there's a bit of work involved in changing reports vs. designing them like this from the ground up.
    -jamie

Maybe you are looking for

  • Help with rollovers!!!

    im trying to change a background image using a button rollover. the code im using is: on mouseEnter me Sprite(1).member = member ("picnic copy") end on mouseLeave me sprite(1).member = member ("blk" bg") end the code works but the image that replaces

  • Transfer of hours from CATS to HR

    Hi. One of my customers has set up a transferral of hours from CATS to HR (IT2001 and IT2002) with help of trx CATA. The process includes approval of hours via CATS_APPR_LITE which slows everything down considerable. In the time gap between recording

  • IWeb and constant objects.

    Is this possible not changing my constant objects e.g. header or my logo or some stripes etc ( reload again on my next pages) I would like to reload only content, not the whole page again and again. Maybe someone html guru knows how. Thanks for the f

  • Mobile me movies

    I published my home movies to my "mobile me gallery" a year or two ago.  Is there any way I can find these movies?  I didn't keep any copies.

  • Windows Support Software and Mountain Lion.

    To anybody having difficulty downloading the Windows Support Software through the Bootcamp Assistant, it does infact work, but is incredibly slow. I have successfully installed Windows 7 today, but it took four hours to download the support software.