tnsnames

Error ORA-12154 on DBI->connect to Oracle database with Oracle Instant Client in Solaris 10

大兔子大兔子 提交于 2021-02-10 18:42:56
问题 I've been pulling my hair out over this problem for two days now: I'm trying to get a perl script to interface with an Oracle database. I have a new server I'd like to deploy my application on. This script previously worked. Here's what I've done so far: Placed my tnsnames.ora file in instantclient/network/admin: ls -la network/admin/ total 8 drwxrwxrwx 2 m staff 512 Apr 19 09:54 . drwxrwxrwx 3 m staff 512 Mar 28 15:56 .. -rwxrwxrwx 1 m staff 777 Apr 19 09:54 tnsnames.ora My Perl script looks

Sql Developer can conect Oracle Database 12c with TNS but can not connected with basic

拥有回忆 提交于 2021-02-04 21:25:54
问题 I have installed a new oracle database(12.2.0.1). I have create a pluggable database (orclpdb). I create a user Fed_Test_User in the PDB. And I can connect it by SQL developer with TNS(can connect by conn Fed_Test_User/welcome@orclpdb). But I can not connect by SQL Developer with basic connection type. Listener.ora: LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) ) ) sqlnet.ora: NAMES

“Invalid connection string format” error when trying to connect to Oracle using TNS alias that contains dot character

匆匆过客 提交于 2021-01-28 06:56:46
问题 I am trying to connect to Oracle database using TNS. The problem is that TNS alias contains dot, so when I am specifying url like this: jdbc:oracle:thin:@TNS.ALIAS I've got... oracle.net.ns.NetException: Invalid connection string format, a valid format is: "host:port:sid" ...during creation of connection. I know that dot character is a problem, because after removing it from tnsnames.ora file connection to database works. My question is - is it possible to escape dot character somehow? Maybe

How do I query LDAP from C# to resolve Oracle TNS hostname while using managed ODP.NET?

时间秒杀一切 提交于 2020-06-10 12:44:33
问题 Further to my previous Question, which I managed to answer myself with help from the Oracle forums, I now have another issue which follows on from the earlier one (provided for background). I wish to query LDAP directly from my C# code to perform an LDAP lookup of an Oracle TNS hostname in order to get the connection string. This is normally stored in tnsnames.ora , and my organisation uses LDAP (via ldap.ora ) to resolve hostnames from an LDAP server using Active Directory. However, I am

ORA-12514 error after restarting the server

巧了我就是萌 提交于 2020-01-10 06:01:07
问题 I have oracle 11g installed on server and .Net oracle clients will access the database. Till yesterday i was connecting from clients using this connection string: User ID=dbcplas;Password=pwd123;Data Source=(DESCRIPTION = (ADDRESS =(PROTOCOL = TCP)(HOST = 172.17.26.7)(PORT = 1521))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = orcl.cplas3.com))) Till yesterday I was able to use Oracle SQL Developer in the same client. Today morning we restarted the server for maintanance. After restarting

How can I configure my Oracle tnsnames file location? [closed]

别说谁变了你拦得住时间么 提交于 2020-01-01 14:38:31
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I have Oracle 10g installed on Windows. Currently, my tnsnames file is stored at %ORACLEHOME%\network\admin. However, I want to configure Oracle to look somewhere else for that file. How can I do this? Andrew L 回答1: You can use the TNS_ADMIN environment variable to specify a custom location of TNSNAMES.ORA file.

Oracle database TNS The value's length for key 'data source' exceeds it's limit of '128'

限于喜欢 提交于 2019-12-19 03:36:32
问题 So I have a connection string to an Oracle Database essentially I copied it straight from sql developer and then cut out the white space. I later programmatically add in the user name and password.The problem is that when I try to open an SQLConnection object. I get the error: The value's length for key 'data source' exceeds it's limit of '128' I don't really know much about oracle TNS connections. I used this connection string because it worked in the wizard when I pasted it in and did test

Querying an Oracle database from SQL Server

安稳与你 提交于 2019-12-19 03:21:35
问题 I have an Oracle 11g XE database that I would like to transfer into SQL Server Express 2005. At first I thought I'd just generate the tables in Oracle as SQL, manipulate the data formats, and run the query in SQL Server. This worked for small tables, but I have several tables with a few hundred thousands rows and some with millions of rows, so this solution won't work. I then created a TNS file with the following content: OracleTnsName = ( DESCRIPTION= ( ADDRESS = (PROTOCOL=TCP)(HOST

Querying an Oracle database from SQL Server

我怕爱的太早我们不能终老 提交于 2019-12-19 03:20:35
问题 I have an Oracle 11g XE database that I would like to transfer into SQL Server Express 2005. At first I thought I'd just generate the tables in Oracle as SQL, manipulate the data formats, and run the query in SQL Server. This worked for small tables, but I have several tables with a few hundred thousands rows and some with millions of rows, so this solution won't work. I then created a TNS file with the following content: OracleTnsName = ( DESCRIPTION= ( ADDRESS = (PROTOCOL=TCP)(HOST

Connecting to Oracle database installed on one pc to the java application from another machine

旧街凉风 提交于 2019-12-13 07:46:25
问题 I've installed Oracle 12c (desktop class) on my machine, and I can use it via sql developer on the same machine. Now how can I use the same database from another machine (for java application) in the LAN? I tried using the jdbc thin driver as follows: jdbc:oracle:thin:@10.0.11.69:1521:orcl where 10.0.11.69 is my ip address where Oracle is installed. Do i need to install any server where oracle is installed(10.0.11.69) to connect to my db from another machine? I'm trying this from past 3 days