problem connecting to the oracle database.

A user cannot connect to the Oracle server. What will be the problem and the solution to the problem?

When you post here you must give us: error codes, logs, DB versions, SO it's 32-bit is 64-bit?

Give us more details about your problem and maybe I can help you.

Tags: Database

Similar Questions

  • Connect to the Oracle database fails when you use Microsoft ODBC or OLE DB Driver

    There was a problem when you apply the KB3126587 hotfix where connections to an Oracle database using the Microsoft ODBC driver fails if run from automated processes. Running the same process manually would succeed. The update issued KB3147071 solved the problem successfully.

    Yesterday, several patched have been applied and the problem came back. The patches are: KB2862152, KB2868626, KB3163244, KB3168965, KB3170455, KB3163251.

    I saw yet no acknowledgement or difficulty of Microsoft. I prefer not to uninstall security patches, but it is a problem of production.

    Any ideas what specific patch maybe breaking it again?

    Thank you

    Josh

    Server: Windows 2008 R2

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • Connect to the Oracle database on a guest VM - problem

    Hi all

    I was faced with a problem with my Oracle VM. Let me explain:

    I have a virtual machine running CentOS 6 with Oracle Database 11 g 11.2.0 installed. I want to do is use SQL Developer, Toad, SQL * PLUS the host machine that is running Windows 7 64 bit.
    The virtual machine uses a host-only adapter network connection and a bridged adapter (for when I need to use internet in the box).
    Here's the question, I can ping the virtual machine to the host without problem and also I can ping the host of the virtual machine. But I can't do tnsping between the host and the VM.

    Listening port is configured as a default (port 1521) and the tnsnames.ora in hospitality is OK, but when I tnsping it I get messages from downtime.

    Is this something related to the network between the host and the VM? Can someone seated?
    Please let me know if you need more information on.

    Thanks in advance.

    Jaumzors wrote:
    Hi all

    I was faced with a problem with my Oracle VM. Let me explain:

    I have a virtual machine running CentOS 6 with Oracle Database 11 g 11.2.0 installed. I want to do is use SQL Developer, Toad, SQL * PLUS the host machine that is running Windows 7 64 bit.
    The virtual machine uses a host-only adapter network connection and a bridged adapter (for when I need to use internet in the box).
    Here's the question, I can ping the virtual machine to the host without problem and also I can ping the host of the virtual machine. But I can't do tnsping between the host and the VM.

    Listening port is configured as a default (port 1521) and the tnsnames.ora in hospitality is OK, but when I tnsping it I get messages from downtime.

    Is this something related to the network between the host and the VM? Can someone seated?
    Please let me know if you need more information on.

    Thanks in advance.

    http://www.Cyberciti.biz/FAQ/turn-on-turn-off-firewall-in-Linux/

  • Connect to the Oracle database - does not connect

    I am new to JAVA and for the first time that I am trying to connect to an Oracle using JAVA data. Well, I get an error when you try to connect to the database. I can see that the error doesn't that make strings passed to make the databases of connection are NULL. Thus, an error (see error below).

    Question
    How is the 'connection' varriable is NULL?
    It seems that the hold 'try' session was not executed. This session is broken?

    ERROR

    The database connection is not found: null
    Database connection before call: null
    Exception in thread "main" java.lang.NullPointerException
    at TestOCIApp.main (TestOCIApp.java:39)


    = JAVA START program =.

    import java.sql. *;
    import java.sql.Connection;
    to import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;

    public class TestOCIApp {}

    Public Shared Sub main (string args []) throws ClassNotFoundException,
    SQLException {}

    Fitting out = null;
    try {}
    Load the JDBC driver
    String driverName = "oracle.jdbc.driver.OracleDriver";
    Class.forName (driverName);

    Create a connection to the CCM PROD database
    String serverName = "192.168.2.144";
    String portNumber = "1521;
    String sid = "op01ccdb01";
    String url = "JDBC: thin: @" + serverName + ":" + portNumber + ":" + sid;
    String username = 'user id ';
    String password = "password";
    connection = DriverManager.getConnection (url, username, password);
    System.out.println ("connection value:" + connection);

    } catch (ClassNotFoundException e) {}
    The database driver is not found
    System.out.println ("could not find the connection to database:" + connection);
    } catch (SQLException e) {}
    Could not connect to the database
    System.out.println ("could not connect to the database connection:" + connection);
    }

    System.out.println ("connection to the base before the call:" + connection);
    Statement stmt = connection.createStatement ();
    ResultSet rset = stmt.executeQuery ("select" driver Tester Hello OIC ' |) THE USER: '! ("' result from double ');
    While (rset.next ())
    System.out.println (RSet.GetString (1));
    RSet.Close ();
    stmt. Close();
    Connection.Close;
    }
    }


    = END of JAVA program =.

    The try section runs very well but only partially because you get the exception "ClassNotFoundException", which means that it is impossible to load the Oracle driver class (so it does not reach the line where it says):

    Class.forName(driverName);
    

    You intercept this exception and then simply print a line "could not find the database connection: null". Then you let the code continue, obviously without you still initialize your variables.

    I would recommend rewriting those catch blocks throw new RuntimeException so that the code will not continue any further when an error is detected in the try or don't catch not all of them if you donot want to manage them appropriately.

    As for your problem, you probably have not added the ojdbc14.jar is to your project, and this is why it cannot find the class OracleDriver.

    Finally, try adding {noformat}

    {noformat} around your code when you post code.  It makes it a lot more readable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    
  • Create the connection to the Oracle database

    How do I create oracle database connection using flex.

    Please mention all necessary codewise and sage (for flex as well as Oracle9i) configuration

    Thanks in advance.

    VjFlex,

    looking at your line of code

    url="DataConn.php?lal='sds'"
    

    I would not have thought you need them ' brands around sds. Unless your php code is something dindane special to manipulate, you would put normally just lal = sds and everything would be fine.

    You also say "Please pass the asp.net code, you did to do the same thing. Of course, I can't at the moment past on the actual code but the principles are the following (I use c# in ASP.NET as language server-side in this case and SQL server in the database and did not show the string for connection etc - you already know how to do as your database)

    sql_call = "select top 10 t1.a, t2.b, t2.c from t1, t2 where t1.id=t2.id order by a";sql_server_command = new SqlCommand(sql_call, sql_server_connection);sql_server_command.CommandType = CommandType.Text;sql_server_data_adapter = new SqlDataAdapter(sql_server_command);dataset = new DataSet();sql_server_data_adapter.Fill(dataset);datatable = dataset.Tables[0];call_encoded = "";for (int i = 0; i < datatable.Rows.Count; i++)  {    data_record = "" +      "" + datatable.Rows[i][0].ToString() + "" +      "" + datatable.Rows[i][1].ToString() + "" +      "" + datatable.Rows[i][2].ToString() + "" +      "";    call_encoded += data_record;  } // for icall_encoded += "";return call_encoded;
    

    Hope that helps. You can see that the returned table is converted into XML so that once back in Flex, it can be easily managed.

    Richard

  • Connect to the Oracle database

    Is there a 'good' documentation out there show me what I need to do, step by step would be well configure CF to work with an Oracle DB?

    I've never worked with before Oracle so I'm not familiar with all of their ODBC drivers or how to set them up.  You would think that there is a kind of tutorial out there somewhere to do!  Frustrated... > :(

    Hello

    ColdFusion Standard is not Oracle driver, you must use Oracle thin driver that supports the version of Oracle that you run in your environment.

    1. download the thin driver and copy it to \ColdFusion9\lib.

    2. restart ColdFusion service so that it will load the driver class.

    3. connect to CF Admin > Datasources > adds a new DB > select other drop down.

    4 URL = jdbc:oracle:thin:@//{HostName}:/SID = "{SID_NAME}.

    5 class driver: oracle.jdbc.driver.OracleDriver

    I hope this helps.

    Thank you

    Priyank

  • problem connecting to the Oracle 11 g Server

    Hi all

    I just encountered an error to connect to a server Oracle 11 g on linux environment.

    This is the login screen where it connects to an idle instance.

    $ (oracle): sqlplus / as sysdba

    SQL * more: Production of the version 11.2.0.3.0 on Mon 6 Oct 20:05:41 2014

    Copyright (c) 1982, 2011, Oracle.  All rights reserved.

    Connected

    20:05:51 idle >

    The error log says

    ORA-00604: an error has occurred at the SQL level 1 recursive

    ORA-04031: unable to allocate 32 bytes of shared memory (' shared pool ',' select f.file #, f.block #, f... ") ', 'SQLA","tmp ".

    any solution would be much appreciated...

    Thanks in advance...

    starting strength;

  • connection / disconnection of the oracle database

    Hello
    I looked upwards and downwards in the documentation of oracle for a good reason why we should not connect to the oracle database, delivery time of 4 or 5 Oracle sql disconnect, reconnect 4-5 sql statements and disconnect again(using sqlplus).
    What I currently have is an application that has this kind of behavior that would be as connect/disconnect to the database over 300 times in 25 minutes.
    I know that this is not scalable, but would like to show the programmer in the oracle documentation that is not a recommended bestpractes.
    Any help will be appreciated.

    What you can explain the developer that is whathappens when a connection is given and terminated, the concept of the PGA and server allocation and dealloction process. You can include more use of server resources when all that happens. Once this part is well to him, you can tell him that hisapplication this constant opening and closing of session, it don't let not the server works optimally as morethan optimize work of its apps, server would be busy giving him the connection later by removing its connetion.

    Just take a look at the documentation and found this guide, PT
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14211/design.htm#CJHFIHFC

    >
    Factors that may prevent a linear scaling include:

    Configuration, implementation and poor application design

    The application has the greatest impact on scalability. For example:

    The poor schema design can cause expensive SQL that do not evolve.

    Poor transaction design can cause problems of locking and serialization.

    Bad connection management can cause periods of poor response and reliable systems
    >

    Would that help?
    HTH
    Aman...

    Published by: Aman... April 26, 2009 15:29
    Adding link guide PT

  • OBIEE to connect to the configuration database

    Hi, I have configured OBIEE and the only problem I have connects to an Oracle 10g database version, where the data is located. I can open the BI Server repository using the client administration tool and when I choose a database object and choose Show data... in the Properties menu for the connection pool object, it does not connect. I have triple checked that the tnsnames.ora on the UNIX file is correct. Do I need to configure a file to point to the tnsnames.ora file? I guess that's my problem.

    I installed on a Unix Solaris OBIEE platform. This is the error I get when you try to run a query in the responses:
    Error codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 17001] Oracle error code: 12170, message: ORA-12170: TNS: Connect timeout occurred at the call of the OIC OCIServerAttach. [nQSError: 17014] Cannot connect to the Oracle database. (HY000)

    Any help would be greatly appreciated.

    Thanks in advance!

    Mike

    You need to set the environment variables for the BI Server 3 find your Oracle client correctly in a Linux/Unix server. Here are the ones I use, you will need to change accordingly to your environment:

    export ORACLE_HOME=/opt/app/oracle/product/10.2.0.3
    Export TNS_ADMIN = / var/opt/oracle
    export LD_LIBRARY_PATH = $ORACLE_HOME/lib32: $LD_LIBRARY_PATH

    The TNS_ADMIN variable should point to where you have your tnsnames.ora, ldap.ora etc. These could be in the ./network/admin folder or as in our case in a specific folder the DBAs have installation to keep them separate in the client's file. Now, you need to know where to put these variables. OBIEE installation guide suggests using the script./OracleBI/setup/user.sh to do this, we prefer to put this on a special environment file which is executed when the user who runs the OBIEE connections. We would like to keep separate files OBIEE, so we know that it will not be lost if we upgrade to a new version or remove installation and install again.

  • Unable to connect to the Oracle 10g transparent VBA code

    Dear all,

    I am unable to connect to the oracle database, use the code for the same below.
    And the name of the server is PRDCCB, my TNSNAMES file. ORA file is placed correctly, and defined environment variable path.
    Fanny created in VBA ADO objects.
    But am not able to connect error is always the driver's SQLSETConnectAttr failed

    Help, please



    Void Ora_Connection()

    Con Dim As ADODB. Connection
    Dim rs As ADODB. Recordset
    Dim query As String
    The con value = New ADODB. Connection
    Set rs = New ADODB. Recordset


    ' - Replace below highlighted the names with the corresponding values

    con. Open ("Driver = {Microsoft ODBC for Oracle};" & _)
    "CCBPRD = DESCRIPTION =" & _
    "(ADDRESS =(PROTOCOL=TCP)"& _
    "(HÔTE = 10.1.3.50) (PORT = 1521))" & _
    "(CONNECT_DATA = (SID = CCBPRD))); UID = Prasad; pwd = prasad23; »)

    ' - Open the above connection string.


    ' - Now connection is open and you can use queries to execute.
    ' - It will be open until you close the connection
    End Sub

    Replace pls

    con.Open ("Driver={Microsoft ODBC for Oracle}; " & _
    "CCBPRD=DESCRIPTION=" & _
    "(ADDRESS=(PROTOCOL=TCP)" & _
    "(HOST= 10.1.3.50)(PORT=1521))" & _
    "(CONNECT_DATA=(SID=CCBPRD))); uid=Prasad; pwd=prasad23;")
    

    with

    con.open ("Provider=MSDAORA;Data Source=CCBPRD;User ID=Prasad; Password=Prasad23;";)
    


    Rgds,

    Ahmer


    N.B.: To win a good reputation on the forums, and if you want that your question will be answered in due time. Kindly adopt a used to score your closed questions as soon as you give the answer. and be courteous to people who tries to help.

  • How do I get the name of the web page in v$ session table in the Oracle database

    We have asp.net web application hosted on IIS (windows) and the connection to the Oracle (10g) database.


    When I query the table v$ session in the database as a Jr.DBA, I don't see the name of the program as "w3wp.exe.
    coming from the computer host IIS (web server).

    Now, it is difficult to diagnose as session in the database that refers to what web page in the web application.

    If I have 10 web pages open in my web application connecting to the Oracle database, now if I wanted to go
    session info, when I browse the v$ session all it shows me what "w3wp.exe.

    Now is there a way to get the name of the web page in the session of $ v.

    (maybe he needs a few changes to the code in the application web asp.net, change in the configuration of IIS web server as well).

    Let me know

    Dear johnpau2013,

    It's an interesting question. See the documentation below and see if they help you or not?

    DBMS_APPLICATION_INFO;

    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_appinf.htm#CHEEFBBD
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_appinf.htm#i999290
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_appinf.htm#ARPLS003

    Hope that helps.

    Ogan

  • Invalid connection for the Oracle 10 g Server

    Hello

    I installed Oracle 10 g server on my pc.

    I checked the Option to use the same user name and password for all accounts and used the password as an administrator

    But when I try to connect as sysdba or sysopera with admin as password it's displaying as connection not valid.

    Please tell me how I can connect to the Oracle database

    User for login names are SYS or SYSTEM. Try to connect as administrator system or admin/sys as sysdba.

    Which tool you use to connect? dbconsole, sqlplus? You should be able to connect with the authentication of the OS "/ as sysdba".

    Published by: Robert Geier on October 13, 2009 14:27

  • problem to connect to the VM database

    Hello

    I have a host of windows 7 with vmware 8 and a comment running oracle linux version 6 Update 2 for system
    x86_64 (64-bit). I installed 11 GR 2 database on this subject. The installation went even though it is OK and the database is in place and
    connect very well within the system of comments. The problem is that it does not connect to any part of the outside
    the comments system. An attempt to connect results in TNS-12535: TNS:operation has expired. Even the results of tnsping
    in the same error.

    It's results of tnsping from a customer who is not the host or guest. This client can ping the ip
    192.168.1.62.

    C:\ > tnsping test

    AMT Ping Utility for 32-bit Windows: Release 8.1.7.0.0 - Production on 20 June 20
    12 19:03:45

    (c) Copyright 1997 Oracle Corporation. All rights reserved.

    Try to contact (ADDRESS = (PROTOCOL = TCP)(HOST=192.168.1.62) (PORT = 1521))
    TNS-12535: TNS:operation expired


    The guest system can ping the computers inside the network, and other systems can ping the guest and the host
    systems without any problem. The listener and the database are all the comments system.

    The entire communication is inside the firewall, the local network, so the firewall isn't a problem here.
    The only solution I've seen on the internet is to remove the /etc/resolv.conf file (does not work) or use
    NAT networking for the virtual machine. We use networks bridged with static IP for machinery of the host and the guest
    and it seems that others have used the bridged network also.

    Is there an obligation to use NAT to make this work? Is there a setting that makes the connection to the guest
    database system possible?

    Thank you to everyone who is trying to solve this problem.

    Take a look at EdStevens and other answers on this similar topic
    >
    You probably did not open port 1521 of the firewall (iptables) of linux comments box.
    >
    Re: Connectivity between Local OS(windows 7) and Vm OS(Enterprise Linux)

    Or this link
    http://AWADs.NET/WP/2012/02/21/how-to-connect-to-Oracle-database-on-a-guest-VM-from-the-host/

    If you are looking for 'oracle 11g vm tnsping', you will find a lot of visits.

  • Connection to the remote database using Oracle 11 g Builder

    Hi all

    This could me stupid question, but I have installed Oracle Forms and reports 11g on Win 7 machine. I copied the file "tnsnames.ora' on the record ' ORACLE_HOME/Network/Admin". We use Oracle EBS R12 and I want to create a new report using 11 g.

    Using the report wizard after providing a simple query, we need to connect to the database. And even after the entry of TNS, I am getting error connecting to the database, following
    "REP-0501: the specified database can be connected.
    "ORA-12154: TNS: could not resolve the connect identifier specified.

    I am able to connect to the same database using the Report Builder (10.1.2.0). Is there another place where I need to set the TNS entry? How can I solve this error? Please guide...

    Kind regards
    Priyanka

    Hello

    In forms and reports 11g, default defined in tnsnames.ora is: ORACLE_INSTANCE\config.
    Please note that the ORACLE_INSTANCE is not the same as ORACLE_HOME.
    Example:
    ORACLE_HOME = D:\Oracle\Middleware\as_1
    ORACLE_INSTANCE = D:\Oracle\Middleware\instances\asinst_1

    If you set the admin TNS_ADMIN variable in the registry, you can point to a new location for tnsnames.ora

    Kind regards
    Alex

    If someone useful or appropriate please mark accordingly.

  • Target of hyperlink connects since the Outlook file in the Oracle database mail

    Greetings.
    Lack of permissions, I can't create text file on the UNIX server.
    This will not be changed.
    I saved the file in the Oracle 11 g database.

    I want to send e-mail to PL/SQL with attached file.
    No UNIX don't scripts at all.

    It's a big file.
    Thought has crossed my mind.

    Can I send e-mail to PL/SQL with a hyperlink that connects to the file that is stored in the Oracle database?
    The target of the link is a file stored in the Oracle database.

    Did anyone done this before?

    Let me know your ideas.

    Thank you.

    Freq Oracle wrote:

    I want to send e-mail to PL/SQL with attached file.
    No UNIX don't scripts at all.

    Can be done using UTL_SMTP or more recent UTL_MAIL.

    Attachments to emails are just that - the content of the file is attached to the body of the mail. Mail arrives at its destination, the mail reader recognizes the attachment and allows it to be saved to disk (or open/read).

    It's standard stuff... See MIME for more details on how to build a body of message with attachments.

    Can I send e-mail to PL/SQL with a hyperlink that connects to the file that is stored in the Oracle database?
    The target of the link is a file stored in the Oracle database.

    Yes. You need a web server that has been configured with Oracle "+ access +"-the default is using the Apache Oracle server which includes a module called mod_plsql. This module allows the web browser to use a URL that refers to a procedure from PL/SQL web enabled in a specific database schema - and pass parameters (as part of the URL query string) to the proceedings.

    You can also use Oracle EPG (Extended procedure gateway according to me, is what does the acronym). This provides a web server directly within the Oracle instance using Oracle XDB (integrated database of XML). It also has a module of type mod_plsql which provides that a web interface (via http) enabled PL/SQL procedures.

    This procedure can be a procedure "+ document download. Oracle provides a system procedure called WPG_DOCLOAD.download_file ()+ you can use inside this active web PL/SQL procedure. This will return the contents of the blob/clob as a 'file' in the web browser.

    For example, a download web-enabled simplistic procedure will look something like this:

    create or replace procedure downloadFile( fileName varchar2 ) is
            b       blob;
            mimeType varchar2(50);
    begin
            select
                file_content, mime_type  into b, mimeType
            from my_documents where file_name = fileName;
    
            OWA_UTIL.mime_header( mimeType, false );
            HTP.p('Content-Length: ' || DBMS_LOB.getlength(b));
            OWA_UTIL.http_header_close;
            WPG_DOCLOAD.download_file( b );
    end;
    

    The URL will look like this:

    http://my-webserver.my-domain.com:7777/pls/ora/scott.downloadfile?filename=somefile.doc
    

    where:
    Scott.DownloadFile = name of the PL/SQL procedure
    filename = somefile.doc = name values of the parameter to pass to the procedure

Maybe you are looking for