How to get client machine name and IP address
Hi,
In my office I have one SERVER which has FORMS & Report Server installed and all the clients are accessing that application thru the following URL :
http://OraServer:8889/forms/frmservlet
to get the machine name I have read into a global variable like this
SELECT USERENV('TERMINAL' ) into :global.clientname FROM DUAL;
but obviously all the time its returning the SERVER machine name...not the name where client is accessing the program....so how can I get the client machine name..
thanks
Hi Frank,
Well I am using Developer Suite 10g Release (10.1.2.0.2) ..I've gone thru the link what you have sent me and noticed that whatever updations of conf file or classpath its already there so i guess needn't to modify cause I think my release 10.1.2.0.2 has did already as webutils been bundled with it.
Well What i did is to double click on ATTACH LIBRARY and browse the location to find webutil.pll and finally attached it...even though its showing me all the procedures like clientinfo and others...
on my block's canvas I've put a button and used this trigger to get client info function like this.
when-button-pressed trigger of INFOBUTTON
DECLARE
o_clientinfo varchar2(50) := Webutil_clientinfo.GET_HOST_NAME ;
begin
message(o_clientinfo);
end;
but when I am trying to open this form its simply not showing up..strange thing is that there is no error as well...so plz kindly guide me how to get clientinfo hostname or ipaddress using that library function.
thanks
Similar Messages
-
Get Machine Name and IP Address from Air Flex App
New to Air..... Is there a way to get the name of the machine
and the ip address for the client running the Air application? Not
that this matters, but the applcation would be a Flex 3 application
built specifically to be deployed to the Air runtime. I need to be
able to have the Air/Flex application know what the client's
machine name and ip address is. Can this be done?
ThanksHi Frank,
Well I am using Developer Suite 10g Release (10.1.2.0.2) ..I've gone thru the link what you have sent me and noticed that whatever updations of conf file or classpath its already there so i guess needn't to modify cause I think my release 10.1.2.0.2 has did already as webutils been bundled with it.
Well What i did is to double click on ATTACH LIBRARY and browse the location to find webutil.pll and finally attached it...even though its showing me all the procedures like clientinfo and others...
on my block's canvas I've put a button and used this trigger to get client info function like this.
when-button-pressed trigger of INFOBUTTON
DECLARE
o_clientinfo varchar2(50) := Webutil_clientinfo.GET_HOST_NAME ;
begin
message(o_clientinfo);
end;
but when I am trying to open this form its simply not showing up..strange thing is that there is no error as well...so plz kindly guide me how to get clientinfo hostname or ipaddress using that library function.
thanks -
Get Remote Machine Name and SerialNumber
Hi -
Looking to get remote machines name and serial number using computer names in a text file. THis is what I have but it's not working. ANy suggestions? TIA
$computers = Get-Content c:\GETSN\computerlist.txt
$computers | foreach { Get-WmiObject -ComputerName computers -Class Win32_BIOS | Select -Property PSComputerName,SerialNumber}Are you sure that all of the machines are online and you can run remote WMI queries against them?
This should try to take some of that error handling into account:
Get-Content .\computerList.txt | ForEach {
$props = @{
ComputerName = $_
SerialNumber = ''
Status = 'OFFLINE'
If (Test-Connection -ComputerName $_ -Count 1 -Quiet) {
$props.Status = 'Online'
try {
$bios = Get-WmiObject Win32_BIOS -ComputerName $_ -ErrorAction Stop
$props.SerialNumber = $bios.SerialNumber
} catch {
$props.SerialNumber = 'ERROR retrieving value'
New-Object PsObject -Property $props
} | Select ComputerName,SerialNumber,Status | Sort ComputerName
Don't retire TechNet! -
(Don't give up yet - 12,950+ strong and growing) -
How to get all property names and values of an bean instance at runtime?
How can I get all property names and values of an bean instance at runtime?
(The class of the bean instance is dynamic and I can not know before I write the code .)Look at Class. It has a way to get at all public methods and attributes.
If you need to get to private attributes you can do what the Introspector does and expect the methods to follow the Bean pattern and pull the attributes out based upon that. Privates are all hidden from direct access but through the Bean Pattern they can be figured out. -
How to get the class name and field name dynamically
Hi
I have a class (ex: Contract) the fields (ex : a,b,c) .i need to get the class name and field name dynamically
ex
if( validation file for the field Contract.a){
return contract.a;
}else if(validation file for the field Contract.b){
return contract.b;
how to pass the field name and object dynamically
Please help me .............
Thanks in Advance..
Edited by: 849614 on Aug 11, 2011 6:49 AMYoungWinston wrote:
maheshguruswamy wrote:
Agreed, but IMO, i still feel its best if there is no tie in between consumer class level details and the database it talks to. A service layer is needed in between them.Sounds like you've done a bit of this before. Me, I've either been a modeller/DBA, doling out data, or a nuts and bolts programmer (and actually more toolmaker than apps, but did a bit of that too).
Do you know of a good book about the "middle ground" (ie, these service layers)? I understand it empirically, but haven't had a lot of exposure to it.
Winston
Edited by: YoungWinston on Aug 11, 2011 10:34 PM
PS: Apologies. Edited my previous post, presumably while you were composing your reply, when I finally realized what '.filed' meant.Most of my work is in web development, never been a DBA :) . The biggest 'concern' in my shop is 'separation of concerns'. The UI group reports up to a different IT head, the DB group reports up to a different IT head and so on. The looser the coupling between these systems, the lesser the project costs (Integration, QA etc) are. Martin Fowler's books contain good information about separation of concerns in an enterprise environment. The two books which i recommend are
[url http://www.amazon.com/Patterns-Enterprise-Application-Architecture-Martin/dp/0321127420]Enterprise Application Architecture and
[url http://www.amazon.com/Enterprise-Integration-Patterns-Designing-Deploying/dp/0321200683/ref=pd_sim_b_1]Enterprise Integration Patterns -
How to get report Server Name and Environment ID in Report
How to print report Server Name and Environment ID in Report 10G.(Through in package or others)
I'm also using Oracle Application Server 10G.Hi,
Server and envid are the parameters passed along with Reports URL call.
These variables value can be traped in Report by defining SERVER , ENVID named user parameters.
Once trapped, can be printed on Report.
Just ensure that these users parameters are not exposed to Parameter page, otherwise user may end up changing it.
Thanks -
How to show users display name and email address in open social widget?
Hello experts,
Is it possible to retrieve users display name and email address with opensocial javascript e.g. Login widget seems to load user data (and userData.firstname) during the site init. Is this something that could be consumed or is there some opensocial data request that could/should be used. Any working sample widget spec would be appreciated.
Best regards,
VilleHi Ville,
in the logon widget, we also use the data retrevied from siteInit.loadData.data.user. However, this widget is part of the out of the box openSocial widgets, it is being released with the product code, not as a separate OS widget deployed on HANA Cloud Platform.
If you'll do window.parent.siteInit you'll probably will get the data you are looking for, but this isn't the official public API, so you can use it but we cannot commit on keeping this structure.
Why do you need this information in the widget level? Does your widget require authentication or is it for personalization needs?
The best way is to retrieve this info on the java side using HAHA Cloud Platform APIs and send them back to the client.
Look at this - SAP HANA Cloud Platform SDK >
Package com.sap.security.um.user
Interface:
User
This interface provides read access to user data and is an extension of Principal.
UserAttribute
The interface represents abstraction over a user general attribute, such as an e-mail address.
UserProvider
This interface represents the service interface which provides read access to a user implementation.
Inbal -
How to get client computer name in Developer 9i
Hi ..
I m using developer 9i from several days.But i need to get the client computer name.But i heard that i need to use GetClientInfo java bean to get that.How to use GetClientInfo.What is the procedure to use that?What code i should use?In Sample code in this site..there was a example.But in that example there is nothing clear.What to do and what code should i use?
SharifThis shouldn't be any problems if you'd successfully installed the Forms Demos. Anyhow, another way is to use WebUtil which I'd prefer. There's tons of other interesting and useful functions in WebUtil.
Also, I'd really, really think about using Forms 10g instead of 9i.
Regards,
Martin Malmstrom -
How to get uploaded file name and path in BefExportToDat event script
I would like to get hold of the uploaded file name and full path in the event script "BefExportToDat", as I need to extract values from particular fields. However I have not yet found a way to do this.
- The input variable "strFile" returns the .Dat file path in the Outbox, to which it is about to export the data. This is no use to me.
- The API variable RES.PstrFilename is returning nothing
I am using RES.PstrFilename in the "BefFileImport" event script in a different FDM application and it works fine, however I need to find a way to get this to work in the "BefExportToDat" event script.
Please let me know how this might be achieved.I am looking through the API calls in FDM Workbench, but cannot see the table (tPOVPartitions) you mentioned listed. Is this the correct name? And do I just use the function listed in the object browser to run the query?
Furthermore (going back to my initial thoughts of using strFile), it appears that although the variable contains the .Dat filename and path, the actual file is non-existent when "BefExportToDat" is executed:
Error:
Error: Export failed.
Detail: File not found.
This would make sense, but it does make the variable "strFile" a little pointless since one cannot make use of the file in this particular event script. Do you please have any thoughts on this? -
How to get the Host name and port number
Hi all,
I am working in xRPM. I need to get the server name, host name & port number for the portal and i need to diaplay as a link in the Workflow step. I cant give the portal link as static, as it will vary depends on the DEV, QUAL, PROD. Is there any FM or class is available, so i can get the server name, port no. for my purpose?.
Regards,
VinothHi Kanagaraja,
My client has configured the portal and backend in different stack. So when i execute the FM you provided and with class: CL_HTTP_SERVER, CL_WD_UTILITIES, i am getting only the backend host name and port no. not the portal's info. So please help is there any way we can get the portal's info.
Thanks for your reply.
-Vinoth -
How to get User's Name and Email to use in an InfoPath Form?
Hey guys,
I created a form that MUST have the user filling it out and his/her email in it, but I don't want the user to type it, instead I'd like the form to get it from Office 365 AD, since this form is in Sharepoint Online via Office 365.
How can I do that?
Thanks.I tried it, but the closest it got was showing the user's Group, not name and definitely no email, I don't know if this is because it's SharePoint Online and not OnSite and I don't know if UserProfileService is available there, I did not see it in the Site
Collection Features to enable it.
Any other idea/solution? without this info my form will not work.
Thanks. -
How to get the login name and password
Hi,
I had installed the SAP NW2004s on Windows platform with MaxDB as backend.
The master user name and password which i used for instllation was
Username :Administrator
password:trustno1.
My SAPSID and DBSID is J2E
Now i want to login into maxdb
how should i procedd
IF i fire the following commnd
dbmcli -d J2E -u Administrator,trustno1
i get the follwoing error
C:\sapdb\programs\bin>dbmcli -d J2E-u Administrator,punadmin
Error! Connection failed to node (local) for database J2E: ERR_USRFAIL: User aut
horization failed
Please help.Hi Manoj,
You are trying to login into database using SAP level user:Administrator. Try login using <sid>adm/SAPService<SID> user or the database user. For more info on MAXDB adminsitration please check:
<a href="https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=846890">MAXDB admin</a>
Also check OSS note 143412.
Please award points accordingly.
Regards.
Message was edited by:
Ruchit Khushu -
How to get the table name and bind columns names in an INSERT statement ?
I have an INSERT statement with input parameters (for example
INSERT INTO my_table VALUES (:a, :a, :a)) and I want to know
without parsing the statement which is the name of table to
insert to and the corresponding columns.
This is needed to generate the SELECT FOR UPDATE statement to
refetch a BLOB before actually writing to it. The code does not
know in advance the schema (generic code).
Thanks in advance,
Joseph CanedoOnce you have prepared your statement, you can execute the
statement with the OCI_DESCRIBE_ONLY mode before binding any
columns. Then you can use OCIParamGet to find out about each
column (column index is 1-based). You should get OCI_NO_DATA or
ORA-24334 if there are no more columns in the statement. Note
that the parameter descriptor from OCIParamGet is
allocated/freed internally by OCI; you do not need to manage it
explicitly. The parameter descriptor is passed to OCIAttrGet in
order to obtain for instance the maximum size of data in the
column OCI_ATTR_DATA_SIZE. You can also get the column name in
this way, although I do not remember the #define off the top of
my head. Getting the table name appears to be much more
difficult; I have never had to do that yet. Good luck. -Ralph -
How to get the column name and table name from xml file
I have one XML file, I generated xsd file from that xml file but the problem is i dont know table name and column name. So my question is how can I retrieve the data from that xml file?
Here's an example using binary XML storage (instead of Object-Relational storage as described in the article).
begin
dbms_xmlschema.registerSchema(
schemaURL => 'my_schema.xsd'
, schemaDoc => xmltype(bfilename('TEST_DIR','my_schema.xsd'), nls_charset_id('AL32UTF8'))
, local => true
, genTypes => false
, genTables => true
, enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_CONTENTS
, options => dbms_xmlschema.REGISTER_BINARYXML
end;
genTables => true : means that a default schema-based XMLType table will be created during registration.
enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_CONTENTS : indicates that a repository resource conforming to the schema will be automatically stored in the default table.
If the schema is not annotated, the name of the default table is system-generated but derived from the root element name :
SQL> select table_name
2 from user_xml_tables
3 where xmlschema = 'my_schema.xsd'
4 and element_name = 'employee';
TABLE_NAME
employee1121_TAB
(warning : the name is case-sensitive)
To annotate the schema and control the naming, modify the content to :
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb">
<xs:element name="employee" xdb:defaultTable="EMPLOYEE_XML">
<xs:complexType>
Next step : create a resource, or just directly insert an XML document into the table.
Example of creating a resource :
declare
res boolean;
doc xmltype := xmltype(
'<employee>
<details>
<emp_id>1</emp_id>
<emp_name>SMITH</emp_name>
<emp_age>40</emp_age>
<emp_dept>10</emp_dept>
</details>
</employee>'
begin
res := dbms_xdb.CreateResource(
abspath => '/public/test.xml'
, data => doc
, schemaurl => 'my_schema.xsd'
, elem => 'employee'
end;
The resource has to be schema-based so that the default storage mechanism is triggered.
It could also be achieved if the document possesses an xsi:noNamespaceSchemaLocation attribute :
SQL> declare
2
3 res boolean;
4 doc xmltype := xmltype(
5 '<employee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6 xsi:noNamespaceSchemaLocation="my_schema.xsd">
7 <details>
8 <emp_id>1</emp_id>
9 <emp_name>SMITH</emp_name>
10 <emp_age>40</emp_age>
11 <emp_dept>10</emp_dept>
12 </details>
13 </employee>'
14 );
15
16 begin
17 res := dbms_xdb.CreateResource(
18 abspath => '/public/test.xml'
19 , data => doc
20 );
21 end;
22 /
PL/SQL procedure successfully completed
SQL> set long 5000
SQL> select * from "employee1121_TAB";
SYS_NC_ROWINFO$
<employee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceS
<details>
<emp_id>1</emp_id>
<emp_name>SMITH</emp_name>
<emp_age>40</emp_age>
<emp_dept>10</emp_dept>
</details>
</employee>
Then use XMLTABLE to shred the XML into relational format :
SQL> select x.*
2 from "employee1121_TAB" t
3 , xmltable('/employee/details'
4 passing t.object_value
5 columns emp_id integer path 'emp_id'
6 , emp_name varchar2(30) path 'emp_name'
7 ) x
8 ;
EMP_ID EMP_NAME
1 SMITH -
How to get Data Source Name and Source System for InfoPackage
Hello Guys,
I'm creating a routine that can be use by any InfoPcakges...
how can I get the Source System and Data Source in a Routine?Hi
Please check the table RSLDPIO,
In this table search with Info Package-->You will get Data source related to this info package
then goto RSDS >here search with Data source>you will get from which Source system this is extracting data
Hope this helps
Regards,
Venkatesh
Maybe you are looking for
-
Organizing a chaotic library with some duplicates
Over the past few years, due to glitches and clumsiness on my part, I have multiple folders that have my music, and some of these folders have overlapping music (i.e: Folder A has songs 1-500, Folder B has songs 300-700, Folder C may have some new so
-
R/3-extraction to multiple BW-Systems
Hi everybody, I was asked if it is possible to do the same data-extraction from one R/3-source-system to multiple BW-Systems (I don't mean various cubes in one system) I can't find any information about this topic! I hope one of you can help me! Than
-
WIP or scrap calculation for parallel operation sequences not possible
hi, i want to calculate wip and scrap along with parallel sequence system prompts following mesage any suggetions plz send in higher priority Message no. KV161 Diagnosis If the routing specifies a sequence of operations that are defined as a parallel
-
Backing Up Your App. Progress
When you back up your ipod touch, does it also back up all your app progress. Because I'm going to get a new ipod, but I don't want to lose any progress from my apps. I was going to install the backup of my old ipod to the new ipod. Will my new ip
-
I just tried to pull up my library on my desktop and the only thing there was the very recently purchased songs. EVERYTHING else is gone. How can I get it back? It still shows on my IPhone.