I am not able to connect sqlplus
i have oracle 8i,try to connect sq plusl its kept saying protocol adapter error?
Hi,
Did you gave the host address??
Oracle 8i datbase is in your machine?? or seperate server??
Did you check that whether the database service is started??
Check the status of all!!!
Besf of luck!!!
Nats
Similar Messages
-
Not able to connect sqlplus in linux
Hi,
I am using Enterprise Linux 5. I am not able to connect database using sqlplus.
After entering sqlplus command, getting following error:
[ra10g@blue ~] sqlplus / as sysdba
/oracle/oa10g/10204/bin/sqlplus: Line 41: syntex error near unexpected token 'set'
/oracle/oa10g/10204/bin/sqlplus: Line 41: 'if ("$ORASID" == '') set ORASID="*"'
I had checked all the enviorment variables.
ORACLE_HOME = /oracle/oa10g/10204
ORASID = orcl
LD_LIBRARY_PATH = /oracle/oa10g/10204/lib:/lib:/usr/lib
Please give me any solution regarding this.
Thanks in advance.
Would appriciate your prompt response.
Regards,
Vishal Pateluser11796357 wrote:
Re:
may be some enviromnet variable setting problem
ty this
export ORACLE_HOME=/oracle/oa10g/10204
export Oracle_SID=orclIf you actually did this, then you will fail. The variable is ORACLE_SID and the variable name is case sensitive.
If the database was already created with the SID orcl, check whether the SID exists in oratab (command -> tail /etc/oratab) and then you can source the oraenv file as follows
. oraenv
orcl
Note that sourcing is using the dot (period) and space before command. If you do not know what "source a file" means in bash, I strongly encourage you to spend some time with the bash tutorial on the net. -
Dear all,
I have trouble to connect em console to database instance. My database is 11.2.0.3 and before this I did the patching from version 11.2.0.1, and now i cannot get fully functionality of em console.
error is:
Enterprise Manager is not able to connect to the database instance. The state of the components are listed below.
It shows that agent is connected, database and listener is up.
I did recreation, dropping and recreating with emca, but no success.
Did anyone have similar problems with em console?
Regards,You need to first of all, Connect to the Database as SYSDBA (because your were not connected), then start the database (because it is not started).
If you already used the username and password in the command prompt and you are sure that the database is already stared, then you need to set the ORACLE_SID before you open SQLPlus. This is because if SQLPlus does not know the SID you are connecting to, it simply thinks it is not up or has no service hence the message "Connected to an idle instance". -
Enterprise manager is not able to connect to database instance
Hi
I am having a problem with Oracle EM. I would appreciate very much if anyone can help me.
I installed Oracle on XP which runs on virtual pc on XP as well. Everything is fine, I can connect to database with sqlplus, and there were no errors during installation.
But the problem is that, when I try to connect to database with EM, it says:
Enterprise manager is not able to connect to database instance . The state of the components are listed below.
Can anoyone help me?user10637311 wrote:
When you want OEM DB , your existing DB should be created by DBCA or if suppose manually creaed DB then you have to configure that DB to EM by
"emca -config dbcontrol db -repos create". for these two cases istener should be running.
emctl start dbconsole -> to start dbconsole service
emctl status dbconsole-> status of servicesI am sorry, I was looking at $ORACLE_HOME\admin . And in the proper path, both listener.ora and tnsnames.ora do exist.
emca -config dbcontrol db -repos create :
<last part>:
INFO: This operation is being logged at C:\oracle\product\10.2.0\db_1\cfgtoollog
s\emca\orcl\emca_2010-02-18_02-01-40-AM.log.
Feb 18, 2010 2:02:46 AM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Feb 18, 2010 2:03:19 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Feb 18, 2010 2:03:19 AM oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error creating the repository
Feb 18, 2010 2:03:19 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Refer to the log file at C:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\or
cl\emca_repos_create_<date>.log for more details.
Feb 18, 2010 2:03:19 AM oracle.sysman.emcp.EMConfig perform
SEVERE: Error creating the repository
Refer to the log file at C:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\orcl\emc
a_2010-02-18_02-01-40-AM.log for more details.
Could not complete the configuration. Refer to the log file at C:\oracle\product
\10.2.0\db_1\cfgtoollogs\emca\orcl\emca_2010-02-18_02-01-40-AM.log for more deta
ils.
C:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\or
cl\emca_repos_create_<date>.log:
Check if repos user already exists.
old 6: WHERE username=UPPER('&EM_REPOS_USER');
new 6: WHERE username=UPPER('SYSMAN');
old 8: IF ( '&EM_CHECK_TYPE' = 'EXISTS') THEN
new 8: IF ( 'NOT_EXISTS' = 'EXISTS') THEN
old 11: raise_application_error(-20000, '&EM_REPOS_USER does not exists..');
new 11: raise_application_error(-20000, 'SYSMAN does not exists..');
old 14: ELSIF ( '&EM_CHECK_TYPE' = 'NOT_EXISTS' ) THEN
new 14: ELSIF ( 'NOT_EXISTS' = 'NOT_EXISTS' ) THEN
old 17: raise_application_error(-20001, '&EM_REPOS_USER already exists..');
new 17: raise_application_error(-20001, 'SYSMAN already exists..');
old 21: raise_application_error(-20002, 'Invalid Check type &EM_CHECK_TYPE');
new 21: raise_application_error(-20002, 'Invalid Check type NOT_EXISTS');
DECLARE
ERROR at line 1:
ORA-20001: SYSMAN already exists..
ORA-06512: at line 17 -
Enterprise Manager is not able to connect to the database instance. Open??
Hello there,
After I installed oracle database and tried to start Enterprise Manager, I got the message:
Enterprise Manager is not able to connect to the database instance.
All statuses are OK (green and up) except database instance. It is also green and up but open. (Details: The instance is open.)
Can anyone help me about it?
I use Windows XP x64 with all patches installed. Oracle database R11g x64.
I tried with different database versions and different machines and different OS and loopback adapter and... my EM still want to log in.
I can log in with sqlplus. It accepts any pass for sys (as sysdba). Why?
My log files are available here: http://195.66.185.187/log.zipYou are using a bequeath connection when logging in with SQL*Plus on the server so the password is not validated.
Log in using SQL*Plus this way:
sqlplus /nolog
followed by
conn sys@<service_name> AS SYSDBA
and provide the correct password
My guess it it will fail.
If so then you need to use the correct password and if you don't know what it is set it when logged on as SYS. -
Problem: Enterprise Manager is not able to connect to the database instance
Hello,
I've got problem with EM. When I try to connect to it I get the following error:
Enterprise Manager is not able to connect to the database instance. The state of the components are listed below.
Database Instance, Listener and Agent are all green.
Few more information:
OS: Win7 64 bit
-installed loopback adapter. I can ping my computer name (J-PC) without problem and it pings back 10.10.10.10 address.
-I have set the ORACLE_HOME and ORACLE_SID env variables
-I can login to sqlplus with sysman account
-emctl status dbconsole shows that the EM 11g is running
I've been struggling for some time trying to get EM running as it should, but no luck so far.
If you need any more info, do ask. Tnx.Hi,
Regarding causes:
1. This is inside listener.ora file:
SID_LIST_LISTENER =
+(SID_LIST =+
+(SID_DESC =+
+(SID_NAME = CLRExtProc)+
+(ORACLE_HOME = C:\app\J\product\11.2.0\dbhome_1)+
+(PROGRAM = extproc)+
+(ENVS = "EXTPROC_DLLS=ONLY:C:\app\J\product\11.2.0\dbhome_1\bin\oraclr11.dll")+
+)+
+)+
LISTENER =
+(DESCRIPTION_LIST =+
+(DESCRIPTION =+
+(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))+
+(ADDRESS = (PROTOCOL = TCP)(HOST = J-PC)(PORT = 1521))+
+)+
+)+
ADR_BASE_LISTENER = C:\app\J
...and this is examples of errors in emoms.trc:
+2012-05-25 00:29:28,782 [HTTPThreadGroup-49] ERROR conn.ConnectionService verifyRepositoryEx.891 - Invalid Connection Pool. ERROR = Locale not recognized+
+2012-05-25 00:29:28,798 [HTTPThreadGroup-49] ERROR eml.OMSHandshake processFailure.806 - OMSHandshake failed.(AGENT URL = http://J-PC:3938/emd/main)(ERROR = INTERNAL_ERROR)(CAUSE =java.sql.SQLException: Locale not recognized)+
+2012-05-25 00:29:28,860 [HTTPThreadGroup-49] ERROR conn.ConnectionService verifyRepositoryEx.891 - Invalid Connection Pool. ERROR = Locale not recognized+
+2012-05-25 00:29:28,872 [HTTPThreadGroup-49] ERROR eml.OMSHandshake processFailure.806 - OMSHandshake failed.(AGENT URL = http://J-PC:3938/emd/main)(ERROR = INTERNAL_ERROR)(CAUSE =java.sql.SQLException: Locale not recognized)+
+2012-05-25 00:29:40,908 [HTTPThreadGroup-49] ERROR conn.ConnectionService verifyRepositoryEx.891 - Invalid Connection Pool. ERROR = Locale not recognized+
+2012-05-25 00:29:40,924 [HTTPThreadGroup-49] ERROR eml.OMSHandshake processFailure.806 - OMSHandshake failed.(AGENT URL = http://J-PC:3938/emd/main)(ERROR = INTERNAL_ERROR)(CAUSE =java.sql.SQLException: Locale not recognized)+
+2012-05-25 00:29:52,811 [SystemThreadGroup-8] ERROR app.SessionObjectManager sessionDestroyed.128 - java.sql.SQLException: Locale not recognized+
java.sql.SQLException: Locale not recognized
2.
Running lsnrctl status:
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 25-MAY-2012 07:54:17
Uptime 0 days 0 hr. 21 min. 25 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\app\J\product\11.2.0\dbhome_1\network\admin\listene
r.ora
Listener Log File c:\app\j\diag\tnslsnr\J-PC\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=J-PC)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
Tnx for the help. -
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 -
Not able to connect RAC database from client
Hi there
Recently I have configured RAC in test environment. version 11.2.0.1. OS Redhat 5.9. Everything seems to be fine except not able to connect rac database from client. Error is as under :
C:\Documents and Settings\pbl>sqlplus test1/test1@myrac
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Nov 17 14:29:06 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12545: Connect failed because target host or object does not exist
Enter user-name:
myrac =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = racdb.testdb.com.bd)
Please give me your valuable suggestion to overcome the issue.
Regards
Jeweluser13134974 wrote:
ORA-12545: Connect failed because target host or object does not exist
This error means that the hostname or IP address used in the TNS connection string, failed to resolve or connect.
Your client is making two connections. The first connection is to the SCAN listener. It matches a db instance for your connection request based on service requested, available registered service handlers, load balancing, and so on. It then send a redirect to your client informing it of the handler for that service.
Your client then does a second connection to this service (a local RAC listener that will provide you with a connection to the local RAC instance). This is what seems to be failing in your case.
The SCAN listener's redirect uses the hostname of the server that the local listener is running on. Your client needs to resolve that hostname (of a RAC node) to an IP address. This likely fails.
You can add the RAC node hostnames to your client platforms hosts file. The appropriate action however would be to ensure that DNS is used for name resolution instead. -
11i does not allow incoming connections (sqlplus)
I just installed Oracle EBS 11i on RHEL AS4. I have a laptop(windows running oracle client tools) that I use to connect all my oracle-db instances. However, my newly installed apps 11i won't let me connect using sqlplus or any other client from my laptop (or any other client machine for that matter). Again, I am trying to access the tables not the forms interface using jinitiator. Here is the error message I keep getting: "TNS 12537 Connection closed"
I see that discoverer related processes started when I started the apps. Is there a discoverer admin console that I can use? Also can I install discoverer plus or discoverer desktop to connect to the descoverer running on the apps server? Can I view the existing Discoverer reports using a browser?Thanks for your reply. My SQLnet access option is set to "ALLOW_ALL" and I was still not able to connect. That is why I manually added a line to "sqlnet.ora" file. I bounced the listner and now it is allowing the connections from client machines.
I am able to see the discoverer reports using the "Discoverer Viewer 4i" that comes with the EBS. I want to set up new reports or edit the existing ones. Do I do this using any interface provided by EBS or do I have to use the discoverer desctop or discoverer plus on a seperate client machine? Also, how do I access the discoverer admin that comes with EBS?
Thanks! -
Not able to connect to database from Form builer
Hi ,
I installed oracle 10 g in my machine and is accessable from SQLPLUS & TOAD.
In the same drive i installed Form builder, i am getting the below error when i tried to connect DB from form builder.
ORA- 12154 : TNS : could not resolve service name.
Kindly do the needfull.not able to connect to database from Form builder
-
Not able to connect database from another os user using externally?
Hi,
I want to connect database from another os user. i am able to connect database from oracle externally. but not able to connect different OS user.
As ORACLE User:
[oracle@test1 admin]$ sqlplus /
SQL*Plus: Release 11.2.0.2.0 Production on Mon Jan 16 19:41:57 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
Non ORACLE user:
[sample@test1 ~]$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0.2/
[sample@test1 ~]$ export ORACLE_SID=rman
[sample@test1 ~]$ export PATH=$ORACLE_HOME/bin:$PATH
[sample@test1 ~]$ sqlplus /
SQL*Plus: Release 11.2.0.2.0 Production on Mon Jan 16 19:37:42 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
Process ID: 0
Session ID: 0 Serial number: 0
Enter user-name:
ThanksYou didn't install Oracle correctly, especially you didn't run the root.sh and rootpre.sh scripts.
If you would have read the error message at all, and researched it, you would have known this.
Regrettably however you decided to ignore Forums Etiquette and to abuse this forum with Yet Another Doc Question.
Sybrand Bakker
Senior Oracle DBA -
Not able to connect to oracle directly
os : AIX ch5dlfp089 1 6 000B4A22D900
oracle : 11.2.0.1.0
Issue : created oracle db using dbca (gui). Db created successfully
When I checked recently using putty to check the db health. I am able to see smon and orcl is running well using
ps -eaf | grep orcl.
How ever when I am trying to connect the db using sqlplus prompt. It is showing idle instance.
$ sqlplus "/ as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Mon Oct 18 00:52:08 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> exit
oratab entry shows ok
orcl:/home/oracle/app/oracle/product/11.2.0/dbhome_1:
CHECKED BASIC ENV. variables values
$ echo $ORACLE_SID
orcl
$ echo $ORACLE_HOME
/home/oracle/app/oracle/product/11.2.0/dbhome_1/
profile shows as follows
$ cat .profile
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.
export PATH
if [ -s "$MAIL" ] # This is at Shell startup. In normal
then echo "$MAILMSG" # operation, the Shell checks
fi # periodically.
ORACLE_SID=orcl
export ORACLE_SID
ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1/
export ORACLE_HOME
LIBPATH=$ORACLE_HOME/lib:$LIBPATH
export LIBPATH
PATH=$ORACLE_HOME/bin:$PATH
export PATH
However I am able to connect to db using tns
$ sqlplus "sys/Oracle123@orcl as sysdba"
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> EXIT
Question : what could be the reason I am not able to connect the db directly ? without tns ?
Any mistake could have happend or any restriction could have set for this access ?I already tested that ORCL
$ echo $ORACLE_SID
orcl
$ export ORACLE_SID=ORCL
$ echo $ORACLE_SID
ORCL
$ sqlplus "/ as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on Mon Oct 18 01:08:03 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
LISTNER
$ lsnrctl status
LSNRCTL for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production on 18-OCT-2010 01:09:00
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production
Start Date 14-OCT-2010 00:14:39
Uptime 4 days 0 hr. 54 min. 22 sec
Trace Level off
Security ON: Local OS Authentication
SNMP ON
Listener Parameter File /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /home/oracle/app/oracle/diag/tnslsnr/ch5dlfp089/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ch5dlfp089.in.ibm.com)(PORT=1521)))
Services Summary...
Service "orcl.in.ibm.com" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB.in.ibm.com" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
$
TNS SHOWS
$ tnsping orcl
TNS Ping Utility for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production on 18-OCT-2010 01:09:51
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
/home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ch5dlfp089.in.ibm.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl.in.ibm.com)))
OK (30 msec)
$
TNSNAMES ENTRY
$ cat tnsnames.ora
# tnsnames.ora Network Configuration File: /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
orcl =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ch5dlfp089.in.ibm.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.in.ibm.com)
) -
Not able to connect to Oracle db 8.1.7.0.0 on server
Hi
Any body can help me on this please..
I am not able to connect to the db through sqlplus and svrmgrl.
Windows 2003 server - Oracle db version 8.1.7.0.0
Please find the error given below while trying with sqlplus "/ as sysdba", svrmgrl,sqlplus /nolog
C:\Documents and Settings\vamanana>set ORACLE_SID=MP2
C:\Documents and Settings\vamanana>sqlplus "/as sysdba"
SQL*Plus: Release 8.1.7.0.0 - Production on Sßb Nov 7 20:28:28 2009
(c) Copyright 2000 Oracle Corporation. All rights reserved.
ERROR:
ORA-12560: TNS:protocol adapter error
ORA_DBA privilege is added to this user,Oracle windows service is running.
Please find the sqlnet.ora, listener.ora, tnsnames.ora given below:
sqlnet.ora:
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
listener.ora:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = PXW3150MX4)(PORT = 1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = PXW3150MX4)(PORT = 2481))
(PROTOCOL_STACK =
(PRESENTATION = GIOP)
(SESSION = RAW)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = mp2))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = sims))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = Y:\u01\dba\oracle\product\8.1.7)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = mp2)
(ORACLE_HOME = Y:\u01\dba\oracle\product\8.1.7)
(SID_NAME = mp2)
(SID_DESC =
(GLOBAL_DBNAME = sims)
(ORACLE_HOME = Y:\u01\dba\oracle\product\8.1.7)
(SID_NAME = sims)
tnsnames.ora:
MP2 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = tcp.world)
(PROTOCOL = TCP)
(Host = PXW3150MX4)
(Port = 1521)
(ADDRESS =
(COMMUNITY = tcp.world)
(PROTOCOL = TCP)
(Host = PXW3150MX4)
(Port = 1526)
(CONNECT_DATA = (SID = MP2)
)Hi
It was done by using HP image copy software tool(Like ghost software)
OUI is not used to install the software on the system.
Please fine the command SET output given below:
C:\Documents and Settings\vamanana>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\vamanana\Application Data
CLIENTNAME=HPMWIS00012
ClusterLog=C:\WINDOWS\Cluster\cluster.log
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=PXW3150MX4
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\vamanana
LOGONSERVER=\\PXW3150MX4
NUMBER_OF_PROCESSORS=8
OS=Windows_NT
OvAgentDir=C:\Program Files\HP OpenView\data\
OvDataDir=C:\Program Files\HP OpenView\data\
OvInstallDir=C:\Program Files\HP OpenView\
Path=C:\Program Files\HP\NCU;Y:\u01\dba\oracle\product\8.1.7\bin;R:\u01\dba\orac
le\product\9.2.0\bin;R:\u01\dba\oracle\product\9.2.0\jre\1.4.2\bin\client;R:\u01
\dba\oracle\product\9.2.0\jre\1.4.2\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:
\Program Files\Oracle\jre\1.1.8\bin;Y:\u01\dba\oracle\product\8.1.7\jre\1.1.7\bi
n;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Hewle
tt-Packard\svctools\common\wccproxy\bin;c:\usr\OV\bin\OpC\cmds;c:\usr\OV\bin\OpC
\monitor;c:\usr\OV\bin\OpC\actions;C:\Program Files\HP OpenView\bin;C:\Program F
iles\HP OpenView\bin\OpC;C:\Program Files\HP OpenView\bin\;C:\Program Files\HP O
penView\lib\;C:\Program Files\OmniBack\bin\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 26 Stepping 5, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=1a05
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=RDP-Tcp#25
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\vamanana\LOCALS~1\Temp\2
TMP=C:\DOCUME~1\vamanana\LOCALS~1\Temp\2
USERDOMAIN=PXW3150MX4
USERNAME=vamanana
USERPROFILE=C:\Documents and Settings\vamanana
windir=C:\WINDOWS -
Not able to connect to database some times
some times i am not able to connect to my database via sqlplus.
after entering this command, we don't receive any response. please help.
-bash-3.2$ sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jan 23 11:11:36 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter user-name: /as sysdbaHi Emran,
Set sufficient value of processes/sessions in init/spfile of database , might be session limit of DB is getting exceeded & restricting new connection.
Check alert log & below query o/p , CURRENT_UTILIZATION < MAX_UTILIZATION to get connection to DB
select * from v$resource_limit;Also , try to connect as sqlplus prelim & do hang analyze , refer below link
http://blog.tanelpoder.com/2012/05/08/oradebug-hanganalyze-with-a-prelim-connection-and-error-can-not-perform-hang-analysis-dump-without-a-process-state-object-and-a-session-state-object/
sqlplus -prelim "/as sysdba"
ORADEBUG HANGANALYZE 3Thanks,
Ajay More
http://www.moreajays.com -
10g Enterprise Manager is not able to connect to the database instance
I am running a Oracle 10g database in Solaris 10 server. When i am trying to connect to the enterprise manager it says Enterprise Manager is not able to connect to the database instance.
The database instance is open,the listener is up and the agent connection also says that it succeeded.
The server houses two 10g databases and the EM was working properly till yesterday. Kindly Help.
Thanks in advance.
RamHi,
The EM is started and if i give emctl status dbconsole
-bash-3.00$ emctl status dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0
Copyright (c) 1996, 2006 Oracle Corporation. All rights reserved.
http://gladiator:1158/em/console/aboutApplication
Oracle Enterprise Manager 10g is running
Logs are generated in directory /db8/ora10gr2/product/10.2.0/Db_4/gladiator_TROY/sysman/log
it says that the EM is running. But when i am trying to access the URL it is in IE it says Page cannot be displayed what could be the problem for this???
Thanks in advance.
Ram
Maybe you are looking for
-
Adding an S/MIME certificate to an existing contact in Outlook 2013
In previous versions of Outlook (e.g. 2010) when you received an S/MIME signed certificate from an external party you could right click on their name in the message and select "Add to Outlook Contacts". This would then store the cert in a contact for
-
i just updated my IPOD and now every app except the apps that come on it wont open.
-
Photoshop Vectors and Smart Objects Create Blurring
I have been supplied a Photoshop document that has Illustrator Vector files that have been placed in the PSD as Smart objects. When I bring the PSD into InDesign and print it, all the PSD artwork is blurry. How can I get the PSD file to print from In
-
X220: Cinema 4D R12 won't start
Cinema 4d R12 won't start on my x220 (Product ID 4290W1C, core i5, 8 GB RAM, 320 GB HDD, Win7 64 Bit Professional). I get an error message with an bug report that reads the following: Exception ExceptionNumber = 0xC0000005 ExceptionText = "ACCESS_VIO
-
How do I get my MP4 videos to play on an HTML5 player?
My urls don't work when I put in in a HTML5 player. The player asks us to put the url in between key their code under. {mp4remote}http://domain.com/media/paris.mp4{/mp4remote} but I see we need a video url with http:// and not the url type Azure/st