Connect to Oracle using DAC Client in command line

Hi,
I'm trying to connect to Oracle DB using DAC client. I have configured a connection and tested, it works. When I use the connection to connect to the DB, its giving me an error
"unknown error, please start in command line mode and see the stack error"
How do I start in command line mode? Could anyone provide more information on this.
Thanks in advance,
RK

In oracle db, you can create 3 different types of users:
(1) create user x identified by pwd.
In this case the user x will connect to the db using username/password, in this example x/pwd
(2)create user ex identified externally;
In this case the user ex will connect to the db using "/" and the sqlnet.authentication_services parameter value in the client and server sqlnet.ora will be used in determining the oracle external authentication adapter to use. For oracle windows client/db server, this is by default set to NTS. NTS is the oracle windows authentication adapter.
(3)create user gx identified globally as 'CN=gx,O=Oracle';
In this case also the user gx will connect to the db using "/" and oracle ssl will be used to authenticate this user to the db.
It would not be possible to "Create user x identified externally" and connect with x/pwd.
Please clarify.
To help you in isolating the problem, I will need the following info:
(1)
what are you connecting as to execute your plsql. Are you using sqlplus ? How are you connecting (connect "/ as sysdba", connect "/", connect x/pwd) ?
(2)
what create user statement did you use to create the user
(3)
is odp.net and the db server on the same machine.
(4)
did you run your plsql from the same machine as the db server.
(5)
if odp.net is on a different machine than db server, did you try connecting from odp.net machine to db server, using sqlplus ?

Similar Messages

  • Connecting to Oracle using JDBC

    Hi all,
    I am a new to Oracle. I am trying to connect to Oracle using JDBC
    The URL with which I tried to connect was:
    jdbc:oracle:oci8:@myServiceName,user='myLogin',password='myPassword'
    I get an error (ORA-12154)
    - TNS could not resolve service name
    When I use the same userid, password and service and connect thru' SQL*Plus it goes thru'. Is there any parameter which I am missing. Can anyone throw some light on this. I am held up with this issue badly.
    Thanks for all your help and time.
    Regards,
    Latha

    Hi Latha,
    Please try to use thin and add port number.
    m_conn = DriverManager.getConnection("jdbc:oracle:thin:@" + hostURL + ":" + port + ":" + database, user, password);
    Hong
    null

  • Connect to oracle using jdba thin driver

    i want to use jdbc thin driver to connect to oracle 8i for linux intel.
    my code is:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    String dbURL = "jdbc:oracle:thin:@dbserver:1521:iasdb";
    Connection con = DriverManager.getConnection(dbURL,"scott","tiger");
    but an error is reported as "the network adapter can not establish connection".
    why?
    i can connect to oracle using JDBC-ODBC bridge successfully.

    i want to use jdbc thin driver to connect to oracle 8i for linux intel.
    my code is:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    String dbURL = "jdbc:oracle:thin:@dbserver:1521:iasdb";
    Connection con = DriverManager.getConnection(dbURL,"scott","tiger");
    but an error is reported as "the network adapter can not establish connection".
    why?
    i can connect to oracle using JDBC-ODBC bridge successfully.

  • Install OID client or command line tool

    Does anybody know if I can install a OID client or command line tool seperately? For example, I have a Infrastructure version on a remote server, and a J2EE EE version on my local machine and I want to manage it from my client. which package should I install?
    Thanks a lot.

    Thanks Robert for the reply.
    Tried out this method and able to install the firefox packaged application from ubuntu linux machine.
    '''install.js''' remotely install app from folder using the Webapp Actor and Debugger Client API(a client and a server instance must be created and a protocol connection must be established ).
    Is there any command line method for installaing application from inside the Firefox device shell(something like '''pm install ''' command for apk installation in Android -''''pm install /sdcard/com.twitter.android-1.apk'''').

  • Compare two pdf files using adobe acrobat through command line

    Does anyone know how to compare two pdf files using adobe acrobat through command line. I want to do this via command line because we want to compare hundreds of file every day through some automated windows tasks.
    If command line option is not available in acrobat, then is it feasible to make use of acrobat javascript API to do this task?
    Any kind of help will be greatly.

    Command-line: Not possible.
    JavaScript: Possible, but very limited. Basically the only thing you can do is simulate clicking the Compare Documents button. The rest has to be done manually.
    However, it *might* be possible to automate this process a bit more using a plugin. Ask over at the Acrobat SDK forum for more information...

  • Connecting Oracle using SQL Plus in command window through LDAP settings?

    Hi
    Just like to know if it is possible to connect Oracle using SQL Plus with connection type as LDAP.
    Generally we connect to Oracle in cmd window as
    username/password@DBServiceName
    Similarly is it possible to connect Oracle using SQL plus cmd window using LDAP configuration settings.
    Eg:-
    If my LDAP server is oid:123:456
    Context is: cn=OracleContext,dc=abcdefgh,dc=com
    DBService is: xyz
    Regards
    jc

    Specify the -L command line option to SQL*Plus, i.e.:
    sqlplus -L username/password@db @blah.sql
    (this will prevent the second prompt for username/password if the initial login is unsuccessful for any reason, like an invalid password).

  • Unable to create datawarehouse tables using DAC client

    Hi,
    We are facing error while creating data warehouse tables in DAC Client.
    Please find the below mentioned error message
    =====================================
    STD OUTPUT
    =====================================
    CREATING SIEBEL DATABASE OBJECTS
    F:\DAC\bifoundation\dac\UTILITIES\BIN\DDLIMP /I N /s N /u infdomain /p ******* /c DB_DAC /G "SSE_ROLE" /f F:\DAC\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl /b "" /K "" /X "" /W N
    Error while importing Siebel database schema.
    =====================================
    ERROR OUTPUT
    =====================================
    Siebel Enterprise Applications ODBC DDL Import Utility, Version 7.7 [18030] ENU
    Copyright (c) 2001 Siebel Systems, Inc. All rights reserved.
    This software is the property of Siebel Systems, Inc., 2207 Bridgepointe Parkway,
    San Mateo, CA 94404.
    User agrees that any use of this software is governed by: (1) the applicable
    user limitations and other terms and conditions of the license agreement which
    has been entered into with Siebel Systems or its authorized distributors; and
    (2) the proprietary and restricted rights notices included in this software.
    WARNING: THIS COMPUTER PROGRAM IS PROTECTED BY U.S. AND INTERNATIONAL LAW.
    UNAUTHORIZED REPRODUCTION, DISTRIBUTION OR USE OF THIS PROGRAM, OR ANY PORTION
    OF IT, MAY RESULT IN SEVERE CIVIL AND CRIMINAL PENALTIES, AND WILL BE
    PROSECUTED TO THE MAXIMUM EXTENT POSSIBLE UNDER THE LAW.
    If you have received this software in error, please notify Siebel Systems
    immediately at (650) 295-5000.
    F:\DAC\bifoundation\dac\UTILITIES\BIN\DDLIMP /I N /s N /u infdomain /p ***** /c DB_DAC /G SSE_ROLE /f F:\DAC\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl /b /K /X /W N
    Connecting to the database...
    Unable to connect to the database...
    I have established ODBC connection using Oracle client driver and able to connect with the oracle server.
    Oracle DB & client Version : 11.2.0.2- 64 bit
    DAC Version : 10.1.3.4.1
    Informatica version : 9.0.1
    OBIA : 7.9.6.3
    Can someone please help me to resolve this issue?
    Thanks,
    Prasanna

    The 64 bit odbc (odbcad.exe) which is in system32 folder contains oracle client 11g driver
    But in 32 bit odbc(odbcad.exe) which is in syswow64, I am not able to see the oracle client 11g driver.Instead Oracle Merant ODBC Driver in DAC 10g_Oracle OH888717393 is there
    When we try to establish connection with this driver, it is throwing following error
    Specified driver could not be loaded due to system error 193:
    *(Oracle Merant ODBC Driver in DAC 10g_Oracle OH888717393,*
    F:\DAC\bifoundation\dac\utilities\DataDirectODBC\seor820.dll).
    Can you please explain how to create dsn in 32 bit odbc also for oracle client?
    Thanks,
    Prasanna

  • User permission issue in connecting to Oracle using java in Cent OS

    Hi ,
    I am facing a peculiar issue and since I am new to Cent OS, I hope somebody can help me.
    I am using Cent OS 4.2 and I installed Oracle client 10.2 in cent os 4.2.
    I am having a java application which connects to Oracle server in another Linux system using Oracle OCI driver which comes along with Oracle client
    I have a user called user1 which belongs to group group1 as primary group and my application runs under this user user1.
    This user is a member of oinstall group (which is the group for oracle uesr which has access to oracle client directories/files)
    But when my application tries to connect to Oracle server, I am getting connectivity error saying "Oracle driver not found" or "cannot load libocijdbc10.so". All environment variables like ORACLE_HOME, PATH,CLASSPATH, LD_LIBRARY_PATH are set properly.
    The permissions to Oracle folder/files are rwx for owner(oracle user) , rx for group(oinstall) and none for others
    What we observed are
    1. When the application is start under root user, it works
    2. When we give rx permission to others, it works
    3. When we make oinstall group as the primary group for my user user1, it works
    My questions here
    1. Why it is not working even though my user user1 is a member of oinstall group
    2. Why it is working when I make oinstall as the primary group
    3. Is there any difference in security policy of RHEL and Cent OS
    4. How can I access libraries from multiple folders which created by different user and belongs to different groups, if this is the case
    I never faced this issue in RHEL4
    Hope some body can help me.
    Regards
    Sunil

    Sorry, I should have been more specific. The error message I was referring to shows up in a pop-up windows when I try to run the program. The actual java error message (that shows up in the command prompt window) is as follows:
    "Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\WINNT\system32\ocijdbc8.dll: The specified procedure could not be found
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397)
    at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    at java.lang.System.loadLibrary(System.java:832)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:192)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:142)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:214)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:193)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at lookup.main(lookup.java:16)"
    I'm running the program through Windows 200 Pro command prompt, and the version of java is, as I mentioned in the previous message, 1.4.1:
    java -version
    java version "1.4.1_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
    Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)

  • Unable to connect to Oracle using OCI Drivers on Linux

    Hi Everyone!
    I am facing a peculiar issue while using Instant Client on Linux ( 64Bit ) running on Red Hat 4.1.
    I have downloaded the instant client version 10.2.0.3(.zip) .so files from the below URL
    http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxx86_64soft.html
    UPloaded all the files to a directory under /opt and changed the .bash_profile file, the latest content looks like
    ORACLE_HOME=/opt/instantclient_10_2
    export ORACLE_HOME
    PATH=$PATH:$ORACLE_HOME
    export PATH
    TNS_ADMIN=/opt/instantclient_10_2
    export TNS_ADMIN
    LD_LIBRARY_PATH=/opt/instantclient_10_2
    export LD_LIBRARY_PATH
    PATH=$PATH:$LD_LIBRARY_PATH
    export PATH
    CLASSPATH=/opt/instantclient_10_2:/opt/instantclient_10_2/ojdbc.jar
    export CLASSPATH
    Java.library.path=/opt/instantclient_10_2
    export Java.library.path
    As i have downloaded the Sqlplus utility as well, i am able to connect to the Oracle FARM via sqlplus.
    On the other hand, i am unable to connect to the same database via the application. It constantly gives me the following exception,
    java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1030)
    at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:3138)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3134)
    at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:220)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:438)
    at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:131)
    at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:77)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:752)
    at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:296)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:220)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:164)
    at com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(DSManagedConnectionFactory.java:105)
    at com.sun.enterprise.resource.LocalTxConnectorAllocator.createResource(LocalTxConnectorAllocator.java:68)
    at com.sun.enterprise.resource.AbstractResourcePool.createSingleResource(AbstractResourcePool.java:891)
    at com.sun.enterprise.resource.AbstractResourcePool.createResourceAndAddToPool(AbstractResourcePool.java:1752)
    at com.sun.enterprise.resource.AbstractResourcePool.createResources(AbstractResourcePool.java:917)
    at com.sun.enterprise.resource.AbstractResourcePool.initPool(AbstractResourcePool.java:225)
    at com.sun.enterprise.resource.AbstractResourcePool.internalGetResource(AbstractResourcePool.java:516)
    at com.sun.enterprise.resource.AbstractResourcePool.getResource(AbstractResourcePool.java:443)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:248)
    at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:176)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:327)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:235)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:165)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:158)
    at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:108)
    at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:113)
    at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:922)
    at org.springframework.jdbc.core.JdbcTemplate.call(JdbcTemplate.java:984)
    at org.springframework.jdbc.object.StoredProcedure.execute(StoredProcedure.java:117)
    at com.gecf.uk.pca.dcs.util.SystemParametersDAO$SysParamsStoredProcedure.execute(SystemParametersDAO.java:150)
    at com.gecf.uk.pca.dcs.util.SystemParametersDAO.getSystemParametersList(SystemParametersDAO.java:67)
    at com.gecf.uk.pca.dcs.util.SystemParametersDAO.getSystemParametersMap(SystemParametersDAO.java:94)
    at com.gecf.uk.pca.dcs.util.SystemParameters.loadParameters(SystemParameters.java:44)
    at com.gecf.uk.pca.dcs.util.SystemParameters.<init>(SystemParameters.java:33)
    at com.gecf.uk.pca.dcs.util.SystemParameters.getInstance(SystemParameters.java:72)
    at org.apache.jsp.common.secure.mypayment_jsp._jspService(mypayment_jsp.java from :86)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
    at com.gecf.uk.pca.dcs.web.util.SessionFilter.doFilter(SessionFilter.java:97)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
    at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    |#]
    I have used the classes12.jar and ojdbc.jar which came with the download and nothing seems to work. A bit surprising when sqlplus works and not the application. I suspect there could be an issue with the driver class. I have been struggling to figure this out for days now...
    Can anyone please share their thoughts if something similar was observed earlier please.
    Any quick help will highly be appreciated.

    ORACLE_HOME=/opt/instantclient_10_2
    export ORACLE_HOMEYou don't set ORACLE_HOME with Instant Client.
    PATH=$PATH:$LD_LIBRARY_PATH
    export PATHThis is unnecessary.
    CLASSPATH=/opt/instantclient_10_2:/opt/instantclient_10_2/ojdbc.jar
    export CLASSPATHThis is wrong.
    It should be:
    CLASSPATH=/opt/instantclient_10_2/ojdbc14.jar:<whatever else you need there>
    Java.library.path=/opt/instantclient_10_2
    export Java.library.pathThis is useless; java.library.path is not an environment variable.
    java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.pathThe case is pretty clear. You want to use the OCI driver (your URL starts with "jdbc:oracle:oci:"), so the Java Virtual Machine is looking for libocijdbc10.so in the Java library path but cannot find it.
    What is also clear is that the program does not use the CLASSPATH environment variable you set, because then it would never have found the Oracle Driver.
    So it seems that your program is ignoring the environment you set (which would explain why it also ignores LD_LIBRARY_PATH which you set correctly).
    You must have the environment variables set and exported in the shell that starts the "java" executable.
    Also, check that there is no other ojdbc14.jar on this machine (use "find").
    To help you debug your problem, let me explain how Sun Java sets Java library path on Linux:
    - If you start java with "java -Djava.library.path=/some/dir:/other/dir ...", the Java library path is set to exactly that value.
    - If you do not specify -Djava.library.path, the Java library path is taken from the environment variable LD_LIBRARY_PATH.
    - Directories listed in /etc/ld.so.conf have no influence on the Java library path (which gave me quite a headache in the beginning).
    Do you really need the OCI Driver? If you can do with the Thin Driver (i.e., use an URL that starts with "jdbc:oracle:thin:") you don't need any shared libraries at all.
    Yours,
    Laurenz Albe

  • Problem connect to oracle using ORACE

    Hi,
    Has anybody been able to connect to Oracle 10g using the latest ORACE(Free PL/SQL code editor)? The application hangs when I click on connect. Do I have to install the Oracle Instant Client if I have Oracle 10g Enterprise Edition installed?
    Any sort of help would be greatly appreciated.

    Do I have to install the Oracle Instant Client if I have Oracle 10g Enterprise Edition installed?
    No, But make sure that ORACLE_HOME variable is set correctly.
    What is the name of the PL/SQL editor you want to use?
    You can try SQL Developer.It is free as well.

  • Cannot Connect to Oracle using SSIS

    I am working with a client that has the following: a Windows Server Standard 2003 with SQL Server Standard 2005 installed. Oracle 10g is installed on a Linux Red Hat server. All are 64-bit and have the most current service packs installed. We are trying to pull Oracle data to SQL Server using SSIS and/or the SQL Server Import/Export wizard. the 10g client tools are installed on the Windows/SQL Server box. We can connect from there to Oracle using both SQL *Plus and Aqua Data Studio. However, when I try to import data to SQL Server using with the .Net or OLEDB provider, I get the error stating that I have to install the Oracle client tools.
    Can anyone help with this? No one on the Microsoft side seems to have an answer.
    Many thanks!
    Jeanne

    I am also facing the same problem. I have read a related article on
    http://stevemchugh.blogspot.com/2007/02/adventures-of-ssis-and-oracle-in-64bit.html
    Although the problem solved in this article is not of exact nature as posted in this post but it still provide some thoughtful inside of SQL server 2006 64 bit and Oracle 10 g SSIS connectivity.
    If some succeeds in this please also help in figuring out my problem

  • Can not connect to Oracle using ASP, but i can connect  to VB6.0

    i have installed ODAC 11.2.0.2.1(latest version) and i m trying to connect to Oracle 11G server
    So no vb programs are worked so i have installed oracle 11g client and vb programs are all started to work,
    but when i try to connect it using asp. i m getting the following error.pls help me
    Error Type:
    OraOLEDB (0x80004005)
    ORA-12154: TNS:could not resolve the connect identifier specified
    conn.asp, line 12
    on line 12, i did this,
    Conn221.Open ConnString221
    but my original connection code is
    ConnString221 = "Provider=OraOLEDB.Oracle;Password=newbie;User ID=newchips;Data Source=HIS241;PersistSecurity Info=True;PLSQLRSet=1"
    Conn221.Open ConnString221
    but the same piece of code is working in my friend PC,she installed only 8i Client and this is working perfectly...

    Please Double check your database name...
    Regards,
    Raghu

  • Unable to connect to oracle using type4 driver

    hi
         I was trying to connect to oracle Database using type 4 thin drivers on win98.
         I downloaded the driver from oracle site and also downloaded some more drivers
         from other sites.While connecting to data base I ran into problems I am working
         for about two days on this thing but couldn't succeed.
         I get the following message:
              Connection refused ...........
         The driver is succefully loaded but when it tries to connect using
         conn = DriverManager.getConnection("jdbc:oracle:thin:@server:1521:orcl","userid","password");
         it gives the above message.
         now I think that I am giving the host name incorrect I couldn't find
         any way in oracle to figure out the host name.
         I am giving
                   "jdbc:oracle:thin:@127.0.0.1:1521:orcl"
              I have also tried other options for host name like localhost etc.but it
         didn't resolve.I think that the listener for oracle is not listening at the port 1521.
         I tried telnet to check that but it failed to connect at this port.I tried to do this
         with mysql to connect at port 3306 using telnet it succeeded.
              Second thing is that I tried to create a service name in oracle using TCP/IP protocol
         giving the above mentioned host names at all the attempts it gave the error that it has performed
         an illegal operation .
              I think that there are some settings needed for oracle to listen at this port which
         I dont know or I am giving the host name wrong . I shall be extremely thankful if u help
         me to solve this problem.
                                       Regards
                                                 shAhzad      

    It has been a long time since I tried to run Oracle on Win98 (or Win95) for that matter, but I don't believe that there is a listener in the traditional sense since you would be using Personal Oracle. Your first step should be to make sure you can login to Oracle using the standard client and SQLPLUS. You could then use TNSPING to see if the listener is listening (you will need to setup TNSNAMES.ORA properly but you can use the Net8 Assistant or whatever). Next I would suggest you try using the OCI client instead of the thin client.
    If you can, it would be much better to install Oracle on an NT, Win2K, or Linux machine. Oracle on Win98 is not really the same thing.

  • ASP connection to Oracle using MS ODBC Driver fails

    I have a Win2000 server with ORCL9.2 client and MDAC2.7 and the following code fails (last line gives the error):
    set dbConn = Server.CreateObject("ADODB.Connection")
    set rsSeq = server.CreateObject("ADODB.Recordset")
    sSql = "Select count(*) From bs_table"
    dbConn.Open "DSN=tp10;UID=aaa;PWD=aaa;"
    The error text is :
    Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    [Microsoft][ODBC driver for Oracle][Oracle]Error while trying to retrieve text for error ORA-01019
    This code works fine with Oracle 8i client on the server, I really appreciate if any one can help me out here.
    Thanks

    Can you try with the Oracle ODBC driver, rather than the Microsoft ODBC driver for Oracle? Microsoft's driver still uses the old Oracle 7 OCI calls, which are no longer supported on an Oracle 9.2 client.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • ORA-12154: TNS:could not resolve the connect identifier specified using TOAD client

    I try to using connect with remote database using TOAD client. My oracle version is 10.2g. I follow these instructions that specified on this link, instead of step 13, because i cant understand what they explain http://http://avangari.wordpress.com/remote-oracle-database-access-using-instant-client-and-toad/ . My Oracle TNS_ADMIN path is C:\oracle\product\10.2.0\db_1\network\ADMIN and ORACLE_HOME is C:\oracle\product\10.2.0\db_1. I found many question regarding this query, but i am not found my answer.

    948021 wrote:
    I try to using connect with remote database using TOAD client. My oracle version is 10.2g. I follow these instructions that specified on this link, instead of step 13, because i cant understand what they explain http://http://avangari.wordpress.com/remote-oracle-database-access-using-instant-client-and-toad/ . My Oracle TNS_ADMIN path is C:\oracle\product\10.2.0\db_1\network\ADMIN and ORACLE_HOME is C:\oracle\product\10.2.0\db_1. I found many question regarding this query, but i am not found my answer.
    see: http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/ (ora-12154 TNS:could not resolve the connect identifier specified)
    And for background info
    see: http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/  (Help! I can’t connect to my database  )
    see: http://edstevensdba.wordpress.com/2011/02/16/sqlnet_client_cfg/  ( Help! I can’t connect to my database (part duex) )

Maybe you are looking for