How to design a database for multi Companies

I like to hear your comments if you have a database that serves multi companies or if you have good knowledge about this subject.
Our data is sensitive and I was thinking on creating a schema for each company but seems that's a lots of work specially when the schema will change.
Do you keep your multi companies data in one schema, if so, what kind of care we need to take to avoid any mishap??
Thanks
Mo

user4018813 wrote:
I'm just getting started attempting to implement Label Security to move our product from a single to a multi-tenant (i.e. customer) architecture. What is the best way to debug Label Security problems? I've tried trace levels 10730 and 10060 using commands like this:
ALTER SESSION SET EVENTS '10730 trace name context forever';
but didn't get a trace file.
I did get a trace file for a 10046 trace. Here's a SQL statement that resulted from that trace:
SELECT "C1","MI_ROWLABEL_3" FROM "MT_DB1"."T3" "T3" WHERE (1=2 )
I didn't specify that 1=2 predicate, so where is that coming from?
Any help would be greatly appreciated.try instead
Event 10730 - Trace Fine Grained Access Predicates
This event traces find grained access (RLS) predicates
    ALTER SESSION SET EVENTS
    '10730 trace name context forever, level 1';

Similar Messages

  • How to use a dictionary for multi languages when displaying mess

    how to use a dictionary for multi languages when displaying messages??

    1st you have to define new messages in the dictionary:-
    1.     We have to open the application.
    2.     Functional administrator responsibility.
    3.     Core services.
    4.     Messages.
    •     Create message button.
    •     Now fill the name of the message that we want to call it from our code in the Code field.
    •     Fill the application name with short name of the application.
    •     Choose the language.
    •     Set the text you want to be displayed.
    2nd, Now in the CO in the in the process form request you will code throw new OAException ("application short name","Code").
    Now run and see the result.
    3rd we want to use Arabic messages, use the same one you have created for saving as an example but you choose duplicate and set the language Arabic.
    •     Run the page.
    •     Choose preferences.
    •     Current Session language = Arabic.
    Now you can see the result.

  • How to create a database for sample code from Tutorial/Book?

    I want to try out the sample code from [http://shop.oreilly.com/product/0636920013471.do] for the book SQL Pocket Guide 3rd Ed.
    I have downloaded the oracle vm/appliance for oracle 11g2 and I have started sqlplus as sysdba.
    I'm feeling overwhelmed with these links describing how to create a database:
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html]
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    (1) What is the command to list the existing databases?
    (2) What is the command to delete an existing database?
    (3) When creating a new database with the create database command, is it necessary to specify the logfile, character set, national character set, datafile, sysaux datafile, undo tablespace, temp table space? Do these have reasonable defaults? I'm not sure what proper directories are to specify for Linux and the examples are for windows.
    Can someone give me a simplified create database command to create a database called 3rdEdPocketGuide? Should I follow the example at [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html] and instead of orcl use 3rdEdPocketGuide?
    (4) What command do I use to execute the script that comes with the book SQL Pocket Guide 3rd Ed? This is the script that has all the drop table, create table and insert commands in it.
    (5) What command do I use in sqlplus to set the current default database prior to running this script? Perhaps this is the connect command? I don't want my script to create tables in the system database.
    (6) I tried the command "connect 3rdEdPocketGuide" and it prompted for a password! Yikes! What password? Do I need to specify a password when I create a database? I cannot tell if I have successfully created such a database or it is just prompting me for a password to thwart malicious users. Is it is possible to create databases which don't require a password or maybe a zero length password?
    Thanks
    Siegfried
    Edited by: user8816970 on Sep 26, 2012 12:01 PM
    Edited by: user8816970 on Sep 26, 2012 12:18 PM

    user8816970 wrote:
    Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.
    Thanks!
    Siegfried
    >Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    above does NOT use SQL*Net to connect to the instance
    >
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.SQL Developer can only connect to the instance via SQL*Net
    >
    Thanks!
    Siegfrieda database in SQL Server is same as schema/user in Oracle

  • How to Design a Page for Both Insertion and Updation

    Hi,
    I have Page where I need to populate a table from Standard PO/AP table and once the save is clicked on the table,
    the data shoudl be inserted in custoim table.
    Ex: Ui table wil have 3 columns and say 5 rows
    - PO#
    - Line#
    - Amount for 'X' purpose
    where PO# and Invoice# is populated and Amount is empty
    User will enter value in Amount column in all 5 rows and click on Save button.
    Now these 5 rows with 3 columns should be inserted into the custom table (PO#, Line# and Amount)
    How Can I design Model Objects for such a requirement?
    Thanks,
    Kamath

    You should create an EO on your custom table and a VO on your EO. As you insert records in the VO, corresponding rows are created as EO rows and when you commit (getOADBTransaction().commit()) in the AM everything would get committed to the DB.
    As far as subject goes of having a common page, everytime you can execute the VO with the bind parameters and check whether a row exists. If it does exist then update the VO Row (I expect the master record to be unique row). Otherwise create a new Row for the master and then correspondingly for the details row.
    Do let me know in case you need additional information.
    Regards
    Sumit

  • How to add multiple databases for a single frontend

    We have a project based on distributed databases and we have to workout on .Net framework.I want to know some information of connecting multiple databases for a single frontend and how can we access them.
    If so we have connected 2 databases for a single frontend in future if I want add one more database to it how it will be possible to do it without disturbing the current connectivity.
    Please help me in resolving this problem.
    Thanks......

    hi,
    what do you mean by connecting 2 databases? can you explain further?
    using entityframework you can connect to different databases
    public class CustomerContext : DbContext
    public ReportContext()
    : base("DefaultConnection")
    public DbSet<Customers> Customers { get; set; }
    and your connectionstring (config file)
    <connectionStrings>
    <add name="DefaultConnection" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=D:\\Database\Project.mdf;Integrated Security=True" providerName="System.Data.SqlClient" />
    </connectionStrings>
    you can add more connection strings on it.
    https://msdn.microsoft.com/en-us/library/vstudio/cc716756(v=vs.100).aspx
    https://msdn.microsoft.com/en-us/library/ms254978(v=vs.110).aspx
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • How to design Flat file for loading attribute dimension in a planning application

    Dear Gurus,
    I have a requirement to extract attribute dimensions from an essbase application and load it to another planning application. I have a dimension called Program and two attribute dimensions Sales Manager, Accounts manager associated with Program dimension in Essbase application. I will Extract these dimensions using Essbase outline extractor. After Extracting the attribute dimensions I have to load these dimensions to planning applications using outline load utility. Kindly guide me how to design the flat file for loading attribute dimensions in planning application.
    Thanks and Regards
    SC

    You could dig through the docs and try to figure out the file format manually, or you could do this the easy way.  Simply use the Outline Load Utility to export your attribute dimension from Planning.  The export file format is the same as the import file format.  You might have to manually add a couple of test members to your attribute dimension so that your export file has some content.  Then simply update the file you exported, and import it.
    (I am assuming you have already manually created the Attribute dimension in Planning, and that you simply need to add members to it.)
    Hope this helps,
    - Jake

  • How to design a system for a bank?

    The company I work for is about to design a system for a bank. This system will be used by office clerks to help their daily works. For example they can handle bank accounts, credit cards, credit products, loans, client data, stuffs like this. It's a kind of accountant system.
    As I don't want to reinvent the wheel I'm sure there are several solutions for this problem. Patterns, case studies, books, real life stories. I'm looking for them.
    Would you be so kind to recommend something I can use?

    I don't know how big a company you're talking about.
    I'd look into ERP systems like SAP,
    Oracle/PeopleSoft, Great Plains, etc.The task is to implement a system with which we can help the for of the office clerks. So we don't have to implement a whole accountancy system from the beginning to the end we just have to implement some kind of frontend and services for the frontend. These services will be used by the frontend and will be connected to the accountancy system of the company ( legacy app written in Cobol ).
    So I need some books, strategies, etc on how to implement, architect a tipical banking app. E.g. What does account (, banking products, loans ) really mean? What kind of tipical patterns should I use?
    I've browsed the web, of course, and I have found "Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions" for example but I'm not sure this is the thing I need. I've found Martin Fowler: Analysis patterns ( closer to what I need, so I've bought it already ). For example that one has a lots of patterns I should use ( Account, Transaction, Accounting Practice ).
    So I'm looking for something similar to the book "Analysis patterns" but with more with strategies and practical information on design and architectures as well.

  • How to connect to database for all the reports FR

    Hi,
    I have developed 100 reports in production client, for testing purpose I have moved to
    test client. How can I connect to database for all the reports at a time?
    Regards
    Taruni

    Hi Taruni,
    You can connect to the database connection for all the reports through workspace in HFM.
    Connect to HFM Workspace-->click on Explore option-->and click on Tools-->click on Data Base Connection Manager and change the respective connections from Production Instance to Test Instance with required information, and than you will be able to connect to Test database for all the reports at a time.
    Regards,
    Srikanth

  • How to design a table for Billing purpose

    hi all
    I want to develop a software for Billing purpose
    A company wants to record all sales in computer and at the month end wants to print out billing for all clients I have design this in foxpro and in Foxpro we did that when new month will start then new table generate like Crd_0707 (Credit month year).
    now I want to develop in oracle how I should start this project I mean who can I design tables.
    thanks

    If you understand relational theory and design shik Date's books. What you need to understand before porting an application from another database to Oracle is how Oracle works.
    If you do not know relational design then you need to learn it long before you start any porting project.
    If you know relational design then read the Application Developers Guide - Fundamentals, plus the first few chapters of the SQL manual up until the syntax diagrams start. These chapters identify the single row and aggregate functions that Oracle provides and introduce optimizer hints for tuning while the later chapters provide the syntax for DDL: create table, create view, etc .... You will also want to read the PL/SQL Users Guide and Reference then look at the supplied PL/SQL Packages and Types manual.
    After reading all this you meet the minimum requirements to work with Oracle, and I really do mean minimum.
    HTH -- Mark D Powell --

  • How to set up database for form application in app. server 10g r2

    Hi Friends and Bgrant.
    I get user compiled fmb file.
    I did not find componant in app. server.
    However, I can see form server ment with 3 subitem : form compiler, formmigration and run form on the web.
    The form application is supported by database. Other person already configured server for application .
    I put a URL in URL field in run form on the web. I can see install ed successfully! Oracle application Server. Forme server. Oracle application server 10g. title: welcome oracle application server
    after clicked OK button, the page is grey blank without any inforamtion to be displayed. No error message. status bottome as done. the page title as Oracle application server form server.
    SO I think that i need to creade a datasource in app. server.
    But I do not know how to fill field.
    I can log into database from SQL*plus in server PC.
    In datasource page in app. server: i copy a default ORCALEDS information
    with new ID and password. it does not work
    hereData Source Class:
    JDBC URL :
    JDBC Driver:
    Location
    Transactional(XA) Location      
    EJB Location
    Thanks for any help!!
    jim

    Thanks for help!
    I fixed issue of database connection with new issue.
    Only display first form setting (first URL) for 4 different URL
    URL:
    http://salerpt.com/forms/frmservlet?config=emis-srmenu
    fmx file Location as C:\OraMid\forms\salerpt-Forms fmx name as srmenu.fmx in same directory
    fmb file location as C:\OraMid\forms\salerpt-Forms_source fmx name as srmenu.fmb in same directory
    # Single Sign-On OID configuration parameter
    oracle_home=C:\OraMid
    in formweb.cfg file
    baseHTMLjinitiator=basejini.htm
    workingDirector : workingDirectory= blank. but C:\OraMid\forms\salerpt-Forms right now
    # Forms runtime argument: which form module to run
    ##form=test.fmx
    ## i moved bottom section of form section in here and before
    line as Forms runtime argument: database connection details
    comment two line
    #jinit_exename=jinit.exe
    #jinit_mimetype=application/x-jinit-applet;version=1.3.1.22
    I create 4 sections as
    form=srmenu.fmx
    width=1200
    height=700
    pageTitle=Sale Information System (SIS)
    form=xxxx
    net 3 form setting
    However it only display one form interface that i put in( 4 different URL. only display first URL)
    It seems that one formsweb.cfg, it doesn not support multip form application.
    I have 4 small forms application with 4 URL for one formsweb.cfg.
    What should I need to do?
    I am waiting for your help!
    JIm
    Edited by: user589812 on Nov 24, 2008 1:49 PM

  • Need guide on how to design LabVIEW layout for displaying an output from Kelly Controller to control the CompactRio

    Hi guys. Do need some help here.
    My task is to design a LabVIEW design shematic to display the regeneration current drawn from the BLDC motor through Kelly Controller with an output voltage range of 0-5V. The Kelly Controller is to communicate with the CompactRio. However, I do not know how to start it and I'm kinda new to LabVIEW.
    Really appreciate any kind help and guide that can progress me ahead. Thanks.

    Hi kienyang90,
    CompactRio guide can be found in NI website via this link http://www.ni.com/pdf/products/us/fullcriodevguide.pdf 
    By reading the guide, you will get an idea on how it works.
    To connect compactRio with external module or sensor, you need an i/o module.
    for example an analog input module is this one http://sine.ni.com/nips/cds/view/p/lang/en/nid/208798
    You have to pick modules depend on what kind of output source you are going to give to the compactRio
    Hope this help
    TuiTui

  • How to design block diagram for axi tpg and axi vdma on zedboard using vivado 2014.4 and sdk c application

    Hi,
    I am working in image processing project ,but currently i want to use tpg ip and vdma ip to write frame data in ddr3 on zedboard,please provide me vivado block design and sdk c application for that
     

    Please don't post the same thing multiple times. This one is fine:
    http://forums.xilinx.com/t5/New-Users-Forum/how-use-axi-tpg-and-axi-vdma/m-p/638588

  • How to use local database for Education Portal

    Hi All,
    We are implementing a Education Portal (learning Solution) and here are our requirements
    1. Course details are stored in R/3 portal
    2. When users login to the education portal, course catalog should be displayed with all the details and here the course catalog should not be displayed directly from R/3.
    3. course catalog should be read from some local database or XML ( how to update the local database/ XML from R/3 data periodically)
    4. Once when user sees the course details, if he wants to buy the course, he will register and do the payment.
    5. User details should be stored in the local database and only if he do the payment and his registration details will be stored in the R/3.
    Is any one have any idea how to go ahead with the above function and give some inputs.
    Regards
    Ponnusamy

    Hi,
    Basically, you would have to use plain JDBC / Open SQL or some persistence framework on top of it (e.g. JPA if you're on Java EE 5 / NW CE 7.1, or EJB CMP, JDO, Hibernate with previous NW releases) to store and load data in the local DB. For updating the backend ("R/3") you would use SAP JRA which is based on SAP JCo.
    Search for these terms on help.sap.com and you will find plenty of information about it.
    HTH!
    \-- Vladimir
    PS: Once again, I'd like to remind you to read the [Rules|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement], in particular regarding cross-posting. Violating the rules may result in banning your user.

  • How to design interactive pdf. for multiple additions and saves???

    Using LiveCycle designer -  Can anyone clarify how we can let others make multiple additions and saves to an interactive pdf. I created in Live Cycle Designer 8.2.1...
    I have created an interactive pdf. with LiveCycle designer and sent to client.
    Is there any way I can give them ability to save the pdf. make  multiple additions and saves and send back when they have completed it?
    or even pull up the file make changes and resend at some point in the future without having to fill in all form field again?
    Thxz much,
    JR

    Sorry but this is the wrong forum (this is for the Collaboration Services). You may want to try the LiveCycle Designer forum:
    http://forums.adobe.com/community/livecycle/livecycle_es/livecycle_designer_es

  • Databases for Multi Time Zone

    We got two different SQL Server which are running SQL Server 2008 R2 and soon we are upgrading to one SQL Server 2012. Both are running in different time zone
    I been given a task that whether is it possible to publish databases on One Server with different Time Zone( just to reduce the cost).
    we got  1000+ SP's which uses Getdate() and GET date UTC function. 
    My Question is that, is it possible to publish databases on a single server with multi Time zone and if yes then how do i manage those. 
    Thanks

    Hi,
    Agree with the previous comments. The workaround is to use SWITCHOFFSET() function to calculate the time based on a time zone offset.
    The following example uses SWITCHOFFSET to display a different time zone offset than the value stored in the database.
    CREATE TABLE dbo.test
        ColDatetimeoffset datetimeoffset
    GO
    INSERT INTO dbo.test
    VALUES ('1998-09-20 7:45:50.71345 -5:00');
    GO
    SELECT SWITCHOFFSET (ColDatetimeoffset, '-08:00')
    FROM dbo.test;
    GO
    --Returns: 1998-09-20 04:45:50.7134500 -08:00
    SELECT ColDatetimeoffset
    FROM dbo.test;
    --Returns: 1998-09-20 07:45:50.7134500 -05:00
    See more details here:
    SWITCHOFFSET (Transact-SQL)
    http://msdn.microsoft.com/en-us/library/bb677244.aspx
    Using time zone data in SQL Server 2008
    http://blogs.msdn.com/b/sqlprogrammability/archive/2008/03/18/using-time-zone-data-in-sql-server-2008.aspx
    Thanks.
    Tracy Cai
    TechNet Community Support

Maybe you are looking for