Error connecting to database thru tnsnames.ora in linux
Hi,
I can connect to database using service and port. Now i want to connect using the tnsnames. The following code returns error.
import java.sql.;*
import oracle.jdbc.OracleDriver;
import oracle.jdbc.pool.OracleDataSource;
public class Test
public Test()
System.setProperty("oracle.net.tns_admin","\oracle\product\TNS");
public static Connection getConnection() throws SQLException
OracleDataSource ds = new OracleDataSource();
ds.setTNSEntryName("CMAD");
ds.setDriverType("thin");
ds.setUser("scott");
ds.setPassword("tiger");
Connection conn = ds.getConnection();
return conn;
public void run () throws SQLException
Connection conn = getConnection();
System.out.println("Check Auto Commit = " + conn.isClosed());
conn.close();
public static void main(String[] args)
Test test = new Test();
try
test.run();
System.out.println("all done..");
catch (SQLException e)
e.printStackTrace();
\oracle\product\TNS is the place where my tnsnames.ora is stored and is set as TNS_ADMIN path in linux
I encounter the follwing error while running the class file of above code
java.sql.SQLException: Io exception: SO Exception was generated
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:161)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:273)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:327)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:365)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:150)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:31)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:563)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:195)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:145)
at Test.getConnection(Test.java:41)
at Test.run(Test.java:47)
at Test.main(Test.java:57)
Could someone help me? What is a SO exception?
Thanks in advance.
Allen
Hi,
Socket exception?
What does your CMAD TNS entry look like?
Regards
Peter
Similar Messages
-
Concurrent request - view output - Error connecting to database ORA-1017
Hi all,
When I run Active Users concurrent request.
It complete sucessfully without any error.
but when i click on view output then i get following error.
Error connecting to database ORA-1017
Reg
Chirag Patel
NairobiHi All,
I followed this metalink note.
Copy File : Error connecting to database ORA-1017 [ID 269511.1]
and it if working fine now.
Reg
Chirag Patel -
Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
Checks performed:
RMS Application code location and directory contents:
[oracle@test-rms-app application]$ pwd
/binary_files/STAGING_DIR/rms/application
[oracle@test-rms-app application]$ ls -ltr
total 144
-rw-r--r-- 1 oracle oinstall 272 Dec 7 2010 version.properties
-rw-r--r-- 1 oracle oinstall 405 Jan 16 2011 expected-object-counts.properties
-rw-r--r-- 1 oracle oinstall 892 May 13 2011 ant.install.properties.sample
-rw-r--r-- 1 oracle oinstall 64004 Jun 6 2011 build.xml
drwxr-xr-x 9 oracle oinstall 4096 Jun 16 2011 rms13
drwxr-xr-x 3 oracle oinstall 4096 Jun 16 2011 installer-resources
drwxr-xr-x 3 oracle oinstall 4096 Jun 16 2011 antinstall
drwxr-xr-x 2 oracle oinstall 4096 Jun 16 2011 ant-ext
drwxr-xr-x 5 oracle oinstall 4096 Jun 16 2011 ant
-rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
-rwxr-xr-x 1 oracle oinstall 4249 Dec 18 10:01 install.sh
drwxr-xr-x 4 oracle oinstall 4096 Dec 18 10:06 common
-rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
-rw-r--r-- 1 oracle oinstall 689 Dec 19 10:37 ant.install.log
[oracle@test-rms-app application]$
Application installation:
[oracle@test-rms-app application]$ ./install.sh
THIS IS the driver directory
Verified $ORACLE_SID.
Verified SQL*Plus exists.
Verified write permissions.
Verified formsweb.cfg read permissions.
Verified Registry.dat read permissions.
Verified Java version 1.4.2.x or greater. Java version - 1.6.0
Verified Tk2Motif.rgb settings.
Verified frmcmp_batch.sh status.
WARNING: Oracle Enterprise Linux not detected. Some components may not install properly.
Verified $DISPLAY - 172.16.129.82:0.0.
This installer will ask for your "My Oracle Support" credentials.
Preparing installer. This may take a few moments.
Your internet connection type is: NONE
Integrating My Oracle Support into the product installer workflow...
[move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
Installer preparation complete.
MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
WLS_INSTANCE=WLS_FORMS
ORACLE_SID=rmsdbtst
JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
Launching installer...
To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
[oracle@test-rms-app application]$ tnsping rmsdbtst
TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
Copyright (c) 1997, 2008, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
OK (0 msec)
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ ping test-rms-db
PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
--- test-rms-db.vonmaur.vmc ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4001ms
rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ uname -a
Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ cat /etc/*-release
Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
[oracle@test-rms-app application]$
The database is created and all the batch file scripts have been successfully deployed. Now working on the application server. The Weblogic server is installed and 11g forms and reports are installed successfully.
Any help would be helpful.
Thanks,
Ram.Please check MOS Notes:
FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1) -
I'm unable to connect to database thru cold fusion
I'm unable to connect to database thru cold fusion. it
sometiems give me an error that your uname is undefined , soemtimes
it gives ur index page not found so i created index page also but
still im unable to connect to database n update my records..plz
help me out..im a fresher in cold fusionI am having a similar problem having CFMX 7.02 verify my SQL
Server 2005 Data Sources.
I am using the sa account for CF to access the db's. But i
get the following error:
Connection verification failed for data source: myDatabase
java.sql.SQLException: [Macromedia][SQLServer JDBC
Driver]Error establishing socket. Connection refused: connect
The root cause was that: java.sql.SQLException:
[Macromedia][SQLServer JDBC Driver]Error establishing socket.
Connection refused: connect
Every role in SQL Server has the sa grantor Grant enabled. I
can also login to SQL Server with the sa account w/o a hitch.
I don't know what else to do. The server information is set
to the ServerName port 1433, datasource name and database name are
the same as the database name in sql server, and the username and
password are set for the sa account.
Thanks! -
Hello friends,
I know this question has been asked in a lot of other threads; but my problem is quite unique and that's why I'm starting a new thread...
When I try to access an Oracle 10g database through a Servlet code using a JDBC thin driver (both Tomcat and the database are running on Solaris 9), I get the following error:
"Error connecting to database - java.sql.SQLException: Io exception: The Network Adapter could not establish the connection"
However, there is another application running on the same server using the same database server (only the actual databases being used differ) and it is able to access the database without any issues. Both of these are absolutely similar applications and I couldn't think of any reasons why one would work and the other wouldn't. I thought they might be conflicting each other and tried running only the problematic application. But even then, I get the same error.
I know this might not be too relevant but to provide you some more information on the environment, the applications are running on separate Tomcat instances on the same server and they are connected to an Apache web server through Mod jk.
Any help in solving this problem is greatly appreciated!
Thanks!
Regards,
YogaeshYogaesh wrote:
The 'application' that works is also a Tomcat application... It's exactly same as the problematic application in terms of the configuration and stuff... As for the typo errors, I copied the config info and pasted it... So pretty much it should be the same. And to add an additional note, I'm able to connect to the database from my localhost... I mean if I run the problematic application from localhost (without Apache and directly hitting Tomcat) I'm able to access the screens...
The second part of that (localhost) usually isn't all that useful. You know it is a connection failure so that means the code is running and technically successfully (since connection failure is a legitimate runtime error.)
You know it isn't a firewall issue because it connects from another app in tomcat. So it must be a configuration issue.
So something like one of the following.
1. It isn't the same (we already know this but this particular item means that it is not in fact exactly the same because you deliberately or accidently modified it.)
2. It isn't pulling the right config. Maybe you aren't packaging it, maybe it is buffered on the server and it is using that rather than what you think it is.
3. Java code is referring to the wrong name.
Do this, change the configuration so it points to a server that does not exist. Repack, redeploy. If the error is the same (no diff) then you know that it is not running the code that you think it is. If it does change then you know that it can only be 1. -
Hello
I have just finished a dbcopy of Maxdb 7.6 to a new system with initilization.i can bring the db online. I have ran the xuser command to fix the db users as below command as per note 39439
i changed them in home dir of sidadm,sqdsid
xuser -U DEFAULT -u SAP<SID>,<password> -d <database_name> -n <database_server> -S SAPR3 -t 0 -I 0 set
c) DBM user: for example, CONTROL.
xuser -U c -u CONTROL,<password> -d <database_name> -n <database_server> -S INTERNAL set
d) SYSDBA user: for example, SUPERDBA.
xuser -U w -u SUPERDBA,<password> -d <database_name> -n <database_server> -S INTERNAL set
But iam having the below error now when trying to bring the SAP system up in dev_w0
C Try to connect (DEFAULT) onconnection 0 ...
C
C Mon Dec 19 21:46:11 2011
C *** ERROR => Connect to database failed, rc = -4008 (POS(1) Unknown user name/password combinati
on)
[dbsdbsql.cpp 137]
B ***LOG BY2=> sql error -4008 performing CON [dbsh#3 @ 1208] [dbsh 1208 ]
B ***LOG BY0=> POS(1) Unknown user name/password combination [dbsh#3 @ 1208] [dbsh 1208 ]
B ***LOG BY2=> sql error -4008 performing CON [dblink#8 @ 433] [dblink 0433 ]
B ***LOG BY0=> POS(1) Unknown user name/password combination [dblink#8 @ 433] [dblink 0433 ]
M ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c 1537]
M in_ThErrHandle: 1
M *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c 10837]
M
is there something that i missed somewhere?
Any ideas welcomeerpsyscs1:cs1adm 46> xuser list
XUSER Entry 1
Key :DEFAULT
Username :SAPCS1
UsernameUCS2:S.A.P.C.S.1. . . . . . . . . . . . . . . . . . . . . . . . . . .
Password :?????????
PasswordUCS2:?????????
Dbname :CS1
Nodename :erpsyscs1
Sqlmode :SAPR3
Cachelimit :-1
Timeout
Isolation
Charset :<unspecified>
XUSER Entry 2
Key :c
Username :CONTROL
UsernameUCS2:C.O.N.T.R.O.L. . . . . . . . . . . . . . . . . . . . . . . . . .
Password :?????????
PasswordUCS2:?????????
Dbname :CS1
Nodename :erpsyscs1
Sqlmode :INTERNAL
Cachelimit :-1
Timeout :-1
Isolation :-1
Charset :<unspecified>
XUSER Entry 3
Key :c_J2EE
Username :CONTROL
UsernameUCS2:C.O.N.T.R.O.L. . . . . . . . . . . . . . . . . . . . . . . . . .
Password :?????????
PasswordUCS2:?????????
Dbname :CS1
Nodename :erpsyscs1
Sqlmode :SAPR3
Cachelimit :-1
Timeout
Isolation
Charset :<unspecified>
XUSER Entry 4
Key :w
Username :SUPERDBA
UsernameUCS2:S.U.P.E.R.D.B.A. . . . . . . . . . . . . . . . . . . . . . . . .
Password :?????????
PasswordUCS2:?????????
Dbname :CS1
Nodename :erpsyscs1
Sqlmode :INTERNAL
Cachelimit :-1
Timeout :-1
Isolation :-1
Charset :<unspecified> -
Hi There,
I have Essbase 11.1.1.3, and I just have Reporting Studio installed , then I try to create new Report, insert Grid, then Database Connection property, I put essbase server name (same box), then admin user name and password, Application and database, I got the follwoing error:
Error connecting to database connection ApplicationName: CubeName
How can I fix this?
I did install Reporting Studio first, then found out WoekSpace is not installed, then I installed work space. Does this have anything to do with the connection error?
Thanks
Edited by: user8091395 on Jul 15, 2010 3:09 PMThank you for all for the reply.
This is my test box, which I have all essbase 11.1.1.3 components installed at this box (essbase server, eas, essbase studio), and yes, I can connect fine using Excel Add in from my laptop.
Essbase has been running for a while, then we need to have reporting tool, so I decide to install Reporting studio now, I download Financial Reporting studio zip file, install successfully at current essbase box. and got error at login, then realize I am missing workspace, then I install workspace, now I can login to reporting studio.
Only thing now is that I get the error I mention when connecting to essbase app and db.
Another thing I would like to mention is that I am using native essbase security on my test box, not share service.
Thanks again
Edited by: user8091395 on Jul 16, 2010 2:10 PM -
Issue with OIDM - Error connecting to database -1
In oidmon.log - "Error connecting to database -1".
Config : OID on W2k
Install created "ODS" user in the database. I can connect to the DB via SQLPLUS.
Any idea what "-1" implies. Any help would be greatly appreciatedIs this really a hard one to answer ? I have tried install, de-install, re-install nothing seems to work ?
I would appreciate any help on this.
Thx
-- Geoff -
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 -
Hi,
I just installed oracle reports 10g on windows. Using the report wizard i am trying to take reports. But i get the error "Could not resolve the connect identifier"
Using oracle client, i have defined a connect identifier and added the same to Microsoft data sources.
Where should this database be configured (assume sql reports). Should i configure something in oracle app server ? I am completely new to these concepts. Please help with answers.Hi,
Oracle reports try to connect to Oracle database, When you are connecting.
Oracle reports expect user name, password and database. When you provide these details, reports will pick the database server name/ip, SID information from $ORACLE_HOME/network/tnsnames.ora file and tries to connect to the database with provided username/password.
So, you need to have an entry in the tnsname.ora file with the provided "database" string in logon box.
Am I answering to your question or are you expecting something else? -
Error Connect to database failed : sqlcode=-4008 in dev_w0
Hi all,
I have a testing ABAP ECC5 system (in Windows 2003, MaxDB 7.6 build 35).
After changing default passwords of DB users SAP<SID>, CONTROL, SUPERDBA using DBMGUI, I then run commands below to update new passwords in XUSER entries (according to SAP Note 39439):
- xuser -U DEFAULT -u SAP<SID>,<password> -d <database_name> -n <database_server> -S SAPR3 -t 0 -I 0 set
- xuser -U c -u CONTROL,<password> -d <database_name> -n <database_server> -S INTERNAL set
- xuser -U w -u SUPERDBA,<password> -d <database_name> -n <database_server> -S INTERNAL set
The SAP system now cannot be started successfully. In dev_w0, there is info. like below:
"Connect to database failed : sqlcode=-4008 (Unknown user name/password combination)."
Command "r3trans -d" returns 0.
In SAP Note 39439 I see that maybe I should update info. for OS user SAPService<SID>. But I don't know what "..." means in command "xuser -c <domain>\SAPService<SID> ..."
I searched SAP SDN & SAP Notes, but still cannot fix this.
Please guide me to update XUSER entries after changing passwords of DB users.
Regards,> I have a testing ABAP ECC5 system (in Windows 2003, MaxDB 7.6 build 35).
Just as additional info: your database version is ancient - I suggest upgrading to a newer release.
> In SAP Note 39439 I see that maybe I should update info. for OS user SAPService<SID>. But I don't know what "..." means in command "xuser -c <domain>\SAPService<SID> ..."
The SAP system runs under User SAPService<SID>, you're most likely logged on using <sid>adm, that's why your "R3trans -d" connect is successful.
You have to execute the same command for the entry DEFAULT also for user <DOMAIN>\SAPService<SID>, that's what the dots mean
Markus -
TNSNAMES.ora in Linux OS
I have installed oracle database using ./dbca in Linux.
When I am connecting to oracle..
1. sys as sysdba
ORA-12162:TNS:net service name is incorrectly specified
2. sys@soni as sysdba
ORA-12154: TNS:could not resolve the connect identifier specified
There is not any TNSNAMES.ora file in NETWORK folder...
Can anybody tell me to solve this issue in Linux? ( I am new in Linux OS)The_Rock wrote:
I have installed oracle database using ./dbca in Linux.
When I am connecting to oracle..
1. sys as sysdba
ORA-12162:TNS:net service name is incorrectly specified
2. sys@soni as sysdba
ORA-12154: TNS:could not resolve the connect identifier specified
There is not any TNSNAMES.ora file in NETWORK folder...
Can anybody tell me to solve this issue in Linux? ( I am new in Linux OS)Hi,this error occur because *"soni"* entry(point) does not exits in tnsnames.ora file,this file must be located $ORACLE_HOME/network/admin/ location ,if does not exits then you can create this file manually or using netmanager.
1.Create tnsnames.ora file and add following lines(for example)
soni =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.10.201)(PORT = 1531))
(CONNECT_DATA =
(SERVICE_NAME = soni)
2.Or try following:(for example)
export ORACLE_HOME=/orahome/oracle/product/10.2.0/db_1;
$ORACLE_HOME/bin/./netmgrthen create this file using netmgr -
Error Connecting to Database using Weblogic Datasource
Hi,
I am trying to connect to oracle database from my program using weblogic DataSource. I am using JDK1.3.1.08 , weblogic 7.
I am using the following code to get Connection object.
contextFactory ="weblogic.jndi.WLInitialContextFactory";
providerURL="t3://192.168.0.29:7001";
dataSource ="temp_ds";
if(contextFactory!=null)
properties.put(Context.INITIAL_CONTEXT_FACTORY,contextFactory);
if(providerURL !=null)
properties.put(Context.PROVIDER_URL, providerURL);
initCtx = new InitialContext(properties);
DataSource ds= (javax.sql.DataSource) initCtx.lookup(dataSource);
Connection con = ds.getConnection();
con.setAutoCommit(false);
I am getting the following error while running the program. Can any body help?
javax.naming.CommunicationException. Root exception is weblogic.socket.Unrecove
rableConnectException: [JDK 1.3 or higher required]
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(IOException.java:47)
at java.net.SocketException.<init>(SocketException.java:36)
at java.net.ConnectException.<init>(ConnectException.java:34)
at weblogic.socket.UnrecoverableConnectException.<init>(UnrecoverableCon
nectException.java:19)
at weblogic.rjvm.RJVMManager.checkVersion(RJVMManager.java:451)
at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java
:201)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:191)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:203)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:169)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:262)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compi
led Code)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
tialContextFactoryDelegate.java:221)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
extFactory.java:149)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
at javax.naming.InitialContext.init(InitialContext.java:218)
at javax.naming.InitialContext.<init>(InitialContext.java:194)
at WeblogicTest.getConnection(WeblogicTest.java:40)
at WeblogicTest.<init>(WeblogicTest.java:23)
at WeblogicTest.main(WeblogicTest.java:18)
at WeblogicTest.printTableData(Compiled Code)
at WeblogicTest.<init>(WeblogicTest.java:24)
at WeblogicTest.main(WeblogicTest.java:18)
Regards
KumarI am not sure if this is the reason, but going thru the stack trace ...
javax.naming.CommunicationException. Root exception is weblogic.socket.Unrecove
rableConnectException: [JDK 1.3 or higher required]Make sure you have JDK 1.3 or higher installed.
Cheers
Sekar -
1016: Could not connect to database - Oracle returned ORA-00257: archiver e
Dear buddies,
Receiving the above stated error.
Removed my old arch files to a different drive and now still getting the error.
How can I go about this.
Please advice.
Thanks!
Note: I am using Oracle 10g on a Windows platform
Edited by: user645399 on Jul 26, 2012 6:36 PMAfter 1000+ posts you must understand that 10g is not a version number but a marketing label. This is what the error message says,
ORA-00257: archiver error. Connect internal only, until freed.
Cause: The archiver process received an error while trying to archive a redo log. If the problem is not resolved soon, the database will stop executing transactions. The most likely cause of this message is the destination device is out of space to store the redo log file.
Action: Check the archiver trace file for a detailed description of the problem. Also, verify that the device specified in the initialization parameter archive_log_dest is set up properly for archiving.If you have merely deleted the files using the o/s command, it won't update the Control File that those files are not available any more and the space mapped by them must be released. So you must use the RMAN's command crosscheck to confirm the deletion and mark the file's status as expired and then you would have to issue delete expired . Other than this, the only option would be to add more space to the destination where you are storing the archive logs.
HTH
Aman.... -
Veeva Vacations Sample application - Error connecting to database
I am new to WebCenter and I am trying to go through the Veeva Vacations Sample. I am having trouble creating a New Database Connection as described on page 8 of the Veeva_Hands_on.pdf.
I enter the Host of *127.0.0.1*, Port of *8080* and when I test the connection I get the following error.
Io exception: Got minus one from a read call
Any suggestions?
Edited by: user985561 on Sep 29, 2008 12:52 PMHi Jeroen,
Thank you for your response. I am working through the Veeva Vacations example that can be found at
http://www.oracle.com/technology/products/webcenter/owcs_10132_demos.html
I am trying to create a Database Connection in JDeveloper. Starting on page 8 of the veeva_hands_on.pdf it asks you to Define a Database Connection. On page 10 it provides the connection details. Host Name: localhost, JDBC Port 1521. When I try this I get the following errror:
Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
localhost:1521:ORCL
So I tried changing it to Host Name: 127.0.0.1, JDBC Port: 8080, which is the Host and port that I see in the URL when I log into the Oracle Database Express Edition from the 10g Database Home page. With this configuration I get the following error:
Io exception: Got minus one from a read call
I am running in a Windows environment with no Firewall software installed that I am aware of...
Thank you for your time
Christine
Maybe you are looking for
-
Quick launch buttons and touch functions not working post win7 upgrade
I have several problems that I think are related. 1) When I rotate the screen and then bring it close (as in flat) to the keyboard, the screen goes blank. There is no key combination I can find that restores the screen. Putting it back in notebook or
-
Probelm in creating R/3 source system in BW 3.5!
Hi, steps i did for the creation of source system in BW are as follows! 1) crated RFC destinations in each of the system (BW3.5 and R/3 4.7 IDES) 2) created logical systems in each of the systems and assigned the client to the respective logical syst
-
Send IDOC from XI to an Third Party Non-SAP System
Hello Everyone , Is it possible to use XI IDOC adapter to send an IDOC to a Third-party non SAP system . This third-party-system handles IDOCs . We want to do SAP -> idoc -> XI -> idoc -> Third Party . Any response is appreciated . Thanks.
-
Errors in browser when trying to show data table information. Permissions?
Hello, I have problems getting a database to show in my browser. I am using cs5.5, iis, and asp. I have installed the driver as per directions for my windows 64 big operating system. I am using a 32 bit odbc administrator to set up my dns (micorsof
-
Is there a lavalier mic for iPhone 5?
Is there a lavalier mic for iPhone 5?