Jump to content

Recommended Posts

Posted

oka particular string kosam entire db search cheyali ( accross all tables ,all columns  ) .

 

 

Ex : "CREDIT " ane string value vunna anni  columns across all the table ni retrive cheyali

Posted

google    search all tables and columns for value

Posted

google    search all tables and columns for value

 

ratledu bro ..tried ...stored procedures evo vunnayi but not working

Posted

aa link loni stored proc create cheyyi db lo and then you run the sp 

 

EXEC SearchAllTables 'afdb'
GO

Posted

SQL developer vadithe lookup ani untadi binoculars symbol tho .. Andulo type chey CDREDIT ani

Posted
 select type, name, line, text
from all_source
where owner = 'SCHEMA NAME'
and upper(text) like '%STRING%';
Posted

aa link loni stored proc create cheyyi db lo and then you run the sp 

 

EXEC SearchAllTables 'afdb'
GO

 

Thanks bro ...will try
 

Posted

oka particular string kosam entire db search cheyali ( accross all tables ,all columns  ) .

 

 

Ex : "CREDIT " ane string value vunna anni  columns across all the table ni retrive cheyali

not possible without a strored proc.. its the only way.

Posted

 SELECT 'PROMPT    *********** ' || UPPER(A.TABLE_NAME) ||'  *****************' || CHR(10)  || 

        'SELECT '||UPPER(A.TABLE_NAME)  || '.'|| UPPER (B.COLUMN_NAME)|| ' FROM  ' || UPPER(A.TABLE_NAME) || 

        '  WHERE  ' ||  UPPER (B.COLUMN_NAME) || '  LIKE  ' ||  '''CREDIT'''  ||  ';' 

  FROM ALL_TABLES A    , ALL_TAB_COLUMNS B

 WHERE UPPER(A.TABLE_NAME) =  UPPER(B.TABLE_NAME)

   AND UPPER(B.DATA_TYPE)  =  UPPER('VARCHAR2')

   AND UPPER(A.OWNER)      =  UPPER('Give the owner name if you have');

 

 

this Will give you all the tables ans column names.

Then keep all the individual sql's in .sql file run this file in SQLPLUS through command prompt

         

Posted

oka particular string kosam entire db search cheyali ( accross all tables ,all columns  ) .

 

 

Ex : "CREDIT " ane string value vunna anni  columns across all the table ni retrive cheyali

 

"SQL Search"   red gate company plugin install chesuko.. its free ...  nee problem 100% solve avuthadi

×
×
  • Create New...