Sqlloader has SQL * Loader-704 and ORA-12154 errors

Source: Internet
Author: User

1. Error description:
Each generated sqlloder file is in good condition and has the same permissions, but an error is reported when importing the oracle database. The error is:
SQL * Loader-704: Internal error: ulconnect: OCIServerAttach [0]
ORA-12154: TNS: cocould not resolve the connect identifier specified
2. Cause Analysis
The remote tns service is not activated locally, but sqlloader uses the local tns to connect to the remote database.
3. solution (two solutions are available)
(1) Reload the tns service of orcle locally and configure the tns connection of the remote server in tnsnames. ora, which is expensive but feasible.
(2) directly add the ip address of the remote database server to the sid, for example:
Sid = database name/password @ // remote database ip \: Port/remote database sid

4. Conclusion:
If sqlloader needs to connect to the remote database sid locally, it must have the ip address of the remote database.
If the database is local and the tns service is activated locally, no ip address is required.




Author: nannan408

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.