64-bit win7 pl/SQL cannot connect to oracle Solution

Source: Internet
Author: User

1. pl/SQL cannot connect to the local oracle (ORA 12154: TNS: the specified connection identifier cannot be resolved)

Solution: pl/SQL cannot be installed in the Program Files (x86) folder, and must be installed in the Program Files folder.

2. pl/SQL cannot connect to remote oracle (ORA-12514: TNS: The Listener currently cannot identify the Service requested in the connection descriptor)

Solution: ① in linux, locate listener. ora in the oracle directory and use vi to edit
② The following red is the add part. GLOBAL_DBNAME must be consistent with the oracle network name configured by the client, and SID_NAME must be consistent with the local database instance name.
Copy codeThe Code is as follows:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME =/u01/app/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = Lxorcl)
(ORACLE_HOME =/u01/app/oracle/product/10.2.0/db_1)
(SID_NAME = orcl)
)
)

3. Start and close oracle listeners
Copy codeThe Code is as follows:
Start: lsnrctl start
Disable: lsnrctl stop
Status: lsnrctl status

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.