Unix Technical Forum

Remote client to startup using SuSe

This is a discussion on Remote client to startup using SuSe within the Oracle Database forums, part of the Database Server Software category; --> Hi I am using a suse client and a suse server. I have configured the Lister and its up ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-24-2008, 07:56 AM
Vageesh
 
Posts: n/a
Default Remote client to startup using SuSe

Hi

I am using a suse client and a suse server.
I have configured the Lister and its up and running.
I have configured tnsnames.ora and tnsping works.
The database is SHUTDOWN and I want to START.
I have a pfile at client place in which have specified the
spfile=path/filename parameter.
Now I try to say
sqlplus "sys/password@connect as sysdba"
It says insufficient priveleges
Oerr ora 1031 insufficient Priveleges

Could you please help
Vageesh
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-24-2008, 07:57 AM
Howard J. Rogers
 
Posts: n/a
Default Re: Remote client to startup using SuSe

Vageesh wrote:

> Hi
>
> I am using a suse client and a suse server.
> I have configured the Lister and its up and running.
> I have configured tnsnames.ora and tnsping works.
> The database is SHUTDOWN and I want to START.
> I have a pfile at client place in which have specified the
> spfile=path/filename parameter.
> Now I try to say
> sqlplus "sys/password@connect as sysdba"


So you're connecting from the client to issue privileged commands? You'll
need to set REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE if it's not already. There
will need to be a password file on the server if you haven't already
created one. Use orapwd to do that if necessary:

orapwd file=$ORACLE_HOME/dbs/orapwSID.ora password=xxxxx entries=20

And just so we're 100% clear, the correct connection string syntax is:

sqlplus "sys/password@SID as sysdba"

Let us know how you get on.

Regards
HJR

> It says insufficient priveleges
> Oerr ora 1031 insufficient Priveleges
>
> Could you please help
> Vageesh


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-24-2008, 07:57 AM
Holger Baer
 
Posts: n/a
Default Re: Remote client to startup using SuSe

Howard J. Rogers wrote:
> Vageesh wrote:
>
>
>>Hi
>>
>>I am using a suse client and a suse server.
>>I have configured the Lister and its up and running.
>>I have configured tnsnames.ora and tnsping works.
>>The database is SHUTDOWN and I want to START.
>>I have a pfile at client place in which have specified the
>>spfile=path/filename parameter.
>>Now I try to say
>>sqlplus "sys/password@connect as sysdba"

>
>
> So you're connecting from the client to issue privileged commands? You'll
> need to set REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE if it's not already. There
> will need to be a password file on the server if you haven't already
> created one. Use orapwd to do that if necessary:
>
> orapwd file=$ORACLE_HOME/dbs/orapwSID.ora password=xxxxx entries=20
>
> And just so we're 100% clear, the correct connection string syntax is:
>
> sqlplus "sys/password@SID as sysdba"
>


Howard,

you're always so precise with your advices, so I just can't ignore this
minor glitch:

A remote client has no idea where to connect to if you only supply it with
a sid. So to be really 100% clear, the correct connection string is:

sqlplus "sys/password@tns-alias as sysdba"

It's certainly common practice to name the tnsalias after the SID on the server,
but it's not really required. Sometimes I just name them after the application
they support.

Cheers

Holger
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-24-2008, 07:57 AM
Howard J. Rogers
 
Posts: n/a
Default Re: Remote client to startup using SuSe

Holger Baer wrote:

> Howard J. Rogers wrote:
>> Vageesh wrote:
>>
>>
>>>Hi
>>>
>>>I am using a suse client and a suse server.
>>>I have configured the Lister and its up and running.
>>>I have configured tnsnames.ora and tnsping works.
>>>The database is SHUTDOWN and I want to START.
>>>I have a pfile at client place in which have specified the
>>>spfile=path/filename parameter.
>>>Now I try to say
>>>sqlplus "sys/password@connect as sysdba"

>>
>>
>> So you're connecting from the client to issue privileged commands? You'll
>> need to set REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE if it's not already.
>> There will need to be a password file on the server if you haven't
>> already created one. Use orapwd to do that if necessary:
>>
>> orapwd file=$ORACLE_HOME/dbs/orapwSID.ora password=xxxxx entries=20
>>
>> And just so we're 100% clear, the correct connection string syntax is:
>>
>> sqlplus "sys/password@SID as sysdba"
>>

>
> Howard,
>
> you're always so precise with your advices, so I just can't ignore this
> minor glitch:
>
> A remote client has no idea where to connect to if you only supply it with
> a sid. So to be really 100% clear, the correct connection string is:
>
> sqlplus "sys/password@tns-alias as sysdba"



OK, point taken, and you got me fair and square. The brain and the fingers
were not communicating properly.

In the true spirit of getting my own back, nicely, however...

I would just point out that they tend not to be called "tns aliases" these
days. The "proper" name for them is, apparently, "Oracle Net Service Name
Aliases". Or variations on that theme. Largely, I suppose, because many
people won't be using tnsnames.ora as their names resolution mechanism...

:-)

Yeah, I still call them tnsnames aliases too!!

> It's certainly common practice to name the tnsalias after the SID on the
> server, but it's not really required. Sometimes I just name them after the
> application they support.
>
> Cheers
>
> Holger


Good call. Thanks.

Regards
HJR


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-24-2008, 07:57 AM
Holger Baer
 
Posts: n/a
Default Re: Remote client to startup using SuSe

Howard J. Rogers wrote:
>
>
>
> OK, point taken, and you got me fair and square. The brain and the fingers
> were not communicating properly.
>
> In the true spirit of getting my own back, nicely, however...
>
> I would just point out that they tend not to be called "tns aliases" these
> days. The "proper" name for them is, apparently, "Oracle Net Service Name
> Aliases". Or variations on that theme. Largely, I suppose, because many
> people won't be using tnsnames.ora as their names resolution mechanism...
>
> :-)
>
> Yeah, I still call them tnsnames aliases too!!
>
>


Thanks for the heads up, I'm positively looking forward to typing in that
word beast. Not that anyone will bother to read my posts anymore, a connect
string of

sqlplus "sys/<sys_password>@<Oracle Net Service Name Alias> as sysdba"

will certainly bring tears to the bravest of (wo)men. But so what.

;-)

Cheers,

Holger
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:37 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com