ODBC in a local database not connects by IPC/TCP. Oracle 8.1.5 or 8.1.7
Hello, my friends!
I've been having problems with the connection to oracle 8.1.5 via ODBC.I configure a tnsnames and it requieres a protocol: TCP, SPX, IPC, named pipes. I started using
tnsnames with TCP protocol and the connection via ODBC shows the message: 'Server rejected the connection'. My application and the database are in the same PC, so i'm accesing via ODBC to the database locally. Then i tried configuring IPC protocol and then i tested by ODBC test and it showed me a message: ERROR: native error: 12560, TNS: protocol adapter error.
my intention it's to access oracle by ODBC, both the application and the database are in the same PC, i have not network.
so, i'd appreciate any help, please, any comments send me an email to :
[email protected]
Hi, Yes! i can connect by SQL*Plus and it works well, but the problem it's because i have the database and my application in the same PC, so I need to connect in local mode. I couldn4t do it by IPC, it shows the message: Protocol Error, using TCP it shows me the message: TNS: 12154 - No listener
thanks
Similar Messages
-
All the Exchange 2013 Prerequisites appeared to install correctly. The installation of Exchange 2013 on Windows Server 2012 hangs at Initializing Setup. Then I find event 4027, source MSExchange ADAccess in the application event log. The
same thing happens if I try to prepare the Active Directory from the command prompt. The old Exchange 2007 server and Active Directory Server are on the same network and all firewalls are off. The entire content of the event is below. Any ideas
appreciated.
Log Name: Application
Source: MSExchange ADAccess
Date: 1/30/2014 12:47:01 PM
Event ID: 4027
Task Category: (1)
Level: Error
Keywords: Classic
User: N/A
Computer: MAILSRV2.sescolighting.com
Description:
The description for Event ID 4027 from source MSExchange ADAccess cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
ExSetupUI.exe
3868
Get Servers for sescolighting.com
TopologyClientTcpEndpoint (localhost)
3
System.ServiceModel.EndpointNotFoundException: Could not connect to net.tcp://localhost:890/Microsoft.Exchange.Directory.TopologyService. The connection attempt lasted for a time span of 00:00:02.0038715. TCP error code 10061: No connection could be made because
the target machine actively refused it 127.0.0.1:890. ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:890
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
--- End of inner exception stack trace ---
Server stack trace:
at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
at System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System.ServiceModel.ICommunicationObject.Open()
at Microsoft.Exchange.Net.ServiceProxyPool`1.GetClient()
at Microsoft.Exchange.Net.ServiceProxyPool`1.TryCallServiceWithRetry(Action`1 action, String debugMessage, WCFConnectionStateTuple proxyToUse, Int32 numberOfRetries, Boolean doNotReturnProxyOnSuccess, Exception& exception)
the message resource is present but the message is not found in the string/message table
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="MSExchange ADAccess" />
<EventID Qualifiers="49156">4027</EventID>
<Level>2</Level>
<Task>1</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-01-30T17:47:01.000000000Z" />
<EventRecordID>821</EventRecordID>
<Channel>Application</Channel>
<Computer>MAILSRV2.sescolighting.com</Computer>
<Security />
</System>
<EventData>
<Data>ExSetupUI.exe</Data>
<Data>3868</Data>
<Data>Get Servers for sescolighting.com</Data>
<Data>TopologyClientTcpEndpoint (localhost)</Data>
<Data>3</Data>
<Data>System.ServiceModel.EndpointNotFoundException: Could not connect to net.tcp://localhost:890/Microsoft.Exchange.Directory.TopologyService. The connection attempt lasted for a time span of 00:00:02.0038715. TCP error code 10061: No connection
could be made because the target machine actively refused it 127.0.0.1:890. ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:890
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
--- End of inner exception stack trace ---
Server stack trace:
at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
at System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System.ServiceModel.ICommunicationObject.Open()
at Microsoft.Exchange.Net.ServiceProxyPool`1.GetClient()
at Microsoft.Exchange.Net.ServiceProxyPool`1.TryCallServiceWithRetry(Action`1 action, String debugMessage, WCFConnectionStateTuple proxyToUse, Int32 numberOfRetries, Boolean doNotReturnProxyOnSuccess, Exception& exception)</Data>
</EventData>
</Event>
Tina M. White Boundless DataHello,
Please make sure whether you install exchange 2013 on a DC server. If so, we don't recommend you install Exchange 2013 server and DC server on a server.
Please use ping to check if the server you will install exchange 2013 server on can communicate with DC server.
Please use telnet to check if 890 port is opened on your firewall.
Besides, please refer to the following article to check if you have installed required components again.
http://technet.microsoft.com/en-us/library/bb691354(v=exchg.150).aspx
Cara Chen
TechNet Community Support -
Local Database not accessable from enterprize manager console
Hi all .. i have a strange problem, please help
i hv installed oracle 9i on my pc. it is linked with a db server and local database (for scott schema) is also installed on pc. with oracle enterprise manager console i have been, and want to access both the databasses.(db server and local)
i can access the db server database as sys: attributes are ..
host: 10.4.34.59
port: 1526
sid: grid59
attribs for local db
host: e5687g7665
port: 1523
sid: ora123
both dbs are accessable from sql plus but when i write scott, tiger on console, it says 'no listener'.... on oracle net manager i hav already added the address for local pc db.
thanx in advance, please helpOk i have removed the ip address of remote db from listener ... now the complete pic of tnsname and listener is as under butttttttt.....
:( the problem is still there ... my OEM console connects to remote db as 'sys as sysdba' but not local db as 'scott/tiger'...
# TNSNAMES.ORA Network Configuration File: G:\oracle\ora92\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
GRID31_10.4.34.59=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.4.34.59)(PORT = 1526))
(CONNECT_DATA =
(SID = grid59)
(SERVER = DEDICATED)
ORA123 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = e8530e94179)(PORT = 1523))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ora123)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
INST1_HTTP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = e8530e94179)(PORT = 1526))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = MODOSE)
(PRESENTATION = http://HRService)
# LISTENER.ORA Network Configuration File: G:\oracle\ora92\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =e8530e94179)(PORT = 1523))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = G:\oracle\ora92)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = ora123)
(ORACLE_HOME = G:\oracle\ora92)
(SID_NAME = ora123)
) -
Connecting to Oracle Database - Not Connecting
I am new to JAVA and for the first time I am trying to connect to an Oracle data using JAVA. Well, I am getting an error when trying to connect to the database. What I can see the error has to do that the strings passed to make the databases connection are NULL. So, an error (see error below).
Question
How come the "connection" varriable is NULL?
It appears that the hold "try" session is not executed. Is this session out of order?
ERROR
Could not find the database connection: null
Database connection before call: null
Exception in thread "main" java.lang.NullPointerException
at TestOCIApp.main(TestOCIApp.java:39)
========= JAVA Program START =======
//import java.sql.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class TestOCIApp {
public static void main(String args[]) throws ClassNotFoundException,
SQLException {
Connection connection = null;
try {
// Load the JDBC driver
String driverName = "oracle.jdbc.driver.OracleDriver";
Class.forName(driverName);
// Create a connection to the CCMS PROD database
String serverName = "192.168.2.144";
String portNumber = "1521";
String sid = "op01ccdb01";
String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
String username = "user-id";
String password = "password";
connection = DriverManager.getConnection(url, username, password);
System.out.println("connection value: " + connection);
} catch (ClassNotFoundException e) {
// Could not find the database driver
System.out.println("Could not find the database connection: " + connection);
} catch (SQLException e) {
// Could not connect to the database
System.out.println("Could not connect to the database connection: " + connection);
System.out.println("Database connection before call: " + connection);
Statement stmt = connection.createStatement();
ResultSet rset = stmt.executeQuery("select 'Hello OCI driver tester '||USER||'!' result from dual");
while (rset.next())
System.out.println(rset.getString(1));
rset.close();
stmt.close();
connection.close();
========= JAVA Program END =========The try section is being executed just fine but only partially because you get the exception "ClassNotFoundException", which means it cannot load the Oracle driver class (so it fails at the line where it says):
Class.forName(driverName);You catch this exception, and then just print a line "Could not find the database connection: null". Then you let the code continue, obviously without having initialized your variables yet.
I would recommend rewriting those catch blocks to throw a new RuntimeException so the code will not continue further when an error is detected in the try, or to not catch them not all if you donot want to handle them there in a proper fashion.
As to your problem, you probably have not added the ojdbc14.jar to your project, and that's why it cannot find the OracleDriver class.
Finally, try to add {noformat}{noformat} around your code when you post code. It makes it a lot more readable. -
Local NAS not connecting after installing Lion, what is the fix ?
After installing Lion, my local NAS is not connecting, what can I do to fix it.
I have the same problem with my Conceptronic CH3HNAS and have found a free and easy solution.
Since a lot of people report they are able to access their NAS using apps other than the Finder itself, I decided to look for a free Lion-compatible File Manager to use instead of Finder.
I have found muCommander ( http://www.mucommander.com/ ) and indeed it works fine. All I did was click on the button highlighted bellow, go to "bonjour services" and select my NAS. It prompted me for my username and password and voilá, it works fine.
I keep Finder for everyday use and just load muCommander when I want to access the NAS. At least now I don't have to start my WinXP VM anymore just to access it.
Hope it helps you. -
Could not connect to a remote Oracle db
Hello ,
I would to connect with Sqlplus ( Installed Oracle version 9i Release 1 (9.0.1.1.1) for Windows) from my external machine , runnig with Windows XP as OS , to a remote Oracle 10g db installed on a virtual machine running with Ubuntu as OS .
The same senario should be working in the other direction ( from Ubuntu ( Virtual machine ) to Windows XP ( external machine ) .
The DBlinks between the two dbs were well created at both sides.
At Windows side ( external machine ) the tnsnames is already updated .
At Ubuntu side and in order to allow listener accept remote connections, the following command was executed :
EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
At Ubuntu side there is no tnsnames file to update .
I try to connect from both sides to the remote linked db but no result was obtained and the same error occured :
- From external machine side :
SQL> select * from Client1@XE;
select * from Client1@XE
ERROR at line 1:
ORA-12154 : TNS: could not resolve the connect identifier specified
- From virtual machine side :
SQL> select * from Client4@ING3;
select * from Client1@XE
ERROR at line 1:
ORA-12154 : TNS: could not resolve the connect identifier specified
I'm not sure , but the reason could be the missing settings that have to be filled in the missing tnsnames file at Ubuntu Side .
Could you please tell how and where to add the missing tnsnames file at Ubuntu side?
Thank you
khaledTry replacing
jdbc:oracle:thin:@SFOServer:1521/DevDB
with
jdbc:oracle:thin:@SFOServer:1521:DevDB -
Database not connecting LV2014
Hi All,
Sorry I am new to databases but I've spent the day trying to get LabVIEW 2014 to connect to a Microsoft Access 2013 Database. I've tried a .mdb and .accdb but neither work. I tried to make a udl but it was 64 bit and wouldnt load, I tried the fix on various forums (https://forums.ni.com/t5/LabVIEW/Creating-and-Editing-udl-files-in-64-bit-Windows/td-p/1526358) but get the error "Provider cannot be found. Ensure that the provider has been installed properly."
I have the 64 bit driver for Microsoft Access Engine installed as I'm running 64-bit office.
I tried installing LV2014 64 bit but there isn't database connectivity in it.
Doing this: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=101040...
Allowed me to get a 32-bit DSN added but I continue to get error -2146824582 in labview.
The example within labview called "Database Connection.vi" works but the "Connect to ACCDB Database.vi" does not.
Any help would be appreciated. I've attached the database in question (I've had a few messages saying invalid format when trying fixes but it always opens in access, I dont really want to have to type it out again) and a couple of screenshots.
Solved!
Go to Solution.
Attachments:
Labview Error.PNG 19 KB
DSN.PNG 26 KB
DSN.PNG 26 KBI seem to have fixed the issue...
I used C:\Windows\SysWOW64\odbcad32.exe to create a file DSN, then created a new database with that DSN. I then imported the data from my other database and that seems to work correctly.
Hope this helps someone else. -
Hi,
I am getting connection error does anyone has an idea. I check all the parameters and trans.log also doesn't say much.
R3trans -d
This is R3trans version 6.14 (release 700 - 10.09.07 -- 09:04:42).
2EETW169 no connect possible: "DBMS = MSSQL
R3trans finished (0012).
BR
krishnamurthy.
Edited by: krishna murthy on Jul 12, 2008 9:29 AMHi,
There are many possibilities like listener is down or your ORACLE_HOME or ORACLE_SID is not properly set also try restarting the database.
Post the log files if services are running properly
Rakesh -
Sending Mail on local net, not connected to internet.
Hi, I am pulling my hair out. I have successfully set up a 10.4 Tiger Server, using DNS, AFP, Web, OD, FTP and software update. Then I upgraded to Leopard 10.5 Server, bought Final cut server installed it and got it working just fine. Trying to set up the e-mail notifications with-in Final Cut Server I realized we couldn't do it as I don't have the mail service running.
Now a year later, I have time and some extra machines so I decided to set up a test network to learn more about the Leopard server and what it does.
So I have my test network set up. I have a Mac Pro Tower Running Leopard Server 10.5.6 all up to date.
I have used both the course at lynda.com and the Mac OS X Server Essentials Second Edition and have done everything exactly as they do and have come up against a problem that I can't seem to find a solution anywhere.
I can send and receive e-mail on my network if I address the e-mail this way:
[email protected]
If I address the e-mail as in the tutorials: todd@domain_name.com, the e-mail goes out into cyberspace.
I have repeated this 20 times and no change. I would post the error logs because then somebody could decipher that for me. But I can't at this time, as I have a fresh install and haven't configured it yet. I will do that and then come back in and post the error logs.
Any help would be great!
Thanks in advance!
ToddThere are two major elements to running your own mail server.
The first is to make sure your server is set to accept mail for domain_name.com
If it is, then any message coming in for any user@domain_name.com will be handled locally and you're set.
So check the mail server settings (specifically mydestination if you're using the CLI) and make sure that your domain name is included in the domains this server should accept mail for.
The second element is MX records in DNS, but I don't think that's your issue here since they're only used for relaying mail between domains. -
Hi gurus,
I have a server on which oracle 10g & 9i installed. ECC6.0 installed on 10g & trying to install SAP4.7 on 9i but giving error.
Checked to r3trans command.
giving error as :
C:\Documents and Settings\devadm>r3trans -d
This is r3trans version 6.09 (release 620 - 13.08.03 - 15:59:00).
2EETW169 no connect possible: "DBMS = ORACLE --- dbs_
ra_tnsname = 'DEV'"
r3trans finished (0012).
Help me to solve this.
Regards,
Darshan...Hi gurus,
Pls Check the trans.log
4 ETW000 r3trans version 6.09 (release 620 - 13.08.03 - 15:59:00).
4 ETW000 ===============================================
4 ETW000
4 ETW000 date&time : 13.08.2008 - 17:32:01
4 ETW000 control file: <no ctrlfile>
4 ETW000 R3trans was called as follows: r3trans -d
4 ETW000 trace at level 2 opened for a given file pointer
4 ETW000 [dev trc ,00000] Wed Aug 13 17:32:04 2008 0.000000
4 ETW000 [dev trc ,00000] db_con_init called 0.000000
4 ETW000 [dev trc ,00000] create_con (con_name=R/3) 0.000000
4 ETW000 [dev trc ,00000] Loading DB library 'dboraslib.dll' ... 0.000000
4 ETW000 [dev trc ,00000] load shared library (dboraslib.dll), hdl 0 10925 0.010925
4 ETW000 [dev trc ,00000] using "D:\usr\sap\DEV\SYS\exe\run\dboraslib.dll"
4 ETW000 34 0.010959
4 ETW000 [dev trc ,00000] Library 'dboraslib.dll' loaded 16 0.010975
4 ETW000 [dev trc ,00000] function DbSlExpFuns loaded from library dboraslib.dll
4 ETW000 26 0.011001
4 ETW000 [dev trc ,00000] Version of 'dboraslib.dll' is "620.02", patchlevel (0.876)
4 ETW000 118 0.011119
4 ETW000 [dev trc ,00000] function dsql_db_init loaded from library dboraslib.dll
4 ETW000 24 0.011143
4 ETW000 [dev trc ,00000] function dbdd_exp_funs loaded from library dboraslib.dll
4 ETW000 41 0.011184
4 ETW000 [dev trc ,00000] New connection 0 created 30 0.011214
4 ETW000 [dev trc ,00000] 0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES, reco = NO
4 ETW000 27 0.011241
4 ETW000 [dev trc ,00000] db_con_connect (con_name=R/3) 17 0.011258
4 ETW000 [dev trc ,00000] find_con found the following connection for reuse:
4 ETW000 21 0.011279
4 ETW000 [dev trc ,00000] 0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES, reco = NO
4 ETW000 24 0.011303
4 ETW000 [dev trc ,00000] Got ORACLE_HOME=F:\oracle932\DEV\902 from environment
4 ETW000 235 0.011538
4 ETW000 [dev trc ,00000] -->oci_initialize 19 0.011557
4 ETW000 [dev trc ,00000] Client NLS settings: AMERICAN_AMERICA.WE8DEC 32757 0.044314
4 ETW000 [dev trc ,00000] Logon as OPS$-user to get SAPDEV's password 86 0.044400
4 ETW000 [dev trc ,00000] Connecting as /@DEV on connection 0 ... 18 0.044418
4 ETW000 [dev trc ,00000] Allocating service context handle 23 0.044441
4 ETW000 [dev trc ,00000] Allocating server context handle 23 0.044464
4 ETW000 [dev trc ,00000] Attaching to DB Server DEV (con_hdl=0,svchp=0035E96C,svrhp=03D4496C)
4 ETW000 51 0.044515
4 ETW000 [dboci.c ,00000] *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12500
4 ETW000 20609 0.065124
4 ETW000 [dboci.c ,00000] *** ERROR => CONNECT failed with sql error '12500'
4 ETW000 33 0.065157
4 ETW000 [dev trc ,00000] Try to connect with default password 22 0.065179
4 ETW000 [dev trc ,00000] Connecting as SAPDEV/<pwd>@DEV on connection 0 ...
4 ETW000 101 0.065280
4 ETW000 [dev trc ,00000] Allocating server context handle 17 0.065297
4 ETW000 [dev trc ,00000] Attaching to DB Server DEV (con_hdl=0,svchp=0035E96C,svrhp=03D48A28)
4 ETW000 38 0.065335
4 ETW000 [dboci.c ,00000] *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12500
4 ETW000 15563 0.080898
4 ETW000 [dboci.c ,00000] *** ERROR => CONNECT failed with sql error '12500'
4 ETW000 29 0.080927
4 ETW000 [dblink ,00419] ***LOG BY2=>sql error 12500 performing CON [dblink#1 @ 419]
4 ETW000 59 0.080986
4 ETW000 [dblink ,00419] ***LOG BY0=>ORA-12500: TNS:listener failed to start a dedicated server process [dblink#1 @ 419]
4 ETW000 26 0.081012
2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'DEV'"
Regards,
Darshan.. -
32 bit compiled Java Program not connecting to 64 bit Oracle 11g
Hi,
I am using one java program to connect to Oracle 11g (64 bit version) using Oracle10g 32 bit client libraries using OCI calls. Below is the program. If I compile it using 64 bit Oracle 10g libraries ($ORACLE_HOME/lib and $ORACLE_HOME/rdbms/lib) , it perfectly connects to Oracle11g but when i compile it using $ORACLE_HOME/lib32 and $ORACLE_HOME/rdbms/lib32, it hangs and keeps trying and takes 100% cpu usage. it does nothing. Please suggest what is going wrong in the environment.
============================
import java.sql.*;
class dbAccess {
public static void main (String args []) throws Exception
Class.forName ("oracle.jdbc.OracleDriver");
Connection conn = DriverManager.getConnection
("jdbc:oracle:oci8:@lvfd", "fde", "fde");
// or oci7 @TNSNames_Entry, userid, password
try {
Statement stmt = conn.createStatement();
try {
ResultSet rset = stmt.executeQuery("select * from tab");
try {
while (rset.next())
System.out.println (rset.getString(1)); // Print col 1
} finally {
try { rset.close(); } catch (Exception ignore) {}
} finally {
try { stmt.close(); } catch (Exception ignore) {}
} finally {
try { conn.close(); } catch (Exception ignore) {}
================================================>
I am compiling like when LD_LIBRARY_PATH set to $ORACLE_HOME/lib32:$ORACLE_HOME/rdbms/lib32.
javac -cp .:$ORACLE_HOME/jdbc/lib/ojdbc14.jar dbAccess.java
as my program resides in current directory. I run it like :
java -cp .:$ORACLE_HOME/jdbc/lib/ojdbc14.jar dbAccess
Output: it hangs forever.
I am compiling like when LD_LIBRARY_PATH set to $ORACLE_HOME/lib:$ORACLE_HOME/rdbms/lib
javac -cp .:$ORACLE_HOME/jdbc/lib/ojdbc14.jar dbAccess.java
as my program resides in current directory. I run it like :
java -cp .:$ORACLE_HOME/jdbc/lib/ojdbc14.jar dbAccess
Output: It gets connected and list all the tables as output.
>
The ojdbc14.jar file is for use with Java 1.4 VMs.
Are you still using Java 1.4? If so, why?
For Oracle 11g you should be using the latest JDBC jar file (ojdbc6.jar) and the latest version of Java 1.6.
You are not only using an old JDBC driver and Java version but are also trying to mix 32 bit and 64 bit operations.
I suggest you start using recommended practices and update your Java and JDBC versions and select EITHER 32 bit or 64 bit operations.
See the Official JDBC FAQ for the details on the support available for various combinations of Oracle DB, Java and the JDBC drivers:
http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-faq-090281.html -
Standby database not working after reinstallation of oracle in primary DB
Hello All,
Initially I had setup primary database (DB1) and Standby database (DB2), for test environment.
In DB1 I had got ORA-600 error. So, after I researched, I came to know that I need to apply some patches. But I reinstalled oracle in DB1. And the problem was solved in DB1.
After that, I issued the following commands in DB2, but I got error
SQL>SHUTDOWN IMMEDIATE;
ORA-01034: Oracle not available
ORA-27101: shared memory realm does not exist
SQL>STARTUP MOUNT;
ORA-27102: out of memoryNow, I mean to say, both DB1 and DB2 are independent.
Also, DB2 is not active since 2 months
DB1 is working fine.
Please guide me with procedure, how to configure DB2 for the current DB1Hello;
After two months I would rebuild.
If you are on Oracle 11 you can use RMAN to do this quickly.
Here's a few short notes :
http://www.visi.com/~mseberg/duprman2.html
http://www.visi.com/~mseberg/standby_creation_from_active_database_using_rman.html
Can you post your full oracle version and Primary database size?
If you rebuild I would remove all the data files from the Standby, recopy the password file from the Primary to the Standby and double my tnsnames.ora and listener.ora on both servers.
Best Regards
mseberg -
Want to export database not user. i am using oracle 8i and developer 6i.
i am using oracle 8i and developer 6i. i have created a button(when_button_pressed) on d2k with this command mentioned below. it is working only for user objects but i need to export database. how can i do this?
declare
com varchar2(100);
begin
host('exp tAJCO/tAJCO@tajco file=D:\dump\tajco.dmp');
if
not form_success then
message('Export failed.');
else
message('Export successful');
end if;
end;
please help me.....
thanks
mostafizmostafiz,
To Export entirel database, use the statement
Host('EXP tAJCO/tAJCO@tajco FILE=D:\dump\tajco.dmp FULL=YES DIRECT=Y',NO_SCREEN);
Regards,
Manu. -
"Unable to connect to the database" when connected to corporate network
Hi
Installed Primavera P6 V7 and Oracle 10g in Stand alone on XP 32bit machines with SP3. When our machines are NOT connected to the corporate network it works fine.
However when connected to the network we can not access the locally stored database. We get message "primavera unable to connect to the database. would you like to configure the database connection now"
Database on servers that we set up are fine regardless.
If we connect machines to just the internet, again no issues.
So something is stopping Primavera opening local database when connect on our corporate network.
Any ideas please?
ThanksThis may be a long shot but look into how your TNSNAMES.ora file is being distributed on the domain (or are you possibly utilizing LDAP.ora on the domain side?).
Some time ago I remember a company scripting an ENV variable on domain logon that altered where the Oracle client would pull the TNSNAMES from. -
When to restore controlfile, rman is complaining database not mounted?
to restore controlfile, shouldn`t the database be in NOMOUNT status?
if yes, then why rman is complaining ORA-01507?
where I went wrong? Please advise.
C:\Documents and Settings\PhoenixBai>rman target / nocatalog
Recovery Manager: Release 10.2.0.1.0 - Production on Tue Dec 14 10:35:51 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database (not started)
RMAN> startup nomount;
Oracle instance started
Total System Global Area 612368384 bytes
Fixed Size 1250428 bytes
Variable Size 234883972 bytes
Database Buffers 369098752 bytes
Redo Buffers 7135232 bytes
RMAN> restore controlfile until time 'sysdate-1.5/24';
Starting restore at 14-DEC-10
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=157 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 12/14/2010 10:36:12
ORA-01507: database not mounted
RMAN>it doesn`t. I tried long before this one.
the dilemma i am facing is that I need to recover to the time which was included in incarnation 2.
And to be able to reset database to incarnation 2, i need to startup MOUNT the database.
And once you startup mount the database RESTORE CONTROLFILE won`t work any more.
below is the standard procedure, documented on 10gR2 doc, but still, i am getting errors:
Why it is throwing errors? HOw can I fix?
RMAN> alter database mount;
database mounted
RMAN> list incarnation of database orcl;
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
1 1 ORCL 1264908153 PARENT 1 30-AUG-05
2 2 ORCL 1264908153 PARENT 534907 07-DEC-10
3 3 ORCL 1264908153 CURRENT 56335397 14-DEC-10
RMAN> reset database to incarnation 2;
database reset to incarnation 2
RMAN> restore database until scn 56335390;
Starting restore at 14-DEC-10
using channel ORA_DISK_1
creating datafile fno=6 name=E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\ETLTBS01.ORA
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF
restoring datafile 00002 to E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF
restoring datafile 00003 to E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF
restoring datafile 00004 to E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
restoring datafile 00005 to E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF
channel ORA_DISK_1: reading from backup piece E:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2
MF_NNND1_TAG20101213T132300_6JCCFO2X_.BKP
channel ORA_DISK_1: restored backup piece 1
piece handle=E:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2010_12_13\O1_MF_NNND1_TAG20101213
O2X_.BKP tag=TAG20101213T132300
channel ORA_DISK_1: restore complete, elapsed time: 00:00:55
Finished restore at 14-DEC-10
RMAN> recover database until scn 56335390;
Starting recover at 14-DEC-10
using channel ORA_DISK_1
starting media recovery
media recovery failed
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 12/14/2010 11:36:14
ORA-00283: recovery session canceled due to errors
RMAN-11003: failure during parse/execution of SQL statement: alter database recover if needed
start until change 56335390
ORA-00283: recovery session canceled due to errors
ORA-38727: FLASHBACK DATABASE requires a current control file.Edited by: PhoenixBai on Dec 14, 2010 11:37 AM
Maybe you are looking for
-
Upgrading from iPhone 3Gs to iPhone 4 problems! Help!!
My uncle sent me his old iPhone 4 since he got the 4S. I currently have an iPhone 3Gs. However, when I restore the iPhone 4 from the backup of my 3Gs, my number won't transfer from the 3Gs to the iPhone 4! What do I do?
-
Need sample code in webdynpro for java
Hi all actually i have one webdynpro form which is having multiple input elements. for example name,address,phoneno,price quantity and amount. and there is update button for that form. when i click the update button the multiplication of quantity and
-
Information Text for multiple process.
Hi All, I have a page with multiple process. Process 1. Upload multiple files to table using Process Row Process 2. The Files are rearranged to another table, ready for analysis. Process 3. Uploaded file is analysed for errors 1, Process 4. Analyse f
-
MS Wireless Mouse 6000 with Lion issue
Just got a Microsoft Wireless Mobile Mouse 6000, running a Mac Mini Server on 10.7.2 and the MS Intellipoint 8.2 software. On bootup/restart the mouse works but tracks much faster and some of the side buttons don't work. If I bring up the MS Mouse op
-
Weblogic 8.1 to Weblogic 10.3
Hi , I recently tried to upgrade a portal app from Weblogic 8.1 to Weblogic 10.3 . Even though the p13n_ejb.jar and wps.jar are present. Its giving me the following errors during build. 1. The interfaces of the linked enterprise bean LdapPropertyMana