How can find the schema name
Hi,
I just want to know,
based on the sql statements in v$sql, want to know the schema from which the queries are being executed.
and one more thing,
one sql procedure/function got failed from the application , I want to know from which schema it got failed and the time when it got failed?
RR
You can define the EXCEPTION for any PL/SQL block to catch errors
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/exception_definition.htm#LNPLS01316
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com
[Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]
Similar Messages
-
How to find the program name of the smart form?
How to find the program name of the smart form if output type is not known?
thanks in advance...How to find the program name of the smart form if output type is not known?
thanks in advance...
T-code SE16
Enter table name: TNAPR -> Press enter key
Enter smartform name in input field(SFORM): Z_your_smartform_name
Execute
you can find program name under the column PGNAM/Program name.
Regards
sudheer -
How to find the form name attached to AR Open item list
How to find the form name attached to AR Open item list
FBL5N -> Correspondance
Thanks
GaneshYou can find out in SPRO.
Go to tcode SPRO
Financial Accounting (New)
Financial Accounting Basic Settings (New)
Correspondence
Define Form Name for Correspondence Print
Here you will find the form attached to the program.
To find the attached program to the Correspondence type.
Go to tcode SPRO
Financial Accounting (New)
Financial Accounting Basic Settings (New)
Correspondence
Assign programs for the Correspondence Types
Regards,
Naimesh Patel -
How to find the program name of the created sap query ?
how to find the program name of the created sap query ?
Hi avinash,
Try in this way..
Go to SE16 and then go to table TSTC.
in that give program name as <b>*followed by your query name</b>
(for example *TESTQUERY)
and run , that will give progname======queryname.
this way you can find program name.
vijay -
How to find the machine name from which the table is created ?
YogeshTurn on DDL auditing.
http://www.oracle-base.com/articles/10g/Auditing_10gR2.php outlines some uses ... i'm sure you can find more with a google search. -
How to find the query name using infoset name
Hi Experts
Iam new to the sap queries(SQ01,SQ02), some queries already created.
now i want to do some modification, my problem is i am not able to find the query name.
I know the infoset name, can you tell me how to find the query name using the infoset name, is ther any table for this.
i tried in sq01 also, but its confusion, pls advice me on this.
thanks in advance.
regards
rajaramHi
try like this..
SQ02 --> go to --> Query Directory..
from there you can get all the queries belong to a Infoset. -
How to Get the schema name that contains the current procedure?
I have try select sys_context( 'userenv', 'current_schema' ) from dual; but it returns the schema name of the login user. How to return the schema name of the procedure instead? For example, procedure A is in ControlDB, and I login as sys, when query procedure A it should return ControlDB instead of sys.
I have searched in Google but no luck to find the answer so far, please help. Thank youIt works!
I am quite confused now. I did try to use select username from user_users in GetSchemaName procedure, but it always return the login user instead of the owner of the procedure. Why it return the procedure owner if I put the query inside a function then call it from the procedure?
Is it because when the login user call the procedure and the procedure call the function, it's the procedure owner is calling the function so the user_users return the user that is calling it which is the procedure owner. And if the query is directly put inside the procedure, when the login user call the procedure, user_users return the login user directly? Does it imply that if the procedure call any function or other procedures etc, it would be the procedure's owner calling them instead of the login user?
(sys_context works as well if I move the query into the function then call the function from the procedure)
Cheers
Message was edited by:
user500168 -
How to parameterize the schema name in APEX
Hi,
How to parameterize the schema name in APEX , in order to access different tables from the respective schema.
For example:-
select NAME display_value, CODE return_value
from paramSchema.DESC_LIST WHERE SELECTION_FLG = 'Y'
order by 1
in the above code, paramSchema will be replaced with the actual schema name duing runtime. I tried doing so by some hidden fields on page, but it didn't worked out.
I took the schema name from the respective server as per the IPof the server.
stored in a hidden field named as schema.
And replaced the same in place of schema name. But no luck.
select NAME display_value, CODE return_value
from :schema.DESC_LIST WHERE SELECTION_FLG = 'Y'
order by 1
Please help me in shorting it out.
Thanks,
AnuradhaHi
In order to do that, you would need to use dynamic SQL by changing the report type to PL/SQL Function Body Returning SQL Query and have code along the lines of
DECLARE
l_sql VARCHAR2(32767);
BEGIN
l_sql := 'select NAME display_value, CODE return_value
from '||:schema||'.DESC_LIST WHERE SELECTION_FLG = 'Y'
order by 1';
RETURN l_sql;
END;However, by doing this, you lose alot of flexibility. The other options would be...
To have seperate report regions that are conditional on the value of the variable.
To use a WITH clause at the tope of the query like...
WITH src_data AS
(SELECT * FROM schema1.my_table
WHERE :schema = 'schema1'
UNION ALL
SELECT * FROM schema2.my_table
WHERE :schema = 'schema2')
SELECT *
FROM src_dataOther than that you could look at using synonyms and doing something similar.
Hope this helps.
Cheers
Ben -
How to find the File name using the FTP Adapter
hi all,
how to find the File name using the FTP Adapter with BPEL.
RegardsFound the solution for this.
First In the mediator's routing rule use assign property $in.property.jca.file.FileName to $out.property.jca.file.FileName
In the BPEL's receive activity go to the properties tab and get the property to a BPEL variable. That should do it.
Thanks for the posts -
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 technical name
Hai,
How to find the technical name of a data source for General Ledger: Balances Period Breakdown
ThanksHai
my question is in General Ledger: Balances Period Breakdown
the link is showing General Ledger : Balances , Leadingledger
I got this link in queries for General Ledger: Balances Period Breakdown
http://help.sap.com/saphelp_nw70/helpdata/en/2d/955a73da4d6d41a0a6128caf274ce8/frameset.htm
But here technical name of info cube is given.But i dont know how to find the technical name of the data source.This might be simple question i think but i am new to SAP
Thanks -
How to find the form name from VA02 T.code
how to find the form name from VA02 T.code
Hi Rajyam,
I guess you are looking out for the formname which prints sales related documents.
If this is what you want,then go to the T-code NACE and select the option K1Sales activities and click on the Output Types button on the top.The new window has all the types of Output types listed.Select the most appropriate and double click on the Processing routines button in the left side screen.
The new window lists the program names and the forms associated with that output type.
In case you have any further clarifications,do let me know.
Regards,
Puneet Jhari. -
How to find the program name for LSMW
hi experts,
i have created a LSMW for uploading data in HR.i hope there will be a ABAP progarm automatically generated from it .where i can find the program name .
i have succesfully completed all the 14 stepas and data is uploading comfortably .
thanx in adavancehi,
just do liek this to know abt the program name,
select system at the menu in your lsmw,
select status ,
in popup u'll get the proram name and all other related details.
reward points if useful,
regards,
seshu. -
How can find the location of my iPad when location services is off?
How can find the location of my iPad when location services is off?
If you're wanting to know if you can locate your iPad though iCloud, without Find my device enabled and without power, you won't be able to locate it.
-
How to find the dsn name from an *.rpd file provided?
How to find the dsn name from an *.rpd file provided? All the ODBC details which would require to run your dashboard.
Hi
DSN name is not a part of .rpd file. So There is no information about DSN name in .rpd file.
Thanks
Siddhartha P
Maybe you are looking for
-
I am automating the process of sending appointment reminders to my clients. I started with an alert with an email in calendar using the clients email address as a custom entry in my me card in my contacts. this was resulting in three emails being sen
-
How can i change my dock? When i try paste the new images, it won't let me.
-
Error: couldn't create user
hi, i have installed EP on WAS 6.40. when i am tring to create a user i am getting the error as : "Couldn't create User". can someone guide me as to how to resolve this issue.... please reply fast...
-
User Profile Disks - exclusions not working
I'm utilizing User Profile Disks to handle profiles between my Session Host servers. I have some odd requirements on which folders need to be included in the UPD, so for this reason, I am using the option of "Store all user settings and data on the u
-
Iphone 3gS Cursor jumps around.
My Iphone 3gS cursor jumps around on occasion when typing texts or emails. The issue has persisted despite several resets and software upgrades. When the cursor jumps, it can either go to the next line or else into the "Sent from my Iphone" line. Any