Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: test and production on same database ??

Re: test and production on same database ??

From: Andreas Michler <Andreas.Michler_at_adicom.de>
Date: Thu, 13 Jan 2000 11:19:33 +0100
Message-ID: <387DA6B4.B57F6BB5@adicom.de>

Easy Solution:
Create the same tables on different schemas (Users) and schemanmes before tables:
Ex. for table test and user datauser testuser as user datauser
create table test (field1 varchar2(10)); as user testuser
create table test (feld1 varchar2(10));

select * from datauser.test;-- select from the data select * * from testuser.test;-- select from test

2.nd Solution:
Create the same tables on different schemas (Users) and work with synonyms. Ex. for table test and user datauser testuser as user datauser
create table test (field1 varchar2(10)); as user testuser
create table test (feld1 varchar2(10));

create public synonym test for datauser.test; select * from test; -- now selects from the data

drop synonym synonym test;
create public synonym test for testuser.test; select * from test; -- now selects from the test

Catherine VOGEL wrote:

> Hello
>
> Here is french asking !
>
> How can we do for having on same database one access on data of users and
> another access on data for tests ?
>
> congratulation for attentive responses
>
> best regards
>
> Jean-François Burgos
> A++

--



ADICOM Informatik GmbH
Andreas Michler
Wiesfleckenstr. 34
72336 Balingen
Tel: 07433/9977-57,Fax: -90
E-Mail: Andreas.Michler_at_adicom.de
http:\\www.adicom.de
Received on Thu Jan 13 2000 - 04:19:33 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US