How can I get the difference of tables between two oracle server?
We team have 2 oracle servers in the same version.
one is develop server and the other is priduct server.
I want to know what is difference in tables define between the two oracle servers.
give me a method or a step or a sql script or a tool to compare these two set of tables.
Edited by: Oracle-Sunmeng on Aug 1, 2012 6:36 PM
Hi Sunmeng,
Does Database Link exists between Databases ??
If I am Clear, Are you looking Something like this.
To Identify the tables difference, you can query the USER_TAB_COLUMNS view.
SELECT DISTINCT table_name, 'User1' AS user_table
FROM user_tab_columns
UNION ALL
SELECT DISTINCT table_name, 'User2' AS user_table
FROM user_tab_columns@dblink
ORDER BY 1;Which gets us all the Tables available in Both User. where you can filter based on what
you require.
Similary, you for column difference
SELECT table_name, column_name, 'User1' AS user_table
FROM user_tab_columns
UNION ALL
SELECT table_name, column_name, 'User2' AS user_table
FROM user_tab_columns@dblink
ORDER BY 1;If you need to count the no of columns in both Tables of different databases. Then try this,
SELECT table_name, 'User1' user_name,
(SELECT MAX (column_id)
FROM user_tab_columns a
WHERE a.table_name = b.table_name) colno
FROM user_tables b
UNION ALL
SELECT table_name, 'User2' user_name,
(SELECT MAX (column_id)
FROM user_tab_columns@dblink a
WHERE a.table_name = b.table_name) colno
FROM user_tables@dblink b;And, what the Columns in both tables may be same but, if datatype and length of column differs ?????
Thanks,
Shankar
Edited by: Shankar Viji on Aug 1, 2012 10:47 PM
Edited by: Shankar Viji on Aug 1, 2012 10:49 PM
Similar Messages
-
How can i get the system ip address through d2k/oracle
hi
how can i get the I.P. address of the System, whether any builtin function is available oracle/d2k.
please do needful helphttp://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:510222107880
-
How can I see the relationship of tables in Microsoft SQL Server?
How can I see the relationships of the tables? Exactly like what we see in Access. In Access if we select Database tool and then relationships, we can see how the tables are linked to each other. How can I find this option in SQL Server Management Studio?
Thanks,
GGGGGNNNNN
GGGGGNNNNNThanks,
I could verify what you explained here. how can I overcome this message and resolve it when my database owner is not there:
Message while starting with database diagrams of a attached/restored database
If you have just attached/restored a database from another SQL Server instance. While accessing its database diagrams folder, you may get the following message
It is an informational message and would prevent you from working on database diagrams. The message says that your database has no valid owner currently. Reason for this error is that database owner on a previous SQL Server instance does not exist here.
To overcome this error just add the valid database owner through T-SQL or SSMS. Also verify the compatibility level of your database is correct for your SQL Server instance.
I appreciate your help.
GGGGGNNNNN
GGGGGNNNNN -
How can i get the same itunes library on 2 macs
how can i get the same itunes library on two different macs, without having to pay for icloud please.
Copy everything from one computer to the other.
-
How can we get the table name...
Hi All,
How can we get the actual table name for an argument if its datatype is %ROWTYPE.
For Ex :
function ACCOUNT_UPDATE (account_no number,
person person%rowtype,
amounts dbms_describe.number_table,
trans_date date)
return accounts.balance%type;
In the above function 'ACCOUNT_UPDATE', for argument person the datatype is 'person%rowtype'.
Is there any way to get the name from Data Dictionary tables.
I tried using All_Arguments and DBMS_DESCRIBE, I can able to get all the individual fields of %ROWTYPE by I could not able to know the exact table name thru the DD.
my requirement is dynamically I need to declare a variable for the argument datatype.
Your help is highly appreciated.
Thankshi vinay,
this is the easiest way to find the tablename of a particular field.
t.code:XD01.
enter.
select the kunnr field.
press F1.
the top of the screen u will get 'Technical setting icon.
select that one.then u will get tablename,fieldname,parameter id also.
if helps give the rewards.
regards,
akash.k -
How can i get the list of DB02's Table spaces-overview?
Dear Experts,
Could you help me about how can i get the list of DB02's Table spaces-overview? which function module can do it?
Thanks a lotHi,
Execute this FM DB02_ORA_FILL_TD110
U will get all the details of table spaces in the importing parameter TD110 of that FM.
Reward if helpful
Regards
Vodka. -
How can i get the rowNumber of a record in a table ?
How can i get the rowNumber of a record in a table ?
Marcel,
Please consult the "Tables" chapter in the UIX Developer's Guide. You can search for a method titled "doSelectionEvent" that will indicate how to deal with table selections.
Hope this helps,
Ryan Pollock -
CS3: Table on more than one page - How can I get the UIDRef's of the pages?
Hi
I have a table over more than one page. How can I get all UIDRef's of the pages who contain parts of the table?
Thanks
HansHi
Thanks for the answer.
- How can I get all page items of a table?
- One other question: If I have a table over two pages (side by side) there is only one page item of the table. Right? How can I get the two pages (UIDRef) in that case?
Thanks
Hans -
Hi friends,
When I create a user by issuing a statement like
create user abcd identified by xyz;
user created.
but, how can i get the password without encryption in the v$XXXXX tables. Is there any dynamic table which stores the statement executed above in the current session, so that I can get the original password given.
but when selecting the password by the query
select password from sys.user$
where name = 'abcd';
Password
==========
345ISDF9K4590DFJ35
.........this is not my password(yes it is!) but not understandable..,
Anybody please, show me the right way or query..,
Post-Query Thanx..
Praveenkumar Talla (Pune, India)I would hope there is no way to get this data. I wouldn't want a mechanism to grab passwords out of the SGA. Passwords are stored encrypted in the database. If you need to know the password, run another 'alter user username identified by password' and make not of what you changed it to.
-
We are upgrading from 8.3 to 9.2. How can i get the table(record) structure changes between these 2 versions. I am not able to find it in Oracle support.
My guess is you want to upgrade HR8.3 to 9.2 - and that is not one jump upgrade. You will need to go HRMS 83 to 90
(PeopleSoft Enterprise HRMS 8.3x to 9.0 Upgrade (Doc ID 747333.1) and then 90 to 92 (PeopleSoft Human Capital Management 9.0 to 9.2 Upgrade Home Page (Doc ID 1536087.1)
Each these MOS pages contains the Demo to Demo Compare Reports that show the data structures changes between the releases.
Hope it helps. -
Hi ,
I have a table so many constraints on so many columns. I need to know which column has which constraint plsql dev?? like below...
table_name -------- col_name ------ constraint_name_of_that_col
xxxxxx xxxxxxx xxxxxxxxxxxxxxxx
or else please let me know how can i get the corresponding col_name for a particular constraint name???My be this can give you a help:
[code]
SELECT *
FROM ALL_CONSTRAINTS
WHERE R_CONSTRAINT_NAME IN (SELECT CONSTRAINT_NAME
FROM ALL_CONSTRAINTS
WHERE TABLE_NAME = 'TABLE_NAME'
[/code] -
How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?
How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size? I would like them to open at the size they were previously resized like they used to in previous operating systems. They currently open at a very small size and the first colum is only a few letters wide necessitating a resize practically every time one wants to use it. Any help would be appreciated.
hi Prasanth,
select werks matnr from ZVSCHDRUN into table it_plant.
sort it_plant by matnr werks.
select
vbeln
posnr
matnr
werks
erdat
kbmeng
vrkme
from vbap
into table it_vbap
for all entries in it_plant
where matnr = it_plant-matnr and
werks = it_plant-werks.
and again i have to write one more select query for vbup.
am i right? -
How can I get the value of "Warehose" column in a form
How can I get the value of "Warehouse" column in the form below (I mean what table that contain this value):
Production Supervisor >> Batches >> (Button) Material Details >> (Button) Line Allocations
Well, for more clearly! My problem is I must have the Unit Cost of Items, so I've got it in the cm_cmpt_dtl (table), but if I want to, I must create a relation that require 2 filed, they're Item_ID and Whse_Code.
There's no problem with Item_ID, but Whse_Code seem to be the Mission Impossible (hix, I hate that film!!!!)
I wonder if It was right to post this topic here. But anyway I just post my question here, hope I could get some help.wow, many, many, many.... and many thanks!
Just add a tiny modify to check out the Batch_type
doc_id = (select batch_id from gme_batch_header where batch_no='&batch_number' and batch_type = 0)
Because the batch_no can be duplicated as we also create Batch and Filrm Planned Order.
Many thanks for your support!
P/S: Sorry for my terrible English :P -
How can I get the elapse time for execution of a Query for a session
Hi ,
How can I get the elapse time for execution of a Query for a session?
Example - I have a report based on the procedure ,when the user execute that it takes say 3 min. to return rows.
Is there any possible way to capture this session info. for this particular execution of query along with it's execution elapse time?
Thanks in advance.Hi
You can use the dbms_utility.get_time tool (gives binary_integer type value).
1/ Initialize you time and date of beginning :
v_beginTime := dbms_utility.get_time ;
2/ Run you procedure...
3/ Get end-time with :
v_endTime := dbms_utility.get_time ;
4/ Thus, calculate elapsed time by difference :
v_elapsTime := v_endTime - v_beginTime ;
This will give you time elapsed in of 100th of seconds...
Then you can format you result to give correct print time.
Hope it will help you.
AL -
How can I get the last updated email address of the customer ??
Dear All,
Please let me know, How can I get the last updated email address of the customer ??
Also, I am trying to read CDHDR table where OBJECTCLAS is ADRESSE, however what value should be passed into OBJECTID field, looks like it is ADRNR with a Suffix BP.
Please confirm me what value should be passed into OBJECTID field.
Thank you.
AnithaHi Anitha,
Check if this is something that helps you:
Change documents in BAS
CDHDR
address type 1
objectclass = ADRESSE
objectid = addrgroup + addrnumber (ADRC-ADDR_GROUP + ADDRNNUMBER) !!
'BP 000xxxxxx'
private address (address type 2)
objectclass = ADRESSE2
objectid = 'BP 000xxxxxx000yyyyyyy'
persnumber+adrnr private
address type 3
objectclass = ADRESSE3
objectid = 'BP 000xxxxxx000zzzzzzz'
persnumber +comp.address
The above details is from the link: http://wiki.sdn.sap.com/wiki/display/ERPLO/LO-MD-BP
Regards,
Swarna Munukoti
Maybe you are looking for
-
Delete Remain Open Quantity in PO Item
Hi SAP community, My Order quantity in PO item is 100, and User have GR 90. Left with 10 units to be good receipt. Now user what to cancel the 10 unit, so that they can close this PO how can the user cancel the 10 unit remain open in po ?
-
Utility to adjust image position?
Does anyone know if there is a utility that can be used to fine tune the display image position (ie. horizontal/vertical position, rotation)? I've noticed that the image on my iMac display is slightly off to the right -- in other words, there is more
-
Akonadi_notes_agent consumes a lot of memory
Hi, I recently updated my Archlinux System to KDE 4.13.0. Since this update akonadi_notes_agent starts with low memory consumption but while I am working it takes more and more memory. Currently it consumes more than 1GB. Does anybody know how to fix
-
Hi, How can I know the role to which a BW query is assigned. Many Thanks Gaurav
-
Problem with etoken key Aladdin
Good afternoon, etoken doesn't work at the virtual machine Windows 7. USB redirector is installed, in the list of the equipment there is Token JC. But PKI Client doesn't see it. Windows events: Warning: Usb_packet_open::process_return() status code e