Find out the database port

Hi,
i test my database with a connect from the programm SQL*PLUS. Here I need no port. Now I want to test ist with the SQL Developer. Here I need the database port. I don't know the database port. Can you tell me how I can find out the database port?

At a command prompt type tnsping database. That will display the tns connection details which includes the port number.
Or you could look in tnsnames.ora which is probably in <ORACLE_HOME>\network\admin.
Or you could use the tns connection type in sqldeveloper which picks up the details from tnsnames directly.
Message was edited by:
smitjb

Similar Messages

  • How does one find out the database name , service name in a database

    hi,
    how do u find out the database name , service name , SID in a database.
    Please reply.
    Thanks ,
    Regards,
    RC

    This particular information is available in the view V_$PARAMETER owned by SYS. But you can also login with Server Manager as user INTERNAL and run:
    SHOW PARAMETERS
    The entries pertaining to the naming of the database are:
    1. db_name
    2. db_domain
    3. db_name
    4. instance_name
    5. service_names
    GLOBAL_NAME is a static (not changing) Data Dictionary view which has just 1 attribute (column) called GLOBAL_NAME.
    When you run:
    select GLOBAL_NAME from GLOBAL_NAME;
    You are returned the full global name of the database, i.e. the db_name and the db_domain joined together by dot (.) For e.g. if your db_name = mgmt and db_domain = tech.co.in, then your global_name will be MGMT.TECH.CO.IN.
    Ciao.
    null

  • How to find out the database-size

    Hello,
    how can I find out the size of the database.
    I created the user as below. I defined the size of the database to 2MB. Now I want to know how much is the size of the database.
    CREATE USER oemer
    IDENTIFIED BY ...
    DEFAULT TABLESPACE system
    QUOTA 2M ON system;

    Actually, since Omer is a veteran poster to the Forms and Reports forums, I doubt that. I think he is making a much more interesting journey: from front-end to back-end.
    I'll be a bit more helpful this morning.
    Databases are ways of organising disk space to store data. Fundamentally they consist of OS files, data files. The RDBMS handles by grouping them into tablespaces. When we build tables we assign them to a tablespace.
    So, the size of the database is the sum of its datafiles. Of course, some tablespaces are used for sorting and holding undo information, so the size of the database for the purposes of persisting data is:
    SELECT count(x.tablespace_name) AS total_TS, sum(x.MB) AS total_mb, sum(x.free_mb) AS total_free_mb
    FROM   ( SELECT t.tablespace_name, sum(d.bytes)/1048576 AS mb, sum(f.bytes)/1048576 AS free_mb
             FROM   dba_free_space f, dba_data_files d, dba_tablespaces t
             WHERE  t.contents = 'PERMANENT'
             AND    d.tablespace_name = t.tablespace_name
             AND    d.file_id = f.file_id
             GROUP  BY t.tablespace_name ) x
    /The SYSTEM tablespace is special. It is used by Oracle to hold the data dictionary, the definitions of all the objects in the database. It should not be used for storing application objects (it affects the performance, apatrt from anything else). That is why we must not use it as a default tablespace.
    CREATE USER oemer
    IDENTIFIED BY ...
    DEFAULT TABLESPACE ts_users
    QUOTA 2M ON ts_users; Cheers, APC

  • To find out the database running in the Server

    Hi,
    How to find out the number of database running in the server other than this command : ps -ef | grep pmon
    Thanks,
    Suresh Bommalata.

    There's no single answer.
    1. What if one or more of the database instance(s) is/are down at the moment that you run "ps -ef | grep smon" ?
    2. "ps -ef" cannot be used on Windows.
    3. You could check the oratab file (the location is platform specific -- generally /opt or /var/opt or /etc on Unix/Linux) but not all databases may be registered on the oratab file
    4. You could look for the running (if any !) listener on the server and check the listener.ora listener.log file (database instances do not need to be in the listener.ora !)
    So : You have to run multiple checks.
    Hemant K Chitale
    Edited by: Hemant K Chitale on Aug 2, 2010 3:09 PM

  • How to find out the http port number

    Hi gurus,
    Please help me find out what the http port number for the XML DB repository on the database server is. I tried the default 8080 and got an error saying it is no longer valid. I re-installed the database a couple of times and I don't remember that I had to enter a new port number.
    Thanks.
    Ben

    SQL*Plus: Release 11.1.0.2.0 - Beta on Sun Nov 12 21:33:33 2006
    Copyright (c) 1982, 2006, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.2.0 - Beta
    With the Partitioning, OLAP and Data Mining options
    SQL> select dbms_xdb.getHttpPort(), dbms_xdb.getFtpPort() from dual;
    DBMS_XDB.GETHTTPPORT() DBMS_XDB.GETFTPPORT()
                      8080                  2100
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.2.0 - Beta
    With the Partitioning, OLAP and Data Mining options
    C:\Documents and Settings\Mark D Drake>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 11.1.0.1.0 - Beta on 12-NOV-2006 21:34:00
    Copyright (c) 1991, 2006, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 11.1.0.1.0 - Beta
    Start Date                11-NOV-2006 06:49:03
    Uptime                    1 days 14 hr. 44 min. 58 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   c:\oracle\product\11.1.0\db_1\network\admin\listener.ora
    Listener Log File         c:\oracle\product\11.1.0\db_1\network\log\listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mdrake-lap)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mdrake-lap)(PORT=8080))(Presentation=HTTP)(Session
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mdrake-lap)(PORT=2100))(Presentation=FTP)(Session=
    Services Summary...
    Service "ORA11GR1.xp.mark.drake.oracle.com" has 1 instance(s).
      Instance "ora11gr1", status READY, has 1 handler(s) for this service...
    Service "ORA11GR1XDB.xp.mark.drake.oracle.com" has 1 instance(s).
      Instance "ora11gr1", status READY, has 1 handler(s) for this service...
    Service "ORA11GR1_XPT.xp.mark.drake.oracle.com" has 1 instance(s).
      Instance "ora11gr1", status READY, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    C:\Documents and Settings\Mark D Drake>If SQL statment shows port numbers are 0 this means protocol is disabled and will not show in lnsrctl output

  • How to find out the database size of a portal?

    Hi all!
    How can I determine the size of the database of one portal?
    Thanks for your help!
    PM

    Hey Peter,
      Just making sure off the top... you're using the same version of Oracle on both the source ABAP system with DBA Cockpit and the target Portal, correct?
      Assuming you answered that in the affirmative, did you make an additional entry in the tnsnames.ora file on the ABAP system? This entry should reflect the target Portal database system to which your connecting. Make your change to the /oracle/<SID>/<DB_Ver>/network/admin/tnsnames.ora file. Once this is complete, copy that file to /sapmnt/<SID>/profile/oracle/tnsnames.ora.
    Test your connection again after this.
    Here's an excerpt from SAP Note 1261329:
    Set up the database connection.
    In the file tnsnames.ora that is in the directory (on the application server) to which the environment variable TNS_ADMIN refers, you must add the following entry for each Oracle remote database:
               <SID> =
                 (DESCRIPTION =
                   (SDU = 32768)
                   (ADDRESS_LIST =
                     (ADDRESS =
                      (COMMUNITY = TCP)
                       (PROTOCOL = TCP)
                      (HOST = <database_host>)
                      (PORT = <port>)
                   (CONNECT_DATA =
                     (SID = <DB_ID>)
    This means that
    <SID> = the ID that you want to use to access this database ("TNS Name")
    <database_host> = host name of the database server
    <port> = TCP port of the database listener
    <DB_ID> = database ID of the database that is to be connected
    Usually, you can copy the entry in the file tnsnames.ora from the relevant file of the remote system. To obtain the contents of tnsnames.ora in the remote system, log on to the remote system as the database user ora<sid> (UNIX or Linux) or as the database user <sid>adm (Windows) on operating system level. There, you call the following command from the command line.
    tnsping <SID>
    The output specifies the connection parameters and the path to the file sqlnet.ora. The directory in which this file is stored, also includes the file tnsnames.ora.
    If you haven't seen them before, check out that note (1261329, 1028624, and 1256322). If you've still got questions, let me know.
    -Kevin

  • How can I find out the server port for a secured FTP site and creating a FTP Connection Manager

    I have to create a FTP Task to go out and get the files that our 3rd party vendor will be dropping on a secured FTP site. I have all the credentials to access that Secured FTP Site and have successfully done so through FileZilla.
    Now I need to set-up a FTP Task to go out and get their files and in so doing create a FTP Connection Manager. Is there any way I can determine the
    Server Port number from the Secured FTP site? I let it default to 21 and tried the Test Connect and it failed.
    Thanks for your review and am hopeful for a reply.

    Hi ITBobbyP,
    SSIS has a built in FTP task, while this only works for the FTP protocol, it doesn’t support SFTP. But there are some free clients like WinSCP and
    SSIS SFTP Task Control Flow Component
    available in the CodePlex which can invoked from SSIS.
    References:
    SSIS SFTP Task Control Flow Component approach
    WinSCP approach
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How can I find out the database version from an old backupset

    Hi,
    I have to restore a database using an old backupset (4 years ago) to a new database. My challenge is we don't know what version of the database were used back then. Is there anyway I can find this information. We are using the RMAN catalog.
    Or is RMAN restore and recovery can be used to a newer version than the backupset?
    Thanks in advance.
    Regards,
    Sosan Fong

    Thanks for the reply and suggestion.
    We are using its own software for all databases hosted in the server. So I need to cleanup and reinstall after tested in 11g. A little bit more work, but if it works, that's ok. Is there any other suggestions?
    Regards,
    S

  • How to search this value in oracle database to find out the table

    Hi expert,
    I know there is a value in oracle database, please show me how to search this value in oracle database to find out the table holding this value.
    Many Thanks,

    918440 wrote:
    Hi friends,
    this question is really practical, I already know there is value from application saved in database, I want to search the whole database to figure out which table the value is contained.write SQL that writes SQL to query every table.
    Handle:     918440
    Status Level:     Newbie
    Registered:     Mar 2, 2012
    Total Posts:     20
    Total Questions:     10 (10 unresolved)
    why do you waste time here when you NEVER get any answer to any question you post?

  • How to find out the size of a database?

    I'm not an oracle dba but a report developer. I'd like to find out the size of my database.
    Is this possible using simple query?

    An oracle database consists of data files, redo log files, control files, temporary files. Whenever you say the size of the database this actually means the summation of these files.
    select a.data_size+b.temp_size+c.redo_size+d.controlfile_size "total_size in MB"
    from
    ( select sum(bytes)/1024/1024 data_size from dba_data_files ) a,
    ( select nvl(sum(bytes),0)/1024/1024 temp_size from dba_temp_files ) b,
    ( select sum(bytes)/1024/1024 redo_size from sys.v_$log ) c,
    ( select sum(BLOCK_SIZE*FILE_SIZE_BLKS)/1024/1024 controlfile_size from v$controlfile) d;
    here
    a is megabytes allocated to ALL datafiles
    b is megabytes allocated to ALL TEMP files
    c is megabytes allocated to ALL redo-logs
    d is megabytes allocated to ALL control files
    Nimish Garg
    Software Developer
    *(Oracle & ASP.NET)*
    Indiamart Intermesh Limited, Noida
    To Get Free Oracle & ASP.NET Code Snippets
    Follow: http://nimishgarg.blogspot.com

  • How to find out the process count for a database during a particular window

    Hi Team,
    I want to find out the maximum process count reached for a database for an interval. Say between 1:00 to 2:00 AM IST. Please help
    Database version:11.2.0.2
    OS:AIX 6.1

    Check DBA_HIST_RESOURCE_LIMIT. Your information will be there.
    Simialr information is available in DBA_HIST_SYSSTAT.
    Look for stat name logons cumulative/logons current - Total number of logons since the instance started/Total number of current logons
    You can joing dba_hist_snapshot with snap_id and give begin_interval_time and end_interval_time to know historic process utilization.
    Regards,
    Sreejith

  • How to find out the scructure of OID database

    Hello,
    I installed the OID on our server, but now I have to have access to the databse. There is no problem, but there are no primary or foreign keys in a database, so I can not find out the relations between the tables in OID-databse.
    How can I find it out?
    It is very important.
    Thanks and regards
    Heinrich

    An oracle database consists of data files, redo log files, control files, temporary files. Whenever you say the size of the database this actually means the summation of these files.
    select a.data_size+b.temp_size+c.redo_size+d.controlfile_size "total_size in MB"
    from
    ( select sum(bytes)/1024/1024 data_size from dba_data_files ) a,
    ( select nvl(sum(bytes),0)/1024/1024 temp_size from dba_temp_files ) b,
    ( select sum(bytes)/1024/1024 redo_size from sys.v_$log ) c,
    ( select sum(BLOCK_SIZE*FILE_SIZE_BLKS)/1024/1024 controlfile_size from v$controlfile) d;
    here
    a is megabytes allocated to ALL datafiles
    b is megabytes allocated to ALL TEMP files
    c is megabytes allocated to ALL redo-logs
    d is megabytes allocated to ALL control files
    Nimish Garg
    Software Developer
    *(Oracle & ASP.NET)*
    Indiamart Intermesh Limited, Noida
    To Get Free Oracle & ASP.NET Code Snippets
    Follow: http://nimishgarg.blogspot.com

  • Finding out the source ip and port of an incoming Upacket

    Hi, does anybody know how to find out the source ip address and port of a udp packet coming into an rtp session based on a NewParticipantEvent or a NewReceivedStreamEvent? I would really appreciate any reply...
    thanks

    The only proper solution is the one pointed out by ejp :
    1) Accept new connection with ServerSocket, store the newly created Socket in a collection of some sort.
    2) Map the collection in a way that's suitable to your application. Then when you need to send something to client X you simply look up which Socket instance has been accepted/created for said client and use the in/out streams to transfer data.

  • How to find out on wich port BI Publisher is running?

    Hello,
    I have the following situation: Windows XP, Oracle Database 10.2.0.3, APEX 3.0, Application Server 10.1.3.1 (Advanced, J2EE-Server and Web-Server) and Oracle BI Publisher 10.1.3.2.1 (Advanced, Setup-Type Oracle Business Intelligence Publisher).
    The HTTP-Server and BI Publisher are running.
    Now I want to configure APEX for PDF-printing. How I can find out the port on wich BI Publisher is running?
    I need it for the attribut "Print Server Port" in APEX Instance settings.
    Thanks and regards,
    Susanne

    Hi Susanne,
    I think the default port for BI Publisher is 9704
    There are a couple of things you can do to find the port that BI Publisher is running on. The easiest is to navigate Start -> All Programs -> Oracle - BIPHome1 -> BI Publisher Server.
    This will bring up the homepage for BI Publisher in a web browser. The url for this page will contain the port for BI Publisher: http://localhost:9704/xmlpserver.
    The other way is to open a dos prompt and type netstat -abThis will show you all ports and the applications running on them. BI Publisher will be one of the ones with java.exe running.
    I hope this helps.
    Regards,
    Cj

  • How to find out the properties of a field's/object's?

    Hello
    I have field (say, its name is field_1) in my_form and  i am coloring yellow by using below code of initialization event:
    this.ui.oneOfChild.border.fill.color.value = "255,255,191"; (Actually, just for differentiating / tracing back purpose here  am assigning this yellow color to this field, you can suggest me any thing else that marks / tags this field (i can not populate a value, bcz its visible to user), so that in the  CHANGE event of this field, again i want to check/get/know that whether this field is tagged/marked or not)
    fine. But, because of some/below reason, i need to find out its color by using JavaScript, pls. let me know how to figure out its color is as yellow by using JavaScrit?
    Reason: If field_1's color is YELLOW (or you suggested any tag/mark as said in the above in red text), then i have to make HIDE the field_2
    Field_0's position is extreme left, Field_1's  position is middle and the Field_2's position is exterme right of the page.
    I guess, i hv only one option of finding out color, hence am looking forward for JavaScript to find out the color of a field in question
    (OR)
    Also, pls. let me know the JavaScript that How can i make HIDE a check box for that COMLETE session (i mean, starting from launching the form in the browser until he closes the window/browser/tab/form), i guess, this idea also workes for my requirement, ( i want to put this code in the docReady event) .....no matter/what ever code is existing there in any event of that field level
    Thank you

    The unix file command:
    file *
    foo.doc ms-office file / word
    bar.png png image, 32x32 pixels, no transparency
    moo.hhml html text
    note that as in the last - file names are ignored, it works by checking the beginning of each file's data against it's database, and as in #2 it can sometimes see a lot more than just the file format.
    Don't know of a windows port, you could try cygwin

Maybe you are looking for

  • How can I import movies NOT into my home folder?

    Recently got a brand new iMac with SSD and classic hard drive. The OS and the User folder resides on the SSD but the SSD is limited in size. Of course, when importing movies from camera archives or directly from a camera I don't want them to go to th

  • Problem converting .doc with "display_urn:schemas-microsoft-com:office:office" properties

    PDF Generator cannot convert a simple .doc document when there are properties with a name like "display_urn:schemas-microsoft-com:office:office#Editor". I think this is a property that some versions of MS Word add automatically. If you try to convert

  • Open a page in a new window passing him some parameters

    Dears all, System used : SAP WebAs 6.20 I have a link in my application which will open a contact form in a new window. This occurs by this mean : a href="#" onMouseDownMethod="pop()" class="fontNavRIS">CONTACT US script function pop() { window.open(

  • Adding Airport to my MacPro (1.Gen)  - where are the airport antenna wires

    Hello everyone! I´m quite desperate. I just tried to install an airport card to my old Mac Pro but I just can´t find the antenna wires. I just found the BT wire but nothing else I could use to connect to the card itself! I took out the hds (1+2) but

  • RAC with ASM and without ASM

    Hi all, we planing to install RAC 11g instance active/active . and we are using SAN storage RAID 10. I know ASM is nice feature . but it need more maintenance in future . This is what I see it from Manual and training . for patching ..... because it