Find out listener port number in linux?

hi, can anyone tell me how i find out the listener port number in linux?

sti..l getting the same error (please see below)
oracle@matt-desktop:~$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 19-JUL-2010 16:39:19
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/matt-desktop/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 19-JUL-2010 16:39:21
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/matt-desktop/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
The listener supports no services
The command completed successfully
oracle@matt-desktop:~$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 19-JUL-2010 16:39:38
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 19-JUL-2010 16:39:21
Uptime 0 days 0 hr. 0 min. 32 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/matt-desktop/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
oracle@matt-desktop:~$ cd $ORACLE_HOME/bin
oracle@matt-desktop:/u01/app/oracle/product/11.2.0/dbhome_1/bin$ ./emca -config dbcontrol db -repos create
STARTED EMCA at 19-Jul-2010 16:40:32
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: orcl
Listener port number: 1521
Listener ORACLE_HOME [ /u01/app/oracle/product/11.2.0/dbhome_1 ]:
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
You have specified the following settings
Database ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbhome_1
Local hostname ................ matt-desktop
Listener ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbhome_1
Listener port number ................ 1521
Database SID ................ orcl
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
Do you wish to continue? [yes(Y)/no(N)]: y
19-Jul-2010 16:40:56 oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_2010_07_19_16_40_32.log.
19-Jul-2010 16:40:57 oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
19-Jul-2010 16:40:57 oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error creating the repository
19-Jul-2010 16:40:57 oracle.sysman.emcp.EMReposConfig invoke
INFO: Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_repos_create_<date>.log for more details.
19-Jul-2010 16:40:57 oracle.sysman.emcp.EMConfig perform
SEVERE: Error creating the repository
Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_2010_07_19_16_40_32.log for more details.
Could not complete the configuration. Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_2010_07_19_16_40_32.log for more details.
oracle@matt-desktop:/u01/app/oracle/product/11.2.0/dbhome_1/bin$
=========================================================
========================================================
The log file is 571 lines...
is it anything to do with this stage: --->
Listener ORACLE_HOME [ /u01/app/oracle/product/11.2.0/dbhome_1 ]:
im not actually entrering anything, im just clicking enter??
Edited by: user9200169 on 19-Jul-2010 08:45

Similar Messages

  • How can I find out what port number my DB is using

    How would one find out what port number a database is using? Is there a SQL command that will allow us to do this?
    Thanks,
    oracle_newbie

    newbie
    Oracle databse assigns a dynamic port number for each established session. Usually, the common port is 1521 which is defined in you tnsnames.ora, however, this is used for requesting a dynamic port. Dynamic ports are within a ragne of 1000+. That's why it is hard to tell which port you are using at a certain time. You should have a network monitoring tool to check this accurately.
    Regards
    null

  • Select Listener Port Number from which_table?

    I'm writing a SQL script that, among other things, disconnects from Oracle and then reconnects to the same instance as a different user. I'm able to query v$database and v$instance to get most of the information I need (host, service name, etc) for the reconnect part. The only part I'm missing is the listener port number. I could hard code it to 1521, but that isn't very flexible. Currently, I'm prompting the user (which is normally me) for the listener port number in the SQL script, but that just seems a little bit lame. So my question is this: is there a view or table somewhere in the sys schema that I could use to view the listener configuration? I'm mostly working with 10gR2+ databases.

    cleavitt wrote:
    That is possible, but it needs to be a standard Oracle configuration if the script is to remain generic and portable. The script is actually working fine as-is. I was just trying to go the extra mile and determine the port number automatically. I could also prompt for a TNSNames entry as suggested by others, but I don't always have an entry defined for all of the Oracle instances in my company on every workstation that I work from.
    Here is the script for anyone that is interested. It started out as a script that I found online, but the original did not work with 11g case-sensitive passwords and it only worked for local connections on the server.
    Description:
    Allows a DBA user to impersonate another user (without knowing the user's password).
    Similar in function to using the SU command in Unix/Linux.
    Note:
    This script temporarily changes the impersonated user's password and may cause other
    connection attempts by that user to fail during the moment that the temporary password is in effect.
    WHENEVER SQLERROR EXIT
    SET VERIFY OFF
    ACCEPT username CHAR PROMPT 'Enter the username: '
    ACCEPT listenerport NUMBER DEFAULT 1521 PROMPT 'Enter the listener port [1521]: '
    -- Define substitution variables and column mapping.
    COLUMN username NEW_VALUE username
    COLUMN password_hash NEW_VALUE password_hash
    COLUMN host_name NEW_VALUE hostname
    COLUMN instance_name NEW_VALUE servicename
    -- Populate substitution variables.
    SELECT
    name AS username,
    -- Get the user's password hash(s) and apply appropriate formatting for case-sensitive password if needed (11g+ passwords).
    NVL2(spare4, spare4 || ';' || password /* 11g+ */, password /* pre-11g */) AS password_hash
    FROM sys.user$
    WHERE name = UPPER('&username');
    SELECT host_name, instance_name
    FROM v$instance;
    -- Set the user's password to a temporary value.
    ALTER USER &username IDENTIFIED BY TempPass;
    -- Use the temporary password to connect to the database as the user.
    CONNECT &username/TempPass@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=&hostname)(PORT=&listenerport))(CONNECT_DATA=(UR=A)(SID=&servicename)));
    -- Reset the user's password to the original value using the original password hash(s).
    ALTER USER &username IDENTIFIED BY VALUES '&password_hash';
    SHOW USER
    UNDEFINE username
    UNDEFINE password_hash
    UNDEFINE hostname
    UNDEFINE servicename
    UNDEFINE listenerport
    WHENEVER SQLERROR CONTINUE
    SET VERIFY ONAnd by so doing you just kicked the user's password expiration on down the road, negating the benefit of havng a password expiration.
    Also, you locked out the legitimate user of this account, until such time as you reset it back to the original. And in the mean time, if this happens to be an account used by some automated process, that process doesn't know the new "temporary" password and runs a risk of locking the account from too many invalid connection attempts. Try to become SYSMAN or DBSNMP from this, and you will very quickly kill OEM.
    This has "bad idea" written all over it. What problem is it supposed to be be solving?

  • How to find the listener port on windows?

    Hi Friends,
    We have a client who is still using Oracle 8.0.6 on NT 4.0
    I have a laptop with oracle client 10g.
    I want to connect to the NT database to check it.
    How do I know what port does the listener used ? what is the command to run at the c:\ command prompt?
    I tried> c:\ lsnrctl stat but the command is not recognized
    I tried to find the lsnrctl and bin but there is not.
    Please help
    Thanks a lot

    ytterp2009 wrote:
    Please help.. and please do NOT post [duplicate posts|http://forums.oracle.com/forums/thread.jspa?threadID=935282&tstart=0]
    How to find the listener port on windows?The Internet Protocol stack comes with a number of utilities - one of these, called netstat, is very useful to determine which processes are doing what to which IP ports on that platform. Unfortunately, different flavours are implemented. So the Windows one does not support the parameters and output than the Unix/Linux one.
    You can use the following on Windows (run it via a command console) to see what processes are listening on what address and port number:
    c:\> netstat -n -a -p tcp
      -n = display IP addresses and ports in numeric format
      -a = list all ports (including ones used for listening
      -p tcp = only display protocol entries for TCP An Oracle listener entry should look something as follows:
    Proto   Local Address  Foreign Address   State
    TCP     0.0.0.0:1521   0.0.0.0:0         LISTENINGSeeing IP +0.0.0.0+ means that the Listener is accepting connections on all your network interfaces - which is standard. The port number is typically 1521. The foreign address is meaningless for a port in listening state.
    PS. Why not simply check the listener.ora configuration file? Because what is actually happening may not be what you thought you configured to happen..

  • How to change the listener port number on a standby database

    i want to change the listener port number from 1525 to 1545, which is running on a standby database.
    i did the following steps and got some error.
    1. i stop listener and modfy listener.ora
    2. i login in standby DB and issue 'alter system set local_listener='(address=(pro=tcp)(host=10.10.10.10)(port=1545))';'
    3. i login in dg broker and issue 'edit database 's1' set property 'LocalListenerAddress'='(address=(pro=tcp)(host=10.10.10.10)(port=1545))';' and a error coming out ORA-16703: cannot set the property while the database is enabled
    4. then i disable database
    DGMGRL> disable database 'ssmscs';
    5. DGMGRL> edit database 's1' set property 'LocalListenerAddress'='(address=(pro=tcp)(host=10.10.10.10)(port=1545))';
    Error: ORA-16541: site is not enabled
    Configuration details cannot be determined by DGMGRL
    what can i do ? can anybody help me out? thanks in advance.
    Edited by: user1835127 on Nov 19, 2008 2:09 AM

    Hi
    You have to edit the following files in $ORACLE_HOME/network/admin or $TNS_ADMIN/ :
    In your listener.ora on your standby
    MQ_LIST =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = superman.dk)*(PORT = 1524))*
    TNSNAMES.ORA (on your primary and standby)
    MQ_LIST =
    (DESCRIPTION =
    (ADDRESS = (COMMUNITY = tcp.world)(PROTOCOL = TCP)(Host = superman.dk)*(PORT = 1524))*
    (CONNECT_DATA = (SID = MQ_LIST))
    after that do
    lsnrctl reload

  • Changing the Listener Port Number

    Hi RACers,
    I need to change the TNS listener port number from the default of 1521 (don't ask!).
    I'm on Solaris10/Oracle10g 10.2.0.3 using a 2 node cluster.
    I've tried editing the relevant files, bouncing everything and re-starting CRS, but that doesn't work. I tried using Netca to delete the listener and re-create it with a different port number and that didn't work either. The instances did not re-register despite having their local_listener parameter changes.
    Obviously I'm doing something wrong, but don't know what. Any ideas or do you know where a procedure to do this is documented?
    Thanks in advance.

    My posting was not aimed at the OP at all.. not his fault that Oracle insists on using a TCP port that's NOT registered for Oracle use.
    It is all Oracle's fault that port 1521 is used instead of 1527.
    As for what Oracle books say.. bahumbug. Means nothing ito playing by the same networking rules as everyone else.
    Port 1527 is what is registered for and by Oracle as use for Oracle tcp traffic. Not fricken port 1521!
    And why is this a problem?
    If you're in the network business and deal with everything and anything from network analysis and management to rewriting ToS bytes for proper DiffServ application.. then it is very frustrating to find a major company like Oracle ignoring the networking rules.
    I read that as Oracle telling us "screw you".

  • How do I find out the phone number in a new house?

    I have recently moved into a new student house and I am struggling to set up the Internet because I cannot retrieve the landline number from the previous tenants plus we don't have a phone at the house either. Is there a way I can find out the landline number online? Help!

    OldGold wrote:
    Then 17070 won`t work ether.
    17070 is normally allowed on stopped lines, as it enables field engineers to do pair identification. Sometimes 1470 needs to be added as a prefix, if the number was withheld.
    Where possible, old phone lines are left with "soft" dial-tone, as it saves extra work when a new line is provided, and encourages new customers.
    Some service providers insert a recorded announcement if someone tries to dial out. "Welcome to XXXX service provider, please dial XXX to activate this line"  or something similar.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • How can I find out the apn number of the battery without having it?

    I dont have the battery of my iphone 5 anymore but how can i find out the apn number of the battery? I would like to change it but i need to know the apn number to choose the right battery.

    Apple does not provide any user-serviceable parts (other than accessories or sometimes a SIM card tray).
    Therefore, there are no legitimate iPhone batteries available for sale anywhere.
    Anything you find will either be salvaged, counterfeit, or stolen.

  • How to find out the serial number of a connected AP

    Hi.
    We are using Cisco Prime Infrastructure Manager 2.0
    My question is: Is there a possibility to find out the serial number of a connected AP?
    Regards
    Markus

    Hi Markus,
    I don't think ,there is any report which can help to get the serial no of AP.
    Inventory( Report >Report Launch Pad> Inventory)  is the ONLY report which gave the below information but NOT the serial no .
    Inventory
    This report allows you to generate inventory-related information for  controllers, access points, and MSEs managed by Prime Infrastructure.  This information includes hardware type and distribution, software  distribution, CDP information, and other statistics.
    *** If anyone knows more deatils on this ,please share with us ***
    Thanks-
    Afroz
    [Do rate the useful post]

  • I have two copies of CS6 and I need to find out which serial number is installed on which computer. How do I find the serial number once it's installed on a computer?

    I have two copies of CS6 and I need to find out which serial number is installed on which computer. How do I find the serial number once it's installed on a computer?

    if they're pcs, Belarc Advisor - Free Personal PC Audit, for software, hardware and security configuration information on your computer.…

  • What is default database listener port number

    Running emca script requested for database listener port number. Where do I get this information from.

    If the port number is not specified in listener.ora,
    you may get different values with 10gR1 such as 1509,
    1525, 1525 or 1531 (on Windows XP SP2).
    I guess this depends also on whether the TCP/IP port
    1521 is really released or notI have seen what you have described above when port 1521 was in use by another process. If the port is not in use, I have not seen any thing other then 1521 assigned when the listener was created either during installation or afterwards using Net Assistant.

  • Changing the listener port number in a cluster environment

    Hello,
    I have an Oracle 10g database on a Windows cluster environment with Oracle Fail safe. I am trying to change the default listener port number - these are the steps I have done to change the port number:
    1) Take the listener offline via Oracle Fail safe
    2) stop the original listener from the command line
    3) change the port number in the listener.ora file & save
    4) start the original listener
    5) bring the listener online in Fail safe
    6) register the listener in the database with ALTER SYSTEM SET LOCAL_LISTENER....
    After all this, when i check the status of the listener via lsnrctl, i see that the new port number is used, however in the Fail safe administrator, I still see the default port 1521. How do I go about changing the port number so that Fail safe also registers the change?

    I did troubleshooting to verify the group, but this just changed the port number back to the default in the listener.ora & tnsnames.ora.
    So I did all the steps again to change the port number from the default to another - via lsnrctl status, i see that the new port number is being used, I can also log in to the database via Toad using the new port number, in v$parameter i see that the local_listener is registered on the new port number....only under the Fail Safe manager, the port number (under listener parameter) has not changed....it still shows the default port number. Anyone know how to change this???

  • How can I find out the total number of gigabytes of all my photos in Iphoto?

    How can I find out the total number of gigabytes of all my photos in Iphoto?

    In the Event mode open the Info window at the bottom left  (Command+i or click on the blue i button).  Then select all of the Events.  The number of photos and size will be shown in the Info window at the right.
    OT

  • Can I find out the model number of my screen without taking it apart?

    Hi!
    My "17 Macbook Pro creen needs replacing,and I have no interest in spending upwards of $250.
    I would like to find a suitable replacement online,but I need to know the model number first for purposes of compatibility.
    I have been told that I would have to take apart my screen,in order to find out the model.
    I was wondering if there was any possibility of finding out the model number without having to take my screen apart.
    I have been calling apple service centers,but they have been no help.
    They tell me that they need to diagnose it for themselves.
    Why should it be this difficult?
    I should be able to just call somebody,have them look up the serial number,and tell me the number of my model.

    All they should need is the Model Number of your Mac.
    Here is a good Place to look.
    http://eshop.macsales.com/?utm_source=google&utm_medium=cpc&utm_campaign=adwords &gclid=CO741pfHiL0CFbQWMgodOTYAJA
    Don
    http://eshop.macsales.com/item/Apple/MBPU17GLS/
    If it is just the display glass then the last link is what you need.

  • How to find out Inquiry  document number in sales quotation

    Hi all
    my client have requirement that while creating quotation with reference to inquiry number the system should copy inquiry number in sales quotation it should be save into any particulates field so base on that  he can configure  output determination can any one help me how to find out Inquiry  document number in sales quotation and what are the config step i need to do
    Thanks and regards
    rajesh

    Hi raj
    Firstly  , In Sales header data you can see the preceding document feild but i am not sure in which tab .
    Secondly, As far as document flow is concerned go to VA22 and then you will get the document number of the quotation and at the top you will get one small icon which is document flow , but i am, not sure with the shortcut but just check with  Shift +F2. then you can see the flow
    Regards
    Srinath

Maybe you are looking for

  • Adding a .jpeg still to an .mp3 - does it become a different format?

    Just curious: When I drag an .mp3 file into an iWeb 08 page then a "Drag image here" appears. Question: If I add a still .jpeg image into the box then will the .mp3 file ultimately become a different sort of file format when it is accessed on the int

  • PSD Thumbnails in Windows 7, SOME SHOW UP!?!!

    If someone could help me with this, I'd be ever so grateful! With Windows Vista and Windows 7 now, I do not get thumbnail previews of the .psd files when viewing the files in the standard windows.  I've come to accept this.  But, when I upgraded to P

  • TS2972 itunes music library does not load for ipod sharing

    I cannot share my itunes library wtih my I ipod touch. iphone and ipad work perfectly. When I click on my music lirary for sharing on my ipod it stars to sink the circle for syncing goes half way an stops, no songs to share and stuck in shared mode.

  • JDBC to JDBC scenario

    Hi All,     I have one scenario in which I have to select data from one database (say D1) & insert into another database (say D2). Based on success or failure of insertion, I have to update the status message back in Sender database (D1).      Now, w

  • Cancelled Sales orders

    Hi All, I need to pull all Sales orders that have been canceled between 6:00pm yesterday's date until 6:00 pm today. can anyone please let me know how to find this? I think i can use VBUK-AEDAT for date of last change of the order. But how to find th