Hi
I'm a bit lost with snapshot creation, so can I have an easy (but with
all details : *.ora, user grants, *.sql, db links, ...) example of
snapshot between :
Server1 :
instance : I1
oracle user : user1
table : user1.table1
Server2 :
instance : I2
oracle user : user2
snapshot : user2.table1 as select * from user1.table1;
Thank you for your examples.
Bernard bs*******@free. fr http://bsegonnes.free.fr 5 7973 bs*******@free. fr (Bernard Segonnes) wrote in message news:<cc******* *************** ***@posting.goo gle.com>... Hi
I'm a bit lost with snapshot creation, so can I have an easy (but with all details : *.ora, user grants, *.sql, db links, ...) example of snapshot between :
Server1 : instance : I1 oracle user : user1 table : user1.table1
Server2 : instance : I2 oracle user : user2 snapshot : user2.table1 as select * from user1.table1;
Thank you for your examples.
Bernard bs*******@free. fr http://bsegonnes.free.fr
Hi,
Please do the following.
Locate Server1 and get the Tnsnames entry from the Tnsnames.ora file.
Paste this entry in the Tnsnames.ora file of the server2.
I am assuming that you are trying to connect to server1 from server2.
Please find out the schema name and password for User1.
assuming userid= user1 and password =password.
Please query the following against the database on sever1.
Global Database Name would be the output from Select * from
global_name.
Service Name would be the output from Select * from v$database.
Assuming that the above queries fetched me the following results.
Global Database Name = sap.patni.com
Service Name = sap
You should have a create database link priviledge to create the link.
Please ask your DBA to provide it to you.
Please run the following to create the link.
create database link sap.patni.com
connect to user1 identified by password
using 'sap';
I think creating a snapshot is easier than making it work through a
database link. :-)
Aamir mo************@ patni.com (Mohammad Aamir) wrote in message news:<46******* *************** ****@posting.go ogle.com>... bs*******@free. fr (Bernard Segonnes) wrote in message news:<cc******* *************** ***@posting.goo gle.com>... Hi
I'm a bit lost with snapshot creation, so can I have an easy (but with all details : *.ora, user grants, *.sql, db links, ...) example of snapshot between :
Server1 : instance : I1 oracle user : user1 table : user1.table1
Server2 : instance : I2 oracle user : user2 snapshot : user2.table1 as select * from user1.table1;
Thank you for your examples.
Bernard bs*******@free. fr http://bsegonnes.free.fr
Hi, Please do the following.
Locate Server1 and get the Tnsnames entry from the Tnsnames.ora file.
Paste this entry in the Tnsnames.ora file of the server2.
I am assuming that you are trying to connect to server1 from server2.
Please find out the schema name and password for User1.
assuming userid= user1 and password =password. Please query the following against the database on sever1. Global Database Name would be the output from Select * from global_name. Service Name would be the output from Select * from v$database.
Assuming that the above queries fetched me the following results.
Global Database Name = sap.patni.com Service Name = sap
You should have a create database link priviledge to create the link. Please ask your DBA to provide it to you.
Please run the following to create the link.
create database link sap.patni.com connect to user1 identified by password using 'sap';
I think creating a snapshot is easier than making it work through a database link. :-)
Aamir
Actually database links are a prerequisite for snapshots.
So what are you talking about?
Sybrand Bakker
Senior Oracle DBA
Thanks for your answers.
After 3 days of reshearches I've finaly created my snapshot. It
wasn't really clear from Oracle PDF documentation !
- I didn't knew a database link was required to have a snapshot.
- I didn't knew SYS couldn't create a database link (nor snapshot) for
another user.
- I didn't knew the 'dual' stuff.
- Oracle in not case sensitive when you type commands. But it IS case
sensitive for the ORACLE_SID.
- etc...
I wish the next Oracle version will have a better documentation for
beginer :-)
So here is the few lines I was looking for (for 3 days !) :
connect sys/sys as sysdba;
grant create database link to user2;
grant create materialized view to user2;
connect user2/user2;
create database link I1 connect to user1 identified by user1 using
'I1';
create materialized view testmv as select * from
user1.myTable@I 1,dual; bs*******@free. fr (Bernard Segonnes) wrote in message news:<cc******* *************** ***@posting.goo gle.com>...
Hi
I'm a bit lost with snapshot creation, so can I have an easy (but with
all details : *.ora, user grants, *.sql, db links, ...) example of
snapshot between :
Server1 :
instance : I1
oracle user : user1
table : user1.table1
Server2 :
instance : I2
oracle user : user2
snapshot : user2.table1 as select * from user1.table1;
Thank you for your examples.
Bernard bs*******@free. fr http://bsegonnes.free.fr
Hi,
Please do the following.
Locate Server1 and get the Tnsnames entry from the Tnsnames.ora file.
Paste this entry in the Tnsnames.ora file of the server2.
I am assuming that you are trying to connect to server1 from server2.
Please find out the schema name and password for User1.
assuming userid= user1 and password =password.
Please query the following against the database on sever1.
Global Database Name would be the output from Select * from
global_name.
Service Name would be the output from Select * from v$database.
Assuming that the above queries fetched me the following results.
Global Database Name = sap.patni.com
Service Name = sap
You should have a create database link priviledge to create the link.
Please ask your DBA to provide it to you.
Please run the following to create the link.
create database link sap.patni.com
connect to user1 identified by password
using 'sap';
I think creating a snapshot is easier than making it work through a
database link. :-)
Aamir mo************@ patni.com (Mohammad Aamir) wrote in message news:<46******* *************** ****@posting.go ogle.com>...
bs*******@free. fr (Bernard Segonnes) wrote in message news:<cc******* *************** ***@posting.goo gle.com>...
Hi
I'm a bit lost with snapshot creation, so can I have an easy (but with
all details : *.ora, user grants, *.sql, db links, ...) example of
snapshot between :
Server1 :
instance : I1
oracle user : user1
table : user1.table1
Server2 :
instance : I2
oracle user : user2
snapshot : user2.table1 as select * from user1.table1;
Thank you for your examples.
Bernard bs*******@free. fr http://bsegonnes.free.fr
Hi,
Please do the following.
Locate Server1 and get the Tnsnames entry from the Tnsnames.ora file.
Paste this entry in the Tnsnames.ora file of the server2.
I am assuming that you are trying to connect to server1 from server2.
Please find out the schema name and password for User1.
assuming userid= user1 and password =password.
Please query the following against the database on sever1.
Global Database Name would be the output from Select * from
global_name.
Service Name would be the output from Select * from v$database.
Assuming that the above queries fetched me the following results.
Global Database Name = sap.patni.com
Service Name = sap
You should have a create database link priviledge to create the link.
Please ask your DBA to provide it to you.
Please run the following to create the link.
create database link sap.patni.com
connect to user1 identified by password
using 'sap';
I think creating a snapshot is easier than making it work through a
database link. :-)
Aamir
Actually database links are a prerequisite for snapshots.
So what are you talking about?
Sybrand Bakker
Senior Oracle DBA This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ozy |
last post by:
how to create a snapshot view on a table that refreshes each time a table is
updated (or inserted row)?
Or, at least, how to refresh snapshot periodicaly, let's say, each 10
minutes?
tnx
|
by: M. Mehta |
last post by:
It seems that you can not create a materialized view if you are using
outer joins...can someone please verify this?
Thanks
M. Mehta
Please follow my example below:
created 2 tables:
|
by: Geoff Bray |
last post by:
I need to set the column types and lengths in my materialized view that is
created with a select as. Anyone able to do this?
Here's one of my gazillion attempts which gave me a syntax error.
Oracle 8.1.7.1 on HP-UX 11.
CREATE SNAPSHOT gb_vw AS
SELECT dummy as test varchar2(2)
FROM dual
|
by: Vincent LIDOU |
last post by:
Do not trust values returned by materialized views under SQL Server
without frequently checking underlying tables!!!
I already posted this message under microsoft.public.sqlserver.server
and I'm amazed nobody from Microsoft answered about this problem. By
inserting lots of data into our two main tables for about 30 minutes,
we can fail our materialized view that performs a count_big on those
two tables.
Executing (after of course...
|
by: Hans-Jürgen Schönig |
last post by:
hello ...
i am running into a couple of questions regarding materialized view logs.
my goal is to take data from an oracle database and replicate it to some
remote data store (maybe some other datastore can poll the materialized
view log or so).
the idea is: if i could simply replicate the changes made to a
materialized view it would be perfect.
i have come across materialized view logs but i don't really know how to
treat them...
| |
by: Mairhtin O'Feannag |
last post by:
Hello all ...
hopefully without sounding too obtuse, we've run into a case where we
need to persist the contents of a view for performance reasons. As I
understand it (and I don't really) Oracle has something called a
snapshot, which "automatically" persists the contents of a view and can
determine the delta of the contents somehow. This would be PERFECT for
this application, since the data only updates monthly maybe, but in
chunks of...
|
by: rumasinha |
last post by:
Hi,
I first created a materialized view that was based on the org striped views like po_headers hence the automatic refresh was not happening.
After automatic complete refresh, the materialized view was showing null records.
Hence I based the materialized view on "_all" tables and then based a view on this materialized view and this view I made org striped.
In the materialized view , I was refering to...
|
by: sybrandb |
last post by:
JamesLane <JamesLane03@yahoo.comwrote in message news:<3038611.1056489810@dbforums.com>...
There is not
Sybrand Bakker
Senior Oracle DBA
|
by: Preeti Bajaj |
last post by:
I created a materialized view log on table DUMMY_TAB as shown below:
create materialized view log on DUMMY_TAB with primary key including new values;
Primary key for the table DUMMY_TAB is trans_id.In this table if any date is added i want to refresh the materialized view.
Then i created materialized view on table DUMMY_TAB as follows:
create materialized view temp_view
build immediate
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |