DEV and quality assurance within the oracle single instance

We have our DEV and QA in a single instance of oracle. Scripts that refer to table in DEV names will be copied on to QA DEV quality assurance tests for unit tests at the end. DEV, extract us data from 5 source systems, one for each State of the United States, which use the same application, so the names of the source tables are identical, and so in our staging area we have a scheme by the State such as TX, GA, MD and we extract data in tables that are identical to the staging tables. As cross us the aggregation state our scripts should refer to TX.employee and GA.employee in the same sql statement.

What is the best design for this using SCHEMAS, DATABASES VIRTUAL PRIVATE, VIEWS, SYNONYMS etc.?





Thank you in anticipation

Published by: user4900730 on March 22, 2011 14:53

user4900730 wrote:
Just for my knowledge, if I found myself in this situation of VIRTUAL PRIVATE databases would make sense here?

I guess that you could possibly use VPD. But it would create major problems if you have always wanted to make schema changes - you could not add a new column to a table in DEV, for example, without this column is also available in AQ. You could not have code in DEV that does not exist in QA. I guess you could really get fancy and use g 11 edition redefinition to have an edition of dev and qa edition but I wouldn't think how to promote prod code in this kind of environment. In addition, editions is a characteristic of the company (at least, I'm not sure if it is an extra cost option) which would tend to be beyond the solvency of the company trying to save on licensing costs by combining dev & qa in a single server non - VM (and even less in the same instance).

You may have your application use any dynamic SQL so that dev could use the DEV_TX while QA scheme used the QA_TEX schema and it was only the schema of TX in prod, but that obviously never gets old very quickly. You can create a single set of synonyms the synonym TX_FOO points to DEV_TX. FOO for users of dev and TEST_TX. FOO for test users, but then you will have to remove qualifiers to schema of all your SQL queries.

In short, an application like you describe trying to share an instance would be a pretty massive undertaking.

Justin

Tags: Database

Similar Questions

  • How to make a backup of the database with RMAN Oracle Single Instance

    People,

    Hello. I use the server of Oracle 11 GR 1 material with operating system Oracle Linux 5.10 database.

    I understand how to back up the database instance in SQL Server with Windows. But do not really understand how to back up the database instance in Oracle on Linux.
    I did it cold and hot backup for the database HRCS90 instance, but both receive the same error message.


    Cold backup is below:

    SQL > startup
    ORACLE instance started.

    Total System Global Area 538677248 bytes
    Bytes of size 2146024 fixed
    528482584 variable size bytes
    4194304 buffers of data bytes
    Redo buffers 3854336 bytes
    Mounted database.
    Open database.


    SQL > shutdown immediate
    The database is closed.
    The database is dismounted.
    ORACLE instance stops.


    RMAN > backup database;

    From backup 25 November 13
    using the control file of the target instead of recovery catalog database
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the backup command to the 25/11/2013 14:26:52
    RMAN-06171: not connected to the target database


    RMAN > backup HRCS90

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-00558: error occurred during parsing of order entry
    RMAN-01009: syntax error: found 'distinctive sign': expected an of: ' archivelog, auxiliary, as, backup backupset, blocks, channel, check, copy, copies, controlfilecopy, cumulative, current, basic data, datafile, datafilecopy, device, diskratio, db_recovery_file_dest, db_file_name_convert, duration, filesperset, for, format, from, full, strength, file, incremental, keep, (, maxsetsize nochecksum, noexclude, nokeep, not, proxy, pool, re-use, recovery, section, skip). ', spfile, skip readonly, setsize, tablespace, tag to validate.
    RMAN-01008: the identifier of the AfDB was: HRCS90
    RMAN-01007: line 1 column 8 file: entry standard


    RMAN > backup database HRCS90

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-00558: error occurred during parsing of order entry
    RMAN-01009: syntax error: found 'distinctive sign': expected an of: ' archivelog, auxiliary, backupset channel, copy, controlfilecopy, backup, common, base data, data file, datafilecopy, remove, diskratio, db_recovery_file_dest, filesperset, format, force, file, include, keep, (, maxsetsize, noexclude, nokeep, not, pool, more reuse, recovery, section, skip, spfile, pass readonly, setsize, tablespace, tag, to).
    RMAN-01008: the identifier of the AfDB was: HRCS90
    RMAN-01007: line 1 column 17 file: entry standard

    While the instance of database HRCS90 is starting, I do hot backup by using the same commands and get the same error message with above cold backup.

    My question is:

    Can any folk tell me specific steps (order by order) to back up a single instance of the database in Oracle with RMAN?


    Thank you.

    Yes, you can restore and recover the backup, but not at the moment. You will only be able to restore and recover at the time of your backup.

    For example.

    If you take backup (mount point with no mode of journal archive) at 06:00 and your grave database crashes at 21:00, you will be able to restore and recover until 06:00. You will find all the changes made to the database between 06:00 and 21:00.

    If you want your database to recover until 9 PM or until a point in time, then you must put your database in log mode archive, and then save the archives.

  • Peut funtion Vmotion and Storage Vmotion with Intel and AMD hosts within the same cluster

    Hi, I can do storage Vmotion OR Vmotion between Intel and AMD hosts within the same group?

    Thank you

    No, it is not possible to vmotion or storage vmotion between CPUs from different manufacturers - I heard rumors that two manufacturers are working on technology that will help in the future-

    If you find this or any other answer useful please consider awarding points marking the answer correct or useful

  • Generate public and private keys within the smart card

    Hi all

    I use this code to generate public and private keys within the smart card.

    KeyPair kp = new pair of keys (KeyPair.ALG_RSA_CRT, KeyBuilder.LENGTH_RSA_512);
    kp.genKeyPair ();
    PrivateKey prikey = kp.getPrivate ();
    PublicKey pubkey = kp.getPublic ();

    This code runs without error.

    I need to obtain the public key of the smart card. So I need to get the public key to a byte array.
    But I can't get these keys in array of bytes of plain text.

    The methods I can get for pubkey object are

    pubkey.clearKey ();
    pubkey. Equals (obj);
    pubkey.getSize ();
    pubkey.getType ();
    pubkey.isInitialized (); only these.

    I use
    Eclipse Version: 3.4.1 (level of agreement of the compiler = 1.4)
    Jcop plugin (to connect with the real map and to test the java code in virtual card provided by JCOP)
    OmniKey5321 (characters without contact) card reader

    What is the reason to get those above methods pubkey object? Is it a version problem?
    How can I get the public key in ordinary byte array? Is this possible?
    If it is not possible, is there a way to get the public key as a certificate of export or something another solution?

    If my script is not a possible strategy, how can I use private public keys to send the applet-specific data? Is there a better way to do it?

    Published by: 863766 on June 6, 2011 12:16 AM
    RSAPublicKey pubkey = kp.getPublic();
    

    then

    pubkey.getExponent(...); pubkey.getModulus(...);
    
  • Provide a name for the new single-instance - distributed environment

    Hello

    I'm not sure about that piece of information in the installation documentation

    Please see

    http://download.Oracle.com/docs/CD/E17236_01/EPM.1112/epm_install_11121/frameset.htm?launch.html
    During Setup in a distributed environment, provide a name for the new single instance that you configure each server. For example, if you use the epmsystem1 of name of default instance on the first server, and you keep the same names on the Server naming convention, you must create new, instance names unique on each subsequent server, like epmsystem2, epmsystem3, and > so now.
    What happens if I use the same path "d:\...\epmsystem1" on all servers in a distributed environment?


    Concerning
    Kumar

    Published by: Kumar 1 October 4, 2011 06:18

    It was originally a 11.1.2 install and then upgraded to 11.1.2.1 with 11.1.2 I think that the names of instances were the same in a distributed environment.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Unable to connect to oracle DB using VBA and you are prompted with the error:-the client components and Oracle network have not been found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or installation of the

    Hello

    It would be helpful to me if someone can give me instructions on setting the version of driver or oracle client required to connect to the the Oracle DB using excel VBA

    My config: -.

    Windows - 8-64 bit

    Excel 2013-32 bit

    The components of the client / I should install, and how to solve the question below...

    I tried the VBA code... but you are prompted with the error message above

    Void Oracle()

    Con Dim As ADODB. Connection

    Dim rs As ADODB. Recordset

    Dim query As String

    The con value = New ADODB. Connection

    Set rs = New ADODB. Recordset

    strCon = "Driver = {Microsoft ODBC for Oracle}"; "." & _

    "CONNECTSTRING = (DESCRIPTION ="& _.

    "(ADDRESS =(PROTOCOL=TCP)"& _

    "(HOST = HostNumber)(PORT=PortNumber))" & _

    "(CONNECT_DATA = (SID = SIDNumber))); UID = username; pwd = password; »

    con. Open (strcon)

    If err. <>Number 0 then

    MsgBox ("Oracle error:" & vbCrLf & err.) Description)

    On the other

    MsgBox ("Oracle DB Connection successful.")

    End If

    End Sub

    I'll replace it with the values of host origin...

    Thanks for the suggestion you till u gave...

    complete solution is in the link below...

    https://itkbs.WordPress.com/2014/07/28/how-to-install-ODBC-driver-for-Oracle-in-Windows-7/

  • Need help to write to Oracle and SQL Server in the Oracle triggering

    We have a third which feeds data for us. Their client application feeds directly to some source tables in our Oracle database 10g. We have triggers on those tables that sort and treat lines as they come.

    We have a new operation and try to write some of these incoming data now to a SQL Server database through heterogeneous services - essentially the same exact data in two databases. I have a related database that works very well for the selection, but I've never tried to write Oracle PL/SQL to write in a DB SQL Server 2008. My first attempt was met with the following error: "ORA-02047: impossible to join the current distributed transaction.

    I found another thread where they say that the only way to do it is by using a stand-alone transaction, but they do not give an example. Here is the section of relaxation that I use:
      select to_char(new_date,'MM-DD-YYYY') into sql_txt from dual;
      insert into mancamp_location@sqlweb
           ("UnitID", "ManCampID", "Lat", "Long", "UpdateDT", "VehSpeed", "VehDirection", "Landmark")
        values (v_truck, f_unit, f_lat, f_long, sql_txt, f_spd, f_dir, f_ldmk);
    Can someone point me to a way to accomplish this simple insertion?

    An example of a standalone trigger is:

    Suppose you have a table in Oracle:

    CREATE TABLE emp_sal
    (
    EMPNO NUMBER 4,
    SAL NUMBER (7.2));

    and a similar table in a SQL server:
    SQL Server:

    CREATE TABLE emp_sal
    (
    EMPNO NUMERIC (4).
    SAL NUMERIC (7.2));

    Then, you can create an insert trigger that replicates the data:
    CREATE OR REPLACE TRIGGER dg4odbc_repl AFTER INSERT ON emp_sal
    FOR EACH LINE
    DECLARE
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    INSERT INTO 'emp_sal"@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB '.
    VALUES (: new.empno,: new.sal);
    COMMIT;
    END;
    /

    -Note the validation, otherwise risk of ORA-6519

    When you now insert a record into the Oracle database:
    insert into emp_sal values (1234, '1200,89');
    the trigger is activated and inserts the record in SQL Server:
    Select * from 'emp_sal"@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB;
    EMPNO, SAL
    ----- -------
    1234 1200.89

    It works fine when you post data insert, but as soon as restore you the insert only data Oracle will be cancelled - data will remain as long as the independent transaction dedicated to its SQL Server insert:

    insert into emp_sal values (1384, '1200,89');
    Rollback;
    Select * from emp_sal;
    EMPNO, SAL
    ----- -------
    1234 1200.89

    Select * from 'emp_sal"@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB;
    EMPNO, SAL
    ----- -------
    1234 1200.89
    1384 1200.89

    So I strongly recommend to use the DG4MSQL gateway which is able to participate in distributed transactions and allows validation/restore transactions.

    DG4ODBC lie on OTN (http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html-online check out the "See all" link for your favorite platform), cloud of delivery of software Oracle (https://edelivery.oracle.com/) or "My Oracle Support". My Oracle support welcomes the latest version 11.2.0.3. In My Oracle Support goto patches and updates, then search for 11.2.0.3 data set Patch 10404530patch: 11.2.0.3.0 PATCH SET for ORACLE database SERVER, choose your preferred platform and see the Readme which CD contains the gateway software.

    Published by: kgronau on April 24, 2012 08:44

  • Convert flat file to XML document and store it in the Oracle database

    First of all:
    I have a flatfile and created an external table to read this file in Oracle
    Now, I want to create an XML document for each line and insert in the Oracle database, I think as XMLtype.
    Could you please give me some information/steps.

    Second:
    Are there performance issues, because every day, I need to check that the XML document stored in the database against the next file.
    Thank you.

    I won't tell it not in the same words that Marco used, but your solution is impassable and an invitation for bad things to happen.

    Wait miserable performance, and you will not be disappointed.

    The concept of total flexibility works up a code that you depend on has no idea what to do with what is playback.
    Will happen to enough short term and is roughly the equivalent of the absurdity of Java to be independent of the database.

    I would recommend you take the concept and consider, with your data volumes, something more likely to succeed.

  • Find and move text within the existing framework of anchored

    I have a great story that spans several pages text. It contains a number of paragraphs that have the following content:

    [empty anchor for an existing character, but the anchor text frame] [important book that contains NO tab] [TAB] [intermediate text containing NO tab] [TAB] [end text containing NO tab] [empty anchor for an another existing character, but the block of anchor text]

    I need a script (Javascript, preferably) that:

    1. find a paragraph that starts with a character of anchor;

    2. find and cut the main text between the character of the anchor and the first TAB after

    3. Paste the main text in text anchored at the beginning of the paragraph;

    4. in the same paragraph, find the final text between the second (and last) TAB and the character of the second (and last) anchor at the end of the paragraph;

    5. glue the final text under text anchored at the end of the paragraph;

    6. repeat 1. -5. for the paragraph all in the same article that starts with a character of the anchor.


    I'm a JS programmer advanced, but new scripts CreativeSuite. I just understood how to search for some text, and I know that the 'parent' of an anchored object is a 'character' - but now to I access the contents of an object anchored to its parent character?


    Even better:

    function movetoanchored(find) {
      var myText = find.characters.itemByRange(1, -1).texts[0];
      var myFrame = find.characters[0].textFrames[0];
      myText.move(LocationOptions.AT_BEGINNING, myFrame);
    };
    
    function main() {
      var myStory = app.selection[0].parentStory;
      app.findGrepPreferences = app.changeGrepPreferences = null;
      app.findGrepPreferences.findWhat = "^~a\\S+";
      var myFinds = myStory.findGrep(true);
      for (i = 0; i < myFinds.length; i++) movetoanchored(myFinds[i]);
      Window.alert(myFinds.length + " moves performed");
    };
    
    app.doScript(main, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "MoveToAnchored");
    
  • create and manage users within the application

    I use the wwv_flow_fnd_user_api to build screens to create, modify, and remove users from the application.

    So far, it all worked ok - I was able to build screens to create, edit and delete users, but I have a problem with the change of password.

    I tried to use the rest_pw procedure, but I have no idea of what it does

    procedure reset_pw)
    --
    -This procedure resets the current user password.
    --
    p_user in varchar2,
    p_security_group_id in varchar2,
    p_msg in varchar2)
    ;

    It takes 3 parameters, and I assumed that the p_msg was the password is reset to the chain. I tried to change to just "password" password changes so far but I have no idea what is new. There is very little information on the use of this API.

    I also tred using the edit_fnd_user procedure and everything works except change the password. For some reason, it remains the same. I guess there is more to the management of password and I was wondering if anyone can shed some light.

    Colin,

    You should stick with the documented API as much as possible, for example, apex_util.reset_pw and apex_util.edit_user.

    The reset_pw procedure generates a random password and automatically sends it to the user, as well as the text of the message you provide.

    I need to see your code to try to debug the problem edit_fnd_user.

    Scott

  • Change the value of "int" one within the arraylist class instance.

    It's my program...

    -Hello.java

    public class Hello {}

    public int a = 5;
    public char c = 'A ';
    }

    -Main.java-

    public class Main {}

    ArrayList < Hello > Hello = new ArrayList < Hello > ();
    Hello.Add (new Hello());

    Public Shared Sub main (String [] args) {}
    int b;
    int c;
    I'm going to get the value of "int a" in the first list of tables and store it in "int b.
    b = hello.get (0) .a;

    Now, I want to change the value of "int a" within the first class of the table
    ///////////////////////////////
    WHAT SHOULD I DO...? //
    //////////////////////////////

    Finally, I'll get the value of "int a" and store it in "int c".
    c = hello.get (0) .a;


    }

    }

    Help, please... >! @! @~

    Well, nothing of this code will compile, but if you corrected the errors, and that was the case, you can replace it with

    hello.get(0).a = 123;
    

    But what you should really do is read all the tutorials you can find.

  • HTTP session and app spring within the single instance of tcServer can connect to separate the GemFire instances?

    In a JVM tcServer, we use the session HTTP GemFire module and also have our own spring application using GemFire.

    Is it valid for the session module to connect to an instance of GemFire via cache.xml and have the Spring application context to connect to an instance of completely separate GemFire (different benchmarks & cache server)?

    To do this, you must ensure that the use of the application of your spring Gemfire is isolated from the session management. Essentially, all you need is to group the jar with your application of spring gemfire. Chargers classes separate webapp then takes care of separation Gemfire contexts.

    -Jens

  • SQLcl throws the Exception on start and stop operating within the scheduled task

    I'm on Windows Server 2012 R2 runs a script TakeCommand (jpsoft.com) as a task scheduled using SQLcl - 4.2.0.15.177.0246.

    The script is invoked, when the account (with administrative privileges) who runs the scheduled task is not connected to the machine.

    The scenario is as follows:

    • servers both windows ServerA and ServerB (virtual servers)
    • ServerA has a SAN connected directly (as E drive)
    • ServerB remotely accesses drive E on ServerA and maps in drive E (guest ServerB cmd > net use e: \\ServerA\e)
    • the problem occurs on server b.

    Corr 04/09/2015: the SAN is not the cause of the errors/exceptions - it's just that the user who runs the scheduled task is not logged on and therefore has no APPDATA

    When SQLcl is called, the following lines are recorded... (italics: private information, "BOLD": SQLcl output not visible when the user connects while work is carried out at the request)

    03/09/2015 12:16:41.979 to connect to the jdbc URL ... (this output is to the batch calling SQLcl - everything below is SQLcl or SQL script)

    Sep 03, oracle.dbtools.raptor.console.MultiLineHistory load 2015 12:18:05

    SEVERE: HIST-013 APPDATA is null

    Sep 03, oracle.dbtools.raptor.newscriptrunner.commands.net.NetEntries load 2015 12:18:55

    SEVERE: NET-013 APPDATA is null

    Sep 03, 2015 12:18:55 oracle.dbtools.raptor.newscriptrunner.commands.net.NetEntries save

    SEVERE: NET-013 APPDATA is null

    03.09.2015 12:18:56: updated information on what will be done

    0 lines merged.

    0 lines merged.

    03.09.2015 12:19:15: updated information on what will be done

    0 lines merged.

    Exception in thread "cleansing" java.lang.NullPointerException

    in java.io.File. < init > (File.java:277)

    at oracle.dbtools.raptor.newscriptrunner.commands.alias.Aliases.save(Aliases.java:132)

    at oracle.dbtools.raptor.newscriptrunner.commands.alias.Aliases.save(Aliases.java:128)

    to oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli$ 1.run(SqlCli.java:356)

    In addition, that everything works fine... the script is executed as planned, as expected, the queued files are created...

    So what I am doing wrong?

    Best regards, Peter

    Message geändert durch stueckl - information server added

    Message geändert durch stueckl - information server deleted - it's a general problem

    If we were talking about developer SQL itself rather than SQLcl, then the solution is simple... you can always force your user settings to a folder accessible in arbitrary writing using the ide.user.dir environment variable just add something like this line to the file sqldeveloper.conf to your installation:

    AddVMOption - Dide.user.dir =

    SQLcl, however, is hard-coded dependency on APPDATA in Windows (and user.home on Linux).  May not be feasible in your case, but in some cases simple, APPDATA can be overridden in the script that launches the SQLcl and the NetEntries and xml SQL history files are read from / written to this file.

    For example: value APPDATA = C:\Temp

  • Looking for Oracle Support Doc that explains + and * conventions used in the Oracle certifications.

    Hi all

    A few months back I saw a (link to an oracle doc) post in the forums of essbase explaining the conventions used by oracle and what they mean when they say that a platform supports the "Software.1. * ' as opposed to '+ Software.1'. I tried Googling for the doc and after an hour of search and do not find that he decided to publish it. I'm sure that the link to this doc has been published by TimG or GlennS_3 or JohnGoodwin. (Sorry for the tags). If anyone knows what talk and relate to this doc, I would appreciate if you can share it and I promise you to save this time. ... Help, please...

    Thank you
    Ted.

    Hi Ted, yes - it's here: https://blogs.oracle.com/proactivesupportEPM/entry/how_to_read_product_versions

    I highly recommend you subscribe to the RSS feed of the blog proactive Support.

  • There is a way to get the "add to bookmark and rss button" within the url bar?

    I think that this two buttons must be in the url bar. Are easier to find and smaller than the bar.

    You can watch the classic extension theme restaurateur restore some features that has been lost with the arrival of the Australis style in Firefox 29.

    You can access the parameter of the extension of the CTR through the Options/preferences button in Firefox/tools > Modules > Extensions

    See also:

Maybe you are looking for

  • Did you get what you need to run the AVG safe search bar?

    When your notice first popped up asking me if I wanted to update, he said with him that he had not yet the ability to run AVG safe search bar. So I waited to download the new version until you have this feature.

  • After upgrading to osx 10.11.4 wi - fi work no more.

    Yesterday I upgraded my macbook 13 "retina end of 2013 for OSX 10.11.4 and from that moment, a wi - fi connection doesn't work anymore. other devices can connect to the internet, but not the mac. More the mac cannot connect with my iphone 6 s hotspot

  • What is the model of my laptop exactly?

    The following information on the bottom of the laptop are:Toshiba1415 S17315 C1.8 30RW/DV WR L 256M xREFERENCE No.. PS141U-01F3WVSERIAL NUMBER. Z2097721P I want to know, what is the model.

  • external hard drive Western digital 500g

    I just bought a new iMac and I want to use my old external hard drive from my old computer based on windows. Is this possible without erasing all the documents, photos, etc.? If it is possible, how should I go about this. Help, please. Thank you.

  • Lost taskbar

    My screen like on "full screen", I can not access the taskbar, time, etc.    Have tried as far as I know. Under Windows XP. Kerry