I installed Oracle 11XE a while back - suddenly I am getting ORA-01034 and ORA-27101 errors when trying to connect
My ORACLE_HOME and ORACLE_SID appear to be correct.
My listener.ora file is:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = XE)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
))
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = Home-PC)(PORT = 1521))
)
(PROGRAM = extproc)
)
DEFAULT_SERVICE_LISTENER = (XE)
The following Windows Services are all started:
OracleJobSchedulerXE
OracleMTSRecoveryService
OracleServiceXE
OracleXEClrAgent
OracleTNSListener
When I switch Windows Firewall off (just in case it is blocking port 1521), it still brings up the error
What else can I check?
It must have been a permissions issue for some reason
When I ran the Start Database batch file, it just hung
From the SQL Command Line, I typed
STARTUP
and got
ORA-01038: insufficient privileges
So I connected using
connect sys as sysdba
and got
Connected to an idle instance
I then used
STARTUP
again and it started! I had not changed anything else. I can only assume I will have to change my Start.bat file to connect as sysdba first
I ran into this exact problem when one of my drives used by Oracle had 25GB used and only 5GB free space. I increased the size to 60GB and it fixed the problem.
Related
I have a locally installed Oracle XE instance I use, but it times out every 2 hours on our corporate VPN. It's like clockwork, 2 hours after connecting I get:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
If I reconnect the VPN it starts working again, 2 more hours then reconnect. Any way to avoid this? Any way even to refresh it without reconnecting the VPN, as that in itself is a total pain.
Update
listener.ora looks like:
DEFAULT_SERVICE_LISTENER = XE
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\Oracle\dbhomeXE)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\Oracle\dbhomeXE\bin\oraclr.dll")
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = <FQDN>)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
Where is the fully qualified domain name of my machine.
I recently installed Oracle Database 18c.
I have no problem connecting to the database using SQL Developer.
However, when I try to connect using SQL*PLUS, I'm given the error messages in the subject headline.
Can anyone tell me why this is?
Here is my listener.ora:
listener.ora Network Configuration File: C:\Algonquin\OracleDB18cExpressEdition\dbhomeXE\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
DEFAULT_SERVICE_LISTENER = XE
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\Algonquin\OracleDB18cExpressEdition\dbhomeXE)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\Algonquin\OracleDB18cExpressEdition\dbhomeXE\bin\oraclr18.dll")
)
(SID_DESC =
(SID_NAME = XE)
(ORACLE_HOME = C:\Algonquin\OracleDB18cExpressEdition\dbhomeXE)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = NewUser-PC)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
Does anyone have any suggestions as to what can be the problem?
If you're using the default icon to access SQLPlus, have tried sys as sysdba and it gives you some kind of can't connect error, open a regular command window and simply type at the prompt C:/>sqlplus / as sysdba. That worked for me. The former method using the default icon for SQLPlus, had me hunting down articles to troubleshoot that error code and led me to where you are, editing your ORA files. WIth XE, turns out you don't even need to be in there but, thanks to that initial error code, well.
I am using Oracle 10g on a Windows machine, everything works fine and all, but after rebooting the machine, I started having a problem where I couldn't connect to the instance (ORA-12514), knowing that the listener service in On. When i disconnect from the internet, oddly enough, the issue corrects itself.
Does anybody have a clue on the roots of this problem?
Here is the content of my listener.ora file:
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = Localhost)(PORT = 1521))
)
)
EDIT:
When i try to connect to the host using telnet localhost 1521 it stays this way:
and when i try telnet and then o localhost 1521, it connects successfully.
When i change localhost to 127.0.0.1, the problem remains the same.
lsnrctl status gives me this result:
Change entry to 0.0.0.0 instead of Localhost as following:
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=1521)))
It's the simplest way to have listener linstening all interfaces.
EDIT: Also, you can use static listener registration such way:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = YOURSID)
(ORACLE_HOME = C:\oracle\product\11.2.0\dbhome_1)
(SID_NAME = YOURSID)
)
)
I'm experiencing a reoccurring issue daily with my Oracle Database. I connected it recently and now when I restart, it seems to lose it. By lose it, I mean I receive an ORA-01034 error, as well as ORA-27101 error when I try to log in as a regular user. If I try my SYS user, I get an insufficient error (ORA-01031).
I found that if I remove the service and recreate it, I can log back in. However, this is not feasible as it is my local environment and I tend to shutdown for the night typically. I could keep my box up and weekly do it, but that still doesn't seem like a feasible idea.
Below is my TNSNames and Listener files.
tnsnames.ora
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
BRACMIS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.x.xx)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = BRACMIS)
(INSTANCE_NAME = BRACMIS)
)
listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\chad.johnson\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\chad.johnson\product\11.2.0\dbhome_1\bin\oraclr11.dll")
)
(SID_DESC =
(ORACLE_HOME = C:\app\chad.johnson\product\11.2.0\dbhome_1)
(SID_NAME = BRACMIS)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.x.xx)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
ADR_BASE_LISTENER = C:\app\chad.johnson\product\11.2.0\dbhome_1\log
)
I did notice that my Oracle service for 11g and OracleInstanceBRACMIS service both were off when I started up this morning. Not sure if it is something to do with that or not either. Thanks.
EDIT: I found a way to force my DB to start up. In a command prompt, I input the command:
oradim -STARTUP -SID BRACMIS
This allowed me to start my database, which in turn allowed me to log into it at long last. This doesn't solve the overall issue of not being able to log in initially when I come on after a restart, but it does give me a way to jumpstart the DB at the very least rather than remove the Oracle Service Instance and add it back.
It appears that when you restart, oracle service is not starting. (which basically means that your Oracle Database was not started.)
Goto your windows services, and locate your Oracle Service and change the startup type of your service as Automatic . This will ensure that the Oracle Database starts after a restart.
Meanwhile open your command prompt ...do the following..
C:\> set oracle_sid=your_sid
C:\>sqlplus / as sysdba
SQL>Startup;
This will start your instance...
I have problems when I modify the listener.ora , when I put a new address , as shown .
listener.ora Network Configuration File: C:\app\name\12.1.0\dbhome_1\NETWORK\ADMIN\listener.ora
Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\name\12.1.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\name\12.1.0\dbhome_1\bin\oraclr12.dll")
)
(SID_DESC =
(GLOBAL_DBNAME = OracleDB)
(ORACLE_HOME = C:\app\User\product\11.2.0\dbhome_1)
(SID_NAME = ORCL)
)
(SID_DESC =
(GLOBAL_DBNAME = Oracle8)
(SID_NAME = ORCL)
)
(SID_DESC =
(GLOBAL_DBNAME = Prova)
(ORACLE_HOME = C:\app\User\product\11.2.0\dbhome_1)
(SID_NAME = ORCL)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
**(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.10)(PORT = 1521))**
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
ADR_BASE_LISTENER = C:\app\name\12.1.0\dbhome_1\log
when I do not put the address with asterisk everything works correctly in local, but I need to connect oracle from another client (other PC).
in aid I found places I have to add this:
** (ADDRESS = ( PROTOCOL = TCP ) (HOST = 192.168.0.10 ) (PORT = 1521 ) ) **
but when I put this in the listener.ora nothing works.
errors are as follows:
oracleOraDB12Home1TNSListener
It does not automatically start.
enter cmd and put lsnrctl star and I get this error:
TNS- 12560 and TNS- 00530
if I make a lsnrctl status I get the error:
TNS- 12535 , TNS - 12500
how can I solve this problem?
to connect from a client (other PC) is correct only make this change in the listerner.ora or some change is needed more ?
Finally is Oracle for Windows x64
Just clarifying a few points: The host of the database runs the listener(s). The listener configuration comes from tnsnames.ora and listener.ora located where you've specified. 'localhost' is obviously the same address as the database host.
In the listener.ora, the IP you are trying to add should be an IP address for the database host. (It's not clear from the post, but just to be clear, the listener does not run on the client.) I personally replace the 'localhost' entry with the database host IP address.
At this point the listener should start correctly and it will be listening for connections on the IP and port specified.
The remaining problems with the client connectivity get a bit more complicated because of network configuration, authentication, client s/w involved, etc. Some of these configurations relate to the sqlnet.ora file (both on the server and the client).
But basically, on the client, you need to configure the connection to connect to the IP address, port, and one of the global_names referenced in the listener.ora (This could be configured via a tnsnames.ora file. There are other client configuration options.)