Oracle 11g XE connectivity problem
Hello,
I'm trying to setup a Virtual machine for test purposes using VMware Player.
I'm following Oracle® Database Express Edition Installation Guide 11g Release 2 (11.2) for Linux x86-64: http://download.oracle.com/docs/cd/E17781_01/install.112/e18802.pdf
As described there, I've installed Oracle Enterprise Linux 5 Update 2 from DVD V15099-01.zip(Enterprise-R5-U2-Server-x86_64-dvd.iso).
After that followed the instructions in the guide and installed the XE database... so far no errors or problems... while testing from local ssh session :)
[root@oracle11xe bin]# /etc/init.d/oracle-xe status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 26-OCT-2011 02:04:22
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 26-OCT-2011 01:44:00
Uptime 0 days 0 hr. 20 min. 22 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/oracle11xe/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle11xe.localdomain)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle11xe.localdomain)(PORT=8080))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XE" has 1 instance(s).
Instance "XE", status READY, has 1 handler(s) for this service...
Service "XEXDB" has 1 instance(s).
Instance "XE", status READY, has 1 handler(s) for this service...
The command completed successfully
and
[root@oracle11xe bin]# sqlplus system
SQL*Plus: Release 11.2.0.2.0 Production on Wed Oct 26 01:51:12 2011
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
SQL> EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
PL/SQL procedure successfully completed.
SQL> exit
[root@oracle11xe ~]# telnet 192.168.1.10 1521
Trying 192.168.1.10...
Connected to 192.168.1.10 (192.168.1.10).
Escape character is '^]'.
But now when I try access this VM box from my windows box, from where I have ping and can open SSH connection, I get "Could not open connection to the host".
I've already disabled my windows firewall for the test - no good. Also SSH works over the network, so I don't think it's a firewall or network issue...maybe I'm missing something in listners configuration or some security setting somewhere?
I've created screenshot http://img846.imageshack.us/img846/2931/oraissue.jpg .
I'm looking forward to your suggestions, because I'm running out of ideas, I expected to be able to start this thing faster :)
Regards,
Pavel
Hello,
What sort of access? And ssh is working? putty? Using VM NAT, or bridged?
Yes, from my desktop windows to the VM's eth0 interface I could use SSH without any concerns. Yes, I've used PuTTY Client for SSH. For VM is bridged.
That's not relevant to accessing the VM, you'll need to open up ports in the VM host firewall. Port 8080 too if you want to access the Apex pages, along with opening port 1521 for the database listener.
Yes, you are right - had to stop firewall on my VM box... since this is a dummy sandbox I just stopped firewall
service iptables stop
chkconfig iptables off
After that SQL Developer Studio managed to open connection to the XE database on this VM box over the network. Thank you!
You've got all the listener endpoints, including the http 8080 but setting up a server on dhcp isn't optimal unless you have dynamic DNS to register the VM IP for name resolution. Unless a dos box $ ping oracle11xe or $ ping oracle11xe.localdomain from the Win box gets the correct IP address of the VM ...
Sorry I didn't get this one... Could you please give me more information.
I've configured VM(oracle11xe.localdomain) to use static IP address(NO DHCP, I'd like to avoid involving the DHCP Server in my network in this simple test). This leads to me being able to ping it from Win Box only via IP address, what problems may show up from this? My idea was to avoid having problems, if for example I started the VM box in very different environment(lets say another network) and it gets some other IP address, because I didn't knew how oracle XE will feel about the new IP?
Once again - Thank you. Original issue is solved!
Similar Messages
-
Oracle 11g XE Connectivity Problems
Hi to all and thanks for the attention !
Quick facts
OS : Microsoft Server 2008 R2 (x64)
Oracle Version : 11g XE (x32)
Database name : XE
I've been fighting over with providers for a whole day and I can't seem to make this work out,
I have an application(Web, on a IIS 7) that connects to a schema, the connection uses a Oracle Provider For OleDB, well at first I was getting a "Provider not registered" error, that was easy I only had to make the app run on x32 and puf the error changed, so I quickly set up the Data Source ( with the data source manager located in WOW64 ) with a oracle ole db provider, no problems, I can click on it, it will ask me for a user/password and when I click test connection I works just like I would expect it to work, now back to the application, when i set the connection string up, I get a error from the app : ORA-12154 TNS:could not resolve the connect identifier specified. So went up and tried making a udl ( invoking again the x32 ), same error ORA-12154 so I started digging and so far so good what I got is, "try tnsping <instance_Name>", did it, and got an OK (40ms) (though I had to navigate to bin folder, which was not explained in the posts, perhaps this means something ?) and also registered the oraoledb11.dll with regsvr32
Oh ! And I can connect to the database with sqldeveloper
I know really little of Oracle, any thoughts ?
Thanks again !ORA-12154 ALWAYS only occurs on SQL Client & no SQL*Net packets ever leave client system
ORA-12154 NEVER 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 NOT 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.
So post the content of the sqlnet.ora file.
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 solve Oracle SQL Developer connection problem ?
Folks,
Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
My OS is Linux and connects to internet successfully.
In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
Connection Name: DB1 (this is my database name as well)
Username: SYS (this is the user name I used to login to the Console)
Password: SYS (this the password used to login to the Console)
Connection Type: Basic
Host Name: localhost
Port: 1158
SID: DB1 (this is created during installing the Database)
But the error message comes up: "Status: Failure - IO exception Connection Reset."
Can any folk tell me how to solve Oracle SQL Developer connection problem ?user8860348 wrote:
Folks,
Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
My OS is Linux and connects to internet successfully.
In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
Connection Name: DB1 (this is my database name as well)
Username: SYS (this is the user name I used to login to the Console)
Password: SYS (this the password used to login to the Console)
Connection Type: Basic
Host Name: localhost
Port: 1158
SID: DB1 (this is created during installing the Database)
But the error message comes up: "Status: Failure - IO exception Connection Reset."
Can any folk tell me how to solve Oracle SQL Developer connection problem ?username: sys
password: enter_your_correct_password given at the time of oracle installation
role: select sysdba if you would connect as sysdba else select normal for users other than sys
hostname: enter your oracle server hostname or ip address eg:- 192.168.11.12
to find the hostname open terminal/command prompt in oracle installed machine
type ---> hostname
type ---->ping hostname
you can find the ipaddress of the server
port number: 1521 (default) ----> i guess , else check the port number in the tnsnames.ora file under your ORACLE_HOME/network/admin folder
SID: DB1
try it
Good Luck -
Oracle 11G + Database Connection taking too much Time
Hi ,
I am using Oracle 11G . When i try to connect to oracle database
sqlplus system/impetus@database
it takes too much time ( more than 1 min )
I am not getting why this is happening ?
Before some day it was working fine but suddenly the problem occurred.. Is this issue is related to log files generated by oracle or memory related issue ( sga and pga)..
Any Help please ?Darn! /tmp/capture.log does not contain what I expected it to contain.
So a different approach is needed.
issue the following command:
script /tmp/capture.log
#now you are in a new shell & issue the next 3 lines
strace sqlplus system/impetus@database
exit
Ctrl-d (Control D)
now issue the following commands.
ls -l /tmp/capture.log
wc -l /tmp/capture.log
Post the results from 2 commands above back here -
Oracle 11g client Update Problem
Hi ,
I have problem with oracle 11g client, I have a treatment that is has selected information and update after the last treatment.The problem is that the update is sometimes the enssemble fields, even those I do not want to update.
I use the 11g client with c #, my procedure is like update WHERE num = @ aram.I have doubts about the problems of loss of connection, because it give me the log: host not found, but there is a transaction, and in case of emergency I did a rollback.is there anyone who approaches to this problem??I took you to kindly help me, because the project and in production modeApart from the fact that this has nothing to do with Oracle Forms the certifications and the version checks of the installer are there for a reason. Copying one version file doesn't make your RHEL6 a RHEL3. RHEL6 most certainly uses a different kernel, different libraries, different everything then RHEL3 (yes, Software Vendors change version numbers of their products not just for fun!). You might get lucky (using your friend google) that you get it working with some effort, but this doesn't guarantee that everything works and given the fact that this is not certified getting help is not that easy. Better yet is to save yourself the time and stick with certified combinations (maybe use OEL insted of RHEL?)
cheers -
Oracle 11g Greek Characters problem
Hello,
I have an Oracle 11g Express Edition installed on my Windows 7 64 bit machine, and i store greek characters inside it.
The characters display fine on SQL developer.
But when i connect it with my php application using PDO i get ??? instead of the greek characters.
I've set nls_lang in registry to GREEK_GREECE.EL8MSWIN1253
But when i run select * from nls_database_parameters i get the following.
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET AL32UTF8
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET UTF8
NLS_RDBMS_VERSION 11.2.0.2.0
Also, when i connect with pdo i use this command: $pdo_string = 'oci:host='.$this->server.';dbname='.$this->database.';charset=AL32UTF8';
Any thoughts on this?
Any help will be appreciated.
Mike991209 wrote:
Solved it with:
shutdown immediate;
startup mount;
alter system enable restricted session;
alter system set job_queue_processes=0;
alter database open;
alter database character set internal_use EL8MSWIN1253;
shutdown immediate;
startup;This is not a documented or supported method to change the characterset of a database - supported methods are documented - http://docs.oracle.com/cd/E11882_01/server.112/e10729/ch11charsetmig.htm#g1011430
https://forums.oracle.com/forums/search.jspa?threadID=&q=internal_use&objID=f50&dateRange=all&userID=&numResults=15&rankBy=10001
You will need to restore the database from a good backup and convert the characterset in a supported manner.
Also, 11g XE is not supported on Win 7 64-bit - http://docs.oracle.com/cd/E17781_01/install.112/e18803/toc.htm#BABGGAJA
HTH
Srini -
Oracle 11g database Connection & Response are very slow
I have an ORACLE 11g R2 on lRed Hat Enterprise Linux Server release 5.3 (Tikanga).
initially it was working fine.
Now a days while attempting to connect into the database from network using @service_name
it takes a lot of time to establish the connection and even it gets connected the query response time is very high.
on the other hand if I connect from the native database machine's terminal without @service_name it works fine & the response time is convincing. But even from the native database machine's terminal with @service_name it is giving me the same pain.
can any body help me how to fix this.
Thanks in advance..
Arkeshthanks for the reply & Query
Alert Log entry do look like this
ORACLE_BASE from environment = /u01/app/oracle
Thu Apr 22 07:29:10 2010
ALTER DATABASE MOUNT
Successful mount of redo thread 1, with mount id 4283520006
Database mounted in Exclusive Mode
Lost write protection disabled
Completed: ALTER DATABASE MOUNT
Thu Apr 22 07:29:15 2010
ALTER DATABASE OPEN
Beginning crash recovery of 1 threads
parallel recovery started with 7 processes
Started redo scan
Completed redo scan
read 15 KB redo, 23 data blocks need recovery
Started redo application at
Thread 1: logseq 449, block 8217
Recovery of Online Redo Log: Thread 1 Group 2 Seq 449 Reading mem 0
Mem# 0: /u01/app/oracle/oradata/ultimus/redo02.log
Completed redo application of 0.01MB
Completed crash recovery at
Thread 1: logseq 449, block 8248, scn 10502937
23 data blocks read, 23 data blocks written, 15 redo k-bytes read
Thread 1 advanced to log sequence 450 (thread open)
Thread 1 opened at log sequence 450
Current log# 3 seq# 450 mem# 0: /u01/app/oracle/oradata/ultimus/redo03.log
Successful open of redo thread 1
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
SMON: enabling cache recovery
Successfully onlined Undo Tablespace 2.
Verifying file header compatibility for 11g tablespace encryption..
Verifying 11g file header compatibility for tablespace encryption completed
SMON: enabling tx recovery
Database Characterset is WE8MSWIN1252
No Resource Manager plan active
replication_dependency_tracking turned off (no async multimaster replication found)
Starting background process QMNC
Thu Apr 22 07:29:18 2010
QMNC started with pid=27, OS id=3611
Completed: ALTER DATABASE OPEN
Thu Apr 22 07:29:20 2010
db_recovery_file_dest_size of 10240 MB is 0.00% used. This is a
user-specified limit on the amount of space that will be used by this
database for recovery-related files, and does not reflect the amount of
space available in the underlying filesystem or ASM diskgroup.
Thu Apr 22 07:29:20 2010
Starting background process CJQ0
Thu Apr 22 07:29:20 2010
CJQ0 started with pid=28, OS id=3817
Thu Apr 22 07:34:18 2010
Starting background process SMCO
Thu Apr 22 07:34:18 2010
SMCO started with pid=19, OS id=3861
Thu Apr 22 07:59:23 2010
Thread 1 advanced to log sequence 451 (LGWR switch)
Current log# 1 seq# 451 mem# 0: /u01/app/oracle/oradata/ultimus/redo01.log
Thu Apr 22 10:09:23 2010
DM00 started with pid=34, OS id=6272, job ULTIMUS.SYS_EXPORT_SCHEMA_01
Thu Apr 22 10:09:25 2010
DW00 started with pid=35, OS id=6274, wid=1, job ULTIMUS.SYS_EXPORT_SCHEMA_01
Thu Apr 22 10:11:20 2010
Thread 1 cannot allocate new log, sequence 452
Private strand flush not complete
Current log# 1 seq# 451 mem# 0: /u01/app/oracle/oradata/ultimus/redo01.log
Thread 1 advanced to log sequence 452 (LGWR switch)
Current log# 2 seq# 452 mem# 0: /u01/app/oracle/oradata/ultimus/redo02.log
Thu Apr 22 10:13:28 2010
DM00 started with pid=45, OS id=6395, job ULTIMUSISL.SYS_EXPORT_SCHEMA_01
Thu Apr 22 10:13:29 2010
DW00 started with pid=46, OS id=6397, wid=1, job ULTIMUSISL.SYS_EXPORT_SCHEMA_01
Thu Apr 22 10:14:29 2010
Thread 1 cannot allocate new log, sequence 453
Private strand flush not complete
Current log# 2 seq# 452 mem# 0: /u01/app/oracle/oradata/ultimus/redo02.log
Thread 1 advanced to log sequence 453 (LGWR switch)
Current log# 3 seq# 453 mem# 0: /u01/app/oracle/oradata/ultimus/redo03.log
Thu Apr 22 10:15:40 2010
DM00 started with pid=43, OS id=6432, job IULTIMUS.SYS_EXPORT_SCHEMA_01
Thu Apr 22 10:15:41 2010
DW00 started with pid=45, OS id=6434, wid=1, job IULTIMUS.SYS_EXPORT_SCHEMA_01
Thu Apr 22 10:16:38 2010
DM00 started with pid=45, OS id=6450, job ULTIMUSEXT.SYS_EXPORT_SCHEMA_01
Thu Apr 22 10:16:38 2010
DW00 started with pid=46, OS id=6452, wid=1, job ULTIMUSEXT.SYS_EXPORT_SCHEMA_01
Thu Apr 22 10:26:18 2010
Fatal NI connect error 12537, connecting to:
(LOCAL=NO)
VERSION INFORMATION:
TNS for Linux: Version 11.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
Time: 22-APR-2010 10:26:18
Tracing not turned on.
Tns error struct:
ns main err code: 12537
TNS-12537: TNS:connection closed
ns secondary err code: 12560
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
opiodr aborting process unknown ospid (6587) as a result of ORA-609 -
Coldfusion 9 & Oracle 11g r1 connection
We recently updated to Coldfusion 9. We are wondering how we can get an odbc connection to oracle 11g r1. I did a full installation of CF 9 with the ODBC option checked but it did not have an option for oracle databases, when we went to the data source in CF admin to create database connections. According to the CF 9 documentation there is suppose to be one? We are using CF 9 standard, what am I doing wrong. Previously we used "Configuring ColdFusion MX to use the Oracle JDBC thin driver" and that seem to work. But not for the new version of Coldfusion and oracle.
If anyone found a solution please let me know the details.
ChadIf you are sure you have newer versions you may try
runInstaller -ignoreSysPrereqs .
That bypasses the pre-checks. But there's a risk even more severe errors will occur later.
Werner -
Oracle 11g Remote Connection issue
When I try to connect to Oracle database remotely using SQLPlus or SQLDeveloper I get the following error.
ORA-01017: INVALID USERNAME/PASSWORD; logon denied.
Server details:
Oracle 11g on Enterprise Linux 4
I can connect using SQLPlus on the server.
SHOW SQLCASE is MIXED
Client details:
Windows Server 2003 enterprise Edition
Oracle 11g Client.
From remote computer my TNSPING to that server works perfectly.
For the same connection string I can’t connect from client. I am sure I am not typing bad password.
Any thought on this will be helpful.
Thank you,
SmithDid the following steps and still not able to connect.
1. Cross checked that the REMOTE_LOGIN_PASSWORDFILE is set to EXCLUSIVE.
2. Created the PASSWORD file at the server using the tool ORAPWD
3. Restarted the server and started the Oracle listener and database.
4. Connected to the database using PLSQL in server to make sure it works fine there.
5. Checking at the client box to connect to the database. It fails and I am looking for help again at forum.
Now it is connecting using remote connection(sqlplus and sqlDeveloper) to the server. Interestingly the password are not the same when I connect remotely and from the server.
I am sure it is connecting to the same database both the occasion. I shut down the server and try to connect or v$version results indicates that I connecting to the same database.
Any jestification on this? I am getting lost here.
Thank you,
Smith
Edited by: user517525 on Feb 16, 2010 1:44 PM
Edited by: user517525 on Feb 16, 2010 2:22 PM -
Oracle 11g R2 install problem on Windows Server 2008 R2 SP1
Hi all,
Trying to install the Oracle 11g R2 database onto Windows Server 2008 R2 SP1.
I get as far as running the setup and a black window flashes up on the screen and disappears.
The log files only show the following:
Using paramFile: C:\Temp\database\install\oraparam.ini
Checking monitor: must be configured to display at least 256 colors. Actual 65536 Passed
The number of files bootstrapped for the jre is 0.
The number of files bootstrapped for the oui is 0.
I've tried running setup -debug from the command line but no further information is logged.
Any help in troubleshooting further is appreciated.That is the complete log file. No error messages or further information is given.
I'm not sure how to check:
Statement of Direction: Oracle Database 11g Release 2 – Microsoft Windows 7 and Windows Server 2008 R2 [ID 867040.1]
I have checked on:
http://docs.oracle.com/cd/E11882_01/install.112/e24283/toc.htm
The server meets all the hardware requirements. The default file share is accessible and it is running a supported browser. The installer is being run with Admin rights. I'm not sure what else I need to check. -
Oracle 11g EM configuration problem
It seems a "bug" to me:
Windows 2003 R2 64-bit with all up-to-date patches
64-bit Oracle 11.1.0.7 for Windows 2003 R2 64-bit
The machine has only one HD right now and it is assigned to H, the DVD drive is assigned to D
Installed Oracle 11g, everything is fine, didn't configure the EM during installation.
After installation, manually configure the EM:
H:>emca -repos create
H:>emca -config dbcontrol db
all seems fine, but at the end of the second command, 2 perl.exe instances started. One of them never stops. It just eating up all the RAM (from 1.3GB --> 4GB and still increasing) and CPU (100% all the time).
The solution: plug-in a USB drive, which will be assigned to be C drive. Then the perl.exe calms down immediately, released most of the memory and CPU used.
But the perl.exe can resume this behavior maybe every one or two days. So, to calm it down, I have to keep the USB drive plugged.Never heard about this,report the issue to Oracle support (you have a patched version,so I think you can open a SR on metalink). It may be that there's a 'hard-coded' reference to drive C somewhere in the code.
Werner -
Oracle 11g Database Schema problem
Hi I have installed the Enterprise Edition of Oracle 11g on windows XP SP2. I log in to Enterprise Manager. When I click on the schema tab I get the following error message.
Error
Internal Error has occured. Check the log file for details.
Does anybody know why ? and which log file they are refering to?
Also can someone tell me where or how you can create normal users ?
thanksthe related OC4J machine is failing, it could be due to a number of reasons. Sometimes it has to do with the TZ region Agent recognizes, but the only way to know it for sure is by taking a look at the operational log files. Those can be found at the EM Console directory under the ORACLE_HOME. You will see the ORACLE_HOME/EMConsoleDirectory/log at the log there are several files, take a look at them and feedback.
~ Madrid
http://hrivera99.blogspot.com/ -
Oracle application express3-10g to 11g DRCP connection problem
[Oracle application express3 +Oracle Identity Management 10g (10.1.4.0.1) authentication] has a performance problem about dedicated connections,
i have 714 sessions, and 506 of 714 is httpd connection of APEX.
so i decided to use DRCP, because database side is 11g. but APEX client side is working on 10g database server + and 10g client + OID 10.1.4,
can i upgrade 10g-PL/SQL-HTTPDclient libraries to 11g instant client easily? is it posible? how?
if you guide me step by step i will be happy,
best regardsHi user
For your issue i suggest close your thread here as changing thread status to answered and move it to Forum Home » Database » Application Express
which you can get more quick response
Regard
Helios -
Oracle/ SQL Developer connection problem.
I have installed Oracle 11 g and SQL Developer, When I open SQL Developer and try to make a new connection ( I name the connection, put a user name in, put my password in), I click on "Test" and I get this error:
Status: Failure - Test failed: Listener refused the connection with the followong error:ORA-12505, TNS: listener does not currently know of SID given in connect descriptor The connection descroptor used by the client was:localhost:1521:ex
Can anyone explain this to me and help me resolve this issue I am having?
Thank you in advance for your help
-steve
p.s. I have also tried the user name: Scott and Password: TigerWindows 7 Home ... will have challenges at some point, as Oracle may not be completely compatible with Windows 7.
Aside from that, you may find firewall issues even if you are on the same machine, since the default connection from SQLDeveloper is to use the network (even loopback).
First step is to verify that the database and listener are running and that the database is registered to the listener. TO do that, drop into command line and issue:
1) Listener
lsnrctl statuswhich will give one of two results, if properly installed. First - listener is down
C:\temp>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 07-FEB-2010 20:48
:13
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 2: No such file or directory
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=FCC003L)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 61: Unknown errorIf the above is displayed, check the Service applet (Control Panel -> Admin Tools > Service) to ensure serivce is up, or enter "lsnrctl start", in which case the status shoud show
C:\temp>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 07-FEB-2010 20:46
:40
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
Start Date 05-FEB-2010 14:42:10
Uptime 2 days 6 hr. 4 min. 30 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\oracle\app\oracle\product\10.2.0\server\network\adm
in\listener.ora
Listener Log File C:\oracle\app\oracle\product\10.2.0\server\network\log
\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=FCC003L)(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
C:\temp>2) After the service is verified up, make sure the database is up
sqlplus / as sysdbawhich should respond with something like
C:\temp>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Feb 7 20:43:12 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL>if it gives something like
C:\temp>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Feb 7 20:44:49 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12560: TNS:protocol adapter errorthe pull up the Control Panel, Admnistration Tools, Services and start the database. Then recheck the listener and it shoudl show some additional services such as
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "TEST" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "XEXDB" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "XE_XPT" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "xe" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
The command completed successfullyIn the above, remember the "xe" from 'Service "xe" has 1 instance(s).'. I expect to see something about that in the TNSNAMES.ORA file in your ORACLE_HOME\network\admin directory. That file should have an entry like
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = FCC003L)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)and you will note the XE on the left side of the equal sign (which is a network alias), and one XE in the (SERVICE_NAME = XE) line. On YOUR system, the XE should be replaced by whatever you called your database (often 'orcl'). REMEMBER THIS ALIAS;-) and also make note of the host that your entry uses. If your host name changes because of DHCP, you're hooped (for a while).
If the database is registered (shows up in the list), the next step is to make sure a userid is available. You could use 'system' (try to avoid using SYS since it is the master userid and if you mess that up, you mess up all your homework. In a production encvironment, every access to SYS will be audited.
So, let's create a userid called me with (in 11g case sensitive) password 'myself'. Make sure that user is allow to log in (create session) and create a table.
C:\temp>sqlplus system/oracle
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Feb 7 20:54:38 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> create user me identified by myself;
User created.
SQL> rem to show you how to change password ...
SQL> alter user me identified by myself account unlock;
User altered.
SQL> grant create session, create table to me;
Grant succeeded.
SQL> exit
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Productionand now see whether we can log in using the same 'network' technique we will later use with SQLDeveloper.
Do you remember the XE discussion above? Replace XE with the one on the left of the equal sign - the system looks that up to find which service it wants to access.
C:\temp>sqlplus me/myself@XE
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Feb 7 20:58:26 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> select * from dual;
D
X
SQL> exit
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - ProductionIf the above worked, you should have no problem accessing the system using SQLDeveloper. You simply use the HOST, the PORT and the SID (alias) or service from the "lsnrctl status" output in the SQLDeveloper fields.
If it did not work, try dropping the "@XE" to see whether you can get in (using the bequeath connection) which is useful for troubleshooting but will not help with the traditional SQLDeveloper connection. If you get in without the @XE (or whatever your alias is) but not with it, most likely either your listener is not up or your firewall is blocking the access to the listener. -
Oracle 11G - Table access problem
Hi,
Iam new to Oracle...After creating a DataBase I created a connection and role has SYSDBA...
And then I create a table....called Table1. And then I create a new USER and I Connect with same Databse SID but the role has DEFAULT for this new USER....
01. But the problem is I cannot find the table -Table1 for this new user...so how to acess that Table1.....?
02. I came to know in Oracle also we can design Forms for frontend and can generate EXE....Is it true?
03. In SQL Server -Sql Port with static IP- we can access the Database for remote users.... For Oracle is it possible?
Thanks for the directions....997497 wrote:
Hi,
Iam new to Oracle...After creating a DataBase I created a connection and role has SYSDBA...What user did you use to connect? I'm guessing that you logged in as SYS
And then I create a table....called Table1. And then I create a new USER and I Connect with same Databse SID but the role has DEFAULT for this new USER....So I'm guessing that you created the table in the SYS schema. You should never, ever create user objects in the SYS schema. If you created the table in the SYS schema, you really need to drop it and create it in a more appropriate schema.
You indicate that you're coming from SQL Server, so there is perhaps a terminology issue. What SQL Server refers to as a "database" is roughly equivalent to what Oracle refers to as a "schema". An Oracle database contains many schemas. A schema is the set of objects owned by a particular user.
01. But the problem is I cannot find the table -Table1 for this new user...so how to acess that Table1.....?As I said above, you really, really shouldn't create objects in the SYS schema. If you really want to, though, you would need to log in to the SYS schema and grant access on the table to your new user
GRANT SELECT ON sys.table1 TO your_new_userYou would then need to fully qualify the table name in your SELECT (or create a synonym or set the current_schema)
SELECT *
FROM sys.table1
02. I came to know in Oracle also we can design Forms for frontend and can generate EXE....Is it true? Ancient versions of Oracle Forms would create client/server executables. Modern versions are used to build three-tier applications. You can also use APEX to build web-based applications. Of course, you can also generate executables by writing code in some other language (often .Net).
03. In SQL Server -Sql Port with static IP- we can access the Database for remote users.... For Oracle is it possible?Is it possible? Sure. Depending on what "remote users" means though, it may be rather ill-advised-- you'd never want to open up a database to the internet directly, for example, you'd want to ensure that the remote users are connected to your network (i.e. via a VPN).
Justin
Maybe you are looking for
-
Create search refiner for list name in sharepoint 2013
Hi everybody! How could I create a search refiner for list name in SharePoint 2013?? I think I can create a search refiner for list ID but how could I show list name base on list id to users in refinement webpart??
-
I just re-installed CC apps on a new hard drive. All seem to be starting fine except for Bridge. When I start Bridge I get an error that says "The Operation Could Not Be Competed" I am paying 50 freaking dollars a month for this stuff. I expect i
-
How can I find out the total number of gigabytes of all my photos in Iphoto?
How can I find out the total number of gigabytes of all my photos in Iphoto?
-
One calendar is not shown in sunbird
Hi, I set up the ical server and sunbird. There are 4 calendars for one user that work fine for iCal client. When these calendars are integrated in sunbird there are only 3 of 'em shown. The fourth one is not shown at all which is maybe because of th
-
Dodge and Burn Tool basicly stopped working.
For some reason the Dodge and Burn Tool in Lightrooom 5.4 basicly stopped working. It will only make a slight adjustment no matter how much I change the exposure value. Does anyone know what could be causing this?