connecting to an oracle sql database from sql developer on the same computer. When the computer is a domain...












0















Hi I am trying to do DBA course that requires that I use Oracle database.



I am using my corporate pc to do it.



I set up the loopback adapter to enable localhost communication and setup the hosts file in system 32. When I start lsnrcrl



However when I try to connect I get an error.



<msg time='2016-07-27T08:59:00.083+02:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='ABCDEF121221'
host_addr='192.168.1.168'>

<txt>27-JUL-2016 08:59:00 * (CONNECT_DATA=(SID=xe)(CID=(PROGRAM=SQLDeveloper)(HOST=__jdbc__)(USER=ABC))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=50619)) * establish * xe * 12505
</txt>


Extra info




  1. Listener.ora is set to localhost.

  2. hostsfile in system32 is set to 192.168.1.1/domain name.ABCDEF1212221/ ABCDEF1212221


The lstnrctrl status is here.



C:Windowssystem32> lsnrctl status



LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 27-JUL-2016  13:19:16

Copyright (c) 1991, 2010, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
Start Date 26-JUL-2016 15:30:00
Uptime 0 days 21 hr. 49 min. 16 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:oraclexeapporacleproduct11.2.0servernetworkadminlistener.ora
Listener Log File C:oraclexeapporaclediagtnslsnrOLDKHQ133304listeneralertlog.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp) (HOST=abcdefg1212221.corporate.corporate.net)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully









share|improve this question
















bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • What have you got in your HOSTS file, exactly? The above looks like nonsense.

    – Philᵀᴹ
    Jul 27 '16 at 7:51











  • I dont want to put in my works domain name or my computer name so domain name is just representing the correct domain name that I got from ipconfig and the computer name is the abcef1212221

    – DavyGravy
    Jul 27 '16 at 11:39
















0















Hi I am trying to do DBA course that requires that I use Oracle database.



I am using my corporate pc to do it.



I set up the loopback adapter to enable localhost communication and setup the hosts file in system 32. When I start lsnrcrl



However when I try to connect I get an error.



<msg time='2016-07-27T08:59:00.083+02:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='ABCDEF121221'
host_addr='192.168.1.168'>

<txt>27-JUL-2016 08:59:00 * (CONNECT_DATA=(SID=xe)(CID=(PROGRAM=SQLDeveloper)(HOST=__jdbc__)(USER=ABC))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=50619)) * establish * xe * 12505
</txt>


Extra info




  1. Listener.ora is set to localhost.

  2. hostsfile in system32 is set to 192.168.1.1/domain name.ABCDEF1212221/ ABCDEF1212221


The lstnrctrl status is here.



C:Windowssystem32> lsnrctl status



LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 27-JUL-2016  13:19:16

Copyright (c) 1991, 2010, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
Start Date 26-JUL-2016 15:30:00
Uptime 0 days 21 hr. 49 min. 16 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:oraclexeapporacleproduct11.2.0servernetworkadminlistener.ora
Listener Log File C:oraclexeapporaclediagtnslsnrOLDKHQ133304listeneralertlog.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp) (HOST=abcdefg1212221.corporate.corporate.net)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully









share|improve this question
















bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • What have you got in your HOSTS file, exactly? The above looks like nonsense.

    – Philᵀᴹ
    Jul 27 '16 at 7:51











  • I dont want to put in my works domain name or my computer name so domain name is just representing the correct domain name that I got from ipconfig and the computer name is the abcef1212221

    – DavyGravy
    Jul 27 '16 at 11:39














0












0








0








Hi I am trying to do DBA course that requires that I use Oracle database.



I am using my corporate pc to do it.



I set up the loopback adapter to enable localhost communication and setup the hosts file in system 32. When I start lsnrcrl



However when I try to connect I get an error.



<msg time='2016-07-27T08:59:00.083+02:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='ABCDEF121221'
host_addr='192.168.1.168'>

<txt>27-JUL-2016 08:59:00 * (CONNECT_DATA=(SID=xe)(CID=(PROGRAM=SQLDeveloper)(HOST=__jdbc__)(USER=ABC))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=50619)) * establish * xe * 12505
</txt>


Extra info




  1. Listener.ora is set to localhost.

  2. hostsfile in system32 is set to 192.168.1.1/domain name.ABCDEF1212221/ ABCDEF1212221


The lstnrctrl status is here.



C:Windowssystem32> lsnrctl status



LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 27-JUL-2016  13:19:16

Copyright (c) 1991, 2010, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
Start Date 26-JUL-2016 15:30:00
Uptime 0 days 21 hr. 49 min. 16 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:oraclexeapporacleproduct11.2.0servernetworkadminlistener.ora
Listener Log File C:oraclexeapporaclediagtnslsnrOLDKHQ133304listeneralertlog.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp) (HOST=abcdefg1212221.corporate.corporate.net)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully









share|improve this question
















Hi I am trying to do DBA course that requires that I use Oracle database.



I am using my corporate pc to do it.



I set up the loopback adapter to enable localhost communication and setup the hosts file in system 32. When I start lsnrcrl



However when I try to connect I get an error.



<msg time='2016-07-27T08:59:00.083+02:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='ABCDEF121221'
host_addr='192.168.1.168'>

<txt>27-JUL-2016 08:59:00 * (CONNECT_DATA=(SID=xe)(CID=(PROGRAM=SQLDeveloper)(HOST=__jdbc__)(USER=ABC))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=50619)) * establish * xe * 12505
</txt>


Extra info




  1. Listener.ora is set to localhost.

  2. hostsfile in system32 is set to 192.168.1.1/domain name.ABCDEF1212221/ ABCDEF1212221


The lstnrctrl status is here.



C:Windowssystem32> lsnrctl status



LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 27-JUL-2016  13:19:16

Copyright (c) 1991, 2010, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
Start Date 26-JUL-2016 15:30:00
Uptime 0 days 21 hr. 49 min. 16 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:oraclexeapporacleproduct11.2.0servernetworkadminlistener.ora
Listener Log File C:oraclexeapporaclediagtnslsnrOLDKHQ133304listeneralertlog.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp) (HOST=abcdefg1212221.corporate.corporate.net)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully






oracle connectivity listener






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 27 '16 at 11:42







DavyGravy

















asked Jul 27 '16 at 7:24









DavyGravyDavyGravy

11




11





bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • What have you got in your HOSTS file, exactly? The above looks like nonsense.

    – Philᵀᴹ
    Jul 27 '16 at 7:51











  • I dont want to put in my works domain name or my computer name so domain name is just representing the correct domain name that I got from ipconfig and the computer name is the abcef1212221

    – DavyGravy
    Jul 27 '16 at 11:39



















  • What have you got in your HOSTS file, exactly? The above looks like nonsense.

    – Philᵀᴹ
    Jul 27 '16 at 7:51











  • I dont want to put in my works domain name or my computer name so domain name is just representing the correct domain name that I got from ipconfig and the computer name is the abcef1212221

    – DavyGravy
    Jul 27 '16 at 11:39

















What have you got in your HOSTS file, exactly? The above looks like nonsense.

– Philᵀᴹ
Jul 27 '16 at 7:51





What have you got in your HOSTS file, exactly? The above looks like nonsense.

– Philᵀᴹ
Jul 27 '16 at 7:51













I dont want to put in my works domain name or my computer name so domain name is just representing the correct domain name that I got from ipconfig and the computer name is the abcef1212221

– DavyGravy
Jul 27 '16 at 11:39





I dont want to put in my works domain name or my computer name so domain name is just representing the correct domain name that I got from ipconfig and the computer name is the abcef1212221

– DavyGravy
Jul 27 '16 at 11:39










1 Answer
1






active

oldest

votes


















0














The last number of the log entry is the return code of the operation. On a successful connection, it is 0. In your case, it is 12505.



12505, 00000, "TNS:listener does not currently know of SID given in connect descriptor"
// *Cause: The listener received a request to establish a connection to a
// database or other service. The connect descriptor received by the listener
// specified a SID for an instance (usually a database instance) that either
// has not yet dynamically registered with the listener or has not been
// statically configured for the listener. This may be a temporary condition
// such as after the listener has started, but before the database instance
// has registered with the listener.
// *Action:
// - Wait a moment and try to connect a second time.
// - Check which instances are currently known by the listener by executing:
// lsnrctl services <listener name>
// - Check that the SID parameter in the connect descriptor specifies
// an instance known by the listener.
// - Check for an event in the listener.log file.


This simply means, you provided an incorrect SID.



xe is the default SID in SQL Developer.



Check the correct SID from the output of lsnrctl status, and use that for connecting.



Or even better, let's just finally forget the SID, and use SERVICE_NAME.



Another possibility is that your database instance was not started, or you do not even have a database created yet.






share|improve this answer
























  • I have updated the question with the lsnrctl status. I see that the default servive is the XE which I thouhgt was correct. I also tried with the clrextproc and the Plsectproc but they didnt work.

    – DavyGravy
    Jul 27 '16 at 11:44











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "182"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f145056%2fconnecting-to-an-oracle-sql-database-from-sql-developer-on-the-same-computer-wh%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














The last number of the log entry is the return code of the operation. On a successful connection, it is 0. In your case, it is 12505.



12505, 00000, "TNS:listener does not currently know of SID given in connect descriptor"
// *Cause: The listener received a request to establish a connection to a
// database or other service. The connect descriptor received by the listener
// specified a SID for an instance (usually a database instance) that either
// has not yet dynamically registered with the listener or has not been
// statically configured for the listener. This may be a temporary condition
// such as after the listener has started, but before the database instance
// has registered with the listener.
// *Action:
// - Wait a moment and try to connect a second time.
// - Check which instances are currently known by the listener by executing:
// lsnrctl services <listener name>
// - Check that the SID parameter in the connect descriptor specifies
// an instance known by the listener.
// - Check for an event in the listener.log file.


This simply means, you provided an incorrect SID.



xe is the default SID in SQL Developer.



Check the correct SID from the output of lsnrctl status, and use that for connecting.



Or even better, let's just finally forget the SID, and use SERVICE_NAME.



Another possibility is that your database instance was not started, or you do not even have a database created yet.






share|improve this answer
























  • I have updated the question with the lsnrctl status. I see that the default servive is the XE which I thouhgt was correct. I also tried with the clrextproc and the Plsectproc but they didnt work.

    – DavyGravy
    Jul 27 '16 at 11:44
















0














The last number of the log entry is the return code of the operation. On a successful connection, it is 0. In your case, it is 12505.



12505, 00000, "TNS:listener does not currently know of SID given in connect descriptor"
// *Cause: The listener received a request to establish a connection to a
// database or other service. The connect descriptor received by the listener
// specified a SID for an instance (usually a database instance) that either
// has not yet dynamically registered with the listener or has not been
// statically configured for the listener. This may be a temporary condition
// such as after the listener has started, but before the database instance
// has registered with the listener.
// *Action:
// - Wait a moment and try to connect a second time.
// - Check which instances are currently known by the listener by executing:
// lsnrctl services <listener name>
// - Check that the SID parameter in the connect descriptor specifies
// an instance known by the listener.
// - Check for an event in the listener.log file.


This simply means, you provided an incorrect SID.



xe is the default SID in SQL Developer.



Check the correct SID from the output of lsnrctl status, and use that for connecting.



Or even better, let's just finally forget the SID, and use SERVICE_NAME.



Another possibility is that your database instance was not started, or you do not even have a database created yet.






share|improve this answer
























  • I have updated the question with the lsnrctl status. I see that the default servive is the XE which I thouhgt was correct. I also tried with the clrextproc and the Plsectproc but they didnt work.

    – DavyGravy
    Jul 27 '16 at 11:44














0












0








0







The last number of the log entry is the return code of the operation. On a successful connection, it is 0. In your case, it is 12505.



12505, 00000, "TNS:listener does not currently know of SID given in connect descriptor"
// *Cause: The listener received a request to establish a connection to a
// database or other service. The connect descriptor received by the listener
// specified a SID for an instance (usually a database instance) that either
// has not yet dynamically registered with the listener or has not been
// statically configured for the listener. This may be a temporary condition
// such as after the listener has started, but before the database instance
// has registered with the listener.
// *Action:
// - Wait a moment and try to connect a second time.
// - Check which instances are currently known by the listener by executing:
// lsnrctl services <listener name>
// - Check that the SID parameter in the connect descriptor specifies
// an instance known by the listener.
// - Check for an event in the listener.log file.


This simply means, you provided an incorrect SID.



xe is the default SID in SQL Developer.



Check the correct SID from the output of lsnrctl status, and use that for connecting.



Or even better, let's just finally forget the SID, and use SERVICE_NAME.



Another possibility is that your database instance was not started, or you do not even have a database created yet.






share|improve this answer













The last number of the log entry is the return code of the operation. On a successful connection, it is 0. In your case, it is 12505.



12505, 00000, "TNS:listener does not currently know of SID given in connect descriptor"
// *Cause: The listener received a request to establish a connection to a
// database or other service. The connect descriptor received by the listener
// specified a SID for an instance (usually a database instance) that either
// has not yet dynamically registered with the listener or has not been
// statically configured for the listener. This may be a temporary condition
// such as after the listener has started, but before the database instance
// has registered with the listener.
// *Action:
// - Wait a moment and try to connect a second time.
// - Check which instances are currently known by the listener by executing:
// lsnrctl services <listener name>
// - Check that the SID parameter in the connect descriptor specifies
// an instance known by the listener.
// - Check for an event in the listener.log file.


This simply means, you provided an incorrect SID.



xe is the default SID in SQL Developer.



Check the correct SID from the output of lsnrctl status, and use that for connecting.



Or even better, let's just finally forget the SID, and use SERVICE_NAME.



Another possibility is that your database instance was not started, or you do not even have a database created yet.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jul 27 '16 at 9:03









Balazs PappBalazs Papp

26.2k2931




26.2k2931













  • I have updated the question with the lsnrctl status. I see that the default servive is the XE which I thouhgt was correct. I also tried with the clrextproc and the Plsectproc but they didnt work.

    – DavyGravy
    Jul 27 '16 at 11:44



















  • I have updated the question with the lsnrctl status. I see that the default servive is the XE which I thouhgt was correct. I also tried with the clrextproc and the Plsectproc but they didnt work.

    – DavyGravy
    Jul 27 '16 at 11:44

















I have updated the question with the lsnrctl status. I see that the default servive is the XE which I thouhgt was correct. I also tried with the clrextproc and the Plsectproc but they didnt work.

– DavyGravy
Jul 27 '16 at 11:44





I have updated the question with the lsnrctl status. I see that the default servive is the XE which I thouhgt was correct. I also tried with the clrextproc and the Plsectproc but they didnt work.

– DavyGravy
Jul 27 '16 at 11:44


















draft saved

draft discarded




















































Thanks for contributing an answer to Database Administrators Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f145056%2fconnecting-to-an-oracle-sql-database-from-sql-developer-on-the-same-computer-wh%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

SQL Server 17 - Attemping to backup to remote NAS but Access is denied

Always On Availability groups resolving state after failover - Remote harden of transaction...

Restoring from pg_dump with foreign key constraints