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 9098465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:22:06+00:00 2026-06-17T00:22:06+00:00

I have two queries When i run the below perl script i am getting

  • 0

I have two queries

  1. When i run the below perl script i am getting the below error

Unable to connect: ORA-12154: TNS:could not resolve the connect identifier specified (DBD ERROR: OCIServerAttach)

I can’t modify the tnsnames.ora as i dont have access. I know tnsnames.ora doesn’t have a entry for testdb database. Is there a workaround. Thought i am accessing the database in the remote solaris machine with the IP Address so no need of a entry in the local solaris machine tnsnames.ora.

$platform = "Oracle";
$database = "testdb";
$host = "testdb.dev.test.com.au";
$port = "2000";
$user = "scott";
$pw = "tiger";


$dsn = "dbi:$platform:$database:$host:3306";
print "$dsn" . "\n";

# PERL DBI CONNECT (RENAMED HANDLE)
my $dbstore = DBI->connect($dsn, $user, $pw) or die "Unable to connect: $DBI::errstr\n";

2 My understanding about DBD module is even oracle is not installed in the local machine DBD module should work. But i noticed while installation it uses oracle client libraries. So if i install a DBD::Sybase do i need to have a installation of sysbase in local machine. Since I am accessing remote server database thought why local installation of oracle/sybase libraries are required?

  • 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-17T00:22:07+00:00Added an answer on June 17, 2026 at 12:22 am

    your dsn syntax is wrong. try to make it look like below:

    $dsn = "dbi:$platform:host=$host;sid=$sid;port=$port";
    

    Above syntax has worked for me in numerous cases where I had used DBD::Oracle.

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

Sidebar

Related Questions

I have two select queries to use in my project for getting data and
I have two queries that I run in the same table: SELECT id, COUNT(up)
I have two queries that I want to be able to run on a
I have two queries which I am detailing below: I installed tomcat 7.0 on
I have two disconnected sql servers that have to have correlated queries run between
I have two queries that I have to run, I cannon join them But
I have two queries that each, on their own, run pretty quickly (less than
I have two linq queries that I run on two different tables, Car and
I have two queries below: SELECT cl.`cl_boolean`, l.`l_name` FROM `card_legality` cl LEFT JOIN `legality`
I have two queries that find both the Zip codes, and the States for

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.