Get Calling Application Name
How can I get the name of the Application I use to connect to the DB from within a procedure/view?
The user ID used has no DBA or system privileges, so it can not use v$Session....
Thanks in advance for any help
Jerome
In the application call the procedure
DBMS_APPLICATION.set_client_info('Client Application Info');
The will set the client_info field in v$session.
You can also get the same value calling the function in the stored proc
DBMS_APPLICATION.GET_CLIENT_INFO
Similar Messages
-
Hai experts,
I have a requirement as follows:
I have a component named as ZComponent which has 3 view.
i am creating 2 applications for the component named as zappl1 and zappl2.
zappl1 starts from first view itsef where as zappl2 starts from second view.
I have an ALV table in the second screen.
it shud not be editable for ZAPPL1 and shud be editable for ZAPPl2.
Inorder to that i need to get the application name at runtime in the WDDOINIT METHOD of the second view.
Is there any method to get the application name.
If so plz help me as soon as possible.
IF any doubts revert back to me ASAP.
Cheers,
MadhuHi Madhu,
You do not need the application name for this. The following would work:
1. Create one more inbound plug to your window (interface view), other than the existing plug (default). The second plug should also be an interface plug of type "startup".
2. Create a node in your component controller with an attribute denoting the editable property.
3. Map this node in the window's context.
4. Your window will have 2 plug handlers, for each startup plug. Inside one handler, set the editable attribute to true and in the other, set the same to false.
5. Map the same node in the view controller also, and in your view layout, bind the "read only" attribute of your table to the node attribute.
6. Create a new application, zappl2 and in the default plug, specify the name of the second plug.
Launch both applications, your control should be editable in one and read only in the other.
Regards,
Nithya -
How to get the Application name/fullpath in a servlet deployed in WebLogic
Hi ,
Just like we can get the domain root directory from weblogic.management.DomainDir
String root = DomainDir.getRootDir() ;and domain name from weblogic.management.configuration.DomainMBean
DomainMBean domainMBean = MBeanUtils.getDomainMBean();
String domainName = domainMBean.getName() ;How can i get , the application name in which the servlet is deployed from inside the same servlet ? Which API from weblogic provides that information ?
for eg : application path = Middleware/user_projects/domains/Domain_1/servers/AdminServer/upload/webapp1.war
and application name = webapp1.war
Edited by: Tom on Mar 31, 2011 9:32 PMNot sure about Weblogic Specific API however you can use Java API.
public void init(ServletConfig config) throws ServletException {
// TODO Auto-generated method stub
System.out.println(config.getServletContext().getRealPath(""));
System.out.println(config.getServletContext().getContextPath());
output:
C:\Documents and Settings\user\KEDB\KEDBRISKIT\WebContent --- Application Path
/KEDBRISKIT --- Application Name
-Akshay -
Hi,
I have a project where it is imperative that i know the calling class and the called class name. I have a solution working where i place the caled class on a stack and record it as a possible calling class. However there must be a simpler means of doing this. My code is poor. Is there a method of getting the calling class on a classPrepareEvent so that i have the class and the calling class.
regards
ciaranI suggest you start by taking a look at the example source code
for the trace application, which is described here:
http://java.sun.com/products/jpda/examples.html
The example source code is included in your J2SE 1.4.xx bundle
under the demo directory. Look in $JAVA_HOME/demo/jpda/examples.jar
To compile or run the examples, you need to add
$JAVA_HOME/lib/tools.jar to your classpath.
After you unpack examples jar, look for
com/sun/tools/example/trace/Trace.java -
Get ran application name - If multiple apps are created in Dynpro Component
Hello All,
I have one dynpro component, where multiple application has been created for multiple windows in the same component. Each component has different default view set.
Is there any way fetch or get the name of application name that is ran, in the component controller's WDINIT method?
Thanks,
BhushanI found & the answer is -
DATA: lo_component TYPE REF TO if_wd_component,
lo_application TYPE REF TO if_wd_application,
lo_application_info TYPE REF TO if_wd_rr_application,
lv_appl_name_str TYPE string.
Get component
lo_component = wd_this->wd_get_api( ).
Set application name
lo_application = lo_component->get_application( ).
lo_application_info = lo_application->get_application_info( ).
lv_appl_name_str = lo_application_info->get_name( ). -
How to get calling jsp name?
We are implementing iStore 12.1.3
We have a jsp which can be called from multiple jsps. When the jsp is processed, navigation should go back to the calling jsp.
Is there any in-built API which provides calling jsp name?
Please advise urgently.
Thanks in advanceIs it a custom jsp or seeded jsp?
you can go back to previous page programmatically, only if previous page reference is passed thru request object
if it is seeded jsp, you will need to check if calling jsp is passing the name of page to destination page through request object.
if it is custom jsp, introduce code like below on all the source/calling JSPs.
<input type=hidden name="fromRef" value="<%=IBEUtil.htmlEncode("<name of page>")%>">
and on processing page, write code to forward to fromRef.
e.g. <jsp:forward page="<%=request.getParameter("fromRef")%>"/>
thanks,
Hrishikesh -
Let's assume I have the following:
fileA.cfm > includes fileB.cfm > includes fileC.cfm
Within fileC.cfm, how can I figured out that fileB.cfm was the page that called it? I was looking through getPageContext() for any revalent information, but I'm stumped. If i use cgi.path_info that's invalid as it would give me fileA.cfm. This has to be something obvious that I'm missingOne way would be to use the session scope...
fileA.cfm source code:
<cflock...>
<cfset SESSION.last_source_location = GetFileFromPath(CGI.CF_TEMPLATE_PATH)>
</cflock>
<cfinclude template="fileB.cfm">
fileB.cfm source code:
<cflock...>
<cfset SESSION.last_source_location = GetFileFromPath(CGI.CF_TEMPLATE_PATH)>
</cflock>
<cfinclude template="fileC.cfm">
fileC.cfm source code:
<cfif IsDefined("SESSION.last_source_location") AND Len(SESSION.last_source_location) AND SESSION.last_source_location IS "fileB.cfm">
<!--- Source location was valid. --->
<cfelse>
<!--- Source location was not valid. --->
</cfif>
<cfset SESSION.last_source_location = ""> <!--- Reset for use again. ---> -
How to get Application name of a current running process in LiveCycle??
Hi,
I want to get the Application name of current running process in LiveCycle as a output value.
I have 3 applictions, the 3 applications are calling same SubProcess, so I want get the name of the application from which the sub process has been called.
I want to retrieve the Application name and asssign this value to a output variable.
I have searched for the solution I found a method getApplicationName() but inorder to get the current running process's Application Name this might not be useful..
So suggest the way to resolve this..
Thanks in Advance.....
Regards,
Kalyan UrimiUse an input/output string variable in the subprocess and set its value in each calling process as respective Application name.
May be if this could help.
Thanks,
Wasil -
How to get WD component name or application name
Hi ,
Is there any sap standard variable where webdynpro component name or application name get store like SY-CPORG.
Thanks And Regards,
RohitHi,
You can get the application name using below code:
DATA : lr_api TYPE REF TO if_wd_component,
lr_app TYPE REF TO if_wd_application,
lr_app_info TYPE REF TO if_wd_rr_application,
lv_app_name TYPE string.
lr_api = wd_comp_controller->wd_get_api( ).
CALL METHOD lr_api->get_application
RECEIVING
result = lr_app.
CALL METHOD lr_app->get_application_info
RECEIVING
result = lr_app_info.
CALL METHOD lr_app_info->get_name
RECEIVING
result = lv_app_name.
Now pass the lv_app_name to the FM.
hope this helps u,
Regards,
Kiran -
Hello,
I want to get the application name. I want to use this name to do a title.
I'm sorry but my english is very bad. thank you,
AmparoHi,
create an application item called APP_NAME and then an application computation (in the shared components), specify "on new instance" as computation point
and enter the following query (choose SQL query for the computation type):
select application_name
from apex_applications
where application_id = :APP_ID
Bye
Flavio
http://oraclequirks.blogspot.com -
How to get application name from a receive location?
Hi all,
I am trying to do a custom error application, and I want to notify system admin users that "the receive port XXXX has stopped in application YYYYYY".
Right now I do know which receive location that is being suspended. But I am not being able to get the application name, associated to this receive location (I can also get the ReceivePort, if it matters).
I've tried 2 ways:
> using WMI
> Using SQL (direct query in BizTalk databases - for testing).
I did not found any solution, even search table by table, i did not found a relation between Applications and receive location..
Anyone?
Thanks in advance
Ricardo BessaThe following SQL query should give you a result of every disabled receive location as well as it's receive port and application:
SELECT
RL.Name AS ReceiveLocationName
, RP.nvcName AS ReceivePortName
, APP.nvcName As Application
FROM [BizTalkMgmtDb].[dbo].[adm_ReceiveLocation] AS RL WITH(NOLOCK)
INNER JOIN [BizTalkMgmtDb].[dbo].[bts_receiveport] AS RP WITH(NOLOCK)
ON RL.ReceivePortId = RP.nID
INNER JOIN [BizTalkMgmtDb].[dbo].[bts_application] AS APP WITH(NOLOCK)
ON RP.nApplicationID = APP.nID
WHERE
RL.[Disabled] = -1
ORDER BY Application ASC
Christian @ IntegrationAdmin.com -
Getting application name in APEX in a query
Hi Guys, is there anyway to get the application name via query.
I looked at the API and can only get the ID by using v('APP_ID')
http://www.utoug.org/i/doc/concept_sub_strings.htm
Thanks.
Edited by: AI on Dec 22, 2011 2:33 PMAI wrote:
Hi Guys, is there anyway to get the application name via query.
select application_name
from apex_applications
where application_id = :app_idDocumented, public access to application metadata is available through APEX views. You can get an overview of these using the query
select * from apex_dictionaryin Home > SQL Workshop > SQL Commands.
A more structured view of the APEX views is available at Home > Utilities > Application Express Views (switch to Tree view to get the best idea of how these are organised). -
Application Name and URI extraction through wmi
Does anyone know how to extract BizTalk application name and URI using WMI (C#)?
Thanks in advance.Hi Pratibha,
Above code will only get you the application status or application collection class not the Application NAME(S). To get name of the BizTalk application, you
need to use “Name” property of
ExplorerOM.Application
You cannot get BizTalk application name using WMI. Because Application concepts was first introduced in BizTalk 2006 onwards and WMI class to access the BizTalk
was introduced in BizTalk 2004 and WMI classes were not updated after that.
But as suggested you can use
ExplorerOM
to access the BiZtalk application name. Following will get you the list of applications in a string. You can update it to get the specific application or
list of applications as shown below.
private string GetBTSApplicationNames()
// connect to the local BizTalk Management database
Microsoft.BizTalk.ExplorerOM.BtsCatalogExplorer catalog = new Microsoft.BizTalk.ExplorerOM.BtsCatalogExplorer();
string sAppNames = String.Empty;
try
//connection string to BizTalk management database
catalog.ConnectionString = "SERVER=.;DATABASE=BizTalkMgmtDb;Integrated Security=SSPI";
//Loop thru the list of applications. Here I am appending it to a string, you can do as your requirment.
foreach (Microsoft.BizTalk.ExplorerOM.Application application in catalog.Applications)
sAppNames += application.Name.ToString()+ " ,";
catch (Exception ex)
//Handle exception
System.Diagnostics.EventLog.WriteEntry("AppError", ex.ToString());
catalog.DiscardChanges();
throw ex;
return sAppNames;
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply. -
Caller Program name after SUBMIT or Call Tran (SAP-Query drill as ex)
Hi , there is real simple situation
I have SAP Query and do Drill Down to my Report or Transaction.
So I have two questions but as I believe they are equal:
1) How I can get Caller SAP Query name from my Report ?
2) How can we get Caller Program name after SUBMIT or CALL TRANSACTION operator (in new started report for example )?Hi,
there is a system variable sy-cprog ...check if u can use it...
else from the caller prog move its name to SAP memory and retrive it in called prog..
in caller prog
data caller_prog type SYCPROG.
move sy-repid to caller_prog.
set parameter id 'ZCPROG' field caller_prog.
submit <called_prog> and return.
in called prog
data caller_prog type SYCPROG.
get parameter id 'ZCPROG' field caller_prog.
write caller_prog.
write / sy-repid.
Cheers,
jose. -
How to get application names currently running on Windows?
Hi Experts,
Please help me how do I get application names (tasks) currently running (as shown in Windows Task Manager-Application Tab) in Windows.
Thanks,
DeepakHi....
probably it's a unusual solution but you could try it....
Create a *.bat file call it test.bat .. Create it on your local machine or on your server folder..
PARAMETERS: DOSCMD(30) DEFAULT 'c:\test.bat' LOWER CASE.
call function 'GUI_EXEC'
exporting
command = DOSCMD.
Inside your test.bat file put this code..(it's a dos command to create a txt file containing the output of tasklist.exe command
tasklist > c:\test.txt
In your test.txt file you will have a list of tasks running on windows...
Hope to help...
bye...
Maybe you are looking for
-
Change the 'No data found.' message in a report region
I've got a report region (PL/SQL source) which sometimes returns no data, giving a 'No Data Found.' message. I couild have sworn there was an option to choose a custom message in the region definition when no data is returned - but I can't see that o
-
How to use standard ERP fields in WEB UI not mapped in LORD com. structure
Hi gurus, I'm using CRM 7.0 WEB UI to maintain ERP Sales Order and Quotation. I want to display and maintain some standard fields, for example VBKD-KZAZU. This field is not in the LORD mapping tables and it is not in the comunication structures COMV
-
ISight Camera not installed properly?
Hey Everyone Just trying my new 24" ACD out, and opened photo booth, to find that the camera doesn't seem to be installed properly. If you sit in front of the screen, it is pointing to the right, so it might pick up an arm if you are lucky! Has anyon
-
Newbie question-where to find forms development tool?
I downloaded oracle 10g 10.0.2 enterprise or AS and my database is running, but I don't know where to find forms and navigation tools? please suggest me as i am practicing forms and developer as well, what products to download and what needs to be do
-
Hi, One of my customers asked me why the service call ID number is used even when you cancel a new service call that you were supposed to add. The service call ID should work as the other documents, when you cancel it in "add mode" it shouldn't use t