Report tries to connect to wrong database

Hello,
We're currently developing an ASP.NET C# Web Application and integrate some Crystal Reports using the CrystalReportViewer control. Our environment looks like this:
<h1>Dev Environment:</h1>
One machine using
- Windows Server 2003
- .NET Framework 3.5 SP1
- IIS 6
- SQL Server 2008 Developer Edition, Default instance
- Crystal Reports 2008 (no service packs applied so far)
<h1>Production Environment:</h1>
One machine using
- Windows Server 2008
- .NET Framework 3.5 SP1
- IIS 7
- SQL Server 2008 Express Edition, Named instance
I've designed the report on the Dev Environment. For this I created a new database connection inside the report to the Dev Database. We use OLE DB for SQL Server to connect to the database using sql authentication. We pass the login credentials in code. The report uses two sql server views and one sql table to display its data. The report is configured to not store data inside.
To pass the login credentials, we use the same code as recommended in your code samples on https://www.sdn.sap.com/irj/boc/samples:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using CrystalDecisions.Shared;
namespace Ispin.Irma.Helpman
    public partial class ShowReport : System.Web.UI.Page
        protected void Page_Init(object sender, EventArgs e)
            ConfigureCrystalReports();
        private void ConfigureCrystalReports()
            string ReportPath = Server.MapPath("ReportCallTimeUsage.rpt");   
            ConnectionInfo connectionInfo = new ConnectionInfo();
            connectionInfo.ServerName = "ANANKE\\SQLEXPRESS";
            connectionInfo.DatabaseName = "Irma";
            connectionInfo.UserID = "<username goes here>";
            connectionInfo.Password = "<password goes here>";
            CrystalReportViewer1.ReportSource = ReportPath;
            SetDBLogonForReport(connectionInfo);
        private void SetDBLogonForReport(ConnectionInfo connectionInfo)
            TableLogOnInfos tableLogOnInfos = CrystalReportViewer1.LogOnInfo;
            foreach (TableLogOnInfo tableLogOnInfo in tableLogOnInfos)
                tableLogOnInfo.ConnectionInfo = connectionInfo;
<h1>Problem:</h1>
When deploying the application and reports to the production environemt, the reports come up with a login window, forcing me to enter login credentials to the dev database. At this point I can only change the username and passwort fields, but not the server or the database. So, I'm unable to enter the correct login data to connect to the production system since this is on another machine.
<h1>What I already did:</h1>
- Install Crystal Reports 2008 runtime on production webserver (this helped, but the login problem still arises). I got the runtime from https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm, I've choosen the "Crystal Reports 2008 - Redistributable Installation" file, published on 10.09.2008.
- Install Crystal Reports 2008 Trial Edition on production server (I could start the report sucessfully out of the designer using the login credentials for the productive database server).
It seems that the code for passing the credentials at runtime is not effective. It looks as if the report is saving login credentials inside the rpt file. but why? It must be possible to pass login credentials by code. Can you please provide me additional hints for getting this thing to work?
Thank you very much.
Edited by: AndreG on Aug 9, 2009 3:41 PM
Code formatting seems not to work.... sorry.

Lots of posting for this same question. Please search before posting the same question again.

Similar Messages

  • Trying to connect to a database via JSP

    I'm trying to make a simple connection to a database called testbase but to no prevail. As you can see the code is really simple but i keep getting "javax.servlet.ServletException: Table 'testbase.testbase' doesn't exist".
    //connection.jsp
    <HTML>
    <HEAD><TITLE>Employee List</TITLE></HEAD>
    <BODY>
    <%@ page import="java.sql.*" %>
    <TABLE BORDER=1 width="75%">
    <TR><TH>Data</TH></TR>
    <%
    Connection conn = null;
    Statement st = null;
    ResultSet rs = null;
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/testbase",
    st = conn.createStatement();
    rs = st.executeQuery("select * from testbase");
    %>
    <TR><TD><%= rs.getString("table01") %></TD>
    <TD><%= rs.getString("field01") %></TD></TR>
    </BODY>
    </HTML>
    Can anyone find something wrong with the code or do you think that there's a connection problem someplace else?
    Any replies are greatly appreciated

    DriverManager.getConnection("jdbc:mysql://localhost:33
    06/testbase",
    st = conn.createStatement();
    rs = st.executeQuery("select * from testbase");One of them or both might not be correct. Check if you have a database called testbase and it has a table called testbase.
    You could login from MySQL command prompt with your login name and password (which I hope is not *) and check.

  • Applet trying to connect to Oracle Database

    Hello!
    I am trying to access an Oracle 8i database from an Applet. The problem is that the following exception is reported in IE 5.5
    and the Applet is not run.
    exception: com.ms.security.SecurityEceptionEx[oracle/net/nt/TcpNTAdpater.connect]:cannot access "pc38"
    (where my database is being hosted on the intranet at a NT workstation called pc38). The applet does not seem to be able to connect to the datase due to security reason).
    In Netscape no exception is shown in the Java Console but the Applet is not run anyway.
    What do I have to do for the Applet to be able to connect to the database. The code for the Applet and the HTML file have been appended to this message.
    Thanx in advance
    Saad
    /*********************************Applet*******************************/
    String serviceName="ora816";
    String hostName="pc38";
    String userName="ipweb355";
    String password="ipweb355";
    String port="1521";
    Connection conn=null;
    try
    java.sql.DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    String url = "jdbc:oracle:thin:@"+this.hostName+":"+this.port+":"+this.serviceName;
    System.out.println("url = "+url+ " UserName = "+this.userName+ " password = "+this.password+" port = "+this.port );
    conn = java.sql.DriverManager.getConnection(url, this.userName, this.password);
    public void paint(Graphics g){
    g.drawString("HI there",20,20);
    try{
    Connection con = conn;
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("Select COUNT(*) AS NUM_ROWS from TABLE_ONE");
    rs.next();
    String temp = rs.getString("NUM_ROWS");
    g.drawString(temp,100,20);
    catch(SQLException e){
    g.drawString(e.getMessage(),20,20);
    /********************HTML*********************************************/
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    <TITLE>
    HTML Test Page
    </TITLE>
    </HEAD>
    <BODY>
    testApplet will appear below in a Java enabled browser.<BR>
    <APPLET
    CODEBASE = "D:\IPWeb\Swings\TreeApplet\src"
    ARCHIVE = "classes111.zip"
    CODE = "testApplet.class"
    NAME = "TestApplet"
    WIDTH = 400
    HEIGHT = 300
    HSPACE = 0
    VSPACE = 0
    ALIGN = middle
    >
    </APPLET>
    </BODY>
    </HTML>
    <!--the classes111.zip is being send in the Archive file so that the java.lang.ClassNotFound Exception is not reported-->
    /*********************************************************************/

    Hi!
    Try to add this line to java.policy file on machine that's running applet:
    permission java.security.AllPermission;

  • Issues when trying to connect to Oracle database

    Hi
    We have set up a linked server in SQL Server to connect to an Oracle database. We are using SQL Server 2008 R2 Enterprise (64 bit) on Windows Server 2008 and Oracle client 11g 11.02.00.01 connecting to Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production using UTF8.
    Most tables are selectable without error, however, we got this error message for some:
    Msg 7347, Level 16, State 1, Line 1
    OLE DB provider 'OraOLEDB.Oracle' for linked server 'OurLinkedServer' returned data that does not match expected data length for column '[OraOLEDB.Oracle].Ourfieldname'. The (maximum) expected data length is 6, while the returned data length is 2.
    This error message refers to a column of type char(3)
    Will the characterset cause this error (I’ve read that SQL Server doesn’t support UTF8)?
    If not, is there some other resolution that anyone can think of?
    Any suggestions are greatly appreciated.
    Thanks a lot!
    Tom

    Thank You for replying, Justin!
    Yes, I can connect successfully to the database through other tools - at the moment I tried SQL*Plus, Net8 Easy Config and Schema Manager.
    The Oracle client in the NT machine is 8.0.5.0.0. And unfortunately I do not know anything about the Oracle installation on this machine and at the moment I don't have that person near me too whom to ask also. But I think the installation was ok, because the connection through ODBC was working before the DB upgrade as far as I understood (sorry, again at the moment I don't know what was the previous version of DB. I will ask that information as soon as possible).
    The main problem that bothers me at the moment is that I can't install 8.1.* series OraODBC driver with 8.0.5.0.0 Oracle Installer. I managed to install 8.0.6.6.0 version of the driver, but not the newer ones. As far as I've understood I have to upgrade the whole Oracle in the NT machine to upgrade that installer. Am I correct?
    Regards,
    Madis Priilinn

  • While trying to connect to Oracle database 11g from SQL developer (Error)

    Hi Guys,
    Installed OIM in virtual machine with Windows 2008 and when trying to connect to Database after completing installation receiving with Error ' No more data to read from socket'
    Vendor code : 17410. can anybody give suggestion on this.
    thanks
    sri485.

    yes i tried connecting DB directly its working fine and i tried select * from DUAL it displays 2 . VMware with OIM working fine in my system and when i copied the same VMWARE file to other system and i tried running OIM and connecting to DB it not working.
    log trace:
    <Aug 21, 2012 2:28:56 PM BST> <Warning> <DeploymentService> <BEA-290014> <Inval
    d user name or password.>
    <Aug 21, 2012 2:28:58 PM BST> <Error> <OIM Authenticator> <BEA-000000> <Error s
    tting SQL Hint java.sql.SQLException: Unable to start the Universal Connection
    ool: oracle.ucp.UniversalConnectionPoolException: Error during pool creation in
    Universal Connection Pool Manager MBean: oracle.ucp.UniversalConnectionPoolExce
    tion: Error during pool creation in Universal Connection Pool Manager: oracle.u
    p.UniversalConnectionPoolException: Universal Connection Pool already exists in
    the Universal Connection Pool Manager. Universal Connection Pool cannot be adde
    to the Universal Connection Pool Manager>
    java.sql.SQLException: Unable to start the Universal Connection Pool: oracle.uc
    .UniversalConnectionPoolException: Error during pool creation in Universal Conn
    ction Pool Manager MBean: oracle.ucp.UniversalConnectionPoolException: Error du
    ing pool creation in Universal Connection Pool Manager: oracle.ucp.UniversalCon
    ectionPoolException: Universal Connection Pool already exists in the Universal
    onnection Pool Manager. Universal Connection Pool cannot be added to the Univer
    al Connection Pool Manager
    at oracle.ucp.util.UCPErrorHandler.newSQLException(UCPErrorHandler.java
    488)
    at oracle.ucp.util.UCPErrorHandler.throwSQLException(UCPErrorHandler.ja
    a:163)
    at oracle.ucp.jdbc.PoolDataSourceImpl.startPool(PoolDataSourceImpl.java
    651)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.
    ava:890)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.
    ava:857)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.
    ava:851)
    at oracle.iam.platform.auth.impl.DBStore.getConnection(DBStore.java:130
    at oracle.iam.platform.auth.impl.DBStore.setSQLHint(DBStore.java:107)
    at oracle.iam.platform.auth.impl.DBStore.<init>(DBStore.java:62)
    at oracle.iam.platform.auth.impl.DBStore.getInstance(DBStore.java:83)
    at oracle.iam.platform.auth.impl.Authenticator.<init>(Authenticator.jav
    :87)
    at oracle.iam.platform.auth.impl.Authenticator.getInstance(Authenticato
    .java:71)
    at oracle.iam.platform.auth.providers.wls.OIMAuthLoginModule.login(OIMA
    thLoginModule.java:43)
    at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(Lo
    inModuleWrapper.java:110)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.bea.common.security.internal.service.LoginModuleWrapper.login(Lo
    inModuleWrapper.java:106)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
    at javax.security.auth.login.LoginContext.access$000(LoginContext.java:
    86)
    at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:
    80)
    at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
    at com.bea.common.security.internal.service.JAASLoginServiceImpl.login(
    AASLoginServiceImpl.java:113)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.common.security.internal.utils.Delegator$ProxyInvocationHand
    er.invoke(Delegator.java:57)
    at $Proxy25.login(Unknown Source)
    at weblogic.security.service.internal.WLSJAASLoginServiceImpl$ServiceIm
    l.login(WLSJAASLoginServiceImpl.java:89)
    at com.bea.common.security.internal.service.JAASAuthenticationServiceIm
    l.authenticate(JAASAuthenticationServiceImpl.java:82)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.common.security.internal.utils.Delegator$ProxyInvocationHand
    er.invoke(Delegator.java:57)
    at $Proxy43.authenticate(Unknown Source)
    at weblogic.security.service.WLSJAASAuthenticationServiceWrapper.authen
    icate(WLSJAASAuthenticationServiceWrapper.java:40)
    at weblogic.security.service.PrincipalAuthenticator.authenticate(Princi
    alAuthenticator.java:348)
    at weblogic.security.service.PrincipalAuthenticator.authenticate(Princi
    alAuthenticator.java:355)
    at weblogic.management.servlet.BootstrapServlet$1.run(BootstrapServlet.
    ava:169)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticat
    dSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java
    146)
    at weblogic.management.servlet.BootstrapServlet.processGet(BootstrapSer
    let.java:119)
    at weblogic.management.servlet.BootstrapServlet.doGet(BootstrapServlet.
    ava:108)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.ru
    (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecur
    tyHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.ja
    a:300)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.ja
    a:183)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActi
    n.wrapRun(WebAppServletContext.java:3717)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActi
    n.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticat
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java
    120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebApp
    ervletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServlet
    ontext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.
    ava:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: oracle.ucp.UniversalConnectionPoolException: Error during pool creat
    on in Universal Connection Pool Manager MBean: oracle.ucp.UniversalConnectionPo
    lException: Error during pool creation in Universal Connection Pool Manager: or
    cle.ucp.UniversalConnectionPoolException: Universal Connection Pool already exi
    ts in the Universal Connection Pool Manager. Universal Connection Pool cannot b
    added to the Universal Connection Pool Manager
    at oracle.ucp.util.UCPErrorHandler.newUniversalConnectionPoolException(
    CPErrorHandler.java:368)
    at oracle.ucp.util.UCPErrorHandler.throwUniversalConnectionPoolExceptio
    (UCPErrorHandler.java:49)
    at oracle.ucp.util.UCPErrorHandler.throwUniversalConnectionPoolExceptio
    (UCPErrorHandler.java:80)
    at oracle.ucp.admin.UniversalConnectionPoolManagerMBeanImpl.createConne
    tionPool(UniversalConnectionPoolManagerMBeanImpl.java:316)
    at oracle.ucp.jdbc.PoolDataSourceImpl.startPool(PoolDataSourceImpl.java
    625)
    ... 61 more
    <Aug 21, 2012 2:28:58 PM BST> <Error> <Configuration Management> <BEA-150035> <
    n attempt was made to download the configuration for the server oim_server1 by
    he user iamamin with an invalid password.>
    thanks
    sri485

  • ORA-12514 when trying to connect to the database using SERVICE

    Hi,
    Version 10204
    In a single instance database i would like to create new SERVICEs in order to use them later with Resource Manager.
    The instance name is DWH.
    I run the following commands:
    I added to the tnsnames.ora file the following input:
    XYZ =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xxx)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XYZ)
    As SYSDBA i execute:
    > exec DBMS_SERVICE.CREATE_SERVICE('xyz','xyz');
    PL/SQL procedure successfully completed.
    > exec DBMS_SERVICE.START_SERVICE('xyz');
    PL/SQL procedure successfully completed.
    But when i tried to connect to the instance:
    sqlplus ac/ac@xyzSQL*Plus: Release 10.2.0.4.0 - Production on Sat Nov 1 14:44:43 2008
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    When i am trying to connect , not via the service , its successed:
    sqlplus ac/ac@dwh
    SQL*Plus: Release 10.2.0.4.0 - Production on Sat Nov 1 14:45:07 2008
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Could you please help to understand why its failed to connect via SERVICE ?
    Thanks

    You told us.
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor.
    I ask some questions, you set alias for listener port (no default) + local_listener parameter, don't you?
    If you did....
    Please check by .....
    lsnrctl status
    lsnrctl service
    Let me show my example:
    About 1522 (no default port)
    SQL> show parameter local_listener
    NAME TYPE VALUE
    local_listener string ALIASLISTENER
    - check tnsnames.ora file in the same location listener.ora file.
    $ cat tnsnames.ora
    ALIASLISTENER=
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost )(PORT = 1522))
    - About create new service
    SQL> show parameter service_names
    NAME TYPE VALUE
    service_names string db
    SQL> exec DBMS_SERVICE.CREATE_SERVICE('xyz','xyz');
    PL/SQL procedure successfully completed.
    SQL> exec DBMS_SERVICE.START_SERVICE('xyz');
    PL/SQL procedure successfully completed.
    SQL> show parameter service_names
    NAME TYPE VALUE
    service_names string xyz
    $ lsnrctl status
    LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 02-NOV-2008 03:29:21
    Copyright (c) 1991, 2007, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=1522)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.1.0.6.0 - Production
    Start Date 02-NOV-2008 03:28:45
    Uptime 0 days 0 hr. 0 min. 36 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File ORACLE_HOME/network/admin/listener.ora
    Listener Log File ORACLE_HOME/log/diag/tnslsnr/hostname/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=1522)))
    Services Summary...
    Service "db" has 1 instance(s).
    Instance "db", status READY, has 1 handler(s) for this service...
    Service "db2XDB" has 1 instance(s).
    Instance "db", status READY, has 1 handler(s) for this service...
    Service "db_XPT" has 1 instance(s).
    Instance "db", status READY, has 1 handler(s) for this service...
    Service "xyz" has 1 instance(s).
    Instance "db", status READY, has 1 handler(s) for this service...
    $ lsnrctl service
    LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 02-NOV-2008 03:29:40
    Copyright (c) 1991, 2007, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=1522)))
    Services Summary...
    Service "db" has 1 instance(s).
    Instance "db", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    Service "db2XDB" has 1 instance(s).
    Instance "db", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:972 state:ready
    DISPATCHER <machine: hostname, pid: 30200>
    (ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=45572))
    Service "db_XPT" has 1 instance(s).
    Instance "db", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    Service "xyz" has 1 instance(s).
    Instance "db", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    The command completed successfully

  • Trying to connect to target database...ORA-01994: GRANT failed: password

    I am trying to connect to a target database which on linux from a catalog database which is on Windows. I was initially having problems with our DEV database but eventually got it working. Now I have to register the QA database and I'm running into the same problems. Below is a list og things that I have tried:
    C:\>rman
    Recovery Manager: Release 10.2.0.3.0 - Production on Thu May 10 17:01:51 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    RMAN> connect target sys/password@fprcqa
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    ORA-01031: insufficient privileges
    2. So I went to the target database (FPRCQA) and I checked the following:
    SYS@FPRCQA> select * from v$pwfile_users;
    no rows selected
    SYS@FPRCQA> grant sysdba to sys;
    grant sysdba to sys
    ERROR at line 1:
    ORA-01994: GRANT failed: password file missing or disabled
    3. Then I checked the passwordfile
    SYS@FPRCQA> show parameter pass
    NAME TYPE VALUE
    remote_login_passwordfile string[b] EXCLUSIVE
    4. Then I created a passwordfile in $ORACLE_HOME/dbs because it did not exist.
    [oracle@rh-staging dbs]$ orapwd file=orapwdFPRCQA password=password entries=300
    -rw-r----- 1 oracle oinstall 8385 Sep 11 1998 init.ora
    -rw-r--r-- 1 oracle oinstall 12920 May 3 2001 initdw.ora
    -rw-rw---- 1 oracle oinstall 1552 May 8 14:09 hc_FPRCQA.dat
    -rw-rw---- 1 oracle oinstall 24 May 8 14:09 lkFPRCQA
    drwxr-xr-x 63 oracle dba 4096 May 8 15:12 ..
    drwxr-x--- 2 oracle oinstall 4096 May 10 16:10 .
    -rw-r----- 1 oracle oinstall 5632 May 10 16:10 spfileFPRCQA.ora
    -rwSr----- 1 oracle oinstall 39424 May 10 16:14 orapwdFPRCQA
    5. Then I tried again to grant sysdba to sys and it gave me the same error as before.
    ALSO, I cannot connect to the the target database from the catalog database through sqlplus...as I get the same error of insufficient privs:
    C:\>set ORACLE_SID=fprcqa
    C:\>sqlplus /nolog
    SQL*Plus: Release 10.1.0.3.0 - Production on Thu May 10 17:11:41 2007
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> connect sys/password@fprcqa as sysdba
    ERROR:
    ORA-01031: insufficient privileges
    Can anyone help please?

    Hello all;
    I created the files with following command in $ORACLE_HOME/dbs/
    orapwd file=orapwRCVDB password=sys entries=20
    remote_login_passwordfile=EXCLUSIVE
    $ ls -ltr orapw*
    -rwxrwxrwx 1 oracle dba 3584 Dec 22 15:29 orapwRCVDB
    but still I am facing similar error ..
    SQL> grant sysdba to system;
    ORA-01994: GRANT failed: password file missing or disabled
    so i checked ...
    SQL> select * from v$pwfile_users;no rows selected
    can anyone tell me where I am doing mistakes ? It's urgent !!
    atul.

  • Macbook pro trying to connect to wrong mac address?

    Hey everyone,
    I'm running on a 2010 Macbook Pro OS X 10.7.2.
    Basically, my 309g-m stopped working the other day. I've tried reinstalling the drivers and software, but it still refuses to print (I get stuck at "looking for printer"). I have, however, noticed that when I'm adding a printer in system preferences, the printer is listed as "Photosmart Premium C309g-m [F1EDA7]." However, after connecting my printer to my network (via the printer), the page printed listed that my Hardware Address (MAC) is "78:e7:d1:f1:ed:a8" - So I think my Macbook is trying to connect to the wrong mac address.
    Any ideas? 
    P.S. I've tried to connect via IP and my computer cannot find the printer. 

    No, that all looks good.  Your printer's unique "name" is HP plus the last 6 digits of your printer's MAC address.
    On the front of the printer: Setup > Network > WIreless Network Test.  What does it say about the printer's wireless radio?
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Trying to connect to DB2 database....get windows Application error message

    Hello,
    I have just started using JDBC and I am trying to connect to a DB2 db from my pc. The program I have written compiles ok but when I try to run the program I get a windows error:
    java.exe - Application error
    The instruction at "0x10009f62" referenced memory at "0x0000001c". The memory could not be "read".
    Click OK to terminate the program.
    Click CANCEL to debug the program.
    I am using Windows2000 and DB2 v6.1.0 is installed on my laptop.
    The program I am trying to run is as follows:
    //Class to load jdbc driver and test connectivity to DB
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    //Dynamic SQL application using jdbc
    //example taken from Don Chamberlain's book, page 504
    //Adjusted for reptest DB
    public class Test{
    //Register the jdbc driver
    static{
    try{
    Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
    }//ends try
    catch (Exception e){
    System.out.println("Error registering the jdbc driver");
    e.printStackTrace();
    }//ends catch
    }//ends static
    public static void main(String args[]){
    //try catch block, Create a Connection object and use it to connect to the DB and turn autocommit off
    //The DB is identified by a URl that begins with "jdbc:db2" followed by the DB name
    try{
    String dbname = "dbname";
    String userid = "uid";
    String pw = "password";
    String url = "jdbc:db2:" + dbname;
    Connection con = DriverManager.getConnection(url, userid, pw);
    con.setAutoCommit(false);
    //Simple select statement
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("SELECT problem_id" + "FROM problems" + "WHERE problem_id = 2002219");
    System.out.println(rs.getString(1));
    }//end try
    //General purpose exception
    catch(Exception e){
    System.out.println("Error");
    e.printStackTrace();
    }//ends outer catch
    System.out.println("Successful");
    }//ends main
    }//ends class
    I'd appreciate any help. Thanks , Ali

    Hello,
    This is because of the DB2Java.zip file, what i did is unzip the file into a temp folder then make a jar using jar -cvf DB2java.jar COM
    (COM is important)now you can see jar file is created. you have to use this jar file in your classpath it works fine,
    That's all it works for me.
    Thanks for somebody placed in the java forum.
    Cheers
    Bala

  • OWB 10g R1 - trying to connect to 11g database

    Hi,
    Is it possible for OWB 10g R1 (10.1.0.3.0) to connect to a database on Oracle 11g, incidentally it is Oracle 64bit. Currently I am having difficulty when deploying objects, the error message says it cannot find the remote object on the Oracle 11g database.
    Thanks,
    Marlise Burke

    Hi user589658 ,
    Do you have the reference to the Metalink document that States that?
    We have an old 10g rel 1 repository and we now have to generate mappings to extract from , and populate another 11g database.
    The metalink reference would help us to justify to management the upgrade of our OWB repository and clients to 11g
    Thanks

  • Error trying to connect to DB2 database....

    Am using the following code to connect to db2 database, but when run am getting error messgae as shown,
    try
         Class.forName("COM.ibm.db2.jdbc.net.DB2Driver").newInstance();
    catch(Exception exception)
    System.err.println("Unable to load driver.");
    exception.printStackTrace();
    try
         Connection connection = DriverManager.getConnection("jdbc:db2://xxx.xxx.xxx.xxx:port/dbname");
    error message.....
    Exception in thread "main" java.lang.NoClassDefFoundError:
    .....Any suggestions gratefully recieved....

    It does not matter whether your database server is running locally or on a remote server. Most of the times it will be on a remote server.
    But the driver and the related stuff must be in your local machine's classpath. Only then you can compile or run your application locally. Include db2 package in the classpath and then try to compile your program. You can search in this forum about setting the classpath details.
    Every fourth thread in this forum will be about classpath or related problems.
    Sudha

  • Runtime error during createStatement() trying to connect to MySQL database

    I am trying to make a script to access a MySQL database over the internet. I can get this to work on my home server using PHP, but I can't figure out why my code below is not working. I get a runtime error in the conn.createStatement() line but I can't figure out what the problem is... Any help is appreciated...
    import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class sqltest extends Activity {                 Connection conn=null; try { // from http://help.godaddy.com/topic/319/article/262 conn = DriverManager.getConnection( "jdbc:mysql://profiles.db.1111111.hostedresource.com:3306/dbname", "dbname", "password"); } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } try { // Create a result set containing all data from mysql_all_table Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("SELECT * FROM *");                 } }
    PS: I am developing this code for android using Eclipse, but I think the issue is a pure java code related...

    You catch the conection exception and keep on going. So 'conn' is null. That produces a null pointer exception at the createStatement() line. Which I am guessing the IDE tells you exactly that.

  • ClassNotFoundException trying to connect to Oracle database.

    I'm getting this error:
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    on this line of code:
    Class.forName("oracle.jdbc.driver.OracleDriver");
    I've used this before in a different program on this machine (that still works) with no problem. I'm just trying to write some code that queries my Oracle SQL database. Any idea what's wrong?
    Thank you.

    A couple of points for those finding this thread on a search (I assume the OP has moved on).
    classes12.jar is sometimes found as .zip and needs renaming to .jar.
    The ojdbc4 version is more up to date.
    Drivers are needed on the class path only at run time, not when you compile the code.

  • HTTP/1.1 302 Found error while trying to connect to Cloud database Trial version from SQL*Developer 4.0.3.16.

    Hi Oracle Cloud Gurus,
    I have signed up for Oracle Database Cloud Service Trial and activated the same. I am able to login to Apex applications, SQL Workshop etc but not able to connect from SQL*Developer on my local m/c.
    I configured the "Cloud Connection" by giving the provided username, password and URL. When I try to connect, I get the error - "HTTP/1.1 302 Found". Any ideas how to resolve this ?
    Here is the complete error stack:
    oracle.dbtools.raptor.cloud.auth.AuthenticationFailedException: HTTP/1.1 302 Found
    at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationEngine.doPost(BasicAuthenticationEngine.java:162)
    at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationEngine.authenticate(BasicAuthenticationEngine.java:63)
    at oracle.dbtools.raptor.cloud.auth.basic.GUIBasicAuthenticationEngine.authenticate(GUIBasicAuthenticationEngine.java:26)
    at oracle.dbtools.raptor.cloud.connection.ConnectionCreator.createConnection(ConnectionCreator.java:24)
    at oracle.dbtools.raptor.cloud.connection.CConnections$C.getConnection(CConnections.java:39)
    at oracle.dbtools.raptor.cloud.connection.CConnections.getConnection(CConnections.java:176)
    at oracle.dbtools.raptor.cloud.navigator.CloudConnection.openConnectionImpl(CloudConnection.java:127)
    at oracle.dbtools.raptor.cloud.navigator.CloudConnection.getConnection(CloudConnection.java:89)
    at oracle.dbtools.raptor.cloud.navigator.ConnectionTreeNode$LoadTask.doWork(ConnectionTreeNode.java:74)
    at oracle.dbtools.raptor.cloud.navigator.ConnectionTreeNode$LoadTask.doWork(ConnectionTreeNode.java:38)
    at oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask.run(RaptorTaskManager.java:554)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: java.io.IOException: HTTP/1.1 302 Found
    at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationHandler.handleError(BasicAuthenticationHandler.java:250)
    at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationHandler.handleError(BasicAuthenticationHandler.java:24)
    at oracle.dbtools.raptor.cloud.connection.CloudHander.handleResponse(CloudHander.java:38)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:945)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:919)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:910)
    at oracle.dbtools.raptor.cloud.connection.DefaultClient.executeRequest(DefaultClient.java:96)
    at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationEngine.doPost(BasicAuthenticationEngine.java:153)
    ... 17 more

    Can you please post some of the values you are using to connect to your Schema Service? (please redact the hostname URL for security purposes)
    You can also follow this tutorial:
    Data Loading and the Oracle Database Cloud Service
    Format is usually:
    username used to sign up
    password giving at sign up
    Service Instance URL

  • TNS-12535. Trying to connect to oracle database which is on bridget VM

    I have a XP host running VMWare workstation 7 hosting a guest running Windows 2003 with Oracle database 9i (copy of my original physical server which I converted, also edited listener.ora and tnsnames.ora to IP of cloned server ). Network adapter is bridge so vmnic recived IP from DHCP and I can ping from my local network. Database is up and running. On my XP host I installed oracle client 11g and TNSPING is working and I can connect my application to database.
    Problem is because I can't connect from another XP PC from my network (also isntalled oracle client and changed listener.ora and tnsnames.ora to IP of cloned server) . Error is TNS-12535 TNS:operation time out. Firewall in off on both side. PIng is working ok. Is it a problem with bridge connection?
    Can anybody hel me with this problem?
    thanx in advance
    Dragan
    Edited by: 873723 on 20.07.2011. 05.06

    Applets have restriction in accessing resources (for security reasons -> that's why you recieved SecurityException). But normally database access is done on server-side, so put that stuff in the servlet and then send the data to the applet.
    Greets
    Puce

Maybe you are looking for