Trace the ip address of the client-side database

Dear all,

I tried the following technique for the ip address of the client computer connected to my database, but no results sign

Select the user name, sid, machine, UTL_INADDR.get_host_address (substr (machine, instr(machine,'\') + 1)) ip session $ v where type = 'USER' and username is not null order by machine;
Select the user name, sid, machine, UTL_INADDR.get_host_address (substr (machine, instr(machine,'\') + 1)) ip session $ v where type = 'USER' and username is not null order by machine
*
ERROR on line 1:
ORA-29257: Unknown host ERP150
ORA-06512: at "SYS." UTL_INADDR', line 19
ORA-06512: at "SYS." UTL_INADDR', line 40
ORA-06512: at line 1

When I wrote this trigger to draw to connect IP of the user I got the following error when connecting that scott and HR. But it allows me to connect as user sys.

create or replace trigger
logon_audit_trigger
AFTER LOGON ON DATABASE
BEGIN
insert into scott.trac_user values (null, sys_context ('userenv', 'ip_address'));
END;


Conn scott/tiger@oradb
ERROR:
ORA-00604: an error has occurred at the SQL level 1 recursive
ORA-01722: invalid number
ORA-06512: at line 2

But it allows me to connect as sys users

Conn sys/oracle@oradb as sysdba

When I query the scott.trac_user table

SQL > select * from scott.trac_user;

MACHINE IP_ADD
-------------------------------------------------- ----------



21 selected lines

but nothing is displayed... I don't really know what to do.

Is there a solution to trace the ip address of users...?

Hello

You can take a look at

http://aprakash.WordPress.com/2009/11/06/auditing-IP/

Anand

Tags: Database

Similar Questions

  • get the OS version of the client side database server

    I have Oracle 10 g on a server computer, but now I want to run the query on my windows client computer to get information what operating system OS is located on database software.
    Note that view ' v$ version "is not display the OS information and note that I can't connect with SSH or any other console-wat to the server computer, I can connect only with PlSql to the database server.
    
    select platform_id,platform_name from v$database;
    

    (on 11G)

  • Php script on the client side

    WebWorks does support php scripts on the client side

    N °

  • Store the value of the client side in the .jsf page

    Hello

    I implemented the functionality of line selection using check box in an af:table paginated . The user can select a record by activating the individual checkbox at the level of each line or select all the records by selecting the checkbox "Select all" at the level of the table header. I added a client listener that fires on the box click and the javascript function I capture the unique value of each line and then invoke a server event and by passing all the unique values captured.

    I've also attached a server listener that calls a method in the managed bean. In the method I capture all the unique values (which went from java script) in the java collection and then storing the collection in the view range.

    On the page, I have a button 'Submit' who collect all values stored in the field of view and execute the necessary business logic. This full feature works very well.

    My requirement is to improve the flexibility of the page.

    When the user selects the check box, it takes around a second deal with the life cycle complete .jsf page.

    Is it possible to avoid the call Server to store the values in the field of view instead if I can store the decision-making value on the client side-side (which I believe will improve performance) and then finally when the user presses the button "submit" I'll enter the stored values on the client side and complete the rest of the business logic.

    Please let me know if this is possible in the page .jsf which is developed in the ADF with JDev 12 c (12.1.3) or please suggest another approach.

    Indications will be useful.

    Thanks in advance.

    Kind regards

    Gerard

    There are two ways to do this, consider for example the browser Local storage / storage of Session:

    http://blog.teamtreehouse.com/storing-data-on-the-client-with-localStorage

  • Create directory on the client side.

    Hi all
    I created a directory on the client system to the user, which can save files in this directory and load the data from the user interface in the database table. But the directory created on the server side. and there is an error produced than found directory on SYS. ORACLE_LOADER.
    Please solve the problem? I want to create directory on the client side only and no problem.

    CREATE or REPLACE DIRECTORY PRAD_DIR as "C:\abc." -Create server-side

    Thanx.

    A "DIRECTORY" is only accessible by a Server process, so the physical directory must be present (or accessible) on the database server.

    Say you are using a database of 11.2.
    The client might be
    SQLPlus 9.2, 10.x, 11.x
    SQLDeveloper x.x
    PLSQL Navigator / TOAD x.x
    Another base 11.x 9.2 - access to the database target through a DBLink
    Any other 3rd party Application Server / Client JDBC

    Oracle cannot guarantee that each of these clients can access a "directory" in the same way as a process server.

    So: A DIRECTORY cannot be on a client.

    Hemant K Collette

  • Validation VS server-side. validation on the client side.

    Validation VS server-side. validation on the client side.

    Hello
    in this topic.

    javascript is required for the development of the CF goal?
    CF can do it alone.
    in the two validation VS. server-side. validation on the client side. ?
    Thabnks


    Validation side server is a must, this is your last line of defense. However, validation on the client side is highly recommended!

    Validation on the client side you prevent your server relating to the work useless and you deploy the richest client experience.

  • How to create a rep duration of Reports10G file and run from the client side

    How can I do rep Reports10G file and can be run from the client side like report 6, 6i. I'd appreciate your quick response.

    Thank you

    If I remember correctly, the .rep files are 6i and earlier versions. 9i and later versions do not generate .rep.
    the 10g is no longer a client server model, is a model of web

    typical system:

    you have a server for your database
    you have a server for your application server (was RDF & .fmb (.fmx) files resident) is also your intranet.
    you have a customer

    the client uses a browser such as Firefox or IE to browse the intranet site. Oracle application server is your forms & reports a java plugin.

    hope this helps

  • How to install Oracle Client SQLNet.ora trace on the client side

    Thanks in advance.

    How to configure the SQLNet.ora trace client to level how? Thank you

    Hello Yakub,

    See this useful link to the definition of trace on the client/Server side.

    http://download.Oracle.com/docs/CD/B19306_01/network.102/b14268/asoappa.htm#sthref739

    trace_level_server=16
    trace_level_client=16
    trace_directory_server=/orant/network/trace
    trace_directory_client=/orant/network/trace
    trace_file_client=cli
    trace_file_server=srv
    trace_unique_client=true 
    

    Concerning

  • Confusion in the sample application on the client side

    Hello

    I write a client side app to push BB. I found an example of code in Push_applications_for_the_BlackBerry_Enterprise_Server-Development_Guide--915141-1116110032-001-US.pdf. There is no mention of App ID, URL of the bps or initiator push URL of the application of this code. I also checked the sample application provided with the SDK of the Push Service. He got all these things.

    I'm confused, that these things are necessary or not. Also, I read somewhere that the customer must register with the initiator of push, it's a mandatory step?

    Code who should I implement, for client push, working with the infrastructure based BB server push?

    If you use the BlackBerry Push infrastructure to push, then you will need to have the unit register / subscribe in order to receive the shoot.

  • Open a browser on the client side

    Hi all

    I have to open a new browser window client side when a user clicks a button.
    What are the possible ways to do this, and what is the recommended way to do this taking into account browser dependencies.
    I tried to give a destination as http;//google.com < af:goLink > with _blank targetFrame.
    Can you please proved some links that may help me to do the best possible.

    Kind regards
    ND

    Hello

    It depends on what is the use case: want to open a page of the application in a separate window or you want to open a browser window that is not for the application itself? Are options you have

    (i) goLink with targetFrame = _blank (as you may have guessed)
    (II) issue Java JavaScript that calls window.open on the client (works with all browsers)
    (III) use the dialogue box browse with dialog: navigation-case and control knob for useWindow = true (use it to open the pages of the application in a dialog box)
    (IV) use the af: popup for dialog boxes that open as part of a page. (Use to display additional information like the list of values)

    Frank

  • How to obtain version 1.1 of the Client-Side Caching command-line Options command-line tool

    I write on behalf of the client.

    The customer s verbatim:

    Message: I need to extract files from a local store on a PC Windows XP offline files.  According to this link: http://support.microsoft.com/kb/884739 I need CSCCMD v 1.1 but you can download v1.0 (in the 2003 Server resource kit).

    How can I get v 1.1?

    Thank you.

    Hello

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet forums.

    http://social.technet.Microsoft.com/forums/en/winserverfiles/threads

  • Get the time on the client side

    Hello

    Please can someone help me.

    I have a contract that needs the timestamp on that clientside application.

    I had trouble finding a script that allows me to get the clients time.

    Is there a way I can convert a time JS in a var CF?

    Please can you help with any suggestions?

    Thank you.

    formpage.cfm

    ===========

    Get your time


    next_page.cfm

    ============


    The time of the client is #form.time #

  • ADF validator or JavaScript for validation on the client side?

    using JDev and ADF 11 g

    Description of the problem: to apply postings as the range test date, pattern matching, maxlength, etc... on ADF Faces components.
    Solution 1: Use ADF as Reg Expr validator validator, validator of Max Length
    Souliton 2: write Javascript code to validate the value of the component next to cleint.

    When you use the ADF validator for this type of the validation check, a request is sent to the server for processing (additional charge). However, we can make these validations with javaScript functions without the need to interact with the server. So what does benefit validator ADF is used when we need to implement these validations?

    Please let know us your opinion...

    Some of the validator using the ADF Faces are actually using Javascript on the client - the date format and the regular expression for example.
    One thing to remember by the way relying on Javascript only validation - this is a security risk - since a hacker can create a version of the page which eliminates these controls.

  • How to access the client side

    Hi people,
    I installed a VM under MAC OS X.
    The following items installed on the virtual machine:
    Enterprise Linux Oracle
    Oracle database 11g rel.2
    APEX 4.0

    I can access APEX side VM using http://localhost: 8888/apex
    I wonder how to accexx APEX on the side of MAC OS X, http://localhost: 8888/apex does not work.

    JCote wrote:
    I wonder how to accexx APEX on the side of MAC OS X, http://localhost: 8888/apex does not work.

    Replace localhost with the IP address of the virtual machine.

    Van
    Trent

  • datasocket VI of the client side just stops

    Hi guys, I'm trying to send his micro-captured to another PC (two PCs connected by a crossover cable). I tried various options such as TCP, Datasocket but nothing has worked. With TCP, it always shows the input buffer overflow. With Datasocket, it shows no errors, but stop just the VI on the remote PC. I was not able to understand the problem. I'm using LabVIEW 2009 version 9. I enclose two screws for your tests. Help, please. Thank you. Kind regards.

    Hi Rocky,

    I looked at your code and made some changes. First of all, I couldn't tell why you were dividing the samples/ch by two for the audio playback function. I disabled who. In addition, the "initial data" fed you on the first 'handwriting' VI and at the entrance to the function default data DataSocket Read was a cluster of waveform. Audio data sent through the connection DataSocket are an array of clusters of waveform (a cluster by channel). This probably caused DataSocket problems for you.

    I put the configuration values of the sound of what I found in the example of "continuous sound Input.vi' VI. I also added some graphics for Visual indications.

    Note that you must have the DataSocket Server (under windows: start-> programs-> National Instruments-> DataSocket-> DataSocket server).

    If these don't work, I would look at the network/firewall issues. Also, if you want less latency, consider using UDP straight-up. He should have fewer resources than DataSocket (and with a filter connection, I guess you won't have much to worry about data loss).

Maybe you are looking for