Discussions
Categories
- 196.8K All Categories
- 2.2K Data
- 239 Big Data Appliance
- 1.9K Data Science
- 450.3K Databases
- 221.7K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 544 SQLcl
- 4K SQL Developer Data Modeler
- 187K SQL & PL/SQL
- 21.3K SQL Developer
- 295.8K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.5K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 155 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 18 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 439 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
Listener port number
Answers
-
>
Phiri... testdb and orcl were working fine even when TWO_TASK was set earlier. This server works fine after every restart... but after a few days the problem araises... I suspect that port is keep on increasing the value when reaches threshold the connection cant able establish. Please look at the log file in the first post. I feel some thing is terribly wrong with the setting.
>
So I did not see this post; did you finally manage to resolve this?
>
16-APR-2010 13:00:56 * (CONNECT_DATA=(SERVICE_NAME=testdb)(CID=([email protected])(HOST=integ)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.92.5.37)*(PORT=34487))* * establish * testdb * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
TESTDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = integ)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = testdb)
)
)
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 2 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
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...
Service "orcl_XPT" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
>
That error will continue as long as you do not have testdb being listened to by your listener.
Regards,
Phiri -
khaja(DBA) wrote:Listener CAN com into the picture on the same server:
Hey DBA84,
He is trying to connect the database locally.Then no concerned with listener here.
Even if the listener is down also,he can able to connect to the database.
Listener comes into picture when you are connecting remotely.sqlplus / sqlplus / as sysdba sqlplus scott/tiger
will use bequeath connections and not require the listenersqlplus scott/[email protected]
will use the listener, whether local or remote.KSG:set the oracle_sid & try to connect.
Regards,
khaja -
phiri wrote:BZZZT! Wrong answer!
>
Yes Phiri... There are two databases running in the server with same oracle home.
I can able to connect to orcl database
But, I cant able to connect to testdb database. Which I have posted in my earlier postings..
>
Two instances, not databases, you can only have one database software installation in an Oracle Home
You can very well have two databases with a single oracle home. And along with those two databases, you'd have two instances.
Instance and database are not the same thing. An instance is the memory and processes. The database is the files. The distinction becomes clear when you start dealing with RAC: 1 database, multiple instances managing that database.
>Very well then; do the following and let us know what happens.. oraenv
The when prompted for SID, use testdb.
Regards,
Phiri
Edited by: phiri on 16-Apr-2010 16:32 -
Yes indeed Ed, thanks for spotting that one as well; Hans actually corrected me.
>
sqlplus /
sqlplus / as sysdba
sqlplus scott/tiger
>
The above were all making use of the listener because the OP had TWO_TASK variable set.
Regards,
Phiri
This discussion has been closed.