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: Fri, 29 Feb 2008 21:35:31 +1100	[thread overview]
Message-ID: <87ve48yrrg.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: mailman.8060.1204248617.18990.help-gnu-emacs@gnu.org

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

> Tim X <timx@nospam.dev.null> writes:
>
>>
>> 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
>>
>
> Thanks a lot for the help! I tried "sqlplus DB1", it's the same problem,
> I still cannot login DB server. However, if I use a GUI tool to login
> the server, leave both user name and password as blank, I can login the
> server. It's really unconvininet for me... Is there any good solutions?
>
> Thanks a lot!
>

You could try starting sqlplus and then use its internal command to
connect to a database (sorry, can't remember exactly what its called and
I don't have sqlplus here). 

Another alternative would be to see if you can find out what/how the GUI
tool is doing it - possible if youhave the sources. 

Apart from that, I would try specifying just the schema name for the
username and a blank password. This might work as the username usually
determines what schema within the database instance you access. It could
be that if you don't specify a user, sqlplus doesn't know what schema to
log you into. Oracle is a bit different from other databases in that
different users normally have different schemas. To some extent, a
'database' in oracle speak is really an instance of the DBMS and each
schema is similar to what other DBMSs would call a database. I've worked
on sites where there is only one Oracle 'instance' which has many
'databases' and its the username that specifies the database. 

Of course, the real solution is to have a username and password. Its
extremely unusual to have an Oracle database without either. I actually
find it very unusual to be using Oracle and have a totally open
database. Its not the sort of DBMS you would use for trivial jobs and
most more serious jobs require som level of security. Are you certain
there is no username and password? Is it possible that the GUI tool you
use to access without one actually has a username/password configured
somewhere and it just uses that if you don't provide one?

The other thing to look at would be the sqlplus manual. Its possible
that there is a way to put stuff in the rc file that will make this
work. The other thing to look at is the database itself. Oracle has a
number of settings that control who can create sessions and limits on
those sessions. It is possible that the GUI tool uses a diffeent
connection method to sqlplus (Oracle supports many different connection
methods) and that you can only connect without a username/password if
you are using a specific method. If your not the DBA, then I would
definitely talk to the DBA regarding this. Oracle is a huge complex
beast and you really need to know how it has been configured for the
specific database your trying to use. 

HTH

Tim

> -- 
>
> You are always busy.
>
I'm usually busy procrastenating - very tiring!
>
>

-- 
tcross (at) rapttech dot com dot au


  parent reply	other threads:[~2008-02-29 10:35 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 ` Help for sql-oracle mode Tim X
2008-02-28 14:05   ` Misskiss
     [not found]   ` <mailman.8060.1204248617.18990.help-gnu-emacs@gnu.org>
2008-02-29 10:35     ` Tim X [this message]
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=87ve48yrrg.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.