Database connectivity requiring oracle wallet, tnsnames.ora, and sqlnet.ora
We have a new datasource that I need to write a report against. In order to access the db, I have to install an Oracle wallet on my pc that contains a certificate. I then have an entry in the sqlnet.ora file that references this wallet, and I have an entry in my tnsnames file. I wrote a report successfully on my pc. We then have our Business Objects installation on a Sun Solaris machine with Unix. We installed the wallet, added the sqlnet.ora entry, and the tnsnames.ora entry. I am able to connect to the db from the unix command prompt by typing sqlplus username@dbname successfully. However, when I place my Crystal Report in Bus. Obj. I cannot get it to work. I go to the CMC, select the report, choose Process, Database. I am entering Use custom database logon info and choosing Oracle as my database driver. I then enter the tnsnames entry into the server and enter my username and password and check the use use same database logon as when report is run. I get the error The database logon information for this report is either incomplete or incorrect. I'm guessing the report is not using the certificate in the wallet when it is trying to log on, but I'm not sure. Does anyone have any suggestions or experience with this? Thanks in advance for any help.
Hi Angie,
you should install the 32bit Oracle driver on your Solaris machine and adjust the LD_LIBRARY_PATH environment variable (in the profile of the BOBJ installation user) to point to the path of the 32bit libraries of your Oracle driver.
BOBJ is not a native 64bit software and can therefore work only with the 32bit versions of the database drivers.
Regards,
Stratos
Edited by: Efstratios Karaivazoglou on Jul 15, 2009 4:49 PM
Similar Messages
-
Connect with ldap.ora and sqlnet.ora
Hi
I am trying to connect Raptor to 9i oracle server. Our server connects using ldap.ora and sqlnet.ora files. I looked at some threads about this issue but do not understand how to connect. Is there a step by step instruction for connecting this way?
Thanks
DHHi VRamirez,
That's a pretty cool workaround. I'm sorry to hear it didn't work perfectly.
Here is the "low tech" workaround anyone can use -
From the %ORACLE_HOME% where your sqlnet.ora is, run %ORACLE_HOME%\bin\tnsping eg.
C:\> tnsping oracle.world
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 21-APR-2006 22:56:31
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
c:\oracle\oracli92\network\admin\sqlnet.ora
Used LDAP adapter to resolve the alias
Attempting to contact (DESCRIPTION=(SOURCE_ROUTE=OFF)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle.xxxx.xx)(
PORT=xxxx)))(CONNECT_DATA=(SID=ORCL))(SRVR=SHARED))
OK (200 msec)
C:\>
Now copy the (DESCRIPTION=...) and paste it into the advanced TNS info tab in the Connections dialog. This works for me for everything but RAC TNS aliases which have load balancing and failover configured -- the advanced TNS info tab chokes on those. For such connections, I was able to use the JDBC string.
-Natalka
http://toolkit.rdbms-insight.com -
Listener.ora and tnsnames.ora and sqlnet.ora
Hello newbie here, trying to look into simple RAC setup with 2 nodes (A.this.com, B.this.com), one service (PROD.this.com), one listener and one instance on each node (listener PRODlist1 using instance PRODinstance1 on node A, listener PRODlist2 using instance PRODinstance2 on node B), one database (ORCL).
db global db name = orcl.this.com
I would like loadbalancing=on, with TAF basic (no preconnect, retries 10, delay 5.)
With dynamic service registration.
What should the tnsnames.ora and listener.ora and sqlnet.ora look like?
Have read all sorts of literature, getting confused...I post my sample configuration here:
DBA1.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(FAILOVER=ON)
(LOAD_BALANCE=ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.1)(PORT = 1521))
(CONNECT_DATA =
(BACKUP=DBA2)
(SERVICE_NAME = DBA.WORLD)
DBA2.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(FAILOVER=ON)
(LOAD_BALANCE=ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.2)(PORT = 1521))
(CONNECT_DATA =
(BACKUP=DBA1)
(SERVICE_NAME = DBA.WORLD)
) -
TNSNAME.ORA and SQLNET.ORA
Hi there!
My problems is regarding connection to Ora Frms/reports which for so many days I am trying but to no avail.
Some are suggesting to copy TNSNAME.ORA AND SQLNET.ORA for in order to work better connection on FORMS/REPORT.
Kindly advice on how to do it.
thnaks
nullIf you use 8i, form and report use TNS
config from sqlplus. If you can get in sqlplus does not mean you can log in
form ad report. You need to Config the TNS in an option called something like
'Network Config Assistant'or similar. You should find it from the list.
Another is to edit the TNSname.ora in the admin directory under you form and report initial path with the command from the previous mail -
Oracle 10g I don't have the files listener.ora, tnsnames.ora and sql.ora
Hi folks,
I uninstalled my Oracle 10g and when I re installed I got success, but when I went to the folder \network\admin didn't have the files listener.ora, tnsnames.ora and sql.ora. I have been trying during more than one month start my listener only because I need access the Oracle database from my Java application and I got the message:
java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
As additional information, I got no problem to access the SQL*Plus.
=======================
C:\>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 18-APR-2006 10:53
:58
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 61: Unknown error
====================
C:\>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Media State . . . . . . . . . . . : Media disconnected
Ethernet adapter Wireless Network Connection 2:
Connection-specific DNS Suffix . : myhome.westell.com
IP Address. . . . . . . . . . . . : 192.168.0.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
Thanks in advance.Thanks ALL, I GOT IT, but I used other solution.
Since I installed and uninstalled the Oracle several times, it keeps also many different Services for the listener. I don't know why, it didn't create a Service for my actual instalation with its path. In other words, all the services remained in the services.msc panel, had the path that was already removed from the Windows folder.
Then what I did, was that I picked one service, took its name (OracleOraDb10g_home1TNSListener), went to regedit to [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\OracleOraDb10g_home1TNSListener] and simply changed the image path that was setted for the one that was removed (C:\oracle\product\10.1.0\Db_2\BIN\TNSLSNR ) for mine that is installed right now
(C:\oracle\product\10.1.0\Db_1\BIN\TNSLSNR). Nothing more and finally works.
I have tried something in the services.msc panel before, as you can see in this forum at the thread "I can't start listener in the Control Painel/Admin Tools/ Services", but I never got
success.
Appreciate your time!! -
Connection between oracle forms10g on XP and oracle db 11g on WINDOWS 7
Hello,
I am trying to connect forms 10g R2 to oracle 11g.
My forms is on windows XP inside VMware while my db is on windows 7 64 bit host.
i have tried all ways known to me and the ones i saw on the internet but none works.
I will be glad if you can refer me to a link that talks on this type of connection in details or any solution you can provide.
Thanks in anticipation
AbdurRahmanThank you for your response,
1) I copied the tnsnames.ora,sqlnet.ora and listener.ora files from the database 11g on the windows 7 host to the DevSuiteHome_1\NETWORK\ADMIN path for the developer
suite 10g on XP Vmware.
2) I also entered the host address in the C:\WINDOWS\system32\drivers\etc\host file i.e 192.168.202.54 AAJANI-pc.
below are the details of my db and forms
DB
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
FORMS
Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle Toolkit Version 10.1.2.0.2 (Production)
PL/SQL Version 10.1.0.4.2 (Production)
Oracle Procedure Builder V10.1.2.0.2 - Production
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Oracle Query Builder 10.1.2.0.2 - Production
Oracle Virtual Graphics System Version 10.1.2.0.2 (Production)
Oracle Tools GUI Utilities Version 10.1.2.0.2 (Production)
Oracle Multimedia Version 10.1.2.0.2 (Production)
Oracle Tools Integration Version 10.1.2.0.2 (Production)
Oracle Tools Common Area Version 10.1.2.0.2
Oracle CORE 10.1.0.4.0 Production
the error i got whenever i try to connect to the db from forms is
ORA-12170:TNS:Connect timeout occurred.
once again
Thanks in advance -
What should have in equal tnsnames,ora and listener.ora?
Hi forum members again I'm very new in oracle, and I'm trying to create a sucessfull net service name, using oracle net configuration assitant, but when I try to test it I got this error, .***"""ORA-12514: TNS:listener does not currently know of service requested in connect descriptor."""*** And I have read that tnsnames.ora and listener.ora should have some parameters in common, but exactly I don't know, Do you know what parameters should be? or The ORA-12514 problem , doesn't have relation with the tnsnames.ora and listener files?, If doesn't wich is the reason of this message?
By the way I put what contain these files:
---------------------------------------------------------------------------listener.ora
# listener.ora Network Configuration File: /opt/oracle/product/10.1.0.3/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = oracle.gentoo)
(ORACLE_HOME = /opt/oracle/product/10.1.0.3)
(SID_NAME = oracle)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
SAVE_CONFIG_ON_STOP_LISTENER = TRUE
TRACE_LEVEL_LISTENER = USER
/////////////////////////////////////////////////////////////////////////////tnsnames.ora
# tnsnames.ora Network Configuration File: /opt/oracle/product/10.1.0.3/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
NORACLE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = tux)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = noracle)
By the way what must be the username and the pasword that ask the ORACLE CONFIGURATION ASSINTANT to test the net service name? Must be the user name and password of the system user?
Thanks in advanceOK, here we go ... extra long as I intend to bookmark this and make reference, as this is a very common question ... skip to the bottom if you want my guess to the solution.
Oracle Net Services (formerly SQL*Net, Net8, Oracle Networking) has two parts - the client and the server side. I'll discuss the server first, then the client.
1) Server, and specifically Listener:
The Oracle Listener is a monitor that listens for Oracle service requests on one or more ports. Usually this is on TCP/IP port 1521. When it gets an Oracle request from any network client, it checks whether it's in the list of Oracle Services for which it is monitoring. If found, it will contact that service, request a connection for the client, tell the service and client where and how to connect, and get itself out of the loop.
Notes:
a) It can listen on behalf of any number of services;
b) A service can be a database instance, an EPG service (the DBMS_EPG is the replacement for Apache in the database in 10gR2), an external job, etc;
c) One listener can listen on behalf of multiple database instances;
d) The services can be listed in the LISTENER.ORA or they can self-register;
e) If databases self-register, they use the initialization parameter LOCAL_LISTENER
f) If self-registering, the listener should be up before the database
g) Shutting down the listener will stop future connections, but has no impact on existing ones.
One frequent point of confusion - a connection request on the local machine may loop out to the network and contact the listener, or it may bypass the listener entirely and use a bequeath adapter. The 'beq' connection is the 'normal' connection by "sqlplus / as sysdba" or "sqlplus system/manager" on the local machine (note that no @instance was used ... in *nix, that is derived from the $ORACLE_SID environment variable)
In your listener.ora, you specify global_dbname=oracle.gentoo and sid_name=oracle. I assume therefore you can find an initoracle.ora or spfileoracle.ora somewhere on your system.
2) Client:
A client that wants to connect to an Oracle service uses the client side of the Oracle Net Services. The definition of client includes: any Oracle client utiltiy (SQLPlus, SQLLoad, Forms, Reports, etc.); an Oracle database instance that wants to make a external procedure call or a dblink; third party tools such as ODBC and JDBC.
In SQL*Net version 1 the connection was made by specifying the target in the connect string ("user/password@host:listener_port:sid") and that is also used these days by many JDBC drivers, especially the Oracle Thin JDBC driver. Oracle's Easy connection mechanism uses a similar variant.
Since SQL*Net Version 2, Oracle has supported the concept of alias translation. Basically it's very similar in concept to DNS - give it the name of the service and tell it where to find the translation table. The translation tables include TNSNAMES.ORA, ONAMES servers (deprecated in 10g), LDAP usng Oracle's OiD. The choice of translation table, and alternate order if the lookup fails in one, is stored in the SQLNET.ORA (if one exists).
Assuming TNSNAMES.ORA, the chain of events is:
- get the alias to look up (in your case NORACLE);
- if the SQLNET.ORA has a DEFAULT_DOMAIN setting, (often =WORLD) append a dot and that value to the alias;
- go to the TNANSMES.ORA file pointed by the TNS_ADMIN variable (environment or registry), or (if not set) the one in the $ORACLE_HOME/network/admin directory;
- look up the first occurance of the alias;
- if found, use the protocol specified to request a connection to the host, usin DNS to unravel the host to an IP address if necessary (in your case TCP/IP, to TUX) ;
- if host connection if made, connect to the listener that is configured for that port (in your case 1521);
- if listener is there, ask it for connection to the service (in your case, you are asking for instance 'noracle');
i if the listener knowwss about the service, it will hand off the request.
Your problem appears to be asking for instance 'noracle' in the tnsnames but listeneing for 'oracle' at the listener. Of course, I can not see any auto-registered instances which you would get from "lsnrctl status" on the server. -
Tnsnames.ora and listener.ora
I am studying oracle and came accross
tnsnames.ora and listener.ora file.
Can any one tell me in simplified terms about these 2 files. what are they and what exactly they do?When you are accessing Oracle over network you need a listerner service (usually on server box) and SQLNet or Net8 client on client machine. Listener.ora specifies the parameters for listener process and tnsnames.ora contains the SQLNet or Net8 connection informations about database server(s)
-
Best Practices: tnsnames.ora and listener.ora
I would like to know if it is better to use the public ip / public hostname or the virtual ip / virtual hostname in the tnsnames.ora and listener.ora files on the servers and clients. I have seen examples where the vip is used for all areas, and I have seen examples where the public has been used in all areas. And of course even some examples where both are used. It makes more sense to me to use the vip, as that is what is failed over But what is the public ip used for if all connections are made to the vip?
ThanksDatabase version: 10.2.0.4
Server OS: Red Hat Linux Enterprise 4.6 (RHEL4)
Oracle Rac configuration: 4 node cluster.
host file:
10.1.1.50 rac1.somcompany.com rac1priv # RAC1
10.1.1.51 rac2.somcompany.com rac2priv # RAC2
10.1.1.52 rac3.somcompany.com rac3priv # RAC3
10.1.1.53 rac4.somcompany.com rac4priv # RAC4
172.16.71.50 rac1.somcompany.com rac1pub # RAC1
172.16.71.51 rac2.somcompany.com rac2pub # RAC2
172.16.71.52 rac3.somcompany.com rac3pub # RAC3
172.16.71.53 rac3.somcompany.com rac4pub # RAC4
172.16.72.50 rac1.somcompany.com rac1vip # RAC1
172.16.72.51 rac2.somcompany.com rac2vip # RAC2
172.16.72.52 rac3.somcompany.com rac3vip # RAC3
172.16.72.53 rac3.somcompany.com rac4vip # RAC4
So if I was to create a tnsnames files on the servers, would I use the vip information as the host or the public information?
Would I use the same tnsnames files for the clients?
Would I use the vip or public address in the listener files?
Thanks -
How we build Java Database Connectivity for Oracle 8i Database
Can any one send me a sample code for Java Database Connectivity for Oracle 8i Database
it will be a grat help
Thanks & Regards
RasikaYou don't need a DSN if you use Oracle's JDBC driver.
You didn't read ANY of the previous replies. What makes you think this one willk help? Or any instruction, for that matter?
Sounds like you just want someone to give it to you. OK, I'll bite, but you have to figure out the rest:
import java.sql.*;
import java.util.*;
* Command line app that allows a user to connect with a database and
* execute any valid SQL against it
public class DataConnection
public static final String DEFAULT_DRIVER = "sun.jdbc.odbc.JdbcOdbcDriver";
public static final String DEFAULT_URL = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\Edu\\Java\\Forum\\DataConnection.mdb";
public static final String DEFAULT_USERNAME = "admin";
public static final String DEFAULT_PASSWORD = "";
public static final String DEFAULT_DRIVER = "com.mysql.jdbc.Driver";
public static final String DEFAULT_URL = "jdbc:mysql://localhost:3306/hibernate";
public static final String DEFAULT_USERNAME = "admin";
public static final String DEFAULT_PASSWORD = "";
/** Database connection */
private Connection connection;
* Driver for the DataConnection
* @param command line arguments
* <ol start='0'>
* <li>SQL query string</li>
* <li>JDBC driver class</li>
* <li>database URL</li>
* <li>username</li>
* <li>password</li>
* </ol>
public static void main(String [] args)
DataConnection db = null;
try
if (args.length > 0)
String sql = args[0];
String driver = ((args.length > 1) ? args[1] : DEFAULT_DRIVER);
String url = ((args.length > 2) ? args[2] : DEFAULT_URL);
String username = ((args.length > 3) ? args[3] : DEFAULT_USERNAME);
String password = ((args.length > 4) ? args[4] : DEFAULT_PASSWORD);
System.out.println("sql : " + sql);
System.out.println("driver : " + driver);
System.out.println("url : " + url);
System.out.println("username: " + username);
System.out.println("password: " + password);
db = new DataConnection(driver, url, username, password);
System.out.println("Connection established");
Object result = db.executeSQL(sql);
System.out.println(result);
else
System.out.println("Usage: db.DataConnection <sql> <driver> <url> <username> <password>");
catch (SQLException e)
System.err.println("SQL error: " + e.getErrorCode());
System.err.println("SQL state: " + e.getSQLState());
e.printStackTrace(System.err);
catch (Exception e)
e.printStackTrace(System.err);
finally
if (db != null)
db.close();
db = null;
* Create a DataConnection
* @throws SQLException if the database connection fails
* @throws ClassNotFoundException if the driver class can't be loaded
public DataConnection() throws SQLException,ClassNotFoundException
this(DEFAULT_DRIVER, DEFAULT_URL, DEFAULT_USERNAME, DEFAULT_PASSWORD);
* Create a DataConnection
* @throws SQLException if the database connection fails
* @throws ClassNotFoundException if the driver class can't be loaded
public DataConnection(final String driver,
final String url,
final String username,
final String password)
throws SQLException,ClassNotFoundException
Class.forName(driver);
this.connection = DriverManager.getConnection(url, username, password);
* Get Driver properties
* @param database URL
* @return list of driver properties
* @throws SQLException if the query fails
public List getDriverProperties(final String url)
throws SQLException
List driverProperties = new ArrayList();
Driver driver = DriverManager.getDriver(url);
if (driver != null)
DriverPropertyInfo[] info = driver.getPropertyInfo(url, null);
if (info != null)
driverProperties = Arrays.asList(info);
return driverProperties;
* Clean up the connection
public void close()
close(this.connection);
* Execute ANY SQL statement
* @param SQL statement to execute
* @returns list of row values if a ResultSet is returned,
* OR an altered row count object if not
* @throws SQLException if the query fails
public Object executeSQL(final String sql) throws SQLException
Object returnValue;
Statement statement = null;
ResultSet rs = null;
try
statement = this.connection.createStatement();
boolean hasResultSet = statement.execute(sql);
if (hasResultSet)
rs = statement.getResultSet();
ResultSetMetaData meta = rs.getMetaData();
int numColumns = meta.getColumnCount();
List rows = new ArrayList();
while (rs.next())
Map thisRow = new LinkedHashMap();
for (int i = 1; i <= numColumns; ++i)
String columnName = meta.getColumnName(i);
Object value = rs.getObject(columnName);
thisRow.put(columnName, value);
rows.add(thisRow);
returnValue = rows;
else
int updateCount = statement.getUpdateCount();
returnValue = new Integer(updateCount);
finally
close(rs);
close(statement);
return returnValue;
* Close a database connection
* @param connection to close
public static final void close(Connection connection)
try
if (connection != null)
connection.close();
connection = null;
catch (SQLException e)
e.printStackTrace();
* Close a statement
* @param statement to close
public static final void close(Statement statement)
try
if (statement != null)
statement.close();
statement = null;
catch (SQLException e)
e.printStackTrace();
* Close a result set
* @param rs to close
public static final void close(ResultSet rs)
try
if (rs != null)
rs.close();
rs = null;
catch (SQLException e)
e.printStackTrace();
* Close a database connection and statement
* @param connection to close
* @param statement to close
public static final void close(Connection connection, Statement statement)
close(statement);
close(connection);
* Close a database connection, statement, and result set
* @param connection to close
* @param statement to close
* @param rs to close
public static final void close(Connection connection,
Statement statement,
ResultSet rs)
close(rs);
close(statement);
close(connection);
}% -
Tnsnames.ora and listener.ora dissappearing
We are ruinning oracle 9.2.0.6.0 on Solaris 9 on a Sun-Fire-440.
We are having an issue where the above mentioned files (tnsnames.ora and listener.ora) keep dissappearing on this box.
We cannot seem to find anything in the unix logfiles or oracle log files, has anybody got any ideas on what could be causing this?
Mark Stewart.If the files are being deleted then the timestamp on the directory which contains them will be updated ( given by ls -l ) . this would enable one to find out the time when they were deleted ( as long as nothing else in the same directory is being changed ) . It would be interesting to see if the deletes always happen at the same time , which would imply some automatic process , perhaps running under cron.
-
Tnsname.ora and listener.ora files in RAC environment.
Want to clear my concept regarding
tnsname.ora and listener.ora files in RAC environment. Is there any good notes on Metalink for that?Check this metalink note, it covers specific RAC issues:
Configuration of Load Balancing and Transparent Application Failover
Note:226880.1
Werner -
i am facing problem when configuring listener.ora and tnsnamess.ora in listener side it is showing The listener supports no services The command completed successfully and in when i cross check with listener from tns it is showing the error
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
here is my listener file
lsn =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.125.128)(PORT = 1575))
#ADR_BASE_LISTENER = /u01/app/oracle
(SID_LIST_LISTENER=
(SERVICE_NAME=kull)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1)
tnsnames.ora
to_lsn=
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = server1)(PORT = 1575))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = kull )
my database name is kull
please somebody helpBiswaranjan wrote:
i have two database one is kull and another is kk
i configured listener.ora in kull
and tnsnames.ora in kk
when i am running lsnrctl start listener in database kull
This makes no sense. You don't configure a listener nor a tnsnames.ora "in a database". I hope this is just a language issue and not reflective of a fundamental misunderstanding of how tns works.
read: http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/ Help! I can’t connect to my database
read: http://edstevensdba.wordpress.com/2011/02/16/sqlnet_client_cfg/ Help! I can’t connect to my database (part duex)
it is showing the message
Alias lsn
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 05-JUL-2013 19:08:06
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/11.2.0/db_1/log/diag/tnslsnr/server1/lsn/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1575)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=server1)(PORT=1575)))
The listener supports no services
The command completed successfully
and in another database in kk when i am giving the command tnsping to_lsn
it is giving this message
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = server1)(PORT = 1575)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = kull)))
OK (0 msec)
but when i am cross check sqlplus system/manager@ to_lsn
it is giving the following error
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor -
Do we still have initSID.ora and pfile.ora in 9i2
I wonder if we still have initSID.ora and pfile.ora in oracle database 9i2? if we have, where are they? thanks
If you are using the parameter file, you should find it in $ORACLE_HOME/dbs or $ORACLE_HOME/database folder depending on your operating system.
-
Connect to Oracle DB using DBCP and tnsnames.ora
I have a Spring-based web app that is running on Tomcat and uses DBCP to connect to Oracle.
The problem:
Need to pull database connection information from tnsnames.ora file. There is Oracle Client installed on a server, so tnsnames file is available.
According to JDBC documentation, the following url should do the trick: jdbc:datadirect:oracle:TNSNamesFile=c:\\oracle\\product\\10.2.0\\NETWORK\\ADMIN\\tnsnames.ora;TNSServerName=FITZGERALD.SALES
This leads to the following declaration in dataAccessContext-local.xml file:
+<bean id="dataSource" class="org.apache.tomcat.dbcp.dbcp.BasicDataSource" destroy-method="close">+
+<property name="driverClassName" value="oracle.jdbc.OracleDriver"/>+
+<property name="url" value="jdbc:datadirect:oracle:TNSNamesFile=C:\\oracle\\product\\10.2.0\\db_1\\network\\admin\\tnsnames.ora;TNSServerName=TESTDB"/>+
+<property name="username" value="${jdbc.username}"/>+
+<property name="password" value="${jdbc.password}"/>+
+</bean>+
This doesn’t work for me saying that database url is invalid.
Can anyone provide instructions on how to set up DBCP with tnsnames.ora?
Any help greatly appreciated.You are right, the I got that url may not be correct. I got it from datadirect documentation.
I couldn�t find any good information or examples on this, but I think using TNS keyword-value pairs and tnsnames.ora is supported by type4 Oracle 10g JDBC.
Some info I found in section �Connecting to the Database through the Applet� in JDBC Reference http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/jdbcthin.htm#CACCHECD
I guess there is something off in that documentation though. I couldn't get it working.
Maybe you are looking for
-
Sales Analysis for a certain period
Hello Experts, In standard Sales Analysis Report, when we run report for a certain period for "Customers" and when we run the report with same parameters for "Items" it gives different results. Can anybody please guide me, why these results are diffe
-
I have a MacBook Air with Mac OS Os10.5.8. I tried to buy from Appel store an upgrade to 10.6... It is impossible outside the U.S. because of zjp cod request. Please What I do to upgrade My operating system Mac OS Os10.5.8?
-
Error in Distribution of Actual cost in Cost Object Hierarchy
Hi, I am getting an error while doing the Distribution of Actual cost from Cost Object Node to the assigned Order. Cost element/origin 630000 could not be distributed Message no. KZ468 Diagnosis The cost element/ origin 630000 could not be distribute
-
Hello All, I am new to Enterprise Resource Planning and SAP R/3 software in particular. Does anyone have a document explaining the basics of how a SAP R/3 system works? e.g. How does R/3 store data, what are tables and why are they used, what are doc
-
Reg:Foriegn Currency Revaluation
HI all, What is the use of Foriegn Currency revaluation and how to configure it. regards JK