Database design question

Hello, I have a one-to-many relationship problem when designing a store management system. Each store can have several names, but there at least a name. Any suggestion? Thank you

Try this:

CREATE TABLE MyStores

(

--E t c...

, Store_Name_Id VARCHAR2 (7) NOT NULL

CONSTRAINT Fk_Store_name

REFERENCES Store_Names_Tab (Name_Id)

-- ...

)

Tags: Database

Similar Questions

  • Foreign keys without ON DELETE CASCADE; Database design question

    It's the 3rd company, while I work, where I see that created foreign keys
    ON DELETE CASCADE
    clause.
    My colleague said that it is created without the ON DELETE CASCADE clause in order to complicate the deletion of data (records of children). Thus, for codes of the Purge and archive, before we delete the parent table we must remove from the child table first.

    Occasinaly, something is wrong and we will end up disabling FKs make them all and then purging, archiving, etc...

    So, is it not better to create foreign keys with the clause ON DELETE CASCADE, rather than having all these hassles?

    Experience, no matter what you think?

    Personally, I am firmly in the removal of the brand of hard data camp. In the vast majority of cases, trying to remove an active parent is an error if the user must be informed of what they are trying to do and must make a conscious effort to do so (in other words, remove first the children).

    John

  • ISE design question

    I have a few design questions about ISE v.1.0.4.573

    1. The ISE 3395 gigabit ports are supported on the aggregation of links?  How can I use all 4 ports uplink?
    2. When you perform an installation of 2 x 3395 HA, is there a connection of heart rate between the two ISE or they will use the same link to the network of pulsing and synchronization?
    3. I'm designing ISE with WLC. My setup WLC (5508) looks like 5 floors with different VLAN but same SSID. How can I do ISE authenticate in this scenario because WGB AP is not supported in ISE v.1.0. Is there a work around for this type of WiFi to the ISE configuration?
    4. Continuous configuration above, roaming from one floor to another floor after changing of Vlan, the user will be re - authenticate or use the same session?

    Thanks for the help.

    Kind regards

    Zohaib

    1. the current version does not support the aggregation of links...

    2. they use the same link to the network of pulsing and synchronization.

    3. my suggestion is to assign your SSID, a group of interfaces, containing all interfaces belonging to your VLAN, on your WLC and set AAA replacement. And then, at ISE, create authorization profiles include the appropriate VLAN. Use the Called-Station-ID RADIUS attribute with your MAC address of the AP as a condition.

    4. they use the same session.

  • OLTP database design...

    Dear team,

    I would like to know some books / links that explains the concepts of OLTP database design...

    If one of the experts has done this before, please share experiences and ideas...

    Thank you
    NIC...

    Thanks for the correction,

  • Why sql sever database design is used for essbas?

    Hello
    I'm new on Hyperion technology. I would like to know why we use any RDBM as sql sever design of database for essbase, which in itself is the database. What is the main difference between these two databases?
    My understanding is that law Essbase as same as SSAS for cube and the strengthening of the dimension. And they use the database design to store tables and other information.

    Thank you

    A relational database can be used for a number of reasons with Essbase (and in some cases). It comes
    1. a repository for system tables for Shared services, EAS, Studio, EPMA, workspace, etc. of financial management
    2. a data source to load Essbase
    3. a workspace for transformations

  • Database design issues

    Y at - it a forum that deals with issues of General database design, such as the definition of primary keys, unique constraints, Check constraints, indexes, etc.?
    I searched but could not find it. Maybe I missed it. Thank you.

    General, database or SQL/PLSQL:

    http://forums.Oracle.com/forums/category.jspa?categoryID=18

  • database design patterns

    I would like to learn more on "database design patterns ', on the internet, I can't find good web page for this.
    It should describe what data models are performed all list and describe when to use them.

    CharlesRoos wrote:
    Design patterns traditional relational database transactional table is what I'm looking for.

    There is not really such a beast - or at least no I ran into when dealing with RDBMS designs. The approach that is usually used is a "high level data model" (often called an entity-relationship diagram). This DR. would then become the plan of action for the implementation of the physical database model.

    Also such patterns exist in the database. Simpler is so-called ' header and lines plan tables "which should explain to create 2 tables and link/join with next path and it can become such performance or other problems with this model and so on.

    This isn't really a model - is standardization and what is expected of relations in 3NF.

    Also, it is wrong to assume that a "+ header - and - line-tables +" exist purely for performance problems. In fact, it can actually be slower done as 2 separate table (using 3NF) more simple using only one table (2NF).

    I remember a design methodology called Tetrach (not sure of spelling) I have done a few courses in, in the 1980s. It deals with the prediction of the performance of the relational data models. Simply put - if you have an invoice that usually consists of a single header line and 20 lines of line, processing invoices will require an average of 21 St / s (logical or physical) by Bill. 2NF, it will take a single e/s - however, the data model and then imposes a limit of 20 lines per invoice (never forget the story on such a structure coding problems).

    However, if the system is I/O forcing then? You decide on a single i/o per invoice (by limiting the flexibility of the data model) or 21 St / s per invoice (and face the real possibility that the system may be impossible to successfully treat all invoices received in time for shipment orders)?

    Well, this isn't really that relevant more with modern equipment of today and storage systems - but it still illustrates to the point that performance alone is not the primary consideration for database designs.

    When to use patter 'create 2 separate identical tables to separate the same kind of business objects, for exmple GoodTeachersTable and BadTeachersTable' and explain why and when creating this model. And so on. There are 30 such techniques of model I guess than that. University teaches only that we have "one-to-many" - thing in the world, that I'm not interested.

    I think you're confusing models of object oriented with relational data modeling design. There is no "+ patterns +" in the data model relationship - with the exception of different normal is a get - with the fundamental objective of correctly normalizing the data model to 3NF as part of a proven recipe of a robust, functional and scalable data model design.

  • Database design considerations

    I'm a student project in Oracle 10 g. I wanted to know if anyone could mention some design considerations that go into the conceptual and logical database design phases. I know space cannot afford here, so if anyone has links to resources, I would be very grateful.

    Lasirius,

    Here are some useful links for

    http://en.Wikipedia.org/wiki/Database_design

    http://woork.blogspot.com/2008/09/10-useful-articles-about-database.html

    http://www.evolt.org/article/Beginning_Database_Design_Part_I/18/27137/index.html

    And to discover the concepts of oracle database.

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14220/TOC.htm

    Concerning

  • relational database design

    I apologize in advance for the banality of this question, I have been the design of Foundation for my business for years and I am comfortable with html and recently designed a site complex havig susssed .css and coldfusion code written however dw.
    I CANNOT MAKE THE LEAP TO GET MY HEAD around RELATIONAL DATABASES and want to integrate some forms of dynamic application (which I can code in CF).
    Can someone point me to a resource that will walk me but how to build a simple relational data base (then a complex) that send me to sleep or make sure my eyes glaze.
    Its a brain block which now cause me stress, but I just don't understand...
    Save me

    Ta

    No worries. I can sympathize with trying to grasp new concepts. problem is that double signage makes just more difficult for people to follow the wire (s).

  • Newbie design question

    Try to understand how it works under the covers, so I can make better design decisions.

    I understand that phonegap is basically web browser running your application on the phone. When you build your installation iphone (I've never done that), is that basically take all your web stuff (files, html, images, js, etc) and wrap them as an "application" and put them on the phone of the person (in your "app") and run the whole thing locally (via phonegap) as a web server? That means that when you load index.html, it loads a local copy (on the phone) and not a http://mywebsite/index.html version.

    If this is the case, then I guess that means php calls are made via ajax or something, to my external Web server, and I guess I have to whitelist (I read that somewhere) or something.

    but the main key, I guess, is that the app on the phone seems to work a browser and small database web server too?

    Not quite.

    Assets (html, js, css, graphics) is stored in the app bundle and displayed in a native Webview component.

    There is no local server involved.

    PhoneGap is just the tool. It prepares your hybrid application signed .apk, .ipa, etc.

    PhoneGap is not active at run time! There is just a piece of javascript, which is included in your assets, to act as a bridge between your local native javascript and plugins.

    Scripts on the server side are to perform on a remote server on communication ajax (or via a socket). You design your app server MVC - ish.

  • Restore database HRCS90 question: until THE TIME which was before the RESETLOGS

    People,


    Hello. On December 2, 2013, I backed up my instance of database with RMAN with Oracle Linux 5 HRCS90. the backup of the database to run correctly. 2 files 'full_0doqhbqc_13_1' and 'full_0eoqhce9_14_1' are saved in the /backup_database_instance_HRCS90 directory.


    Because my HRCS90 database has been damaged, I need to restore the database to HRCS90 until the time 02-Dec_13 when it is saved. I have run the commands below:

    RMAN > RUN {SET until TIME ' to_date (February 12, 2013: 00:04:56 ',' DD-MM-YYYY: HH24:MI:SS') ";} RESTORE THE DATABASE ;}

    Its release: complete the restore to February 11, 14.

    SQL > alter drop database datafile offline 121;

    Its release: alter database.

    SQL > alter database open resetlogs;

    Its release: alter database.

    SQL > shutdown immediate;

    SQL > startup;

    Its release: mounted database. Open database.


    So I can execute select * TableName off HRCS90 the database successfully.

    Because the HRCS90 database is corrupted again, I need to restore it again on December 2, 2013. I have run the commands below:

    In the directory/u01/oradata/HRSC90 /:

    [user@linux HRCS90] $ rm *.dbf

    RMAN > Connect target;
    RMAN > RUN {SET until TIME ' to_date (February 12, 2013: 00:04:56 ',' DD-MM-YYYY: HH24:MI:SS') ";} RESTORE THE DATABASE ;}

    Its output:

    RMAN-03002: failure of the set command
    RMAN-20207: until the RECOVERY WINDOW, which was before the RESETLOGS.

    My questions are:

    Is that mean 'UNTIL TIME' before the RESETLOGS? How to solve the problem to restore the HRCS90 database?


    Thanks in advance.

    you have run this on your system.correct source?

    Try

    (5) name of the element: / home/user/OracleDB_Home/dbs/c-612194578-20131202-00

    Check the included file: cash SNA: cash 1947113 time: 01-DEC-13

    This backup must be available on the local system.

    HTH
    Anuj

  • Restore/recovery of database HRCS90 question: psimage2.dbf

    People,

    Hello. On December 2, 2013, I backed up my instance of database with RMAN with Oracle Linux 5 HRCS90. the backup of the database to run correctly. 2 files 'full_0doqhbqc_13_1' and 'full_0eoqhce9_14_1' are saved in the /backup_database_instance_HRCS90 directory.


    Because my HRCS90 database has been damaged, I need to restore the database to HRCS90 until the time 02-Dec_13 when it is saved.

    First, do not use SET up to THAT. I have run the commands below:

    RMAN > CONNECT TARGET;

    RMAN > RESTORE database;

    The system is in place the error message as below:

    RMAN-06956: create the data file failed; Retry after the withdrawal of the /u01/oradata/HRCS90/psimage2.dbf of the OS.


    So, I delete the /u01/oradata/HRCS90/psimage2.dbf file and do not have a copy of it.

    I run RESTORE DATABASE and the psimage2.dbf file is re-created.

    The output from the RESTORE DATABASE command is:

    Restoration complete, duration: 00:15:54

    Finished restore at February 1, 14.

    Then I run the following command:

    RMAN > RECOVER DATABASE;
    Its release: WARNING: media recovery until all SNA 1947113. Finished recover at February 3, 14.

    Second time, because I need the database prior to 12/02/2013 when she has been saved, I run the command below:

    RMAN > RUN {SET until TIME ' to_date (February 12, 2013: 00:04:56 ',' DD-MM-YYYY: HH24:MI:SS') ";} RESTORE THE DATABASE ;}

    The commands run correctly and restore complete above.


    Then I run the command below:

    SQL > ALTER DATABASE OPEN RESETLOGS;

    His output: failure to change the db command. File 121 was created in the future of incomplete recovery. Data file 121: u01/oradata/HRCS90/psimage2.dbf.

    RMAN > RECOVER NOREDO of DATABASE;

    Its release: recover command failed. Data file 121 must be restored.


    121 data file is the u01/oradata/HRCS90/psimage2.dbf file. I have made sure the directory/u01/oradata/HRCS90/has rwx for all users and groups permissions.


    RESTORE DATABASE SET up THAT do not recreate the file psimage2.dbf RESTORE DATABASE while recreate the file psimage2.dbf.

    I deleted the psimage2.dbf file and cannot resume. I can't find the ORA-1248 by DBPITR article using a current controlfile (Doc ID 1558515.1).

    My question is:

    Any folk can tell me how to RESTORE/RECOVERY of database HRCS90 with the VALUE up to THAT in other way for example using the file command?

    or how to fix psimage2.dbf file that has been deleted by me?

    Thanks in advance.


    Congratulations! Your database is open so not required recovery (recovery database noredo).

    I'm glad that it worked for you. Since you open this database with reset logs, it is recommended that you take a Level0 backup costs.

    HTH
    Anuj

  • vSphere 5.0 and 5.5 SSO design question

    Hi all

    Currently we have a configuration with two virtual center servers installed.  One at our Production site and one on our site of Dr.  Our site of Production and the location of the DR are in a different location in the city, they are currently on a dish network, but this is subject to change to treat us like a totally different place.  We also currently do not use vCenter Linked Mode because we don't have two vCenters and like separation, however if its requried we can install it.

    The plan is to upgrade the DR site first to iron out everything before the upgrade of the production, with that said we where thinking about install SSO as such:

    http://www.VMware.com/files/PDF/vCenter/VMware-vCenter-Server-5.5-technical-whitepaper.PDF

    Page 11: I joined the design image

    We think where to install the first SSO on the site of DR and when completely modernize us our production site install an another SSO as another site to keep the replcatio SSO in place aka option:

    vCenter Single Sign-On for an additional vCenter server with a new site

    The end config looks like the second ssoconfig2 of attachment

    I wanted to just a few oppinons on this choice and if this is the best way to go with what we design.


    Any help is greatly appricated,


    Thank you

    Hello

    I mean, this is Option 3 will be necessary if you want to use related modes.

    With regard to your questions:

    1. Yes, you can keep the two separate vCenter and a simple installation or see option 1 install both

    2 linked Mode requires option 3 works. But you can still use Option 3 without related modes if you want to have the replication of single-domain SSO (means that if you create a user in SSO VC1, it is replicated to the other SSO).

    Let's say you do not use option 3 for your second vCenter, subsequently if you decide to use bound mode, you must uninstall and reinstall SSO for your second vCenter to shape Option 1 to 3 Option replication of your first vCenter

  • vCenter Expansion Design Question

    Hi all


    Currently, I have a relatively small environment with 4 guests in our location of companies in the United States and two guests to a second place in Europe.  I find that the number of virtual machines running in our environment Europe develops more and more.  I've been actively weighing the merits of adding a vCenter Server Appliance to our environment in Europe.  I have a few questions which I hope are simple which you can help with.  If you experience of the best that I look at the documentation for my answers, links to documentation would be very useful!

    1. If I add a vCenter Server Appliance to our VMWare Cluster in Europe, it connects to the database of vCenter running in our business location?  Alternatively, the vCenter device would simply manage the cluster in our European office location?
    2. If the answer to 1 above is that the device will manage vCenter only clusters in Europe, does that mean that I will be able to see an environment at a time when I opened my vSphere client?
    3. Require the device vCenter vCenter another license?

    This will be it.  Thanks in advance for your advice!


    S

    Hi Sean,.

    If I add a vCenter Server Appliance to our VMWare Cluster in Europe, it connects to the database of vCenter running in our business location?  Alternatively, the vCenter device would simply manage the cluster in our European office location?

    vCSA comes with a database (vpostgres) built-in and you can also link it with externam oracle DB (MSSQL is not supported). And NO, he won't already existing DB.

    If the answer to 1 above is that the device will manage vCenter only clusters in Europe, does that mean that I will be able to see an environment at a time when I opened my vSphere client?

    Yes, you need to connect individually as related modes is not supported on vCSA.

    Require the device vCenter vCenter another license?

    VCSA Yes you have to purchase another license to manage the two hosts.

  • Fashion design question (several sites)

    Hello

    I test View5 to vSphere5 and I have a question of design across multiple locations. See the image below. We have two locations, each has its own data center. Unfortunately, these two specific locations are currently connected only via an internet VDSL 20/20 Mbit connection and it is now improving.

    The LOCATION 2 is actually an office with many clients and also its own small data center (also based in vSphere5). The primary data center is in LOCATION 1 and is where I would put all my workstations virtual (not only for LOCATION 2, but for all the other places as well) and where the view connection manager will be. The problem is that on the LOCATION 2 (office) there are some servers of files users on this site using heavily.

    Question No. 1:

    (a) selling virtual offices on LOCATION 1-> in this case PCoIP will provide me with a pretty good connection, the problem is to access the file is used on 1 LOCATION of virtual desktops (it's GREEN Lane).

    (b) selling virtual desktops on the LOCATION 2-> in this case will have to go through the Manager connections, then the Virtual Office on the 2 LOCATION and to the customer... no idea no how this work (it's the PURPLE path)... it seems like a heavy network load? However, that could result in a quick access to files on the LOCATION 2 servers.

    Another solution is to put the Connection Manager view also in LOCATION 2, but that would make me administer another system, and I want to keep things simple.

    What do you suggest me?

    Question No. 2:

    I have to route traffic to LOCATION 2 to 1 of the LOCATION where the view connection manager lives by VPN or is the PCoIP traffic encrypted by itself and is OK to put it in the DMZ (controlled)?

    Thanks for the help!

    1986788.png

    The Orange path in the attached picture would be more precise if secure tunneling has been disabled?

Maybe you are looking for

  • White screen at startup - Equium M70

    I have an Equiem M70-337. This morning 09/03/2007 the screen went blank for no apparent reason. I hear the startup hard disk but nothing appears on the screen. I plugged the notebook on my desktop monitor and I get a bar screen Windows XP Home with t

  • inverse tangent broadband (2 entries) inaccurate

    Hi all I have a few accuracy problems with the inverse tangent of broadband. I'm in my LabVIEW FPGA code but am troubleshooting in the workstation environment. Basically, compared to the inverse tangent of broadband the thoroughput high, we're much l

  • "To hardcode ini file settings" or "number of automatic review with the turtle."

    Hi all We use a SVN repository with Tortoise here in our company for version control. I would like to get the revision number hardcoded in the Application (.exe version). I have already discovered, that there is a tool that can scan a directory and r

  • Cannot install Windows XP on my Probook 4520 s in mode ACHI... can not find the correct drivers anywhere!

    Hi all! I'm a newbie here, please help me. Just bought a new laptop, 4520 s and can not install windows in AHCI mode. Very strange things are below: -I'm reading on this tread: http://h30434.www3.hp.com/t5/Operating-systems-and-software/No-SATA-AHCI-

  • MSOE. DLL

    Windows corrupted on my old PC, bought a new one and went to put the old drive hard in as an external drive. Now I'm going to pull the old emails and contacts from outlook and I can't get my outlook to launch. I get the message file MSOE. DLL could n