Unable to connect to database from windows command prompt

Hi All,
Im trying to connect to Oracle database from my windows command prompt, these are the steps I followed:
1) cd C:\oracle\product\11.2.0\client_1\sqlplus
2) sqlplus username\password@hostname:1521\service_name
I do get the error ORA-06401: NETCMN: invalid driver designator
I did try using the SQLPLUS \NOLOG
Connect username\password@hostname:1521\service_name
I still get the same error.
I did manually type all the commands to make sure no additional charaters coming and etc...How shall I overcome this...

user9103174 wrote:
Hi All,
Im trying to connect to Oracle database from my windows command prompt, these are the steps I followed:
1) cd C:\oracle\product\11.2.0\client_1\sqlplus
2) sqlplus username\password@hostname:1521\service_name
I do get the error ORA-06401: NETCMN: invalid driver designator
I did try using the SQLPLUS \NOLOG
Connect username\password@hostname:1521\service_name
I still get the same error.
I did manually type all the commands to make sure no additional charaters coming and etc...How shall I overcome this...do you desire/plan on using EZCONNECT or tnsnames.ora entry?
EZCONNECT sample is below
sqlplus user1/pass1@'dbserver:1521/orcl_sid'

Similar Messages

  • How to execute a scenario from Windows command prompt

    Hi,
    I have a package which is executing fine from Designer. But the same scenario if I am trying to execute from windows command prompt, then it is giving error.
    The package is getting a refresh variable, passing to interface which is creating a file from table, this file is then getting FTP'ed to another server.
    I am executing following command -
    startscen OB_TAB_TO_FILE_PKG 001 ODICTX "-v=2"
    The error is -
    A JDK is required to execute Web Services with OracleDI. You are currently using
    a JRE.
    OracleDI: Starting scenario OB_TAB_TO_FILE_PKG 001 in context ODICTX ...
    java.sql.SQLException: socket creation error
    at org.hsqldb.jdbc.jdbcUtil.sqlException(jdbcUtil.java:67)
    at org.hsqldb.jdbc.jdbcConnection.<init>(jdbcConnection.java:2451)
    at org.hsqldb.jdbcDriver.getConnection(jdbcDriver.java:188)
    at org.hsqldb.jdbcDriver.connect(jdbcDriver.java:166)
    at com.sunopsis.sql.SnpsConnection.u(SnpsConnection.java)
    at com.sunopsis.sql.SnpsConnection.c(SnpsConnection.java)
    at com.sunopsis.sql.i.run(i.java)
    DwgJv.main: Exit. Return code:-1
    Please let me know where I am going anything wrong.
    Thanks,
    Himanshu

    Hi,
    you need to make the necessary changes to the %odi%\bin\odiparams.bat config file, under the "Repository Connection Information" section so that startscen knows how to extract metadata from your repository.
    You apparently have left the default settings to the Hypersonic demo repository. Is that the technology your repository is hosted on?

  • Unable to connect to database from D2K

    Hi,
    GoodDay, This is Ramesh. I have loaded both Oracle 9i & D2K in my PC. But i am getting some error message while trying to connect to database from d2k forms. I entered Usename, Password. The message is..
    ORA-12203: TNS: Unable to connect to destination
    The second time i entered both Username, Password & Database.
    User Name: Scott
    Passwors : tiger
    Database: ORCL9i (SID name)
    please let me know where i am lacking..?
    Regards,
    Ramesh.

    Do you connect when you set username , passwd , database....????
    If you can via another tool , for example sql*plus then simply , copy the particular setting tns alias , you use to connect to this db, from [ORACLE_HOME]\network\admin\tnesanames.ora and paste it to [DEV2000_HOME]\network\admin\tnsnames.ora
    Greetings,
    Sim

  • Unable to connect to database from Unifier9.1 configurator

    After installing Unifier on Windows 2008 R2 64bit server , invoked Unifier Configurator while configuring database, i am unable to connect to oracle 11g database and connection test failed.
    I have ensure database, listner, telnet, ping are working fine from Unifier server to database server.
    Please let me know any pre-requisites required to make connection successful. I have invoked Configurator as Administrator as stated in installation doc.

    Hi Sachin,
    Thanks for the reply. I have created the user and granted connect,resource,create view roles as suggested in installation doc.
    do we need Oracle client software installed on Unifier system? i can say that i can telnet and ping the server on 1521 port.
    -Sreekanth

  • Unable to connect to database from forms or reports

    hi friends
    i installed oracle9i database and oracle 9i D2K in 2 different drives with different homes
    i am able to start database and the forms interface but i am unable to connect to the database from forms
    what might be the error please clarify it
    Bye
    Srikumar

    Thanks Farahd!
    <br><br>
    Interesting Info!
    <br><br>
    Raj<br><br>
    <b>www.oraclebrains.com<a>
    <br><font color="#FF0000" size="1">POWERED by the people, to the people and for the people WHERE ORACLE IS PASSION.</font></b>

  • Pass UTF character literal from Windows command prompt

    I'm trying to pass \u00fd (� - 0253) via the windows command line as a parameter to a java app. "DOS" is converting it to a superscripted 2. Any ideas on how to work around this? It works fine if I pass the parameter via a windows program.
    Thanks

    \00fd is "Latin Small Letter Y With Acute" according to my Unicode crib. But your DOS window doesn't use Unicode, it uses CP437 or CP850 depending on where in the world it thinks you live. (Both of them have the superscript-2 character at the FD code point.) I don't see the y-acute character anywhere in CP437, so if you're in North America (or maybe Britain too?) you can't do that. In CP850 the EC (decimal 236) code point is y-acute.
    However you aren't out of luck in either case. There is a DOS command "chcp". If you type "chcp" at the command line it tells you what your code page is. If you type "chcp 850" at the command line it will change your code page to CP850, if it can.
    (I am getting all this information from my MS-DOS 5.0 User's Guide and Reference, by the way. I may put it up for sale on eBay.)

  • Unable to connect to database from forms6i

    i have installed form61 and PO8i on my machine and was working perfectly till yesterday.
    but today i was able to log into the database but not through the forms.it give an ORA-12203unable to connect to the destination.
    Please help in this issue.
    I have installed a VC++ compiler today, will that be a problem for this issue...
    Thanks in advance
    VJ

    Since you had installed f6i and o8i in the same m/c so obviously with different homes. It had been earlier working fine with both forms and oracle. And now you can connect from oracle db, But not forms. So the main reason can be that the listener is not started. So check if it is running. If not start the listener and check. If it works fine, if not then check if the tnsnames.ora file is there at the correct location in forms home dirctory. if yes then see, if the network protocal, address and port addresses in listener.ora in oracle home and tnsnames.ora entries in forms home net8 are correct. If not make the correct entries.
    Check this, as there shall be a problem with it only as it was working earlier otherwise there can be an error in the network protocols. See if it helps

  • Unable to Connect to Database from Forms/Reports 6i

    I can't find anything wrong with my TNSNAMES.ORA file, yet I can't connect to my database through forms or reports.
    The errors I keep getting is TNS-12154 and TNS-12203. Please advise. Thanks in advance.
    E

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Mrs. Houser:
    I can't find anything wrong with my TNSNAMES.ORA file, yet I can't connect to my database through forms or reports.
    The errors I keep getting is TNS-12154 and TNS-12203. Please advise. Thanks in advance.
    E<HR></BLOCKQUOTE>
    Did you literally go into your tns file and put all of your specific envirnmental specifications?
    Is the listener up and running?
    Are you using the right alias?
    Hope this helps.
    null

  • Log ConsoleHandler + Windows Command Prompt

    Having really strange problem:
    Program started from Windows Command Prompt.
    Logging with ConsoleHandler.
    If select something with "Edit->Mark" in this Command Prompt, process stop responding.
    Has anybody seen such behavior?

    Correction:
    Looks like anything writing to stdout/stderr hangs in Windows Command Prompt "mark" mode.
    Could not find anything about how it works.

  • Server Error in '/' Application. [COMException (0x81020024): Unable to connect to database]

    Hi,
    My team and I are trying to resolve this issue. some of our users are having trouble uploading data into the database. this is the error that they are getting.
    I would really appreciate it if you could help me get ridd fo this issue.
    Server Error in '/' Application.
    Unable to connect to database. Check database connection information and make sure the database server is running.
    Description:
    An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details:
    System.Runtime.InteropServices.COMException: Unable to connect to database. Check database connection information and make sure the database server is running.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace
    below.
    Stack Trace:
    [COMException (0x81020024): Unable to connect to database.  Check database connection information and make sure the database server is running.]
       Microsoft.SharePoint.Library.SPRequestInternalClass.PreInitServer(String bstrAbsoluteRequestUrl, String bstrServerRelativeUrl, Int32 lZone, Guid gApplicationId, Guid gSiteId, Guid gDatabaseId,
    String bstrDatabaseServer, String bstrDatabaseName, String bstrDatabaseUsername, String bstrDatabasePassword, Boolean fHostHeaderIsSiteName) +0
       Microsoft.SharePoint.Library.SPRequest.PreInitServer(String bstrAbsoluteRequestUrl, String bstrServerRelativeUrl, Int32 lZone, Guid gApplicationId, Guid gSiteId, Guid gDatabaseId, String
    bstrDatabaseServer, String bstrDatabaseName, String bstrDatabaseUsername, String bstrDatabasePassword, Boolean fHostHeaderIsSiteName) +359
    [SPException: Unable to connect to database.  Check database connection information and make sure the database server is running.]
       Microsoft.SharePoint.Library.SPRequest.PreInitServer(String bstrAbsoluteRequestUrl, String bstrServerRelativeUrl, Int32 lZone, Guid gApplicationId, Guid gSiteId, Guid gDatabaseId, String
    bstrDatabaseServer, String bstrDatabaseName, String bstrDatabaseUsername, String bstrDatabasePassword, Boolean fHostHeaderIsSiteName) +479
       Microsoft.SharePoint.SPSite.PreinitializeServer(SPRequest request) +666
       Microsoft.SharePoint.SPWeb.InitializeSPRequest() +548
       Microsoft.SharePoint.SPWeb.EnsureSPRequest() +75
       Microsoft.SharePoint.SPWeb.get_Request() +74
       Microsoft.SharePoint.WebControls.SPControl.SPWebEnsureSPControl(HttpContext context) +613
       Microsoft.SharePoint.WebControls.SPControl.GetContextWeb(HttpContext context) +41
       Microsoft.SharePoint.SPContext.get_Current() +123
       CKS.EBE.BlogContext.get_BlogEnabledSite() +37
       CKS.EBE.BlogHttpModule._app_PostAuthorizeRequest(Object sender, EventArgs e) +113
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171
    the description of the error on the server is as follows:
    The description for Event ID ( 27745 ) in Source ( Windows SharePoint Services 3 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use
    the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: #50071: Unable to connect to the database MOSS_Content_RBI on BartDB\Bart.  Check the database connection information
    and make sure that the database server is running..

    are you using the Aliases for the SQL Server, make sure your account having the correct permission.
    If it is your QA farm, you can run the config wizard to fix his problem...
    check this post having the similar issue.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/478d6b3a-a51e-48c5-832b-5afb51c69734/unable-to-connect-to-the-sql-content-database-from-sharepoint-web-front-server?forum=sharepointadminlegacy
    http://hammad1.wordpress.com/2008/06/04/unable-to-connect-to-database-in-event-logs/
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Unable to connect to database server : MDM 7.1

    Hello All,
    I installed MDM 7.1 and I am unable to create/mount/unarchieve repository : Error message I am getting is :
    Unable to connect to Database
    I installed MSDE : Light version of SQL server... On command prompt I used: setup.exe sapwd=abcd SECURITYMODE=SQL
    Its an mixed mode..
    Dont know MSDE is okey to use for MDM 7.1? Any one faced such issue?
    Thanks in advance
    Rajeev

    Hi,
    Did you install Oracle client on MDM server.  If not please install it and revert with the result..
    Please check SAP Note 1350635 - "Problem connecting to database from MDM console" & Note 1363797 -" Oracle connection problem".. Kindly also check the log in MDM console and revert with the result.
    Also, Please check Configurations Settings as mention in [MDM installation Document|https://websmp209.sap-ag.de/~sapidb/011000358700001668492008E] from Page no 42 to 45.
    Check it and revert with your findings.
    Regards,
    Shiv

  • Upgrade SBO-COMMOM SQL -  unable to connect to database

    Dear Experts,
    I'm trying to upgarde from SAP 2007 A PL-42  to  PL-49.
    I have currently got SQL2000 (for legend system) running under the instance name SERVER and i have installed SQL2005 (SAP uses this) with the instance name SERVER\SQL2005, both running on the same machine called SERVER.
    When i try to upgrade the SBO-COMMON database, it installs the DI and reaches a point where it asks for:-
    Database Server:-              (I input SERVER\SQL2005)
    Database Name:-              (SBO-COMMON)
    User Name:-                     (sa)
    Password:-                      (password)
    When i click the NEXT button, i get the error "unable to connect to database; verify that database TCP/IP port serice is started."
    I have verified that the TCP/IP ie enabled,and running on port 1433.
    Addidtional Information:
    During installation, it tries to access c:\windows\system32\sqljdbc_auth.dll file, when i click the NEXT button, just before i get the TCP/IP error.
    Would highly appreciate the help.
    Regards,
    Asif

    Dear Asif,
    You may check these threads first:
    Re: Unable to connect after migrating from SQL Server 2000 to SQL Server 2005
    Re: Installing SBO 2007 Error Unable to connect to database
    Thanks,
    Gordon

  • Run Scripts from windows command line

    Hi, We're creating a test enviroment and we need to "rebuild" our Database (Tablespace) from scratch everytime we run a test.
    What we need is to run all scripts files from windows command line, there is any command or application we can use here?
    thanks.
    Fernando.

    Create a scripts.bat file with something like this in it:
    @sqlplus -S username/password@connect @scriptname.sql

  • Unable to connect with Database server in MDM

    Hi Experts,
    I have installed the MDM server 7.1 on windows 64 bit box, but installed MDM console (32 bit).
    Getting the issue like below
    Can anybody please help me out to fix the issue.
    Thanks in advance,
    Bhaskar N

    dear
    Did you install Oracle client on MDM server.  If not please install it and revert with the result..
    Please check SAP Note 1350635 - "Problem connecting to database from MDM console" & Note 1363797 -" Oracle connection problem".. Kindly also check the log in MDM console and revert with the result.
    Also, Please check Configurations Settings as mention in [MDM installation Document|https://websmp209.sap-ag.de/~sapidb/011000358700001668492008E] from Page no 42 to 45.
    do the following
    You need to create tnsnames.ora file even on the host where MDM is installed and define Oracle database host and instance there. Then, MDM user needs to have access to oracle client libraries and needs to have access to this tnsnames.ora file as well. Once you set this up, it will work fine.

  • Unable to Connect to Database (after server has been re-started)

    Hi,<BR><BR>I use Essbase Admin Services 7.1.3 and the server was not responding, therefore our IT guys re-started it. Since then I am unable to connect to one of the applications. I have tried to start/Stop the application but it just says "Application did not start". <BR><BR>There are 6 databases in this application altogether (3 data and 2 Currency). The application has been there for about 3 years (it holds historic sales data) and there has never been any problems with it.<BR><BR>When I tried to Start the application, in the message panel at the bottom it says "Error: 1013015 Unable to Connect to Database (2003)". It's as if there is a problem with this 2003 database but the 2002 and 2004 database are OK.<BR><BR>Has anyone ever had this problem and knows how to rectify it??<BR><BR>Thanks in advance.<BR><BR>Sarah

    It may be that the server restart corrupted the database. Go into database properties and uncheck the box start database with application and then try to restart the application.<BR><BR>You can try database validation, or simply reload the database from backup. But you can get the application up and the rest of the databases up by decoupling the database restart from the application start.<BR><BR>There will be a .xcp log file in your application directory (and possibly your database directory.) These might help Hyperion Support in identifying the cause of the problem. But the quickest solution would be to reload the database from backup. The serer and application logs can also provide help in identifying the problem.<BR><BR>One of the keys is to determine why the server is not responding before restarting the server. It may be that a single application is the source of problem. Typical causes are unscheduled free space restructures, application loads of large databases, and an occasional rogue process. Rather than rebooting the entire box, or even restarting the Essbase server, the safest approach is to only kill the job that is soaking up the cpu cycles, causing the server to be unresponsive. This requires identifying the offending process (esssvr.exe) and killingit. Often that restores the rest of the system to operations, giving you time to focus onthe offending application.<BR><BR>You learn thses things when you are pushing the server to its limits (or beyond). If it happens often, you need to do a serious performance audit of teh server and determine whether you need more power and/or memory. <BR><BR>And in any case, you are less likely to encounter this sort of problem in the future if you try to limit applications to a single database. This will allow a better utilization of system resources. And also, it's a good idea to shut down applications that you are not going to be using for a while. Every loaded app takes system resources whether or not it is doing anything. So review your list of apps that start on startup and consider unloading apps after completing batch processing. <BR><BR>Sorry about the long lecture, but I speak from somewhat painful experience. I hope that this will help you.

Maybe you are looking for

  • Navigation problem in JSF portlet when using ADF

    Hi All, I am implementing a simple scenario wherein i have an ADF Business Component (a simple drop down) and a command button. On click of the button, there is a navigation from one jsp to another. I am able to portletize a simple application using

  • To retrieve the Maximum Date from the record

    Hi All, I am using the bleow query to retrieve the max date from the record list: select w.wr_no,w.customer_id,w.place_id, w.entry_Date, max(app.appointment_date) as appointment_date from work_request w , wr_appointment app where w.wr_no=app.wr_no an

  • Inconsistent datatypes problem (ORA-00932)

    Hi all, Given the following two tables , located in two different schemas : CREATE TABLE schema1.national_desc (     ENT CHAR(18 CHAR),      COD_MAJ CHAR(1 CHAR),      SID_DESC_COD_ADD NUMBER(8,0),      ID_LANG CHAR(2 CHAR) DEFAULT 'FR',      SID_COD

  • Serial ports in 64-bit Linux

    I am having problems with this and have posted here: java comm api in 64-bit Linux (second page... look for a post about the same time as this one) Does anyone have a reliable howto for 64 bit Linux ? Needless to say... annoyance that this is not in

  • Allowing user to see a newly created table

    Hi , I have created a new table tbl1 in tblspace1 and grant select , delete , insert to user1 how can i allow the user1 to see the new table tbl1 ? kindly advise tks & rdgs