Solved

Perl connect to Oracle mounted database as sys user

Posted on 2008-10-22
2
598 Views
Last Modified: 2012-05-05
I am trying to connect to a mounted standby Oracle database using DBI:Oracle

To make this connection I must user a connect string similar to sys/password@dbname as sysdba

The "as sysdba" is required to connect as sys user.

I am looking for the correct connect string syntax that includes as sysdba in it.
0
Comment
Question by:TOWELLR
2 Comments
 
LVL 10

Expert Comment

by:MadShiva
Comment Utility
Hi !

Here you have all you need to setup oracle database with sysdba :

http://it.toolbox.com/wiki//index.php/Oracle:_Remote_Login_as_Sysdba


Best Regards
0
 

Accepted Solution

by:
TOWELLR earned 0 total points
Comment Utility
I have found the solution.
For DBI:Oracle to connect as sysdba here is the string

my($dbh) = DBI->connect("dbi:Oracle:$site","$dbuser","$dbpass", { ora_session_mode => 2 });

You need to include { ora_session_mode => 2 } which sets the connect mode to sysdba.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now