Fetching IP Address of Local system in CUSTOM.pll

Hello All,
We have a requirement as per which we have to fetch the IP address of Client machine. I am using below query to fetch the IP address. Whenever I run the below query into TOAD, I get the IP addresss of my system. However, when I use the same query in CUSTOM.pll, it is fetching the IP address of application server.
---------------- Select Query -----------------------
SELECT sys_context('userenv','ip_address')
INTO l_ip_address
FROM dual;
How do I get IP address of my system while using CUSTOM.pll. Any pointers on this is highly appreciated and reply back to me on email id [email protected]
Thanks & Regards,
Abhishek Tiwari

Hi user;
Please check http://newgendba.blogspot.com/2009/04/how-to-get-client-ip-address-for.html
I hope, It would gives u some light
Regard
Helios

Similar Messages

  • Create Local Variable in Custom.pll

    Hi,
    I want to create and calling local variable in custom.pll. As i know, we can create local variable with personalization form. but i didn't find the way to create local variable in custom.pll.
    Is there any way to create local variable in custom.pll and calling that variable ?
    Thanks

    I think what you want is to create a GLOBAL variable, a LOCAL variable would be available to the Procedure/Function being executed.  But to create the local variable, you add it between the Function/Procedure declaration and the begin
    PROCEDURE abc(p_input    VARCHAR2);
      v_count       NUMBER := 0;
    BEGIN
    END;
    A GLOBAL reaches out past the execution of the proc defined in CUSTOM.pll.  You can simply type GLOBAL.<var_name> := <value>.
    BEGIN
      GLOBAL.xx_count := 0;
    END;
    Though I like the ability Personalizations give you of using Init Value vs. Value,  Init Value will assign a value if the variable does not exist ... and creates it.  Value just assigns a value.
    Some say you have do a COPY(value, NAME_IN('variable name')) instad of GLOBAL.<variable_name>, I have never had to use this.

  • How do I have an exe in a logon script run as a different user (either a domain admin or even the local system account)

    So, I'm having some problems getting a logon script to work.  I need a way to deploy the agent that we use via login/startup scripts and what I have works fine if the user has admin rights, or if UAC is disabled.  I've tried to convert the .exe
    to an .msi to make it easier, but the .msi never works and it's only distributed as an .exe.  We deploy this to different clients, I can't disable UAC in their environment unless they specifically tell us to.  Can anyone think of a way around this? 
    I've been searching for days and I'm just lost.  If we could execute the file as the system account, or connect to shares using a startup script instead of logon, that would be perfect.  Basically what it does is check to see if the process for the
    agent is running (agentmon.exe) so we don't attempt to install it if it is already installed, if it's not, then it calls on a different agent installer depending on the IP address of the system (for clients that have more than one location).  Here's what
    I've got written that works for me in my test environment:
    Const strAgent1 = "\\home.wiginton.local\SysVol\home.wiginton.local\Policies\{CD4ED3BD-0709-4E3D-A303-C9E3B0F5198D}\User\Scripts\Logon\Test-KcsSetup1.exe"
    Const strAgent2 = "\\home.wiginton.local\SysVol\home.wiginton.local\Policies\{CD4ED3BD-0709-4E3D-A303-C9E3B0F5198D}\User\Scripts\Logon\Test-KcsSetup2.exe"
    Const strAgent3 = "\\home.wiginton.local\SysVol\home.wiginton.local\Policies\{CD4ED3BD-0709-4E3D-A303-C9E3B0F5198D}\User\Scripts\Logon\Test-KcsSetup3.exe"
    Const strFolder = "C:\Temp\"
    Const Overwrite = True
    dim objFSO, objNIC1, arrNIC, strIP, strMask, objShell, objWMIService
    dim
    'Checks for Kaseya agent process, AgentMon.exe, exits if running
    Set objWMIService = GetObject ("winmgmts:")
    Set proc = objWMIService.ExecQuery("select * from Win32_Process Where Name='agentmon.exe'")
    If proc.count > 0 Then
        WScript.Quit
    End If
    'Instantiate a NIC configuration object
    Set objNIC1 = GetObject("winmgmts:").InstancesOf("Win32_NetworkAdapterConfiguration")
    'Instantiate a shell object
    Set objShell = CreateObject("wscript.shell")
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    'Create Temp Dir if it doesn't exist
    If Not objFSO.FolderExists(strFolder) Then
        objFSO.CreateFolder strFolder
    End If
    For Each arrNIC in objNIC1
        if arrNIC.IPEnabled then
            StrIP = arrNIC.IPAddress(i)
            strMask = arrNIC.IPSubnet(i)
            Set WshNetwork = WScript.CreateObject("WScript.Network")
        end if
    next
    Function NetworkID(Address, Mask)
        Dim AddressOctets, MaskOctets, Result, N
        AddressOctets = Split(Address, ".")
        MaskOctets = Split(Mask, ".")
        ReDim Result(UBound(AddressOctets))
        For N = 0 To UBound(AddressOctets)
            Result(N) = AddressOctets(N) And MaskOctets(N)
        Next
        NetworkID = Join(Result, ".")
    End Function
    Select Case NetworkID(strIP,strMask)
        Case "192.168.0.0"
        ' Kaseya install commands for 192.168.0.0 subnet
        objFSO.CopyFile strAgent1, strFolder, Overwrite
        Wscript.Sleep 1*60*1000
        objShell.run "C:\Temp\Test-KcsSetup1.exe"
        Case "192.168.1.0"
        ' Kaseya install commands for 192.168.1.0 subnet
        objFSO.CopyFile strAgent2, strFolder, Overwrite
        Wscript.Sleep 1*60*1000
        objShell.run "C:\Temp\Test-KcsSetup2.exe"
        Case "192.168.2.0"
        ' Kaseya install commands for 192.168.2.0 subnet
        objFSO.CopyFile strAgent3, strFolder, Overwrite
        Wscript.Sleep 1*60*1000
        objShell.run "C:\Temp\Test-KcsSetup3.exe"
        Case Else
        ' Some sort of error checking. Maybe a BLAT SMTP command to send an email
    End Select
    Set objWMIService = Nothing
    Set objNIC1 = Nothing
    Set objShell = Nothing
    Set WshNetwork = Nothing
    Wscript.quit

    You need to read the documentation carefully:
    The Deploy Agents install package is created using a Configure Automatic Account Creation wizard. The wizard copies agent settings from an existing machine ID or machine ID template and generates an install package called
    KcsSetup.All settings and pending agent procedures from the machine ID you copy from—except the machine ID, group ID, and organization ID—are applied to every new machine ID created with the package.
    Including Credentials in Agent Install Packages
    If necessary, an agent install package can be created that includes an administrator
    credentialto access a customer network. Credentials are only necessary if users are installing
    packages on machines and do not have administrator access to their network. The administrator credential is encrypted, never available in clear text form, and bound to the install package.
    ¯\_(ツ)_/¯

  • Service Host : Local System ( No Network ) is it infected?

    so i was wondering if anyone else has that in their task manger under processes.
    currently i asked my friend and he said he has Service Host : Local System. but it didn't not had ( No Network ) on it, also i have
     Service Host : Local System ( No Restricted ) and Service Host : Local System ( No Impersonation ).  do you guys have it ? is this normal?
    so i reinstalled windows 8 then i checked if it gone but it is still there, so i was worried and i came here for help.
    what i think caused these problems is program called Ultrasurf.
    + i also checked event viewer and i got these warnings.
    Your computer was not assigned an address from the network (by the DHCP Server) for the Network Card with network address 0x70188B2DEAC1.  The following error occurred: 0x79. Your computer will continue to try and obtain an address on its own from the
    network address (DHCP) server.
    The DSM service was delayed by 22 seconds for a driver query/download/install on device 'USB\VID_045E&PID_0745\5&37BFF9DD&0&1'
    A connection to the Windows Update service could not be established.
    A connection to the Windows Metadata and Internet Services (WMIS) could not be established.
    + i also got these errors
    The system cannot find the file specified. (Exception from HRESULT: 0x80070002)     at TaskScheduler.ITaskFolder.DeleteTask(String Name, Int32 flags)
       at HPMetrics.ScheduleTask.DeleteTask(String TaskName)
    A problem prevented Customer Experience Improvement Program data from being sent to Microsoft, (Error 80070005).
    Your computer was not assigned an address from the network (by the DHCP Server) for the Network Card with network address 0x70188B2DEAC8.  The following error occurred: 0x79. Your computer will continue to try and obtain an address on its own from the
    network address (DHCP) server.
    Your computer was not assigned an address from the network (by the DHCP Server) for the Network Card with network address 0x70188B2DEAC1.  The following error occurred: 0x79. Your computer will continue to try and obtain an address on its own from the
    network address (DHCP) server.
    Your computer was not assigned an address from the network (by the DHCP Server) for the Network Card with network address 0xA0481C09AAC1.  The following error occurred: 0x79. Your computer will continue to try and obtain an address on its own from the
    network address (DHCP) server.
    EVERYONE IS UNIQUE

    Hi,
    According to your description, in my opinion, all the events in your task manager were works properly. I coudn't find anything unormal through your screenshot. Serivce host works to manage system service, while there is different type of service. Therefore,
    you could find multiple Service Host with different suffixes.
    However, account to your event log error, you may suffering network connection problem, isn't it? Your computer seems couldn't achieve IP adress from DHCP server. Please contact with your network admin for further assistance with your network problem.
    Roger Lu
    TechNet Community Support

  • Create DB link between my local system and remote system

    Hi,
    I need help to create DB link between my local system Database and remote system database both the database are oracle.
    Please check the script which i have written is correct or not. Its giving me error sql command not ended properly
    create public database link MERU_PROD_LOCAL_PROD
    CONNECT TO SUDHIR
    identified by sudhir123
    using (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Host = 23.23.150.144)
    (Port = 1521)
    (CONNECT_DATA = (SERVICE_NAME = sudhir)
    I am executing this command in my local system connecting to the remote database link. Please suggest me is this method correct.
    Thanks
    Sudhir

    Hi Hilton,
    I fixed that issue. Now i am creating the DB link this ways please check is this proper or not
    create or replace database link meru_prod_local_prod connect to portal identified by Oracle!123 using 'MERUPROD';
    remote machine
    User Name: portal
    Password : Oracle!123
    MERUPROD is the tnsora entry
    It gives error as
    Error starting at line 1 in command:
    create or replace database link meru_prod_local_prod connect to portal identified by Oracle!123 using 'MERUPROD'
    Error at Command Line:1 Column:18
    Error report:
    SQL Error: ORA-00922: missing or invalid option
    00922. 00000 - "missing or invalid option"
    *Cause:   
    *Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to open the Enterprise manager10G  in Local system

    I installed the Oracle 10g in my Local SYSTEM that OS WIN XP professional , installed Configured perfectly I was getting the enterprise manager .
    After some days when I click the link I am not getting Enterprise manager Options
    Some ipaddress problem something
    http://IP ADDRESS :1158/em
    OR
    http://computerName:5500/em/console/
    Is there any other other way i will get the enterprise manager .
    I can login to SQL , with all SYSTEM and all users .how i can open the enterprise manager/DBA Module
    Please help me

    Thanks[b] woodster/Madrid
    AS per ur message i reconfigured the EM.. I got the EM main page but
    its giving the following message display
    Database Instance: orcl
    Enterprise Manager is[b] not able to connect to the database instance. The state of the components are listed below. Page Refreshed Dec 7, 2007 11:21:03 PM
    Database Instance
    Host 192.168.1.113
    Port 1158
    SID ORCL
    Oracle Home C:\oracle\product\10.2.0\db_1
    Listener Status Down
    Host 192.168.1.113
    Port 1158
    Name LISTENER
    Oracle Home C:\oracle\product\10.2.0\db_1
    Location C:\oracle\product\10.2.0\db_1\network\admin
    Details TNS-12541: TNS:no listener
    AND when i click the DATABASE then its giving the
    Database Login
    * Username
    * Password
    * Connect String (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.113)(PORT=1158)))(CONNECT_DATA=(SERVICE_NAME=orcl)))
    * Connect As NormalSYSOPERSYSDBA
    Save as Preferred Credential
    Then displaying the Database Error
    Io exception: The Network Adapter could not establish the connection
    But i am getting this way in SQL prompt
    SQL> connect sysman/mahesh as sysdba
    Connected.
    SQL> startup
    ORA-01081: cannot start already-running ORACLE - shut it down first
    SQL>
    How do i get the EM main menu and dabase

  • Import redlining Layers from Cfolders to DMS or Local System

    Hi Gurus
    1. Assume, a JPEG image has 4 redlining Layers in cfolders ..
    Can we import the JPEG image and the redlinings layers from cfolders into DMS or to the local system ....
    2. Also In DMS ..i  tried Creating Layers in the JPEG file and i was able to save and view it again, but for the File which was imported from Cfolders to DMS, i was not able to view the layers contained in it .. Is there any settings , i am missing here ?
    Kindly advise
    Thanks in Advance
    Palaniappan

    Hi Paddy,
    the folllowing steps for ingetration of cfolder with Portal:
    1. login in to portal. there will be one tab content admin.
    2. click on content admin, there willl be one folder portal content. here u can create new folder like e.g cfolder.
    3. under this folder, u have to create IVIEW, WORK SET and Role.
    first create iview, while creating iview it ask for some details related to cfolder like application id, system id, ip address and url mentioned for cfolder. this u will find in BSP application SE80 Tcode.
    same create roles and work set and assign roles to workset and iview to workset.
    4.then go to user admin here u have to map user ids in EP. it is only for mapping purpose so that there will be single login . they dont need to login again into cfolder if they accessing cfolder through ep.
    5. then go to system admin here u can create themes.
    click on content admin
    Thanks
    Amit
    note: please award points for useful answer

  • "Local System" Deployment and double hop scenarios

    Hi all,
    I was wondering if some of you have implemented a good solution dealing with the fact that all ConfigMgr 2012 Applications got executed in local system context and that there is no good solution to execute them with other credentials. We checked the options
    in a TS to run with different credentials as well as Network Access Accounts (winrm, remoting) 
    Both solutions doesn't fit our requirements. We usually deploy some infrastructure components or roles using ConfigMgr 2012. Many of these applications use Cmdlets provided by the vendor to install and configure. Some of these Cmdlets connect back to other
    infrastructure components and produce a double hop scenario. Citrix infrastructure components are a good sample.
    As it is not allowed to impersonate a user by local system, it's really hard to find a good solution which still allows "natural" powershell scripts without several hacks. 
    I'think we have found a good solution for creating PSCredentials in our scripts and use them to invoke the commands, but we still see the double hop issue then. 
    My question is: 
    - Do you guys face the same issues in real life? How do you deal with "local system" and "domain accounts" used for SW Distribution? 
    - Do you use CredSSP ? Any hints or suggestions regarding this? 
    - Any other cool idea to impersonate or address double hop ? 

    Hi Sebastian,
    >no good solution to execute them with other credentials.
    >allows
    "natural" powershell scripts without several hacks. 
    There is no perfect solution to including credentials, but there are some good options out there.  One is to use a Task Sequence to deploy your application with the "Run
    Command Line" step which allows you the option to "Run this step as the following account".  Another option is to include
    the password with the PowerShell script.
    Both options allow you to remove the hop of executing as Local System by default. Both options have the same drawback that the password is not really securely stored
    (they are encrypted somewhat reversibly).
    > different credentials as well as Network Access Accounts
    The Network Access Account is (and should be) only used for downloading content from the distribution point.  It is not used to execute things locally on the managed device.
    >Do you use CredSSP ? Any hints or suggestions regarding this? 
    Are there any specific problems you are having with CredSSP
    that arent explained here?
    I hope that helps,
    Nash
    Nash Pherson, Senior Systems Consultant
    Now Micro -
    My Blog Posts
    If you found a bug or want the product to work differently,
    share your feedback.
    <-- If this post was helpful, please click the up arrow or propose as answer.

  • How to get WSID & Subnet Mask for local system

    Hi,
    In my application I have to show local system IP Address, WSID & Subnet Mask.
    Local IP Address I can obtain using InetAddress.getLocalHost() but couldnt get any idea how
    to get WSID & Subnet Mask.
    Please help me out.
    Thanks in advance.

    Thanks for your reply,
    Actually my application is using JDK 1.5 & I cannot change the JDK version because application is working on various client location.
    Is there no option to get WSID or Subnet Mask in JDK 1.5. Need some alternative solution which will work in JDK 1.5

  • Customeru2019s local objects and customer content

    Hello Gurus,
           what are customeru2019s local objects and customer content , please ?
    Many thanks.

    Custom objects can be defined as /BIC/Z*****
    You have to contact SAP to get names space and you have to maintain it in BI system.. I don't have any idea how to configure and all.. but you can contact/Send a query to SAP. They will help and also provide you How to...!

  • How to get data from excel sheet present in the client(local) system?

    hi,
    I have to upload the data from an excel sheet present in the local system(not on the server) to the table using webdynpro.
    i donot want to upload the excel file
    if it is necessary to upload the file then it should be on temporary basis and it should be deleted automatically.
    i can get the data from excel sheet which is present in the km using HSSF api but how to do the same if it is in local system?
    if anyone has the sample application of this type please give me the link.
    thanks

    You can use the FM ALSM_EXCEL_TO_INTERNAL_TABLE with Web Dynpro ABAP.

  • Servlet call from jsp pages on Hosting server instead of Local system

    HI,
    We have started hoste our projects on one of the Dedicated service from US.
    We have used servlets in our projects and uploaded servlet based project on Dedicated server ,so now we are getting one ERROR ,when we try to access servlet pages from browser .
    sample Below ERROR we are getting on browser ,when we try to access the servlet...
    The requested URL /Globalcontactservlet was not found on this server
    In Web.xml i have written mappings for servlets and i have included web.xml file under the Web-inf folder as same process we do on local system server.(Tomcat 5.5)
    on browser i am trying to use the below format to request the servlet mapping
    <form method="POST" action="http://www.xyz.com/Globalcontactservlet" >
    </form>

    You can download Oracle's latest JDBC drivers from: http://otn.oracle.com/software/content.html
    You need to register, but it should be free.
    When you get the zip/jar-file, you have several options. You can either place it in the common classpath of your system/Servlet container (recommended if you use it in most of your webapps), or in the WEB-INF/lib directory of your webapp (if you only use it with that particular one).
    .P.

  • FI Archiving - System error: Customer/vendor line item not on OI basis

    While archiving FI Documetns using object FI_Documnt, I am getting message System error: Customer/vendor line item not on OI basis for few non archivable documents. Is it like these also open items and can not be able to archive them. Or what is the root cause of these error message.
    Regards,
    Shailesh

    Hi Adisha,
    This error pertains to the accounting fundamentals and SAP does not have anything to do with this....you ask yourself that if you were not using SAP and simlar problem came your way what would you have done...this has no solution...
    Either you wait for the next invoice with big amount but which seems bit impractical..
    In this we really need to consult the Accounting Standards to see what it could allow.
    Regards,
    Chintan Joshi

  • Importing text file on local system

    I am trying to import data from a text file into a dynamic
    text box. When I
    play the movie on my local system, should the dynamic text
    appear or does it
    only work on a remote server?
    Thanks

    it should work locally. Testing from inside the IDE ignores
    security rules...I think...if your testing outside the IDE, check
    your publish settings to make sure you allow access to local files.
    Good luck!

  • Open And Edit Word File In SharePoint Site Programmatically (Without Save On Local system)

    Hi Sir ,
             I am working as sharepoint developer. I have face some problem in Edit and open document file in sharepoint site programmatically. I want to open file and edit directly in sahrepoint site without save in local system,
         Issue:   I have upload one doc file then try to edit and open but In that case file is dowanload and save in local save.

    Hello,
    As i understand you want to open and update word file. Please have a look at below links:
    http://mysharepointwork.blogspot.ca/2010/06/programmatically-open-and-save.html
    http://howtosharepoint.blogspot.ca/2010/05/programmatically-edit-and-save-file.html
    It is good place to start.
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

Maybe you are looking for