Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8448595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:28:14+00:00 2026-06-10T10:28:14+00:00

I encountered a problem that I have spent hours fixing that. Here is the

  • 0

I encountered a problem that I have spent hours fixing that. Here is the problem:

I am trying to connect to a remote Oracle 8i server using Oracle 11 instant client: here is my connection string in PHP:

$conn = oci_connect(‘db_user’, ‘db_pass’, “db_ip/db_service”);

db_ip is the ip of the server, such as “12.34.56.78”.
db_service is the service of server, such as “test”.

The error shown is

ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

I could use the same client to connect to another Oracle 10g server. The php code is same, only change the db_user or db_pass or db_ip. db_service is not provided.

I don’t use tnsnames.ora for either oracle 10g server or oracle 8i server. I just use the simple IP of server. Does this matter?

Server using: Windows Server 2008 R2
PHP: php 5.2.17
Oracle Instant Client: 11_2

Any ideas will be appreciated.

Updated
Php can also work now. My php folder is under Programfiles (x86), the parenthesis is not allowed. So I moved the whole folder to C:\php, and configure the IIS to change php version. Reference:http://stackoverflow.com/questions/9215983/php-cant-connect-but-sqlplus-can

Updated
Thanks so much for Justin’s help. It works!!! I just changed the sid to scblive instead of SCBLIVE. Their database name is scblive. I am still using 10.2.0.1, using sqlplus, I can connect to both oracle 10g and oracle 8i. Thanks soooo much!!

This is the tns names that works for oracle 8i:

scblive =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = [oracle 8i ip])(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = scblive)
)
)

Another problem found, in php code, it shows the same error for either oracle 10g or oracle 8i.

ORA-12154: TNS:could not resolve the connect identifier specified

I just used following connection string:

$conn = oci_connect(‘user_name’, ‘pass’, ‘scblive’);

for oracle 10g, if I used same connection string as before, the error still shows:

$conn = oci_connect(‘user_name’, ‘pass’, [oracle 10g ip]);

Any ideas?

Earilier Update:
Thanks for @Justin’s help. have tried 10.2.0.5, 10.2.0.4 or 10.1.0.0, none of them could work. I saw the the matrix. it seems instant client 8.1.7 or instant client 9.0.1 could work for both oracle 10g and oracle 8i. Does anyone have a link for those files? Oracle could only provide 10.1.0.5 and later.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:28:15+00:00Added an answer on June 10, 2026 at 10:28 am

    This is expected behavior. The 11.2 client is not certified to connect with any version of Oracle 8i. You would need to have at least an Oracle 9.2.0.4 database. If you want to connect with and 8.1.7 database, you would need an Oracle 10.2 or earlier client. The initial versions of the 10.2 client were not compatible with a Windows Server 2008 R2 system but it should be possible to install the 10.2.0.5 client patchset. If you want to connect to an Oracle database that is earlier than 8.1.7, you would need an earlier version of the Oracle client which would probably require installing an earlier version of Windows.

    If you have Metalink access, Metalink 207303.1 is the Client/ Server Interoperability Matrix.

    If you really have the 10.2.0.5 full client installed, your TNS alias needs to use a SID. Service names didn’t exist back in 8.1.7. You probably want to copy a TNS alias from a machine that is able to connect to the 8.1.7 database. My guess is that you want

    SCBLIVE = 
      (DESCRIPTION = 
        (ADDRESS = (PROTOCOL = TCP)(HOST = [ORACLE 8i IP])(PORT = 1521)) 
        (CONNECT_DATA = (SERVER = DEDICATED)(SID = SCBLIVE)) 
      )
    

    If that doesn’t work, at a command line, type tnsping scblive and copy and paste the results.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently exploring powershell capabilities, but I have encountered a problem that I have
I have encountered a most annoying problem that occurs on the PWD variable when
I have the following problem that other people must have encountered. I am working
I have encountered a problem in my application. I have two forms, one that
I have encountered the strange problem, that linux c++ compiler includes the files from
I have encountered a problem that I have never seen before. Usually, when I
While using ' CASE ' I encountered with problem that I'D never heard. The
I was reading the byte of vim. Here is a problem that I encountered.
I have encountered a problem that I have not come accross yet when setting
I have encountered a problem in that I already have a composite primary key

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.