Oracle TNS Error when startng Listener
Guys,
I get the following error when i try to start the listener, any suggestions or inputs would help
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 2: No such file or directory
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxx3)(PORT=1522)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 61: Unknown error
LSNRCTL> start
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 9.2.0.6.0 - Production
System parameter file is C:\oracle\ora92\network\admin\listener.ora
Log messages written to C:\oracle\ora92\network\log\listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxx3)(PORT=1522)
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
32-bit Windows Error: 49: Unknown error
Below is the listener log
TNSLSNR for 32-bit Windows: Version 9.2.0.6.0 - Production on 02-JUL-2009 15:29:56
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
System parameter file is C:\oracle\ora92\network\admin\listener.ora
Log messages written to C:\oracle\ora92\network\log\listener.log
Trace information written to C:\oracle\ora92\network\trace\listener.trc
Trace level is currently 0
Started with pid=20312
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxxx3)(PORT=1522)))
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
32-bit Windows Error: 49: Unknown error
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
TNSLSNR for 32-bit Windows: Version 9.2.0.6.0 - Production on 02-JUL-2009 15:30:11
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
System parameter file is C:\oracle\ora92\network\admin\listener.ora
Log messages written to C:\oracle\ora92\network\log\listener.log
Trace information written to C:\oracle\ora92\network\trace\listener.trc
Trace level is currently 0
Started with pid=19992
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxxx3)(PORT=1522)))
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
32-bit Windows Error: 49: Unknown error
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
Listener failed to start. See the error message(s) above...
LSNRCTL>
TNSNAMES.ORA
ORATEST.NV.AMCAD.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.XX)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = OraTest)
LISTENER.ORA
SID_LIST_LISTENER =
(SID_DESC =
(GLOBAL_DBNAME = OraTest)
(ORACLE_HOME = C:\oracle\ora92)
(SID_NAME = Oratest)
SQLNET.ORA
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
ORAAM wrote:
Guys,
I get the following error when i try to start the listener, any suggestions or inputs would help
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 2: No such file or directory
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxx3)(PORT=1522)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 61: Unknown error
LSNRCTL> start
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 9.2.0.6.0 - Production
System parameter file is C:\oracle\ora92\network\admin\listener.ora
Log messages written to C:\oracle\ora92\network\log\listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxx3)(PORT=1522)
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
32-bit Windows Error: 49: Unknown error
Below is the listener log
TNSLSNR for 32-bit Windows: Version 9.2.0.6.0 - Production on 02-JUL-2009 15:29:56
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
System parameter file is C:\oracle\ora92\network\admin\listener.ora
Log messages written to C:\oracle\ora92\network\log\listener.log
Trace information written to C:\oracle\ora92\network\trace\listener.trc
Trace level is currently 0
Started with pid=20312
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxxx3)(PORT=1522)))
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
32-bit Windows Error: 49: Unknown error
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
TNSLSNR for 32-bit Windows: Version 9.2.0.6.0 - Production on 02-JUL-2009 15:30:11
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
System parameter file is C:\oracle\ora92\network\admin\listener.ora
Log messages written to C:\oracle\ora92\network\log\listener.log
Trace information written to C:\oracle\ora92\network\trace\listener.trc
Trace level is currently 0
Started with pid=19992
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxxx3)(PORT=1522)))
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
32-bit Windows Error: 49: Unknown error
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
Listener failed to start. See the error message(s) above...
LSNRCTL>
TNSNAMES.ORA
ORATEST.NV.AMCAD.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.XX)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = OraTest)
LISTENER.ORA
SID_LIST_LISTENER =
(SID_DESC =
(GLOBAL_DBNAME = OraTest)
(ORACLE_HOME = C:\oracle\ora92)
(SID_NAME = Oratest)
SQLNET.ORA
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)What do you suppose the message "TNS-12545: Connect failed because target host or object does not exist" means?
I don't see the LISTENER = section of your listener.ora file. That's where you tell the listener the host and port to use.
You realize of course, that the listener runs on the server, not the client.
You realize, of course, that tnsnames.ora is a client side file and the listener doesn't care one whit what is in any tnsnames.ora file.
Similar Messages
-
Receive TNS error when trying to upgrade DB
I receive a TNS error when I try to upgrade a database using the Database Upgrade Assistant. I want to upgrade to 9.2 from 8.1.7. When I click on the database I want to upgrade I receive the TNS error. It never prompts for a username/password@cstring.
I am trying to run this through Windows Terminal Service, is this the problem? I know there are issues trying to run server manager through WTS.
Thanks,
JimI'm new to this, but between Oracle 9.0 and 9.2 the required format appears to have changed for the "TNS Service Name" parameter for a "System DSN" in the Windows "ODBC Data Source Administrator". In 9.0 the "TNS Service Name" can be in either of two formats: global_database_name OR oracle_home$global_database_name. One can verify this by clicking the "Test Connection" button on the the "Oracle ODBC Driver Configuration" screen from the "ODBC Data Source Administrator" window. On a 9.2 system only the first format works. I tested this on freshly-installed systems, each with just one Oracle home and the default sample database.
Perhaps this is related to the problem you are encountering. I was able to fix a problem connecting to 9.2 by changing the "TNS Service Name" parameter. The error I was receiving was: "[Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve service name".
Can anyone point me to some documentation on this apparent change between 9.0 and 9.2? Thanks in advance. -
Oracle Fatal error when trying to connect through sqlplus
Hi,
I am getting the below error when trying to connect to instance through sqlplus
Database version is :10.2.0.3
Operating system= Solaris Operating System (SPARC 64-bit)
OS version=5.10
[lscbd07p2*BMC]-\ORACLE>sqlplus
SQL*Plus: Release 10.1.0.4.0 - Production on Fri Nov 9 07:48:24 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter user-name: /as sysdba
ld.so.1: oracle: fatal: relocation error: file /u01/app/oracle/product/db/10.1.0.4/lib/libjox10.so: symbol kststop_: referenced symbol not found
ERROR:
ORA-12547: TNS:lost contact
Enter user-name:
Could you all please give me suggestions in order to solve this problem.
Thanks
MannuHave you recently patched/upgraded? This sounds like there might have been a problem relinking the executables / libraries, and/or a permissions problem. For example you may be referencing a 32 bit library with your 64 bit client.
I believe I recently read a similar case - check Metalink for this symptom.
HTH
Regards Nigel -
Oracle text error when generating random rows
Hello
firing
SELECT *
FROM
SELECT NAME,EMAIL,ADDRESS1,ADDRESS2,CONTACT_NAME,MOBILE,TELEPHONE FROM MV_CAT_SEG_REG_PROD
WHERE CATSEARCH(CAT_TYPES,'security services*' ,NULL)>0 AND
PLAN_ID=1 AND ACT_STATUS='N'
ORDER BY DBMS_RANDOM.VALUE
where rownum < 4;
returns
ORA-20000: Oracle Text error:
DRG-10849: catsearch does not support functional invocation
DRG-10599: column is not indexed
20000. 00000 - "%s"
*Cause: The stored procedure 'raise_application_error'
was called which causes this error to be generated.
*Action: Correct the problem as described in the error message or contact
the application administrator or DBA for more information.
using oracle 10gr2 on windows server 2003
i have tried 1)dropping the index and creating it again, the index type is "CTXSYS"."CTXCAT"
2) deleting the stats -checking
3)recreating the stats- checking
the table here is a materialized view
i need to tell you people that
there are two indexes cat_types_ind and cat_ids_idx on cat_types and cat_ids columns respectively
the inner query uses cat_types_idx index when executed and seen in sqladvisor
1)removing the order by clause will make the query work but i really want that order by clause
2)the inner-query-only works fine
3) i have seen the forums and they have helped regarding the things i tried above but it does not work
please tell me if i need to further elaborate on anything
thanks in advanceI have same problem, my query is:
SELECT *
FROM
(SELECT
/*+ FIRST_ROWS(50) */
NTQ.*,
ROWNUM RNUM1
FROM
(SELECT
/*+ INDEX(DL_TSD_DEFTR_CI) */
FROM ima_ol.DL_TSD_SITUATION s
WHERE (CATSEARCH(DEF_TRANS,'milano ',NULL)>0)
AND (s.FORECAST = 0)
AND (s.STATE IN (1,0,4))
AND (s.ARCH_STATE = 0)
ORDER BY s.VET_TS DESC
) NTQ
WHERE ROWNUM <=50
WHERE RNUM1 >=1
my oracle and system version:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
"CORE 11.1.0.7.0 Production"
TNS for Solaris: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
I have suggested that to solve the problem I should alter the statistics of the offending table to force to use this index .. how do I do? thanks in advance -
Hi,
I have installed 10 g on my machine on a windows platform.
After hooking to a lan, I am not able to connect through sqlplus I gt the following error
=========C:\>tnsping orcl10g
TNS Ping Utility for 32-bit Windows: Version 10.1.0.2.0 - Production on 12-JUN-2005 22:18:13
Copyright (c) 1997, 2003, Oracle. All rights reserved.
Used parameter files:
C:\Oracle\TNS_ADMIN\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = l0040523)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDIC
TNS-12541: TNS:no listener
=====================
As soon as I come out of the lan network, it works fine.
Wondering if anyone has encountered any such problem before on Windows 2000 server before.
thanks in advance,
darshanThanks a tonne Kuljeet.
Appreciate ur comments. Its working as soon as I am diabling the firewall application.
thanks and regards,
darshan -
Hi...
I'm able to configure AlwaysOn and all things are great.
I have a problem only when create a listener , I have two node in same data center (SQLP1,SQLP2) and one in DR data center (SQLD1)
SQLP1 + SQLP2 > Sync
SQLD1 > Async
The error I face is
The specified IP Address 'IP' is not valid in the cluster-allowed IP range.
Check with the network administrator to select values that are appropriate for the cluster-allowed IP range.
(.Net SqlClient Data Provider)
I went through some suggestion and found a permission required (create computer objects) and I give it but still error show up.
I follow the same as here
http://blogs.msdn.com/b/psssql/archive/2013/09/30/error-during-installation-of-an-sql-server-failover-cluster-instance.aspxHi
Thanks for your follow up. I hope the below information is enough
Creating Listener through visual studio wizard “Add listener”
Hostname
IP Address
Description
SQLP1
Public
10.190.255.90/
Subnet 10.190.255.0/24
Private
10.192.255.90
subnet 10.192.255.0/24
MS SQL AlwaysOn Availability Test Lab Server 1 – Main DC
SQLP2
Public
10.190.255.91
Subnet 10.190.255.0/24
Private
10.192.255.91
subnet 10.192.255.0/24
MS SQL AlwaysOn Availability Test Lab Server 2 – Main DC
SQLDR1
10.193.255.90/
subnet 10.193.255.0/24
Private
10.194.255.90
subnet 10.194.255.0/24
MS SQL AlwaysOn Availability Test Lab Server 1 – DR DC
10.190.255.93
SQL Always on listener -
Oracle obiee error when online
I have a DSN entry with the name TestEUL and have the repository with proper connections.
When i open the repository offline and check the connections ,its working fine.When i right click on View data it gives me the data.
But when i open repository online and check for view data it gives me an error message as "An error occured while processing the EXECUTE PHYSICAL Statement".Specified driver could not be loaded due to system error 998(Oracle in XE)"
The DSN test connection is working fine
Can you please tell me where am i going wrong?Have you recently patched/upgraded? This sounds like there might have been a problem relinking the executables / libraries, and/or a permissions problem. For example you may be referencing a 32 bit library with your 64 bit client.
I believe I recently read a similar case - check Metalink for this symptom.
HTH
Regards Nigel -
Oracle ODBC error when inserting "end" or "begin"
I think I may have found a bug in the Oracle ODBC driver....
I am using version 8.01.73.00 of the Oracle ODBC driver, and my VB application is trying to insert a record into a table using ADO. All works fine, until the user tries to enter the word "end", or "begin" into any of the text (CLOB) fields. The following code shows how I am doing an insert:
Dim cmd As ADODB.Command
Set cmd = New ADODB.Command
cmd.ActiveConnection = "DSN=Envoy;uid=Envoy;pwd=significance;"
cmd.CommandText = "Insert into Mon_Reading (Creation_User, Creation_Date, Reading_Date, Param_ID, Mon_ID, Value, ApplicableYN, Site_ID, Prev_MEter_Value, MeterResetYN, UOM_ID, LimitsApplicableYN, Lower, Upper, Limit_UOM_ID, ApprovedYN, Comments ) Values ('Matttt', '01-jan-2002', '01-jan-2003', 1, 1, 1., 'Y', 1, 0, 'N', 1, 'N', 0, 0, 0, 'Y', ' end ');"
cmd.CommandType = adCmdText
cmd.Execute , , adExecuteNoRecords
As you can see, the text " end " is being added to the comments field, a CLOB data field. When executed, this causes an Oracle ORA-0911 error (invalid character), and the insert fails.
Heres the weird thing - if you change the word "end" to anything else apart from "begin" - it will work!!! Also, it only fails if you wrap the "end" in spaces?!!?!! Users that reported this were entering comments like "this is the end of June" - this would have caused the error. If you copy teh failed SQL and paste it into SQLPlus, it executes OK.
I can only presume this is an Oracle bug. Anyone else have an ideas? What can I do as a workaround?First thought would be to grab the updated 8.1.7.x ODBC driver (8.1.7.7 IIRC). Perhaps this problem has already been solved.
Justin -
Oracle / JDBC Error when Returning values from an Insert
I have a (oracle) table with a auto-incrementing id. From time to time I want to insert rows to this table, but want to be able to know what the pk of the newly inserted row is. One way I could do this is:
SQL> variable var1 number;
SQL> insert into test (name) values ('test value') returning id into :var1;
1 row created.
SQL> print var1;
13
As best as I can write it, that in java should be:
String query = "insert into test (name) values ('test') returning id into :var1";
OracleCallableStatement cs = (OracleCallableStatement) conn.prepareCall(query);
cs.registerOutParameter(1, OracleTypes.NUMBER );
cs.execute();
System.out.println(cs.getInt(1));
The problem is that when I run it, I get an error:
java.sql.SQLException: Protocol violation
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:764)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:215)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:954)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1168)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3390)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4223)
at restitution.shared.Sandbox2.run(Sandbox2.java:25)
at restitution.shared.Sandbox2.main(Sandbox2.java:11)
According to their website, this is (yet another) bug:
What does "Protocol Violation" mean?
The Thin driver throws this exception when it reads something from the RDBMS that it did not expect. This means that the protocol engine in the Thin driver and the protocol engine in the RDBMS are out of synch. There is no way to recover from this error. The connection is dead. You should try to close it, but that will probably fail too.
If you get a reproducible test case that generates this error, please file a TAR with Oracle Global Support. Be sure to specify the exact version numbers of the JDBC driver and the RDBMS, including any patches.
Can someone tell me what I'm doing wrong? Is there any other ways to do a insert / get key in one sql query ?I tried your solution, but it didn't work. I get an error (incorrect column number):
Caused by: java.sql.SQLException: Niepoprawny indeks kolumny
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
at oracle.jdbc.driver.OracleCallableStatement.registerOutParameterInternal(OracleCallableStatement.java:121)
at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:283)
at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:363)
at (...).Row$1.createCallableStatement(Row.java:82)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:836)
... 69 more
The code is following:
String query = "BEGIN insert into movement (doc_number) values ('abc') returning id into :?; END;";
OracleCallableStatement cs = (OracleCallableStatement) c.prepareCall(query);
cs.registerOutParameter(1, OracleTypes.NUMBER);
cs.execute();
LOG.debug("result:"+ cs.getInt(1));
I used Oracle database 10.2.0.1 with jdbc thin driver ojdbc14.jar. Could you point out your configuration?
Regards,
Rafal Rusin
www.mimuw.edu.pl/~rrusin -
Oracle 1031 error when starting DB
Hello,
We are experiencing a very strange Oracle issue. We are installing new instances on Oracle 10.2.0.4 on Windows 2008 (2008 new to us). When we attempt to logon to Oracle sqlplus /nolog, connect /as sysdb, startup, we are greeted by and ora-01031 -- which is usually a fairly easy fix. We found that when we enter 'startup' and the second time, we get the same error -1031. But, when we do startup a third time, the db starts up normally. I having problems finding oracle tools/traces/logs that log before the db is started. I have ran a network sniffer, and absolutely nothing was happening (network wise) after startup command is issued. The DB is stable at this point. And in fact we can do anything during this session. If we log off of the server and then back on, the connection is strange again and we have to enter commands three times again before we get a correct response. This is a problem during sap install as the sapinst is logging off and on through its script and starting and stopping the db. Any help/response/anything would be greatly appreciated.
--JackThanks for your suggestions; however, the problem still exists. Remember the problem is odd in that upon the third connection attempt, the connection is successful.
-- The sqlnet.ora file already exists and it includes the line you specified.
-- When I run r3trans -d, I get:
2EETW169 no connect possible: "connect failed with DBLI_RC_LOAD_LIB_FAILED." r3trans finished (0012)
I will look this up, but figure that it is likely a generic message.
I will look at the suggested notes.
The account is included in all of the groups mentioned.
Any further help, ideas, etc. would be greatly appreciated. I cannot (for the life of me) figure out how to increase loggin in Oracle to capture this failure to connect (like in the oracle alert log)...
--Jack -
OraOLEDB.Oracle generates error when retreiving a table with anydata col
Hi,
I use OraOLEDB.Oracle to connect from VB6 to oracle, and ADODB recordsets.
I have a procedure that returns a table (using a cursor), the table has a column of type sys.anydata.
I get this error: ROW-00004: Invalid column datatype
I have to mention that it works excelent for anything that does not contain sys.anydata.
I use Oracle 9.2.
Thanks in advance,
pesqI tried your solution, but it didn't work. I get an error (incorrect column number):
Caused by: java.sql.SQLException: Niepoprawny indeks kolumny
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
at oracle.jdbc.driver.OracleCallableStatement.registerOutParameterInternal(OracleCallableStatement.java:121)
at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:283)
at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:363)
at (...).Row$1.createCallableStatement(Row.java:82)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:836)
... 69 more
The code is following:
String query = "BEGIN insert into movement (doc_number) values ('abc') returning id into :?; END;";
OracleCallableStatement cs = (OracleCallableStatement) c.prepareCall(query);
cs.registerOutParameter(1, OracleTypes.NUMBER);
cs.execute();
LOG.debug("result:"+ cs.getInt(1));
I used Oracle database 10.2.0.1 with jdbc thin driver ojdbc14.jar. Could you point out your configuration?
Regards,
Rafal Rusin
www.mimuw.edu.pl/~rrusin -
Error when startng Oracle9iAS...pls. help!
I have recently installed Oracle9IAS on a WinNT 4.0
SP6 system, but when I "start" the
application server (oc4j.jar) via the command line
(java -jar oc4j.jar), I was prompted by this error:
Error in http-web: Address already in use: JVM_BIND.
What does this error mean? I have verified that
the address of my machine is unique. I am also still
using the default settings on my http-web.xml file.Windows 2000 is also technically NT 5.0 right? So in your case, upgrading from NT4.0 to NT5.0 solved the problem? Okay, i'll try that as a last alternative, but I'm still hoping that it can be solved by just doing some tinkering on the configuration. Anybody? :)
-
Strange oracle lite error when create db
i am new to oracle lite and been playing about but this error really confuses me
C:\>createdb mydb mydb doug
Oracle Lite CREATEDB Version 10.2.0.1.0.
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Database C:\ORACLE\10GLITE\MOBILE\SDK\OLDB40\MYDB.odb created (VolID = 507).
C:\>msql system/doug@jdbc:polite:mydb
Oracle Lite MSQL Version 10.2.0.1.0
Copyright (c) 1997, 2005, Oracle. All rights reserved.
[POL-3023] the database does not exist
so it says it creates the db fine but wont let me connectCheck whether there is a corresponding entry made for that DSN in your odbc.ini
If no, make an entry in that file and then try connecting.
Minimally it should consist of something like this... ( for createdb oracle oracle oracle)
[ODBC 32 bit Data Sources]
oracle=Oracle Lite 40 ODBC Driver (32 bit)
[oracle]
Description=Oracle Lite 40 Data Source
DataDirectory=/private/orainst/MDK/mobile/sdk/oldb40
Database=oracle
-vv
null -
Error NL-00051 when the listener starts up
Hi,
I'm getting an error when the listener starts up on my NT4 system. I have Oracl 8.0.4 running and for some reason I get:
NL-00051: internal error code, arguments: [302], [1], [], [], [], [], []
Does anybody know why this is happening. The listener no longer works and the DB's are out of use.
Any help would be appreciated.
Thanks,
Mark Willemsbash-2.05$ oerr nl 51
00051, 00000, "internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s
], [%s]"
// *Cause: This is the generic internal error code for NPD program
// exceptions. This indicates that a process has encountered an
// exceptional condition.
// *Action: Report as a bug - the first argument is the internal error number
// The second argument is the "emfi" (err msg file index). -
Borland VisiBroker for java meet error when Installed Oracle 8i(V8.1.6)
Oracle modified some register key value of Java Runtime
Evironment which result in Java2IDL.exe's runninng error. I
fixed the value in /software/javasoft/java runtime environment
and reset the currentversion key to 1.3. Oralce use jre1.1.7.
Can oracle meet errors when change it to sun jre1.3.1? May
upgrade oracle jre1.1.7 to high version ? Tell me how to. Please
tell me where to download If Oracle can't use Sun JRE1.3 . How
can I deal with this problem and let VisiBroker for java and
VisiBroker for C++ work well?
Best RegardsHi,
I am not aware of a sqlplus v8 for macosx so the nonexistence of it might be your problem. The way I remember it, there are sqlnet libs that are usable from other apps. What you could do is install the v9.2 developers release. This contains sqlplus and in that case just make sure the directory containing sqlplus is in your PATH (you also need a few other environment variables; they are set in DBENV).
Ronald.
http://ronr.nl/unix-dba
Maybe you are looking for
-
WHY WILL ADOBE READER NOT OPEN PDF FILES?
I have just downloaded free Adobe Reader X. When I try to open a pdf file I immediately get a Microsfoft box saying "Adobe Reader has encountered a problem and needs to close" I have Windows XP. Has anyone else experienced the problem and what did y
-
Recursive associations in LiveCycle Data Services
I have a recursive associations in my table CREATE TABLE TMPADNAN ID NUMBER(10) NOT NULL, NAME VARCHAR2(255 CHAR), MID NUMBER(10) ALTER TABLE TMPADNAN ADD ( CONSTRAINT TMPADNAN_R01
-
Trigger inbound BAPI IDOC for message type ACC_GL_POSTING
I configured our SAP system for inbound GL postings -- message Type ACC_GL_POSTING process code BAPI. I successfully tested all the configuration pieces using WE19. So how do I trigger the inbound process from my external non-SAP system. I would p
-
Have to restore OS X.9.1 after booting into Windows 7 on Bootcamp
I am having an odd problem--whenever I boot into Windows 7 on bootcamp, when I then boot into Mac OS X.9.1, I have to restore the disk from Time Machine. This has never happened before, but now has happened twice in a row. It takes hours for the Rest
-
Can I restore a backup of an iphone5 from different carrier?
Started off with an iPhone5 on Sprint - long story short it got returned due to numerous data issues and I wasn't going to wait past my 14 day return to see if it gets better. I'm in the process of switching over to Verizon (as soon as they get more