all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: Help for sql-oracle mode
Date: Thu, 28 Feb 2008 19:14:51 +1100	[thread overview]
Message-ID: <87bq614hvo.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: mailman.8019.1204178803.18990.help-gnu-emacs@gnu.org

"misskiss wang" <misskiss.wang@gmail.com> writes:

> Dear Friends,
>
> I like to using sql-oracle in emacs, but now I met a problem: The database I
> logged on no need to input username and password, both fields are empty. If I
> ran M-x sql-oracle in emacs, and I press ENTER butter two times and then input
> Server string, for example like DB1, I got an error like this:
>
> SQL*Plus: Release 10.2.0.2.0 - Production on Thu Feb 28 14:03:40 2008
>
> Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
>
> Enter user-name:
> ERROR:
> ORA-12560: TNS:protocol adapter error
>
> Enter user-name:
> ERROR:
> ORA-12560: TNS:protocol adapter error
>
> Enter user-name:
> ERROR:
> ORA-12560: TNS:protocol adapter error
>
> SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
>
> Process SQL exited abnormally with code 1
>

Can you access the database just running SQL-Plus? Oracle is natorious
for providing misleading error messages. For example, you will get that
same error message if you specify the wrong SID. The first thing I wold
do is try 

sqlplus DB1

and hit enter when prompted for the username and password. If that
works, then we know the problem isn't with Oracle and have to look
closer at sqlplus. 

Tim

P.S.

I've never seen an Oracle database that didn't require a username - the
username determines the schema - I guess you can have one, just never
come across it before. 
-- 
tcross (at) rapttech dot com dot au


       reply	other threads:[~2008-02-28  8:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.8019.1204178803.18990.help-gnu-emacs@gnu.org>
2008-02-28  8:14 ` Tim X [this message]
2008-02-28 14:05   ` Help for sql-oracle mode Misskiss
     [not found]   ` <mailman.8060.1204248617.18990.help-gnu-emacs@gnu.org>
2008-02-29 10:35     ` Tim X
2008-03-06 10:12     ` Anders Wirzenius
2008-02-28  6:06 misskiss wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bq614hvo.fsf@lion.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.