Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Can't connect to database using 'sqlplus <username>/<password>', even when ORACLE_SID is set.

Re: Can't connect to database using 'sqlplus <username>/<password>', even when ORACLE_SID is set.

From: <sybrandb_at_yahoo.com>
Date: 11 Dec 2003 06:45:20 -0800
Message-ID: <a1d154f4.0312110645.1db8ad18@posting.google.com>


jeffyee_at_hotmail.com (Jeffrey Yee) wrote in message news:<ec4cec95.0312110342.855c34a_at_posting.google.com>...
> Hi,
>
> As oracle user, I can use 'sqlplus <username>/<password>' to log in to
> a database, when ORACLE_SID is set. But when I'm login as root, and
> then set the ORACLE_SID, but 'sqlplus <username>/<password>' will give
> me the following error:
> ERROR:
> ORA-01034: ORACLE not available
>
> I tried 'sqlplus <username>/<password>@BSCS_RTX' and I can connect.
> I'm absolutely confuse on why I must use the alias to connect to the
> database. The database version that I'm running on is 8.1.6.3
>
> Please please help. Thank you very much in advance.
>
> Best Regards,
> Jeffrey Yee

Actually you don't even WANT to MISUSE root to connect on a routine basis.
You don't NEED direct access to Oracle as root, nor SHOULD you have it at all, as you can easily run any oracle related tasks by using su -c oracle.
Other than that read up on OS authentication in your documentation.

Sybrand Bakker
Senior Oracle DBA Received on Thu Dec 11 2003 - 08:45:20 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US