How to find the Cross Dependencies of tables
Hi,
I have table in Database A, but that table is referencing in another database in the instance's SP,Views and Jobs.How to find the full dependencies of the table include cross database.
I tried with below T-sql but no luck..
--object that view depends on..Tables referenced in Below View---
SELECT * FROM sys.sql_expression_dependencies
WHERE referencing_id = OBJECT_ID(N'Table-Name');
GO
--objects depends on the view--
SELECT * FROM sys.sql_expression_dependencies
WHERE referenced_id = OBJECT_ID(N'Table-Name');
GO
pls guide me..I am planning to remove particular table but before i need to find all the dependencies on the table.
see
http://visakhm.blogspot.in/2010/01/finding-cross-server-cross-db-object.html
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
Similar Messages
-
How to find the list of existing tables in a schema using DB link?
Hi
I know how to find the list of existing tables in a schema using the following query
SQL> select * from tab;
but, how to list the tables using a DB link?
For Example
SQL> select * from tab@dblink_name;
why this doesn't work?
Pl advice me
Thanks
Reddy.ORA-02019: connection description for remote database not foundHave you used this database link successfully for some other queries?
The error posted seems to indicate that the DB Link is not functional at all. Has it worked for any other type of DML operation or is this the first time you ever tried to use the link? -
How to find the column name and table name with a value
Hi All
How to find the column name and table name with "Value".
For Example i have value named "Srikkanth" This value will be stored in one table and in one column i we dont know the table how to find the table name and column name
Any help is highly appricatable
Thanks & Regards
Srikkanth.M2 solutions by Michaels (the latter is 11g upwards only)...
michaels> var val varchar2(5)
michaels> exec :val := 'as'
PL/SQL procedure successfully completed.
michaels> select distinct substr (:val, 1, 11) "Searchword",
substr (table_name, 1, 14) "Table",
substr (t.column_value.getstringval (), 1, 50) "Column/Value"
from cols,
table
(xmlsequence
(dbms_xmlgen.getxmltype ('select ' || column_name
|| ' from ' || table_name
|| ' where upper('
|| column_name
|| ') like upper(''%' || :val
|| '%'')'
).extract ('ROWSET/ROW/*')
) t
-- where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
order by "Table"or
SQL> select table_name,
column_name,
:search_string search_string,
result
from cols,
xmltable(('ora:view("'||table_name||'")/ROW/'||column_name||'[ora:contains(text(),"%'|| :search_string || '%") > 0]')
columns result varchar2(10) path '.'
where table_name in ('EMP', 'DEPT')
TABLE_NAME COLUMN_NAME SEARCH_STRING RESULT
DEPT DNAME ES RESEARCH
DEPT DNAME ES SALES
EMP ENAME ES JONES
EMP ENAME ES JAMES
EMP JOB ES SALESMAN
EMP JOB ES SALESMAN
EMP JOB ES SALESMAN
EMP JOB ES PRESIDENT
EMP JOB ES SALESMAN
9 rows selected. -
How to find the deleted data in tables
guys,
how to find the deleted data in tables example: i want to see whether anyone deleted data in MB5B report tables like mbew, etc.,
regards,Hi,
MBEWH is actually the history table of MBEW. It will record all the changes. As I have told you earlier if you have deleted the record dirctly from the table then it will not come even in the table MBEWH
That means no changes have been made.
regards -
How to find the list of all tables populated
How to find the list of tables populated in the implentation of a particular company. DD02L contains all the tables SAP having. But i want only which are configured for a particular company.
Also how to find the list of reports used by all users in a particular company. TSTC contains all transactions. But i require only reports used by a particular company.Hi Mohamed
You use Solution Manager to do the comparison for you. There are some nice features that will highlight all your customised coding. Have a look at the SolMan resources on the Support Portal e.g. using SolMan for upgrade comparisons.
Rgards
Carl. -
How to find the size of a Table
Dear all,
How can i find the size of a table in a schema and size of the schema also.
Thanks
MahiTry out with the help of this package, which will give out the total bytes, unused bytes, calculate the free bytes from total byes-unused bytes.
dbms_space.unused_space(
upper(oname),upper(tbname),upper('TABLE'),
total_blocks, total_bytes,
unused_blocks, unused_bytes,
last_used_extent_file_id ,
last_used_extent_block_id,
last_used_block
); -
How to find the relation between that tables
Hi,
I have to get the data from different tables but I dont have any table relation ship. So If any body can help me to get that relation ship that will be very helpful for me.
my tables are
LFA1
LFB1
LFC1
RFSDO
BSIK
Thanks
Imran>
SURINDER SINGH OBEROI wrote:
> Hi,
>
> LFA1-LIFNR = LFB1-LIFNR = LFC1-LIFNR = BSIK- LIFNR
> LFB1-BUKRS = LFC1-BUKRS = BSIK-BUKRS
> LFC1-GJAHR = BSIK-GJAHR
> LFC1-ERDAT = BSIK-AUGDT
>
> Cheers,
> Surinder
You think, you can fetch accurate data with the above mentioned linkages?
Oh btw, the question i believe the question was How to find the relation....
pk -
How to find the dependency of a table
Hi All,
how to find all packages or procedure which are using specific table . is there any table where we can go and search .
i mean i have table called let say table_A and i want to find in which procedure or package this table will be using .
Thanks
SreeTables dont depend on packages/procedures.
However packages/procedures may use tables.
That said, if youre using TOAD, just press F4 on the table name and click on the used by tab.
S -
How to find the Transport request for table entry
Hi ,
There was certain entry made in the SAP std table and which got transported to subsequent system. I want to find the Transport Request Number which was containign that table entry and which gor transported.
Please suggest how can I find that transport number.
Thanks
SaurabhHi,
Yes we can get , Basis team will help.
B'coz i had same requirement my basis got the TR for me.
Take their help.
He said u can like this.
SE11 - > Table Display - > Table Entry in Menu Bar - > Transport Entries.
Rhea. -
How to find the long/raw datatype tables
HI ppl,
I want to find out the long/raw datatype tables in Oracle database.
Please provide the query..
Plz help.
Oracle version :10gr2
platform:HP-UNIXHi,
is this is what you are looking for?
SELECT
TABLE_NAME,
COLUMN_NAME,
OWNER
FROM
DBA_TAB_COLUMNS
WHERE
DATA_TYPE IN('LONG','RAW')Regards -
How to find the t-code for table (SM30 or SE16)
Once I create a t-code though SE93. And I choose type: Transaction with parameters. Then the Transaction is SM30,
But I forget the t-code, how do I find this t-code base on the table name.
ep:Hi
Use database table TSTCP and search for tcode with below selection criteria.
Enter *tablename* in param filed and execute.
Thanks -
How to find the no of tmp table used in the db object
Hi all,
I have a big sp of 5K lines, which uses some 15 odd tmp tables in it. I would like to find how many and which are the tmp used by this stored procedure; with out looking line by line of code.
Is it possible.
RegardsNeilCSE wrote:
Hi all,
I have a big sp of 5K lines, which uses some 15 odd tmp tables in it. I would like to find how many and which are the tmp used by this stored procedure; with out looking line by line of code.
Is it possible.
RegardsDefinitlly, if the code , is well written, they might have used some terminolgies while creating temporary tables (for ex TMP_tablename) Search for those tables in all_source view,
SELECT TEXT from all_source where upper(text) like '%TMP_%'Hope this helps.
Regards,
Achyut -
How to find the sequence for a table.
Hi Everyone,
I've got plenty of sequences. How can I identify that what are the sequences acting on a table?
Regards,
BS2012.Greg.Spall wrote:
In my last job, we used the table/column comments to point to the sequence.
so:
CREATE SEQUENCE seq_test1;
CREATE TABLE my_table
(id number);
COMMENT ON TABLE my_table IS 'Test table for demonstration purposes on OTN';
COMMENT ON COLUMN my_table.id IS 'Primary Key, sequence populated: seq_test1';... or something like that :P
But yeah, outside of that, good luck if you have no documentation!Of course, ALL of the 'code search' solutions put forth are assuming the references will be found in PL/SQL packages. That ignores the potential that the code could be located somewhere else, like application code that exists OUTSIDE of the database .... Bottom line is that there is no 100% one-size-fits-all method for automating the discovery of relationships between tables and sequences. -
How to find the OWNER of a table with JDBC metaData?
Hi,
i write a dynamique dataBase gui for multiple dataBase (oracle, postgre..)
I want to use JDBC meta data to configure the gui
I can't find methode to optain a specifique table list for a owner...
with getTablePrivileges I see the Grantor but not the owner (the grantor isn't always the owner)
and I can't use schema because schema isn't supported by postgre
some one can help me ?
thanks a lot
ChristopheYes of course but it is DataBase dependent...
and I want to use different DataBase...And what sort of owner would you expect in a MS Access
database?
if they are only one user we work only whith one "schema owner" the data base is structured in this way
but when multi user is possible we want to work with specifique relation beetwen different user ...
we want to use users because more dataBase suppport multiple owner than multiple schema
and generaly our information are divide in
genereral and referential information ( explain of data and list of values etc ...)
and the specifique data.
And our GUI distingue the "META DATA" and the pure "DATA" and propose specifique properties to interact with those data
i hope that my problem is better explain now .
example we use
resultSet = connection.getMetaData().getTables("","%","%",new String[]{"TABLE","VIEW"});
to optain all the table and view
resultSet = connection.getMetaData().getTablePrivileges(null,null,"tableName");
to optain privileges for a table
the trouble is that in specifique catatalog table like oracle we find a colomn whith the owner properites and when we use getTablePrivileges we can't see it idem for posgree
Each privilige description has the following columns:
TABLE_CAT String => table catalog (may be null)
TABLE_SCHEM String => table schema (may be null)
TABLE_NAME String => table name
GRANTOR => grantor of access (may be null)
GRANTEE String => grantee of access
PRIVILEGE String => name of access
IS_GRANTABLE String => "YES" if grantee is permitted to grant to others; "NO" if not; null if unknown
has you see we have GRANTOR information but not OWNER information
and the GRANTOR isn't allways the OWNER ...
Christophe -
How to find the more than 20GB tables
Hi Friends,
I would like to know the tables which has more than 20GB in oracle.
If any one knows, Plz let me know.
Thanks in Advance.Depending slightly on your definition of GB (i.e. the disk vendor's 1 billion bytes or normal people's 1024^3 bytes)
SELECT owner, segment_name, SUM(bytes)/1024/1024/1024 GB
FROM dba_segments
WHERE segment_type = 'TABLE'
GROUP BY owner, segment_name
HAVING SUM(bytes) > 20 * 1024 * 1024 * 1024Remove the segment_type = 'TABLE' if you want all objects that are greater than 20 GB in size.
Justin
Maybe you are looking for
-
APEX_ITEM report - SORT doesn't work
Hi, For the following report, the SORT doesn't work. I've also tried with the "Report Attributes", but same result. Does someone know is there a way to make it sorted or can confirm it's not possible. Thanks. SELECT APEX_ITEM.CHECKBOX(11,id_cc_delai_
-
Xsl variable error not explained in earlier thread
Steve, Thank you so much for your response to my earlier thread, it is difficult to focus on what I am supposed to be doing today, with all the sad news from the east coast. Re-visiting this variable issue one more time to try understand what is goin
-
Warning: Variable in inherited class hides private variable in base class?
Hello, I've come across a simple case like this: class A { private: int varA; class B : public A { B() { int varA = 5; // does it hide A::varA ?! };which is causing my Studio 11/12 compiler front ends to issue a warning like: "...,
-
How do I embed an mp4 movie to play on standard ios?
seriously, need some help here.
-
Is it the right time for me to get SAP SD Certification?
Greetings everyone!!! For the past few days, I have been thinking alot about taking my career to a new step and get SAP SD certification. But before venturing further into it, let me briefly explain about my Background. I am a marketing Post Graduate