Is it possible to records another machine ip addree in audit table

Hai
I have written system event trigger,it records username, ip address and time in audit table when user logged on database , The database reside on xx machine ( 10.0.0.88 ipaddess ). Is it possible to records another machine ip addree in audit table while accessing database from another machine?
example we have another database on xxx machine (10.0.0.2 ip address),when accessing database from xxx(10.0.0.2) to xx (10.0.0.88),the xxx node ip address will be stored in audit table?.
Thanks in advance
Regards
mohan
CREATE OR REPLACE TRIGGER On_Logon
AFTER LOGON
ON database
declare
db_name VARCHAR2(50);
addr varchar2(80);
x varchar2(20);
begin
db_name := ora_database_name;
select utl_inaddr.get_host_address into x from dual;
if ( ora_sysevent ='LOGON')
then x:=utl_inaddr.get_host_address;
insert into log1
select ora_sysevent,ora_login_user,ora_database_name,utl_inaddr.get_host_address,sysdate
from dual;
end if;
end;
SQL> select * from log1;
OPERATION USERNAME DATABASE IP_ADDR TIME
LOGON MOHAN1 ISOLA6.US.ORACLE.COM 10.0.0.88 11-APR-02
Based on system events trigger how to find out which user from which machine (ip address) accesing database?
example:
CREATE OR REPLACE TRIGGER On_Logon
AFTER LOGON
ON database
declare
db_name VARCHAR2(50);
addr varchar2(80);
x varchar2(20);
begin
db_name := ora_database_name;
select utl_inaddr.get_host_address into x from dual;
if ( ora_sysevent ='LOGON')
then x:=utl_inaddr.get_host_address;
insert into log1
select ora_sysevent,ora_login_user,ora_database_name,utl_inaddr.get_host_address,sysdate
from dual;
end if;
end;
SQL> select * from log1;
OPERATION USERNAME DATABASE IP_ADDR TIME
LOGON MOHAN1 ISOLA6.US.ORACLE.COM 10.0.0.88 11-APR-02

Providing you're on 8i+ this will give you the IP address from which th eclient is connected:
SELECT sys_context('userenv', IP_ADDRESS) FROM dual;
Bear in mind that many network applications assign IP Addresses dynamically, so depending on how your network is segmented, the same machine can have very different IP addresses from day to day. If this is just an internal system you're auditing then you might find this call more useful:
SELECT sys_context('userenv', TERMINAL) FROM dual;
This returns the network's ID for the machine, and this is non-varying (unless network admin change it explicitly - but why would they?). This call is also available in the older, deprecated USERENV function:
SELECT userenv('TERMINAL') FROM dual;
rgds, APC

Similar Messages

  • Is it possible to use time machine to back up a hard drive?

    Is it possible to use time machine to back up a 1 hard drive onto another, then periodically update the backups just like I usually do with the Mac HD onto an external?
    Thanks!

    kidboy wrote:
    Is it possible to use time machine to back up a 1 hard drive onto another, then periodically update the backups just like I usually do with the Mac HD onto an external?
    Thanks!
    I don't know what you usually do but Time machine is a backup software. it does back up one (or more) hard drives to another. it's not a mirror utility though. it makes and keeps regular incremental backups and you can restore from any time point in the past you have a backup for. i suggest you consult pondini's FAQs at the top of TM forum
    http://discussions.apple.com/thread.jspa?threadID=1964018
    also see TM 101
    http://support.apple.com/kb/HT1427
    check out this tutorial too to see it in action
    http://www.apple.com/findouthow/mac/#timemachinebasics
    Message was edited by: V.K.

  • Errors opening a proyect created in another machine

    Hi... I am new in Java specially with Sun Java Creator 2.. I created a Web Application JSF with some controls like combos, lists, trees, and I added some programation to them. I run it, and the result was great: no erros, but when I copied the project's folder in order to open it in another machine it, the project's name was in red in the project's windows, and when i clicked over it an option of resolving reference problems appeared. I don't know what happened because I downloaded example projects from Sun's web page, and they don't present this problem? I think that my project is being managed through dinamic libraries? Am I right? If not what is happening? Is it possible to manage static libraries in order to avoid this problem?
    Regards,
    DG

    what's the option of resolving reference problems content

  • Using mysql database on another machine without having mysql installed

    Hi...
    I was wondering whether its possible to copy a Mysql database that I have created on my machine, take it to another machine which does not have Mysql command line stuff installed and use my own JDBC connection to the copied mysql database and start manipulating my data. I don't know if this is possible or not ..
    The main purpose of doing this is I am creating a Java program which uses a Mysql database and I want to know if I give it to someone else to use it do they have to install Mysql and all the package or can they simply start using it.
    Thanks a lot
    Sassan

    masijade. wrote:
    TuringPest wrote:
    masijade. wrote:
    Sasanpad wrote:
    Hi...
    I was wondering whether its possible to copy a Mysql database that I have created on my machine, take it to another machine which does not have Mysql command line stuff installed and use my own JDBC connection to the copied mysql database and start manipulating my data. I don't know if this is possible or not ..No. Not only would it be in violation of the terms of your license, but a MySQL database is a client/server type setup. No MySQL binaries, no server, your client (jdbc) cannot connect.im just curious because im new to mysql myself, but what do you mean that its a violation of his license?
    do you mean for the commercial version?If he licenses his application under GPL, okay, no problem. Otherwise I read this quote
    Free use for those who never copy, modify or distribute. As long as you never distribute the MySQL Software in any way, you are free to use it for powering your application, irrespective of whether your application is under GPL license or not.
    to mean that you are not allowed to distribute MySQL (or any part of it, unless your application is GPL licensed) with your application, and if he distributes even just the data directory, he is distributing at least a part of MySQL.
    Other's may not see it that way, but do you want to take the chance?The critical element is the word distribute. If he tries to embed MySQL in the application he is giving to his users, he's distributing it. Hence a violation of the license. That does not in any way prevent him from including scripts that when the application is installed goes out and runs the script on the user's installation of MySQL and builds the databases and whatnot his application needs on their MySQL installation.
    Now, for the OP. If all you're keeping up with is urls and such and you don't have hundreds of them. I wouldn't bother with a db at all. a properties file would actually serve your purposes, and xml would suit just fine. Of course you'd have to have access to the file system and such but no licensing issues at all.
    PS.

  • Adding another machine to Primary Zone

    Adding another machine to Primary Zone
    I have a good split-DNS configuration that has been working without issue for some months now since I installed OS X Server Snow Leopard (Mac Mini) at my company's office. We have another machine used as a file server (Mac Pro), without the dedicated server OS installed.
    We want to add a virtualized instance of Windows Server 2008 R2 as a guest OS on the Mac Pro via VMWare Fusion. We want to use this Windows Server instance to host some private web based services for our corporate team (intended to be reachable from within the local private network, and remotely, from the public internet (with proper authorization to access only).
    So far so good:
    -WinServer2008R2 installed as a guest OS on the host Mac Pro
    -WinServer's virtual NIC is in bridged mode (joins the host OS's physical network)
    -WinServer instance configured with an IP 10.0.1.33, which is set aside and reserved for the WinServer by the local DHCP service on the same network
    -WinServer successfully installed and tested IIS7 - both localhost from the WinServer instance and http://10.0.1.33 from other machines on the local private network (and from remote VPN clients) resolve to the WinServer's IIS default page properly.
    Where I am stumbling now in configuring DNS on the Mac Mini to properly forward requests aimed at the WinServer instance.
    DNS for the local domain is controlled by the Mac Mini. The configuration has been quite simple up to now, as that has met our needs. Just one Primary Zone and one Reverse Zone. We have an external DNS service from DYNDNS that handles any request for our domain from the external public internet. For now I'm not concerned with altering the external DNS service. Once I get the name service to properly resolve requests for the WinServer instance from the local domain, then I'll move onto matching up the external DNS.
    --Primary Zones
    Primary Zone:
    Primary Zone Name: ourcompany.net.
    Nameservers: Zone: ourcompany.net. Nameserver Hostname: server.ourcompany.net.
    --Records
    Machine Record:
    Machine Name: server.ourcompany.net.
    IP Address: 10.0.1.11
    --Reverse Zones
    Reverse Zone:
    Reverse Zone Name: 11.1.0.10.in-addr.arpa.
    Nameservers: Zone: 11.1.0.10.in-addr.arpa. Nameserver Hostname: server.ourcompany.net.
    Resolve 10.0.1.11 to: server.ourcompany.net.
    The -checkhostname command returns:
    Primary address = 10.0.1.11
    Current HostName = server.ourcompany.net
    DNS HostName = server.ourcompany.net
    The names match. There is nothing to change.
    dirserv:success = "success"
    So I attempted to add a Machine Record to the Primary Zone with the following settings:
    Machine Record:
    Machine Name: dash.thewcateam.net.
    IP Address: 10.0.1.33
    When I did this it added the following Reverse Zone:
    Reverse Zone:
    Reverse Zone Name: 1.0.10.in-addr.arpa.
    Nameservers: Zone: 1.0.10.in-addr.arpa. Nameserver Hostname: server.ourcompany.net.
    Resolve 10.0.1.33 to: dash.ourcompany.net.
    And with the following records added I don't seem to have a proper resolution to 10.0.1.33 when requesting dash.ourcompany.net.
    I'm wondering where I should look next in troubleshooting this issue. Any pointers or advice would be very appreciated.

    Remove the "Reverse Zone Name: 11.1.0.10.in-addr.arpa."
    It's probably left from when you first configured the server.
    Though the "Primary Zone Name: ourcompany.net." seems correct.
    Then update the 10.0.1.11 record so it's added to the right reverse zone - "1.0.10.in-addr.arpa."
    In a MacPro we run VM Ware on a separate interface (en1/"Built in 2") that is forced up using a LaunchDaemon. "Built in 2" must be active in Network config in OS X but don't need to be configured (red "LED").
    That way the MacPro can use it's own IP on the en0 interface without disturbing en1 and vice versa.

  • Is it possible LSMW recording method using multiple structures

    Hi,
    can any body tell me, is it possible LSMW recording method using multiple structures
    i,e using Header details one flat file structure and Item details another flat file structures

    Hi,
    Check this link..
    LSMW multiple structure migration

  • Using FTP NOOP to ping another machine.

    Hi All,
    I want to use FTP NOOP command to ping another machine. But it seems that NOOP is not available by default.
    On running ? on FTP prompt I am unable to see NOOP in supported commands.
    ftp> ?
    Commands may be abbreviated. Commands are:
    ! cr mdir protect safe
    $ delete mechanism proxy send
    account debug mget put sendport
    append dir mkdir pwd site
    ascii disconnect mls quit status
    bell form mode quote struct
    binary get mput recv sunique
    bye glob nlist reget tcpwindow
    case hash nmap remotehelp tenex
    ccc help ntrans rename trace
    cd lcd open reset type
    cdup ls passive restart user
    clear macdef private rmdir verbose
    close mdelete prompt runique ?
    Hence I want to know are there some specific configurations to perform for enabling NOOP in ftp?
    Regards,
    Gunjan

    I suspect that its your ftp client which does not support NOOP, most FTP servers does.
    Try the command
    quote noop
    'quote' makes it possible to send a command directly to the ftp server, and hence does not require that the client supports it.
    .7/M.

  • DOS COMMAND IN ANOTHER MACHINE

    Hello!
    how can I execute a DOS command in another machine which is in my same network?? I need it because I have to execute an oracle report from my java program but the Oracle Reports software is in another machine ..... ( really i don't know if it's possible to do this ....)
    thanks!!

    As I see it you must have an application running on that other machine that will wait for remote commands.
    You can implement a simple application that opens/listens on a socket and executes commands that are coming in - this will run on the remote machine.
    Then you will have to connect to that socket from your machine and send commands to it.
    Maybe there are other ways but that's the first that came to my mind
    You can [url http://onesearch.sun.com/search/developers/index.jsp?col=devforums&qp_name=Java+Programming&qp=forum%3A31&qt=%2Bexecute+%2Bcommand+%2Bremote] do a search  around here to find more solutions
    And please DO NOT USE CAPITAL LETTERS when posting... It is considered as shouting.
    Mike

  • Connect to oracle xe from another machine

    How i can set oracle xe for connect from another machine
    i can connect with :
    sqlplus system/pass@xe
    listener and tnsnames are fine
    on base machine, but I can't do it from another machine
    i can't do it with html db (from browser), too
    ist it possible and how ?

    Do you have updated the tnsnames.ora file on your client box before you have tried to access the remote machine? Can you please post the error message you receive.
    If you have set the TNSNAMES.ora please try to resolve the remote database with TNSPING.. Can you also please post the results of this?

  • Can you move Midtier onto another machine?

    Hi,
    I currently have a one box installation of AS/Midtier and metadata repository. Is it possible to install another portal midtier on another machine and associate it with the existing AS and metatdata repository?
    Thanks
    Joel.

    Hi,
    You should be able to associate a mid tier with an infrastructure by using the Infrastructure / Identity mangement page in enterprise manager.
    Richard.

  • Use Apex from another machine

    Dear experts
    Is it possible to use APEX for XE from another machine i.e. in the browser address bar can i type http://192.168.0.12:8080/APEX? It does not work for me. would really appreciate any pointers on this
    Thanks a lot
    Manish Sawjiani

    Sure, this is what XE is supposed to support :).
    You find some more in information here: Re: how can i  publish my application on the internet.
    ~Dietmar.

  • Is it possible to record face time without the use of an apple computer ?

    Me and my friend are looking to record our Facetime calls but I only seem to find solutions that involve the use of an apple computer,
    Is it possible to record with another programme on a separate computer or is it only apple products ?

    I cannot find such an option. You can add contacts to your Contacts application on the computer. Those can be accessed from Face Time.
    Just enter the information in the search field or click on the "+" icon to open a list of your contacts.

  • Is it possible to record audio/ vedio from applet and store it on server

    Pls tell me if it is possible to record audio/ vedio from applet and store it on server. I am using JMF. i am able to store audio on the same machine by making a java application but i am not able to understand how to use RTP with it to store it on server from an applet. pls help me i am in urgent need.

    If u want to capture audio/video from the client machine these are the pre-requisites
    1. u need to have JMF installed on the client :(
    one way out of this is that u bundle the library files along ur applet to the client. I am still to figure out how
    to fo that.
    2. while installation uncheck the option 'copy DLLs to system folder....' and check the option 'Allow capture
    from applets.
    3. The Applets u create must be signed, for accessing the client resources such as hard drive.
    You can then capture n save file on the client, open an inout stream out of it, open an outputstream to the server as already described above and start uploading......

  • Is it possible to record data directly from PXI-5112 scope card through PXI bus to SCSI RAID array (connected to PXI-8210)?

    Colleagues,
    Is it possible to record data directly from PXI-5112 scope card through PXI bus to SCSI RAID array (connected to PXI-8210)?
    Which will be the maximum transfer rate for continuous data recording?
    Thank you,
    Sergey
    Sergey

    Sergey,
    The PXI-8210 can connect to any SCSI 2 compliant device. If the RAID controller is SCSI 2 and appears just like a hard drive in the operating system, then you can send data directly to the RAID array. The problem is that the driver for the PXI-5112 does not yet support continuous acquisition. The on-board 16MB or 32MB buffer stores the data until the entire acquisition is completed. Once the acquisition complete, all of the data is transferred from the on-board buffer to the hard drive. After that happens, the NI 5112 is ready for another acquisition.
    Best Regards,
    Jace Curtis
    NI Applications Engineering

  • Is it possible to record the jvm...?

    Is it possible to record the actions of the jvm running a program,as binary.My idea was if you could record the way the jvm executes a program as binary, you could try running the binary on a similar architecuture without the jvm thus ultimately running the program without the jvm.
    If that is not possible........
    I understand that the jvm operates based on a stack architecture,pushing the values in each stack frame on to the processors registers for executing the corresponding instruction(s).
    so is it possible to modify the jvm itself to dump stack structure somewhere so, that the same could be done without constructing the stack each time.
    Please bear with me ,if I am talking rubbish.....I am a student.

    As generally stated - no.
    It isn't possible in any language (major.)
    A running programming consists of inputs which are conditionally processed. Recording what the application does on one pass does not allow for different conditionals on a second pass.
    Simple macro recorders in editors succeed at this because they are simple and there is no conditional processing.
    There are however java compilers which are supposed to produced machine op codes rather than byte codes. Those would allow one to run with a VM if they actually do compile to machine codes (despite their claims some do not really do that.) Such a compiler would need a compiled version of the Java API as well.

Maybe you are looking for

  • Final Issue Indicator not set in maitnenance order after ECC 6.0 upgrade

    Hi, We encounter this problem after upgrading to ECC6.0 from SAP R/3 4.6C Final issue indicator (RESBD-KZEAR) is not being set in maintenance order (IW33) for sub-component non-stock items in General Data page Would be great if anyone could guide in

  • Internal error in program SAPLRSDRS and method WRITE_DDIC_INFO-6-?

    Hi All, When i load data from self system to the targets i got an error message "Internal error in program SAPLRSDRS and method WRITE_DDIC_INFO-6-"... could any body help me to resolve this type of issues. Thanks in advance. Thanks, Vachan

  • How to change key (or pitch) for recording

    Sorry if this has been answered before, but I couldn't find anything in a forum search. I have a midi keyboard and a motu ultralite interface. Unfortunately I can't play keyboards very well, so when I am recording in a certain key with my guitar (e.g

  • Customize modal popup after "add to cart"

    So after you click "add to cart" my client wants a modal pop-up to work like Targets. http://www.target.com/p/apple-ipod-touch-16gb-mp3-player-4th-generation-with-touch-screen- wi-fi-black-me178ll-a/-/A-14000297#prodSlot=medium_1_1 (click add to cart

  • Opening Trial Version

    I just finished downloading a trial version of Adobe Premiere Elements and it will not open. Is there something I did wrong or can do to fix it?