Error while connecting to Auxiliary Database
Hi
I am practicing Cloning the database on my Personal Computer. I am following the steps outlined here
http://www.oracle-base.com/articles/9i/DuplicateDatabaseUsingRMAN9i.php
But while connecting to Auxiliary database I get this error.
RMAN - 04006 Error from auxiliary database: ORA 12514 TNS: listener does not currently know of service requested in connect descriptor
RMAN - 00554 initialization of internal recovery manager package failed...
what is the solution for this?
This is 10g database and my PC has Opensuse 11 OS
I think the problem is in configuring listener. But I am following the instructions given in that page....
You probably skipped this part
Next add the appropriate entries into the tnsnames.ora and listener.ora files in the $ORACLE_HOME/network/admin directory. Remember to load the new configuration into the listener:
Which is why you are getting the error. The database needs to register itself with the listener. This doesn't happen in nomount mode.
Other than that: there is an option in database control to duplicate a database in 10g. Using that you only need to hit buttons. Why are you using 9i code and policies?
Sybrand Bakker
Senior Oracle DBA
Similar Messages
-
Error while connecting to the database from a JSP Page
Hi,
I am using a simple JSP page which is based on the sample JSP pages from OTN.
When I try to connect to my database using the following code:
InitialContext ic = new InitialContext();
OracleDataSource ds = (OracleDataSource)ic.lookup("jdbc/OTN9iDS");
m_connection = ds.getConnection();
I get the following error:
Naming exception Error while connecting to the database : javax.naming.NameNotFoundException: jdbc/OTN9iDS not found in JDBCTest-JDBCTestProject-webapp
Does anybody know wht this is happening?
Any help would be appreciated
FRankHi Frank,
Are you using standalone OC4J or 9iAS ? If you are using standalone OC4J then you need to add a proper data source entry in %OC4J_HOME%j2ee\home\config\data-sources.xml file.
If you are using 9iAS the you can log in to the Enterprise Manager console and add the data source entry by using wizard provided by 9iAS.
Ensure the case of the JNDI lookup string, since, it is case sensitive.
Hope this helps.
Abhijeet -
Error RMAN connection to auxiliary database ORA- 12514
Hi,
I'm trying to make a clone of my database in another server but when I'm trying to connect as follow the RMAN return
to me the error ORA-12514.
C:\Documents and Settings\joses.morales>rman TARGET sys/pass@iswgen nocatalog
AUXILIARY sys/[email protected]
Recovery Manager: Release 8.1.7.4.1 - Production
RMAN-06005: connected to target database: ISWGEN (DBID=2348350645)
RMAN-06009: using target database controlfile instead of recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04006: error from auxiliary database: ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor
For more information:
- the auxiliary database is started whit nomount option.
- this is my listener.ora in the auxiliary host
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = WSSP61)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = oracle8)
(ORACLE_HOME = C:\oracle\ora81)
(SID_NAME = iswgen)
(SID_DESC =
(GLOBAL_DBNAME = oracle8)
(ORACLE_HOME = C:\oracle\ora81)
(SID_NAME = oracle8)
- this is my tnsnames.ora in the auxiliary host
ISWGEN =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = wssp61)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = iswgen)
ORACLE8 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = WSSP61)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = oracle8)
- this is my tnsnames.ora in the target host
iswgen =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = gdcoracle)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = iswgen)
iswgen.wssp61 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = wssp61)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = iswgen)
- target server: gdcoracle
- auxiliary server: wssp61
- global name in auxiliary: Oracle8
- intances in auxiliary: Oracle8 & Iswgen
I was expecting the follow message:
connected to target database: ISWGEN (DBID=519338572)
using target database control file instead of recovery catalog
connected to auxiliary database: ISWGEN.WSSP61 (not mounted)
Can anybody help me to resolve this error ORA-12514??
ThanksI'm try to connect to the auxiliary server at SQLPLUS and I get the follow:
C:\Documents and Settings\joses.morales>sqlplus /nolog
SQL*Plus: Release 8.1.7.0.0 - Production on Sex Jun 1 12:26:09 2007
(c) Copyright 2000 Oracle Corporation. All rights reserved.
SQL> conn sys@iswgen
Informe a senha:
ERROR:
ORA-12514: TNS:listener nao conseguiu resolver o SERVICE_NAME fornecido no
descitor de conexao
SQL> conn sys@iswgen as sysdba
Informe a senha:
ERROR:
ORA-12514: TNS:listener nao conseguiu resolver o SERVICE_NAME fornecido no
descitor de conexao
SQL> conn internal as sysdba
Conectado.
SQL>
Any sugestions?
Thanks everyone and regards -
Error while connecting to Access Database from Oracle
Dear All,
I'm trying to connect Oracle 9i to Access Database.
but im getting the below error while executing query.
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
NCRO: Failed to make RSLV connection
ORA-02063: preceding 2 lines from MYSQLi did the following thing through to connect the database.
1) First i made odbc driver called ODBC1
2) I create the following file on oracle server C:\oracle\ora9I\hs\admin\initodbc1.ora
i edit the below thing in initodbc1.ora
HS_FDS_CONNECT_INFO =ODBC1
HS_FDS_TRACE_LEVEL = ON3) I made some changes in sqlnet.ora
SQLNET.AUTHENTICATION_SERVICES= NONE
before it was *NTS*4) Below are the entries in tnsnames.ora i changed the port from 1521 to 1522 cos 1521 already exists.
ODBC1.TADAWI.LOC =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ODBC1)
ODBC1.WORLD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.251) (PORT = 1522)
(CONNECT_DATA =
(SID = ODBC1)
(HS=OK)
)5) Listener file code
ODBC1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\ora9I)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = C:\oracle\ora9I)
(SID_NAME = orcl)
(SID_DESC =
(PROGRAM = hsodbc)
(ORACLE_HOME = C:\oracle\ora9I)
(SID_NAME = ODBC1)
)6) after that i created
SQL> CREATE DATABASE LINK MYSQL CONNECT TO XTRACK IDENTIFIED BY XTRACK USING 'ODBC1.WORLD'
Database link created.7) Listener Status
LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 04-MAR-2012 21:26:16
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=admin-amc)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
Start Date 04-MAR-2012 20:52:33
Uptime 0 days 0 hr. 33 min. 44 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File C:\oracle\ora9I\network\admin\listener.ora
Listener Log File C:\oracle\ora9I\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC2ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=8080))(Presentation=HTTP)(Session=RAW))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=2100))(Presentation=FTP)(Session=RAW))
Services Summary...
Service "ODBC1" has 1 instance(s).
Instance "ODBC1", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 2 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfullyi did exactly what documentation says and it will not through any error but atlast when i try to access the access database tables it give me the below error
SELECT * FROM DBO_COMPANY@MYSQL
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
NCRO: Failed to make RSLV connection
ORA-02063: preceding 2 lines from MYSQLi'm using Oracle9i Enterprise Edition Release 9.2.0.1.0 any help will appreciate.
Regards
Moazam
Edited by: Moazam Shareef on Mar 4, 2012 10:25 AMfirst of all thanks for your support Mr. Kgronau
I did what u said but still its giving me below error.
SQL> SELECT * FROM DBO_PATINS@MYSQL
2 ;
SELECT * FROM DBO_PATINS@MYSQL
ERROR at line 1:
ORA-12154: TNS:could not resolve service namei re-check the service, and restart the listener as you said below are the logs could you help me to solve this issue plz.
TNSNAMES.ORA
# TNSNAMES.ORA Network Configuration File: C:\oracle\ora9I\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL.TADAWI.LOC =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
ODBC1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ODBC1)
INST1_HTTP.TADAWI.LOC =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = MODOSE)
(PRESENTATION = http://HRService)
EXTPROC_CONNECTION_DATA.TADAWI.LOC =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)LISTENER.ORA
# LISTENER.ORA Network Configuration File: C:\oracle\ora9I\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
ODBC1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
SID_LIST_ODBC1 =
(SID_LIST =
(SID_DESC =
(SID_NAME = ODBC1)
(ORACLE_HOME = C:\oracle\ora9I)
(PROGRAM = hsodbc)
(SID_DESC =
(GLOBAL_DBNAME = ODBC1)
(ORACLE_HOME = C:\oracle\ora9I)
(SID_NAME = ODBC1)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\ora9I)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = C:\oracle\ora9I)
(SID_NAME = orcl)
)then i restart both listener entries (ie lsnrctl start ODBC1 and lsnrctl start ) and both are running fine without any error below are the status.
LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 05-MAR-2012 18:42:09
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=admin-amc)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
Start Date 05-MAR-2012 18:32:15
Uptime 0 days 0 hr. 9 min. 56 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File C:\oracle\ora9I\network\admin\listener.ora
Listener Log File C:\oracle\ora9I\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC2ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=8080))(Presentation=HTTP)(Session=RAW))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=2100))(Presentation=FTP)(Session=RAW))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 2 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfullyLISTENER.ORA ODBC1 status
LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 05-MAR-2012 18:41:52
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=admin-amc)(PORT=1522)))
STATUS of the LISTENER
Alias ODBC1
Version TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
Start Date 05-MAR-2012 18:32:08
Uptime 0 days 0 hr. 9 min. 46 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File C:\oracle\ora9I\network\admin\listener.ora
Listener Log File C:\oracle\ora9I\network\log\odbc1.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=1522)))
Services Summary...
Service "ODBC1" has 1 instance(s).
Instance "ODBC1", status UNKNOWN, has 2 handler(s) for this service...
The command completed successfullyWhere hope i'm near to retrive the access data.
Regards
Moazam -
Error while connecting to Access Database
hi
i am making an application using Access Database using the following code
*try {*
*Connection conn=null;*
*Statement s=null;*
*ResultSet rs=null;*
*Context ctx=new InitialContext();*
*DataSource ds=(DataSource)ctx.lookup("jdbc/AccessDb");*
** conn = ds.getConnection();**
** s = conn.createStatement();**
*rs = s.executeQuery("select empname from stable");*
** IPrivateApplic1View.IRsElement elm=null;**
** while (rs.next())**
** elm=wdContext.nodeRs().createRsElement();**
** elm.setValue(rs.getString(1));**
** wdContext.nodeRs().addElement(elm);**
** } catch (Exception e) {**
** wdComponentAPI.getMessageManager().reportSuccess(""+e);**
** e.printStackTrace();**
but it is showing the error
*com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of AccessDb.*Hi
refer
[Connecting to MS Access using receiver JDBC Adapter (Without DSN)|Connecting to MS Access using receiver JDBC Adapter (Without DSN)]
[/thread/147169 [original link is broken]|/thread/147169 [original link is broken]]
thanks
suresh -
ERROR while connecting to Netezza Database from oracle 10g via dblink.
Gurus,
We are trying to connect to Netezza DB from oracle 10g DB.. We successfully establised ODBC connection but unable to retrieve data over the dblink connected from oracle to Netezza. We get this error.. Please HELP ASAP!!!!!!!!
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
Server and/or port attributes are empty {HY000,NativeErr = 33}Manik wrote:
We are trying to connect to Netezza DB from oracle 10g DB.. We successfully establised ODBC connection but unable to retrieve data over the dblink connected from oracle to Netezza. We get this error.. Please HELP ASAP!!!!!!!!
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
Server and/or port attributes are empty {HY000,NativeErr = 33}Always test ODBC client connectivity on the Oracle server to the remote and foreign database, first. Use the isql ODBC client command line interface (as the oracle or grid o/s user).
If this does not work, then Oracle HSO will also not work.
Once you have confirmed that this is working, then configure the HSO service for Oracle.
If that fails, enables ODBC client tracing for that HSO service (in the init file for that service) to see exactly what ODBC calls Oracle is making and which of these are failing. -
Error while connecting to Cloudscape Database
Hi All,
I am working on Sun's reference implementation App Server verson 1.3.1. It comes shipped with cloudscape database. When I write try to connect to this App Server through JSP that calls methods through Enterprise Java Beans I get this Error Message:
java.net.ConnectException: Connection refused: connect
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: Unable to
connect to database. Connection refused to host: XXXXXXXX; nested exception
is:
java.net.ConnectException: Connection refused: connect; nested exception
is:
javax.ejb.EJBException: Unable to connect to database. Connection refuse
d to host: XXXXXXXXX; nested exception is:
java.net.ConnectException: Connection refused: connect
javax.ejb.EJBException: Unable to connect to database. Connection refused to hos
t: XXXXXXXXX; nested exception is:
java.net.ConnectException: Connection refused: connect
<<no stack trace available>>
Can any one help me solve this problem.
Regards,
Venky.Have you started the database?
[]s
Michael -
Hi. I'm using Eclipse to develope jsp pages. I'm new to java.
I'm trying to connect from a jsp page to mysql server and i'm getting an error on the line below:
Class.forName("com.mysql.jdbc.Driver");
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
i downloaded the mysql jar file and i added it to my library folder.
the other question is that is there anyway to mention the name of the database in my connection?
conn =DriverManager.getConnection("jdbc:mysql://localhost","admin", "");hi this is the root cause i thought it might help
root cause
javax.servlet.ServletException: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.test_jsp._jspService(test_jsp.java:100)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:128)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
java.lang.ClassLoader.loadClassInternal(Unknown Source)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Unknown Source)
org.apache.jsp.test_jsp._jspService(test_jsp.java:85)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) -
Hi all,
I was facing problem from last week.Suddenly i was getting ora-12505 error while connecting to the database through toad.I tried to change tnsnames.ora & listener.ora in multiple ways,but no luck...Inspite i was getting different errors like ora - 01034: ORACLE not available / ora - 27101: shared memory realm does not exist...When i try to connect using sys / sys as sysdba,connection is establishing and when issue the command startup it was throwing the error ORA-01821: date format not recognized......Fed up solving these issues....Can some one help me out...It's very very urgent..
Thanks in advance,
pavankumar.Well, the obviously solution is to use separate Apple ID's for iCloud.
-
Could not find file ERROR while connecting to access (mdb) file
I am getting the following error while connecting to the database:
javax.servlet.ServletException: [Microsoft][ODBC Microsoft Access Driver] Could not find file 'C:\WINNT\system32\Database1.mdb'.
Following is my code:
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String database="jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
String filename="D://BeaTemp//Database1";
database+= filename.trim() + ";DriverID=22;READONLY=true}";
Connection con=DriverManager.getConnection(database, "", "");
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select * from Database1.Employee");
ResultSetMetaData rsmd=rs.getMetaData();
while(rs.next()){
for(int i=1;i<=rsmd.getColumnCount();i++) {
out.println(rs.getString(i));
%>
What could be the problem..??
Thankx in advance..
Satish.Got the solution.
The statement:
ResultSet rs=st.executeQuery("select * from Database1.Employee");
should be changed as:
ResultSet rs=st.executeQuery("select * from Employee");
Now, it is working fine.
Regards,
Satish. -
Getting "ORA-12514 error" while connecting first time
Hi,
Getting below error while connecting to the database first time.
ORA-12514: TNS:listener does not currently know of service requested in connect
apludc01dat25:e2cmpc1 > tnsping ora37_ap
TNS Ping Utility for Linux: Version 10.2.0.5.0 - Production on 26-MAR-2012 12:00:58
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
/grid/product/crs/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = apl11764clu01-scan-oravip.nat.bt.com)(PORT = 61901)) (CONNECT_DATA = (SERVICE_NAME = ORA37_ap))
OK (0 msec)
apludc01dat25:e2cmpc1 > sqlplus
SQL*Plus: Release 10.2.0.5.0 - Production on Mon Mar 26 12:00:15 2012
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Enter user-name: outln@ora37_ap
Enter password:
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
Enter user-name:
apludc01dat25:e2cmpc1 > sqlplus
SQL*Plus: Release 10.2.0.5.0 - Production on Mon Mar 26 12:00:22 2012
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Enter user-name: outln@ora37_ap
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL>
Please help me out to resolve this issue.
Thank you.
Regards,
DasarathHi,
We are getting this error while connecting remotely.
PFB output of listener status and services
apl11764a001:ORA37a > lsnrctl services LISTENER_ORA37
LSNRCTL for Linux: Version 11.1.0.7.0 - Production on 26-MAR-2012 12:18:06
Copyright (c) 1991, 2008, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_ORA37)))
Services Summary...
Service "ORA37_ap" has 1 instance(s).
Instance "ORA37a", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:2 refused:0 state:ready
LOCAL SERVER
Service "ORA37_ap_XPT" has 1 instance(s).
Instance "ORA37a", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:2 refused:0 state:ready
LOCAL SERVER
Service "ORA37aXDB" has 1 instance(s).
Instance "ORA37a", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: apl11764a001, pid: 25970>
(ADDRESS=(PROTOCOL=tcp)(HOST=apl11764a001)(PORT=10862))
The command completed successfully
apl11764a001:ORA37a > lsnrctl status LISTENER_ORA37
LSNRCTL for Linux: Version 11.1.0.7.0 - Production on 26-MAR-2012 12:18:20
Copyright (c) 1991, 2008, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_ORA37)))
STATUS of the LISTENER
Alias LISTENER_ORA37
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 26-MAR-2012 12:15:17
Uptime 0 days 0 hr. 3 min. 2 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /grid/product/crs/network/admin/listener.ora
Listener Log File /grid/product/crs/log/diag/tnslsnr/apl11764a001/listener_ora37/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_ORA37)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.25.169.4)(PORT=62037)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.25.169.7)(PORT=62037)))
Services Summary...
Service "ORA37_ap" has 1 instance(s).
Instance "ORA37a", status READY, has 1 handler(s) for this service...
Service "ORA37_ap_XPT" has 1 instance(s).
Instance "ORA37a", status READY, has 1 handler(s) for this service...
Service "ORA37aXDB" has 1 instance(s).
Instance "ORA37a", status READY, has 1 handler(s) for this service...
The command completed successfully
Thank you.
Regards,
Dasarath -
Error while connecting MYSQL Database
Hi,
I use a 30 days trial of Crystal Reports 2008. When i try to connect with the database i always get the next error: [http://www.visiscan.nl/error.jpg]
The database is 4.1GB large and there is 10GB free space on the database.
Anybody can tell me what to do?Hi Tom,
As I understand the error while connecting to database is
u201CFailed to retrieve data from databaseu201D
There could be some could be multiple reasons for this.
If you are using an ODBC connection then try to check the DSN. Recreate the same and then try.
If the database is oracle check if native client is installed and try to ping from the native client to check if it responds.
When connecting to Oracle, ensure that the Service name is identical to that used in the <ORA_HOME>/network/admin/tnsnames.ora file on the BusinessObjects XI Release 2 server.
For ODBC databases, ensure that the ODBC DSN is exactly the same in the ODBC Manager as on the BusinessObjects XI Release 2 server.
Please let us know if this helps
Regards,
Aditya Joshi -
Error while connecting to Database after Database upgradation
Hi All,
I installed and worked with BAM and used Oracle Database 9i previously. After the Database
was upgraded to 10g (10.2.0.4.0 which is compatible for BAM), I am trying to ReInstall BAM
which is throwing me an error.
It accepts the Database Login Information but at the step of building Repository for
Enterprise Link it gives up the following error:
' A connection with the database cannot be made '
Can anyone please help me to figure out this one.
Thanks,
VishalHi,
I also have the same problem.Could you plz tell us what configuration I need to add in tnsnames.ora file.
content of my tnsnames.ora file is below
# tnsnames.ora Network Configuration File: C:\DevSuiteHome_2\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = Rahul-PC)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = PLSExtProc)
) -
Error while running adpreclone on Database Tier
Hii..
im getting following error while running adpreclone on database Tier,
This is Error Message coming,
D:\APPSORA\proddb\10.2.0\appsutil\scripts\PROD_diwaf-prd-erpdb>perl adpreclone.pl dbTier
Running Rapid Clone with command...
perl D:\APPSORA\proddb\10.2.0\appsutil\bin\adclone.pl java=D:\APPSORA\proddb\10.2.0\jre\1.4.2 mode=stage stage=D:\APPSORA\proddb\10.2.0\appsutil\cl
one component=dbTier method=CUSTOM dbctx=D:\APPSORA\proddb\10.2.0\appsutil\PROD_diwaf-prd-erpdb.xml showProgress
Beginning database tier Stage - Tue Oct 4 09:54:38 2011
APPS Password : amapps2011
Log file located at D:\APPSORA\proddb\10.2.0\appsutil\log\PROD_diwaf-prd-erpdb\StageDBTier_10040954.log
- 0% completed
ERROR while running Stage...
ERROR while running perl D:\APPSORA\proddb\10.2.0\appsutil\bin\adclone.pl java=D:\APPSORA\proddb\10.2.0\jre\1.4.2 mode=stage stage=D:\APPSORA\proddb\10.2.0
*\appsutil\clone component=dbTier method=CUSTOM dbctx=D:\APPSORA\proddb\10.2.0\appsutil\PROD_diwaf-prd-erpdb.xml showProgress ... Please check the log for*
more details..
I checked logfiles also...but there is no information,
t*he folowing is the logfiles contents*
Started StageDBTier at Tue Oct 04 09:05:11 GMT+03:00 2011
Version:
StageDBTier.java : 115.27
ADX Database Utility
getConnectionUsingAppsJDBCConnector() -->
APPS_JDBC_URL='null'
Trying to get connection using SID based connect descriptor
getConnection() -->
sDbHost : diwaf-prd-erpdb
sDbDomain : af.gov.local
sDbPort : 1521
sDbSid : PROD
sDbUser : apps
Trying to connect using SID...
getConnectionUsingSID() -->
JDBC URL: jdbc:oracle:thin:@diwaf-prd-erpdb.af.gov.local:1521:PROD
Connection obtained
-------------------ADX Database Utility Finished---------------
D:\APPSORA\proddb\10.2.0\appsutil\scripts\PROD_diwaf-prd-erpdb>
My Apps version is 11.5.10.2
my DB version is 10.2.0.4
IM using windows server 2003 R2 entrepriose edition service pack 2.
There is no error running adpreclone on AppsTier.
Can anyone help me in solving the issue.
waiitng for your replies
Thanks in advance.As mentioned in the document https://kr.forums.oracle.com/forums/thread.jspa?threadID=295697&messageID=2252395
I checked my echo $PATH and it gives the follwing o/p
D:\APPSORA\proddb\10.2.0>echo %PATH%
C:\Perl\bin\;D:\APPSORA\proddb\10.2.0\bin;D:\APPSORA\proddb\10.2.0\jdk\bin;D:\APPSORA\proddb\10.2.0\jdk\bin;C:\orant\bin;D:\APPSORA\prodora\8.0.6\bin;C:\Pe
rl\site\bin;C:\Perl\bin;B:\PROGRA~1\MKSTOO~1\bin;B:\PROGRA~1\MKSTOO~1\bin\x11;B:\PROGRA~1\MKSTOO~1\mksnt;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32
*\wbem;c:\program files\hp\hp bto software\bin;c:\program files\hp\hp bto software\bin\opc*
I checked the zip version as follows
which zip
D:\APPSORA\proddb\10.2.0\bin/zip.exe
zip -v
Copyright (c) 1990-2006 Info-ZIP - Type 'zip "-L"' for software license.
This is Zip 2.32 (June 19th 2006), by Info-ZIP.
D:\APPSORA\proddb\10.2.0>which java
D:\APPSORA\proddb\10.2.0\jdk\bin/java.exe
D:\APPSORA\proddb\10.2.0>java -version
java version "1.4.2_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_14-b05)
Java HotSpot(TM) Client VM (build 1.4.2_14-b05, mixed mode)
D:\APPSORA\proddb\10.2.0>which perl
C:\Perl\bin\perl.exe
D:\APPSORA\proddb\10.2.0>perl -version
This is perl, v5.10.0 built for MSWin32-x86-multi-thread
*(with 5 registered patches, see perl -V for more detail)*
Is there any problems with o/p obtained.
Plz suggest
Thanks.. -
Hi,
I have installed Oracle Workflow Builder 2.6.3 recently on my system and after installation, when I am trying to connect the workflow builder (using database username/password of that particular instance), it is throwing me the following error:
220: Unable to set NLS_LANGUAGE.
210: Oracle Error: ORA-01403: no data found
. SQL text: SELECT NLS_LANGUAGE FROM WF_LANGUAGES WHERE :l IN (NLS_LANGUAGE, CODE)
In the previous threads when I searched for the same issue, I found that if
select value from v$nls_parameters
where parameter='NLS_CHARACTERSET';
returns the value other then WE8ISO8859P1 then that is what I should change my NLS_LANG entry for the builder - i.e. AMERICAN_AMERICA.<character set>.
But I am not getting where should I change NLS_LANG, it is located where...some file? I am new to Workflow.
Please help me. I tried a lot. Any type of help will be highly appreciated.
Thanks,
SumirThis issue (and solution) is described in ML Doc 577905.1 (Error While Connecting To Database Via Workflow Builder)
HTH
Srini
Maybe you are looking for
-
ITunes 11 No Longer Able to Sync Contacts with Google?
Hello, I sincerely apologize if I am posting a redundant topic here; however, I was unable to find any other posted solutions. After upgrading to iTunes 11, I noticed that there is no longer an option to sync the contacts on my iPhone to my Google Co
-
Hi, how can I access webservices through MI. Also If i have a database which allows jdbc access how do I access it thru MI.?
-
Need script for exporting images to EPS
I need to write a script to export a whole bunch of files from Indesign CS3 to EPS files. Right now we do them one at a time...here are the steps we take that we would need included in the script... Select all (Control A), ungroup, convert to outline
-
Error while compiling form in AS 10g deployed on Linux
Hello, I am trying to compile a form which references a PLL(PLX) file. I get the following error. ================================================ Compiling procedure SETUP_CHECK: Compiling error on procedure SETUP_CHECK: PL/SQL Error 201 on Line 47,
-
Prevent multiple personnel actions being performed on the same day
Hi Experts, Does anyone know if it is possible to prevent multiple personnel actions from being performed on the same day even where the action does not change the status of the employee? Regards, Janet