Connect using sqlplus
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"
Similar Messages
-
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 -
Database connection using sqlplus
Hi All,
Can someone please do explain why am getting different result with the following scenarios:
scenario 1
1. I installed a database server and created a user ops$user1 identified externally.
2. I created a unix user user1 (on the same machine) and make it member of oinstall and dba groups, set the environment variables the same as the oracle user.
3. I create a database user user2 identified by password2
4. Login as user1
5. run sqlplus /nolog
6. conn / <----- connection successful
7. conn user2/password2 <---- connection successful
scenario 2
1. I created instantclient group and user (nologin) with home directory at /opt/instantclient (perm 750).
2. I installed instantclient together with sqlplus and put it in /opt/instantclient.
3. I modified the group profile of user1 by removing oinstall and dba, member it to instantclient group.
4. set environment variables PATH, ORACLE_SID, LD_LIBRARY_PATH, CLASSPATH to include /opt/instantclient folder.
5. Login as user1
6. run sqlplus /nolog
7. conn / <----- got an error, it says ORA-12545: Connect failed because target host or object does not exist
8. conn user2/password2 <---- the same error
9. conn user2/password2@oracle_sid <-- successful
How come when using instantclient I need to supply the oracle sid? What we need is to connect using instantclient and need not to specify the oracle sid. Is this possible?
Many thanks for those who will reply.Here it is:
SQL> show parameter authent
NAME_COL_PLUS_SHOW_PARAM
TYPE
VALUE_COL_PLUS_SHOW_PARAM
os_authent_prefix
string
ops$
remote_os_authent
boolean
FALSE -
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 -
Cannot connect via sqlplus as sysdba
Hi,
I have Oracle 10g setup on Redhat Enterprise v4. I was able to do everything I needed until I rebooted. Now I can't connect using sqlplus. I get error ora-01031 when I type "connect system/*** AS SYSDBA" Anyone know what why this is happening?
Any help would be appreciated.
Thanks,
AdamAccording to me this should be dba, why its showing the group as oracle?I'm not sure why it's showing up as oracle. Do I need to change this? As far as I can tell, oracle is a group that no user is a member of.
Did you ever able make connection using / as sysdba?On this computer, I don't think I ever logged in as sysdba other than just as a system user.
What group did you specify while installing the software?groupadd oinstall
groupadd dba
groupadd oper
usermod -g oinstall -G dba oracle
Pretty much followed http://www.oracle-base.com/articles/10g/OracleDB10gR2InstallationOnRedHatAS4.php and the oracle docs on installation.
Message was edited by:
user529261 -
Allowing other system user to use sqlplus
hi guys.
Did install oracle on solaris using the oracle account. the ORACLE_HOME=/oracle/app/oracle i.e found in the oracle home directory. And its primay and secondary groups are oinstall and dba respectively.
Now say another user admin wants to connect and use the database i.e by runinng sqlplus, ...new update!
After connecting from oracle user, could start the db as oracle bash profile has been set to
[panic@bruno panic]$ more .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:/home/oracle/ora10g/bin
export PATH
export ORACLE_HOME=/home/oracle/ora10g
export ORACLE_SID=orcl
unset USERNAME
[panic@bruno panic]$ su - oracle
[oracle@bruno oracle]$ clear
[oracle@bruno oracle]$ more .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/ora10g/bin
export PATH
export ORACLE_SID=orcl
export ORACLE_HOME=/home/oracle/ora10g
unset USERNAME
[oracle@bruno oracle]$
and for the second user whose name is panic
[panic@bruno panic]$ more .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$ORACLE_HOME/ora10g/bin
export PATH
export ORACLE_HOME=/home/oracle/ora10g
export ORACLE_SID=orcl
unset USERNAME
[panic@bruno panic]$
Now, ai cant start the db either when connected as panic or oracle. But the pb is that when ai start the db as panic, when oracle connects using sqlplus, it says connected to an idle instance! Can any on explain??
as oracle
[oracle@bruno oracle]$ sqlplus
SQL*Plus: Release 10.1.0.2.0 - Production on Tue Aug 15 00:26:02 2006
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Enter user-name: /as sysdba
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL>
now when connected as panic,
[panic@bruno panic]$ sqlplus
SQL*Plus: Release 10.1.0.2.0 - Production on Tue Aug 15 00:37:21 2006
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Enter user-name: /as sysdba
Connected to an idle instance.
SQL> startup
ORA-27123: unable to attach to shared memory segment
Linux Error: 13: Permission denied
If ai start by connecting to panic, sqlplus works find on panic and the same thing occurs with user oracle! any explanation to this??
DID -
I am getting error while connecting to sqlplus by using apps account in 11i
i am getting error while connecting to sqlplus by using apps account in 11i. Does anyone has similar error.
[applmgr@appsc05t01 admin]$ sqlplus
SQL*Plus: Release 8.0.6.0.0 - Production on Mon Sep 13 14:34:52 2010
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Enter user-name: apps
ERROR:
ORA-12514: Message 12514 not found; product=RDBMS; facility=ORA
Enter user-name:
Thanks
Raoyes.
login as: gorantla
[email protected]'s password:
Last login: Mon Sep 13 14:39:23 2010 from glng3wy9g1.actuant.pri
[gorantla@appsc05t01 ~]$ sudo su - applmgr
[applmgr@appsc05t01 ~]$ ora_setup
Available databases:
x = ATUXX
y = ATUYY
z = ATUZZ
Select database: \c
y
ORACLE_SID=ATUYY
IAS_ORACLE_HOME=/apps/ATUYY/atuyyora/iAS
ORACLE_HOME=/apps/ATUYY/atuyyora/8.0.6
APPL_TOP=/apps/ATUYY/atuyyappl
[applmgr@appsc05t01 ~]$
[applmgr@appsc05t01 ~]$
[applmgr@appsc05t01 ~]$
[applmgr@appsc05t01 ~]$ tnsping ATUYY
TNS Ping Utility for Linux: Version 8.0.6.3.0 - Production on 13-SEP-2010 15:42:32
(c) Copyright 1997 Oracle Corporation. All rights reserved.
Attempting to contact (ADDRESS=(PROTOCOL=tcp)(HOST=dbrac05t01-vip.actuant.pri)(PORT=1611))
OK (0 msec)
[applmgr@appsc05t01 ~]$ sqlplus
SQL*Plus: Release 8.0.6.0.0 - Production on Mon Sep 13 15:42:40 2010
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Enter user-name: apps
ERROR:
ORA-12514: Message 12514 not found; product=RDBMS; facility=ORA
Enter user-name:
Thanks
Rao -
Hi folks, having this issue, with only one of my so many databases, what might be the reason and how to fix/correct this, please assist.
Able to connect using sql developer, but not sqlplus or toad too; sqlplus error: ORA-12154: TNS:could not resolve the connect identifier specified
thanks in advance.SQLDEVELOPER works since it use JDBC Thin & does not use tnsnames.ora
ORA-12154 ALWAYS only occurs on SQL Client & no SQL*Net packets ever leave client system
ORA-12154 [B]NEVER[/B] involves the listener, the database itself or anything on the DB Server.
ORA-12154 occurs when client requests a connection to some DB server system using some connection string.
TNS-03505 is thrown by tnsping & is same error as ORA-12154 thrown by sqlplus or others.
The lookup operation fails because the name provided can [B]NOT[/B] be resolved to any remote DB.
The analogous operation would be when you wanted to call somebody, but could not find their name in any phonebook.
The most frequent cause for the ORA-12154 error is when the connection alias can not be found in tnsnames.ora.
The lookup operation of the alias can be impacted by the contents of the sqlnet.ora file; specifically DOMAIN entry.
TROUBLESHOOTING GUIDE: ORA-12154 & TNS-12154 TNS:could not resolve service name [ID 114085.1]
http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/ -
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 -
Connecting to SQLPLUs and using DBCA
hi
i have just installed oracle 10g on a fresh windos xp machine and after installation, DBCA is not able to create database
When it starts creating database, it returns error
ORA-24324: Service handle not initializaed
ORA-24323: Value not allowed
ORA-28547: connection to server failed, probable Oracle Net admin error
Some thing same i am facing if i use oracle 9i DBCA to create a database.
If i try to use SQLPLSU to login to the database, it doesnt allow me and returns error of "hotsdef not found"
let me tell you one thing that i am logged in to the OS as a domain user "salman.qureshi'
Amaizingly if i log into the windows using local administrator, it allows me everthing to do.
my domain user "salman.qureshi" is the member of local ORA_DBA group and also local administrator group (same groups as local ADMINISTRATOR user is connected)
any clue?
RegardsWell i am on wondows XP,
it doesnt let me connect to SQLPLUS unless i specify a TNS Service while connecting to a local DB, This is the reason that DBCA is not able to create a database, when i log into the system as local Admunistrator, it allows me to connect and create a database So i created a database.
now if i log into the system using domain user, and write scott/tiger, it is returning error "end-of-file on communication channel"
but if i use scorr/tiger@tnservice, it connects me
Regards -
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 -
11g R2(11.2.0.2)-Not able to connect using SID - Win 7 32 bit
Hi Experts,
I have installed 11gR2(11.2.0.2) on Win 7 32 bit OS.
I am able to start database and listener services without any problem. ORACLE_BASE and ORACLE_HOME variables are set.
I am even able to connect to database using "sqlplus user/pass". (With ORACLE_SID variable set)
However, sqlplus command hangs when I try to connect using SID "sqlplus user/pass@o11gr2".
(No error, after waiting for >20 minutes I have to kill the command.)
=================
Following in "C:\Oracle\product\11.2.0.2\dbhome_3\RDBMS\trace\o11gr2_ora_6352.trc"
- "2012-04-05 09:50:55.846: [ default]ut_read_reg:2:ocr registry key SOFTWARE\Oracle\ocr cannot be opened. error 2"
Following in "C:\Oracle\product\11.2.0.2\dbhome_3\log\machinename\client"
- 2012-04-26 14:35:18.781: [ default][1216]ut_read_reg:2:ocr registry key SOFTWARE\Oracle\olr cannot be opened. error 2
[ CLSE][1216]clse_get_crs_home: Error retrieving OLR configuration [0] [Error opening olr registry key. The system cannot find the file specified.
"tnsping" returns OK for "tnsping o11gr2", "tnsping localhost", "tnsping 127.0.0.1", "tnsping 192.168.0.1"
Output of LSNRCTL:
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=J1009615W7LT.jda.corp.local)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
Start Date 26-APR-2012 14:35:17
Uptime 0 days 0 hr. 4 min. 6 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\Oracle\product\11.2.0.2\dbhome_3\network\admin\listener.ora
Listener Log File C:\Oracle\diag\tnslsnr\J1009615W7LT\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=J1009615W7LT.jda.corp.local)(PORT=1521)))
Services Summary...
Service "O11GR2" has 2 instance(s).
Instance "O11GR2", status UNKNOWN, has 1 handler(s) for this service...
Instance "O11GR2", status READY, has 1 handler(s) for this service...
The command completed successfully
=================
This was working earlier. One day it stopped working all of a suddent and I am not able to connect using SID till now.
I tried re-installing in different home multiple times. But no luck even after disabling firewall completely.
Any suggest/help is greatly appreciated on this.------------------------------tnsping-------------------------
C:\>tnsping o11gr2
TNS Ping Utility for 32-bit Windows: Version 11.2.0.2.0 - Production on 26-APR-2012 14:54:32
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
C:\Oracle\product\11.2.0.2\dbhome_3\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = J1009615W7LT.jda.corp.local)(PORT = 1521
))) (CONNECT_DATA = (SERVICE_NAME = O11GR2)))
OK (30 msec)
C:\>
-----------------------------ping-------------------------------
C:\>ping J1009615W7LT.jda.corp.local
Pinging J1009615W7LT.jda.corp.local [fe80::20c9:b748:311a:95e4%14] with 32 bytes of data:
Reply from fe80::20c9:b748:311a:95e4%14: time<1ms
Reply from fe80::20c9:b748:311a:95e4%14: time<1ms
Reply from fe80::20c9:b748:311a:95e4%14: time<1ms
Reply from fe80::20c9:b748:311a:95e4%14: time<1ms
Ping statistics for fe80::20c9:b748:311a:95e4%14:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\>ping 10.60.200.221
Pinging 10.60.200.221 with 32 bytes of data:
Reply from 10.60.200.221: bytes=32 time<1ms TTL=64
Reply from 10.60.200.221: bytes=32 time<1ms TTL=64
Reply from 10.60.200.221: bytes=32 time<1ms TTL=64
Reply from 10.60.200.221: bytes=32 time<1ms TTL=64
Ping statistics for 10.60.200.221:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\>
-----------------------------C:\Oracle\diag\tnslsnr\J1009615W7LT\listener\alert\log.xml---------------------------------
</msg>
<msg time='2012-04-26T14:35:18.855-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
</txt>
</msg>
<msg time='2012-04-26T14:35:26.200-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>26-APR-2012 14:35:26 * ping * 0
</txt>
</msg>
<msg time='2012-04-26T14:35:43.204-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>26-APR-2012 14:35:43 * ping * 0
</txt>
</msg>
<msg time='2012-04-26T14:35:55.952-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>Dynamic address is already listened on (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=J1009615W7LT.jda.corp.local)(PORT=1521)))
</txt>
</msg>
<msg time='2012-04-26T14:35:55.953-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>26-APR-2012 14:35:55 * service_register * O11GR2 * 0
</txt>
</msg>
<msg time='2012-04-26T14:37:08.732-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>26-APR-2012 14:37:08 * ping * 0
</txt>
</msg>
<msg time='2012-04-26T14:38:34.943-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>26-APR-2012 14:38:34 * (CONNECT_DATA=(SERVICE_NAME=O11GR2)(CID=(PROGRAM=C:\oracle\product\11.2.0.2\dbhome_3\bin\sqlplus.exe)(HOST=J1009615W7LT)(USER=j1009615))) * (ADDRESS=(PROTOCOL=tcp)(HOST=fe80::20c9:b748:311a:95e4%14)(PORT=51907)) * establish * O11GR2 * 0
</txt>
</msg>
<msg time='2012-04-26T14:39:23.627-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>WARNING: Subscription for node down event still pending
</txt>
</msg>
<msg time='2012-04-26T14:39:23.628-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>26-APR-2012 14:39:23 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=j1009615))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186647040)) * status * 0
</txt>
</msg>
<msg time='2012-04-26T14:54:25.550-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>System parameter file is C:\Oracle\product\11.2.0.2\dbhome_3\network\admin\listener.ora
</txt>
</msg>
<msg time='2012-04-26T14:54:25.551-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>Log messages written to C:\Oracle\diag\tnslsnr\J1009615W7LT\listener\alert\log.xml
</txt>
</msg>
<msg time='2012-04-26T14:54:25.552-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>Trace information written to C:\Oracle\diag\tnslsnr\J1009615W7LT\listener\trace\ora_11640_3776.trc
</txt>
</msg>
<msg time='2012-04-26T14:54:25.553-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>Trace level is currently 0
</txt>
</msg>
<msg time='2012-04-26T14:54:25.553-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>
</txt>
</msg>
<msg time='2012-04-26T14:54:25.555-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>Started with pid=11640
</txt>
</msg>
<msg time='2012-04-26T14:54:25.560-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=J1009615W7LT.jda.corp.local)(PORT=1521)))
</txt>
</msg>
<msg time='2012-04-26T14:54:26.695-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>Listener completed notification to CRS on start
</txt>
</msg>
<msg time='2012-04-26T14:54:26.712-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
</txt>
</msg>
<msg time='2012-04-26T14:54:29.880-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>Dynamic address is already listened on (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=J1009615W7LT.jda.corp.local)(PORT=1521)))
</txt>
</msg>
<msg time='2012-04-26T14:54:29.881-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>26-APR-2012 14:54:29 * service_register * O11GR2 * 0
</txt>
</msg>
<msg time='2012-04-26T14:54:32.090-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='J1009615W7LT'
host_addr='fe80::20c9:b748:311a:95e4%14'>
<txt>26-APR-2012 14:54:32 * ping * 0
</txt>
</msg>
Edited by: 850920 on Apr 26, 2012 11:59 AM -
Hi to everybody
I installed oracle Client 10g-home2 in my laptop having the Windows 7 Home premium OS.. But I cant able to connect with
SQLPLUS. After entering the Username,password,hoststring it is exiting.. It doesn't show any errors..
Can anyone tel whats the problem also whats the username,password and host string need to give??
How can I check If oracle Database is installed or not??
Thanks in advanceThere are several issues with the information you have posted.
First, you have installed the client - this is software needed to access a database on a remote computer. This does not include the software needed to create a database. For this, you will need to install the full blown software (which also includes the client piece) and create a database.
Second, no Oracle software is supported/certified on any Windows Home version. You will need to upgrade to Win 7 Professional or higher, or downgrade to Win XP Pro.
The database software download for 11gR2 is available here - http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
The Install Guide for 11gR2 is here (for Win) - http://download.oracle.com/docs/cd/E11882_01/install.112/e16773/toc.htm
When you install the software on a supported OS, one of the options is to create a database (typically named "orcl") during the install process - you select a password when creating the database. Or you could install the software first, then create a database using DBCA (database creation assistant) - pl review the Guide posted above
HTH
Srini -
Trying to log in using sqlplus /nolog and getting SP2-0640
Hello, I searched for this problem but not having much luck. I have Oracle 9iR2 running on Solaris 9 workstation. I can log on giving sys/passwd as sysdba and log on using any other user accounts. What I can't do is get into sqlplus using /nolog. I am setting up a dataguard physical clone. The clone is another 9iR2 workstation and i just installed the RDBMS software without creating a database. I can go into this database with sqlplus /nolog. I cannot do this on my intended primary database. I remember being able to get into the database when i first set it up using sqlplus /nolog but have since changed the unix account password and i believe this caused it but when i change the password back to the same one when I created the database, it still does not work. The error I get is SP2-0640: Not connected. Is there a log I can look up that will give me more information? thanks,
JimNormally this errors occurs, if you have in glogin.sql (located in $ORACLE_HOME/sqlplus/admin) or login.sql statements,which require a working connection.
Werner -
Failover - How to achieve a transparent failover using SQLPlus
AIX 5.3 Oracle Clusterware 10.2.0.4.0 Oracle Enterprise Edition 10.2.0.4.0
This is the behavior I see from an Oracle Client session which is to be expected if I read RAC: Frequently Asked Questions [ID 220970.1] see below
(1) SQLPlus session connected to NodeA
(2) NodeA - Clusterware services stopped
(3) NodeA-vip has failed over to Node B
(4) SQLPlus session receives an error
(5) SQLPlus establish new connection to NodeA-vip
My question is how is a transparent SQLPLus session failover achieved as illustrated in [ID 339107.1] see below
*** Dedicated Connections to a Migrated VIP Can Lose their Connection after the VIP is Switched Back [ID 339107.1] ***
SQL> select instance_name from v$instance;
INSTANCE_NAME
rac11g1
$ crsctl stop crs
SQL> /
INSTANCE_NAME
rac11g2
RAC: Frequently Asked Questions [ID 220970.1]
*** Why do we have a Virtual IP (VIP) in Oracle RAC 10g or 11g? Why does it just return a dead connection when its primary node fails? ***
The goal is application availability.
When a node fails, the VIP associated with it is automatically failed over to some other node. When this occurs, the following things happen.
(1) VIP detects public network failure which generates a FAN event.
(2) the new node re-arps the world indicating a new MAC address for the IP.
(3) connected clients subscribing to FAN immediately receive ORA-3113 error or equivalent. Those not subscribing to FAN will eventually time out.
(4) New connection requests rapidly traverse the tnsnames.ora address list skipping over the dead nodes, instead of having to wait on TCP-IP timeouts
Without using VIPs or FAN, clients connected to a node that died will often wait for a TCP timeout period (which can be up to 10 min) before getting an error.
As a result, you don't really have a good HA solution without using VIPs and FAN. The easiest way to use FAN is to use an integrated client with Fast Connection Failover (FCF) such as JDBC, OCI, or ODP.NET.
*** What do the VIP resources do once they detect a node has failed/gone down? Are the VIPs automatically acquired, and published, or is manual intervention required? Are VIPs mandatory? ***
With Oracle RAC 10g or higher, each node requires a VIP. With Oracle RAC 11g Release 2, 3 additional SCAN vips are required for the cluster. When a node fails, the VIP associated with the failed node is automatically failed over to one of the other nodes in the cluster. When this occurs, two things happen:
1. The new node re-arps the world indicating a new MAC address for this IP address. For directly connected clients, this usually causes them to see errors on their connections to the old address;
2. Subsequent packets sent to the VIP go to the new node, which will send error RST packets back to the clients. This results in the clients getting errors immediately.
In the case of existing SQL conenctions, errors will typically be in the form of ORA-3113 errors, while a new connection using an address list will select the next entry in the list. Without using VIPs, clients connected to a node that died will often wait for a TCP/IP timeout period before getting an error. This can be as long as 10 minutes or more. As a result, you don't really have a good HA solution without using VIPs.
With Oracle RAC 11g Release 2, you can delegate the management of the VIPs to the cluster. If you do this, the Grid Naming Service (part of the Oracle Clusterware) will automatically allocated and manage all VIPs in the cluster. This requires a DHCP service on the public network.
Thank you
SteveAnswer = Follow MetaLink 377100.1
Maybe you are looking for
-
Scan to printer over wireless network
Hi there, I have the pixma mx882 printer and it is configured over my wireless network. I am trying to locate the scanning software that enables me to scan via the wireless network?. I tried the MP Navigator EX V4.1.3, although it says I need to con
-
After I updated to 10.8.5 I can't drag multiple emails to a mailbox. Help!
Can anyone help me with selecting a block of emails and dragging them to a mailbox? This feature seems to have disappeared globally on my Mac with my update to Mountain Lion.
-
Cannot log in to SQL*Plus after initial login
Hi all, I have an irritating problem that I am hoping that you can help with. I installed Oracle 10g on RedHat Linux ES 3. Everything seems to be working fine as long as I do not log out my oracle user. If I leave the user logged in everything works
-
PERSONALIZATION AND PASSING PARAMETERS
i created a button in OA personalization that luanches a URL. This URL requires parameters to be passed. I found the view object and view attributes in the page definition, but when I pass the URL as follows: http://usciapp04.utilityservice.com:59204
-
Problem with date_popup field
Hi, i have a tabular form with Extra Rows for Insert. The date_popup field doesn`t works. if i submit a new record, then the date_popup filed works fine. any ideas?