Before, there was no Oracle client installed on the computer, just using PL/SQL to access the remote server. During this time, I want to install myself for fun. As a result, after installing Oracle 10g locally, PL/SQL can’t access the original server. Baidu didn’t find a feasible solution for a long time. Later, I thought of Google. It’s really professional. The first result I found solved my problem… I don’t want to talk too much nonsense. I want to talk about my problems and solutions.
Prompt when connecting to the server:
Ora-12514: the listener is currently unable to recognize the service requested in the link description
I think there is something wrong with the configuration. And then check it on the Internet. The solutions found (I used them and they are feasible) are as follows:
Configure listener of Oracle server
Modify the & lt; installation directory & gt;/network/admin/directory listener.ora and tnsnames.ora Two files. among
The listener file is as follows:
# listener.ora Network Configuration File: /oracle/app/product/10.1.0/db_ 1/network/admin/ listener.ora
# Generated by Oracle configuration tools.
SID_ LIST_ LISTENER =
(SID_ LIST =
(SID_ DESC =
(SID_ NAME = PLSExtProc)
(ORACLE_ HOME = /oracle/app/product/10.1.0/db_ 1)
(PROGRAM = extproc)
)
(SID_ DESC =
(GLOBAL_ Dbname = Demo1) # Demo1 is the Oracle instance name
(Oracle)_ HOME = /oracle/app/product/10.1.0/db_ 1)
(SID_ NAME = demo1)
)
)
LISTENER =
(DESCRIPTION_ LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(address = (protocol = TCP) (host = 192.168.0.100) (Port = 1521)) # IP address is Oracle server
)
)
tnsnames.ora The document is amended as follows:
# tnsnames.ora Network Configuration File: /oracle/app/product/10.1.0/db_ 1/network/admin/ tnsnames.ora
# Generated by Oracle configuration tools.
Demo1 =
(description =
(address = (protocol = TCP) (host = 192.168.0.100) (Port = 1521))?The IP address is Oracle server
(connect)_ DATA =
(SERVER = DEDICATED)
(SERVICE_ Name = Demo1) # Demo1 is the Oracle instance name or service name, which can be modified by netmgr or netca
)
)
EXTPROC_ CONNECTION_ DATA =
(DESCRIPTION =
(ADDRESS_ LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_ DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
The above modifications can also be configured through netmgr and netca.
After modification, restart the listener
After modifying these configurations, you can connect to the server.
Feeling: I haven’t really used PL/SQL and Oracle before, but this time I have a problem I felt that the problem of crouching trough was very advanced. At that time, I was a little flustered. My first reaction was to ask others, but I was not willing to. So I went to the Internet to find a solution. Baidu didn’t find a feasible solution for a long time. Later, I asked in the classmate group, and no one knew the solution. Some students asked Google, so I became a living horse doctor and tried it I searched for it, and it turned out…. The result is what you see now ~ some things can’t only look at the surface, and can’t be scared by the problems. When you work hard to solve them, you will find that they are all small cases. Ha ha, it’s not bad. I haven’t solved a problem that makes me feel successful for a long time. come on.
Read More:
- Solution to Oracle error 17002
- JDBC connect to Sql Server to connect to the database–The TCP/IP connection to the host localhost, port 1433 has failed
- Sqlog connect to MySQL 8.0.24 remote server, error: 2058 solution
- SQL server remote computer refused network connection, error: 1225, specific solution steps.
- SQL 2005 remote connection error (provider: SQL network interface, error: 28 – the server does not support the requested protocol
- Navicat remote connection SQL Server 2014 express report 08001 error
- Oracle login error: Oracle error 6 initializing SQL * plus (normal before)
- A series of errors encountered in connecting to the database using Oracle SQL developer
- Navicate premium Connecting to a remote Oracle,ORA-12514: TNS:listener does not currently know of service requested in c
- Failed to create Oracle Oracle home user solution appears in oracle12c installation
- MySQL: if the remote connection using navicatip fails, prompt “is not allowed to connect to this MySQL server”
- CentOS Liunx 7 uses rdesktop to remotely connect to the Alibaba Cloud server and it appears Failed to connect, CredSSP required by server.
- Solution to “the grub PC ‘package failed to install into / target / when installing Ubuntu server
- Oracle Data Guard Ping [arc2]: heartbeat failed to connect to standby “. Error is 12514 fault analysis
- SQL Server 2008 18456 error and SA unable to login solution
- A solution to 1603 error in installing vCenter server
- About WLW (Windows Live Writer): “unable to connect to your log service: invalid server response” solution
- Solution to SQL Server Error: 4064
- Reporting Services Catalog Database File Existence” error during installing SQL Server 2008 R2
- About installing SQL server 0 in Windows 10 20h2 × 84bb0001 is one of the solutions