How to check if column_ name is used by any procedure ,package ,function
Hello
Help Is greatly appreciated .
Kindly please let me know for the folllwoing:
How to check if column_ name is used by any procedure ,package ,function ,trigger or in any dataabse objects
>
How to check if column_ name is used by any procedure ,package ,function ,trigger or in any dataabse objects
>
In general you can't. Code can always exist outside the database and it is always possible that you have dynamic code and there is no way to find references like that if used by dynamic code. That dynamic code reference could be based on a query stored in a table.
And there is no way of knowing if external code (e.g. a Java app) references that column.
Another issue is that a column could exist in multiple schemas and in multiple objects of different types in those schemas. So a global DB search for 'MY_COLUMN' might turn up references in multiple schemas and you may only care about one schema.
Unfortunately a reference to 'MY_COLUMN' in code could refer to many different objects or to an object in different schemas so how would you resolve those? Especially if you take synonyms into account which can ponit about anywhere.
Why don't you tell us what it is you are really trying to do?
Are you trying to find the references to a particular column? Why? Are you planning on removing/renaming the column? If so then the simplest way is to remove/rename the column and see what objects become invalid. Those invalid objects will have become invalid because that column is no longer available.
As suggested you can use DBA_SOURCE for references in code that use the standard names. But for tables/views you need to use all_tab_columns. And for dynamic code or client code (e.g. a Java application) there is no way.
Similar Messages
-
How to check whether calendar is being used in any of the sap application
Hello All,
We are having few factory calendars. However some of the calendar having valid to year 2010. Can you please let me know how to check whether these calendar is being used in any of the sap application/module
kindly reply as early as possible
Regards
GirishHi RKS
yesterday BLOG by our SUMMER WANG helps every SRM consultant to debug the PO error
/people/summer.wang/blog/2010/05/11/trouble-shooting-of-srm-po-transfer-error
Good work Summer wang !!
Muthu -
Get the project name to use in a procedure?
How to get the project name to use in a procedure?
example <% = odiRef.getOption ("COMPATIBLE")%> - but the project name or your id?
in ODI 11.
thanks
Edited by: user ODI Dev on 01/12/2010 16:42I also need solution for this issue.
I want to set ODI variable value in Jython script, this method described there: How to assign value for a ODI variable from Jython Script
I need to update snp_var_data table. For more flexible solution i need to know project name where variable declared, because variable name in snm_var_data consist of two part <PROJECT_NAME>.<VAR_NAME>. Also this name convention don't changed after import scenarios from dev to execution repository
Edited by: 822130 on 19.12.2010 4:31 -
How to check the form name in S_P00_07000134
hi all,
could you please tell me how to check the form name when get the print preview using T-code S_P00_07000134. i tried to active SE71, but when executing S_P00_07000134, click on print preview, it doesn't go to debugging.
please help me with the issue, thanks a lot.
regards,
ericHave you looked in the IMG menu path: Financial Accounting > Financial Accounting Global Settings > Withholding Tax > (either Withholding Tax or Extended Withholding Tax) > Generic Withholding Tax Reporting > Define Output Groups.
View the output group used in the S_P00_07000134 selection screen. In the Printouts section, Printout 1 and Printout 2 have smart forms identified, either Smart Form or PDF form types. -
How to check my job name from the database...
I have written one job scheduler which is as follows :
SQL> ED
Wrote file afiedt.buf
1 DECLARE
2 X NUMBER;
3 JobNumber NUMBER;
4 BEGIN
5 SYS.DBMS_JOB.SUBMIT
6 (
7 job => X
8 ,what => 'scott.SPLITSMS;'
9 ,next_date => SYSDATE+1/1440
10 ,interval => 'SYSDATE+1/1440 '
11 ,no_parse => FALSE
12 );
13 JobNumber := to_char(X);
14* END;
15 /
PL/SQL procedure successfully completed.
Now I want to check whether the job has been really created or not?
so for that I have used the following command line:
SQL> SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS';
SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS'
ERROR at line 1:
ORA-00942: table or view does not exist
how to check my job name from the database...
what is the command used to check the job_name ????
and how can i ensure that my job scheduler is running properly...???
please help ........my dear friends.....!957029 wrote:
Now I want to check whether the job has been really created or not?
so for that I have used the following command line:
SQL> SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS';
SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS'
ERROR at line 1:
ORA-00942: table or view does not existYou can use DBA_* views only if the User has been Granted a DBA Privilege.
how to check my job name from the database...
what is the command used to check the job_name ????You can use USER_JOBS view to check. But, is it not that you have just created the Job, so you must be knowing it?
and how can i ensure that my job scheduler is running properly...???If USER_JOBS.FAILURES is Non Zero, that means the Job has encountered a problem that needs to be Investigated. Similarly, the LAST_DATE, LAST_SEC, NEXT_DAY, NEXT_SEC can be used to determine if the Job has been running successfully.
if you are on 11g, you should consider using DBMS_SCHEDULER. -
How to know setting iview name to use multi language(ex, english,japan)?
how to know setting iview name to use multi language(ex, english,japan)?
We want use multi language when create iview.
ivew name english version
ivew name japan version
ivew name korean versionHi Joohyun,
you can translate the PCD objects (like iViews etc) with the portal's translation mechansim, see http://help.sap.com/saphelp_erp2004/helpdata/en/74/641640b7b6dd5fe10000000a155106/frameset.htm
Hope it helps
Detlev
PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance! -
How to find how much memory used by particular procedure or function.
Hi,
How can we find out memory used by particular procedure or function?
If procedure or function is called many times in particular interver, wil it be cached in memory?
and how will it affect performance?
what type of pl/sql statement will take more time than normal sql statement?Hi
There are several different memory issues to consider:
- the code itself (stored in the shared pool)
- simple variables defined in the code
- complex variables (eg VARRAY, TABLE etc)
There's a helpful note on PL/SQL profiling here - http://www.oratechinfo.co.uk/tuning.html - which mentions how to measure memory use (session PGA and UGA - that's program and user global areas)
You can find out more about shared pool memory structures here - http://download-east.oracle.com/oowsf2005/003wp.pdf.
Calling a function many times - yes, the function code will be cached (if possible). Session state (for a package) will also be retained (ie global package variables).
If many users call the same function, there will be one copy of the code but many copies of the private state.
Finally: PL/SQL statements that can take a long time include:
- anything that does heavy processing inside a tight loop;
- anything that waits (select for update; read from a pipe or dequeue from AQ etc)
Probably the most common mistake is to use PL/SQL for relational processing that can be done from SQL itself (eg writing nested PL/SQL loops to join data that could have been queried in a single SQL statement. Try to minimise context switches between PL/SQL and SQL:
- use bulk collect where possible
- use set operations in SQL
Good luck, HTH
Regards Nigel -
Checking for EXECUTE priviledges on any Procedure or Function
Hi All,
I know that the table DBA_SYS_PRIVS can be used to check the priviledges for any object.
But after querying the view, I could see the priviledges on diff packages and other tables but could not find any Procedure or Function name ( Standalone or packaged) in the view.
Where else could I find the same?
Having execute priviledge on compelte package means having same on its contents( procs,functions etc)..is this right?
Rgds,
Aashish S.Aashish,
You have object privileges (CREATE TABLE, ALTER TABLE and system privileges (ALTER SYSTEM, ALTER USER). They serve different purposed.
DBA_SYS_PRIVS is for system privileges only.
You can not have seen privileges on packages, at least not EXECUTE privileges.
These are in DBA_TAB_PRIVS.
Packages are granted at the package level.
Sybrand Bakker
Senior Oracle DBA -
How to check the host name or rename the host name in Enterprise Manager
Hello,
How do i check the host name or rename the host name in Enterprise Manager for Oracle 11g?
Regards,
Ming Manthere is a shell script called chgip or something
like that is there . I used it for IAS. I beleive the
same is there for database too
Rajesh AlexIf there is, I have not been able to find it.
Off the top of my head, changing the host name involves at least the following (others feel free to add on):
For listener and connectivity
- listener.ora
- tnsnames.ora (on all clients as well)
- potentially ldap.ora (on all clients as well)
- init.ora parameter LOCAL_LISTENER
For admin using Enterprise Manager (starting 10g)
- the contents of the sysman schema
- the directory name of the OEM agent directory
- the directory name of the OEM OC4J config directory
- various config files in the OEM OC4J config directory
Oracle provides the emca to handle this last set.
In addition, the following refer to hosts that are [probably] not local
- init parameter REMOTE_LISTENER (usually just points to a tnsnames.ora entry naming remote hosts)
- init parm SMTP_OUT_SERVER
Again, adding to the list might be interesting. -
How to check whether database is in use or not
hi,
i have written a program for taking backup of database file(ACCESS).
i can able to zip it successfully, but i have to check before zipping that
whether it is opened or closed(using by any other).
How can i do it.I am not getting idea. please do help
Thanking you in advance
regards
shashiI don't know if this is possible. Since you have access to the file system and know the Access MDB location, look to see if the Access lock file exists. It's usually in the same location as the MDB and has the same name with an LDB extension
-
How to check paragraph in Reader document using API?
Hi,
When I extract the content of the PDF (Reader) document through .Net code, I could see only carriage return character ('\r') when it's a new line.
But with '\r' character, I can not say whether it's normal new line or it's a paragraph.
Please let me know if Adobe has got any API which can show how to differentiate between 'a new line' and 'a paragraph'.
E.g.:
Test Test Test
Test Test Test <- I can easily say it's start with a new line.
Test Test Test Test Test
Test Test Test Test Test Test.
Test Test Test Test Test <- This is a paragraph but how to check from the code?
Test Test Test Test Test Test
Test Test Test Test Test Test.We use 'PDDocCreateWordFinder' , 'PDWordFinderEnumWords' to extract the text from Adobe Reader document through Code, Not tool.
But, by using these APIs, I can't see any difference in 'new line/row' or 'paragraph' if exists in PDF doc.
I need such API which can give the exact format of Adobe Reader doc according to the content exists in that PDF doc.
Thanks! -
How to check the Datasource name for Virtual cube
Hello Experts,
I have a report which is built on one multiproviider for which we are getting balance sheet data reporting on company code,enduser told us that he wanted to see the data on plant level...
The problem here is that I have checked the data flow for the multiprovider,It is showing as getting data from virtual cube.
So,from there It is not showing the datasource and infosource under it(under virtual cube)..so how can I check the datasource name for it,so that I can go and enhance the datasource in case the plant(WERKS) is not there
thanks
reddyHi Friend,
go virtual cube lavel and see the data flow with "downward & upward" option in RSA1
Go to RSA1
Select the Virtual cube> right click > display data flow> select "downward & upward"
it may help you -
HOw to check for the Child Elements USing only SAX Parsr?
HI Guyz,
How to check whether there are any Child Elements in an XML file using ONLY SAX parser ??? I have a requirement of checking first whether there is any Child Elements exists for a Element or not and based on that I have to take certain actions. Can anyone suggest me How to do that ???
Thanx
KKSince SAX is event controlled, you wont know if there's a child element unless you actually bump into it with the Parser. You'll simply get another startElement event after your current one.
/Tom -
Check If Tables are being used in Stored Procedures & How many times !!
Dear All,
I want to make a script which can give me an answer, that If there is any table , then Whether It's using in any stored procedure or not ? If yes, then what the occurrence in procedures - means if table is "ABC" & Its being used in stored procedure
"XYZ" then i want to know that its using 1 time, 2 time or more in particular procedure ..
Pls Helpjust in-case if you want to get the Cross DB dependency
i have extent Visakh16 code
please use sql_modules to get the full definition of the DB Objects
you can replace stg_table with your decided table, also use dbname.schemaname.tablename if you want to get Cross DB dependency
just came up with this from
link
create table #temp (
dbname sysname,
name sysname,
Occurance int
exec sp_MSforeachdb '
use ?
DECLARE @TableName varchar(100)
SET @TableName = ''stg_table''
insert into #temp
SELECT db_name() ,name,(LEN(definition) - LEN(REPLACE(definition,'' '' + @TableName + '' '','''')))/LEN('' '' + @TableName + '' '') AS Occurance
FROM sys.sql_modules m
INNER JOIN sys.objects o
ON o.object_id = m.object_id
AND o.type = ''p''
WHERE m.definition LIKE ''% '' + @TableName + '' %'''
select *
from #temp
where dbname not in ('master','model','msdb','tempdb')
order by 1,2
Thanks
Saravana Kumar C -
How to see if a DSO is used in any transformation
Hi Friends,
I am starting a new dataflow for a new release, lot of DSO's have been created in previous release, I want remove the objects which are not actually used in any reporting. However there a DSO which is used in one look up this i found when i went thru the code. However there are lot of unused DSO which i like to decommission, but am not sure if those DSO have been used in any transformation, and there is no proper documentation available either, hence its becoming challenging to identify each DSO.
I have used table RSAABAP to see if i can get some concrete info, in that table i got CODE-ID, but with that i cannot identify which other DSO or transformation are using this DSO in the look ups.
Can someone please throw some light on how to identify this issue?.
Regards
BNHi Kumar,
Just to rephrase my understanding on your issue :
The issue you are facing is , You have many DSO, which you feel that is not required, but you are not sure weather to delete them or not......as some other transformation might be using the Active table of DSO in the Start/End/Expert Routine.....which you have decided to deleted........
Now below are some options
1) Direct way is display dataflow.......which will tell you where is the direct transformation between the source and Target data target. Now here you will miss those data Targets which are reading the DSO active table in routine.
2) For Lookup/Reads in routines :Find out the Active table technical name of DSO ( /BIC/AXXXXXX00)
GOTO -
SE11---> Database table = /BIC/AXXXXXX00
Click on whereused list icon.....then you can select almost everything from available option available and execute... It will give the Program ID where your DSO is used.
Hope this helps...
Thanks
Mayank
Maybe you are looking for
-
Getting rid of Multiple Spaces in Code View (after Copying/Pasting)
Hello, I'm trying to find a way to get rid of multiple spaces between words in Dreamweaver CS3's code view. Oftentimes, when I copy/paste text from elsewhere (e-mail, website, etc), the Dreamweaver code shows up with multiple spaces. Normally, that w
-
Jpeg "save as copy" does not work
in CS3, after i'm done adjusting an image with layer and mask, etc, and I go to save it as a jpeg, it automatically attaches "-copy" to the name. I try to do this in CS5 and it doesn't work even though "save as a copy" is checked by default. I have t
-
Photoshop CS6 Will not Open/Create Files
I recently downloaded and installed the Photoshop CS6 Trial for Windows. Upon starting it, I try to create a New document, and no dialog window even opens. The open dialog will open, but selecting a file does nothing. I don't know why it would do
-
Hi, now i meet an XI issue. i set an XI Connection between A system and B system. and send an XI message from A to B. But it's blocked and raises the following error message: "Error while reading exchange profile for system B and client 099". any one
-
Can you Launch External Applications From Within InDesign Ebook?
Hi all, I was wondering if it is possible to open an external application from within an ebook (created with InDesign) e.g. click on a link and have an external ssh client open up for instance? Thanks in advance for any advice. Regards, RG