Using sqlplus to connect to an Oracle DB
I want to connect to an Oracle data base running on a Windows server. The name is ora_prod6. In the tnsnames.ora file:
ORA_PROD6.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = tcp.world)
(PROTOCOL = TCP)
(Host = ORACLE-01.XXX.XXX.COM)
(Port = 1521)
(CONNECT_DATA =
(SID = P06)
I can ping the server oracle-01.xxx.xxx.com from my Linux box. I can run sqlplus (after a nightmarish installation).
I have a userid and password for the Windows network that work (I can use smbclient and smbmount to access shares).
But I can't get access to the data base ora_prod6.
I've tried:
sqlplus myid/mypasswd@ora_prod6
but I get various error messages.
I've also tried:
[oracle@rbilonick admin]$ sqlplus
SQL*Plus: Release 8.1.6.0.0 - Production on Fri Mar 30 10:21:51 2001
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Enter user-name: myid \@ora_prod6
SP2-0306: Invalid option.
Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}] | [INTERNAL]
where <logon> ::= <username>[<password>][@<connect_string>] | /
Enter user-name: myid /@ora_prod6
SP2-0306: Invalid option.
Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}] | [INTERNAL]
where <logon> ::= <username>[<password>][@<connect_string>] | /
Enter user-name: myid/mypasswd@ora_prod6
ERROR:
ORA-12154: TNS:could not resolve service name
Any ideas on what is wrong?
Thanks.
Couldn't you use dblinks to the 9i database from your current database?
Thank you,
Tony Miller
LuvMuffin Software
Blog: https://apex1.revion.com/pls/apex/f?p=217:1:::::::
Similar Messages
-
How to using sqlplus to connect and run command ?
Hello,i have a small problem please help me
I want to use sqlplus to connect and run command
for example : sqlplus test/test@DB select sysdate from dual ;
and then it will show data (sysdate) to screen
what should i do ?
Thankskenshin19xx wrote:
Hello,i have a small problem please help me
I want to use sqlplus to connect and run command
for example : sqlplus test/test@DB select sysdate from dual ;
and then it will show data (sysdate) to screen
what should i do ?
Thanks
bcm@bcm-laptop:~$ echo "select sysdate from dual ;" > now.sql
bcm@bcm-laptop:~$ sqlplus user1/user1 @now
SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 14 20:41:33 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
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
SYSDATE
2011-12-14 20:41:33 -
Sqlplus to connect to remote oracle database server
Hi,
I have oracle 10g database server on solaris 10 and I usually connect using my solaris account and run sqlplus on the server itself. this works !
I have downloaded and installed oracle instant client for solaris 64 and I can run sqlplus command but I am confused on what should be the syntax on the command to connect to remote solaris 10 databse server where I have both system and oracle account.
I have tried sqlplus help but still I could not get correct sysntax which could be used to authenticate myself to oracle server.
I tried
sqlplus user@hostname:1512/SID
then it asked for password but when I typed password and pressed enter, it gave some error
but it again asked for username so I type user@SID and then password prompt - typed password and this works!
so I don't understand what should be the correct syntax so that in the first attempt only I am able to connect.
if possible please give the exact command with realworld examples,(I have tried with sqlplus -help already)
Thanks in advance.wonder what if I did not have tnsnames.ora on the client machine, how will be the syntax?You generally need (or at least strongly want) a tnsnames.ora file on the client machine.
- You could configure Oracle Internet Directory and let that product provide TNS alias resolution for the organization (similar to setting up DNS for a local network).
- Many tools (I haven't personally tried SQL*Plus and it may be version dependent) allow you to specify the entire TNS alias from the tnsnames.ora file (i.e. everything after the abcd.domain.com = entry) but that is hugely cumbersome to type
- Depending on the Oracle client version, the sqlnet.ora file, the complexity of your configuration (i.e. if you are trying to use more sophisticated features like failover), you may be able to use the EZConnect syntax
sqlplus username/password@host:port:SID/service_nameWhere host is the server that the database is running on, port is the port the listener is listening on (i.e. 1521 by default) and SID/service_name is the SID or service name you're trying to connect to.
Justin -
Use jdbc to connect servlet to oracle 8.1.6 database on win2k
The code is below:
package moreservlets;
import java.sql.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
/** Simple servlet used to test JDBC connection. */
public class TitleQueries extends HttpServlet {
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String title = "Connecting to Database";
DriverManager.registerDriver (new
oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection
("jdbc:oracle:thin:@pc840:1521:orcl", "scott", "tiger");
Statement stmt = conn.createStatement();
ResultSet rset = stmt.executeQuery
("select ename from emp");
while (rset.next()) {
String name = rset.getString("ename");
out.println(ServletUtilities.headWithTitle(title) +
"<body bgcolor=\"#FDF5E6\">\n" +
"<h1 align=\"center\">" + name + "</h1>\n" +
"</body></html>");
CLASSPATH=.;C:\J2ee;C:\j2sdkee1.3.1\lib\cloudscape;C:\Program Files\Apache Tomcat 4.0\common\lib\servlet.jar;C:\Oracle\Ora81\orb\classes\yoj.jar;C:\Oracle\Ora81\orb\classes\share.zip
My code cannot find the JDBC driver. Any suggestions?
Thanks.
I get the following errors:
C:\J2ee\moreservlets>javac -d "C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\
EB-INF\classes" TitleQueries.java
TitleQueries.java:19: package oracle.jdbc.driver does not exist
oracle.jdbc.driver.OracleDriver());
^
TitleQueries.java:31: cannot resolve symbol
symbol : variable name
location: class moreservlets.TitleQueries
"<h1 align=\"center\">" + name + "</h1>\n" +
^
2 errorsI changed my classpath variable and my servlet
compiles okay with the:
"import oracle.jdbc.driver.*" statement.
However, I still get the following error.
Why can't it find the jdbc driver, since it finds the
import statement?
Apache Tomcat/4.0.3
Error loading driver: java.lang.ClassNotFoundException: oracle.jdbc.driver.Oracl
eDriver
WebappClassLoader: Resource '/WEB-INF/classes/moreservlets/ServletUtilities.cl
ass' was modified; Date is now: Tue Jul 02 09:57:26 CDT 2002 Was: Tue Jul 02 09:
37:20 CDT 2002
Error loading driver: java.lang.ClassNotFoundException: oracle.jdbc.driver.Oracl
eDriver
CLASSPATH=.;C:\J2ee;C:\j2sdkee1.3.1\lib\cloudscape\RmiJdbc;C:\Program Files\Apache Tomcat 4.0\common\lib\servlet.jar;C:\Oracle\Ora81\jdbc\lib\classes12.zip;C:\Oracle\Ora81\orb\classes\yoj.jar;C:\Program Files\Oracle\JDeveloper 3.2.3\jdbc\lib\oracle8.1.7\classes12.zip;C:\Oracle\Ora81\orb\classes\share.zip
//code begins here
package moreservlets;
import java.sql.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import oracle.jdbc.driver.*;
public class TitleQueries extends HttpServlet {
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn = DriverManager.getConnection
("jdbc:oracle:thin:@pc840:1521:orcl", "scott", "tiger");
Statement stmt = conn.createStatement();
ResultSet rset = stmt.executeQuery
("select * from emp");
out.println(ServletUtilities.headWithTitle(title) +
"<body bgcolor=\"#FDF5E6\">");
while (rset.next()) {
out.println("<h1 align=\"center\">"
+ rset.getString("ename") + "</h1>\n");
out.println("</body></html>");
catch(ClassNotFoundException cnfe) {
System.err.println("Error loading driver: " + cnfe);
catch(SQLException sqle) {
System.err.println("Error connecting: " + sqle);
} -
Hi,
Each time I attempt to use SQLPLUS to connect to my db, I receive:
ERROR:
ORA-12537: TNS:connection closed
The listener.log contains these entries:
TNS-12525: TNS:listener has not received client's request in time allowed
TNS-12535: TNS:operation timed out
TNS-12606: TNS: Application timeout occurred
06-JAN-2012 17:09:51 * <unknown connect data> * (ADDRESS=(PROTOCOL=tcp)(HOST=172.19.1.54)(PORT=50067)) * establish * <unknown sid> * 12525
TNS-12525: TNS:listener has not received client's request in time allowed
TNS-12535: TNS:operation timed out
TNS-12606: TNS: Application timeout occurred
06-JAN-2012 17:10:23 * ping * 0
06-JAN-2012 17:10:23 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=SERVER01.domain.local)(PORT=1521)))(VERSION=169870336)) * status * 0
06-JAN-2012 17:10:54 * <unknown connect data> * (ADDRESS=(PROTOCOL=tcp)(HOST=172.19.1.54)(PORT=50074)) * establish * <unknown sid> * 12525
TNS-12525: TNS:listener has not received client's request in time allowed
TNS-12535: TNS:operation timed out
TNS-12606: TNS: Application timeout occurred
Earlier today, I could log in without problems. I had been experiencing this error on my first attempt to login, but if I immediately attempted a second connection, would be logged in. Now, I cannot connect. Nothing has changed otherwise. Does anyone have any idea what may be causing this? I am using the sql plus command prompt, on a Windows Server 2008 R2 Service Pack 1. Oracle 10.2.0.4 Production, 64-bit.
Thank you,
Jessejesserose wrote:
Hi,
Each time I attempt to use SQLPLUS to connect to my db, I receive:
ERROR:
ORA-12537: TNS:connection closed
The listener.log contains these entries:
TNS-12525: TNS:listener has not received client's request in time allowed
TNS-12535: TNS:operation timed out
TNS-12606: TNS: Application timeout occurred
06-JAN-2012 17:09:51 * <unknown connect data> * (ADDRESS=(PROTOCOL=tcp)(HOST=172.19.1.54)(PORT=50067)) * establish * <unknown sid> * 12525
TNS-12525: TNS:listener has not received client's request in time allowed
TNS-12535: TNS:operation timed out
TNS-12606: TNS: Application timeout occurred
06-JAN-2012 17:10:23 * ping * 0
06-JAN-2012 17:10:23 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=SERVER01.domain.local)(PORT=1521)))(VERSION=169870336)) * status * 0
06-JAN-2012 17:10:54 * <unknown connect data> * (ADDRESS=(PROTOCOL=tcp)(HOST=172.19.1.54)(PORT=50074)) * establish * <unknown sid> * 12525
TNS-12525: TNS:listener has not received client's request in time allowed
TNS-12535: TNS:operation timed out
TNS-12606: TNS: Application timeout occurred
Earlier today, I could log in without problems. I had been experiencing this error on my first attempt to login, but if I immediately attempted a second connection, would be logged in. Now, I cannot connect. Nothing has changed otherwise. Does anyone have any idea what may be causing this? I am using the sql plus command prompt, on a Windows Server 2008 R2 Service Pack 1. Oracle 10.2.0.4 Production, 64-bit.
Thank you,
JesseIt could be a mal-formed connection request due to bad tnsnames entry.
what is actual & complete connection string being issued?
post content of tnsnames.ora
post content of sqlnet.ora file if one exists
post results from following OS commands run on DB Server system
lsnrctl status
lsnrctl service -
Using Database Resident Connection Pooling
Hi all,
<br><br>
In trying to use Database Resident Connection Pooling in Oracle 11g, here is what I have done:
<br><br>
SQL> conn / as sysdba
Connected.
SQL> exec DBMS_CONNECTION_POOL.START_POOL();
PL/SQL procedure successfully completed.
SQL> SELECT STATUS,MINSIZE,MAXSIZE,INCRSIZE,SESSION_CACHED_CURSORS,INACTIVITY_TI
MEOUT
2 FROM DBA_CPOOL_INFO;
STATUS MINSIZE MAXSIZE INCRSIZE SESSION_CACHED_CURSORS
INACTIVITY_TIMEOUT
ACTIVE 4 40 2 20
300<br>
<br>
In tnsnames.ora file, here is what I have put:<br>
ORA11G =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = winxp)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ora11g)
ORA11GP =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = winxp)(PORT = 1521))
(CONNECT_DATA =
(SERVER = POOLED)
(SERVICE_NAME = ora11g)
)<br>
<br>
Now, in sqlplus in attempt to use DRCP, here is what I got:<br>
SQL> CONN HR/HR@ORA11G
Connected.
SQL> CONN HR/HR@ORA11GP
ERROR:
ORA-28547: connection to server failed, probable Oracle Net admin error
Warning: You are no longer connected to ORACLE.<br>
<b>Is there anything I missed to properly use DRCP.</b>
<br>
Thanks in advance.According to Metalink note:
Subject: Using DRCP and NTS Authentication Results in ORA-28547
Doc ID: Note:563943.1 Type: PROBLEM
Last Revision Date: 19-MAY-2008 Status: MODERATED
this is a bug on Windows and you should configure client sqlnet.ora so that SQLNET.AUTHENTICATION_SERVICES=NONE. -
I have database running on Oracle 11.2.0.3 on Linux 5.5 64bit. Another server where I have installed Oracle Client 11.2.0.1 32-bit (x86). (http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linuxsoft-085393.html).
But I can not do tnsping, I get segementation fault. Additionally, I can not to database using sqlplus <user>@SID. I get prompted for the password, then I am back the unix prompt again without any error.
For debugging, I installed 64bit version of the client, which can connect to database. I am using same version/copy of tnsnames.ora. No special character (^M) in the tnsnames.ora.
Any suggestions how do I get this fixed?
Thanks,
KPI figure I should update my findings on the resolution.
during Oracle 11.2.0.1 client installation, there was an error/warning message about oracle net configuration assistant unable to run. So, I had ignore it thinking its benign and created the tnsnames.ora file manually. On a hunch after 9 days of debugging, i decided to look into this warning message, and found some info in the ora32Inventory/logs/installAction-<date>.log. It had following error about java when running oracle net config.
INFO: # Java VM: Java HotSpot(TM) Server VM (1.5.0_17-b02 mixed mode)
INFO: # Problematic frame:
INFO: # C [libnnz11.so+0x3c35e]
So, I google the error, and after some research and reading, found an oracle patch to address this error:
ORA-24550: SQL*Plus 32-Bit Client May Crash On Linux X86-64 OS With AMD Processor [ID 1120724.1]
Patch info: 8670579 - DBBETA :NETCA/DBCA FAILED WITH HOTSPOT VIRTUAL MACHINE
Typically, this patch (8670579) is installed on Oracle RAC. however I tried on my app server (oracle client). It resolved my sqlplus issue and more importantly it resolve my application (Business Objects/BSAE) installation issue where it was unable to connect to oracle database using 11.2.0.1 client.
Cheers,
KP -
Connecting to an oracle database with SQLPlus
I'm trying to connect from one CentOS server with SQLPlus installed to another CentOS server with Oracle installed.
I've installed
oracle-instantclient-basic-11.1.0.1-1.i386.rpm
and
oracle-instantclient-sqlplus-11.1.0.1-1.i386.rpm
on the first server.
I'm able to connect to the oracle server via SQL Developer without difficulties.
When I try to connect to it via the command line with SQLPlus, I'm running the following:
sqlplus savantdb@//192.168.100.37:1521/orcl
But all I'm getting back is something that reads like help documentation.
I've exported the LD_LIBRARY_PATH to point at /usr/lib/oracle/11.1.0.1/client/lib/:/lib
I've created a tnsnames.ora file in my home directory containing the following:
orcl=
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=tcp)
(HOST=drax)
(PORT=1521)
(CONNECT_DATA=
(SERVICE_NAME=orcl)
Then I tried moving to my home directory and running
sqlplus savantdb@orcl
This prompts for a password, then throws the following error:
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
Then asks for a username/password, after which it throws the following error:
ERROR:
ORA-12162: TNS:net service name is incorrectly specified
What I want to do is allow my unit tests written in Selenium and PHPUnit to make shell_exec calls to execute sql files to recreate the database from scratch before putting the application through its paces. So I need to make it totally non-interactive.
Can anyone give me a clue where I'm going wrong here?You are mixing up the various naming methods. Try to stick to one!
Your first attempt sqlplus savantdb@//192.168.100.37:1521/orcl uses the so-called "easy connect" method.
That's actually not a bad idea, as it is fairly short and does not require a "tnsnames.ora" file, which is a pain in the somewhere or else.
sqlplus has a parsing problem if you don't enclose part of the string in double quotes. You cannot find that in the documentation, but in Metalink Note 274757.1.
The syntax is like this:
sqlplus savantdb@\"//192.168.100.37:1521/orcl\"
Your second attempt tries to use the TNS (local) naming method, but for that you need to have an environment variable TNS_ADMIN pointing to the directory containing "tnsnames.ora". It does not matter if that directory is your current directory or not. You don't need that if you use the method described above.
The last error message is because of the annoying behaviour of sqlplus to ask for username and password (for a local connection!) again if the first attempt failed.
You can avoid that by giving sqlplus the -L flag.
Yours,
Laurenz Albe
PS: If you want to "make it totally non-interactive" you should add a password, like
sqlplus savantdb/password@//192.168.100.37:1521/orcl
In that case, you don't need to add the \" -
Database connection issue using SQLPLUS
I have a WIN7 Host named DELL-i5 and a WINXP VM named VMXP on VMWARE.
Now, the host has a Oracle 11g database orders, SID - orders, username - SYSTEM, password - abc123. I have set the listener to be on port 1521 using NETCA.
The VM has Oracle client 11g.
The VM is connected as Bridged and host and VM can ping each other.
Now, when I choose to connect to the database using this command from VM :
sqlplus SYSTEM/abc123@//DELL-i5:1521/orders
I get ORA-12170: TNSConenct timeout occurred
I have tried the following on th Host's SQLPLUS and only this worked
SYSTEM/abc123@orders
What do I do ? Thanks
Edited by: ztech123 on 28-Oct-2010 18:38ztech123 wrote:
I get ORA-12170: TNSConenct timeout occurredFull details of the error from the oerr comand:
<i>12170, 00000, "TNS:Connect timeout occurred"
// *Cause: The server shut down because connection establishment or
// communication with a client failed to complete within the allotted time
// interval. This may be a result of network or system delays; or this may
// indicate that a malicious client is trying to cause a Denial of Service
// attack on the server.
// *Action: If the error occurred because of a slow network or system,
// reconfigure one or all of the parameters SQLNET.INBOUND_CONNECT_TIMEOUT,
// SQLNET.SEND_TIMEOUT, SQLNET.RECV_TIMEOUT in sqlnet.ora to larger values.
// If a malicious client is suspected, use the address in sqlnet.log to
// identify the source and restrict access. Note that logged addresses may
// not be reliable as they can be forged (e.g. in TCP/IP).</i>
What do I do ? ThanksYou have tested connectivity via ICMP - so there is a network route between the sender and receiver. However a timeout results when using 1521/tcp for access via SQL*Plus.
First test connectivity for that port using telnet. On VMXP try the following.
telnet dell-i5 1521
Do you get a connection? If not, then it means that despite ICMP reporting connectivity, there is none on 1521/tcp. In that case the culprit could be a firewall.
If you do get a connection, then try sqlplus next, but without a tnsnames.ora and sqlnet.ora file - e.g.
sqlnet syste/abc123@"(DESCRIPTION= (ADDRESS= (PROTOCOL=TCP)(HOST=dell-i5)(PORT=1521)) (CONNECT_DATA= (SID=orders) (SERVER=dedicated)))"
The idea is to keep the number of configuration files and details to a minimum for testing purposes and to isolate the problem.
Also check basic stuff like netmasks of both the guest and host operating systems, routing tables and so on. -
Total noob question. I'm having trouble connecting to my database using sqlplus.
The database is on a different machine and is 11g. I have 9i and 10g clients installed locally.
I'm using the following syntax:
sqlplus usrnm/pass@orcl
and the error i get back is TNS could not resolve connect identifier specifiied
my tns entry looks like this:
DEVORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = dev-vmdb01)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
I also have a different TNS entry to another db like this:
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = dev-db02)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = orcl)
I could see how it would be confused. But i'm not asked to specify the machine name so how can i correct this?
Thanks for any suggestions.export ORACLE_HOME=/path/of/your/oracle/client/binary/upto/db_Xfor example echo $ORACLE_HOME
/home/oracle/oracle/product/10.2.0/db_1
tnsping anything
tnsping anythingTNS Ping Utility for Linux: Version 10.2.0.2.0 - Production on 29-AUG-2009 23:27:02
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
/home/oracle/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
TNS-03505: Failed to resolve name
$
now it would show which oracle home is currently in use
i.e /home/oracle/oracle/product/10.2.0/db_1 -- see the path in "Used parameter files" -
How to use oci7 to connect oracle 7.1.6
is that only need to change the String as "jdbc.oracle.oci8:" to
"jdbc.oracle.oci7", it will search for oci native code by the jdbc driver?
my using classes12.zip; and classes111.zip also available.
which gentleman can help me?
thanks
fredString change alone will not help. Oracle connects to a remotely located database via its own netclient software which you must install. If the platform is same for client and database server, then you do not need netclient but you then have to keep listener running and set up Oracle home, Oracle_sid properly. You could test all these connectivity issues by using sqlplus. If that works well, everything is fine and you then just have to experiment with different connect string in your java prog. hope this helps??
-
How to STARTUP multiple Oracle Databases, using sqlplus
Hi guys,
I am pretty new at solaris and oracle, right now i have oracle 11gr2 installed in my Solaris 10 machine.
I managed to create 2 databases with 2 different ORACLE_SID, (e.g. A & B)
my question is, is it possible to have both of this Databases mounted and opened??
here is the step i have done so far:
- go to /ORACLE_HOME/bin
- I started my one and only LISTENER - ./lsnrctl start LISTENER
- ORACLE_SID=A
- ./sqlplus / as sysdba
- SQL>STARTUP
Everything went well, until i set another ORACLE_SID (in another terminal) to ORACLE_SID=B, and when i tried to start it up using SQLPLUS, i get this "Segmentation Fault - core dumped".
It seems like i start the 2nd database wrongly, is there proper way to do this?
i need the 2 databases (SID A & SID B) to be running concurrently.
thanks$ ORACLE_SID=AM
$ export ORACLE_SID
$ ./lsnrctl start LISTENER
LSNRCTL for Solaris: Version 11.2.0.1.0 - Production on 04-NOV-2010 14:38:45
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Solaris: Version 11.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/unknown/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.77)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.10.10.77)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Solaris: Version 11.2.0.1.0 - Production
Start Date 04-NOV-2010 14:38:49
Uptime 0 days 0 hr. 0 min. 5 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/unknown/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.77)(PORT=1521)))
The listener supports no services
The command completed successfully
$ ./sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Thu Nov 4 14:39:52 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> STARTUP
ORACLE instance started.
Total System Global Area 855982080 bytes
Fixed Size 2215824 bytes
Variable Size 562036848 bytes
Database Buffers 285212672 bytes
Redo Buffers 6516736 bytes
Database mounted.
Database opened.
SQL> 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_SID=SDB3
$ export ORACLE_SID
$ ./sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Thu Nov 4 15:11:22 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> STARTUP
Segmentation Fault - core dumped
So first of all , I set the oracle SID to AM -> Start a Listener -> start sqlplus as sysdba -> STARTUP
2ndly, I set the oracle SID to SDB 3 -> start sqlplus as sysdba -> do another STARTUP , Segmentation Fault - core dumped
Hope you can help with this, been stuck here for almost 3 days, =p thanks!
Edited by: 807471 on Nov 4, 2010 12:47 AM -
Can connect using sqlplus, cannot using SQL Developer
Hi
I cannot find out why I cannot connect using SQL developer, while sqlplus works fine with the same login information.
*1. TNS ping:*
C:\>TNSPING manila
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 24-GRU-2
010 13:28:38
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.171)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
OK (370 msec)
*2. sqlplus*
SQL> CONNECT SULU_DEV/<pass>@MANILA
Connected.
*3. sqlplus - by IP*
SQL> CONNECT SULU_DEV/<pass>@10.0.0.171:1521/XE
Connected.
*4. SQL Developer*
Username: SULU_DEV
Connection type: TNS
Network alias: MANILA
Error: I/O Exception: Connection reset
*5. SQL Developer - by IP*
Username: SULU_DEV
Connection type: Basic
Hostname: 10.0.0.171
Port: 1521
SID: xe
Error: I/O Exception: Connection reset
*6. SQL Developer - without username*
Username: <blank>
Connection type: TNS
Network alias: MANILA
Error: ORA-01017: invalid username/password
It seems that I have connection to the server, but from some reason it is disconnected when I'm using SQL Developer, but works fine with sqlplus.
Any ideas on what it might be?
Thank you in advance,
Regards,
MarekThe connection export function it's available in 2.1.1.64, you need to right click on the main Connections node, and it will allow you to export all or part of the current connections, or import from a previously exported file.
As for the highlight statement feature it's available in SQLDeveloper; actually you do not even have to highlight the required statement, as long as you take the habit of ending every statement with a ";", in this case you only need to place the caret inside the statement and SQLDeveloper will automatically highlight it for you (if you want to manually highlight a statement you can still do so without problems).
Finally as a last try to solve your connection problem without having to call for network support you could try to check
Preferences -> Database -> Advanced -> Use OCI/Thick DriverThis will force SQLDeveloper to use your oracle client for connections instead of it's native JDBC based connections (even if you use TNS based connections you will still use JDBC unless you have this checked).
As for other graphical tools for Oracle there are many both free or for a price.
1) In the for price world Toad stands out, i heard of a free option too but I'm not sure of the limitations.
2) For free you can use DBVisualizer which is fairly good (never used it too much thou).
3) Finally there is SQuirreL which is both free and open source but it has fairly basic functionality compared to the two above.
Obviously there are many others, but IMHO few will provide you with the same functions of SQLDeveloper or Toad for Oracle databases -
APPS connection to db using SQLPLUS
Hi Gurus,
As part of security implementaiton after a successful upgrade of DB from 9.2.0.6 to 10.2.0.5 we have created custom db users to connect to the database so we can audit user activities. We have also changed the APPS password and other users like HR etc. Now we want to disable APPS connection to the db using sqlplus and toad.
Is there a way we can stop Apps and other users like hr connection to the db using sqlplus and toad?
Thanks.Is there a way we can stop Apps and other users like hr connection to the db using sqlplus and toad?Yes.
11.5.10 New Features : Managed SQL*Net Access from Hosts [ID 291897.1]
Best Practices for Securing the E-Business Suite [ID 189367.1]
Best Practices For Securing Oracle E-Business Suite Release 12 [ID 403537.1]
restrict access for toad,sql application from unauthorized users
restrict access for toad,sql application from unauthorized users
Thanks,
Hussein -
Need to connect to upgraded Oracle EBS R12 version from R11. The current ODI set up is pointing to R11, Can i use the same connection to point to R12? Please hele experts...
Rp1. in physical connections part can i use the same work schema
2. Can i use same contexts created or do i need to create everything as new and then try?
Thanks,
Rp.
Hi,
As you mentioned that you just upgraded the database, so the data is same and schema is same you can connect with the same work schema.
Yes, you can use the same contexts , but need to do Reverse Engineering for your new database.
And about data server, i think you also have no need to create new data server, if hostname,sid and port etc are same as these were with R11(consult with your DBAs regarding it)
Maybe you are looking for
-
Error while Inserting data into flow table
Hi All, I am very new to ODI, I am facing lot of problem in my 1st interface. So I have many questions here, please forgive me if it has irritated to you. ======================== I am developing a simple Project to load a data from an input source f
-
Offline install of Windows 7 SP1 not recognised by Windows Update
Hi I have asked this question over at the Windows Community forum, and someone suggested that I ask here. This question regards Windows 7 and Service pack 1 I bought a couple of new computers, and decided to use the offline SP1 installation on each t
-
Hello, When I am trying to add a Collector baesd on a UDP port, targetted to an IP LDAP Device, on the port 30389, I have the error message : IPM Error Dialog : Target must be a regular IP Device (not a router) when the target port is less than 1025.
-
Payment blocking for MIRO invoice.
Hi, We Need to build Payment release workflow for MIRO invoice. If the invoice amount exceeds 10000, that line item need to be blocked and shoudl be sent a mail for approval. My doubt is, whether the payment blocking is done by configura
-
Dynamic User for Receiver RFC adapter
Hi, I have a soap to rfc scenario. Any solution to use PI login user as RFC user to connect SAP backend? Thanks