Remote connect to 10G database

Dear,
Hwo can i remote connect 10g database use sqlplus? for example I have a server Ip address is 123.123.0.1 with database name fin. What should i type on host string on remote sqlplus client?
Rg

Assuming you're using TCP/IP protocol and your Client is 10g, you could try using easy connect naming method :
sqlplus <username>/<password>@<host name or IP address>:<port number>/<SID>
for example
sqlplus scott/[email protected]:1521/fin
See http://download-uk.oracle.com/docs/cd/B19306_01/network.102/b14212/naming.htm#ABC524382SRI12

Similar Messages

  • Unable to connect to 10g database from developer suite 10g

    I have loaded oracle 10g on my server with OS windows 2003 and it is working fine.Now I have installed Oracle developer suite 10g on windows XP client . we have configured local listener also and its entry is found in tnsnames.ora
    My database name is mbxdata .
    I have defined my host name as
    MBXDATA.mbxnet.com in tnsnames but I am unable to connect to the database since I get error as ORA-12154 : TNS :could not resolve the connect identifier specified.
    Please suggest matter urgent.
    Thanks in advance

    We are having the same issue now. Was this ever resolved? We created 2 new databases and added those entries in both tnsnames on the local pc, and the tnsnames on the application server. Able to connect via sqlplus, toad, etc. but not through forms developer. We are running 10g app server, 10g developer suite, 10g databases. Any ideas?
    Thanks,
    Deb

  • SQL*Plus Release 9.2.0.1 remote connection to 10g EX

    Greetings,
    I am trying to access my XE database from a linux machine using SQLplus 9.2.0.1. I do the following:
    sqlplus /nolog
    sql>connect username/[email protected]:XEERROR:
    ORA-06401: NETCMN: invalid driver designator
    If I leave out the "XE" I get the following error:
    sql>connect username/[email protected]:
    ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect
    descriptor
    There seems to be nothing wrong with my database (tnsping works, etc).
    One of the enviromental variables in linux is "ORACLE_SID=CLASS1"
    I might have a syntax error in the connect function.
    Thanks in advance to whoever can help me. I viciously search the forum before posting this and could not get it to work.
    Andrey.

    Andrey,
    Is there a reason why you are using a colon between the <hostname>.<domain> and XE? If you use a period instead of a colon and define the default domain in the sqlnet.ora file as follows:
    NAMES.DEFAULT_DOMAIN = <hostname>.<domain>.XE
    You should be able to use a similar TNS alias but the colon will trigger an error. If you define your TNS alias as <hostname><domain>:XE and do not define the default domain in the sqlnet.ora file, then you should be able to connect from the command-line but not from within the SQL*Plus environment. For example, using this tnsnames.ora entry:
    hostname.domain:XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hostname.domain)(PORT = 1521))
    (CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = XE)))
    You can connect running this at the command line:
    [oracle@s1 admin]$ sqlplus plsql/[email protected]:XE
    SQL*Plus: Release 10.1.0.2.0 - Production on Mon Nov 14 18:22:54 2005
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Beta
    SQL>
    However, you will get the following running:
    [oracle@s1 admin]$ sqlplus /nolog
    SQL*Plus: Release 10.1.0.2.0 - Production on Mon Nov 14 18:21:42 2005
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> conn plsql/[email protected]:XE
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    Since the error will not occur if you define a default domain, it appears that changing the colon to a period may be your best solution.

  • Remote Connection to CRM database possible?

    Hi folks,   I normally connect to MySQL databases remotely to build and construct fields, etc.   Is such a thing possible for BC?   Perhaps that is forbidden for safety's sake.  

    Hi,
    The only possible option is to connect using existings APIs. 
    - http://kb.worldsecuresystems.com/635/bc_635.html
    Which is use to access, sync, adjust existing data but not for creating new DB fields remotely. I'm afraid that would not possible but would leave this thread open for any workaround suggestions. 
    Kind regards,
    -Sidney

  • Multiple Tries required before connecting to 10g database

    We just upgraded from 9i to 10g, and now we're having problems logging into SQL Plus. It takes 4-5 tries in SQL Plus before successfully connecting to the database. Once its connected, the connection is fine, but initially it is very finicky. The error messages it gives before connecting are: ORA-12638 (credential retrieval failed) or ORA-12545 (connect failed because target host or object does not exist)This never happened before. Any ideas?

    Is that a problem with only SQL*Plus or any application trying to connect to Oracle in general?
    Does it happen on all the systems that can connect to the DB or only some of them?
    Does it happen even if you connect from the Oracle server itself?
    Does it happen when using the TNS alias only or regardless?

  • JSP Code to connect Oracle 10g Database

    Can some give the JSP code for connecting Oracle 10g database

    hi
    First u have to get ojdbc1.4.jar file ,,,, it is the driver for the oracle
    then use the following code :
    import java.sql.*;
    import java.util.*;
    public class connectionBean
         Connection con;
         Statement statement;
         connectionBean()
              try
            Class.forName("oracle.jdbc.driver.OracleDriver");
            con = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:Xe","hr","hr");
            statement=con.createStatement();
              catch(Exception cnfe){     }
         public void testMethod()throws  SQLException{
              ResultSet rs=statement.executeQuery("select * from COUNTRIES");
              while(rs.next())
              System.out.print(rs.getString(1));
         public static void main (String args[])throws  SQLException
              connectionBean cb=new connectionBean();
              cb.testMethod();
    }hope this will help
    Good luck
    Mohammed

  • Remote connection to a database using TOAD, but without Oracle db on PC

    I want to connect to a remote database using TOAD from my PC but without having to install Oracle database on my PC.
    Is it possible?
    If yes, where do I enter the database IP address & port number?
    I am using TOAD Freeware version 8.5.0.50g
    (I want to achieve the exact thing with TOAD as it can be done with "OraCmd" program.)

    How did you create your tns entry? Manually or via netca?
    If netca is not used, I would recommend to delete the old tns entry from tnsnames.ora file manually and add the same entry back via netca utility.
    PartA.
    1) Make sure listener is up (for example on the server 192.168.0.33 you are trying to connect) before you start netca. Most probably it is on 1521 port unless you changed it.
    Assuming your server on *NIX:
    $ ps -ef |grep lsnr
    the above command will give you all the listeners which are up and running.
    If listener is not up, bring it up.
    $ lsnrctl start listener
    the above command will start listener called "LISTENER" on default port 1521. Ignore this if the listener is already up.
    PartB
    Assuming your client machine is on Windows,
    1) start --> run --> cmd --> netca
    2) You will see "Oracle Net Configuaration Assistant: Welcome" window. --> next
    3) Pick the 3rd radio button "Local Net Service Name Configuartion" --> next
    4) Pick the "ADD" button. --> next
    5) Provide the service name. (It is usually database name). Assuming my database name is FCMAT, I will give FCMAT --> next
    6) Pick "TCP" --> next
    6) Instead of the hostname, add the ip address of the host (for example 192.168.0.33 and
    "Use the standard port of 1521"--> next
    7) "Yes, perform a test" (this is why you have to have the listener up to test it) -->next
    8) It will fail as it doesn't have any password. Click on "Change Login" and provide the SYSTEM password and click "OK". If listener is up on the server and password is right and there are no connectivity issues going on, test will SUCCEED. --> next
    9) Here you will provide Net Service Name. You can give whatever you like to give here but usually giving instance name will help. AGain, I will give FCMAT. -->
    10) Click "NO" to configure another net service name. --> next
    11) click "Finish"
    The above steps will create a tnsnames.ora entry similar to this.
    FCMAT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.33)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = fcmat)
    Part3
    1) start your sqlplus utility
    2) provide username system
    3) provide password
    4) provide FCMAT in host string.
    and you should be able to connect via sqlplus and TOAD.
    If you are still getting the error, please provide us the exact error.
    --Moid M
    P.S. tnsnames.ora / listener.ora / sqlnet.ora can be found $ORACLE_HOME/network/admin directory.

  • Remote connection to  'OWM Database Control'

    Hi,
    on a WinXP PC I installed Oracle and created a new DB (10gR2) by DBCA. Is it possible to connect to its 'OWM Database Control' from another PC IE browser? Thank you.

    We are in Home edition SP2, I deactivated Firewall
    but I have this error when from another PC browsing
    to http://wxphdev2:5500/em/console/logon/ :
    HTTP/1.0 404
    Can your remote machines ping the machine wxphdev2 by name? If not you need to add wxphdev2 to the hosts file located in <drive letter>:\WINDOWS\system32\driver\etc .

  • Unable to connect to 10g database using Devloper 6i and SQLPLUS 8

    Dear all Developers,
    I have installed 10g with patch 10.2.0.3 and developer 6i, i am not able to access the database with Forms Devloper 6i, Report Devloper 6i and SQLPLUS 8 (installed by default with DS) when i try to initiate connection the sessions crashes. (DB character set AL32UTF8)
    Please note we already have ORACLE RAC 10g version 10.2.0.3 (DB character set AR8MSWIN1256) developer can connect to this db with no errors
    Please suggest how i can solve this problem
    Thanks
    Zeeshan Sheikh

    First of all you need to be on Patch set 18 of Oracle Forms 6i -- but I think you will still have problems with the character set you are using... but you'll need to search out details.

  • Connection to 10g database from 10g Developer SQLPLUS

    Hi,
    I have installed Oracle DB 10g Release 10.1.0.2.0 on Windows XP.
    START-&gt;ALL PROGS-&gt;oracle-OraDb10g_home3
    Location of TNSNAMES FILE:
    C:\oracle\product\10.1.0\db_3\NETWORK\ADMIN\TNSNAMES.ORA
    with two alias:
    1)ORCL3
    2) EXTPROC_CONNECTION_DATA
    I can logon to database via SQL*PLUS and I can log on to EM on the web as well using ORCL3.
    After that I installed Oracle Developer Suite 10g 9.0.4.0.1 to my the same computer.
    During installation it was not allowing me to install this suite to the same ORACLE home.
    I installed this in the following home:
    START-&gt;ALL PROGS-&gt;oracle Developer Suite-DEFAULT_HOME_1
    Location of TNSNAMES FILE:
    C:\oracle\product\10.1.0\db_1\NETWORK\ADMIN\TNSNAMES.ORA
    with two alias:
    1) EXTPROC_CONNECTION_DATA
    2) ORCL3
    Here is the problem whenever I try to logon to ORCL3 via SQL*PLUS 9.0.1.4.0( DEVELOPER SUIT):
    START-&gt;ALL PROGS-&gt;oracle Developer Suite-DEFAULT_HOME_1-&gt;Application Development-&gt; SQL Plus
    OR to
    START-&gt;ALL PROGS-&gt;oracle Developer Suite-DEFAULT_HOME_1-&gt;Designer-&gt; oracle Desiger
    I get following error:
    ORA-12154 TNS:Could not resolve Service name
    I used user
    Scott/*******@ORCL3
    and I tried this as well:
    Scott/*******@EXTPROC_CONNECTION_DATA
    I appreciate any help in this matter.
    Regards,
    Kasher

    Depending on the exact client and server versions, that could be a known issue.
    See Metalink Note:207303.1 - Client / Server / Interoperability Support Between Different Oracle Versions

  • Connection of oracle database in database server from application server

    Hi,
    I have two servers, one is application server and another one is database server…..
    I want to connect oracle 10g database in database server to application server. In application server oracle 10g client is installed……In database server, I have set tnsnames.ora, Listener.ora …while checking in lsnrctl…the particular sid is running fine…
    In application server, while I give as sqlplus
    After giving username and password its showing error as
    ORA-12545: Connect failed because target host or object does not exist
    While surfing in net it shows check tnsnames.ora and listener.ora….. I have set the environmental variables here in application server…..
    It’s connecting when I give
    Sqlplus
    Sql>username/password @ hostname: 1521/sid_name
    Is it possible to connect with the username and password
    I have set the host names in /etc/hosts….
    If we are giving the hostname, port number and Sid name this connects without using tnsnames.ora…..
    While pinging between two servers the connectivity is there between two servers…..
    Could u pls help me out?
    Thanks in advance

    hi,
    as u said i have done that ..s.till the same problem persists...
    lsnrctl>services
    $ lsnrctl
    LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production on 08-FEB-2007 03:56:23
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Welcome to LSNRCTL, type "help" for information.
    LSNRCTL> services
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    Services Summary...
    Service "RBTT" has 1 instance(s).
    Instance "RBTT", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    Service "RBTTXDB" has 1 instance(s).
    Instance "RBTT", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1022 state:ready
    DISPATCHER <machine: emea, pid: 197076>
    (ADDRESS=(PROTOCOL=tcp)(HOST=emea)(PORT=37484))
    Service "RBTT_XPT" has 1 instance(s).
    Instance "RBTT", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER

  • Sql 2005 Remote Connection

    I am having a problem connecting to a remote SQL server 2005 instance.  The remote server is for a website hosting account of mine.  I can connect to the server from computers other than the problem computer just fine.  I cannot connect to the server using any software including SQL Server Management Studio Express, Visual Web Developer, or even when trying to use aspnet_regsql.exe on the problem computer.  The request to connect to the remote server never seems to leave my computer.  When talking to my hosting service, they replied that they did not receive a request to connect to their server from me.  I have shut down Windows Firewall as well as my third-party firewall with no change.  The error message that I receive is:
    An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 53)
    If anyone has any ideas they would be appreciated.

    There are a couple of changes that need to be made to allow remote connections to the server... and these need to be made on the server. Have a look at this KB Atricle. Also one way to test is to create a simple ODBC Connection and see if you can get through. Also I see it stange that a hosting company is allowing remote connections to the database server, normally they only allow connections through some sort of web interface or one of there own client tools.

  • Reg : Connecting an XE database -

    Hi Experts,
    Suppose I install Oracle XE database in my machine. Then, will my other team members (from their machines) be able to connect it and use.
    Sorry, for not being able to phrase the question properly (much ignorance in this domain).
    Can anybody please give me some pointers to this?
    Please let me know if you need any further clarifications.
    note - We are on MS Windows 7 (X86) machines.
    Thanks,
    Ranit B.

    error on executing this - ... v_smtp_host VARCHAR2 (50) := '127.0.0.1'; ... UTL_SMTP.helo (v_conn, '127.0.0.1');So you're running a mailserver on localhost? Or not? That could explain the 'service not available' error.
    Try pointing smtp_host to ... a host that has a running smtp service.
    Back to the original problem ...
    I thought might be connecting to an XE database remotely is also not possible.Yes indeed it is possible.
    If your database is up, and listener running, and your firewall program is not blocking the listener port, remote database connections work just fine, if the client is correctly configured.
    Configuring a client means identifying the remote database host or IP address, listener port number, and database service name.
    From your XE host, you can test remote connections to your database, look at how the client is setup, usually in tnsnames.ora. Test it using a command box with:
    tnsping xe
    ... TNS Ping Utility ... parameter files:... <client %ORACLE_HOME%>\network\admin\sqlnet.ora
    Attempting to contact (DESCRIPTION=... host ... port ... service_name ...
    OK (<n> msec)
    # Or result can also be not OK, like:
    TNS-12535: TNS:operation timed out # maybe invalid hostname, or host is offline/down
    TNS-12541: TNS:no listener  # doh ... the listener is not running on that port at that host
    # to verify the correct service_name:
    sqlplus /nolog
    connect <username>@xe
    ... password ... Connected.
    # or not. maybe:
    ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect # doh client specified service_name is not correctKnow the remote database host, port, and service_name. Or the ORACLE_SID for the database instance could be used in place of service_name.
    And on the database host, remote connection attempts will not be blocked by the firewall, to check if the firewall is blocking connections, a remote connect test is needed.

  • SQLdeveloper can't connect to 10g Dbase

    Hi, Everyone.
    I have been trying to make a connection to 10g database using oracle sqldeveloper (versions 1.2 , 1.5.0, 1.5.3, 1.5.4 and 1.5.5) for the past two weeks but to no avail.
    I always get the following error when using any of the abovenamed versions:
    Status: Failure - Test Failed: oracle.i18n.text.converter.CharacterConverterOGS.getInstance(I)Loracle/sql/converter/CharacterConverters;
    My problem is exacly similar to [this unanswered thread|http://kr.forums.oracle.com/forums/thread.jspa?threadID=653738]
    However, I am able to successfully make connection to Access database. I have tried different tricks and made sure that the OS locale is English (US). I am also sure that I have been entering the connection details properly:
    That is; Connection Name, Username, Password are correct, the Role is 'default', Connection Type is 'basic', Port is '1521' and the SID is 'MyDB'. Whenever I press 'Test' I get the above error, and am so frustrated. Am using Windows Server 2003.
    Can someone point me in the right direction please!
    best,
    Meldo

    thanks John.
    I have posted it at the right forum
    best.

  • Installed 10g on W2K3 concurrently with 9i - cannot connect to 10g

    On a Windows 2003 server running Oracle 9i, I installed the Oracle 10g database. After the installation, I'm unable to connect to 10g database but can connect fine to the 9i instance. .
    At the SQL prompt, while trying to log as system/manager@STR05CI I get the following errors:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    If I connect as sysdba to start the database, I encounter the following errors:
    SQL>Connected to an idle instance
    SQL>startup
    ORA-00119: invalid specification for system parameter LOCAL_LISTENER
    ORA-00132: syntax error or unresolved network name 'LISTENER_STR05CI'
    Some of the things done:
    -Two ORACLE_HOMES installed
    -Two different ORACLE_SID (one for 9i -D5BSM - and one for 10g - STR05CI)
    -Shutdown the listener for 9i and running only the listener for 10g
    -modified slqnet. ora with SQLNET.AUTHENTICATION_SERVICES= (NONE)
    -All ports on 1521
    Pasted below is the status of the listener:
    C:\Documents and Settings\svc-ciams-dev>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.3.0 - Production on 11-APR-2008 16:20
    :59
    Copyright (c) 1991, 2006, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.3.0 - Produ
    ction
    Start Date 11-APR-2008 14:41:34
    Uptime 0 days 1 hr. 39 min. 26 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.o
    ra
    Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=USTO-DAPP-STR05.am.corp.amgen.com)(P
    ORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=USTO-DAPP-STR05.am.corp.amgen.com)(P
    ORT=8080))(Presentation=HTTP)(Session=RAW))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=USTO-DAPP-STR05.am.corp.amgen.com)(P
    ORT=2100))(Presentation=FTP)(Session=RAW))
    Services Summary...
    Service "D5BSM" has 1 instance(s).
    Instance "D5BSM", status READY, has 1 handler(s) for this service...
    Service "D5BSMXDB" has 1 instance(s).
    Instance "D5BSM", 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...
    Service "STR05CI.AM.CORP.AMGEN.COM" has 1 instance(s).
    Instance "STR05CI", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    Besides the things listed above, I've been unable to locate other instructions on how to install two different database versions on the same server.
    Also, how do I resolve the 'status UNKNOWN' for the STR05CI instance so that it becomes READY?
    Any help would be appreciated.
    Thanks!

    You have an entry LOCAL_LISTENER in your spfile, that's not necessary (at least for single - non RAC - instances) as long as listener is running on port 1521. If you specify this parameter, you have to add address resolution to tnsnames.ora .
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Basically that means database is not started, it also happens when tnsnames.ora entry points to an non-existing SID.
    'UNKNOWN' means there's a static entry for the instance in listener.ora, 'READY' is shown when there was a dynamic registration of the instance with the database. PMON background process does this automatically, when there's no entry in listener.ora and listener runs on port 1521.
    Werner

Maybe you are looking for