473,395 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How will data of schema will reflect in another schema of same network

Dear All,
I have two schema in my network.Let say one is AMS and Another is AMSDATA.
Both contains same table.Let say both the schema have employee table.
But the schema of AMSDATA's employee table data will reflect in AMS
schema of Emplyee table.

Means when i execute the procedure the schema of AMSDATA's employee table data will always updated in schema of AMS's employee table data.


Could please guide me for my requiremnts query of simple example so that i can implement in my project.


Thanks in Advance.
Regards
Sumanta Panda

----------------------------------------------------------
AMS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.106.87)(PORT = 1521)
)
)
(CONNECT_DATA = (SERVICE_NAME = AMS)
)
)

AMSDATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.106.88)(PORT = 1521)
)
)
(CONNECT_DATA = (SERVICE_NAME = AMSDATA)
)
)
Jan 2 '09 #1
4 3140
amitpatel66
2,367 Expert 2GB
Alright, You need to do the following:

1. If your both the Schemas are in same database, then You need to GRANT SELECT,UPDATE,INSERT on EMPLOYEE table of AMS to AMSDATA schema.

2. Write a Trigger AFTER INSERT ON employee ON AMSDATA,
<Insert into Employee of AMS schema>

OR

If AMS and AMSDATA belongs to different database, then,

1. Create a DATABASE LINK in AMSDATA pointing to AMS schema of another database
2. Create a Trigger in AMSDATA for AFTER INSERT and INSERT into employee of AMS schema any new record inserted in AMSDATA's EMployee table

I hope this helps!!
Jan 2 '09 #2
Dear AmitSir,
Thanks for your support.Sir second point i am agree to manage it.

Please sir advise me how can i Create a DATABASE LINK in AMSDATA pointing to AMS schema of another database.

Sir, i dont have enough knowledge in oracle.
Could you please guide me in the sysntax how can i write for it.

Thanks and Regards
Sumanta Panda
Jan 2 '09 #3
debasisdas
8,127 Expert 4TB
You can find the details here.
Jan 2 '09 #4
Thanks a ton Debasis Sir and Amir Sir for your support and cooperation.
Jan 2 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Patrick K. O'Brien | last post by:
I'm looking for a good schema to use as an example for an object database system. Something like a books/authors/publishers or teachers/students/courses kind of thing. There are plenty of...
4
by: Hoang | last post by:
does anyone know how to dump the table structure and data from a mysql database? I am connected to the database externally so "SELECT * FROM database INTO OUTFILE file" doesn't work for me. ...
22
by: Bryan Guilliams | last post by:
I'm trying to come up with an elegant, simple way to compare two consecutive values from the same table. For instance: SELECT TOP 2 datavalues FROM myTable ORDER BY timestamp DESC That...
2
by: inquirydog | last post by:
I am trying to store my computer network information in an xml file, and plan to write an xml schema for the file. The general format of the xml should be like this <networkinfo>...
4
by: Ian | last post by:
I would like to set a path to a schema where both the xml file and the schema are on my local hard drive (e.g. c:\XML\auto.xml and c:\XML\auto.xsd) Thank you, Ian
2
by: diadia | last post by:
when i write two classes as follow . compiler tell me that i can't access private number from other class but if types of two classes are the same it don't have error message ? why? class...
5
by: dave71 | last post by:
Hi Could someone please advise me how to remove the schema name from linked tables within Access. For example when I connect to a Oracle database via Microsoft ODCB for Oracle the list of...
7
by: Sharon | last post by:
I have successfully loaded a DataSet object with a XML schema (XSD). Now I wish to populate the tables that was created in the DataSet. I have an XML file/string that contain all the needed data...
0
by: nicomp | last post by:
I created a Web Service: I imported System.Data.SqlClient so I could access SQL server tables programmatically. The web service builds and deploys with no problems. When I try to add the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.