text for all objects [message #540090] |
Fri, 20 January 2012 04:13 |
nehhaverma
Messages: 34 Registered: September 2009 Location: JAIPUR
|
Member |
|
|
Hi
I have 90 schemas over there on my database. I would like to check if any object of any schema will change on last day means tomorrow the change will be made over all the schemas.
For that I I need to use some of the data dictionaries but I am able to search which data dictionary will help me in getting the whole text of all the objects(table,view,procedure,trigger,synonym,sequence,function,grant).
I got a view dba_views in which the whole text of view is available.
Can you please let me know other Data Dictionary for all the objects.
Thanks
Regards//Neha
|
|
|
|
|
Re: text for all objects [message #540394 is a reply to message #540095] |
Mon, 23 January 2012 04:57 |
nehhaverma
Messages: 34 Registered: September 2009 Location: JAIPUR
|
Member |
|
|
Hi
I just need to pick the sql which generates on last day then it will execute in every schema of my database.
This sql may contain modified view,changes in table,created synonym,created grant, modified procedure,modified function,modified index, add constraint etc.
Regards//Neha
|
|
|
Re: text for all objects [message #540400 is a reply to message #540394] |
Mon, 23 January 2012 05:21 |
John Watson
Messages: 8963 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Neha, I'm not sure what you mean. Are you trying to capture changes made to objects, and propagate those changes to copies of the objects in other schemas?
If so, the easiest way to automate this is with Streams. You would set up a capture to record all the DDLs in your source schema as they occur, and a propagation that runs once a day to transmit them to the other schemas.
You do need an Enterprise Edition licence to use Streams.
|
|
|
Re: text for all objects [message #540405 is a reply to message #540400] |
Mon, 23 January 2012 05:47 |
nehhaverma
Messages: 34 Registered: September 2009 Location: JAIPUR
|
Member |
|
|
Hi
Yes, this is what I want to do on my database.
Could it be possible with the help of some procedure or without using streams that I can create using dbms_metadata or something else which can get the sql and will execute on other schema.
BR//Neha
|
|
|
|
|
|
Re: text for all objects [message #543299 is a reply to message #540412] |
Tue, 14 February 2012 01:10 |
nehhaverma
Messages: 34 Registered: September 2009 Location: JAIPUR
|
Member |
|
|
Hi
Will it be possible for applying on all the users with the help of this impdb process.
I have to pick all DDL generate by a day for any user and then I have to apply these DDL for all the users on my database.
As you said to use network_link but I hav to apply this all on same server. I mean why sholud I use this network link?
|
|
|
|
Re: text for all objects [message #543465 is a reply to message #543332] |
Tue, 14 February 2012 23:27 |
nehhaverma
Messages: 34 Registered: September 2009 Location: JAIPUR
|
Member |
|
|
hi
I am using this procedure but I got an error and this will help me only in that condition in which only CCD schema gets change with some object.
expdp dbauser/dbauser network_link=REMOTE_CCD directory=test_dir dumpfile=ccd.dmp logfile=ccd.log
Export: Release 11.2.0.1.0 - Production on Tue Feb 14 22:32:23 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39001: invalid argument value
ORA-39200: Link name "REMOTE_CCD" is invalid.
ORA-12154: TNS:could not resolve the connect identifier specified
So how to do for getting all users modification and apply for all users?
|
|
|
|
Re: text for all objects [message #543558 is a reply to message #543496] |
Wed, 15 February 2012 04:02 |
nehhaverma
Messages: 34 Registered: September 2009 Location: JAIPUR
|
Member |
|
|
Could you tell me if there is any Oracle Data Dictionary available which shows all executed SQL for last some days.
Because as I know if table changed then by using expdp respective table will not change and expdp skip the changes on table.
So kindly tell me how to get DDL changes of last some days.
Regards//
Neha
|
|
|
|