tnsnames.ora 파일이없는 Oracle Connection String
-
03-07-2019 - |
문제
System.data.oracleClient 네임 스페이스와 함께 .NET 프레임 워크를 사용하고 있습니다. 내 컴퓨터에 Oracle 11 클라이언트가 설치되어 있습니다. 연결 정보를 저장하기 위해 tnsnames.ora 파일을 사용하고 싶지 않습니다.
TNSNAMES.ORA 파일을 사용하고 싶지 않은 경우 누군가가 연결 문자열의 모습을 알려 주시겠습니까? 웹 응용 프로그램 프로젝트의 web.config 파일에 연결 문자열을 저장합니다.
해결책
http://www.connectionstrings.com/oracle
이것은 훌륭한 자원입니다
server = (description = (주소 = (프로토콜 = tcp) (host = myHost) (port = myport))
(connect_data = (service_name = myoraclesid))); uid = myusername; pwd = mypassword;
당신이 원하는 것입니다 ...
다른 팁
10G 클라이언트부터 시작하면 사용할 수 있습니다 ezconnect tnsnames.ora 파일을 편집 할 필요가없는 기능 : username/password@servername:port/instance
. 예를 들어 :
Data Source=localhost:1521/XE;Persist Security Info=True;User ID=scott;Password=tiger;Unicode=True
제휴하지 않습니다 StackOverflow