Track IP addresses to connect to a database

Hello

I'm trying to follow all of the IP addresses that connect to the database at the moment. Anyone know how I can do this without having to go through all of the listener log?

Or does anyone know how to analyze the log to extract the IP addresses

Thank you

Stephen

Actually, there is another option IF you audit connections then the session what IP is stored in the column dba_audit_trail comment_text and you can retrieve the IP address of the column.

Note that auditing session connect and disconnect may generate a large amount of data.

HTH - Mark D Powell.

Tags: Database

Similar Questions

  • not able to connect to the database using the oracle instant client

    Hello

    I am not able to connect to the database using the instant oracle from my local PC client. They use to connect to the database files and sqlnet.ora files LDAP.ora. If I want to test the connection, I found this executable tns wasn't there, so not able to tnsping. So I'm not able to solve this problem.

    Please let me know if a solution for everything

    Client Oracle: oracle 10.2bFAT client 32-bit

    Platform: windows 7 64-bit

    Thank you
    Veera

    There is little that tnsping can do sqlplus can't.

    Instead of
    tnsping mydb.myorg.com
    Try
    sqlplus-s-L /@mydb.myorg.com
    or
    sqlplus-s-L user/[email protected]

    If you get
    ORA-12154: TNS: could not resolve the connect identifier specified
    you know that the customer could not resolve 'mydb.myorg.com '.

    If you get
    ORA-12541: TNS:no listener
    then "mydb.myorg.com" could be resolved, but there is no listener it running.

    If you get
    ORA-12514: TNS:listener is not currently of service requested in connect descriptor
    then "mydb.myorg.com" could be solved, the listener is in place, and the database is out of service.

    If you get
    ORA-01017: name of user and password invalid. connection refused
    you know that 'mydb.myorg.com' has been successfully resolved, and the database is running.

    If you want more details, such as how and what "mydb.myorg.com" is resolved, turn the tracking by adding the following to "sqlnet.ora:
    TRACE_LEVEL_CLIENT = ADMIN
    TRACE_DIRECTORY_CLIENT = C:\TEMP (a writable directory)

    Then you will find lines like this in the trace file:

    -THE INFORMATION SOURCE PARAMETER FOLLOWS-
    Attempt to load system pfile source C:\oracle\network\admin\sqlnet.ora
    Source of the setting successfully loaded

    Attempt to load the local pfile source C:\Dokumente und Einstellungen\lanadvall\sqlnet.ora
    The parameter source has not been loaded.

    This shows you which configuration files are read, followed by the settings real read.

    nnfgrne: will read if path adapters
    nnfgrne: switching adapter LDAP

    He's now looking for LDAP name resolution.

    nnfloidinfocache: Info: insert the value DIRECTORY_SERVSSL = oid.host.myorg.com:389 at index 0 in NLPA_CACHE

    These are LDAP servers, he is trying.

    nnflilc: conn sync opening of oid.host.myorg.com:389

    nnflfdn: turning simplified mydb.myorg.com name to a unique name.
    nnflfdn: using the administrative context: dc = prod
    nnflfdn: the domain name resulting is cn = mydb, cn = OracleContext, dc is myorg, dc = com

    nnflrne1: runs the directory for dn: cn = mydb, cn = OracleContext, dc is myorg, dc = com
    nnflqbf: search: Base: cn = mydb, cn = OracleContext, dc is myorg, dc = com, range: 0, filter: (objectclass = *)

    nnfgrne: query fails, the leap to the next map

    Did not work. Try the other adapters:

    nnfgrne: switching adapter EZCONNECT

    snlinGetAddrInfo: name resolution failed for test64.test

    No luck.

    If the resolution is approved, it will look like this:

    nnfloidinfocache: Info: insert the value DIRECTORY_SERVERS = oid.host.myorg.com:389 at index 0 in NLPA_CACHE

    nnflilc: conn sync opening of oid.host.myorg.com:389

    nnflfdn: turning simplified mydb.myorg.com name to a unique name.
    nnflfdn: using the administrative context: dc = prod
    nnflfdn: the domain name resulting is cn = mydb, cn = OracleContext, dc is myorg, dc = com

    nnflrne1: runs the directory for dn: cn = mydb, cn = OracleContext, dc is myorg, dc = com
    nnflqbf: search: Base: cn = mydb, cn = OracleContext, dc is myorg, dc = com, range: 0, filter: (objectclass = *)

    niotns: the call to address: (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=dbserver.host.myorg.com) (PORT = 1521)) (CONNECT_DATA = (SID = DBNAME) (CID = (PROGRAM = C:\Oracle\ora1020\bin\sqlplus.exe)(HOST=pc247596)(USER=lanadvall)))

    Yours,
    Laurenz Albe

  • Test the connection to the database failed: connection to the server could not

    I have one of my servers HPOV NNMi 9.23 restarted this morning and NNMi is loading is no longer.  I see the following errors in the newspapers said:

    /var/opt/OV/log/NNM/public/nmsdbmgr.log

    06/04/2015-09:28:05 connection to the database test failed: connection to the server could not: connection refused
    The server running on host "127.0.0.1" and accept
    TCP/IP connections on port 5432?

    /var/opt/OV/log/NNM/public/postgres.log

    2015-04-06 09:25:55.312 EDT: 8580:0LOG: could not translate the hostname "localhost", "5432" service at the address: name or service not known not

    2015-04-06 09:25:55.312 EDT: 8580:0WARNING: could not create listen to "localhost".

    2015-04-06 09:25:55.312 EDT: 8580:0FATAL: could not create TCP/IP sockets

    I have checked/etc/hosts and found the following entry:

    #; Local
    #;
    127.0.0.1 localhost

    The command line, I can ping localhost without problem.  Not sure why NNMi begins not at this point.

    Turns out be the permissions on the file/etc/hosts.

  • How can I connect to my database externally from another pc on the network?

    Hi all

    I just install 12 c on my Oracle Linux box and I am able to connect locally to the database, as intended. Now, what would be the first step to connect to my external database from another computer on the network. By example, if the database server is 10.0.0.150 and I want to connect to 10.0.0.151 how can I make this happen? If necessary here are a few references:

    -bash-4, $ 2 cat listener.ora

    listener.ora # Network Configuration file: /ora01/app/oracle/product/12.1.0/db_1/network/admin/listener.ora

    # Generated by Oracle configuration tools.

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = oranode1.dba.com) (PORT = 1521))

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))

    )

    )

    -bash-4, $ 2 cat tnsnames.ora

    tnsnames.ora # Network Configuration file: /ora01/app/oracle/product/12.1.0/db_1/network/admin/tnsnames.ora

    # Generated by Oracle configuration tools.

    ANTHONYDB =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = oranode1.dba.com) (PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = anthonydb)

    )

    )

    -bash-4, $ 2 cat/etc/hosts

    127.0.0.1 oranode1 oranode1.dba.com localhost4 localhost4.localdomain4

    : 1 localhost localhost.localdomain localhost6 localhost6.localdomain6

    10.0.0.150 oranode1.dba.com oranode1

    Let me know if you need any information. Currently, I am not able to connect to my database using the IP and port (10.0.0.150, 1521) of my 10.0.0.151 pc. Thank you all for your help in advance.

    Hello EdStevens,

    I tried to use the SID with SID = anthonydb and I got the same error message. I believe that we must resolve before listener troubleshoot us this error...  If we look at the file of the listener:

    [oracle@oranode1 admin] $ cat listener.ora

    listener.ora # Network Configuration file: /ora01/app/oracle/product/12.1.0/db_1/network/admin/listener.ora

    # Generated by Oracle configuration tools.

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = oranode1.dba.com) (PORT = 1521))

    )

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 10.0.0.150)(PORT = 1521))

    )

    )

    ADR_BASE_LISTENER = / ora01/app/oracle

    I have two entries, and I think that I should remove the last entry:

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 10.0.0.150)(PORT = 1521))

    )

    I created a backup of the file listener and I'm going to give it a shot.

  • Java class to connect to Oracle Database Express Edition11g and URL

    Can I use Oracle SQL Developer to do or use it as the value of the URL for the host name?

    I'm just starting to learn Java and with it, learn how to use the Oracle Database Express Edition11g and with it the Oracle SQL Developer...

    At this point, I have the Express Edition is installed and the SQL Developer installed and were able to establish a connection and to run a query and get a result.

    I use Eclipse for JAVA.  I have a work of class that performs a query on a database/table in MySQL.

    So now I'm eager to make the same use as the database Oracle Database Express Edition11g engine.

    And this means that two different versions of JAVA that I need to get the right to be able to do.

    The first is the value of the url variable.

    I now like

    String url = "jdbc:oracle:thin:@localhost";

    then

    Class.forName ("oracle.jdbc.OracleDriver");

    and then

    Connection connection = DriverManager.getConnection (url);

    The thing I'm puzzled on is in the URL where I 'localhost' was supposed to be the term generic and not so much as the text, you should use.

    I see in Web sites like 3 connection to Oracle Database XE

    and decrease example 3-2 by specifying the URL of database using the XE Client Setup

    There I see

    JDBC:driver_type: [username/password] @[//]host_name[: port] [XE]]

    And just what is and what is not is explained here.  So what I ended up with was

    String url = "jdbc:oracle:thin:@localhost";

    So if it was just a text to rest for a name I wonder just such a value or name might really where.

    I noticed that view that an app called "Oracle JDeveloper" has been used to create the values.   I don't have such a thing, or at least I don't think I do.

    Do I need?

    I have Oracle SQL DEVELOPER, where I used the following to connect to the database of the XE.

    My choice for Oracle's SQL Developer Help

    Name of connection: Connection1

    User name: Rod

    Password: myOracle11

    Host name: localhost

    Port: 1521, which is the default value

    SID: xe

    Above so I have to host name set to localhost

    Can I use Oracle SQL Developer to do or use it as the value of the URL for the host name?

    1. I do nothing

    2. While wouldn't you say it

    3. no results from the earlier assignment.

    I asked "'can I use Oracle SQL Developer to do or use it as the value of the URL for the host name?" "

    I showed the choice that I used in SQL Developer to connect to the schema.  And I was wondering, now that I had done this case those are the values that I could use in the Java class that I wrote.  The web site in the first post of this thread showed connection but he was using JDeveloper and SQL Developer.

    So I was wondering if the connection that I made using SQL Developer would do the same trick, and if I could use the values I did there.

    I'm happy to announce that YES, The values used to connect using SQL Developer work exactly like JDeveloper.

    So, given that in SQL Developer for Hostname I chose the value "localhost" "Rod" Username and password "myOracle11".

    I did the following JAVA CLASS that worked:

    package VC_2_9;

    Java for COBOL - copyright 1999 Doke & Hardgrave programmer

    import java.sql. *;

    public class DataBaseDemoOracle

    {

    Public Shared Sub main (string args [])

    {

    String CUST_LAST_NAME;

    / * String url = "jdbc:mysql://localhost/visualcafe";                     */

    String url = "JDBC: thin: @localhost';"

    / * String sqlQuery = "SELECT Name, SSNo, address, telephone OF THE customer;    */

    String sqlQuery = "SELECT CUST_LAST_NAME FROM DEMO_CUSTOMERS";

    //                                               |||||||||||||||

    Try

    {

    Class.forName ("oracle.jdbc.OracleDriver");

    Connection connection = DriverManager.getConnection (url, "Rod","myOracle11" ");

    Statement statement = aConnection.createStatement ();

    ResultSet rs = aStatement.executeQuery (sqlQuery);

    Boolean more = rs.next ();

    (more)

    {

    CUST_LAST_NAME = rs.getString (1);

    /* */

    System.out.println ("name:" + CUST_LAST_NAME);

    more = rs.next ();

    }

    RS. Close();

    aStatement.close ();

    aConnection.close ();

    }

    catch (ClassNotFoundException e)

    {System.out.println ("Exception caught" + e) ;}}

    catch (SQLException e)

    {If (e! = null)}

    {System.out.println ("SQLException taking" + e);}

    e = e.getNextException ();

    } / / end of while loop

    } / / end of capture

    } / / main end

    } / / end DataBaseDemoOracle.java

  • I/o error: the network adapter could not establish the connection: connection to oracle database

    Hello

    I am not able to connect to the Oracle SQL developer database. I said / 0 error: the network adapter could not establish the connection.

    I started the listener, but what I see is, it points to a different IP address instead of the IP address of the host. How to change the name of host or IP address.

    I see that it points to the host name in listener.ora.

    Attached the screenshot

    Can someone help me solve this problem?

    Thanks in advance

    What he says is the listener.ora file is not necessary to start the listener.  If you rename, then start the receiver, then start the db, after a minute or two, the db should automatically register with the listener and then you can make a tnsping or otherwise connect to the database through the listener.

    I'm not entirely sure what's going on with your image, but I can't help but wonder if somehow something is not what you expect with the investigation period, whenever it starts.

    So use lsnrctl status lsnrctl services to see what the listener is the situation and tnsping and ping from the client to see what he thinks.

  • Unable to connect to the database from Oracle Forms server

    Hello

    I installed Oracle Forms on top of Weblogic server. When I try to connect to an Oracle Forms home by TNS naming database, it returns error "ORA-12504". It works fine when I use EZConnect.

    D:\Oracle\Middleware\FRHome\BIN >. \sqlplus myuser/mypass@auhdb2

    SQL * more: version 11.1.0.7.0 - Production on Sun Sep 28 10:28:34 2014

    Copyright (c) 1982, 2008, Oracle.  All rights reserved.

    ERROR:

    ORA-12504: TNS:listener did not have the SERVICE_NAME in CONNECT_DATA

    D:\Oracle\Middleware\FRHome\BIN > @//auhdb2/auhdb2 mypass/myuser mypasssqlplus

    SQL * more: version 11.1.0.7.0 - Production on Sun Sep 28 10:28:55 2014

    Copyright (c) 1982, 2008, Oracle.  All rights reserved.

    Connected to:

    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL >

    Here are the specifications of the environment:

    Server operating system: Windows 2008 R2 64-bit EA

    WebLogic: Weblogic Version 10.3.6

    Forms and reports: 11.1.2.2

    Database, I am trying to connect to: Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 on Windows 2003 Server

    Tnsnames configuration in D:\Oracle\Middleware\FRHome\network\admin:

    AUHDB2 =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = auhdb2) (PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = auhdb2)

    )

    )

    Thanks in advance.

    I want to update this post because I understood what was the matter.

    The TNSNAMES file. ORA file must be created in ORACLE_INSTANCE/config, not in %ORACLE_HOME%\FRHome\network\admin

    It was interesting for me!

  • help to connect to a database

    I am trying to connect to a database named "login_db".

    login_db has 1 table named 'accounts.

    accounts has 3 fields 'id' 'name' 'pass '.

    three records have been inserted so that the database is not empty.

    I use CC Flash, AS3, PhP, AMFPHP, UwAmp, PhPMyAdmin.

    the error I get if I run the SWF with ctrl + shift + enter

    Try to launch and connect to player using URL L:\UwAmp\www\Databasetest\databasetest.swf

    [SWF] L:\UwAmp\www\Databasetest\databasetest.swf - 91944 bytes after decompression

    Security Sandbox Violation

    Connection to http://localhost/AMFPHP/gateway.php halted - not permitted from file:///L|/UwAmp/www/Databasetest/databasetest.swf

    -Untrusted local SWF cannot communicate with the Internet.

    SecurityError: Error #2028: file:///L|/UwAmp/www/Databasetest/databasetest.swf file SWF Local with file system cannot access Internet URL http://localhost/AMFPHP/gateway.php .

    at flash.net::NetConnection/connect()

    at databasetest_fla::MainTimeline/frame1() [databasetest_fla. MainTimeline::frame1:12]

    Cannot display the source code at this location.

    Code DatabaseAPP.php

    <? PHP

    class DatabaseApp

    {

    private $connection;

    public function __construct()

    {

    $this-> connection is mysql_connect ("localhost", "root", "root");.

    @mysql_select_db ("login_db", $this-> connection);

    }

    public void create ($params)

    {

    $query = "INSERT INTO login_db (";"."

    $query. = "name, pass."

    $query. = ') VALUES (';"."

    $query. = "" {$params [0]} ', ' {$params [1]}') '; "

    If ($result = mysql_query ($query, $this-> connection))

    {

    Returns true;

    }

    on the other

    {

    Returns false;

    }

    }

    public void read()

    {

    $query = ' SELECT * '; "

    $query. = 'FROM login_db ';

    $result_set = mysql_query ($query, $this-> connection);

    If ($result_set)

    {

    $rows = array();

    If (mysql_num_rows ($result_set) > 0)

    {

    While ($Row = mysql_fetch_array ($result_set))

    {

    $rows [] = $row;

    }

    }

    on the other

    {

    $rows [0] ['id'] = 0;

    $rows [0] ["name"] = "NoRecords";

    $rows [0] ['pass'] = ' ';

    }

    return $rows;

    }

    on the other

    {

    Returns false;

    }

    }

    public void update ($params)

    {

    $query = "UPDATE login_db SET ';

    $query. = "name =" {$params [1]} ", ';"

    $query. = "pass =" {$params [2]} ", ';"

    $query. = ' WHERE id = {$params [0]} '; "

    $query. = 'LIMIT 1 ";

    If ($result = mysql_query ($query, $this-> connection))

    {

    Returns true;

    }

    on the other

    {

    Returns false;

    }

    }

    public void delete ($id)

    {

    $query = "DELETE FROM login_db";

    $query. = ' WHERE id = {$id} '; "

    $query. = 'LIMIT 1 ";

    If ($result = mysql_query ($query, $this-> connection))

    {

    Returns true;

    }

    on the other

    {

    Returns false;

    }

    }

    }

    ? >

    my AS3 code

    = IMPORTS OF =.

    import flash.net.NetConnection;

    import flash.net.Responder;

    Import fl.data.DataProvider;

    = VARIABLES =.

    var gateway: String = " " http://localhost/AMFPHP/gateway.php ";

    var connection: NetConnection = new NetConnection;

    var newMode:Boolean = false;

    var currentRecord:uint = 0;

    Connection.Connect (Gateway);

    = INITIALIZATION =.

    Read();

    save_mc. Enabled = false;

    delete_mc. Enabled = false;

    = FUNCTIONS OF =.

    function read (): void

    {

    var responder: responder = new responder (readResult, onFault);

    Connection.Call ("DatabaseApp.read", responder);

    }

    switchMode (addNew = false) function

    {

    if(addNew == true)

    {

    Remove the button cancels

    newMode = true;

    }

    on the other

    {

    Delete button deletes

    newMode = false;

    }

    }

    function clearSettings (): void

    {

    id_txt. Text = "ID";

    name_mc. Text = "";

    pass_mc. Text = "";

    currentRecord = 0;

    }

    = RESULTS OF ANSWERING MACHINE =.

    function readResult(result:Object):void

    {

    if(result == false)

    {

    status_txt. Text = "Error reading records.";

    }

    on the other

    {

    var dp:DataProvider = new DataProvider();

    for (var i: uint = 0; i < result.length; i ++)

    {

    dp.addItem ({id: result [i] ['id'],})

    name: result [i] ["name"],

    Pass: result [i] ['pass'],

    label: result [i] ["name"] + "" + result [i] ["name"],

    ({data: result [i] ['id']});

    }

    list_mc. DataProvider = dp;

    }

    }

    = ANSWERING MACHINE DEFECTS =.

    function onFault(fault:Object):void

    {

    status_txt. Text = String (fault.description);

    }

    Gateway.php code

    <? PHP

    define ("PRODUCTION_SERVER", false);
    Include things that must be global, for integration with other frameworks
    include "globals.php;

    Understand the framework
    include 'core/amf/app/Gateway.php ';

    $gateway = new Gateway();
    Game where the service classes are loaded, * with * slash end
    $servicesPath defined in globals.php
    $gateway-> setClassPath ($servicesPath);
    Game where the class mappings are responsible for (ie: for your)
    $voPath defined in globals.php
    $gateway-> setClassMappingsPath ($voPath);
    $gateway-> setCharsetHandler ("utf8_decode", "ISO-8859-1", "ISO-8859-1");
    Types of errors that will root in the NetConnection debugger
    $gateway-> setErrorHandling(E_ALL ^ E_NOTICE);
    If (PRODUCTION_SERVER)
    {
    Disable profiling, tracking distance and service browser
    $gateway-> disableDebug();
    Keep the Flash/Flex IDE drive to connect to the gateway. Used for security to stop remote connections.
    $gateway-> disableStandalonePlayer();
    }
    Enable gzip output compression if zlib is available,
    beyond a certain threshold of size bytes
    $gateway-> enableGzipCompression(25*1024);
    Service now
    $gateway-> service ();

    ? >

    dbtest.png

    When I run the SWF with ctrl + enter all that I get is "Error reading of documents."

    the text in red is the name of the instance.

    Your .swf file location must be added to the trusted location of the flash player settings... Did you do that? otherwise you are unable to connect to internet on site.

  • Connect to the database with SQL * more: is TNSNAMES. ORA used?

    Hello

    We have a local database called DEV01 and a copy of this database in a data center. To be able to connect to both databases, the TNSNAMES file. ORA

    on the local database server (not the one in the data center) has the following entries:

    / * Entry for the local database * /.

    DEV01_local, DEV01_local. WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server01) (PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SID = DEV01)
    )
    )

    / * Entry for the database in the data center * /.

    DEV01, DEV01. WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server02) (PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SID = DEV01)
    )
    )

    When I connect to the local database server, I set the Oracle environment as follows:

    export ORACLE_SID = DEV01

    export PATH=/opt/oracle/app/oracle/product/9.2.0/bin:$PATH

    export ORACLE_HOME=/opt/oracle/app/oracle/product/9.2.0

    Now I start SQL * more as follows:

    Oracle # > sqlplus user/user

    SQL > select instance_name, host_name from v$ instance;

    INSTANCE_NAME HOST_NAME

    ---------------- ----------------------------------------------------------------

    SERVER01 DEV01

    As the SID is on two databases of the same (DEV01) I really don't understand how Oracle decides which of the SQL databases * more connects to.

    Is it the entry in the TNSNAMES file. ORA?

    But when I start SQL * more as follows:

    Oracle # > sqlplus user/user@DEV01_local

    SQL > select instance_name, host_name from v$ instance;

    INSTANCE_NAME HOST_NAME

    ---------------- ----------------------------------------------------------------

    SERVER01 DEV01

    or

    Oracle # > sqlplus user/user@DEV01

    SQL > select instance_name, host_name from v$ instance;

    INSTANCE_NAME HOST_NAME

    ---------------- ----------------------------------------------------------------

    DEV01 server02

    everything is as expected.

    Does anyone know who is the chosen database when just to connect with 'sqlplus user/user' (without the @DEV01 or @DEV01_local)?

    Any help will be appreciated!

    Rgds

    Jan

    When you connect to the local database that is connected to the server01, you need only specify the sid in the environment, in this case, Oracle tnsnames file to connect, actually uses, it uses any of the listener.  It uses what is called a connection needed.  It is purely a side connection server, and as long as the sid is located in the environment resolves to a database running on that server, you will be get connected.

    When you connect using the @connect_descriptor, like you second case, then Oracle will use the configured naming, including tnsnames, methods to solve the 'real' database  In this case, the auditor is required to create the connection to the database.

    John

  • cannot connect to the database

    Hello

    on 10.2.0.3

    In my listener.ora, I gave port 1521.

    In tnsnames.ora also 1521.

    When I try to connect to my db I get:

    sqlplus system@MYDB

    ORA-12514: TNS:listener is not currently of service requested.

    in listener.log I

    07 NOV. -2013 09:04:54 * (CONNECT_DATA = (SERVICE_NAME = MYDB) (CID = (PROGRAM = D:\oracle\bin\sqlplus.exe)(HOST=SERVER)(USER=user))) * (ADDRESS = (PROTOCOL = tcp)(HOST=127.0.0.1) (PORT = 4358))))

    or

    (ADDRESS = (PROTOCOL = tcp (PORT = 1858))(HOST=127.0.0.1))

    or

    (ADDRESS = (PROTOCOL = tcp (PORT = 1869))(HOST=127.0.0.1))

    In sqlnet.log I

    AMT-12564: TNS: denied connetion

    My question is why in listener.log I have different port numbers instead of 1521?

    Thank you.

    user10274093 wrote:

    Thanks Hoek.

    I cannot connect to the database on the server hosting then no use of the customer.

    I don't see in these links, something on the port number change in listener.log.

    Kind regards.

    Port 1521 is used to communicate with the listener.  If the listener is able to actually process the request (your error indicates it is NOT able to process the request), while it generates a server process that communicates with the client on a different port.  At this point, the listener is out of the picture until the connection goes.

    Read the links once again, especially the other, which directly addresses your specific error message.

    And know that the requests to the IP 127.0.0.1 (or its alias 'localhost') never to leave the machine for which the request was made... your log listener seems to indicate that is used, but if that were the case, you would have got a different error.  If you read the links provided, you will see that the first centerpiece of the ora-12514-related news is the release of "lsnrctl status".

  • SGC does not start - unable to connect to the database

    Hi all

    My development/test environment is unbootable SGD. This has really we stopped in our tracks...

    He'll start the WebTier, but CMS will not come to the top:

    [Journal of the oracle@ora-emcc] $ $OMS_HOME/bin/emctl status SGD

    Oracle Enterprise Manager Cloud control 12 c Release 2

    Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.

    WebTier is in place

    Oracle Management Server does not work for the following reason:

    Unable to connect to the repository database. SGD will be automatically restarted once he identifies database and the listener are on the rise.

    Try to check the details SGD results in an error as well:

    [config oracle@ora-emcc] $ $OMS_HOME/bin/emctl status who-details - sysman_pwd $SYSMAN_PWD

    Oracle Enterprise Manager Cloud control 12 c Release 2

    Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.

    Exception in thread "main" java.util.MissingResourceException: can't find bundle for the base oracle.security.jps.internal.common.resources.keystore.KeyStoreResources, locale name

    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427)

    at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250)

    at java.util.ResourceBundle.getBundle(ResourceBundle.java:952)

    to oracle.security.jps.util.JpsBundle. < init > (JpsBundle.java:70)

    at oracle.security.jps.util.JpsBundle.getResourceBundle(JpsBundle.java:151)

    at oracle.security.jps.util.JpsBundle.getResourceBundle(JpsBundle.java:106)

    at oracle.security.jps.JpsLocalizableException.getResourceBundle(JpsLocalizableException.java:157)

    at oracle.security.jps.JpsLocalizableException.getLocalizedMessage(JpsLocalizableException.java:140)

    at oracle.security.jps.JpsLocalizableException.getLocalizedMessage(JpsLocalizableException.java:131)

    at java.lang.Throwable.toString(Throwable.java:343)

    at java.lang.String.valueOf(String.java:2826)

    at java.lang.StringBuilder.append(StringBuilder.java:115)

    at java.lang.Throwable.printStackTraceAsCause(Throwable.java:536)

    at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545)

    at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545)

    at java.lang.Throwable.printStackTrace(Throwable.java:516)

    at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:59)

    at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:342)

    at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:304)

    at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:234)

    at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)

    at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)

    at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)

    at org.apache.log4j.Category.callAppenders(Category.java:203)

    at org.apache.log4j.Category.forcedLog(Category.java:388)

    at org.apache.log4j.Category.error(Category.java:319)

    at oracle.sysman.emctl.oms.PrintOMSSetupInfo.main(PrintOMSSetupInfo.java:240)

    In the WebLogic administration Console, I see the BEEP, EMGC_ADMINSERVER, and EMGC_OMS1 are all in the State Running and health Ok.

    Our servers SGD and OMR are (and have always been) 2 different machines. The database on OMR has always been (and is currently) high and available.

    Checking that I can connect to the database of repository on the SGD server OMR:

    [oracle@ora-emcc ~] $ sqlplus sysman / $SYSMAN_PWD@ora-emccdb:1521 / emccdb

    SQL * more: version 11.1.0.7.0 - Production on Thu Nov 10 23:34:53 2013

    Copyright (c) 1982, 2008, Oracle.  All rights reserved.

    Connected to:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL >

    Any suggestion will be highly appreciated.

    Ed

    Hi Mathieu,

    Thanks for the comments. I just got an update of Oracle on the SR with a few more instructions on different things to try/run.

    I met problems with Weblogic in step 1 and could not understand the multitude of possible causes. After some googling I found others who has ended up just restart that did the trick. It worked for me as well as far as I can see now. I'll do some tests to check, but well.

    Thank you

    Ed

  • Having problems with SQL Developer connection to the database on a LINUX machine

    Having problems with SQL Developer connection to the database on a LINUX machine
    Hello
    I am trying to connect my machine to windows 7 Home premium to an oracle database 11 g on RedHat 5 machine using SQL Developer. I got this error on SQL Developer
    Status: Failed - Test has failed: the network adapter could not establish the connection


    on Linux
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                03-APR-2013 16:13:13
    Uptime                    7 days 22 hr. 16 min. 41 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/product/11.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.X.X.X)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orc11g" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    Service "orc11gXDB" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    Service "orc11g_XPT" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL>
    and TNSPING
    tnsping 172.x.x.x
    
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 11-APR-2013 14:32:17
    
    Copyright (c) 1997, 2005, Oracle.  All rights reserved.
    
    Used parameter files:
    /u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
    
    Used EZCONNECT adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=172.x.x.x))(ADDRESS=(PROTOCOL=TCP)(HOST=172.x.x.x)(PORT=1521)))
    OK (0 msec)
    [oracle@ltebilling ~]$
    Tnsnames.ora on Linux,
    ORC11G =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.x.x.x)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orc11g)
    )
    )
    Listner on Linux,
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
    (PROGRAM = extproc)
    )
    )
    
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.x.x.x)(PORT = 1521))
    )
    )
    hosts/ect/Linux,
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1               localhost.localdomain localhost
    172.x.x.x             LTEBilling
    and there is no problem to ping linux from windows

    Published by: user11309581 on April 11, 2013 15:16

    user11309581 wrote:
    as I have already desciped earlier, I can't connect to the server throw Linux my Windows SQL Server, with error message below.
    tatus: failed - Test has failed: the network adapter could not establish the connection

    It's too generic to mean anything. The application is hidden the real error message. You got when you did the tnsping and obtained "TNS-12535: TNS:operation has expired. Now THAT's an error.

    This indicates a problem firewall and routing. You said earlier you could ping the server, but now we see tnsping fails. Two different protocols of usage, so that both the successful ping turns out a valid physical path, it guarantees not that all traffic will pass. What happens with

    c:\ telnet 172.x.x.x 1521
    
  • The IPC Protocol to connect to the database

    Hi Experts,

    All these years I have been using TCP protocol to connect to the base. What is the possibility of using the IPC Protocol?

    I tried on my side by not able to establish the connectivity of the IPC to the database. But it seems, Oracle is not love. Grateful if you could post my approach. Here are the details:

    OS: RHEL 5.5
    DB: Oracle 10 g 2 (Yes, we will upgrade :))

    Listener.ora
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = testdb)
          (ORACLE_HOME = C:\u01\app\oracle\product\10.2.0\db_1)
          (GLOBAL_DBNAME = testdb)
        )
      )
     
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(HOST = testhost)(PORT = 1521))
        )
      )
    TNSNAMES.ora
    testdb =
      (DESCRIPTION =
        (ADDRESS_LIST=
         (ADDRESS = (PROTOCOL = IPC)(HOST = testhost)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SID = testdb)
        )
      )
    The listener refuses to recharge as shown below:
    [oracle@testhost admin]$ lsnrctl reload
    
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 13-JUN-2012 13:16:40
    
    Copyright (c) 1991, 2005, Oracle.  All rights reserved.
    
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(HOST=testhost.mel.com)(PORT=1521)))TNS-01103: Protocol specific component of the address is incorrectly specified
     TNS-12533: TNS:illegal ADDRESS parameters
      TNS-12560: TNS:protocol adapter error
       TNS-00503: Illegal ADDRESS parameters
    
    [oracle@testhost admin]$
    Thanks for your time.

    Concerning

    Prem

    Prem,

    You would in this way:

    Add "(ADRESSE = (PROTOCOL = IPC) (KEY = IPCTESTDB)) ' to your listener as shown below followed by stop & start listener:"

    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = sdb)
          (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
          (GLOBAL_DBNAME = sdb_DGMGRL)
        )
      )
    
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = IPCTESTDB))
          (ADDRESS = (PROTOCOL = TCP)(HOST = qurmnl.ryd.com)(PORT = 1521))
        )
      )
    

    And a descriptor of connection as indicated below in the tnsnames.ora file:

    TESTDB=
      (DESCRIPTION=
        (ADDRESS=(PROTOCOL=IPC)(KEY=IPCTESTDB))
        (CONNECT_DATA=
          (SERVICE_NAME= testdb)
        )
      )
    

    and you should be able to connect as shown below:

    [oracle@qurmnl admin]$ sqlplus test/test@testdb
    
    SQL*Plus: Release 10.2.0.5.0 - Production on Wed Jun 13 13:52:40 2012
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    SQL>
    

    Hope that helps.

    Concerning

    Asif Momen

  • 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

  • ORA-01041 connecting to the database

    Hi the gems...

    We have changed the date of the server system. We did it with retroactive effect for two months.

    But after that, we can not connect to the database. Not sysdba, rather than non-sysdba. Sqlplus "virtue sysdba" event is also a failure.

    the error is: ORA-01041: internal error. hostdef extension doesn't exist

    My database is 11 GR 1 material and windows server.


    The last lines of the log of alerts:

    ***********************************************************************

    Fatal OR connect error 12631, connect to:
    (DESCRIPTION =(LOCAL=YES) (ADDRESS = (PROTOCOL = DOB)))

    VERSION INFORMATION:
    AMT for 32-bit Windows: Version 11.2.0.1.0 - Production
    Oracle leaves NT Protocol adapter for 32-bit Windows: Version 11.2.0.1.0 - Production
    Time: April 27, 2012 12:12
    Tracing not lit.
    AMT error struct:
    NS main err in code: 12631

    AMT-12631: username recovery failed
    NS secondary err code: 0
    NT main err in code: 0
    NT secondary err code: 0
    NT OS err code: 0
    Fri Apr 27 12:12:17 2012


    ***********************************************************************

    Fatal OR connect error 12631, connect to:
    (DESCRIPTION =(LOCAL=YES) (ADDRESS = (PROTOCOL = DOB)))

    VERSION INFORMATION:
    AMT for 32-bit Windows: Version 11.2.0.1.0 - Production
    Oracle leaves NT Protocol adapter for 32-bit Windows: Version 11.2.0.1.0 - Production
    Time: April 27, 2012 12:12:17
    Tracing not lit.
    AMT error struct:
    NS main err in code: 12631

    AMT-12631: username recovery failed
    NS secondary err code: 0
    NT main err in code: 0
    NT secondary err code: 0
    NT OS err code: 0



    Please help... Thanks in advance

    Can you define in your SQLNET.ora below and try again?

    SQLNET. AUTHENTICATION_SERVICES = (NONE)

Maybe you are looking for

  • No noise in Equium A100

    I've been using Equium A100 but everything suddenly there is no sound (speaker and headphone). I reinstalled the windows XP operating system, still does not. Could someone give me some clues. Thank you

  • Help me!! PLEASE, I BEG YOU!

    Hello.. So my computer is EXTREMELY slow and does not even begin to start a backup of my hard drive... The hard drive is a little old, and I wear my computers, so I have a little idea that he would not soon respect... I want to back up the drive, so

  • IR al final UN chain

    Buenos dias Estoy realizando UN prgrama as lle datos serialmente. ESTOS datos son leidos en UN string, como muchos datos, el son no string is sigue while pero no desplaza themselves. Lo yo quisiera, are a medidad going leyeno los datos, el string to

  • Build waveforms of the discrete points

    Hi all I'm doing a signal generator with the possibility of an arbitrary waveform. I have a graph with some sliders on it that you can move you like (only in the direction Y, not X) of these points, I would like to to create a 'soft', waveform, which

  • Removing a printer HPConnect in use at another location.

    I want to delete a printer in my HPConnect acct, but leave it in use at its former/current location. If it is email address remain the same, because it is current/new user? They may have a HPConnect account which is unique. Thank you.